studyStudent.vue 883 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  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 && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail)
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. :key="diffKey"
  622. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  623. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  624. :src="pptImgUrl1"
  625. ></iframe>
  626. <iframe
  627. style="width: 100%; height: 100%; border: none"
  628. security="restricted"
  629. v-else
  630. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  631. :src="pptImgUrl1"
  632. ></iframe>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType === 16"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <iframe
  640. style="width: 100%; height: 100%; border: none"
  641. :src="pptImgUrl1"
  642. ></iframe>
  643. </div>
  644. <div
  645. class="wheel"
  646. v-if="showType == 3"
  647. style="width: 95%; margin: 0 auto"
  648. >
  649. <pdf
  650. :pdfUrl="pptImgUrl1"
  651. style="width: 100%; height: 100%; overflow: auto"
  652. ></pdf>
  653. </div>
  654. <div
  655. class="wheel"
  656. v-if="showType == 4"
  657. style="width: 95%; margin: 0 auto"
  658. >
  659. <el-image
  660. :src="pptImgUrl1"
  661. fit="contain"
  662. style="width: 100%; height: 100%; cursor: pointer"
  663. @click="previewImg(pptImgUrl1)"
  664. ></el-image>
  665. </div>
  666. </div>
  667. <div
  668. class="pButton"
  669. style="position: absolute; right: 20px; top: 0; z-index: 998"
  670. v-if="!contentDialog"
  671. @click="setContent(true)"
  672. >
  673. <!-- 批 -->
  674. <img
  675. src="../../assets/icon/newIcons/isLeft.png"
  676. style="width: 45px"
  677. alt=""
  678. />
  679. </div>
  680. <div
  681. v-if="contentDialog == true"
  682. :style="{
  683. width:
  684. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  685. showType === ''
  686. ? 'calc(100%)'
  687. : '300px',
  688. margin:
  689. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  690. showType === ''
  691. ? '0 15px'
  692. : '0 15px 0 0',
  693. }"
  694. >
  695. <div
  696. class="vedioList"
  697. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  698. style="height: 650px"
  699. >
  700. <div class="navCorOpenBox">
  701. <div class="navTitile">内容列表:</div>
  702. <div class="navCorOpen" @click="setContent(false)">
  703. <img
  704. src="../../assets/icon/newIcons/isRight.png"
  705. alt=""
  706. />
  707. </div>
  708. </div>
  709. <div class="navBox">
  710. <div
  711. v-show="
  712. vChapterData[0].length > 0 || fileC[0].length > 0
  713. "
  714. style="padding: 10px 0 25px 0"
  715. >
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in vChapterData[0]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 2">
  722. <div
  723. @click="lookVedio(vitem.url, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 6">
  738. <div
  739. @click="lookText(0, vindex)"
  740. class="navText"
  741. :class="isClickNav == vindex ? 'isClickNav' : ''"
  742. >
  743. {{ vitem.name }}.doc
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div
  756. class="navListItem"
  757. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  758. >
  759. <div
  760. @click="doUrl(vitem.url, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.title ? vitem.title : vitem.url }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. </div>
  776. <div class="navListItem" v-if="vitem.type == 3">
  777. <div
  778. @click="downFile(vitem, vindex)"
  779. class="navText"
  780. :class="isClickNav == vindex ? 'isClickNav' : ''"
  781. >
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="checkFileFull1(vitem.type, vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/allScreen.png"
  791. alt
  792. />
  793. </div>
  794. <div class="downIcon" @click="downloadFile2(vitem)">
  795. <img
  796. src="../../assets/icon/newIcon/down.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 12">
  802. <div class="navText" @click="downloadFile2(vitem)">
  803. <span v-if="vitem.text">{{ vitem.text }}-</span
  804. >{{ vitem.name }}
  805. </div>
  806. <div
  807. class="downIcon"
  808. @click="checkFileFull1(vitem.type, vitem)"
  809. >
  810. <img
  811. src="../../assets/icon/newIcon/allScreen.png"
  812. alt
  813. />
  814. </div>
  815. <div class="downIcon" @click="downloadFile2(vitem)">
  816. <img
  817. src="../../assets/icon/newIcon/down.png"
  818. alt
  819. />
  820. </div>
  821. </div>
  822. <div class="navListItem" v-if="vitem.type == 13">
  823. <div
  824. class="navText"
  825. @click="checkPhoto(vitem, vindex)"
  826. :class="isClickNav == vindex ? 'isClickNav' : ''"
  827. >
  828. {{ vitem.name }}
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 16">
  838. <div
  839. class="navText"
  840. @click="checkHtml(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div
  846. class="downIcon"
  847. @click="checkFileFull1(vitem.type, vitem)"
  848. >
  849. <img
  850. src="../../assets/icon/newIcon/allScreen.png"
  851. alt
  852. />
  853. </div>
  854. </div>
  855. </div>
  856. <div class="fileC_box" v-if="fileC[0].length > 0">
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[0]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. class="newButton"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px',
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 分析
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">学习资料</div>
  1071. </div>
  1072. <div v-if="tooC == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1088. style="position: absolute;right: 153px;top: -30px;">
  1089. 分析
  1090. </div>
  1091. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1092. style="position: absolute;right: 33px;top: -30px;">
  1093. 统计分析
  1094. </div>
  1095. </div>
  1096. <div v-if="tooC == 45">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/thirdToolList/choose.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">选择题</div>
  1103. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1104. style="position: absolute;right: 33px;top: -30px;">
  1105. 分析
  1106. </div>
  1107. </div>
  1108. <!-- <div v-if="tooC == 5">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/thirdToolList/score.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">量规评分</div>
  1115. </div> -->
  1116. <div v-if="tooC == 10">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/time.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">倒计时</div>
  1123. </div>
  1124. <div v-if="tooC == 15">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/answer.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">问答</div>
  1131. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1132. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1133. 分析
  1134. </div>
  1135. </div>
  1136. <div v-if="tooC == 26">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/courseDesign.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">课程设计</div>
  1143. </div>
  1144. <div v-if="tooC == 18">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">训练服务器</div>
  1151. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1152. style="position: absolute;right: 33px;top: -30px;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 16">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/work.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">作业提交</div>
  1163. </div>
  1164. <div v-if="tooC == 50">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/plwork.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">批量上传</div>
  1171. </div>
  1172. <div v-if="tooC == 21">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/fourthToolList/program.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">AIoT Blockly</div>
  1179. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1180. style="position: absolute;right: 33px;top: -30px;">
  1181. 分析
  1182. </div>
  1183. </div>
  1184. <!-- <div v-if="tooC == 22">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/fourthToolList/program.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">AI体验</div>
  1191. </div> -->
  1192. <div v-if="tooC == 23">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AI Python</div>
  1199. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <div v-if="tooC == 24">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/AIprogram.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI Blockly</div>
  1211. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1212. style="position: absolute;right: 33px;top: -30px;">
  1213. 分析
  1214. </div>
  1215. </div>
  1216. <div v-if="tooC == 25">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../../assets/icon/thirdToolList/evalua.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">目标管理</div>
  1223. </div>
  1224. <div v-if="tooC == 31">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/secondToolList/networkPanel.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">数学画板</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 28">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/secondToolList/translation.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">翻译</div>
  1243. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1244. style="position: absolute;right: 33px;top: -30px;">
  1245. 分析
  1246. </div>
  1247. </div>
  1248. <div v-if="tooC == 37">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../../assets/icon/secondToolList/mohe.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">魔盒识字</div>
  1255. </div>
  1256. <div v-if="tooC == 38">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/24game.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">24点</div>
  1263. </div>
  1264. <div v-if="tooC == 39">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/GeoGebra.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">GeoGebra</div>
  1271. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 分析
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 32">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/code.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">源码编辑</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1284. style="position: absolute;right: 153px;top: -42px;">
  1285. 分析
  1286. </div>
  1287. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1288. style="position: absolute;left: 110px;bottom: 30px;">
  1289. 上传文件
  1290. <input type="file" accept="*" style="display: none"
  1291. @change="beforeUpload1($event, 7, toolIndex)" />
  1292. </div> -->
  1293. </div>
  1294. <div v-if="tooC == 40">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/eval.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">个人评价</div>
  1301. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1302. style="position: absolute;right: 33px;top: -30px;">
  1303. 分析
  1304. </div>
  1305. </div>
  1306. <div v-if="tooC == 41">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/thirdToolList/select.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">选择匹配</div>
  1313. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1314. style="position: absolute;right: 33px;top: -30px;">
  1315. 分析
  1316. </div>
  1317. </div>
  1318. <div v-if="tooC == 44">
  1319. <img
  1320. @click="addTools(tooC, toolIndex, taskCount)"
  1321. src="../../assets/icon/thirdToolList/hanClass.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">汉字宫</div>
  1325. </div>
  1326. <div v-if="tooC == 47">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/fourthToolList/conSentences.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">排序</div>
  1333. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 48">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/fourthToolList/table.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">表格</div>
  1345. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1346. style="position: absolute;right: 33px;top: -30px;">
  1347. 分析
  1348. </div>
  1349. </div>
  1350. <div v-if="tooC == 52">
  1351. <img
  1352. @click="addTools(tooC, toolIndex, taskCount)"
  1353. src="../../assets/icon/fourthToolList/text.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">文档</div>
  1357. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1358. style="position: absolute;right: 33px;top: -30px;">
  1359. 分析
  1360. </div>
  1361. </div>
  1362. <div v-if="tooC == 49">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../../assets/icon/fourthToolList/group.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">学生分组</div>
  1369. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1370. style="position: absolute;right: 33px;top: -30px;">
  1371. 分析
  1372. </div>
  1373. </div>
  1374. <div v-if="tooC == 57">
  1375. <img
  1376. @click="addTools(tooC, toolIndex, taskCount)"
  1377. src="../../assets/icon/fourthToolList/cocopi.png"
  1378. alt
  1379. />
  1380. <div style="margin: 5px 0">CocoPi</div>
  1381. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1382. style="position: absolute;right: 33px;top: -30px;">
  1383. 分析
  1384. </div>
  1385. </div>
  1386. <div v-if="tooC == 58">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../../assets/icon/fourthToolList/car.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">模拟驾驶</div>
  1393. </div>
  1394. <div v-if="tooC == 59">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/lineSearch.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">路径搜索</div>
  1401. </div>
  1402. <div v-if="tooC == 60">
  1403. <img
  1404. @click="addTools(tooC, toolIndex, taskCount)"
  1405. src="../../assets/icon/fourthToolList/deepLearning.png"
  1406. alt
  1407. />
  1408. <div style="margin: 5px 0">深度学习</div>
  1409. </div>
  1410. <div v-if="tooC == 61">
  1411. <img
  1412. @click="addTools(tooC, toolIndex, taskCount)"
  1413. src="../../assets/icon/fourthToolList/allHistory.png"
  1414. alt
  1415. />
  1416. <div style="margin: 5px 0">全历史</div>
  1417. </div>
  1418. <div v-if="tooC == 62">
  1419. <img
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../../assets/icon/fourthToolList/interVideo.png"
  1422. alt
  1423. />
  1424. <div style="margin: 5px 0">交互视频</div>
  1425. </div>
  1426. <div v-if="tooC == 63">
  1427. <img
  1428. @click="addTools(tooC, toolIndex, taskCount)"
  1429. src="../../assets/icon/fourthToolList/Wood.png"
  1430. alt
  1431. />
  1432. <div style="margin: 5px 0">海龟编程</div>
  1433. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1434. style="position: absolute;right: 33px;top: -30px;">
  1435. 分析
  1436. </div>
  1437. </div>
  1438. <div v-if="tooC == 71">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/chatgpt.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">AI智能体</div>
  1445. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1446. style="position: absolute;right: 33px;top: -30px;">
  1447. 分析
  1448. </div>
  1449. </div>
  1450. <div v-if="tooC == 72">
  1451. <img
  1452. style="height: 85px;object-fit: cover;"
  1453. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1454. @click="addTools(tooC, toolIndex, taskCount)"
  1455. :src="tool.appJson.json.icon"
  1456. alt
  1457. />
  1458. <img
  1459. v-else
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/firstToolList/appStore.png"
  1462. alt
  1463. />
  1464. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1465. <!-- content to trigger tooltip here -->
  1466. <div class="Ovh">
  1467. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1468. </div>
  1469. </el-tooltip>
  1470. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 65">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/firstToolList/pickPeople.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">挑人</div>
  1482. </div>
  1483. <div v-if="tooC == 66">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../../assets/icon/secondToolList/formulaEdi.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">公式编辑</div>
  1490. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 67">
  1496. <img
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/secondToolList/molStr.png"
  1499. alt
  1500. />
  1501. <div style="margin: 5px 0">分子结构</div>
  1502. </div>
  1503. <div v-if="tooC == 68">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/secondToolList/timeAxis.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">时间轴</div>
  1510. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1511. style="position: absolute;right: 33px;top: -30px;">
  1512. 分析
  1513. </div> -->
  1514. </div>
  1515. <div v-if="tooC == 69">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../../assets/icon/secondToolList/english.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">英语写作</div>
  1522. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1523. style="position: absolute;right: 33px;top: -30px;">
  1524. 分析
  1525. </div>
  1526. </div>
  1527. <div v-if="tooC == 70">
  1528. <img
  1529. @click="addTools(tooC, toolIndex, taskCount)"
  1530. src="../../assets/icon/thirdToolList/englishVoice.png"
  1531. alt
  1532. />
  1533. <div style="margin: 5px 0">英语口语</div>
  1534. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1535. style="position: absolute;right: 33px;top: -30px;">
  1536. 分析
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1543. <!-- <div class="toolTitle">工具描述</div> -->
  1544. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1545. <div style="height:100%;"
  1546. v-html="renderedFormula(tool.toolDetail)"
  1547. v-if="toolDetailIndex != toolIndex"
  1548. ></div>
  1549. <div v-else @click.stop="" style="height:100%;">
  1550. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1551. </div>
  1552. </div>
  1553. <el-button
  1554. type="primary"
  1555. v-if="tool.tool[0] == 32"
  1556. style="position: absolute; right: 30px; top: -45px"
  1557. @click="addImg($event)"
  1558. >上传作业<input
  1559. type="file"
  1560. accept="*"
  1561. style="display: none"
  1562. @change="beforeUpload1($event, 7, toolIndex)"
  1563. /></el-button>
  1564. <el-button
  1565. type="primary"
  1566. v-if="tool.tool[0] == 15"
  1567. style="position: absolute; right: 30px; top: -45px"
  1568. @click="openWordCloud(toolIndex)"
  1569. >生成词云</el-button
  1570. >
  1571. <el-button
  1572. type="primary"
  1573. v-if="
  1574. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1575. "
  1576. style="position: absolute; right: 30px; top: -45px"
  1577. @click="uploadWorks(toolIndex)"
  1578. >导出作业</el-button
  1579. >
  1580. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1581. position: absolute;
  1582. right: 30px;
  1583. transform: translateY(-130%);
  1584. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1585. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1586. </div>
  1587. <div
  1588. v-if="
  1589. tType &&
  1590. tType == 2 &&
  1591. !sIsOpen &&
  1592. tool.tool.indexOf(16) != -1
  1593. "
  1594. class="worksBox"
  1595. >
  1596. <div
  1597. class="zuoyeYulan"
  1598. v-if="workStudent[toolIndex].length > 0"
  1599. >
  1600. <span class="worksTitle">作业预览</span>
  1601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1602. </div>
  1603. <div
  1604. class="worksDetailBox"
  1605. v-if="workStudent[toolIndex].length > 0"
  1606. >
  1607. <div
  1608. class="works"
  1609. style="
  1610. width: 200px;
  1611. height: 140px;
  1612. margin: 10px 10px 10px 0;
  1613. box-shadow: 0 0 6px 1px #dfdada;
  1614. "
  1615. v-for="(w, wIndex) in workStudent[toolIndex]"
  1616. :key="wIndex"
  1617. >
  1618. <div class="workImg" v-if="w.type == 0">
  1619. <img
  1620. :src="w.works"
  1621. @click="previewImg(w.works,w)"
  1622. alt
  1623. />
  1624. <div
  1625. class="answerScore"
  1626. v-if="w.score"
  1627. @click.stop="openScore(w)"
  1628. :class="{
  1629. rightW:
  1630. w.userid == userid || tType == 1 || tType == 4,
  1631. }"
  1632. >
  1633. {{ JSON.parse(w.score).wScore }}分
  1634. </div>
  1635. <div
  1636. class="answerScore"
  1637. @click.stop="openScore(w)"
  1638. v-else-if="courseDetail.userid == userid"
  1639. :class="{
  1640. rightW:
  1641. w.userid == userid || tType == 1 || tType == 4,
  1642. }"
  1643. >
  1644. 评分
  1645. </div>
  1646. <img
  1647. class="deleteImg"
  1648. src="../../assets/deleteworks.png"
  1649. v-if="
  1650. w.userid == userid || tType == 1 || tType == 4
  1651. "
  1652. @click.stop="deleteWorks(w.wid)"
  1653. alt
  1654. />
  1655. </div>
  1656. <div class="workImg" v-if="w.type == 1">
  1657. <img :src="word" @click="openFile(w.works)" alt />
  1658. <div
  1659. class="answerScore"
  1660. v-if="w.score"
  1661. @click.stop="openScore(w)"
  1662. :class="{
  1663. rightW:
  1664. w.userid == userid || tType == 1 || tType == 4,
  1665. }"
  1666. >
  1667. {{ JSON.parse(w.score).wScore }}分
  1668. </div>
  1669. <div
  1670. class="answerScore"
  1671. @click.stop="openScore(w)"
  1672. v-else-if="courseDetail.userid == userid"
  1673. :class="{
  1674. rightW:
  1675. w.userid == userid || tType == 1 || tType == 4,
  1676. }"
  1677. >
  1678. 评分
  1679. </div>
  1680. <img
  1681. class="deleteImg"
  1682. src="../../assets/deleteworks.png"
  1683. v-if="
  1684. w.userid == userid || tType == 1 || tType == 4
  1685. "
  1686. @click.stop="deleteWorks(w.wid)"
  1687. alt
  1688. />
  1689. </div>
  1690. <div class="workImg" v-if="w.type == 3">
  1691. <img
  1692. style="cursor: pointer"
  1693. :src="video"
  1694. @click="openVideo(w)"
  1695. alt
  1696. />
  1697. <div
  1698. class="answerScore"
  1699. v-if="w.score"
  1700. @click.stop="openScore(w)"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. {{ JSON.parse(w.score).wScore }}分
  1707. </div>
  1708. <div
  1709. class="answerScore"
  1710. @click.stop="openScore(w)"
  1711. v-else-if="courseDetail.userid == userid"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. 评分
  1718. </div>
  1719. <img
  1720. class="deleteImg"
  1721. src="../../assets/deleteworks.png"
  1722. v-if="
  1723. w.userid == userid || tType == 1 || tType == 4
  1724. "
  1725. @click.stop="deleteWorks(w.wid)"
  1726. alt
  1727. />
  1728. </div>
  1729. <div class="workImg" v-if="w.type == 12">
  1730. <img
  1731. style="cursor: pointer"
  1732. :src="word2"
  1733. @click="downloadFile(w.works,w.userid)"
  1734. alt
  1735. />
  1736. <div
  1737. class="answerScore"
  1738. v-if="w.score"
  1739. @click.stop="openScore(w)"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. {{ JSON.parse(w.score).wScore }}分
  1746. </div>
  1747. <div
  1748. class="answerScore"
  1749. @click.stop="openScore(w)"
  1750. v-else-if="courseDetail.userid == userid"
  1751. :class="{
  1752. rightW:
  1753. w.userid == userid || tType == 1 || tType == 4,
  1754. }"
  1755. >
  1756. 评分
  1757. </div>
  1758. <img
  1759. class="deleteImg"
  1760. src="../../assets/deleteworks.png"
  1761. v-if="
  1762. w.userid == userid || tType == 1 || tType == 4
  1763. "
  1764. @click.stop="deleteWorks(w.wid)"
  1765. alt
  1766. />
  1767. </div>
  1768. <div class="worksName">
  1769. <div>{{ w.sName }}</div>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. <div
  1775. v-if="
  1776. tType &&
  1777. tType == 2 &&
  1778. !sIsOpen &&
  1779. tool.tool.indexOf(32) != -1
  1780. "
  1781. class="worksBox"
  1782. >
  1783. <div
  1784. class="zuoyeYulan"
  1785. v-if="workStudent[toolIndex].length > 0"
  1786. >
  1787. <span class="worksTitle">作业预览</span>
  1788. </div>
  1789. <div
  1790. class="worksDetailBox"
  1791. v-if="workStudent[toolIndex].length > 0"
  1792. >
  1793. <div
  1794. class="works"
  1795. style="
  1796. width: 200px;
  1797. height: 140px;
  1798. margin: 10px 10px 10px 0;
  1799. box-shadow: 0 0 6px 1px #dfdada;
  1800. "
  1801. v-for="(w, wIndex) in workStudent[toolIndex]"
  1802. :key="wIndex"
  1803. >
  1804. <div class="workImg">
  1805. <img
  1806. :src="word2"
  1807. @click="downloadFile(w.works,w.userid)"
  1808. alt
  1809. />
  1810. <div
  1811. class="answerScore"
  1812. v-if="w.score"
  1813. @click.stop="openScore(w)"
  1814. :class="{
  1815. rightW:
  1816. w.userid == userid || tType == 1 || tType == 4,
  1817. }"
  1818. >
  1819. {{ JSON.parse(w.score).wScore }}分
  1820. </div>
  1821. <div
  1822. class="answerScore"
  1823. @click.stop="openScore(w)"
  1824. v-else-if="courseDetail.userid == userid"
  1825. :class="{
  1826. rightW:
  1827. w.userid == userid || tType == 1 || tType == 4,
  1828. }"
  1829. >
  1830. 评分
  1831. </div>
  1832. <img
  1833. class="deleteImg"
  1834. src="../../assets/deleteworks.png"
  1835. v-if="
  1836. w.userid == userid || tType == 1 || tType == 4
  1837. "
  1838. @click.stop="deleteWorks(w.wid)"
  1839. alt
  1840. />
  1841. </div>
  1842. <div class="worksName">
  1843. <div>{{ w.sName }}</div>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. <div
  1849. v-if="
  1850. tType &&
  1851. tType == 2 &&
  1852. !sIsOpen &&
  1853. tool.tool.indexOf(57) != -1
  1854. "
  1855. class="worksBox"
  1856. >
  1857. <div
  1858. class="zuoyeYulan"
  1859. v-if="workStudent[toolIndex].length > 0"
  1860. >
  1861. <span class="worksTitle">作业预览</span>
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. style="
  1870. width: 200px;
  1871. height: 140px;
  1872. margin: 10px 10px 10px 0;
  1873. box-shadow: 0 0 6px 1px #dfdada;
  1874. "
  1875. v-for="(w, wIndex) in workStudent[toolIndex]"
  1876. :key="wIndex"
  1877. >
  1878. <div class="workImg">
  1879. <img
  1880. :src="word2"
  1881. @click="downloadFile(w.works,w.userid)"
  1882. v-if="w.type == 12"
  1883. alt
  1884. />
  1885. <img
  1886. :src="word2"
  1887. @click="
  1888. openCocoPi(57, toolIndex, w.userid, w.sName)
  1889. "
  1890. v-else-if="w.type == 15"
  1891. alt
  1892. />
  1893. <div
  1894. class="answerScore"
  1895. v-if="w.score"
  1896. @click.stop="openScore(w)"
  1897. :class="{
  1898. rightW:
  1899. w.userid == userid || tType == 1 || tType == 4,
  1900. }"
  1901. >
  1902. {{ JSON.parse(w.score).wScore }}分
  1903. </div>
  1904. <div
  1905. class="answerScore"
  1906. @click.stop="openScore(w)"
  1907. v-else-if="courseDetail.userid == userid"
  1908. :class="{
  1909. rightW:
  1910. w.userid == userid || tType == 1 || tType == 4,
  1911. }"
  1912. >
  1913. 评分
  1914. </div>
  1915. <img
  1916. class="deleteImg"
  1917. src="../../assets/deleteworks.png"
  1918. v-if="
  1919. w.userid == userid || tType == 1 || tType == 4
  1920. "
  1921. @click.stop="deleteWorks(w.wid)"
  1922. alt
  1923. />
  1924. </div>
  1925. <div class="worksName">
  1926. <div>{{ w.sName }}</div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(4) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="isWorksName2"
  1953. v-for="(w, wIndex) in workStudent[toolIndex]"
  1954. :key="wIndex"
  1955. @click="
  1956. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1957. "
  1958. >
  1959. {{ w.sName }}
  1960. <img
  1961. class="deleteImg deleteImg2"
  1962. src="../../assets/deleteworks.png"
  1963. v-if="w.userid == userid || tType == 1 || tType == 4"
  1964. @click.stop="deleteWorks(w.wid)"
  1965. alt
  1966. />
  1967. </div>
  1968. <!-- <div
  1969. class="works"
  1970. style="
  1971. width: 200px;
  1972. height: 140px;
  1973. border-radius: 10px;
  1974. box-shadow: 0 0 6px 1px #dfdada;
  1975. overflow: hidden;
  1976. "
  1977. v-for="(w, wIndex) in workStudent[toolIndex]"
  1978. :key="wIndex"
  1979. >
  1980. <div class="workImg">
  1981. <img
  1982. src="../../assets/icon/works/noImg.png"
  1983. @click="
  1984. openTools(
  1985. 4,
  1986. toolIndex,
  1987. taskCount,
  1988. w.works,
  1989. w.sName
  1990. )
  1991. "
  1992. alt
  1993. />
  1994. </div>
  1995. <div class="worksName">
  1996. <div>{{ w.sName }}</div>
  1997. <div>{{ w.time }}</div>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. </div>
  2002. <div
  2003. v-if="
  2004. tType &&
  2005. ((tType == 2 && sIsOpen == true) ||
  2006. tType == 1 ||
  2007. tType == 4) &&
  2008. tool.tool.indexOf(62) != -1
  2009. "
  2010. class="worksBox"
  2011. >
  2012. <div
  2013. class="zuoyeYulan"
  2014. v-if="
  2015. worksStudent.length &&
  2016. worksStudent[toolIndex].length > 0
  2017. "
  2018. >
  2019. <div class="worksTop">
  2020. <div>作业预览</div>
  2021. <div
  2022. class="corOpen"
  2023. @click="contract(toolIndex)"
  2024. v-if="
  2025. (isCloseList[toolIndex].isCloseBoolean) &&
  2026. isCloseList[toolIndex].isClose == 0
  2027. "
  2028. >
  2029. 折叠
  2030. </div>
  2031. <div
  2032. class="corOpen"
  2033. @click="contract(toolIndex)"
  2034. v-if="isCloseList[toolIndex].isClose == 1"
  2035. >
  2036. 展开
  2037. </div>
  2038. </div>
  2039. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2040. </div>
  2041. <div>
  2042. <div
  2043. :id="'tool-' + toolIndex"
  2044. :style="{
  2045. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2046. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2047. }"
  2048. class="worksDetailBox"
  2049. v-if="
  2050. worksStudent.length &&
  2051. worksStudent[toolIndex].length > 0
  2052. "
  2053. >
  2054. <div
  2055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2056. :key="wIndex"
  2057. class="isWorksName2"
  2058. @click="
  2059. openTools(
  2060. 62,
  2061. toolIndex,
  2062. taskCount,
  2063. w.works,
  2064. w.sName
  2065. )
  2066. "
  2067. >
  2068. {{ w.sName }}
  2069. <img
  2070. class="deleteImg deleteImg2"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2082. 未提交
  2083. </div>
  2084. <div
  2085. class="noWorksS"
  2086. v-if="noWorksS && noWorksS[toolIndex].length"
  2087. >
  2088. <div
  2089. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2090. :key="sIndex"
  2091. class="noWorksName"
  2092. >
  2093. <el-tooltip effect="dark" :content="s.student" placement="top">
  2094. <span>{{ s.student }}</span>
  2095. </el-tooltip>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div
  2100. v-if="
  2101. tType &&
  2102. tType == 2 &&
  2103. !sIsOpen &&
  2104. tool.tool.indexOf(62) != -1
  2105. "
  2106. class="worksBox"
  2107. >
  2108. <div
  2109. class="zuoyeYulan"
  2110. v-if="workStudent[toolIndex].length > 0"
  2111. >
  2112. <span class="worksTitle">作业预览</span>
  2113. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2114. </div>
  2115. <div
  2116. class="worksDetailBox"
  2117. v-if="workStudent[toolIndex].length > 0"
  2118. >
  2119. <div
  2120. class="isWorksName2"
  2121. v-for="(w, wIndex) in workStudent[toolIndex]"
  2122. :key="wIndex"
  2123. @click="
  2124. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2125. "
  2126. >
  2127. {{ w.sName }}
  2128. <img
  2129. class="deleteImg deleteImg2"
  2130. src="../../assets/deleteworks.png"
  2131. v-if="w.userid == userid || tType == 1 || tType == 4"
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. </div>
  2137. </div>
  2138. <div
  2139. v-if="
  2140. tType &&
  2141. tType == 2 &&
  2142. !sIsOpen &&
  2143. tool.tool.indexOf(45) != -1
  2144. "
  2145. class="worksBox"
  2146. >
  2147. <div
  2148. class="zuoyeYulan"
  2149. v-if="workStudent[toolIndex].length > 0"
  2150. >
  2151. <span class="worksTitle">作业预览</span>
  2152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2153. </div>
  2154. <div
  2155. class="worksDetailBox"
  2156. v-if="workStudent[toolIndex].length > 0"
  2157. >
  2158. <div
  2159. class="isWorksName2"
  2160. v-for="(w, wIndex) in workStudent[toolIndex]"
  2161. :key="wIndex"
  2162. @click="
  2163. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2164. "
  2165. >
  2166. {{ w.sName }}
  2167. <img
  2168. class="deleteImg deleteImg2"
  2169. src="../../assets/deleteworks.png"
  2170. v-if="w.userid == userid || tType == 1 || tType == 4"
  2171. @click.stop="deleteWorks(w.wid)"
  2172. alt
  2173. />
  2174. </div>
  2175. </div>
  2176. </div>
  2177. <div
  2178. v-if="
  2179. tType &&
  2180. tType == 2 &&
  2181. !sIsOpen &&
  2182. tool.tool.indexOf(69) != -1
  2183. "
  2184. class="worksBox"
  2185. >
  2186. <div
  2187. class="zuoyeYulan"
  2188. v-if="workStudent[toolIndex].length > 0"
  2189. >
  2190. <span class="worksTitle">作业预览</span>
  2191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2192. </div>
  2193. <div
  2194. class="worksDetailBox"
  2195. v-if="workStudent[toolIndex].length > 0"
  2196. >
  2197. <div
  2198. class="isWorksName2"
  2199. v-for="(w, wIndex) in workStudent[toolIndex]"
  2200. :key="wIndex"
  2201. @click="
  2202. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2203. "
  2204. >
  2205. {{ w.sName }}
  2206. <img
  2207. class="deleteImg deleteImg2"
  2208. src="../../assets/deleteworks.png"
  2209. v-if="w.userid == userid || tType == 1 || tType == 4"
  2210. @click.stop="deleteWorks(w.wid)"
  2211. alt
  2212. />
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <div
  2217. v-if="
  2218. tType &&
  2219. tType == 2 &&
  2220. !sIsOpen &&
  2221. tool.tool.indexOf(15) != -1
  2222. "
  2223. class="worksBox"
  2224. >
  2225. <div
  2226. class="zuoyeYulan"
  2227. v-if="workStudent[toolIndex].length > 0"
  2228. >
  2229. <span class="worksTitle">作业预览</span>
  2230. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2231. </div>
  2232. <div
  2233. class="worksDetailBox"
  2234. v-if="workStudent[toolIndex].length > 0"
  2235. >
  2236. <div
  2237. class="works"
  2238. v-for="(w, wIndex) in workStudent[toolIndex]"
  2239. :key="wIndex"
  2240. >
  2241. <div class="workImg">
  2242. <!-- <img
  2243. src="../../assets/icon/works/noImg.png"
  2244. @click="openTools(15, toolIndex, taskCount, w.works)"
  2245. alt=""
  2246. />-->
  2247. <div class="answerBg">
  2248. <!-- <div>{{ w.sName }}</div> -->
  2249. <el-tooltip
  2250. class="item"
  2251. effect="light"
  2252. :content="JSON.parse(w.works)[0].answer"
  2253. placement="top"
  2254. >
  2255. <div class="answerContent">
  2256. {{ JSON.parse(w.works)[0].answer }}
  2257. </div>
  2258. </el-tooltip>
  2259. <div
  2260. class="answerScore"
  2261. v-if="w.score"
  2262. @click.stop="openScore(w)"
  2263. :class="{
  2264. rightW:
  2265. w.userid == userid ||
  2266. tType == 1 ||
  2267. tType == 4,
  2268. }"
  2269. >
  2270. {{ JSON.parse(w.score).wScore }}分
  2271. </div>
  2272. <div
  2273. class="answerScore"
  2274. @click.stop="openScore(w)"
  2275. v-else-if="courseDetail.userid == userid"
  2276. :class="{
  2277. rightW:
  2278. w.userid == userid ||
  2279. tType == 1 ||
  2280. tType == 4,
  2281. }"
  2282. >
  2283. 评分
  2284. </div>
  2285. <img
  2286. class="deleteImg"
  2287. src="../../assets/deleteworks.png"
  2288. v-if="
  2289. w.userid == userid || tType == 1 || tType == 4
  2290. "
  2291. @click.stop="deleteWorks(w.wid)"
  2292. alt
  2293. />
  2294. </div>
  2295. <div class="comment">
  2296. <div class="worksName">
  2297. <div>{{ w.sName }}</div>
  2298. </div>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. <div
  2305. v-if="
  2306. tType &&
  2307. tType == 2 &&
  2308. !sIsOpen &&
  2309. tool.tool.indexOf(1) != -1
  2310. "
  2311. class="worksBox"
  2312. >
  2313. <div
  2314. class="zuoyeYulan"
  2315. v-if="workStudent[toolIndex].length > 0"
  2316. >
  2317. <span class="worksTitle">作业预览</span>
  2318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2319. </div>
  2320. <div
  2321. class="worksDetailBox"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <div
  2325. class="works"
  2326. style="
  2327. width: 200px;
  2328. height: 140px;
  2329. margin: 10px 10px 10px 0;
  2330. box-shadow: 0 0 6px 1px #dfdada;
  2331. "
  2332. v-for="(w, wIndex) in workStudent[toolIndex]"
  2333. :key="wIndex"
  2334. >
  2335. <div class="workImg">
  2336. <img
  2337. :src="w.works"
  2338. @click="previewImg(w.works,w)"
  2339. alt
  2340. />
  2341. <div
  2342. class="answerScore"
  2343. v-if="w.score"
  2344. @click.stop="openScore(w)"
  2345. :class="{
  2346. rightW:
  2347. w.userid == userid || tType == 1 || tType == 4,
  2348. }"
  2349. >
  2350. {{ JSON.parse(w.score).wScore }}分
  2351. </div>
  2352. <div
  2353. class="answerScore"
  2354. @click.stop="openScore(w)"
  2355. v-else-if="courseDetail.userid == userid"
  2356. :class="{
  2357. rightW:
  2358. w.userid == userid || tType == 1 || tType == 4,
  2359. }"
  2360. >
  2361. 评分
  2362. </div>
  2363. <img
  2364. class="deleteImg"
  2365. src="../../assets/deleteworks.png"
  2366. v-if="
  2367. w.userid == userid || tType == 1 || tType == 4
  2368. "
  2369. @click.stop="deleteWorks(w.wid)"
  2370. alt
  2371. />
  2372. </div>
  2373. <div class="worksName">
  2374. <div>{{ w.sName }}</div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div
  2380. v-if="
  2381. tType &&
  2382. tType == 2 &&
  2383. !sIsOpen &&
  2384. tool.tool.indexOf(3) != -1
  2385. "
  2386. class="worksBox"
  2387. >
  2388. <div
  2389. class="zuoyeYulan"
  2390. v-if="workStudent[toolIndex].length > 0"
  2391. >
  2392. <span class="worksTitle">作业预览</span>
  2393. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2394. </div>
  2395. <div
  2396. class="worksDetailBox"
  2397. v-if="workStudent[toolIndex].length > 0"
  2398. >
  2399. <div
  2400. class="works"
  2401. style="
  2402. width: 200px;
  2403. height: 140px;
  2404. margin: 10px 10px 10px 0;
  2405. box-shadow: 0 0 6px 1px #dfdada;
  2406. "
  2407. v-for="(w, wIndex) in workStudent[toolIndex]"
  2408. :key="wIndex"
  2409. >
  2410. <div class="workImg">
  2411. <img
  2412. :src="w.works"
  2413. @click="previewImg(w.works,w)"
  2414. alt
  2415. />
  2416. <div
  2417. class="answerScore"
  2418. v-if="w.score"
  2419. @click.stop="openScore(w)"
  2420. :class="{
  2421. rightW:
  2422. w.userid == userid || tType == 1 || tType == 4,
  2423. }"
  2424. >
  2425. {{ JSON.parse(w.score).wScore }}分
  2426. </div>
  2427. <div
  2428. class="answerScore"
  2429. @click.stop="openScore(w)"
  2430. v-else-if="courseDetail.userid == userid"
  2431. :class="{
  2432. rightW:
  2433. w.userid == userid || tType == 1 || tType == 4,
  2434. }"
  2435. >
  2436. 评分
  2437. </div>
  2438. <img
  2439. class="deleteImg"
  2440. src="../../assets/deleteworks.png"
  2441. v-if="
  2442. w.userid == userid || tType == 1 || tType == 4
  2443. "
  2444. @click.stop="deleteWorks(w.wid)"
  2445. alt
  2446. />
  2447. </div>
  2448. <div class="worksName">
  2449. <div>{{ w.sName }}</div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. <div
  2455. v-if="
  2456. tType &&
  2457. tType == 2 &&
  2458. !sIsOpen &&
  2459. tool.tool.indexOf(6) != -1
  2460. "
  2461. class="worksBox"
  2462. >
  2463. <div
  2464. class="zuoyeYulan"
  2465. v-if="workStudent[toolIndex].length > 0"
  2466. >
  2467. <span class="worksTitle">作业预览</span>
  2468. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2469. </div>
  2470. <div
  2471. class="worksDetailBox"
  2472. v-if="workStudent[toolIndex].length > 0"
  2473. >
  2474. <div
  2475. class="works"
  2476. style="
  2477. width: 200px;
  2478. height: 140px;
  2479. margin: 10px 10px 10px 0;
  2480. box-shadow: 0 0 6px 1px #dfdada;
  2481. "
  2482. v-for="(w, wIndex) in workStudent[toolIndex]"
  2483. :key="wIndex"
  2484. >
  2485. <div class="workImg">
  2486. <img
  2487. :src="w.works"
  2488. @click="previewImg(w.works,w)"
  2489. alt
  2490. />
  2491. <div
  2492. class="answerScore"
  2493. v-if="w.score"
  2494. @click.stop="openScore(w)"
  2495. :class="{
  2496. rightW:
  2497. w.userid == userid || tType == 1 || tType == 4,
  2498. }"
  2499. >
  2500. {{ JSON.parse(w.score).wScore }}分
  2501. </div>
  2502. <div
  2503. class="answerScore"
  2504. @click.stop="openScore(w)"
  2505. v-else-if="courseDetail.userid == userid"
  2506. :class="{
  2507. rightW:
  2508. w.userid == userid || tType == 1 || tType == 4,
  2509. }"
  2510. >
  2511. 评分
  2512. </div>
  2513. <img
  2514. class="deleteImg"
  2515. src="../../assets/deleteworks.png"
  2516. v-if="
  2517. w.userid == userid || tType == 1 || tType == 4
  2518. "
  2519. @click.stop="deleteWorks(w.wid)"
  2520. alt
  2521. />
  2522. </div>
  2523. <div class="worksName">
  2524. <div>{{ w.sName }}</div>
  2525. </div>
  2526. </div>
  2527. </div>
  2528. </div>
  2529. <div
  2530. v-if="
  2531. tType &&
  2532. tType == 2 &&
  2533. !sIsOpen &&
  2534. tool.tool.indexOf(7) != -1
  2535. "
  2536. class="worksBox"
  2537. >
  2538. <div
  2539. class="zuoyeYulan"
  2540. v-if="workStudent[toolIndex].length > 0"
  2541. >
  2542. <span class="worksTitle">作业预览</span>
  2543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2544. </div>
  2545. <div
  2546. class="worksDetailBox"
  2547. v-if="workStudent[toolIndex].length > 0"
  2548. >
  2549. <div
  2550. class="works"
  2551. style="
  2552. width: 200px;
  2553. height: 140px;
  2554. margin: 10px 10px 10px 0;
  2555. box-shadow: 0 0 6px 1px #dfdada;
  2556. "
  2557. v-for="(w, wIndex) in workStudent[toolIndex]"
  2558. :key="wIndex"
  2559. >
  2560. <div class="workImg">
  2561. <img
  2562. :src="w.works"
  2563. @click="previewImg(w.works,w)"
  2564. alt
  2565. />
  2566. <div
  2567. class="answerScore"
  2568. v-if="w.score"
  2569. @click.stop="openScore(w)"
  2570. :class="{
  2571. rightW:
  2572. w.userid == userid || tType == 1 || tType == 4,
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4,
  2584. }"
  2585. >
  2586. 评分
  2587. </div>
  2588. <img
  2589. class="deleteImg"
  2590. src="../../assets/deleteworks.png"
  2591. v-if="
  2592. w.userid == userid || tType == 1 || tType == 4
  2593. "
  2594. @click.stop="deleteWorks(w.wid)"
  2595. alt
  2596. />
  2597. </div>
  2598. <div class="worksName">
  2599. <div>{{ w.sName }}</div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. <div
  2605. v-if="
  2606. tType &&
  2607. tType == 2 &&
  2608. !sIsOpen &&
  2609. tool.tool.indexOf(26) != -1
  2610. "
  2611. class="worksBox"
  2612. >
  2613. <div
  2614. class="zuoyeYulan"
  2615. v-if="workStudent[toolIndex].length > 0"
  2616. >
  2617. <span class="worksTitle">作业预览</span>
  2618. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2619. </div>
  2620. <div
  2621. class="worksDetailBox"
  2622. v-if="workStudent[toolIndex].length > 0"
  2623. >
  2624. <div
  2625. class="works"
  2626. style="
  2627. width: 200px;
  2628. height: 140px;
  2629. margin: 10px 10px 10px 0;
  2630. box-shadow: 0 0 6px 1px #dfdada;
  2631. "
  2632. v-for="(w, wIndex) in workStudent[toolIndex]"
  2633. :key="wIndex"
  2634. >
  2635. <div class="workImg">
  2636. <img
  2637. :src="w.works"
  2638. @click="previewImg(w.works,w)"
  2639. alt
  2640. />
  2641. <img
  2642. class="deleteImg"
  2643. src="../../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="worksName">
  2652. <div>{{ w.sName }}</div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div
  2658. v-if="
  2659. tType &&
  2660. ((tType == 2 && sIsOpen == true) ||
  2661. tType == 1 ||
  2662. tType == 4) &&
  2663. tool.tool.indexOf(16) != -1
  2664. "
  2665. class="worksBox"
  2666. >
  2667. <div
  2668. class="zuoyeYulan"
  2669. v-if="
  2670. (worksStudent.length &&
  2671. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2672. "
  2673. >
  2674. <div class="worksTop">
  2675. <div>作业预览</div>
  2676. <div
  2677. class="corOpen"
  2678. @click="contract(toolIndex)"
  2679. v-if="
  2680. (isCloseList[toolIndex].isCloseBoolean) &&
  2681. isCloseList[toolIndex].isClose == 0
  2682. "
  2683. >
  2684. 折叠
  2685. </div>
  2686. <div
  2687. class="corOpen"
  2688. @click="contract(toolIndex)"
  2689. v-if="isCloseList[toolIndex].isClose == 1"
  2690. >
  2691. 展开
  2692. </div>
  2693. </div>
  2694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2695. </div>
  2696. <div
  2697. class="group_workBox"
  2698. v-for="(g, gindex) in courseGroup.group"
  2699. :key="gindex"
  2700. >
  2701. <div class="group_box">
  2702. <div class="group_title">
  2703. <el-tooltip
  2704. class="item"
  2705. effect="light"
  2706. :content="g.name"
  2707. placement="top"
  2708. >
  2709. <div class="group_name">{{ g.name }}</div>
  2710. </el-tooltip>
  2711. </div>
  2712. <div
  2713. class="group_work"
  2714. v-if="
  2715. g.works &&
  2716. g.works.length &&
  2717. g.works[toolIndex].length
  2718. "
  2719. >
  2720. <div
  2721. class="works"
  2722. style="
  2723. width: 200px;
  2724. height: 140px;
  2725. margin: 10px 10px 10px 0;
  2726. border-radius: 15px;
  2727. box-shadow: 0 0 6px 1px #dfdada;
  2728. "
  2729. v-for="(w, wIndex) in g.works[toolIndex]"
  2730. :key="wIndex"
  2731. :class="w.type == 1 ? 'isTypeOne' : ''"
  2732. >
  2733. <div class="workImg" v-if="w.type == 0">
  2734. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2735. <img
  2736. :src="w.works"
  2737. @click="previewImg(w.works,w)"
  2738. alt
  2739. />
  2740. <div
  2741. class="answerScore"
  2742. v-if="w.score"
  2743. @click.stop="openScore(w)"
  2744. :class="{
  2745. rightW:
  2746. w.userid == userid ||
  2747. tType == 1 ||
  2748. tType == 4 ||
  2749. w.ateacher == userid,
  2750. }"
  2751. >
  2752. {{ JSON.parse(w.score).wScore }}分
  2753. </div>
  2754. <div
  2755. class="answerScore"
  2756. @click.stop="openScore(w)"
  2757. v-else-if="courseDetail.userid == userid"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. 评分
  2767. </div>
  2768. <img
  2769. class="deleteImg"
  2770. src="../../assets/deleteworks.png"
  2771. v-if="
  2772. w.userid == userid || tType == 1 || tType == 4
  2773. "
  2774. @click.stop="deleteWorks(w.wid)"
  2775. alt
  2776. />
  2777. </div>
  2778. <div class="workImg" v-if="w.type == 1">
  2779. <img :src="word" @click="openFile(w.works)" alt />
  2780. <!-- @click="openFile(w.works)" -->
  2781. <div
  2782. class="answerScore"
  2783. v-if="w.score"
  2784. @click.stop="openScore(w)"
  2785. :class="{
  2786. rightW:
  2787. w.userid == userid ||
  2788. tType == 1 ||
  2789. tType == 4 ||
  2790. w.ateacher == userid,
  2791. }"
  2792. >
  2793. {{ JSON.parse(w.score).wScore }}分
  2794. </div>
  2795. <div
  2796. class="answerScore"
  2797. @click.stop="openScore(w)"
  2798. v-else-if="courseDetail.userid == userid"
  2799. :class="{
  2800. rightW:
  2801. w.userid == userid ||
  2802. tType == 1 ||
  2803. tType == 4 ||
  2804. w.ateacher == userid,
  2805. }"
  2806. >
  2807. 评分
  2808. </div>
  2809. <img
  2810. class="deleteImg"
  2811. src="../../assets/deleteworks.png"
  2812. v-if="
  2813. w.userid == userid || tType == 1 || tType == 4
  2814. "
  2815. @click.stop="deleteWorks(w.wid)"
  2816. alt
  2817. />
  2818. </div>
  2819. <div class="workImg" v-if="w.type == 3">
  2820. <img
  2821. style="cursor: pointer"
  2822. :src="video"
  2823. @click="openVideo(w)"
  2824. alt
  2825. />
  2826. <!-- @click="openVideo(w.works)" -->
  2827. <div
  2828. class="answerScore"
  2829. v-if="w.score"
  2830. @click.stop="openScore(w)"
  2831. :class="{
  2832. rightW:
  2833. w.userid == userid ||
  2834. tType == 1 ||
  2835. tType == 4 ||
  2836. w.ateacher == userid,
  2837. }"
  2838. >
  2839. {{ JSON.parse(w.score).wScore }}分
  2840. </div>
  2841. <div
  2842. class="answerScore"
  2843. @click.stop="openScore(w)"
  2844. v-else-if="courseDetail.userid == userid"
  2845. :class="{
  2846. rightW:
  2847. w.userid == userid ||
  2848. tType == 1 ||
  2849. tType == 4 ||
  2850. w.ateacher == userid,
  2851. }"
  2852. >
  2853. 评分
  2854. </div>
  2855. <img
  2856. class="deleteImg"
  2857. src="../../assets/deleteworks.png"
  2858. v-if="
  2859. w.userid == userid || tType == 1 || tType == 4
  2860. "
  2861. @click.stop="deleteWorks(w.wid)"
  2862. alt
  2863. />
  2864. </div>
  2865. <div class="workImg" v-if="w.type == 12">
  2866. <img
  2867. style="cursor: pointer"
  2868. :src="word2"
  2869. @click="downloadFile(w.works,w.userid)"
  2870. alt
  2871. />
  2872. <!-- @click="openVideo(w.works)" -->
  2873. <div
  2874. class="answerScore"
  2875. v-if="w.score"
  2876. @click.stop="openScore(w)"
  2877. :class="{
  2878. rightW:
  2879. w.userid == userid ||
  2880. tType == 1 ||
  2881. tType == 4 ||
  2882. w.ateacher == userid,
  2883. }"
  2884. >
  2885. {{ JSON.parse(w.score).wScore }}分
  2886. </div>
  2887. <div
  2888. class="answerScore"
  2889. @click.stop="openScore(w)"
  2890. v-else-if="courseDetail.userid == userid"
  2891. :class="{
  2892. rightW:
  2893. w.userid == userid ||
  2894. tType == 1 ||
  2895. tType == 4 ||
  2896. w.ateacher == userid,
  2897. }"
  2898. >
  2899. 评分
  2900. </div>
  2901. <img
  2902. class="deleteImg"
  2903. src="../../assets/deleteworks.png"
  2904. v-if="
  2905. w.userid == userid || tType == 1 || tType == 4
  2906. "
  2907. @click.stop="deleteWorks(w.wid)"
  2908. alt
  2909. />
  2910. </div>
  2911. <div class="comment" style="min-width: 200px">
  2912. <div class="worksName">
  2913. <div>{{ w.sName }}</div>
  2914. </div>
  2915. <div class="commentList">
  2916. <div class="commentList">
  2917. <div
  2918. class="commentImg"
  2919. @click="
  2920. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2921. "
  2922. >
  2923. <img
  2924. :src="w.isLikes == true ? likes : noLikes"
  2925. alt=""
  2926. />
  2927. </div>
  2928. <div>{{ w.likesCount }}</div>
  2929. </div>
  2930. <div
  2931. class="commentList"
  2932. style="margin-right: 15px"
  2933. >
  2934. <div
  2935. class="commentImg"
  2936. @click="
  2937. commentOther(
  2938. w,
  2939. toolIndex,
  2940. wIndex,
  2941. null,
  2942. g.id
  2943. )
  2944. "
  2945. >
  2946. <img
  2947. src="../../assets/icon/comment/comment.png"
  2948. alt=""
  2949. />
  2950. </div>
  2951. <div>{{ w.commentCount }}</div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. <div class="group_work" v-else>暂无提交作业</div>
  2958. </div>
  2959. </div>
  2960. <div
  2961. :id="'tool-' + toolIndex"
  2962. :style="{
  2963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2965. }"
  2966. class="worksDetailBox"
  2967. v-if="
  2968. worksStudent.length &&
  2969. worksStudent[toolIndex].length > 0
  2970. "
  2971. >
  2972. <div
  2973. class="works"
  2974. style="
  2975. width: 200px;
  2976. height: 140px;
  2977. margin: 10px 10px 10px 0;
  2978. border-radius: 15px;
  2979. box-shadow: 0 0 6px 1px #dfdada;
  2980. "
  2981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2982. :key="wIndex"
  2983. :class="w.type == 1 ? 'isTypeOne' : ''"
  2984. >
  2985. <div class="workImg" v-if="w.type == 0">
  2986. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works,w)"
  2990. alt
  2991. />
  2992. <div
  2993. class="answerScore"
  2994. v-if="w.score"
  2995. @click.stop="openScore(w)"
  2996. :class="{
  2997. rightW:
  2998. w.userid == userid ||
  2999. tType == 1 ||
  3000. tType == 4 ||
  3001. w.ateacher == userid,
  3002. }"
  3003. >
  3004. {{ JSON.parse(w.score).wScore }}分
  3005. </div>
  3006. <div
  3007. class="answerScore"
  3008. @click.stop="openScore(w)"
  3009. v-else-if="courseDetail.userid == userid"
  3010. :class="{
  3011. rightW:
  3012. w.userid == userid ||
  3013. tType == 1 ||
  3014. tType == 4 ||
  3015. w.ateacher == userid,
  3016. }"
  3017. >
  3018. 评分
  3019. </div>
  3020. <img
  3021. class="deleteImg"
  3022. src="../../assets/deleteworks.png"
  3023. v-if="
  3024. w.userid == userid || tType == 1 || tType == 4
  3025. "
  3026. @click.stop="deleteWorks(w.wid)"
  3027. alt
  3028. />
  3029. </div>
  3030. <div class="workImg" v-if="w.type == 1">
  3031. <img :src="word" @click="openFile(w.works)" alt />
  3032. <!-- @click="openFile(w.works)" -->
  3033. <div
  3034. class="answerScore"
  3035. v-if="w.score"
  3036. @click.stop="openScore(w)"
  3037. :class="{
  3038. rightW:
  3039. w.userid == userid ||
  3040. tType == 1 ||
  3041. tType == 4 ||
  3042. w.ateacher == userid,
  3043. }"
  3044. >
  3045. {{ JSON.parse(w.score).wScore }}分
  3046. </div>
  3047. <div
  3048. class="answerScore"
  3049. @click.stop="openScore(w)"
  3050. v-else-if="courseDetail.userid == userid"
  3051. :class="{
  3052. rightW:
  3053. w.userid == userid ||
  3054. tType == 1 ||
  3055. tType == 4 ||
  3056. w.ateacher == userid,
  3057. }"
  3058. >
  3059. 评分
  3060. </div>
  3061. <img
  3062. class="deleteImg"
  3063. src="../../assets/deleteworks.png"
  3064. v-if="
  3065. w.userid == userid || tType == 1 || tType == 4
  3066. "
  3067. @click.stop="deleteWorks(w.wid)"
  3068. alt
  3069. />
  3070. </div>
  3071. <div class="workImg" v-if="w.type == 3">
  3072. <img
  3073. style="cursor: pointer"
  3074. :src="video"
  3075. @click="openVideo(w)"
  3076. alt
  3077. />
  3078. <!-- @click="openVideo(w.works)" -->
  3079. <div
  3080. class="answerScore"
  3081. v-if="w.score"
  3082. @click.stop="openScore(w)"
  3083. :class="{
  3084. rightW:
  3085. w.userid == userid ||
  3086. tType == 1 ||
  3087. tType == 4 ||
  3088. w.ateacher == userid,
  3089. }"
  3090. >
  3091. {{ JSON.parse(w.score).wScore }}分
  3092. </div>
  3093. <div
  3094. class="answerScore"
  3095. @click.stop="openScore(w)"
  3096. v-else-if="courseDetail.userid == userid"
  3097. :class="{
  3098. rightW:
  3099. w.userid == userid ||
  3100. tType == 1 ||
  3101. tType == 4 ||
  3102. w.ateacher == userid,
  3103. }"
  3104. >
  3105. 评分
  3106. </div>
  3107. <img
  3108. class="deleteImg"
  3109. src="../../assets/deleteworks.png"
  3110. v-if="
  3111. w.userid == userid || tType == 1 || tType == 4
  3112. "
  3113. @click.stop="deleteWorks(w.wid)"
  3114. alt
  3115. />
  3116. </div>
  3117. <div class="workImg" v-if="w.type == 12">
  3118. <img
  3119. style="cursor: pointer"
  3120. :src="word2"
  3121. @click="downloadFile(w.works,w.userid)"
  3122. alt
  3123. />
  3124. <!-- @click="openVideo(w.works)" -->
  3125. <div
  3126. class="answerScore"
  3127. v-if="w.score"
  3128. @click.stop="openScore(w)"
  3129. :class="{
  3130. rightW:
  3131. w.userid == userid ||
  3132. tType == 1 ||
  3133. tType == 4 ||
  3134. w.ateacher == userid,
  3135. }"
  3136. >
  3137. {{ JSON.parse(w.score).wScore }}分
  3138. </div>
  3139. <div
  3140. class="answerScore"
  3141. @click.stop="openScore(w)"
  3142. v-else-if="courseDetail.userid == userid"
  3143. :class="{
  3144. rightW:
  3145. w.userid == userid ||
  3146. tType == 1 ||
  3147. tType == 4 ||
  3148. w.ateacher == userid,
  3149. }"
  3150. >
  3151. 评分
  3152. </div>
  3153. <img
  3154. class="deleteImg"
  3155. src="../../assets/deleteworks.png"
  3156. v-if="
  3157. w.userid == userid || tType == 1 || tType == 4
  3158. "
  3159. @click.stop="deleteWorks(w.wid)"
  3160. alt
  3161. />
  3162. </div>
  3163. <div class="comment" style="min-width: 200px">
  3164. <div class="worksName">
  3165. <div>{{ w.sName }}</div>
  3166. </div>
  3167. <div class="commentList">
  3168. <div class="commentList">
  3169. <div
  3170. class="commentImg"
  3171. @click="
  3172. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3173. "
  3174. >
  3175. <img
  3176. :src="w.isLikes == true ? likes : noLikes"
  3177. alt=""
  3178. />
  3179. </div>
  3180. <div>{{ w.likesCount }}</div>
  3181. </div>
  3182. <div class="commentList" style="margin-right: 15px">
  3183. <div
  3184. class="commentImg"
  3185. @click="commentOther(w, toolIndex, wIndex)"
  3186. >
  3187. <img
  3188. src="../../assets/icon/comment/comment.png"
  3189. alt=""
  3190. />
  3191. </div>
  3192. <div>{{ w.commentCount }}</div>
  3193. </div>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3199. 未提交
  3200. </div>
  3201. <div
  3202. class="noWorksS"
  3203. v-if="noWorksS && noWorksS[toolIndex].length"
  3204. >
  3205. <div
  3206. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3207. :key="sIndex"
  3208. class="noWorksName"
  3209. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3210. >
  3211. <el-tooltip effect="dark" :content="s.student" placement="top">
  3212. <span>{{ s.student }}</span>
  3213. </el-tooltip>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div
  3218. v-if="
  3219. tType &&
  3220. ((tType == 2 && sIsOpen == true) ||
  3221. tType == 1 ||
  3222. tType == 4) &&
  3223. tool.tool.indexOf(70) != -1
  3224. "
  3225. class="worksBox"
  3226. >
  3227. <div
  3228. class="zuoyeYulan"
  3229. v-if="
  3230. (worksStudent.length &&
  3231. worksStudent[toolIndex].length > 0)
  3232. "
  3233. >
  3234. <div class="worksTop">
  3235. <div>作业预览</div>
  3236. <div
  3237. class="corOpen"
  3238. @click="contract(toolIndex)"
  3239. v-if="
  3240. (isCloseList[toolIndex].isCloseBoolean) &&
  3241. isCloseList[toolIndex].isClose == 0
  3242. "
  3243. >
  3244. 折叠
  3245. </div>
  3246. <div
  3247. class="corOpen"
  3248. @click="contract(toolIndex)"
  3249. v-if="isCloseList[toolIndex].isClose == 1"
  3250. >
  3251. 展开
  3252. </div>
  3253. </div>
  3254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3255. </div>
  3256. <div
  3257. :id="'tool-' + toolIndex"
  3258. :style="{
  3259. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3260. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3261. }"
  3262. class="worksDetailBox"
  3263. v-if="
  3264. worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. "
  3267. >
  3268. <div
  3269. class="works"
  3270. style="
  3271. width: 200px;
  3272. height: 140px;
  3273. margin: 10px 10px 10px 0;
  3274. border-radius: 15px;
  3275. box-shadow: 0 0 6px 1px #dfdada;
  3276. "
  3277. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3278. :key="wIndex"
  3279. :class="w.type == 1 ? 'isTypeOne' : ''"
  3280. >
  3281. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3282. <img :src="word" alt />
  3283. <img
  3284. class="deleteImg"
  3285. src="../../assets/deleteworks.png"
  3286. v-if="
  3287. w.userid == userid || tType == 1 || tType == 4
  3288. "
  3289. @click.stop="deleteWorks(w.wid)"
  3290. alt
  3291. />
  3292. </div>
  3293. <div class="comment" style="min-width: 200px">
  3294. <div class="worksName">
  3295. <div>{{ w.sName }}</div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3301. 未提交
  3302. </div>
  3303. <div
  3304. class="noWorksS"
  3305. v-if="noWorksS && noWorksS[toolIndex].length"
  3306. >
  3307. <div
  3308. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3309. :key="sIndex"
  3310. class="noWorksName"
  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 &&
  3322. !sIsOpen &&
  3323. tool.tool.indexOf(70) != -1
  3324. "
  3325. class="worksBox"
  3326. >
  3327. <div
  3328. class="zuoyeYulan"
  3329. v-if="workStudent[toolIndex].length > 0"
  3330. >
  3331. <span class="worksTitle">作业预览</span>
  3332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3333. </div>
  3334. <div
  3335. class="worksDetailBox"
  3336. v-if="workStudent[toolIndex].length > 0"
  3337. >
  3338. <div
  3339. class="works"
  3340. style="
  3341. width: 200px;
  3342. height: 140px;
  3343. margin: 10px 10px 10px 0;
  3344. box-shadow: 0 0 6px 1px #dfdada;
  3345. "
  3346. v-for="(w, wIndex) in workStudent[toolIndex]"
  3347. :key="wIndex"
  3348. >
  3349. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3350. <img :src="word" alt />
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="worksName">
  3362. <div>{{ w.sName }}</div>
  3363. </div>
  3364. </div>
  3365. </div>
  3366. </div>
  3367. <div
  3368. v-if="
  3369. tType &&
  3370. ((tType == 2 && sIsOpen == true) ||
  3371. tType == 1 ||
  3372. tType == 4) &&
  3373. tool.tool.indexOf(32) != -1
  3374. "
  3375. class="worksBox"
  3376. >
  3377. <div
  3378. class="zuoyeYulan"
  3379. v-if="
  3380. worksStudent.length &&
  3381. worksStudent[toolIndex].length > 0
  3382. "
  3383. >
  3384. <div class="worksTop">
  3385. <div>作业预览</div>
  3386. <div
  3387. class="corOpen"
  3388. @click="contract(toolIndex)"
  3389. v-if="
  3390. (isCloseList[toolIndex].isCloseBoolean) &&
  3391. isCloseList[toolIndex].isClose == 0
  3392. "
  3393. >
  3394. 折叠
  3395. </div>
  3396. <div
  3397. class="corOpen"
  3398. @click="contract(toolIndex)"
  3399. v-if="isCloseList[toolIndex].isClose == 1"
  3400. >
  3401. 展开
  3402. </div>
  3403. </div>
  3404. </div>
  3405. <div
  3406. :id="'tool-' + toolIndex"
  3407. :style="{
  3408. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3409. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3410. }"
  3411. class="worksDetailBox"
  3412. v-if="
  3413. worksStudent.length &&
  3414. worksStudent[toolIndex].length > 0
  3415. "
  3416. >
  3417. <div
  3418. class="works"
  3419. style="
  3420. width: 200px;
  3421. height: 140px;
  3422. margin: 10px 10px 10px 0;
  3423. border-radius: 15px;
  3424. box-shadow: 0 0 6px 1px #dfdada;
  3425. "
  3426. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3427. :key="wIndex"
  3428. :class="w.type == 1 ? 'isTypeOne' : ''"
  3429. >
  3430. <div class="workImg">
  3431. <img
  3432. :src="word2"
  3433. @click="downloadFile(w.works,w.userid)"
  3434. alt
  3435. />
  3436. <div
  3437. class="answerScore"
  3438. v-if="w.score"
  3439. @click.stop="openScore(w)"
  3440. :class="{
  3441. rightW:
  3442. w.userid == userid ||
  3443. tType == 1 ||
  3444. tType == 4 ||
  3445. w.ateacher == userid,
  3446. }"
  3447. >
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div
  3451. class="answerScore"
  3452. @click.stop="openScore(w)"
  3453. v-else-if="courseDetail.userid == userid"
  3454. :class="{
  3455. rightW:
  3456. w.userid == userid ||
  3457. tType == 1 ||
  3458. tType == 4 ||
  3459. w.ateacher == userid,
  3460. }"
  3461. >
  3462. 评分
  3463. </div>
  3464. <img
  3465. class="deleteImg"
  3466. src="../../assets/deleteworks.png"
  3467. v-if="
  3468. w.userid == userid || tType == 1 || tType == 4
  3469. "
  3470. @click.stop="deleteWorks(w.wid)"
  3471. alt
  3472. />
  3473. </div>
  3474. <div class="comment" style="min-width: 200px">
  3475. <div class="worksName">
  3476. <div>{{ w.sName }}</div>
  3477. </div>
  3478. <div class="commentList">
  3479. <div class="commentList">
  3480. <div
  3481. class="commentImg"
  3482. @click="
  3483. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3484. "
  3485. >
  3486. <img
  3487. :src="w.isLikes == true ? likes : noLikes"
  3488. alt=""
  3489. />
  3490. </div>
  3491. <div>{{ w.likesCount }}</div>
  3492. </div>
  3493. <div class="commentList" style="margin-right: 15px">
  3494. <div
  3495. class="commentImg"
  3496. @click="commentOther(w, toolIndex, wIndex)"
  3497. >
  3498. <img
  3499. src="../../assets/icon/comment/comment.png"
  3500. alt=""
  3501. />
  3502. </div>
  3503. <div>{{ w.commentCount }}</div>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3510. 未提交
  3511. </div>
  3512. <div
  3513. class="noWorksS"
  3514. v-if="noWorksS && noWorksS[toolIndex].length"
  3515. >
  3516. <div
  3517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3518. :key="sIndex"
  3519. class="noWorksName"
  3520. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3521. >
  3522. <el-tooltip effect="dark" :content="s.student" placement="top">
  3523. <span>{{ s.student }}</span>
  3524. </el-tooltip>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div
  3529. v-if="
  3530. tType &&
  3531. ((tType == 2 && sIsOpen == true) ||
  3532. tType == 1 ||
  3533. tType == 4) &&
  3534. tool.tool.indexOf(57) != -1
  3535. "
  3536. class="worksBox"
  3537. >
  3538. <div
  3539. class="zuoyeYulan"
  3540. v-if="
  3541. worksStudent.length &&
  3542. worksStudent[toolIndex].length > 0
  3543. "
  3544. >
  3545. <div class="worksTop">
  3546. <div>作业预览</div>
  3547. <div
  3548. class="corOpen"
  3549. @click="contract(toolIndex)"
  3550. v-if="
  3551. (isCloseList[toolIndex].isCloseBoolean) &&
  3552. isCloseList[toolIndex].isClose == 0
  3553. "
  3554. >
  3555. 折叠
  3556. </div>
  3557. <div
  3558. class="corOpen"
  3559. @click="contract(toolIndex)"
  3560. v-if="isCloseList[toolIndex].isClose == 1"
  3561. >
  3562. 展开
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <div
  3567. :id="'tool-' + toolIndex"
  3568. :style="{
  3569. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3570. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3571. }"
  3572. class="worksDetailBox"
  3573. v-if="
  3574. worksStudent.length &&
  3575. worksStudent[toolIndex].length > 0
  3576. "
  3577. >
  3578. <div
  3579. class="works"
  3580. style="
  3581. width: 200px;
  3582. height: 140px;
  3583. margin: 10px 10px 10px 0;
  3584. border-radius: 15px;
  3585. box-shadow: 0 0 6px 1px #dfdada;
  3586. "
  3587. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3588. :key="wIndex"
  3589. :class="w.type == 1 ? 'isTypeOne' : ''"
  3590. >
  3591. <div class="workImg">
  3592. <img
  3593. :src="word2"
  3594. @click="downloadFile(w.works,w.userid)"
  3595. v-if="w.type == 12"
  3596. alt
  3597. />
  3598. <img
  3599. :src="word2"
  3600. @click="
  3601. openCocoPi(57, toolIndex, w.userid, w.sName)
  3602. "
  3603. v-else-if="w.type == 15"
  3604. alt
  3605. />
  3606. <div
  3607. class="answerScore"
  3608. v-if="w.score"
  3609. @click.stop="openScore(w)"
  3610. :class="{
  3611. rightW:
  3612. w.userid == userid ||
  3613. tType == 1 ||
  3614. tType == 4 ||
  3615. w.ateacher == userid,
  3616. }"
  3617. >
  3618. {{ JSON.parse(w.score).wScore }}分
  3619. </div>
  3620. <div
  3621. class="answerScore"
  3622. @click.stop="openScore(w)"
  3623. v-else-if="courseDetail.userid == userid"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. 评分
  3633. </div>
  3634. <img
  3635. class="deleteImg"
  3636. src="../../assets/deleteworks.png"
  3637. v-if="
  3638. w.userid == userid || tType == 1 || tType == 4
  3639. "
  3640. @click.stop="deleteWorks(w.wid)"
  3641. alt
  3642. />
  3643. </div>
  3644. <div class="comment" style="min-width: 200px">
  3645. <div class="worksName">
  3646. <div>{{ w.sName }}</div>
  3647. </div>
  3648. <div class="commentList">
  3649. <div class="commentList">
  3650. <div
  3651. class="commentImg"
  3652. @click="
  3653. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3654. "
  3655. >
  3656. <img
  3657. :src="w.isLikes == true ? likes : noLikes"
  3658. alt=""
  3659. />
  3660. </div>
  3661. <div>{{ w.likesCount }}</div>
  3662. </div>
  3663. <div class="commentList" style="margin-right: 15px">
  3664. <div
  3665. class="commentImg"
  3666. @click="commentOther(w, toolIndex, wIndex)"
  3667. >
  3668. <img
  3669. src="../../assets/icon/comment/comment.png"
  3670. alt=""
  3671. />
  3672. </div>
  3673. <div>{{ w.commentCount }}</div>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3680. 未提交
  3681. </div>
  3682. <div
  3683. class="noWorksS"
  3684. v-if="noWorksS && noWorksS[toolIndex].length"
  3685. >
  3686. <div
  3687. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3688. :key="sIndex"
  3689. class="noWorksName"
  3690. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3691. >
  3692. <el-tooltip effect="dark" :content="s.student" placement="top">
  3693. <span>{{ s.student }}</span>
  3694. </el-tooltip>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <div
  3699. v-if="
  3700. tType &&
  3701. ((tType == 2 && sIsOpen == true) ||
  3702. tType == 1 ||
  3703. tType == 4) &&
  3704. tool.tool.indexOf(72) != -1
  3705. "
  3706. class="worksBox"
  3707. >
  3708. <div
  3709. class="zuoyeYulan"
  3710. v-if="
  3711. worksStudent.length &&
  3712. worksStudent[toolIndex].length > 0
  3713. "
  3714. >
  3715. <div class="worksTop">
  3716. <div>作业预览</div>
  3717. <div
  3718. class="corOpen"
  3719. @click="contract(toolIndex)"
  3720. v-if="
  3721. isCloseList[toolIndex].isCloseBoolean &&
  3722. isCloseList[toolIndex].isClose == 0
  3723. "
  3724. >
  3725. 折叠
  3726. </div>
  3727. <div
  3728. class="corOpen"
  3729. @click="contract(toolIndex)"
  3730. v-if="isCloseList[toolIndex].isClose == 1"
  3731. >
  3732. 展开
  3733. </div>
  3734. </div>
  3735. </div>
  3736. <div
  3737. :id="'tool-' + toolIndex"
  3738. :style="{
  3739. height:
  3740. isCloseList[toolIndex].isClose == 1
  3741. ? retrnToolHeight('tool-' + toolIndex)
  3742. : 'auto',
  3743. overflow:
  3744. isCloseList[toolIndex].isClose == 1
  3745. ? 'hidden'
  3746. : 'unset'
  3747. }"
  3748. class="worksDetailBox"
  3749. v-if="
  3750. worksStudent.length &&
  3751. worksStudent[toolIndex].length > 0
  3752. "
  3753. >
  3754. <div
  3755. class="works"
  3756. style="
  3757. width: 200px;
  3758. height: 140px;
  3759. margin: 10px 10px 10px 0;
  3760. border-radius: 15px;
  3761. box-shadow: 0 0 6px 1px #dfdada;
  3762. "
  3763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3764. :key="wIndex"
  3765. :class="w.type == 1 ? 'isTypeOne' : ''"
  3766. >
  3767. <div class="workImg">
  3768. <!-- <img
  3769. :src="word2"
  3770. @click="downloadFile(w.works)"
  3771. v-if="w.type == 12"
  3772. alt
  3773. /> -->
  3774. <img
  3775. :src="word2"
  3776. @click="
  3777. openCocoFlow(w)
  3778. "
  3779. alt
  3780. />
  3781. <div
  3782. class="answerScore"
  3783. v-if="w.score"
  3784. @click.stop="openScore(w)"
  3785. :class="{
  3786. rightW:
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4 ||
  3790. w.ateacher == userid
  3791. }"
  3792. >
  3793. {{ JSON.parse(w.score).wScore }}分
  3794. </div>
  3795. <div
  3796. class="answerScore"
  3797. @click.stop="openScore(w)"
  3798. v-else-if="
  3799. courseDetail.userid == userid &&
  3800. courseDetail.state != 5 &&
  3801. chapInfoList[courseType].chapterInfo[0]
  3802. .taskJson[taskCount].eList &&
  3803. chapInfoList[courseType].chapterInfo[0]
  3804. .taskJson[taskCount].eList.length
  3805. "
  3806. :class="{
  3807. rightW:
  3808. w.userid == userid ||
  3809. tType == 1 ||
  3810. tType == 4 ||
  3811. w.ateacher == userid
  3812. }"
  3813. >
  3814. 评分
  3815. </div>
  3816. <img
  3817. class="deleteImg"
  3818. src="../../assets/deleteworks.png"
  3819. v-if="
  3820. w.userid == userid || tType == 1 || tType == 4
  3821. "
  3822. @click.stop="deleteWorks(w.wid)"
  3823. alt
  3824. />
  3825. </div>
  3826. <div class="comment" style="min-width: 200px">
  3827. <div class="worksName">
  3828. <div>{{ w.sName }}</div>
  3829. </div>
  3830. <div class="commentList">
  3831. <div class="commentList">
  3832. <div
  3833. class="commentImg"
  3834. @click="
  3835. isLikes(
  3836. w.wid,
  3837. userid,
  3838. 1,
  3839. null,
  3840. w.isLikes,
  3841. w.sName
  3842. )
  3843. "
  3844. >
  3845. <img
  3846. :src="w.isLikes == true ? likes : noLikes"
  3847. alt=""
  3848. />
  3849. </div>
  3850. <div>{{ w.likesCount }}</div>
  3851. </div>
  3852. <div class="commentList" style="margin-right: 15px">
  3853. <div
  3854. class="commentImg"
  3855. @click="commentOther(w, toolIndex, wIndex)"
  3856. >
  3857. <img
  3858. src="../../assets/icon/comment/comment.png"
  3859. alt=""
  3860. />
  3861. </div>
  3862. <div>{{ w.commentCount }}</div>
  3863. </div>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. </div>
  3868. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3869. 未提交
  3870. </div>
  3871. <div
  3872. class="noWorksS"
  3873. v-if="noWorksS && noWorksS[toolIndex].length"
  3874. >
  3875. <div
  3876. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3877. :key="sIndex"
  3878. class="noWorksName"
  3879. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3880. >
  3881. <el-tooltip
  3882. effect="dark"
  3883. :content="s.student"
  3884. placement="top"
  3885. >
  3886. <span>{{ s.student }}</span>
  3887. </el-tooltip>
  3888. </div>
  3889. </div>
  3890. </div>
  3891. <div
  3892. v-if="
  3893. tType &&
  3894. tType == 2 &&
  3895. !sIsOpen &&
  3896. tool.tool.indexOf(72) != -1
  3897. "
  3898. class="worksBox"
  3899. >
  3900. <div
  3901. class="zuoyeYulan"
  3902. v-if="workStudent[toolIndex].length > 0"
  3903. >
  3904. <span class="worksTitle">作业预览</span>
  3905. </div>
  3906. <div
  3907. class="worksDetailBox"
  3908. v-if="workStudent[toolIndex].length > 0"
  3909. >
  3910. <div
  3911. class="works"
  3912. style="
  3913. width: 200px;
  3914. height: 140px;
  3915. margin: 10px 10px 10px 0;
  3916. box-shadow: 0 0 6px 1px #dfdada;
  3917. "
  3918. v-for="(w, wIndex) in workStudent[toolIndex]"
  3919. :key="wIndex"
  3920. >
  3921. <div class="workImg">
  3922. <!-- <img
  3923. :src="word2"
  3924. @click="downloadFile(w.works)"
  3925. v-if="w.type == 12"
  3926. alt
  3927. /> -->
  3928. <img
  3929. :src="word2"
  3930. @click="
  3931. openCocoFlow(w)
  3932. "
  3933. alt
  3934. />
  3935. <div
  3936. class="answerScore"
  3937. v-if="w.score"
  3938. @click.stop="openScore(w)"
  3939. :class="{
  3940. rightW:
  3941. w.userid == userid || tType == 1 || tType == 4
  3942. }"
  3943. >
  3944. {{ JSON.parse(w.score).wScore }}分
  3945. </div>
  3946. <div
  3947. class="answerScore"
  3948. @click.stop="openScore(w)"
  3949. v-else-if="courseDetail.userid == userid"
  3950. :class="{
  3951. rightW:
  3952. w.userid == userid || tType == 1 || tType == 4
  3953. }"
  3954. >
  3955. 评分
  3956. </div>
  3957. <img
  3958. class="deleteImg"
  3959. src="../../assets/deleteworks.png"
  3960. v-if="
  3961. w.userid == userid || tType == 1 || tType == 4
  3962. "
  3963. @click.stop="deleteWorks(w.wid)"
  3964. alt
  3965. />
  3966. </div>
  3967. <div class="worksName">
  3968. <div>{{ w.sName }}</div>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. </div>
  3973. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3974. <div
  3975. class="zuoyeYulan"
  3976. v-if="
  3977. worksStudent.length &&
  3978. worksStudent[toolIndex].length > 0
  3979. "
  3980. >
  3981. <span class="worksTitle">作业预览</span>
  3982. <div
  3983. class="corOpen"
  3984. @click="contract(toolIndex)"
  3985. v-if="
  3986. (isCloseList[toolIndex].isCloseBoolean) &&
  3987. isCloseList[toolIndex].isClose == 0
  3988. "
  3989. >
  3990. 折叠
  3991. </div>
  3992. <div
  3993. class="corOpen"
  3994. @click="contract(toolIndex)"
  3995. v-if="isCloseList[toolIndex].isClose == 1"
  3996. >
  3997. 展开
  3998. </div>
  3999. </div>
  4000. <div
  4001. :id="'tool-' + toolIndex"
  4002. :style="{
  4003. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4004. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4005. }"
  4006. class="worksDetailBox"
  4007. v-if="
  4008. worksStudent.length &&
  4009. worksStudent[toolIndex].length > 0
  4010. "
  4011. >
  4012. <div
  4013. class="works"
  4014. style="
  4015. width: 200px;
  4016. height: 140px;
  4017. margin: 10px 10px 10px 0;
  4018. border-radius: 15px;
  4019. box-shadow: 0 0 6px 1px #dfdada;
  4020. "
  4021. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4022. :key="wIndex"
  4023. :class="w.type == 1 ? 'isTypeOne' : ''"
  4024. >
  4025. <div class="workImg" v-if="w.type == 0">
  4026. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4027. <img
  4028. :src="w.works"
  4029. @click="previewImg(w.works,w)"
  4030. alt
  4031. />
  4032. <div
  4033. class="answerScore"
  4034. v-if="w.score"
  4035. @click.stop="openScore(w)"
  4036. :class="{
  4037. rightW:
  4038. w.userid == userid ||
  4039. tType == 1 ||
  4040. tType == 4 ||
  4041. w.ateacher == userid,
  4042. }"
  4043. >
  4044. {{ JSON.parse(w.score).wScore }}分
  4045. </div>
  4046. <div
  4047. class="answerScore"
  4048. @click.stop="openScore(w)"
  4049. v-else-if="courseDetail.userid == userid"
  4050. :class="{
  4051. rightW:
  4052. w.userid == userid ||
  4053. tType == 1 ||
  4054. tType == 4 ||
  4055. w.ateacher == userid,
  4056. }"
  4057. >
  4058. 评分
  4059. </div>
  4060. <img
  4061. class="deleteImg"
  4062. src="../../assets/deleteworks.png"
  4063. v-if="
  4064. w.userid == userid || tType == 1 || tType == 4
  4065. "
  4066. @click.stop="deleteWorks(w.wid)"
  4067. alt
  4068. />
  4069. </div>
  4070. <div
  4071. class="workImg"
  4072. style="cursor: pointer"
  4073. v-if="w.type == 1"
  4074. >
  4075. <img :src="word" @click="openFile(w.works)" alt />
  4076. <!-- @click="openFile(w.works)" -->
  4077. <div
  4078. class="answerScore"
  4079. v-if="w.score"
  4080. @click.stop="openScore(w)"
  4081. :class="{
  4082. rightW:
  4083. w.userid == userid ||
  4084. tType == 1 ||
  4085. tType == 4 ||
  4086. w.ateacher == userid,
  4087. }"
  4088. >
  4089. {{ JSON.parse(w.score).wScore }}分
  4090. </div>
  4091. <div
  4092. class="answerScore"
  4093. @click.stop="openScore(w)"
  4094. v-else-if="courseDetail.userid == userid"
  4095. :class="{
  4096. rightW:
  4097. w.userid == userid ||
  4098. tType == 1 ||
  4099. tType == 4 ||
  4100. w.ateacher == userid,
  4101. }"
  4102. >
  4103. 评分
  4104. </div>
  4105. <img
  4106. class="deleteImg"
  4107. src="../../assets/deleteworks.png"
  4108. v-if="
  4109. w.userid == userid || tType == 1 || tType == 4
  4110. "
  4111. @click.stop="deleteWorks(w.wid)"
  4112. alt
  4113. />
  4114. </div>
  4115. <div class="workImg" v-if="w.type == 3">
  4116. <img
  4117. style="cursor: pointer"
  4118. :src="video"
  4119. @click="openVideo(w)"
  4120. alt
  4121. />
  4122. <!-- @click="openVideo(w.works)" -->
  4123. <div
  4124. class="answerScore"
  4125. v-if="w.score"
  4126. @click.stop="openScore(w)"
  4127. :class="{
  4128. rightW:
  4129. w.userid == userid ||
  4130. tType == 1 ||
  4131. tType == 4 ||
  4132. w.ateacher == userid,
  4133. }"
  4134. >
  4135. {{ JSON.parse(w.score).wScore }}分
  4136. </div>
  4137. <div
  4138. class="answerScore"
  4139. @click.stop="openScore(w)"
  4140. v-else-if="courseDetail.userid == userid"
  4141. :class="{
  4142. rightW:
  4143. w.userid == userid ||
  4144. tType == 1 ||
  4145. tType == 4 ||
  4146. w.ateacher == userid,
  4147. }"
  4148. >
  4149. 评分
  4150. </div>
  4151. <img
  4152. class="deleteImg"
  4153. src="../../assets/deleteworks.png"
  4154. v-if="
  4155. w.userid == userid || tType == 1 || tType == 4
  4156. "
  4157. @click.stop="deleteWorks(w.wid)"
  4158. alt
  4159. />
  4160. </div>
  4161. <div class="comment" style="min-width: 200px">
  4162. <div class="worksName">
  4163. <div
  4164. style="cursor: pointer"
  4165. @click="
  4166. openSname(w.sName, w.wid, toolIndex, w.userid)
  4167. "
  4168. >
  4169. {{ w.sName }}
  4170. </div>
  4171. </div>
  4172. <div class="commentList">
  4173. <div class="commentList">
  4174. <div
  4175. class="commentImg"
  4176. @click="
  4177. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4178. "
  4179. >
  4180. <img
  4181. :src="w.isLikes == true ? likes : noLikes"
  4182. alt=""
  4183. />
  4184. </div>
  4185. <div>{{ w.likesCount }}</div>
  4186. </div>
  4187. <div class="commentList" style="margin-right: 15px">
  4188. <div
  4189. class="commentImg"
  4190. @click="commentOther(w, toolIndex, wIndex)"
  4191. >
  4192. <img
  4193. src="../../assets/icon/comment/comment.png"
  4194. alt=""
  4195. />
  4196. </div>
  4197. <div>{{ w.commentCount }}</div>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4204. 未提交
  4205. </div>
  4206. <div
  4207. class="noWorksS"
  4208. v-if="noWorksS && noWorksS[toolIndex].length"
  4209. >
  4210. <div
  4211. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4212. :key="sIndex"
  4213. class="noWorksName"
  4214. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4215. >
  4216. <el-tooltip effect="dark" :content="s.student" placement="top">
  4217. <span>{{ s.student }}</span>
  4218. </el-tooltip>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(4) != -1 &&
  4229. (tool.askJson[0].answer ||
  4230. tool.askJson[0].answer === 0) &&
  4231. checkJson[toolIndex].length
  4232. "
  4233. class="xuan_right_box"
  4234. >
  4235. <div
  4236. class="tool_right_box"
  4237. v-for="(item, index) in tool.askJson"
  4238. :key="index"
  4239. >
  4240. <div style="width: calc(100% - 30px);">
  4241. <el-tooltip
  4242. effect="light"
  4243. :content="index + 1 + '、' + item.askstitle"
  4244. placement="top"
  4245. popper-class="text_tooltip"
  4246. >
  4247. <div
  4248. style="
  4249. width: calc(100% - 130px);
  4250. display: block;
  4251. white-space: nowrap;
  4252. overflow: hidden;
  4253. text-overflow: ellipsis;
  4254. word-break: break-word;
  4255. cursor: pointer;
  4256. "
  4257. >
  4258. {{ index + 1 + "、" + item.askstitle }}
  4259. </div>
  4260. </el-tooltip>
  4261. </div>
  4262. <div class="right_box_xuan">
  4263. <span>正确率</span>
  4264. <span>{{
  4265. (checkJson[toolIndex][index].right
  4266. ? checkJson[toolIndex][index].right
  4267. : 0) + "%"
  4268. }}</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div
  4273. class="xuan_right_box"
  4274. style="background: unset; padding: 0 10px"
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. >
  4283. <AskStatic
  4284. v-if="
  4285. worksStudent.length &&
  4286. worksStudent[toolIndex].length > 0
  4287. "
  4288. :askJSON="tool"
  4289. :checkJson="checkJson[toolIndex]"
  4290. ></AskStatic>
  4291. </div>
  4292. <div
  4293. v-if="
  4294. tType &&
  4295. ((tType == 2 && sIsOpen == true) ||
  4296. tType == 1 ||
  4297. tType == 4) &&
  4298. tool.tool.indexOf(4) != -1
  4299. "
  4300. class="worksBox"
  4301. >
  4302. <div
  4303. class="zuoyeYulan"
  4304. v-if="
  4305. worksStudent.length &&
  4306. worksStudent[toolIndex].length > 0
  4307. "
  4308. >
  4309. <div class="worksTop">
  4310. <div>作业预览</div>
  4311. <div
  4312. class="corOpen"
  4313. @click="contract(toolIndex)"
  4314. v-if="
  4315. (isCloseList[toolIndex].isCloseBoolean) &&
  4316. isCloseList[toolIndex].isClose == 0
  4317. "
  4318. >
  4319. 折叠
  4320. </div>
  4321. <div
  4322. class="corOpen"
  4323. @click="contract(toolIndex)"
  4324. v-if="isCloseList[toolIndex].isClose == 1"
  4325. >
  4326. 展开
  4327. </div>
  4328. </div>
  4329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4330. </div>
  4331. <div>
  4332. <div
  4333. :id="'tool-' + toolIndex"
  4334. :style="{
  4335. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4336. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4337. }"
  4338. class="worksDetailBox"
  4339. v-if="
  4340. worksStudent.length &&
  4341. worksStudent[toolIndex].length > 0
  4342. "
  4343. >
  4344. <div
  4345. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4346. :key="wIndex"
  4347. class="isWorksName2"
  4348. @click="
  4349. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4350. "
  4351. >
  4352. {{ w.sName }}
  4353. <img
  4354. class="deleteImg deleteImg2"
  4355. src="../../assets/deleteworks.png"
  4356. v-if="
  4357. w.userid == userid || tType == 1 || tType == 4
  4358. "
  4359. @click.stop="deleteWorks(w.wid)"
  4360. alt
  4361. />
  4362. </div>
  4363. <!-- <div class="works" style="
  4364. width: 200px;
  4365. height: 140px;
  4366. border-radius: 10px;
  4367. box-shadow: 0 0 6px 1px #dfdada;
  4368. overflow: hidden;
  4369. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4370. <div class="workImg">
  4371. <img src="../../assets/icon/works/noImg.png" @click="
  4372. openTools(
  4373. 4,
  4374. toolIndex,
  4375. taskCount,
  4376. w.works,
  4377. w.sName
  4378. )
  4379. " alt />
  4380. </div>
  4381. <div class="worksName">
  4382. <div>{{ w.sName }}</div>
  4383. <div>{{ w.time }}</div>
  4384. </div>
  4385. </div> -->
  4386. </div>
  4387. </div>
  4388. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4389. 未提交
  4390. </div>
  4391. <div
  4392. class="noWorksS"
  4393. v-if="noWorksS && noWorksS[toolIndex].length"
  4394. >
  4395. <div
  4396. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4397. :key="sIndex"
  4398. class="noWorksName"
  4399. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4400. >
  4401. <el-tooltip effect="dark" :content="s.student" placement="top">
  4402. <span>{{ s.student }}</span>
  4403. </el-tooltip>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. <div
  4408. v-if="
  4409. tType &&
  4410. ((tType == 2 && sIsOpen == true) ||
  4411. tType == 1 ||
  4412. tType == 4) &&
  4413. tool.tool.indexOf(45) != -1 &&
  4414. (tool.testJson.testJson[0].answer ||
  4415. tool.testJson.testJson[0].answer === 0) &&
  4416. checkJson[toolIndex].length
  4417. "
  4418. class="xuan_right_box"
  4419. >
  4420. <div
  4421. class="tool_right_box"
  4422. v-for="(item, index) in tool.testJson.testJson"
  4423. :key="index"
  4424. >
  4425. <div class="right_box_xuan" style="margin-right: 10px">
  4426. <span>正确率</span>
  4427. <span>{{
  4428. (checkJson[toolIndex][index].right
  4429. ? checkJson[toolIndex][index].right
  4430. : 0) + "%"
  4431. }}</span>
  4432. </div>
  4433. <div style="width: calc(100% - 30px);">
  4434. <el-tooltip
  4435. effect="light"
  4436. :content="index + 1 + '、' + item.teststitle"
  4437. placement="top"
  4438. popper-class="text_tooltip"
  4439. >
  4440. <div
  4441. style="
  4442. width: calc(100% - 130px);
  4443. display: flex;
  4444. white-space: nowrap;
  4445. overflow: hidden;
  4446. text-overflow: ellipsis;
  4447. word-break: break-word;
  4448. cursor: pointer;
  4449. "
  4450. >
  4451. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4452. </div>
  4453. </el-tooltip>
  4454. </div>
  4455. </div>
  4456. </div>
  4457. <div
  4458. class="xuan_right_box"
  4459. style="background: unset; padding: 0 10px; width: 91.5%"
  4460. v-if="
  4461. tType &&
  4462. ((tType == 2 && sIsOpen == true) ||
  4463. tType == 1 ||
  4464. tType == 4) &&
  4465. tool.tool.indexOf(45) != -1
  4466. "
  4467. >
  4468. <AskStatic2
  4469. v-if="
  4470. worksStudent.length &&
  4471. worksStudent[toolIndex].length > 0
  4472. "
  4473. :askJSON="tool"
  4474. :checkJson="checkJson[toolIndex]"
  4475. ></AskStatic2>
  4476. </div>
  4477. <div
  4478. v-if="
  4479. tType &&
  4480. ((tType == 2 && sIsOpen == true) ||
  4481. tType == 1 ||
  4482. tType == 4) &&
  4483. tool.tool.indexOf(45) != -1
  4484. "
  4485. class="worksBox"
  4486. >
  4487. <div
  4488. class="zuoyeYulan"
  4489. v-if="
  4490. worksStudent.length &&
  4491. worksStudent[toolIndex].length > 0
  4492. "
  4493. >
  4494. <div class="worksTop">
  4495. <div>作业预览</div>
  4496. <div
  4497. class="corOpen"
  4498. @click="contract(toolIndex)"
  4499. v-if="
  4500. (isCloseList[toolIndex].isCloseBoolean) &&
  4501. isCloseList[toolIndex].isClose == 0
  4502. "
  4503. >
  4504. 折叠
  4505. </div>
  4506. <div
  4507. class="corOpen"
  4508. @click="contract(toolIndex)"
  4509. v-if="isCloseList[toolIndex].isClose == 1"
  4510. >
  4511. 展开
  4512. </div>
  4513. </div>
  4514. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4515. </div>
  4516. <div>
  4517. <div
  4518. :id="'tool-' + toolIndex"
  4519. :style="{
  4520. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4521. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4522. }"
  4523. class="worksDetailBox"
  4524. v-if="
  4525. worksStudent.length &&
  4526. worksStudent[toolIndex].length > 0
  4527. "
  4528. >
  4529. <div
  4530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4531. :key="wIndex"
  4532. class="isWorksName2"
  4533. @click="
  4534. openTools(
  4535. 45,
  4536. toolIndex,
  4537. taskCount,
  4538. w.works,
  4539. w.sName
  4540. )
  4541. "
  4542. >
  4543. {{ w.sName }}
  4544. <img
  4545. class="deleteImg deleteImg2"
  4546. src="../../assets/deleteworks.png"
  4547. v-if="
  4548. w.userid == userid || tType == 1 || tType == 4
  4549. "
  4550. @click.stop="deleteWorks(w.wid)"
  4551. alt
  4552. />
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4557. 未提交
  4558. </div>
  4559. <div
  4560. class="noWorksS"
  4561. v-if="noWorksS && noWorksS[toolIndex].length"
  4562. >
  4563. <div
  4564. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4565. :key="sIndex"
  4566. class="noWorksName"
  4567. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4568. >
  4569. <el-tooltip effect="dark" :content="s.student" placement="top">
  4570. <span>{{ s.student }}</span>
  4571. </el-tooltip>
  4572. </div>
  4573. </div>
  4574. </div>
  4575. <div
  4576. v-if="
  4577. tType &&
  4578. ((tType == 2 && sIsOpen == true) ||
  4579. tType == 1 ||
  4580. tType == 4) &&
  4581. tool.tool.indexOf(69) != -1
  4582. "
  4583. class="worksBox"
  4584. >
  4585. <div
  4586. class="zuoyeYulan"
  4587. v-if="
  4588. worksStudent.length &&
  4589. worksStudent[toolIndex].length > 0
  4590. "
  4591. >
  4592. <div class="worksTop">
  4593. <div>作业预览</div>
  4594. <div
  4595. class="corOpen"
  4596. @click="contract(toolIndex)"
  4597. v-if="
  4598. (isCloseList[toolIndex].isCloseBoolean) &&
  4599. isCloseList[toolIndex].isClose == 0
  4600. "
  4601. >
  4602. 折叠
  4603. </div>
  4604. <div
  4605. class="corOpen"
  4606. @click="contract(toolIndex)"
  4607. v-if="isCloseList[toolIndex].isClose == 1"
  4608. >
  4609. 展开
  4610. </div>
  4611. </div>
  4612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4613. </div>
  4614. <div>
  4615. <div
  4616. :id="'tool-' + toolIndex"
  4617. :style="{
  4618. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4619. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4620. }"
  4621. class="worksDetailBox"
  4622. v-if="
  4623. worksStudent.length &&
  4624. worksStudent[toolIndex].length > 0
  4625. "
  4626. >
  4627. <div
  4628. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4629. :key="wIndex"
  4630. class="isWorksName2"
  4631. style="width: 160px;height: 65px;line-height: 65px;"
  4632. @click="
  4633. openTools(
  4634. 69,
  4635. toolIndex,
  4636. taskCount,
  4637. w.works,
  4638. w.sName,
  4639. w.wid
  4640. )
  4641. "
  4642. >
  4643. {{ w.sName }}
  4644. <img
  4645. class="deleteImg1"
  4646. src="../../assets/evaEnglish.png"
  4647. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4648. alt
  4649. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4650. />
  4651. <img
  4652. class="deleteImg deleteImg2"
  4653. src="../../assets/deleteworks.png"
  4654. v-if="
  4655. w.userid == userid || tType == 1 || tType == 4
  4656. "
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4664. 未提交
  4665. </div>
  4666. <div
  4667. class="noWorksS"
  4668. v-if="noWorksS && noWorksS[toolIndex].length"
  4669. >
  4670. <div
  4671. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4672. :key="sIndex"
  4673. class="noWorksName"
  4674. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4675. >
  4676. <el-tooltip effect="dark" :content="s.student" placement="top">
  4677. <span>{{ s.student }}</span>
  4678. </el-tooltip>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. <div
  4683. v-if="
  4684. tType &&
  4685. ((tType == 2 && sIsOpen == true) ||
  4686. tType == 1 ||
  4687. tType == 4) &&
  4688. tool.tool.indexOf(15) != -1
  4689. "
  4690. class="worksBox"
  4691. >
  4692. <div
  4693. class="zuoyeYulan"
  4694. v-if="
  4695. (worksStudent.length &&
  4696. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4697. "
  4698. >
  4699. <div class="worksTop">
  4700. <div>作业预览</div>
  4701. <div
  4702. class="corOpen"
  4703. @click="contract(toolIndex)"
  4704. v-if="
  4705. (isCloseList[toolIndex].isCloseBoolean) &&
  4706. isCloseList[toolIndex].isClose == 0
  4707. "
  4708. >
  4709. 折叠
  4710. </div>
  4711. <div
  4712. class="corOpen"
  4713. @click="contract(toolIndex)"
  4714. v-if="isCloseList[toolIndex].isClose == 1"
  4715. >
  4716. 展开
  4717. </div>
  4718. </div>
  4719. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4720. </div>
  4721. <div
  4722. class="group_workBox"
  4723. v-for="(g, gindex) in courseGroup.group"
  4724. :key="gindex"
  4725. >
  4726. <div class="group_box">
  4727. <div class="group_title">
  4728. <el-tooltip
  4729. class="item"
  4730. effect="light"
  4731. :content="g.name"
  4732. placement="top"
  4733. >
  4734. <div class="group_name">{{ g.name }}</div>
  4735. </el-tooltip>
  4736. </div>
  4737. <div
  4738. class="group_work"
  4739. v-if="
  4740. g.works &&
  4741. g.works.length &&
  4742. g.works[toolIndex].length
  4743. "
  4744. >
  4745. <div
  4746. class="works"
  4747. v-for="(w, wIndex) in g.works[toolIndex]"
  4748. :key="wIndex"
  4749. >
  4750. <div
  4751. class="workImg"
  4752. style="
  4753. border-radius: 15px;
  4754. box-shadow: 0px 0px 5px 5px #eee;
  4755. "
  4756. >
  4757. <div
  4758. class="answerBg"
  4759. style="border-radius: 15px 15px 0 0"
  4760. @click="
  4761. commentOther(w, toolIndex, wIndex, null, g.id)
  4762. "
  4763. >
  4764. <div class="answerContent">
  4765. {{ JSON.parse(w.works)[0].answer }}
  4766. </div>
  4767. <div
  4768. class="answerScore"
  4769. v-if="w.score"
  4770. @click.stop="openScore(w)"
  4771. :class="{
  4772. rightW:
  4773. w.userid == userid ||
  4774. tType == 1 ||
  4775. tType == 4,
  4776. }"
  4777. >
  4778. {{ JSON.parse(w.score).wScore }}分
  4779. </div>
  4780. <div
  4781. class="answerScore"
  4782. @click.stop="openScore(w)"
  4783. v-else-if="courseDetail.userid == userid"
  4784. :class="{
  4785. rightW:
  4786. w.userid == userid ||
  4787. tType == 1 ||
  4788. tType == 4,
  4789. }"
  4790. >
  4791. 评分
  4792. </div>
  4793. <img
  4794. class="deleteImg"
  4795. src="../../assets/deleteworks.png"
  4796. v-if="
  4797. w.userid == userid ||
  4798. tType == 1 ||
  4799. tType == 4
  4800. "
  4801. @click.stop="deleteWorks(w.wid)"
  4802. alt
  4803. />
  4804. </div>
  4805. <div class="comment">
  4806. <div class="worksName">
  4807. <div>{{ w.sName }}</div>
  4808. </div>
  4809. <div class="commentList">
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4814. "
  4815. >
  4816. <img
  4817. :src="w.isLikes == true ? likes : noLikes"
  4818. alt=""
  4819. />
  4820. </div>
  4821. <div>{{ w.likesCount }}</div>
  4822. </div>
  4823. <div
  4824. class="commentList"
  4825. style="margin-right: 15px"
  4826. >
  4827. <div
  4828. class="commentImg"
  4829. @click="
  4830. commentOther(
  4831. w,
  4832. toolIndex,
  4833. wIndex,
  4834. null,
  4835. g.id
  4836. )
  4837. "
  4838. >
  4839. <img
  4840. src="../../assets/icon/comment/comment.png"
  4841. alt=""
  4842. />
  4843. </div>
  4844. <div>{{ w.commentCount }}</div>
  4845. </div>
  4846. </div>
  4847. </div>
  4848. </div>
  4849. </div>
  4850. <div class="group_work" v-else>暂无提交作业</div>
  4851. </div>
  4852. </div>
  4853. <div
  4854. :id="'tool-' + toolIndex"
  4855. :style="{
  4856. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4857. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4858. }"
  4859. class="worksDetailBox"
  4860. v-if="
  4861. worksStudent.length &&
  4862. worksStudent[toolIndex].length > 0
  4863. "
  4864. >
  4865. <div
  4866. class="works"
  4867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4868. :key="wIndex"
  4869. >
  4870. <div
  4871. class="workImg"
  4872. style="
  4873. border-radius: 15px;
  4874. box-shadow: 0px 0px 5px 5px #eee;
  4875. "
  4876. >
  4877. <!-- <img
  4878. src="../../assets/icon/works/noImg.png"
  4879. @click="openTools(15, toolIndex, taskCount, w.works)"
  4880. alt=""
  4881. />-->
  4882. <div
  4883. class="answerBg"
  4884. style="border-radius: 15px 15px 0 0"
  4885. @click="commentOther(w, toolIndex, wIndex)"
  4886. >
  4887. <!-- <div>{{ w.sName }}</div> -->
  4888. <div class="answerContent">
  4889. {{ JSON.parse(w.works)[0].answer }}
  4890. </div>
  4891. <div
  4892. class="answerScore"
  4893. v-if="w.score"
  4894. @click.stop="openScore(w)"
  4895. :class="{
  4896. rightW:
  4897. w.userid == userid ||
  4898. tType == 1 ||
  4899. tType == 4,
  4900. }"
  4901. >
  4902. {{ JSON.parse(w.score).wScore }}分
  4903. </div>
  4904. <div
  4905. class="answerScore"
  4906. @click.stop="openScore(w)"
  4907. v-else-if="courseDetail.userid == userid"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid ||
  4911. tType == 1 ||
  4912. tType == 4,
  4913. }"
  4914. >
  4915. 评分
  4916. </div>
  4917. <img
  4918. class="deleteImg"
  4919. src="../../assets/deleteworks.png"
  4920. v-if="
  4921. w.userid == userid || tType == 1 || tType == 4
  4922. "
  4923. @click.stop="deleteWorks(w.wid)"
  4924. alt
  4925. />
  4926. </div>
  4927. <div class="comment">
  4928. <div class="worksName">
  4929. <div>{{ w.sName }}</div>
  4930. </div>
  4931. <div class="commentList">
  4932. <div
  4933. class="commentImg"
  4934. @click="
  4935. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4936. "
  4937. >
  4938. <img
  4939. :src="w.isLikes == true ? likes : noLikes"
  4940. alt=""
  4941. />
  4942. </div>
  4943. <div>{{ w.likesCount }}</div>
  4944. </div>
  4945. <div class="commentList" style="margin-right: 15px">
  4946. <div
  4947. class="commentImg"
  4948. @click="commentOther(w, toolIndex, wIndex)"
  4949. >
  4950. <img
  4951. src="../../assets/icon/comment/comment.png"
  4952. alt=""
  4953. />
  4954. </div>
  4955. <div>{{ w.commentCount }}</div>
  4956. </div>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. </div>
  4961. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4962. 未提交
  4963. </div>
  4964. <div
  4965. class="noWorksS"
  4966. v-if="noWorksS && noWorksS[toolIndex].length"
  4967. >
  4968. <div
  4969. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4970. :key="sIndex"
  4971. class="noWorksName"
  4972. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4973. >
  4974. <el-tooltip effect="dark" :content="s.student" placement="top">
  4975. <span>{{ s.student }}</span>
  4976. </el-tooltip>
  4977. </div>
  4978. </div>
  4979. </div>
  4980. <div
  4981. v-if="
  4982. tType &&
  4983. ((tType == 2 && sIsOpen == true) ||
  4984. tType == 1 ||
  4985. tType == 4) &&
  4986. tool.tool.indexOf(1) != -1
  4987. "
  4988. class="worksBox"
  4989. >
  4990. <div
  4991. class="zuoyeYulan"
  4992. v-if="
  4993. (worksStudent.length &&
  4994. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4995. "
  4996. >
  4997. <div class="worksTop">
  4998. <div>作业预览</div>
  4999. <div
  5000. class="corOpen"
  5001. @click="contract(toolIndex)"
  5002. v-if="
  5003. (isCloseList[toolIndex].isCloseBoolean) &&
  5004. isCloseList[toolIndex].isClose == 0
  5005. "
  5006. >
  5007. 折叠
  5008. </div>
  5009. <div
  5010. class="corOpen"
  5011. @click="contract(toolIndex)"
  5012. v-if="isCloseList[toolIndex].isClose == 1"
  5013. >
  5014. 展开
  5015. </div>
  5016. </div>
  5017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5018. </div>
  5019. <div
  5020. class="group_workBox"
  5021. v-for="(g, gindex) in courseGroup.group"
  5022. :key="gindex"
  5023. >
  5024. <div class="group_box">
  5025. <div class="group_title">
  5026. <el-tooltip
  5027. class="item"
  5028. effect="light"
  5029. :content="g.name"
  5030. placement="top"
  5031. >
  5032. <div class="group_name">{{ g.name }}</div>
  5033. </el-tooltip>
  5034. </div>
  5035. <div
  5036. class="group_work"
  5037. v-if="
  5038. g.works &&
  5039. g.works.length &&
  5040. g.works[toolIndex].length
  5041. "
  5042. >
  5043. <div
  5044. class="works"
  5045. style="
  5046. width: 200px;
  5047. height: 140px;
  5048. margin: 10px 10px 10px 0;
  5049. border-radius: 15px;
  5050. box-shadow: 0 0 6px 1px #dfdada;
  5051. "
  5052. v-for="(w, wIndex) in g.works[toolIndex]"
  5053. :key="wIndex"
  5054. :class="w.type == 1 ? 'isTypeOne' : ''"
  5055. >
  5056. <div class="workImg">
  5057. <img
  5058. :src="w.works"
  5059. @click="previewImg(w.works,w)"
  5060. alt
  5061. />
  5062. <div
  5063. class="answerScore"
  5064. v-if="w.score"
  5065. @click.stop="openScore(w)"
  5066. :class="{
  5067. rightW:
  5068. w.userid == userid ||
  5069. tType == 1 ||
  5070. tType == 4,
  5071. }"
  5072. >
  5073. {{ JSON.parse(w.score).wScore }}分
  5074. </div>
  5075. <div
  5076. class="answerScore"
  5077. @click.stop="openScore(w)"
  5078. v-else-if="courseDetail.userid == userid"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4,
  5084. }"
  5085. >
  5086. 评分
  5087. </div>
  5088. <img
  5089. class="deleteImg"
  5090. src="../../assets/deleteworks.png"
  5091. v-if="
  5092. w.userid == userid || tType == 1 || tType == 4
  5093. "
  5094. @click.stop="deleteWorks(w.wid)"
  5095. alt
  5096. />
  5097. </div>
  5098. <div class="comment" style="min-width: 200px">
  5099. <div class="worksName">
  5100. <div>{{ w.sName }}</div>
  5101. </div>
  5102. <div class="commentList">
  5103. <div class="commentList">
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5108. "
  5109. >
  5110. <img
  5111. :src="w.isLikes == true ? likes : noLikes"
  5112. alt=""
  5113. />
  5114. </div>
  5115. <div>{{ w.likesCount }}</div>
  5116. </div>
  5117. <div
  5118. class="commentList"
  5119. style="margin-right: 15px"
  5120. >
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. commentOther(
  5125. w,
  5126. toolIndex,
  5127. wIndex,
  5128. null,
  5129. g.id
  5130. )
  5131. "
  5132. >
  5133. <img
  5134. src="../../assets/icon/comment/comment.png"
  5135. alt=""
  5136. />
  5137. </div>
  5138. <div>{{ w.commentCount }}</div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. </div>
  5143. </div>
  5144. <div class="group_work" v-else>暂无提交作业</div>
  5145. </div>
  5146. </div>
  5147. <div
  5148. :id="'tool-' + toolIndex"
  5149. :style="{
  5150. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5151. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5152. }"
  5153. class="worksDetailBox"
  5154. v-if="
  5155. worksStudent.length &&
  5156. worksStudent[toolIndex].length > 0
  5157. "
  5158. >
  5159. <div
  5160. class="works"
  5161. style="
  5162. width: 200px;
  5163. height: 140px;
  5164. margin: 10px 10px 10px 0;
  5165. border-radius: 15px;
  5166. box-shadow: 0 0 6px 1px #dfdada;
  5167. "
  5168. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5169. :key="wIndex"
  5170. >
  5171. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5172. <div class="workImg">
  5173. <img
  5174. :src="w.works"
  5175. @click="previewImg(w.works,w)"
  5176. alt
  5177. />
  5178. <div
  5179. class="answerScore"
  5180. v-if="w.score"
  5181. @click.stop="openScore(w)"
  5182. :class="{
  5183. rightW:
  5184. w.userid == userid || tType == 1 || tType == 4,
  5185. }"
  5186. >
  5187. {{ JSON.parse(w.score).wScore }}分
  5188. </div>
  5189. <div
  5190. class="answerScore"
  5191. @click.stop="openScore(w)"
  5192. v-else-if="courseDetail.userid == userid"
  5193. :class="{
  5194. rightW:
  5195. w.userid == userid || tType == 1 || tType == 4,
  5196. }"
  5197. >
  5198. 评分
  5199. </div>
  5200. <img
  5201. class="deleteImg"
  5202. src="../../assets/deleteworks.png"
  5203. v-if="
  5204. w.userid == userid || tType == 1 || tType == 4
  5205. "
  5206. @click.stop="deleteWorks(w.wid)"
  5207. alt
  5208. />
  5209. </div>
  5210. <div class="comment" style="min-width: 200px">
  5211. <div class="worksName">
  5212. <div>{{ w.sName }}</div>
  5213. </div>
  5214. <div class="commentList">
  5215. <div class="commentList">
  5216. <div
  5217. class="commentImg"
  5218. @click="
  5219. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5220. "
  5221. >
  5222. <img
  5223. :src="w.isLikes == true ? likes : noLikes"
  5224. alt=""
  5225. />
  5226. </div>
  5227. <div>{{ w.likesCount }}</div>
  5228. </div>
  5229. <div class="commentList" style="margin-right: 15px">
  5230. <div
  5231. class="commentImg"
  5232. @click="commentOther(w, toolIndex, wIndex)"
  5233. >
  5234. <img
  5235. src="../../assets/icon/comment/comment.png"
  5236. alt=""
  5237. />
  5238. </div>
  5239. <div>{{ w.commentCount }}</div>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. </div>
  5245. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5246. 未提交
  5247. </div>
  5248. <div
  5249. class="noWorksS"
  5250. v-if="noWorksS && noWorksS[toolIndex].length"
  5251. >
  5252. <div
  5253. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5254. :key="sIndex"
  5255. class="noWorksName"
  5256. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5257. >
  5258. <el-tooltip effect="dark" :content="s.student" placement="top">
  5259. <span>{{ s.student }}</span>
  5260. </el-tooltip>
  5261. </div>
  5262. </div>
  5263. </div>
  5264. <div
  5265. v-if="
  5266. tType &&
  5267. ((tType == 2 && sIsOpen == true) ||
  5268. tType == 1 ||
  5269. tType == 4) &&
  5270. tool.tool.indexOf(3) != -1
  5271. "
  5272. class="worksBox"
  5273. >
  5274. <div
  5275. class="zuoyeYulan"
  5276. v-if="
  5277. (worksStudent.length &&
  5278. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5279. "
  5280. >
  5281. <div class="worksTop">
  5282. <div>作业预览</div>
  5283. <div
  5284. class="corOpen"
  5285. @click="contract(toolIndex)"
  5286. v-if="
  5287. (isCloseList[toolIndex].isCloseBoolean) &&
  5288. isCloseList[toolIndex].isClose == 0
  5289. "
  5290. >
  5291. 折叠
  5292. </div>
  5293. <div
  5294. class="corOpen"
  5295. @click="contract(toolIndex)"
  5296. v-if="isCloseList[toolIndex].isClose == 1"
  5297. >
  5298. 展开
  5299. </div>
  5300. </div>
  5301. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5302. </div>
  5303. <div
  5304. class="group_workBox"
  5305. v-for="(g, gindex) in courseGroup.group"
  5306. :key="gindex"
  5307. >
  5308. <div class="group_box">
  5309. <div class="group_title">
  5310. <el-tooltip
  5311. class="item"
  5312. effect="light"
  5313. :content="g.name"
  5314. placement="top"
  5315. >
  5316. <div class="group_name">{{ g.name }}</div>
  5317. </el-tooltip>
  5318. </div>
  5319. <div
  5320. class="group_work"
  5321. v-if="
  5322. g.works &&
  5323. g.works.length &&
  5324. g.works[toolIndex].length
  5325. "
  5326. >
  5327. <div
  5328. class="works"
  5329. style="
  5330. width: 200px;
  5331. height: 140px;
  5332. margin: 10px 10px 10px 0;
  5333. border-radius: 15px;
  5334. box-shadow: 0 0 6px 1px #dfdada;
  5335. "
  5336. v-for="(w, wIndex) in g.works[toolIndex]"
  5337. :key="wIndex"
  5338. :class="w.type == 1 ? 'isTypeOne' : ''"
  5339. >
  5340. <div class="workImg">
  5341. <img
  5342. :src="w.works"
  5343. @click="previewImg(w.works,w)"
  5344. alt
  5345. />
  5346. <div
  5347. class="answerScore"
  5348. v-if="w.score"
  5349. @click.stop="openScore(w)"
  5350. :class="{
  5351. rightW:
  5352. w.userid == userid ||
  5353. tType == 1 ||
  5354. tType == 4,
  5355. }"
  5356. >
  5357. {{ JSON.parse(w.score).wScore }}分
  5358. </div>
  5359. <div
  5360. class="answerScore"
  5361. @click.stop="openScore(w)"
  5362. v-else-if="courseDetail.userid == userid"
  5363. :class="{
  5364. rightW:
  5365. w.userid == userid ||
  5366. tType == 1 ||
  5367. tType == 4,
  5368. }"
  5369. >
  5370. 评分
  5371. </div>
  5372. <img
  5373. class="deleteImg"
  5374. src="../../assets/deleteworks.png"
  5375. v-if="
  5376. w.userid == userid || tType == 1 || tType == 4
  5377. "
  5378. @click.stop="deleteWorks(w.wid)"
  5379. alt
  5380. />
  5381. </div>
  5382. <div class="comment" style="min-width: 200px">
  5383. <div class="worksName">
  5384. <div>{{ w.sName }}</div>
  5385. </div>
  5386. <div class="commentList">
  5387. <div class="commentList">
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5392. "
  5393. >
  5394. <img
  5395. :src="w.isLikes == true ? likes : noLikes"
  5396. alt=""
  5397. />
  5398. </div>
  5399. <div>{{ w.likesCount }}</div>
  5400. </div>
  5401. <div
  5402. class="commentList"
  5403. style="margin-right: 15px"
  5404. >
  5405. <div
  5406. class="commentImg"
  5407. @click="
  5408. commentOther(
  5409. w,
  5410. toolIndex,
  5411. wIndex,
  5412. null,
  5413. g.id
  5414. )
  5415. "
  5416. >
  5417. <img
  5418. src="../../assets/icon/comment/comment.png"
  5419. alt=""
  5420. />
  5421. </div>
  5422. <div>{{ w.commentCount }}</div>
  5423. </div>
  5424. </div>
  5425. </div>
  5426. </div>
  5427. </div>
  5428. <div class="group_work" v-else>暂无提交作业</div>
  5429. </div>
  5430. </div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5435. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5436. }"
  5437. class="worksDetailBox"
  5438. v-if="
  5439. worksStudent.length &&
  5440. worksStudent[toolIndex].length > 0
  5441. "
  5442. >
  5443. <div
  5444. class="works"
  5445. style="
  5446. width: 200px;
  5447. height: 140px;
  5448. margin: 10px 10px 10px 0;
  5449. border-radius: 15px;
  5450. box-shadow: 0 0 6px 1px #dfdada;
  5451. "
  5452. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5453. :key="wIndex"
  5454. >
  5455. <!-- @click="previewImg(w.works)" -->
  5456. <div class="workImg">
  5457. <img
  5458. :src="w.works"
  5459. @click="previewImg(w.works,w)"
  5460. alt
  5461. />
  5462. <div
  5463. class="answerScore"
  5464. v-if="w.score"
  5465. @click.stop="openScore(w)"
  5466. :class="{
  5467. rightW:
  5468. w.userid == userid || tType == 1 || tType == 4,
  5469. }"
  5470. >
  5471. {{ JSON.parse(w.score).wScore }}分
  5472. </div>
  5473. <div
  5474. class="answerScore"
  5475. @click.stop="openScore(w)"
  5476. v-else-if="courseDetail.userid == userid"
  5477. :class="{
  5478. rightW:
  5479. w.userid == userid || tType == 1 || tType == 4,
  5480. }"
  5481. >
  5482. 评分
  5483. </div>
  5484. <img
  5485. class="deleteImg"
  5486. src="../../assets/deleteworks.png"
  5487. v-if="
  5488. w.userid == userid || tType == 1 || tType == 4
  5489. "
  5490. @click.stop="deleteWorks(w.wid)"
  5491. alt
  5492. />
  5493. </div>
  5494. <div class="comment" style="min-width: 200px">
  5495. <div class="worksName">
  5496. <div>{{ w.sName }}</div>
  5497. </div>
  5498. <div class="commentList">
  5499. <div class="commentList">
  5500. <div
  5501. class="commentImg"
  5502. @click="
  5503. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5504. "
  5505. >
  5506. <img
  5507. :src="w.isLikes == true ? likes : noLikes"
  5508. alt=""
  5509. />
  5510. </div>
  5511. <div>{{ w.likesCount }}</div>
  5512. </div>
  5513. <div class="commentList" style="margin-right: 15px">
  5514. <div
  5515. class="commentImg"
  5516. @click="commentOther(w, toolIndex, wIndex)"
  5517. >
  5518. <img
  5519. src="../../assets/icon/comment/comment.png"
  5520. alt=""
  5521. />
  5522. </div>
  5523. <div>{{ w.commentCount }}</div>
  5524. </div>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5530. 未提交
  5531. </div>
  5532. <div
  5533. class="noWorksS"
  5534. v-if="noWorksS && noWorksS[toolIndex].length"
  5535. >
  5536. <div
  5537. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5538. :key="sIndex"
  5539. class="noWorksName"
  5540. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5541. >
  5542. <el-tooltip effect="dark" :content="s.student" placement="top">
  5543. <span>{{ s.student }}</span>
  5544. </el-tooltip>
  5545. </div>
  5546. </div>
  5547. </div>
  5548. <div
  5549. v-if="
  5550. tType &&
  5551. ((tType == 2 && sIsOpen == true) ||
  5552. tType == 1 ||
  5553. tType == 4) &&
  5554. tool.tool.indexOf(6) != -1
  5555. "
  5556. class="worksBox"
  5557. >
  5558. <div
  5559. class="zuoyeYulan"
  5560. v-if="
  5561. (worksStudent.length &&
  5562. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5563. "
  5564. >
  5565. <div class="worksTop">
  5566. <div>作业预览</div>
  5567. <div
  5568. class="corOpen"
  5569. @click="contract(toolIndex)"
  5570. v-if="
  5571. (isCloseList[toolIndex].isCloseBoolean) &&
  5572. isCloseList[toolIndex].isClose == 0
  5573. "
  5574. >
  5575. 折叠
  5576. </div>
  5577. <div
  5578. class="corOpen"
  5579. @click="contract(toolIndex)"
  5580. v-if="isCloseList[toolIndex].isClose == 1"
  5581. >
  5582. 展开
  5583. </div>
  5584. </div>
  5585. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5586. </div>
  5587. <div
  5588. class="group_workBox"
  5589. v-for="(g, gindex) in courseGroup.group"
  5590. :key="gindex"
  5591. >
  5592. <div class="group_box">
  5593. <div class="group_title">
  5594. <el-tooltip
  5595. class="item"
  5596. effect="light"
  5597. :content="g.name"
  5598. placement="top"
  5599. >
  5600. <div class="group_name">{{ g.name }}</div>
  5601. </el-tooltip>
  5602. </div>
  5603. <div
  5604. class="group_work"
  5605. v-if="
  5606. g.works &&
  5607. g.works.length &&
  5608. g.works[toolIndex].length
  5609. "
  5610. >
  5611. <div
  5612. class="works"
  5613. style="
  5614. width: 200px;
  5615. height: 140px;
  5616. margin: 10px 10px 10px 0;
  5617. border-radius: 15px;
  5618. box-shadow: 0 0 6px 1px #dfdada;
  5619. "
  5620. v-for="(w, wIndex) in g.works[toolIndex]"
  5621. :key="wIndex"
  5622. :class="w.type == 1 ? 'isTypeOne' : ''"
  5623. >
  5624. <div class="workImg">
  5625. <img
  5626. :src="w.works"
  5627. @click="previewImg(w.works,w)"
  5628. alt
  5629. />
  5630. <div
  5631. class="answerScore"
  5632. v-if="w.score"
  5633. @click.stop="openScore(w)"
  5634. :class="{
  5635. rightW:
  5636. w.userid == userid ||
  5637. tType == 1 ||
  5638. tType == 4,
  5639. }"
  5640. >
  5641. {{ JSON.parse(w.score).wScore }}分
  5642. </div>
  5643. <div
  5644. class="answerScore"
  5645. @click.stop="openScore(w)"
  5646. v-else-if="courseDetail.userid == userid"
  5647. :class="{
  5648. rightW:
  5649. w.userid == userid ||
  5650. tType == 1 ||
  5651. tType == 4,
  5652. }"
  5653. >
  5654. 评分
  5655. </div>
  5656. <img
  5657. class="deleteImg"
  5658. src="../../assets/deleteworks.png"
  5659. v-if="
  5660. w.userid == userid || tType == 1 || tType == 4
  5661. "
  5662. @click.stop="deleteWorks(w.wid)"
  5663. alt
  5664. />
  5665. </div>
  5666. <div class="comment" style="min-width: 200px">
  5667. <div class="worksName">
  5668. <div>{{ w.sName }}</div>
  5669. </div>
  5670. <div class="commentList">
  5671. <div class="commentList">
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5676. "
  5677. >
  5678. <img
  5679. :src="w.isLikes == true ? likes : noLikes"
  5680. alt=""
  5681. />
  5682. </div>
  5683. <div>{{ w.likesCount }}</div>
  5684. </div>
  5685. <div
  5686. class="commentList"
  5687. style="margin-right: 15px"
  5688. >
  5689. <div
  5690. class="commentImg"
  5691. @click="
  5692. commentOther(
  5693. w,
  5694. toolIndex,
  5695. wIndex,
  5696. null,
  5697. g.id
  5698. )
  5699. "
  5700. >
  5701. <img
  5702. src="../../assets/icon/comment/comment.png"
  5703. alt=""
  5704. />
  5705. </div>
  5706. <div>{{ w.commentCount }}</div>
  5707. </div>
  5708. </div>
  5709. </div>
  5710. </div>
  5711. </div>
  5712. <div class="group_work" v-else>暂无提交作业</div>
  5713. </div>
  5714. </div>
  5715. <div
  5716. :id="'tool-' + toolIndex"
  5717. :style="{
  5718. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5719. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5720. }"
  5721. class="worksDetailBox"
  5722. v-if="
  5723. worksStudent.length &&
  5724. worksStudent[toolIndex].length > 0
  5725. "
  5726. >
  5727. <div
  5728. class="works"
  5729. style="
  5730. width: 200px;
  5731. height: 140px;
  5732. margin: 10px 10px 10px 0;
  5733. border-radius: 15px;
  5734. box-shadow: 0 0 6px 1px #dfdada;
  5735. "
  5736. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5737. :key="wIndex"
  5738. >
  5739. <!-- @click="previewImg(w.works)" -->
  5740. <div class="workImg">
  5741. <img
  5742. :src="w.works"
  5743. @click="previewImg(w.works,w)"
  5744. alt
  5745. />
  5746. <div
  5747. class="answerScore"
  5748. v-if="w.score"
  5749. @click.stop="openScore(w)"
  5750. :class="{
  5751. rightW:
  5752. w.userid == userid || tType == 1 || tType == 4,
  5753. }"
  5754. >
  5755. {{ JSON.parse(w.score).wScore }}分
  5756. </div>
  5757. <div
  5758. class="answerScore"
  5759. @click.stop="openScore(w)"
  5760. v-else-if="courseDetail.userid == userid"
  5761. :class="{
  5762. rightW:
  5763. w.userid == userid || tType == 1 || tType == 4,
  5764. }"
  5765. >
  5766. 评分
  5767. </div>
  5768. <img
  5769. class="deleteImg"
  5770. src="../../assets/deleteworks.png"
  5771. v-if="
  5772. w.userid == userid || tType == 1 || tType == 4
  5773. "
  5774. @click.stop="deleteWorks(w.wid)"
  5775. alt
  5776. />
  5777. </div>
  5778. <div class="comment" style="min-width: 200px">
  5779. <div class="worksName">
  5780. <div>{{ w.sName }}</div>
  5781. </div>
  5782. <div class="commentList">
  5783. <div class="commentList">
  5784. <div
  5785. class="commentImg"
  5786. @click="
  5787. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5788. "
  5789. >
  5790. <img
  5791. :src="w.isLikes == true ? likes : noLikes"
  5792. alt=""
  5793. />
  5794. </div>
  5795. <div>{{ w.likesCount }}</div>
  5796. </div>
  5797. <div class="commentList" style="margin-right: 15px">
  5798. <div
  5799. class="commentImg"
  5800. @click="commentOther(w, toolIndex, wIndex)"
  5801. >
  5802. <img
  5803. src="../../assets/icon/comment/comment.png"
  5804. alt=""
  5805. />
  5806. </div>
  5807. <div>{{ w.commentCount }}</div>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. </div>
  5812. </div>
  5813. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5814. 未提交
  5815. </div>
  5816. <div
  5817. class="noWorksS"
  5818. v-if="noWorksS && noWorksS[toolIndex].length"
  5819. >
  5820. <div
  5821. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5822. :key="sIndex"
  5823. class="noWorksName"
  5824. >
  5825. <el-tooltip effect="dark" :content="s.student" placement="top">
  5826. <span>{{ s.student }}</span>
  5827. </el-tooltip>
  5828. </div>
  5829. </div>
  5830. </div>
  5831. <div
  5832. v-if="
  5833. tType &&
  5834. ((tType == 2 && sIsOpen == true) ||
  5835. tType == 1 ||
  5836. tType == 4) &&
  5837. tool.tool.indexOf(7) != -1
  5838. "
  5839. class="worksBox"
  5840. >
  5841. <div
  5842. class="zuoyeYulan"
  5843. v-if="
  5844. (worksStudent.length &&
  5845. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5846. "
  5847. >
  5848. <div class="worksTop">
  5849. <div>作业预览</div>
  5850. <div
  5851. class="corOpen"
  5852. @click="contract(toolIndex)"
  5853. v-if="
  5854. (isCloseList[toolIndex].isCloseBoolean) &&
  5855. isCloseList[toolIndex].isClose == 0
  5856. "
  5857. >
  5858. 折叠
  5859. </div>
  5860. <div
  5861. class="corOpen"
  5862. @click="contract(toolIndex)"
  5863. v-if="isCloseList[toolIndex].isClose == 1"
  5864. >
  5865. 展开
  5866. </div>
  5867. </div>
  5868. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5869. </div>
  5870. <div
  5871. class="group_workBox"
  5872. v-for="(g, gindex) in courseGroup.group"
  5873. :key="gindex"
  5874. >
  5875. <div class="group_box">
  5876. <div class="group_title">
  5877. <el-tooltip
  5878. class="item"
  5879. effect="light"
  5880. :content="g.name"
  5881. placement="top"
  5882. >
  5883. <div class="group_name">{{ g.name }}</div>
  5884. </el-tooltip>
  5885. </div>
  5886. <div
  5887. class="group_work"
  5888. v-if="
  5889. g.works &&
  5890. g.works.length &&
  5891. g.works[toolIndex].length
  5892. "
  5893. >
  5894. <div
  5895. class="works"
  5896. style="
  5897. width: 200px;
  5898. height: 140px;
  5899. margin: 10px 10px 10px 0;
  5900. border-radius: 15px;
  5901. box-shadow: 0 0 6px 1px #dfdada;
  5902. "
  5903. v-for="(w, wIndex) in g.works[toolIndex]"
  5904. :key="wIndex"
  5905. :class="w.type == 1 ? 'isTypeOne' : ''"
  5906. >
  5907. <div class="workImg">
  5908. <img
  5909. :src="w.works"
  5910. @click="previewImg(w.works,w)"
  5911. alt
  5912. />
  5913. <div
  5914. class="answerScore"
  5915. v-if="w.score"
  5916. @click.stop="openScore(w)"
  5917. :class="{
  5918. rightW:
  5919. w.userid == userid ||
  5920. tType == 1 ||
  5921. tType == 4,
  5922. }"
  5923. >
  5924. {{ JSON.parse(w.score).wScore }}分
  5925. </div>
  5926. <div
  5927. class="answerScore"
  5928. @click.stop="openScore(w)"
  5929. v-else-if="courseDetail.userid == userid"
  5930. :class="{
  5931. rightW:
  5932. w.userid == userid ||
  5933. tType == 1 ||
  5934. tType == 4,
  5935. }"
  5936. >
  5937. 评分
  5938. </div>
  5939. <img
  5940. class="deleteImg"
  5941. src="../../assets/deleteworks.png"
  5942. v-if="
  5943. w.userid == userid || tType == 1 || tType == 4
  5944. "
  5945. @click.stop="deleteWorks(w.wid)"
  5946. alt
  5947. />
  5948. </div>
  5949. <div class="comment" style="min-width: 200px">
  5950. <div class="worksName">
  5951. <div>{{ w.sName }}</div>
  5952. </div>
  5953. <div class="commentList">
  5954. <div class="commentList">
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5959. "
  5960. >
  5961. <img
  5962. :src="w.isLikes == true ? likes : noLikes"
  5963. alt=""
  5964. />
  5965. </div>
  5966. <div>{{ w.likesCount }}</div>
  5967. </div>
  5968. <div
  5969. class="commentList"
  5970. style="margin-right: 15px"
  5971. >
  5972. <div
  5973. class="commentImg"
  5974. @click="
  5975. commentOther(
  5976. w,
  5977. toolIndex,
  5978. wIndex,
  5979. null,
  5980. g.id
  5981. )
  5982. "
  5983. >
  5984. <img
  5985. src="../../assets/icon/comment/comment.png"
  5986. alt=""
  5987. />
  5988. </div>
  5989. <div>{{ w.commentCount }}</div>
  5990. </div>
  5991. </div>
  5992. </div>
  5993. </div>
  5994. </div>
  5995. <div class="group_work" v-else>暂无提交作业</div>
  5996. </div>
  5997. </div>
  5998. <div
  5999. :id="'tool-' + toolIndex"
  6000. :style="{
  6001. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6002. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6003. }"
  6004. class="worksDetailBox"
  6005. v-if="
  6006. worksStudent.length &&
  6007. worksStudent[toolIndex].length > 0
  6008. "
  6009. >
  6010. <div
  6011. class="works"
  6012. style="
  6013. width: 200px;
  6014. height: 140px;
  6015. margin: 10px 10px 10px 0;
  6016. border-radius: 15px;
  6017. box-shadow: 0 0 6px 1px #dfdada;
  6018. "
  6019. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6020. :key="wIndex"
  6021. >
  6022. <!-- @click="previewImg(w.works)" -->
  6023. <div class="workImg">
  6024. <img
  6025. :src="w.works"
  6026. @click="previewImg(w.works,w)"
  6027. alt
  6028. />
  6029. <div
  6030. class="answerScore"
  6031. v-if="w.score"
  6032. @click.stop="openScore(w)"
  6033. :class="{
  6034. rightW:
  6035. w.userid == userid || tType == 1 || tType == 4,
  6036. }"
  6037. >
  6038. {{ JSON.parse(w.score).wScore }}分
  6039. </div>
  6040. <div
  6041. class="answerScore"
  6042. @click.stop="openScore(w)"
  6043. v-else-if="courseDetail.userid == userid"
  6044. :class="{
  6045. rightW:
  6046. w.userid == userid || tType == 1 || tType == 4,
  6047. }"
  6048. >
  6049. 评分
  6050. </div>
  6051. <img
  6052. class="deleteImg"
  6053. src="../../assets/deleteworks.png"
  6054. v-if="
  6055. w.userid == userid || tType == 1 || tType == 4
  6056. "
  6057. @click.stop="deleteWorks(w.wid)"
  6058. alt
  6059. />
  6060. </div>
  6061. <div class="comment" style="min-width: 200px">
  6062. <div class="worksName">
  6063. <div>{{ w.sName }}</div>
  6064. </div>
  6065. <div class="commentList">
  6066. <div class="commentList">
  6067. <div
  6068. class="commentImg"
  6069. @click="
  6070. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6071. "
  6072. >
  6073. <img
  6074. :src="w.isLikes == true ? likes : noLikes"
  6075. alt=""
  6076. />
  6077. </div>
  6078. <div>{{ w.likesCount }}</div>
  6079. </div>
  6080. <div class="commentList" style="margin-right: 15px">
  6081. <div
  6082. class="commentImg"
  6083. @click="commentOther(w, toolIndex, wIndex)"
  6084. >
  6085. <img
  6086. src="../../assets/icon/comment/comment.png"
  6087. alt=""
  6088. />
  6089. </div>
  6090. <div>{{ w.commentCount }}</div>
  6091. </div>
  6092. </div>
  6093. </div>
  6094. </div>
  6095. </div>
  6096. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6097. 未提交
  6098. </div>
  6099. <div
  6100. class="noWorksS"
  6101. v-if="noWorksS && noWorksS[toolIndex].length"
  6102. >
  6103. <div
  6104. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6105. :key="sIndex"
  6106. class="noWorksName"
  6107. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6108. >
  6109. <el-tooltip effect="dark" :content="s.student" placement="top">
  6110. <span>{{ s.student }}</span>
  6111. </el-tooltip>
  6112. </div>
  6113. </div>
  6114. </div>
  6115. <div
  6116. v-if="
  6117. tType &&
  6118. ((tType == 2 && sIsOpen == true) ||
  6119. tType == 1 ||
  6120. tType == 4) &&
  6121. tool.tool.indexOf(26) != -1
  6122. "
  6123. class="worksBox"
  6124. >
  6125. <div
  6126. class="zuoyeYulan"
  6127. v-if="
  6128. worksStudent.length &&
  6129. worksStudent[toolIndex].length > 0
  6130. "
  6131. >
  6132. <div class="worksTop">
  6133. <div>作业预览</div>
  6134. <div
  6135. class="corOpen"
  6136. @click="contract(toolIndex)"
  6137. v-if="
  6138. (isCloseList[toolIndex].isCloseBoolean) &&
  6139. isCloseList[toolIndex].isClose == 0
  6140. "
  6141. >
  6142. 折叠
  6143. </div>
  6144. <div
  6145. class="corOpen"
  6146. @click="contract(toolIndex)"
  6147. v-if="isCloseList[toolIndex].isClose == 1"
  6148. >
  6149. 展开
  6150. </div>
  6151. </div>
  6152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6153. </div>
  6154. <div
  6155. :id="'tool-' + toolIndex"
  6156. :style="{
  6157. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6158. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6159. }"
  6160. class="worksDetailBox"
  6161. v-if="
  6162. worksStudent.length &&
  6163. worksStudent[toolIndex].length > 0
  6164. "
  6165. >
  6166. <div
  6167. class="works"
  6168. style="width: 240px; height: 140px; overflow: hidden"
  6169. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6170. :key="wIndex"
  6171. :class="w.type == 1 ? 'isTypeOne' : ''"
  6172. >
  6173. <div class="workImg" v-if="w.type == 0">
  6174. <img
  6175. :src="w.works"
  6176. @click="previewImg(w.works,w)"
  6177. alt
  6178. />
  6179. <img
  6180. class="deleteImg"
  6181. src="../../assets/deleteworks.png"
  6182. v-if="
  6183. w.userid == userid || tType == 1 || tType == 4
  6184. "
  6185. @click.stop="deleteWorks(w.wid)"
  6186. alt
  6187. />
  6188. </div>
  6189. <div class="workImg" v-if="w.type == 1">
  6190. <img :src="word" @click="openFile(w.works)" alt />
  6191. <img
  6192. class="deleteImg"
  6193. src="../../assets/deleteworks.png"
  6194. v-if="
  6195. w.userid == userid || tType == 1 || tType == 4
  6196. "
  6197. @click.stop="deleteWorks(w.wid)"
  6198. alt
  6199. />
  6200. </div>
  6201. <div class="worksName">
  6202. <div>{{ w.sName }}</div>
  6203. </div>
  6204. </div>
  6205. </div>
  6206. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6207. 未提交
  6208. </div>
  6209. <div
  6210. class="noWorksS"
  6211. v-if="noWorksS && noWorksS[toolIndex].length"
  6212. >
  6213. <div
  6214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6215. :key="sIndex"
  6216. class="noWorksName"
  6217. >
  6218. <el-tooltip effect="dark" :content="s.student" placement="top">
  6219. <span>{{ s.student }}</span>
  6220. </el-tooltip>
  6221. </div>
  6222. </div>
  6223. </div>
  6224. <div
  6225. v-if="
  6226. tType &&
  6227. ((tType == 2 && sIsOpen == true) ||
  6228. tType == 1 ||
  6229. tType == 4) &&
  6230. tool.tool.indexOf(40) != -1
  6231. "
  6232. class="worksBox"
  6233. >
  6234. <div
  6235. class="zuoyeYulan"
  6236. v-if="
  6237. worksStudent.length &&
  6238. worksStudent[toolIndex].length > 0
  6239. "
  6240. >
  6241. <div class="worksTop">
  6242. <div>作业预览</div>
  6243. <div
  6244. class="corOpen"
  6245. @click="contract(toolIndex)"
  6246. v-if="
  6247. (isCloseList[toolIndex].isCloseBoolean) &&
  6248. isCloseList[toolIndex].isClose == 0
  6249. "
  6250. >
  6251. 折叠
  6252. </div>
  6253. <div
  6254. class="corOpen"
  6255. @click="contract(toolIndex)"
  6256. v-if="isCloseList[toolIndex].isClose == 1"
  6257. >
  6258. 展开
  6259. </div>
  6260. </div>
  6261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6262. </div>
  6263. <div
  6264. :id="'tool-' + toolIndex"
  6265. :style="{
  6266. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6267. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6268. }"
  6269. class="worksDetailBox"
  6270. v-if="
  6271. worksStudent.length &&
  6272. worksStudent[toolIndex].length > 0
  6273. "
  6274. >
  6275. <div
  6276. class="works"
  6277. style="
  6278. width: 200px;
  6279. height: 140px;
  6280. margin: 10px 10px 10px 0;
  6281. border-radius: 15px;
  6282. box-shadow: 0 0 6px 1px #dfdada;
  6283. "
  6284. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6285. :key="wIndex"
  6286. :class="w.type == 1 ? 'isTypeOne' : ''"
  6287. >
  6288. <div class="workImg">
  6289. <img
  6290. src="../../assets/icon/works/noImg.png"
  6291. @click="openPj(w.works, toolIndex)"
  6292. alt
  6293. />
  6294. <img
  6295. class="deleteImg"
  6296. src="../../assets/deleteworks.png"
  6297. v-if="
  6298. w.userid == userid || tType == 1 || tType == 4
  6299. "
  6300. @click.stop="deleteWorks(w.wid)"
  6301. alt
  6302. />
  6303. </div>
  6304. <div class="comment" style="min-width: 200px">
  6305. <div class="worksName">
  6306. <div>{{ w.sName }}</div>
  6307. </div>
  6308. <div class="commentList">
  6309. <div class="commentList">
  6310. <div
  6311. class="commentImg"
  6312. @click="
  6313. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6314. "
  6315. >
  6316. <img
  6317. :src="w.isLikes == true ? likes : noLikes"
  6318. alt=""
  6319. />
  6320. </div>
  6321. <div>{{ w.likesCount }}</div>
  6322. </div>
  6323. <div class="commentList" style="margin-right: 15px">
  6324. <div
  6325. class="commentImg"
  6326. @click="commentOther(w, toolIndex, wIndex)"
  6327. >
  6328. <img
  6329. src="../../assets/icon/comment/comment.png"
  6330. alt=""
  6331. />
  6332. </div>
  6333. <div>{{ w.commentCount }}</div>
  6334. </div>
  6335. </div>
  6336. </div>
  6337. </div>
  6338. </div>
  6339. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6340. 未提交
  6341. </div>
  6342. <div
  6343. class="noWorksS"
  6344. v-if="noWorksS && noWorksS[toolIndex].length"
  6345. >
  6346. <div
  6347. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6348. :key="sIndex"
  6349. class="noWorksName"
  6350. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6351. >
  6352. <el-tooltip effect="dark" :content="s.student" placement="top">
  6353. <span>{{ s.student }}</span>
  6354. </el-tooltip>
  6355. </div>
  6356. </div>
  6357. </div>
  6358. <div
  6359. v-if="
  6360. tType &&
  6361. tType == 2 &&
  6362. !sIsOpen &&
  6363. tool.tool.indexOf(40) != -1
  6364. "
  6365. class="worksBox"
  6366. >
  6367. <div
  6368. class="zuoyeYulan"
  6369. v-if="workStudent[toolIndex].length > 0"
  6370. >
  6371. <span class="worksTitle">作业预览</span>
  6372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6373. </div>
  6374. <div
  6375. class="worksDetailBox"
  6376. v-if="workStudent[toolIndex].length > 0"
  6377. >
  6378. <div
  6379. class="works"
  6380. style="
  6381. width: 200px;
  6382. height: 140px;
  6383. margin: 10px 10px 10px 0;
  6384. "
  6385. v-for="(w, wIndex) in workStudent[toolIndex]"
  6386. :key="wIndex"
  6387. >
  6388. <div class="workImg">
  6389. <img
  6390. src="../../assets/icon/works/noImg.png"
  6391. @click="openPj(w.works, toolIndex)"
  6392. alt
  6393. />
  6394. <img
  6395. class="deleteImg"
  6396. src="../../assets/deleteworks.png"
  6397. v-if="
  6398. w.userid == userid || tType == 1 || tType == 4
  6399. "
  6400. @click.stop="deleteWorks(w.wid)"
  6401. alt
  6402. />
  6403. </div>
  6404. <div class="worksName">
  6405. <div>{{ w.sName }}</div>
  6406. </div>
  6407. </div>
  6408. </div>
  6409. </div>
  6410. <div
  6411. v-if="
  6412. tType &&
  6413. ((tType == 2 && sIsOpen == true) ||
  6414. tType == 1 ||
  6415. tType == 4) &&
  6416. tool.tool.indexOf(41) != -1
  6417. "
  6418. >
  6419. <AnswerData2
  6420. v-if="
  6421. worksStudent.length &&
  6422. worksStudent[toolIndex].length > 0
  6423. "
  6424. :problemJson="tool.selectJson.answer"
  6425. :people="worksStudent[toolIndex]"
  6426. ></AnswerData2>
  6427. </div>
  6428. <div
  6429. v-if="
  6430. tType &&
  6431. ((tType == 2 && sIsOpen == true) ||
  6432. tType == 1 ||
  6433. tType == 4) &&
  6434. tool.tool.indexOf(41) != -1
  6435. "
  6436. class="worksBox"
  6437. >
  6438. <div
  6439. class="zuoyeYulan"
  6440. v-if="
  6441. worksStudent.length &&
  6442. worksStudent[toolIndex].length > 0
  6443. "
  6444. >
  6445. <div class="worksTop">
  6446. <div>作业预览</div>
  6447. <div
  6448. class="corOpen"
  6449. @click="contract(toolIndex)"
  6450. v-if="
  6451. (isCloseList[toolIndex].isCloseBoolean) &&
  6452. isCloseList[toolIndex].isClose == 0
  6453. "
  6454. >
  6455. 折叠
  6456. </div>
  6457. <div
  6458. class="corOpen"
  6459. @click="contract(toolIndex)"
  6460. v-if="isCloseList[toolIndex].isClose == 1"
  6461. >
  6462. 展开
  6463. </div>
  6464. </div>
  6465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6466. </div>
  6467. <div
  6468. :id="'tool-' + toolIndex"
  6469. :style="{
  6470. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6471. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6472. }"
  6473. class="worksDetailBox"
  6474. v-if="
  6475. worksStudent.length &&
  6476. worksStudent[toolIndex].length > 0
  6477. "
  6478. >
  6479. <div
  6480. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6481. :key="wIndex"
  6482. class="isWorksName2"
  6483. @click="openXz(w, toolIndex)"
  6484. >
  6485. {{ w.sName }}
  6486. <img
  6487. class="deleteImg deleteImg2"
  6488. src="../../assets/deleteworks.png"
  6489. v-if="w.userid == userid || tType == 1 || tType == 4"
  6490. @click.stop="deleteWorks(w.wid)"
  6491. alt
  6492. />
  6493. </div>
  6494. <!-- <div
  6495. class="works"
  6496. style="
  6497. width: 200px;
  6498. height: 140px;
  6499. margin: 10px 10px 10px 0;
  6500. border-radius: 15px;
  6501. box-shadow: 0 0 6px 1px #dfdada;
  6502. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6503. :class="w.type == 5 ? 'isTypeOne' : ''">
  6504. <div class="workImg">
  6505. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6506. </div>
  6507. <div class="worksName">
  6508. <div>{{ w.sName }}</div>
  6509. </div>
  6510. </div> -->
  6511. </div>
  6512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6513. 未提交
  6514. </div>
  6515. <div
  6516. class="noWorksS"
  6517. v-if="noWorksS && noWorksS[toolIndex].length"
  6518. >
  6519. <div
  6520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6521. :key="sIndex"
  6522. class="noWorksName"
  6523. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6524. >
  6525. <el-tooltip effect="dark" :content="s.student" placement="top">
  6526. <span>{{ s.student }}</span>
  6527. </el-tooltip>
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div
  6532. v-if="
  6533. tType &&
  6534. tType == 2 &&
  6535. !sIsOpen &&
  6536. tool.tool.indexOf(41) != -1
  6537. "
  6538. class="worksBox"
  6539. >
  6540. <div
  6541. class="zuoyeYulan"
  6542. v-if="workStudent[toolIndex].length > 0"
  6543. >
  6544. <span class="worksTitle">作业预览</span>
  6545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6546. </div>
  6547. <div
  6548. class="worksDetailBox"
  6549. v-if="workStudent[toolIndex].length > 0"
  6550. >
  6551. <div
  6552. class="works"
  6553. style="
  6554. width: 200px;
  6555. height: 140px;
  6556. margin: 10px 10px 10px 0;
  6557. "
  6558. v-for="(w, wIndex) in workStudent[toolIndex]"
  6559. :key="wIndex"
  6560. >
  6561. <div class="workImg">
  6562. <img
  6563. src="../../assets/icon/works/noImg.png"
  6564. @click="openXz(w, toolIndex)"
  6565. alt
  6566. />
  6567. <img
  6568. class="deleteImg"
  6569. src="../../assets/deleteworks.png"
  6570. v-if="
  6571. w.userid == userid || tType == 1 || tType == 4
  6572. "
  6573. @click.stop="deleteWorks(w.wid)"
  6574. alt
  6575. />
  6576. </div>
  6577. <div class="worksName">
  6578. <div>{{ w.sName }}</div>
  6579. </div>
  6580. </div>
  6581. </div>
  6582. </div>
  6583. <div v-if="false" class="xuan_right_box">
  6584. <div
  6585. class="tool_right_box"
  6586. v-for="(item, index) in tool.sentenceList"
  6587. :key="index"
  6588. >
  6589. <div>
  6590. <span
  6591. style="word-break: break-all; white-space: normal"
  6592. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6593. >
  6594. </div>
  6595. <div class="right_box_xuan">
  6596. <span>正确率</span>
  6597. <span>{{
  6598. (checkJson[toolIndex][index].right
  6599. ? checkJson[toolIndex][index].right
  6600. : 0) + "%"
  6601. }}</span>
  6602. </div>
  6603. <div class="right_box_xuan">
  6604. <span>答对人数</span>
  6605. <span>{{
  6606. checkJson[toolIndex][index].rightPerson.length
  6607. }}</span>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. <div
  6612. v-if="
  6613. tType &&
  6614. ((tType == 2 && sIsOpen == true) ||
  6615. tType == 1 ||
  6616. tType == 4) &&
  6617. tool.tool.indexOf(47) != -1
  6618. "
  6619. >
  6620. <!-- <AnswerData
  6621. v-if="
  6622. checkJson[toolIndex].length &&
  6623. (tool.sentenceList || tool.sentenceList.length > 0)
  6624. "
  6625. :people="checkJson[toolIndex]"
  6626. ></AnswerData> -->
  6627. <sortToolWorkShow v-if="
  6628. worksStudent[toolIndex].length
  6629. "
  6630. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6631. </div>
  6632. <div
  6633. v-if="
  6634. tType &&
  6635. tType == 2 &&
  6636. !sIsOpen &&
  6637. tool.tool.indexOf(47) != -1
  6638. "
  6639. class="worksBox"
  6640. >
  6641. <div
  6642. class="zuoyeYulan"
  6643. v-if="workStudent[toolIndex].length > 0"
  6644. >
  6645. <span class="worksTitle">作业预览</span>
  6646. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6647. </div>
  6648. <div
  6649. class="worksDetailBox"
  6650. v-if="workStudent[toolIndex].length > 0"
  6651. >
  6652. <div
  6653. class="works"
  6654. style="
  6655. width: 200px;
  6656. height: 140px;
  6657. margin: 10px 10px 10px 0;
  6658. "
  6659. v-for="(w, wIndex) in workStudent[toolIndex]"
  6660. :key="wIndex"
  6661. >
  6662. <!-- @click="openXz(w, toolIndex)" -->
  6663. <div class="workImg" @click="openSen(w, toolIndex)">
  6664. <img src="../../assets/icon/works/noImg.png" alt />
  6665. <img
  6666. class="deleteImg"
  6667. src="../../assets/deleteworks.png"
  6668. v-if="
  6669. w.userid == userid || tType == 1 || tType == 4
  6670. "
  6671. @click.stop="deleteWorks(w.wid)"
  6672. alt
  6673. />
  6674. </div>
  6675. <div class="worksName">
  6676. <div>
  6677. {{ w.sName }}
  6678. </div>
  6679. </div>
  6680. </div>
  6681. </div>
  6682. </div>
  6683. <div
  6684. v-if="
  6685. tType &&
  6686. ((tType == 2 && sIsOpen == true) ||
  6687. tType == 1 ||
  6688. tType == 4) &&
  6689. tool.tool.indexOf(47) != -1
  6690. "
  6691. class="worksBox"
  6692. >
  6693. <div
  6694. class="zuoyeYulan"
  6695. v-if="
  6696. worksStudent.length &&
  6697. worksStudent[toolIndex].length > 0
  6698. "
  6699. >
  6700. <div class="worksTop">
  6701. <div>作业预览</div>
  6702. <div
  6703. class="corOpen"
  6704. @click="contract(toolIndex)"
  6705. v-if="
  6706. (isCloseList[toolIndex].isCloseBoolean) &&
  6707. isCloseList[toolIndex].isClose == 0
  6708. "
  6709. >
  6710. 折叠
  6711. </div>
  6712. <div
  6713. class="corOpen"
  6714. @click="contract(toolIndex)"
  6715. v-if="isCloseList[toolIndex].isClose == 1"
  6716. >
  6717. 展开
  6718. </div>
  6719. </div>
  6720. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6721. </div>
  6722. <div
  6723. :id="'tool-' + toolIndex"
  6724. :style="{
  6725. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6726. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6727. }"
  6728. class="worksDetailBox"
  6729. v-if="
  6730. worksStudent.length &&
  6731. worksStudent[toolIndex].length > 0
  6732. "
  6733. >
  6734. <!-- @click="openXz(w, toolIndex)" -->
  6735. <div
  6736. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6737. :key="wIndex"
  6738. class="isWorksName2"
  6739. @click="openSen(w, toolIndex)"
  6740. >
  6741. {{ w.sName }}
  6742. <img
  6743. class="deleteImg deleteImg2"
  6744. src="../../assets/deleteworks.png"
  6745. v-if="w.userid == userid || tType == 1 || tType == 4"
  6746. @click.stop="deleteWorks(w.wid)"
  6747. alt
  6748. />
  6749. </div>
  6750. </div>
  6751. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6752. 未提交
  6753. </div>
  6754. <div
  6755. class="noWorksS"
  6756. v-if="noWorksS && noWorksS[toolIndex].length"
  6757. >
  6758. <div
  6759. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6760. :key="sIndex"
  6761. class="noWorksName"
  6762. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6763. >
  6764. <el-tooltip effect="dark" :content="s.student" placement="top">
  6765. <span>{{ s.student }}</span>
  6766. </el-tooltip>
  6767. </div>
  6768. </div>
  6769. </div>
  6770. <div
  6771. v-if="
  6772. tType &&
  6773. ((tType == 2 && sIsOpen == true) ||
  6774. tType == 1 ||
  6775. tType == 4) &&
  6776. tool.tool.indexOf(48) != -1
  6777. "
  6778. class="worksBox"
  6779. >
  6780. <div
  6781. class="zuoyeYulan"
  6782. v-if="
  6783. worksStudent.length &&
  6784. worksStudent[toolIndex].length > 0
  6785. "
  6786. >
  6787. <div class="worksTop">
  6788. <div>作业预览</div>
  6789. <div
  6790. class="corOpen"
  6791. @click="contract(toolIndex)"
  6792. v-if="
  6793. (isCloseList[toolIndex].isCloseBoolean) &&
  6794. isCloseList[toolIndex].isClose == 0
  6795. "
  6796. >
  6797. 折叠
  6798. </div>
  6799. <div
  6800. class="corOpen"
  6801. @click="contract(toolIndex)"
  6802. v-if="isCloseList[toolIndex].isClose == 1"
  6803. >
  6804. 展开
  6805. </div>
  6806. </div>
  6807. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6808. </div>
  6809. <div
  6810. :id="'tool-' + toolIndex"
  6811. :style="{
  6812. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6813. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6814. }"
  6815. class="worksDetailBox"
  6816. v-if="
  6817. worksStudent.length &&
  6818. worksStudent[toolIndex].length > 0
  6819. "
  6820. >
  6821. <div
  6822. class="works"
  6823. style="
  6824. width: 200px;
  6825. height: 140px;
  6826. margin: 10px 10px 10px 0;
  6827. border-radius: 15px;
  6828. box-shadow: 0 0 6px 1px #dfdada;
  6829. "
  6830. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6831. :key="wIndex"
  6832. :class="w.type == 1 ? 'isTypeOne' : ''"
  6833. >
  6834. <div class="workImg">
  6835. <img :src="word" @click="openTable(w)" alt />
  6836. <!-- @click="openFile(w.works)" -->
  6837. <div
  6838. class="answerScore"
  6839. v-if="w.score"
  6840. @click.stop="openScore(w)"
  6841. :class="{
  6842. rightW:
  6843. w.userid == userid ||
  6844. tType == 1 ||
  6845. tType == 4 ||
  6846. w.ateacher == userid,
  6847. }"
  6848. >
  6849. {{ JSON.parse(w.score).wScore }}分
  6850. </div>
  6851. <div
  6852. class="answerScore"
  6853. @click.stop="openScore(w)"
  6854. v-else-if="courseDetail.userid == userid"
  6855. :class="{
  6856. rightW:
  6857. w.userid == userid ||
  6858. tType == 1 ||
  6859. tType == 4 ||
  6860. w.ateacher == userid,
  6861. }"
  6862. >
  6863. 评分
  6864. </div>
  6865. <img
  6866. class="deleteImg"
  6867. src="../../assets/deleteworks.png"
  6868. v-if="
  6869. w.userid == userid || tType == 1 || tType == 4
  6870. "
  6871. @click.stop="deleteWorks(w.wid)"
  6872. alt
  6873. />
  6874. </div>
  6875. <div class="comment" style="min-width: 200px">
  6876. <div class="worksName">
  6877. <div>{{ w.sName }}</div>
  6878. </div>
  6879. <div class="commentList">
  6880. <div class="commentList">
  6881. <div
  6882. class="commentImg"
  6883. @click="
  6884. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6885. "
  6886. >
  6887. <img
  6888. :src="w.isLikes == true ? likes : noLikes"
  6889. alt=""
  6890. />
  6891. </div>
  6892. <div>{{ w.likesCount }}</div>
  6893. </div>
  6894. <div class="commentList" style="margin-right: 15px">
  6895. <div
  6896. class="commentImg"
  6897. @click="commentOther(w, toolIndex, wIndex)"
  6898. >
  6899. <img
  6900. src="../../assets/icon/comment/comment.png"
  6901. alt=""
  6902. />
  6903. </div>
  6904. <div>{{ w.commentCount }}</div>
  6905. </div>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. </div>
  6910. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6911. 未提交
  6912. </div>
  6913. <div
  6914. class="noWorksS"
  6915. v-if="noWorksS && noWorksS[toolIndex].length"
  6916. >
  6917. <div
  6918. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6919. :key="sIndex"
  6920. class="noWorksName"
  6921. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6922. >
  6923. <el-tooltip effect="dark" :content="s.student" placement="top">
  6924. <span>{{ s.student }}</span>
  6925. </el-tooltip>
  6926. </div>
  6927. </div>
  6928. </div>
  6929. <div
  6930. v-if="
  6931. tType &&
  6932. tType == 2 &&
  6933. !sIsOpen &&
  6934. tool.tool.indexOf(48) != -1
  6935. "
  6936. class="worksBox"
  6937. >
  6938. <div
  6939. class="zuoyeYulan"
  6940. v-if="workStudent[toolIndex].length > 0"
  6941. >
  6942. <span class="worksTitle">作业预览</span>
  6943. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6944. </div>
  6945. <div
  6946. class="worksDetailBox"
  6947. v-if="workStudent[toolIndex].length > 0"
  6948. >
  6949. <div
  6950. class="works"
  6951. style="
  6952. width: 200px;
  6953. height: 140px;
  6954. margin: 10px 10px 10px 0;
  6955. box-shadow: 0 0 6px 1px #dfdada;
  6956. "
  6957. v-for="(w, wIndex) in workStudent[toolIndex]"
  6958. :key="wIndex"
  6959. >
  6960. <div class="workImg">
  6961. <img :src="word" @click="openTable(w)" alt />
  6962. <div
  6963. class="answerScore"
  6964. v-if="w.score"
  6965. @click.stop="openScore(w)"
  6966. :class="{
  6967. rightW:
  6968. w.userid == userid || tType == 1 || tType == 4,
  6969. }"
  6970. >
  6971. {{ JSON.parse(w.score).wScore }}分
  6972. </div>
  6973. <div
  6974. class="answerScore"
  6975. @click.stop="openScore(w)"
  6976. v-else-if="courseDetail.userid == userid"
  6977. :class="{
  6978. rightW:
  6979. w.userid == userid || tType == 1 || tType == 4,
  6980. }"
  6981. >
  6982. 评分
  6983. </div>
  6984. <img
  6985. class="deleteImg"
  6986. src="../../assets/deleteworks.png"
  6987. v-if="
  6988. w.userid == userid || tType == 1 || tType == 4
  6989. "
  6990. @click.stop="deleteWorks(w.wid)"
  6991. alt
  6992. />
  6993. </div>
  6994. <div class="worksName">
  6995. <div>{{ w.sName }}</div>
  6996. </div>
  6997. </div>
  6998. </div>
  6999. </div>
  7000. <div
  7001. v-if="
  7002. tType &&
  7003. ((tType == 2 && sIsOpen == true) ||
  7004. tType == 1 ||
  7005. tType == 4) &&
  7006. tool.tool.indexOf(52) != -1
  7007. "
  7008. class="worksBox"
  7009. >
  7010. <div
  7011. class="zuoyeYulan"
  7012. v-if="
  7013. worksStudent.length &&
  7014. worksStudent[toolIndex].length > 0
  7015. "
  7016. >
  7017. <div class="worksTop">
  7018. <div>作业预览</div>
  7019. <div
  7020. class="corOpen"
  7021. @click="contract(toolIndex)"
  7022. v-if="
  7023. (isCloseList[toolIndex].isCloseBoolean) &&
  7024. isCloseList[toolIndex].isClose == 0
  7025. "
  7026. >
  7027. 折叠
  7028. </div>
  7029. <div
  7030. class="corOpen"
  7031. @click="contract(toolIndex)"
  7032. v-if="isCloseList[toolIndex].isClose == 1"
  7033. >
  7034. 展开
  7035. </div>
  7036. </div>
  7037. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7038. </div>
  7039. <div
  7040. :id="'tool-' + toolIndex"
  7041. :style="{
  7042. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7043. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7044. }"
  7045. class="worksDetailBox"
  7046. v-if="
  7047. worksStudent.length &&
  7048. worksStudent[toolIndex].length > 0
  7049. "
  7050. >
  7051. <div
  7052. class="works"
  7053. style="
  7054. width: 200px;
  7055. height: 140px;
  7056. margin: 10px 10px 10px 0;
  7057. border-radius: 15px;
  7058. box-shadow: 0 0 6px 1px #dfdada;
  7059. "
  7060. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7061. :key="wIndex"
  7062. :class="w.type == 1 ? 'isTypeOne' : ''"
  7063. >
  7064. <div class="workImg">
  7065. <img :src="word" @click="openWord(w)" alt />
  7066. <!-- @click="openFile(w.works)" -->
  7067. <div
  7068. class="answerScore"
  7069. v-if="w.score"
  7070. @click.stop="openScore(w)"
  7071. :class="{
  7072. rightW:
  7073. w.userid == userid ||
  7074. tType == 1 ||
  7075. tType == 4 ||
  7076. w.ateacher == userid,
  7077. }"
  7078. >
  7079. {{ JSON.parse(w.score).wScore }}分
  7080. </div>
  7081. <div
  7082. class="answerScore"
  7083. @click.stop="openScore(w)"
  7084. v-else-if="courseDetail.userid == userid"
  7085. :class="{
  7086. rightW:
  7087. w.userid == userid ||
  7088. tType == 1 ||
  7089. tType == 4 ||
  7090. w.ateacher == userid,
  7091. }"
  7092. >
  7093. 评分
  7094. </div>
  7095. <img
  7096. class="deleteImg"
  7097. src="../../assets/deleteworks.png"
  7098. v-if="
  7099. w.userid == userid || tType == 1 || tType == 4
  7100. "
  7101. @click.stop="deleteWorks(w.wid)"
  7102. alt
  7103. />
  7104. </div>
  7105. <div class="comment" style="min-width: 200px">
  7106. <div class="worksName">
  7107. <div>{{ w.sName }}</div>
  7108. </div>
  7109. <div class="commentList">
  7110. <div class="commentList">
  7111. <div
  7112. class="commentImg"
  7113. @click="
  7114. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7115. "
  7116. >
  7117. <img
  7118. :src="w.isLikes == true ? likes : noLikes"
  7119. alt=""
  7120. />
  7121. </div>
  7122. <div>{{ w.likesCount }}</div>
  7123. </div>
  7124. <div class="commentList" style="margin-right: 15px">
  7125. <div
  7126. class="commentImg"
  7127. @click="commentOther(w, toolIndex, wIndex)"
  7128. >
  7129. <img
  7130. src="../../assets/icon/comment/comment.png"
  7131. alt=""
  7132. />
  7133. </div>
  7134. <div>{{ w.commentCount }}</div>
  7135. </div>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. </div>
  7140. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7141. 未提交
  7142. </div>
  7143. <div
  7144. class="noWorksS"
  7145. v-if="noWorksS && noWorksS[toolIndex].length"
  7146. >
  7147. <div
  7148. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7149. :key="sIndex"
  7150. class="noWorksName"
  7151. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7152. >
  7153. <el-tooltip effect="dark" :content="s.student" placement="top">
  7154. <span>{{ s.student }}</span>
  7155. </el-tooltip>
  7156. </div>
  7157. </div>
  7158. </div>
  7159. <div
  7160. v-if="
  7161. tType &&
  7162. tType == 2 &&
  7163. !sIsOpen &&
  7164. tool.tool.indexOf(52) != -1
  7165. "
  7166. class="worksBox"
  7167. >
  7168. <div
  7169. class="zuoyeYulan"
  7170. v-if="workStudent[toolIndex].length > 0"
  7171. >
  7172. <span class="worksTitle">作业预览</span>
  7173. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7174. </div>
  7175. <div
  7176. class="worksDetailBox"
  7177. v-if="workStudent[toolIndex].length > 0"
  7178. >
  7179. <div
  7180. class="works"
  7181. style="
  7182. width: 200px;
  7183. height: 140px;
  7184. margin: 10px 10px 10px 0;
  7185. box-shadow: 0 0 6px 1px #dfdada;
  7186. "
  7187. v-for="(w, wIndex) in workStudent[toolIndex]"
  7188. :key="wIndex"
  7189. >
  7190. <div class="workImg">
  7191. <img :src="word" @click="openWord(w)" alt />
  7192. <div
  7193. class="answerScore"
  7194. v-if="w.score"
  7195. @click.stop="openScore(w)"
  7196. :class="{
  7197. rightW:
  7198. w.userid == userid || tType == 1 || tType == 4,
  7199. }"
  7200. >
  7201. {{ JSON.parse(w.score).wScore }}分
  7202. </div>
  7203. <div
  7204. class="answerScore"
  7205. @click.stop="openScore(w)"
  7206. v-else-if="courseDetail.userid == userid"
  7207. :class="{
  7208. rightW:
  7209. w.userid == userid || tType == 1 || tType == 4,
  7210. }"
  7211. >
  7212. 评分
  7213. </div>
  7214. <img
  7215. class="deleteImg"
  7216. src="../../assets/deleteworks.png"
  7217. v-if="
  7218. w.userid == userid || tType == 1 || tType == 4
  7219. "
  7220. @click.stop="deleteWorks(w.wid)"
  7221. alt
  7222. />
  7223. </div>
  7224. <div class="worksName">
  7225. <div>{{ w.sName }}</div>
  7226. </div>
  7227. </div>
  7228. </div>
  7229. </div>
  7230. <div
  7231. v-if="tool.tool.indexOf(49) != -1"
  7232. class="xuan_right_box"
  7233. style="margin: 0 15px 0 25px; width: 93%"
  7234. >
  7235. <div
  7236. v-if="courseDetail.userid == userid"
  7237. style="
  7238. display: flex;
  7239. justify-content: flex-end;
  7240. margin-right: 10px;
  7241. "
  7242. >
  7243. <el-button
  7244. type="primary"
  7245. size="small"
  7246. @click="addTools(49, toolIndex, taskCount)"
  7247. >分组设置</el-button
  7248. >
  7249. </div>
  7250. <div
  7251. v-if="groupStudentUid[toolIndex]"
  7252. class="group_staic_box"
  7253. >
  7254. <div
  7255. v-for="(gp, gd) in tool.groupJson.group"
  7256. :key="gd"
  7257. class="group_staic"
  7258. >
  7259. <span> {{ gp.name }}</span>
  7260. <span>
  7261. 目前人数{{
  7262. groupStudentUid[toolIndex][gd].length
  7263. }}人</span
  7264. >
  7265. </div>
  7266. </div>
  7267. </div>
  7268. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7269. <div
  7270. class="zuoyeYulan"
  7271. v-if="
  7272. worksStudent.length &&
  7273. worksStudent[toolIndex].length > 0
  7274. "
  7275. >
  7276. <span class="worksTitle">作业预览</span>
  7277. </div>
  7278. <div>
  7279. <div
  7280. class="group_workBox"
  7281. v-for="(g, gindex) in tool.groupJson.group"
  7282. :key="gindex"
  7283. >
  7284. <div
  7285. class="group_box"
  7286. v-if="
  7287. groupStudentUid[toolIndex] &&
  7288. worksStudent[toolIndex] &&
  7289. (worksStudent[toolIndex][gindex].length ||
  7290. groupStudentUid[toolIndex][gindex].indexOf(
  7291. userid
  7292. ) != -1)
  7293. "
  7294. >
  7295. <div class="group_title">
  7296. <el-tooltip
  7297. class="item"
  7298. effect="light"
  7299. :content="g.name"
  7300. placement="top"
  7301. >
  7302. <div class="group_name">{{ g.name }}</div>
  7303. </el-tooltip>
  7304. <el-button
  7305. type="primary"
  7306. v-if="
  7307. groupStudentUid[toolIndex][gindex].indexOf(
  7308. userid
  7309. ) != -1
  7310. "
  7311. @click="groupUpload(toolIndex, taskCount, gindex)"
  7312. >上传作业</el-button
  7313. >
  7314. </div>
  7315. <div class="group_work">
  7316. <div
  7317. class="works"
  7318. style="
  7319. width: 200px;
  7320. height: 140px;
  7321. margin: 10px 10px 10px 0;
  7322. border-radius: 15px;
  7323. box-shadow: 0 0 6px 1px #dfdada;
  7324. "
  7325. v-for="(w, wIndex) in worksStudent[toolIndex][
  7326. gindex
  7327. ]"
  7328. :key="wIndex"
  7329. :class="w.type == 1 ? 'isTypeOne' : ''"
  7330. >
  7331. <div class="workImg" v-if="w.type == 0">
  7332. <img
  7333. :src="w.works"
  7334. @click="previewImg(w.works,w)"
  7335. alt
  7336. />
  7337. <div
  7338. class="answerScore"
  7339. v-if="w.score"
  7340. @click.stop="openScore(w)"
  7341. :class="{
  7342. rightW:
  7343. w.userid == userid ||
  7344. tType == 1 ||
  7345. tType == 4 ||
  7346. w.ateacher == userid,
  7347. }"
  7348. >
  7349. {{ JSON.parse(w.score).wScore }}分
  7350. </div>
  7351. <div
  7352. class="answerScore"
  7353. @click.stop="openScore(w)"
  7354. v-else-if="courseDetail.userid == userid"
  7355. :class="{
  7356. rightW:
  7357. w.userid == userid ||
  7358. tType == 1 ||
  7359. tType == 4 ||
  7360. w.ateacher == userid,
  7361. }"
  7362. >
  7363. 评分
  7364. </div>
  7365. <img
  7366. class="deleteImg"
  7367. src="../../assets/deleteworks.png"
  7368. v-if="
  7369. w.userid == userid ||
  7370. tType == 1 ||
  7371. tType == 4
  7372. "
  7373. @click.stop="deleteWorks(w.wid)"
  7374. alt
  7375. />
  7376. </div>
  7377. <div class="workImg" v-if="w.type == 1">
  7378. <img
  7379. :src="word"
  7380. @click="openFile(w.works)"
  7381. alt
  7382. />
  7383. <!-- @click="openFile(w.works)" -->
  7384. <div
  7385. class="answerScore"
  7386. v-if="w.score"
  7387. @click.stop="openScore(w)"
  7388. :class="{
  7389. rightW:
  7390. w.userid == userid ||
  7391. tType == 1 ||
  7392. tType == 4 ||
  7393. w.ateacher == userid,
  7394. }"
  7395. >
  7396. {{ JSON.parse(w.score).wScore }}分
  7397. </div>
  7398. <div
  7399. class="answerScore"
  7400. @click.stop="openScore(w)"
  7401. v-else-if="courseDetail.userid == userid"
  7402. :class="{
  7403. rightW:
  7404. w.userid == userid ||
  7405. tType == 1 ||
  7406. tType == 4 ||
  7407. w.ateacher == userid,
  7408. }"
  7409. >
  7410. 评分
  7411. </div>
  7412. <img
  7413. class="deleteImg"
  7414. src="../../assets/deleteworks.png"
  7415. v-if="
  7416. w.userid == userid ||
  7417. tType == 1 ||
  7418. tType == 4
  7419. "
  7420. @click.stop="deleteWorks(w.wid)"
  7421. alt
  7422. />
  7423. </div>
  7424. <div class="workImg" v-if="w.type == 3">
  7425. <img
  7426. style="cursor: pointer"
  7427. :src="video"
  7428. @click="openVideo(w)"
  7429. alt
  7430. />
  7431. <!-- @click="openVideo(w.works)" -->
  7432. <div
  7433. class="answerScore"
  7434. v-if="w.score"
  7435. @click.stop="openScore(w)"
  7436. :class="{
  7437. rightW:
  7438. w.userid == userid ||
  7439. tType == 1 ||
  7440. tType == 4 ||
  7441. w.ateacher == userid,
  7442. }"
  7443. >
  7444. {{ JSON.parse(w.score).wScore }}分
  7445. </div>
  7446. <div
  7447. class="answerScore"
  7448. @click.stop="openScore(w)"
  7449. v-else-if="courseDetail.userid == userid"
  7450. :class="{
  7451. rightW:
  7452. w.userid == userid ||
  7453. tType == 1 ||
  7454. tType == 4 ||
  7455. w.ateacher == userid,
  7456. }"
  7457. >
  7458. 评分
  7459. </div>
  7460. <img
  7461. class="deleteImg"
  7462. src="../../assets/deleteworks.png"
  7463. v-if="
  7464. w.userid == userid ||
  7465. tType == 1 ||
  7466. tType == 4
  7467. "
  7468. @click.stop="deleteWorks(w.wid)"
  7469. alt
  7470. />
  7471. </div>
  7472. <div class="workImg" v-if="w.type == 12">
  7473. <img
  7474. style="cursor: pointer"
  7475. :src="word2"
  7476. @click="downloadFile(w.works,w.userid)"
  7477. alt
  7478. />
  7479. <!-- @click="openVideo(w.works)" -->
  7480. <div
  7481. class="answerScore"
  7482. v-if="w.score"
  7483. @click.stop="openScore(w)"
  7484. :class="{
  7485. rightW:
  7486. w.userid == userid ||
  7487. tType == 1 ||
  7488. tType == 4 ||
  7489. w.ateacher == userid,
  7490. }"
  7491. >
  7492. {{ JSON.parse(w.score).wScore }}分
  7493. </div>
  7494. <div
  7495. class="answerScore"
  7496. @click.stop="openScore(w)"
  7497. v-else-if="courseDetail.userid == userid"
  7498. :class="{
  7499. rightW:
  7500. w.userid == userid ||
  7501. tType == 1 ||
  7502. tType == 4 ||
  7503. w.ateacher == userid,
  7504. }"
  7505. >
  7506. 评分
  7507. </div>
  7508. <img
  7509. class="deleteImg"
  7510. src="../../assets/deleteworks.png"
  7511. v-if="
  7512. w.userid == userid ||
  7513. tType == 1 ||
  7514. tType == 4
  7515. "
  7516. @click.stop="deleteWorks(w.wid)"
  7517. alt
  7518. />
  7519. </div>
  7520. <div class="comment" style="min-width: 200px">
  7521. <div class="worksName">
  7522. <div>{{ w.sName }}</div>
  7523. </div>
  7524. <div class="commentList">
  7525. <div class="commentList">
  7526. <div
  7527. class="commentImg"
  7528. @click="
  7529. isLikes(
  7530. w.wid,
  7531. userid,
  7532. 1,
  7533. null,
  7534. w.isLikes,
  7535. w.sName
  7536. )
  7537. "
  7538. >
  7539. <img
  7540. :src="
  7541. w.isLikes == true ? likes : noLikes
  7542. "
  7543. alt=""
  7544. />
  7545. </div>
  7546. <div>{{ w.likesCount }}</div>
  7547. </div>
  7548. <div
  7549. class="commentList"
  7550. style="margin-right: 15px"
  7551. >
  7552. <div
  7553. class="commentImg"
  7554. @click="
  7555. commentOther(
  7556. w,
  7557. toolIndex,
  7558. wIndex,
  7559. gindex
  7560. )
  7561. "
  7562. >
  7563. <img
  7564. src="../../assets/icon/comment/comment.png"
  7565. alt=""
  7566. />
  7567. </div>
  7568. <div>{{ w.commentCount }}</div>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. </div>
  7575. </div>
  7576. </div>
  7577. </div>
  7578. </div>
  7579. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7580. 上传文件
  7581. <input
  7582. type="file"
  7583. accept="image/png, image/gif, image/jpeg"
  7584. style="display: none"
  7585. @change="beforeUpload1($event, 2, index)"
  7586. />
  7587. </div>-->
  7588. </div>
  7589. </div>
  7590. <!-- <div
  7591. class="vedioBox"
  7592. style="margin-top: 10px"
  7593. v-if="
  7594. courseDetail.userid == userid ||
  7595. (courseDetail.course_teacher &&
  7596. courseDetail.course_teacher.indexOf(userid) != -1)
  7597. "
  7598. :style="{
  7599. borderRadius:
  7600. !(
  7601. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7602. .toolChoose[0].tool &&
  7603. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7604. .toolChoose[0].tool.length > 0
  7605. ) &&
  7606. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7607. .taskDetail == '' &&
  7608. vChapterData[taskCount].length == 0 &&
  7609. fileC[taskCount].length == 0
  7610. ? '0 0 20px 20px'
  7611. : '20px',
  7612. }"
  7613. >
  7614. <div
  7615. class="queTop"
  7616. @click="isClose = !isClose"
  7617. style="
  7618. padding: 15px 0 15px 37px;
  7619. justify-content: space-between;
  7620. "
  7621. >
  7622. <div class="queTopTitle">新增工具</div>
  7623. <div class="queTopRight">
  7624. <div class="queTopClose" v-if="isClose == 0">
  7625. 展开
  7626. <div class="closeImg">
  7627. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7628. </div>
  7629. </div>
  7630. <div class="queTopClose" v-if="isClose == 1">
  7631. 折叠
  7632. <div class="openImg">
  7633. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7634. </div>
  7635. </div>
  7636. <el-button
  7637. style="margin: 0 30px 0 auto"
  7638. type="primary"
  7639. size="small"
  7640. v-if="isClose == 1 && checktoolArray.length > 0"
  7641. @click.stop="addToolChoose"
  7642. >确定</el-button
  7643. >
  7644. </div>
  7645. </div>
  7646. <div
  7647. class="tool_work_box"
  7648. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7649. >
  7650. <div class="tool_box">
  7651. <div class="tool_type_box">
  7652. <div class="chooseWho">
  7653. <div
  7654. :class="toolType == 0 ? 'isChooseActive' : ''"
  7655. @click="(toolType = 0), $forceUpdate()"
  7656. >
  7657. 互动类
  7658. </div>
  7659. <div
  7660. :class="toolType == 1 ? 'isChooseActive' : ''"
  7661. @click="(toolType = 1), $forceUpdate()"
  7662. >
  7663. 思维类
  7664. </div>
  7665. <div
  7666. :class="toolType == 2 ? 'isChooseActive' : ''"
  7667. @click="(toolType = 2), $forceUpdate()"
  7668. >
  7669. 测评类
  7670. </div>
  7671. <div
  7672. :class="toolType == 3 ? 'isChooseActive' : ''"
  7673. @click="(toolType = 3), $forceUpdate()"
  7674. >
  7675. 编程类
  7676. </div>
  7677. <div
  7678. :class="toolType == 5 ? 'isChooseActive' : ''"
  7679. @click="(toolType = 5), $forceUpdate()"
  7680. >
  7681. 学科类
  7682. </div>
  7683. </div>
  7684. </div>
  7685. <div>
  7686. <div class="toolSort" v-if="toolType == 0">
  7687. <div class="tool">
  7688. <div class="whiteBIcon" @click="addTools2(10)">
  7689. <img
  7690. src="../../assets/icon/thirdToolList/time.png"
  7691. alt
  7692. />
  7693. <div style="margin: 5px 0">倒计时</div>
  7694. </div>
  7695. <div class="check" @click="addTools2(10)">
  7696. <img
  7697. src="../../assets/icon/checkNo.png"
  7698. alt
  7699. v-if="checktoolArray.indexOf(10) == -1"
  7700. />
  7701. <div class="checkDiv" v-else>
  7702. <img src="../../assets/icon/checkedIs.png" alt /><span
  7703. >已选择</span
  7704. >
  7705. </div>
  7706. </div>
  7707. </div>
  7708. <div class="tool">
  7709. <div class="whiteBIcon" @click="addTools2(65)">
  7710. <img
  7711. src="../../assets/icon/firstToolList/pickPeople.png"
  7712. alt
  7713. />
  7714. <div style="margin: 5px 0">挑人</div>
  7715. </div>
  7716. <div class="check" @click="addTools2(65)">
  7717. <img
  7718. src="../../assets/icon/checkNo.png"
  7719. alt
  7720. v-if="checktoolArray.indexOf(65) == -1"
  7721. />
  7722. <div class="checkDiv" v-else>
  7723. <img src="../../assets/icon/checkedIs.png" alt /><span
  7724. >已选择</span
  7725. >
  7726. </div>
  7727. </div>
  7728. </div>
  7729. </div>
  7730. <div class="toolSort" v-if="toolType == 1">
  7731. <div class="tool">
  7732. <div class="whiteBIcon" @click="addTools2(7)">
  7733. <img
  7734. src="../../assets/icon/secondToolList/mindNetwork.png"
  7735. alt
  7736. />
  7737. <div style="margin: 5px 0">思维网格</div>
  7738. </div>
  7739. <div class="check" @click="addTools2(7)">
  7740. <img
  7741. src="../../assets/icon/checkNo.png"
  7742. alt
  7743. v-if="checktoolArray.indexOf(7) == -1"
  7744. />
  7745. <div class="checkDiv" v-else>
  7746. <img src="../../assets/icon/checkedIs.png" alt /><span
  7747. >已选择</span
  7748. >
  7749. </div>
  7750. </div>
  7751. </div>
  7752. <div class="tool">
  7753. <div class="whiteBIcon" @click="addTools2(1)">
  7754. <img
  7755. src="../../assets/icon/secondToolList/whiteBoard.png"
  7756. alt
  7757. />
  7758. <div style="margin: 5px 0">电子白板</div>
  7759. </div>
  7760. <div class="check" @click="addTools2(1)">
  7761. <img
  7762. src="../../assets/icon/checkNo.png"
  7763. alt
  7764. v-if="checktoolArray.indexOf(1) == -1"
  7765. />
  7766. <div class="checkDiv" v-else>
  7767. <img src="../../assets/icon/checkedIs.png" alt /><span
  7768. >已选择</span
  7769. >
  7770. </div>
  7771. </div>
  7772. </div>
  7773. <div class="tool">
  7774. <div class="whiteBIcon" @click="addTools2(52)">
  7775. <img
  7776. src="../../assets/icon/fourthToolList/text.png"
  7777. alt
  7778. />
  7779. <div style="margin: 5px 0">文档</div>
  7780. </div>
  7781. <div class="check" @click="addTools2(52)">
  7782. <img
  7783. src="../../assets/icon/checkNo.png"
  7784. alt
  7785. v-if="checktoolArray.indexOf(52) == -1"
  7786. />
  7787. <div class="checkDiv" v-else>
  7788. <img src="../../assets/icon/checkedIs.png" alt /><span
  7789. >已选择</span
  7790. >
  7791. </div>
  7792. </div>
  7793. </div>
  7794. <div class="tool">
  7795. <div class="whiteBIcon" @click="addTools2(3)">
  7796. <img
  7797. src="../../assets/icon/secondToolList/mindMapping.png"
  7798. alt
  7799. />
  7800. <div style="margin: 5px 0">思维导图</div>
  7801. </div>
  7802. <div class="check" @click="addTools2(3)">
  7803. <img
  7804. src="../../assets/icon/checkNo.png"
  7805. alt
  7806. v-if="checktoolArray.indexOf(3) == -1"
  7807. />
  7808. <div class="checkDiv" v-else>
  7809. <img src="../../assets/icon/checkedIs.png" alt /><span
  7810. >已选择</span
  7811. >
  7812. </div>
  7813. </div>
  7814. </div>
  7815. <div class="tool">
  7816. <div class="whiteBIcon" @click="addTools2(48)">
  7817. <img
  7818. src="../../assets/icon/fourthToolList/table.png"
  7819. alt
  7820. />
  7821. <div style="margin: 5px 0">表格</div>
  7822. </div>
  7823. <div class="check" @click="addTools2(48)">
  7824. <img
  7825. src="../../assets/icon/checkNo.png"
  7826. alt
  7827. v-if="checktoolArray.indexOf(48) == -1"
  7828. />
  7829. <div class="checkDiv" v-else>
  7830. <img src="../../assets/icon/checkedIs.png" alt /><span
  7831. >已选择</span
  7832. >
  7833. </div>
  7834. </div>
  7835. </div>
  7836. </div>
  7837. <div class="toolSort" v-if="toolType == 6">
  7838. <div v-show="tooC == 49">
  7839. <img
  7840. @click="addTools(tooC, toolIndex, taskCount)"
  7841. src="../../assets/icon/fourthToolList/group.png"
  7842. alt
  7843. />
  7844. <div style="margin: 5px 0">学生分组</div>
  7845. </div>
  7846. </div>
  7847. <div class="toolSort" v-if="toolType == 2">
  7848. <div class="tool">
  7849. <div class="whiteBIcon" @click="addTools2(16)">
  7850. <img
  7851. src="../../assets/icon/thirdToolList/work.png"
  7852. alt
  7853. />
  7854. <div style="margin: 5px 0">作业提交</div>
  7855. </div>
  7856. <div class="check" @click="addTools2(16)">
  7857. <img
  7858. src="../../assets/icon/checkNo.png"
  7859. alt
  7860. v-if="checktoolArray.indexOf(16) == -1"
  7861. />
  7862. <div class="checkDiv" v-else>
  7863. <img src="../../assets/icon/checkedIs.png" alt /><span
  7864. >已选择</span
  7865. >
  7866. </div>
  7867. </div>
  7868. </div>
  7869. <div class="tool">
  7870. <div class="whiteBIcon" @click="addTools2(50)">
  7871. <img
  7872. src="../../assets/icon/thirdToolList/plwork.png"
  7873. alt
  7874. />
  7875. <div style="margin: 5px 0">批量上传</div>
  7876. </div>
  7877. <div class="check" @click="addTools2(50)">
  7878. <img
  7879. src="../../assets/icon/checkNo.png"
  7880. alt
  7881. v-if="checktoolArray.indexOf(50) == -1"
  7882. />
  7883. <div class="checkDiv" v-else>
  7884. <img src="../../assets/icon/checkedIs.png" alt /><span
  7885. >已选择</span
  7886. >
  7887. </div>
  7888. </div>
  7889. </div>
  7890. </div>
  7891. <div class="toolSort" v-if="toolType == 3">
  7892. <div class="tool">
  7893. <div class="whiteBIcon" @click="addTools2(18)">
  7894. <img
  7895. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7896. alt
  7897. />
  7898. <div style="margin: 5px 0">训练平台</div>
  7899. </div>
  7900. <div class="check" @click="addTools2(18)">
  7901. <img
  7902. src="../../assets/icon/checkNo.png"
  7903. alt
  7904. v-if="checktoolArray.indexOf(18) == -1"
  7905. />
  7906. <div class="checkDiv" v-else>
  7907. <img src="../../assets/icon/checkedIs.png" alt /><span
  7908. >已选择</span
  7909. >
  7910. </div>
  7911. </div>
  7912. </div>
  7913. <div class="tool">
  7914. <div class="whiteBIcon" @click="addTools2(21)">
  7915. <img
  7916. src="../../assets/icon/fourthToolList/program.png"
  7917. alt
  7918. />
  7919. <div style="margin: 5px 0">AIoT Blockly</div>
  7920. </div>
  7921. <div class="check" @click="addTools2(21)">
  7922. <img
  7923. src="../../assets/icon/checkNo.png"
  7924. alt
  7925. v-if="checktoolArray.indexOf(21) == -1"
  7926. />
  7927. <div class="checkDiv" v-else>
  7928. <img src="../../assets/icon/checkedIs.png" alt /><span
  7929. >已选择</span
  7930. >
  7931. </div>
  7932. </div>
  7933. </div>
  7934. <div class="tool">
  7935. <div class="whiteBIcon" @click="addTools2(23)">
  7936. <img
  7937. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7938. alt
  7939. />
  7940. <div style="margin: 5px 0">AI Python</div>
  7941. </div>
  7942. <div class="check" @click="addTools2(23)">
  7943. <img
  7944. src="../../assets/icon/checkNo.png"
  7945. alt
  7946. v-if="checktoolArray.indexOf(23) == -1"
  7947. />
  7948. <div class="checkDiv" v-else>
  7949. <img src="../../assets/icon/checkedIs.png" alt /><span
  7950. >已选择</span
  7951. >
  7952. </div>
  7953. </div>
  7954. </div>
  7955. <div class="tool">
  7956. <div class="whiteBIcon" @click="addTools2(24)">
  7957. <img
  7958. src="../../assets/icon/fourthToolList/AIprogram.png"
  7959. alt
  7960. />
  7961. <div style="margin: 5px 0">AI Blockly</div>
  7962. </div>
  7963. <div class="check" @click="addTools2(24)">
  7964. <img
  7965. src="../../assets/icon/checkNo.png"
  7966. alt
  7967. v-if="checktoolArray.indexOf(24) == -1"
  7968. />
  7969. <div class="checkDiv" v-else>
  7970. <img src="../../assets/icon/checkedIs.png" alt /><span
  7971. >已选择</span
  7972. >
  7973. </div>
  7974. </div>
  7975. </div>
  7976. <div class="tool">
  7977. <div class="whiteBIcon" @click="addTools2(32)">
  7978. <img
  7979. src="../../assets/icon/thirdToolList/code.png"
  7980. alt
  7981. />
  7982. <div style="margin: 5px 0">源码编辑</div>
  7983. </div>
  7984. <div class="check" @click="addTools2(32)">
  7985. <img
  7986. src="../../assets/icon/checkNo.png"
  7987. alt
  7988. v-if="checktoolArray.indexOf(32) == -1"
  7989. />
  7990. <div class="checkDiv" v-else>
  7991. <img src="../../assets/icon/checkedIs.png" alt /><span
  7992. >已选择</span
  7993. >
  7994. </div>
  7995. </div>
  7996. </div>
  7997. <div class="tool">
  7998. <div class="whiteBIcon" @click="addTools2(57)">
  7999. <img
  8000. src="../../assets/icon/fourthToolList/cocopi.png"
  8001. alt
  8002. />
  8003. <div style="margin: 5px 0">CocoPi</div>
  8004. </div>
  8005. <div class="check" @click="addTools2(57)">
  8006. <img
  8007. src="../../assets/icon/checkNo.png"
  8008. alt
  8009. v-if="checktoolArray.indexOf(57) == -1"
  8010. />
  8011. <div class="checkDiv" v-else>
  8012. <img src="../../assets/icon/checkedIs.png" alt /><span
  8013. >已选择</span
  8014. >
  8015. </div>
  8016. </div>
  8017. </div>
  8018. <div class="tool">
  8019. <div class="whiteBIcon" @click="addTools2(63)">
  8020. <img
  8021. src="../../assets/icon/fourthToolList/Wood.png"
  8022. alt
  8023. />
  8024. <div style="margin: 5px 0">海龟编程</div>
  8025. </div>
  8026. <div class="check" @click="addTools2(63)">
  8027. <img
  8028. src="../../assets/icon/checkNo.png"
  8029. alt
  8030. v-if="checktoolArray.indexOf(63) == -1"
  8031. />
  8032. <div class="checkDiv" v-else>
  8033. <img src="../../assets/icon/checkedIs.png" alt /><span
  8034. >已选择</span
  8035. >
  8036. </div>
  8037. </div>
  8038. </div>
  8039. </div>
  8040. <div class="toolSort" v-if="toolType == 5">
  8041. <div class="tool">
  8042. <div class="whiteBIcon" @click="addTools2(28)">
  8043. <img
  8044. src="../../assets/icon/secondToolList/translation.png"
  8045. alt
  8046. />
  8047. <div style="margin: 5px 0">翻译</div>
  8048. </div>
  8049. <div class="check" @click="addTools2(28)">
  8050. <img
  8051. src="../../assets/icon/checkNo.png"
  8052. alt
  8053. v-if="checktoolArray.indexOf(28) == -1"
  8054. />
  8055. <div class="checkDiv" v-else>
  8056. <img src="../../assets/icon/checkedIs.png" alt /><span
  8057. >已选择</span
  8058. >
  8059. </div>
  8060. </div>
  8061. </div>
  8062. <div class="tool">
  8063. <div class="whiteBIcon" @click="addTools2(31)">
  8064. <img
  8065. src="../../assets/icon/secondToolList/networkPanel.png"
  8066. alt
  8067. />
  8068. <div style="margin: 5px 0">数字画板</div>
  8069. </div>
  8070. <div class="check" @click="addTools2(31)">
  8071. <img
  8072. src="../../assets/icon/checkNo.png"
  8073. alt
  8074. v-if="checktoolArray.indexOf(31) == -1"
  8075. />
  8076. <div class="checkDiv" v-else>
  8077. <img src="../../assets/icon/checkedIs.png" alt /><span
  8078. >已选择</span
  8079. >
  8080. </div>
  8081. </div>
  8082. </div>
  8083. <div class="tool">
  8084. <div class="whiteBIcon" @click="addTools2(39)">
  8085. <img
  8086. src="../../assets/icon/secondToolList/GeoGebra.png"
  8087. alt
  8088. />
  8089. <div style="margin: 5px 0">GeoGebra</div>
  8090. </div>
  8091. <div class="check" @click="addTools2(39)">
  8092. <img
  8093. src="../../assets/icon/checkNo.png"
  8094. alt
  8095. v-if="checktoolArray.indexOf(39) == -1"
  8096. />
  8097. <div class="checkDiv" v-else>
  8098. <img src="../../assets/icon/checkedIs.png" alt /><span
  8099. >已选择</span
  8100. >
  8101. </div>
  8102. </div>
  8103. </div>
  8104. <div class="tool">
  8105. <div class="whiteBIcon" @click="addTools2(66)">
  8106. <img
  8107. src="../../assets/icon/secondToolList/formulaEdi.png"
  8108. alt
  8109. />
  8110. <div style="margin: 5px 0">公式编辑</div>
  8111. </div>
  8112. <div class="check" @click="addTools2(66)">
  8113. <img
  8114. src="../../assets/icon/checkNo.png"
  8115. alt
  8116. v-if="checktoolArray.indexOf(66) == -1"
  8117. />
  8118. <div class="checkDiv" v-else>
  8119. <img src="../../assets/icon/checkedIs.png" alt /><span
  8120. >已选择</span
  8121. >
  8122. </div>
  8123. </div>
  8124. </div>
  8125. <div class="tool">
  8126. <div class="whiteBIcon" @click="addTools2(67)">
  8127. <img
  8128. src="../../assets/icon/secondToolList/molStr.png"
  8129. alt
  8130. />
  8131. <div style="margin: 5px 0">分子结构</div>
  8132. </div>
  8133. <div class="check" @click="addTools2(67)">
  8134. <img
  8135. src="../../assets/icon/checkNo.png"
  8136. alt
  8137. v-if="checktoolArray.indexOf(67) == -1"
  8138. />
  8139. <div class="checkDiv" v-else>
  8140. <img src="../../assets/icon/checkedIs.png" alt /><span
  8141. >已选择</span
  8142. >
  8143. </div>
  8144. </div>
  8145. </div>
  8146. <div class="tool">
  8147. <div class="whiteBIcon" @click="addTools2(68)">
  8148. <img
  8149. src="../../assets/icon/secondToolList/timeAxis.png"
  8150. alt
  8151. />
  8152. <div style="margin: 5px 0">时间轴</div>
  8153. </div>
  8154. <div class="check" @click="addTools2(68)">
  8155. <img
  8156. src="../../assets/icon/checkNo.png"
  8157. alt
  8158. v-if="checktoolArray.indexOf(68) == -1"
  8159. />
  8160. <div class="checkDiv" v-else>
  8161. <img src="../../assets/icon/checkedIs.png" alt /><span
  8162. >已选择</span
  8163. >
  8164. </div>
  8165. </div>
  8166. </div>
  8167. </div>
  8168. <div class="toolSort" v-if="toolType == 7">
  8169. <div class="tool">
  8170. <div class="whiteBIcon" @click="addTools2(40)">
  8171. <img
  8172. src="../../assets/icon/secondToolList/eval.png"
  8173. alt
  8174. />
  8175. <div style="margin: 5px 0">个人评价</div>
  8176. </div>
  8177. <div class="check" @click="addTools2(40)">
  8178. <img
  8179. src="../../assets/icon/checkNo.png"
  8180. alt
  8181. v-if="checktoolArray.indexOf(40) == -1"
  8182. />
  8183. <div class="checkDiv" v-else>
  8184. <img src="../../assets/icon/checkedIs.png" alt /><span
  8185. >已选择</span
  8186. >
  8187. </div>
  8188. </div>
  8189. </div>
  8190. </div>
  8191. <div class="toolSort" v-if="toolType == 4">
  8192. <div class="tool">
  8193. <div class="whiteBIcon" @click="addTools2(26)">
  8194. <img
  8195. src="../../assets/icon/thirdToolList/courseDesign.png"
  8196. alt
  8197. />
  8198. <div style="margin: 5px 0">课程设计</div>
  8199. </div>
  8200. <div class="check" @click="addTools2(26)">
  8201. <img
  8202. src="../../assets/icon/checkNo.png"
  8203. alt
  8204. v-if="checktoolArray.indexOf(26) == -1"
  8205. />
  8206. <div class="checkDiv" v-else>
  8207. <img src="../../assets/icon/checkedIs.png" alt /><span
  8208. >已选择</span
  8209. >
  8210. </div>
  8211. </div>
  8212. </div>
  8213. <div class="tool">
  8214. <div class="whiteBIcon" @click="addTools2(25)">
  8215. <img
  8216. src="../../assets/icon/thirdToolList/evalua.png"
  8217. alt
  8218. />
  8219. <div style="margin: 5px 0">目标管理</div>
  8220. </div>
  8221. <div class="check" @click="addTools2(25)">
  8222. <img
  8223. src="../../assets/icon/checkNo.png"
  8224. alt
  8225. v-if="checktoolArray.indexOf(25) == -1"
  8226. />
  8227. <div class="checkDiv" v-else>
  8228. <img src="../../assets/icon/checkedIs.png" alt /><span
  8229. >已选择</span
  8230. >
  8231. </div>
  8232. </div>
  8233. </div>
  8234. </div>
  8235. </div>
  8236. </div>
  8237. </div>
  8238. </div> -->
  8239. <div
  8240. class="vedioBox"
  8241. style="margin-top: 10px; border-radius: 20px"
  8242. v-if="
  8243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8244. .eList &&
  8245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8246. .eList.length &&
  8247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8248. .eList.length > 0 &&
  8249. tType != 2
  8250. "
  8251. >
  8252. <div
  8253. class="queTop"
  8254. style="
  8255. font-size: 20px;
  8256. padding: 15px 0 15px 37px;
  8257. font-weight: bold;
  8258. "
  8259. >
  8260. <!-- <div class="question" style="width: 30px">
  8261. <img src="../assets/icon/toolIcon.png" alt />
  8262. </div>
  8263. <div class="queTitle">
  8264. <div>工具</div>
  8265. </div>-->
  8266. 评一评
  8267. </div>
  8268. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8269. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8270. <el-table
  8271. :data="
  8272. chapInfoList[courseType].chapterInfo[0].taskJson[
  8273. taskCount
  8274. ].eList
  8275. "
  8276. :header-cell-style="{ background: '#F0F4FA' }"
  8277. :row-class-name="tableRowClassName"
  8278. border
  8279. stripe
  8280. style="width: 100%"
  8281. >
  8282. <el-table-column
  8283. label="评价名称"
  8284. align="center"
  8285. >
  8286. <template slot-scope="scope"
  8287. ><div>{{ scope.row.value }}</div></template
  8288. >
  8289. </el-table-column>
  8290. <el-table-column
  8291. label="评价描述"
  8292. align="center"
  8293. >
  8294. <template slot-scope="scope"
  8295. ><div>
  8296. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8297. </div></template
  8298. >
  8299. </el-table-column>
  8300. <el-table-column label="目标" align="center">
  8301. <template slot-scope="scope"
  8302. ><div>
  8303. {{
  8304. scope.row.target
  8305. ? scope.row.target[scope.row.target.length - 1]
  8306. : "-"
  8307. }}
  8308. </div></template
  8309. ></el-table-column
  8310. >
  8311. </el-table>
  8312. <!-- <div
  8313. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8314. .chapterInfo[0].taskJson[taskCount].eList"
  8315. :key="eIndex"
  8316. class="elist_input_box"
  8317. >
  8318. <div style="width: 95%">
  8319. <div
  8320. style="
  8321. display: flex;
  8322. flex-direction: row;
  8323. flex-wrap: nowrap;
  8324. align-items: center;
  8325. "
  8326. >
  8327. <div style="max-width: calc(100% - 285px)">
  8328. <span>{{ eItem.value }}</span>
  8329. </div>
  8330. <div
  8331. style="
  8332. padding-left: 25px;
  8333. display: flex;
  8334. flex-direction: row;
  8335. align-items: center;
  8336. "
  8337. >
  8338. <el-rate
  8339. v-model="eItem.score"
  8340. :colors="colors"
  8341. disabled
  8342. ></el-rate>
  8343. </div>
  8344. </div>
  8345. <div class="elist_inptu_text" style="padding-left: 10px">
  8346. <span v-if="eItem.detail != ''">{{
  8347. eItem.detail
  8348. }}</span>
  8349. <span v-else style="color: #b2b1b3; font-size: 14px"
  8350. >暂无描述...</span
  8351. >
  8352. </div>
  8353. </div>
  8354. </div> -->
  8355. </div>
  8356. <div
  8357. v-if="evalua"
  8358. style="
  8359. border: 1px solid #e5e5e5;
  8360. max-width: 650px;
  8361. width: 100%;
  8362. margin-top: 20px;
  8363. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8364. "
  8365. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8366. >
  8367. <div class="e_add_top">
  8368. <div class="e_add_title" style="width: 100%">
  8369. <!-- <span>目标管理名称</span> -->
  8370. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8371. <img
  8372. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8373. src="../../assets/line.png"
  8374. class="cru_line"
  8375. style="
  8376. width: 125px;
  8377. height: 20px;
  8378. bottom: -10px;
  8379. left: 5px;
  8380. "
  8381. />
  8382. <!-- <el-input
  8383. v-model="eTitle"
  8384. placeholder="请输入名称"
  8385. @change="setMindData"
  8386. ></el-input>-->
  8387. <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>
  8388. <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>
  8389. </div>
  8390. </div>
  8391. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8392. <div class="e_add_list_pbox">
  8393. <div class="e_add_list_pbox_title">
  8394. <!-- <span class="type_title">切换模式</span> -->
  8395. <div class="type_content">
  8396. <span
  8397. :class="{ active: typeMode == 1 }"
  8398. @click="typeMode = 1"
  8399. >目标树</span
  8400. >
  8401. <span
  8402. :class="{ active: typeMode == 2 }"
  8403. @click="typeMode = 2"
  8404. >目标罗盘</span
  8405. >
  8406. <!-- <span
  8407. :class="{ active: typeMode == 3 }"
  8408. @click="typeMode = 3"
  8409. >目标看板</span
  8410. > -->
  8411. </div>
  8412. </div>
  8413. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8414. <Mind
  8415. :showBar="false"
  8416. :mindData="data"
  8417. style="width: 100%"
  8418. v-show="typeMode == 1"
  8419. ></Mind>
  8420. <Sunburst
  8421. :Josn="eJson"
  8422. :num="eJSONNum"
  8423. style="width: 100%"
  8424. v-if="typeMode == 2"
  8425. ></Sunburst>
  8426. <SeeBoard
  8427. :Josn="eJson"
  8428. :num="eJSONNum"
  8429. :ename="eTitle"
  8430. style="width: 100%"
  8431. v-if="typeMode == 3"
  8432. >
  8433. </SeeBoard>
  8434. </div>
  8435. </div>
  8436. </div>
  8437. </div>
  8438. </div>
  8439. </div>
  8440. <!-- <div
  8441. class="project_box"
  8442. style="margin-top: 15px; padding-bottom: 30px"
  8443. >
  8444. <div
  8445. style="
  8446. display: flex;
  8447. flex-wrap: nowrap;
  8448. flex-direction: column;
  8449. position: relative;
  8450. "
  8451. >
  8452. <div class="queTop">
  8453. <div class="question">
  8454. <img src="../../assets/icon/homeWork.png" alt="" />
  8455. </div>
  8456. <div class="queTitle">
  8457. <div>作业提交<span>(提交图文视频等)</span></div>
  8458. <div>:任务:{{ task.task }}</div>
  8459. </div>
  8460. </div>
  8461. <div class="ediBottom">
  8462. <div
  8463. class="addEditor"
  8464. style="margin-top: 23px"
  8465. @click="openAddWork"
  8466. v-if="!isNoHomeWork"
  8467. >
  8468. 选择文件
  8469. </div>
  8470. <div
  8471. class="addEditor"
  8472. style="margin-top: 23px"
  8473. @click="openAddWork"
  8474. v-else
  8475. >
  8476. 已提交
  8477. </div>
  8478. </div>
  8479. </div>
  8480. </div>-->
  8481. </div>
  8482. </div>
  8483. <el-dialog
  8484. title="作业提交"
  8485. :visible.sync="dialogVisible"
  8486. :append-to-body="true"
  8487. width="500px"
  8488. :before-close="handleClose"
  8489. class="dialog_change"
  8490. >
  8491. <div class="marginT">
  8492. <div>上传文件</div>
  8493. <div style="display: flex; gap: 10px">
  8494. <div
  8495. class="chapter_add"
  8496. @click="addImg($event)"
  8497. v-if="studyJuri[0].cover.length == 0"
  8498. >
  8499. <div class="up_photo">
  8500. <img src="../../assets/icon/uploadImg.png" alt />
  8501. </div>
  8502. <!-- <input
  8503. type="file"
  8504. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8505. style="display: none"
  8506. @change="beforeUpload1($event, 1)"
  8507. /> -->
  8508. <input
  8509. type="file"
  8510. accept="*"
  8511. style="display: none"
  8512. @change="beforeUpload1($event, 1)"
  8513. />
  8514. <!-- <input
  8515. type="file"
  8516. accept="image/*"
  8517. capture="camera"
  8518. style="display: none"
  8519. @change="beforeUpload1($event, 1)"
  8520. /> -->
  8521. </div>
  8522. <div
  8523. class="chapter_add"
  8524. @click="addImg($event)"
  8525. v-if="studyJuri[0].cover.length == 0"
  8526. >
  8527. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8528. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8529. </div>
  8530. <input
  8531. type="file"
  8532. accept="image/*"
  8533. capture="camera"
  8534. style="display: none"
  8535. @change="beforeUpload1($event, 1)"
  8536. />
  8537. </div>
  8538. </div>
  8539. <div
  8540. class="chapter_add"
  8541. style="
  8542. display: flex;
  8543. width: 100%;
  8544. flex-direction: row;
  8545. flex-wrap: wrap;
  8546. justify-content: flex-start;
  8547. padding: 15px 0;
  8548. "
  8549. v-if="studyJuri[0].cover.length > 0"
  8550. >
  8551. <div class="upCover">
  8552. <img
  8553. :src="studyJuri[0].cover[0].url"
  8554. alt
  8555. v-if="fileType == 0"
  8556. />
  8557. <img :src="word" alt v-else-if="fileType == 1" />
  8558. <img :src="video" alt v-else-if="fileType == 2" />
  8559. <img :src="word2" alt v-else-if="fileType == 3" />
  8560. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8561. <div class="deleteWord" @click="clean(1)">
  8562. <img src="../../assets/icon/deleteWorks.png" alt />
  8563. </div>
  8564. </div>
  8565. </div>
  8566. </div>
  8567. <div
  8568. class="upload_send"
  8569. @click="addCourseWorks(taskCount)"
  8570. v-if="!proVisible"
  8571. >
  8572. 提交
  8573. </div>
  8574. </el-dialog>
  8575. </div>
  8576. </div>
  8577. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8578. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8579. '/courseDetail?userid=' +
  8580. userid +
  8581. '&oid=' +
  8582. oid +
  8583. '&org=' +
  8584. org +
  8585. '&cid=' +
  8586. classId +
  8587. '&courseId=' +
  8588. id +
  8589. '&tType=' +
  8590. tType +
  8591. '&screenType=' +
  8592. screenType
  8593. )"></classRoomHelper>
  8594. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8595. '/courseDetail?userid=' +
  8596. userid +
  8597. '&oid=' +
  8598. oid +
  8599. '&org=' +
  8600. org +
  8601. '&cid=' +
  8602. classId +
  8603. '&courseId=' +
  8604. id +
  8605. '&tType=' +
  8606. tType +
  8607. '&screenType=' +
  8608. screenType
  8609. )"></studentClassRoomHelper>
  8610. <div
  8611. class="pButton"
  8612. @click="(pzDialog = true), selectPz()"
  8613. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8614. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8615. >
  8616. <!-- 批 -->
  8617. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8618. </div>
  8619. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8620. <div class="pzTop2">
  8621. <!-- <div>评论</div>
  8622. <div @click="pzDialog = false">
  8623. <img src="../../assets/close1.png" alt="" />
  8624. </div> -->
  8625. <div class="checkbox">
  8626. <!-- <div class="check" style="font-size: 25px; position: unset">
  8627. 评论
  8628. </div> -->
  8629. <div class="cb-tabList">
  8630. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8631. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8632. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8633. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8634. </div>
  8635. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8636. <el-option label="时间降序" :value="1"></el-option>
  8637. <el-option label="时间升序" :value="2"></el-option>
  8638. <el-option label="我的评课" :value="3"></el-option>
  8639. </el-select>
  8640. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8641. </div>
  8642. </div>
  8643. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8644. <div class="pzListBox" v-if="pzList && pzList.length">
  8645. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8646. <div class="pzNavTop">
  8647. <div>评</div>
  8648. <div>
  8649. {{
  8650. pz.username && pz.username.length > 5
  8651. ? pz.username.substring(0, 5) + "..."
  8652. : pz.username
  8653. }}的评论
  8654. </div>
  8655. <div
  8656. class="pzDelete"
  8657. v-if="pz.userid == userid"
  8658. @click="deletePz(pz.id)"
  8659. >
  8660. 删除
  8661. </div>
  8662. </div>
  8663. <div
  8664. @click="checkImg(getImgList(pz.content))"
  8665. class="pzContent cont"
  8666. v-html="pz.content"
  8667. v-if="pz.type == '1'"
  8668. ></div>
  8669. <div class="pzContent" v-if="pz.type == '2'">
  8670. <audio :src="pz.content" controls="controls" ref="audio">
  8671. Your browser does not support the audio element.
  8672. </audio>
  8673. </div>
  8674. <div class="pzContent" v-if="pz.type == '3'">
  8675. <img
  8676. :src="pz.content"
  8677. style="width: 90%; margin: 0 auto; display: block"
  8678. @click="previewImg(pz.content)"
  8679. />
  8680. </div>
  8681. <div class="timeAndReply">
  8682. <div class="time">
  8683. {{ pz.time }}
  8684. </div>
  8685. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8686. </div>
  8687. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8688. <div
  8689. v-for="(h, hIndex) in pz.hfList"
  8690. :key="hIndex"
  8691. class="hfItem"
  8692. >
  8693. <div class="whoReplyWho">
  8694. <div class="hfName">{{ h.username }}</div>
  8695. <div class="hfImg">
  8696. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8697. </div>
  8698. <div class="hfName">{{ pz.username }}</div>
  8699. </div>
  8700. <div class="hfContent" v-html="h.content"></div>
  8701. <div class="hfBottom">
  8702. <div class="hfTime">{{ h.time }}</div>
  8703. <div
  8704. class="deleteHfItem"
  8705. @click="deleteReply(h.id)"
  8706. v-if="userid == h.userid"
  8707. >
  8708. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8709. </div>
  8710. </div>
  8711. </div>
  8712. </div>
  8713. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8714. <div class="replyInput">
  8715. <el-input v-model="reply[pzIndex]"></el-input>
  8716. </div>
  8717. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8718. </div> -->
  8719. </div>
  8720. </div>
  8721. <div class="noPz" v-else>
  8722. <img src="../../assets/icon/noPz.png" alt="" />
  8723. </div>
  8724. <div class="addPzButton">
  8725. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8726. 添加评论
  8727. </div>
  8728. <!-- <div class="img1">
  8729. <div @click="(addPzDialog = true), (pzType = 2)">
  8730. <img src="../../assets/audio.png" /><span>音频</span>
  8731. </div>
  8732. </div> -->
  8733. </div>
  8734. </div>
  8735. <div class="scoreList" v-if="commentTagShow==1">
  8736. <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"/>
  8737. </div>
  8738. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8739. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8740. </div>
  8741. </div>
  8742. <div
  8743. v-if="toolDialogVisible == true"
  8744. class="toolMask"
  8745. @click="toolDialogVisible = false"
  8746. ></div>
  8747. <div v-if="toolDialogVisible == true" class="addToolCss">
  8748. <div class="toolTop">
  8749. <div style="font-weight: bold">新增工具</div>
  8750. <div @click="toolDialogVisible = false">
  8751. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8752. </div>
  8753. </div>
  8754. <div class="tool_box">
  8755. <div class="tool_type_box">
  8756. <div class="chooseWho">
  8757. <div
  8758. :class="toolType == 0 ? 'isChooseActive' : ''"
  8759. @click="(toolType = 0), $forceUpdate()"
  8760. >
  8761. 互动类
  8762. </div>
  8763. <div
  8764. :class="toolType == 1 ? 'isChooseActive' : ''"
  8765. @click="(toolType = 1), $forceUpdate()"
  8766. >
  8767. 思维类
  8768. </div>
  8769. <div
  8770. :class="toolType == 2 ? 'isChooseActive' : ''"
  8771. @click="(toolType = 2), $forceUpdate()"
  8772. >
  8773. 测评类
  8774. </div>
  8775. <div
  8776. :class="toolType == 3 ? 'isChooseActive' : ''"
  8777. @click="(toolType = 3), $forceUpdate()"
  8778. >
  8779. 编程类
  8780. </div>
  8781. <div
  8782. :class="toolType == 5 ? 'isChooseActive' : ''"
  8783. @click="(toolType = 5), $forceUpdate()"
  8784. >
  8785. 学科类
  8786. </div>
  8787. </div>
  8788. </div>
  8789. <div>
  8790. <div class="toolSort" v-if="toolType == 0">
  8791. <div
  8792. class="tool"
  8793. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8794. @click="addTools2(10)"
  8795. >
  8796. <div class="whiteBIcon">
  8797. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8798. <div style="margin: 5px 0">倒计时</div>
  8799. </div>
  8800. <div class="check">
  8801. <div
  8802. v-if="checktoolArray.indexOf(10) == -1"
  8803. class="noChoose"
  8804. ></div>
  8805. <div v-else class="isChoose"></div>
  8806. </div>
  8807. </div>
  8808. <div
  8809. class="tool"
  8810. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8811. @click="addTools2(65)"
  8812. >
  8813. <div class="whiteBIcon">
  8814. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8815. <div style="margin: 5px 0">挑人</div>
  8816. </div>
  8817. <div class="check">
  8818. <div
  8819. v-if="checktoolArray.indexOf(65) == -1"
  8820. class="noChoose"
  8821. ></div>
  8822. <div v-else class="isChoose"></div>
  8823. </div>
  8824. </div>
  8825. </div>
  8826. <div class="toolSort" v-if="toolType == 1">
  8827. <div
  8828. class="tool"
  8829. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8830. @click="addTools2(7)"
  8831. >
  8832. <div class="whiteBIcon">
  8833. <img
  8834. src="../../assets/icon/secondToolList/mindNetwork.png"
  8835. alt
  8836. />
  8837. <div style="margin: 5px 0">思维网格</div>
  8838. </div>
  8839. <div class="check">
  8840. <div
  8841. v-if="checktoolArray.indexOf(7) == -1"
  8842. class="noChoose"
  8843. ></div>
  8844. <div v-else class="isChoose"></div>
  8845. </div>
  8846. </div>
  8847. <div
  8848. class="tool"
  8849. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8850. @click="addTools2(1)"
  8851. >
  8852. <div class="whiteBIcon">
  8853. <img
  8854. src="../../assets/icon/secondToolList/whiteBoard.png"
  8855. alt
  8856. />
  8857. <div style="margin: 5px 0">电子白板</div>
  8858. </div>
  8859. <div class="check">
  8860. <div
  8861. v-if="checktoolArray.indexOf(1) == -1"
  8862. class="noChoose"
  8863. ></div>
  8864. <div v-else class="isChoose"></div>
  8865. </div>
  8866. </div>
  8867. <div
  8868. class="tool"
  8869. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8870. @click="addTools2(52)"
  8871. >
  8872. <div class="whiteBIcon">
  8873. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8874. <div style="margin: 5px 0">文档</div>
  8875. </div>
  8876. <div class="check">
  8877. <div
  8878. v-if="checktoolArray.indexOf(52) == -1"
  8879. class="noChoose"
  8880. ></div>
  8881. <div v-else class="isChoose"></div>
  8882. </div>
  8883. </div>
  8884. <div
  8885. class="tool"
  8886. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8887. @click="addTools2(3)"
  8888. >
  8889. <div class="whiteBIcon">
  8890. <img
  8891. src="../../assets/icon/secondToolList/mindMapping.png"
  8892. alt
  8893. />
  8894. <div style="margin: 5px 0">思维导图</div>
  8895. </div>
  8896. <div class="check">
  8897. <div
  8898. v-if="checktoolArray.indexOf(3) == -1"
  8899. class="noChoose"
  8900. ></div>
  8901. <div v-else class="isChoose"></div>
  8902. </div>
  8903. </div>
  8904. <div
  8905. class="tool"
  8906. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8907. @click="addTools2(48)"
  8908. >
  8909. <div class="whiteBIcon">
  8910. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8911. <div style="margin: 5px 0">表格</div>
  8912. </div>
  8913. <div class="check">
  8914. <div
  8915. v-if="checktoolArray.indexOf(48) == -1"
  8916. class="noChoose"
  8917. ></div>
  8918. <div v-else class="isChoose"></div>
  8919. </div>
  8920. </div>
  8921. </div>
  8922. <div class="toolSort" v-if="toolType == 6">
  8923. <div v-show="tooC == 49">
  8924. <img
  8925. @click="addTools(tooC, toolIndex, taskCount)"
  8926. src="../../assets/icon/fourthToolList/group.png"
  8927. alt
  8928. />
  8929. <div style="margin: 5px 0">学生分组</div>
  8930. </div>
  8931. </div>
  8932. <div class="toolSort" v-if="toolType == 2">
  8933. <div
  8934. class="tool"
  8935. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8936. @click="addTools2(16)"
  8937. >
  8938. <div class="whiteBIcon">
  8939. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8940. <div style="margin: 5px 0">作业提交</div>
  8941. </div>
  8942. <div class="check">
  8943. <div
  8944. v-if="checktoolArray.indexOf(16) == -1"
  8945. class="noChoose"
  8946. ></div>
  8947. <div v-else class="isChoose"></div>
  8948. </div>
  8949. </div>
  8950. <div
  8951. class="tool"
  8952. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8953. @click="addTools2(50)"
  8954. >
  8955. <div class="whiteBIcon">
  8956. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8957. <div style="margin: 5px 0">批量上传</div>
  8958. </div>
  8959. <div class="check">
  8960. <div
  8961. v-if="checktoolArray.indexOf(50) == -1"
  8962. class="noChoose"
  8963. ></div>
  8964. <div v-else class="isChoose"></div>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. <div class="toolSort" v-if="toolType == 3">
  8969. <div
  8970. class="tool"
  8971. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8972. @click="addTools2(18)"
  8973. >
  8974. <div class="whiteBIcon">
  8975. <img
  8976. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8977. alt
  8978. />
  8979. <div style="margin: 5px 0">训练平台</div>
  8980. </div>
  8981. <div class="check">
  8982. <div
  8983. v-if="checktoolArray.indexOf(18) == -1"
  8984. class="noChoose"
  8985. ></div>
  8986. <div v-else class="isChoose"></div>
  8987. </div>
  8988. </div>
  8989. <div
  8990. class="tool"
  8991. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8992. @click="addTools2(21)"
  8993. >
  8994. <div class="whiteBIcon">
  8995. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8996. <div style="margin: 5px 0">AIoT Blockly</div>
  8997. </div>
  8998. <div class="check">
  8999. <div
  9000. v-if="checktoolArray.indexOf(21) == -1"
  9001. class="noChoose"
  9002. ></div>
  9003. <div v-else class="isChoose"></div>
  9004. </div>
  9005. </div>
  9006. <div
  9007. class="tool"
  9008. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9009. @click="addTools2(23)"
  9010. >
  9011. <div class="whiteBIcon">
  9012. <img
  9013. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9014. alt
  9015. />
  9016. <div style="margin: 5px 0">AI Python</div>
  9017. </div>
  9018. <div class="check">
  9019. <div
  9020. v-if="checktoolArray.indexOf(23) == -1"
  9021. class="noChoose"
  9022. ></div>
  9023. <div v-else class="isChoose"></div>
  9024. </div>
  9025. </div>
  9026. <div
  9027. class="tool"
  9028. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9029. @click="addTools2(24)"
  9030. >
  9031. <div class="whiteBIcon">
  9032. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9033. <div style="margin: 5px 0">AI Blockly</div>
  9034. </div>
  9035. <div class="check">
  9036. <div
  9037. v-if="checktoolArray.indexOf(24) == -1"
  9038. class="noChoose"
  9039. ></div>
  9040. <div v-else class="isChoose"></div>
  9041. </div>
  9042. </div>
  9043. <div
  9044. class="tool"
  9045. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9046. @click="addTools2(32)"
  9047. >
  9048. <div class="whiteBIcon">
  9049. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9050. <div style="margin: 5px 0">源码编辑</div>
  9051. </div>
  9052. <div class="check">
  9053. <div
  9054. v-if="checktoolArray.indexOf(32) == -1"
  9055. class="noChoose"
  9056. ></div>
  9057. <div v-else class="isChoose"></div>
  9058. </div>
  9059. </div>
  9060. <div
  9061. class="tool"
  9062. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9063. @click="addTools2(57)"
  9064. >
  9065. <div class="whiteBIcon">
  9066. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9067. <div style="margin: 5px 0">CocoPi</div>
  9068. </div>
  9069. <div class="check">
  9070. <div
  9071. v-if="checktoolArray.indexOf(57) == -1"
  9072. class="noChoose"
  9073. ></div>
  9074. <div v-else class="isChoose"></div>
  9075. </div>
  9076. </div>
  9077. <div
  9078. class="tool"
  9079. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9080. @click="addTools2(63)"
  9081. >
  9082. <div class="whiteBIcon">
  9083. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9084. <div style="margin: 5px 0">海龟编程</div>
  9085. </div>
  9086. <div class="check">
  9087. <div
  9088. v-if="checktoolArray.indexOf(63) == -1"
  9089. class="noChoose"
  9090. ></div>
  9091. <div v-else class="isChoose"></div>
  9092. </div>
  9093. </div>
  9094. <div
  9095. class="tool"
  9096. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9097. @click="addTools2(71)"
  9098. >
  9099. <div class="whiteBIcon">
  9100. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9101. <div style="margin: 5px 0">AI智能体</div>
  9102. </div>
  9103. <div class="check">
  9104. <div
  9105. v-if="checktoolArray.indexOf(71) == -1"
  9106. class="noChoose"
  9107. ></div>
  9108. <div v-else class="isChoose"></div>
  9109. </div>
  9110. </div>
  9111. </div>
  9112. <div class="toolSort" v-if="toolType == 7">
  9113. <div
  9114. class="tool"
  9115. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9116. @click="addTools2(40)"
  9117. >
  9118. <div class="whiteBIcon">
  9119. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9120. <div style="margin: 5px 0">个人评价</div>
  9121. </div>
  9122. <div class="check">
  9123. <div
  9124. v-if="checktoolArray.indexOf(40) == -1"
  9125. class="noChoose"
  9126. ></div>
  9127. <div v-else class="isChoose"></div>
  9128. </div>
  9129. </div>
  9130. </div>
  9131. <div class="toolSort" v-if="toolType == 5">
  9132. <div
  9133. class="tool"
  9134. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9135. @click="addTools2(28)"
  9136. >
  9137. <div class="whiteBIcon">
  9138. <img
  9139. src="../../assets/icon/secondToolList/translation.png"
  9140. alt
  9141. />
  9142. <div style="margin: 5px 0">翻译</div>
  9143. </div>
  9144. <div class="check">
  9145. <div
  9146. v-if="checktoolArray.indexOf(28) == -1"
  9147. class="noChoose"
  9148. ></div>
  9149. <div v-else class="isChoose"></div>
  9150. </div>
  9151. </div>
  9152. <div
  9153. class="tool"
  9154. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9155. @click="addTools2(31)"
  9156. >
  9157. <div class="whiteBIcon">
  9158. <img
  9159. src="../../assets/icon/secondToolList/networkPanel.png"
  9160. alt
  9161. />
  9162. <div style="margin: 5px 0">数字画板</div>
  9163. </div>
  9164. <div class="check">
  9165. <div
  9166. v-if="checktoolArray.indexOf(31) == -1"
  9167. class="noChoose"
  9168. ></div>
  9169. <div v-else class="isChoose"></div>
  9170. </div>
  9171. </div>
  9172. <div
  9173. class="tool"
  9174. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9175. @click="addTools2(39)"
  9176. >
  9177. <div class="whiteBIcon">
  9178. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9179. <div style="margin: 5px 0">GeoGebra</div>
  9180. </div>
  9181. <div class="check">
  9182. <div
  9183. v-if="checktoolArray.indexOf(39) == -1"
  9184. class="noChoose"
  9185. ></div>
  9186. <div v-else class="isChoose"></div>
  9187. </div>
  9188. </div>
  9189. <div
  9190. class="tool"
  9191. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9192. @click="addTools2(66)"
  9193. >
  9194. <div class="whiteBIcon">
  9195. <img
  9196. src="../../assets/icon/secondToolList/formulaEdi.png"
  9197. alt
  9198. />
  9199. <div style="margin: 5px 0">公式编辑</div>
  9200. </div>
  9201. <div class="check">
  9202. <div
  9203. v-if="checktoolArray.indexOf(66) == -1"
  9204. class="noChoose"
  9205. ></div>
  9206. <div v-else class="isChoose"></div>
  9207. </div>
  9208. </div>
  9209. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9210. <div class="whiteBIcon" @click="addTools2(67)">
  9211. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9212. <div style="margin: 5px 0">分子结构</div>
  9213. </div>
  9214. <div class="check" @click="addTools2(67)">
  9215. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9216. <div v-else class="isChoose"></div>
  9217. </div>
  9218. </div> -->
  9219. <div
  9220. class="tool"
  9221. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9222. @click="addTools2(68)"
  9223. >
  9224. <div class="whiteBIcon">
  9225. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9226. <div style="margin: 5px 0">时间轴</div>
  9227. </div>
  9228. <div class="check">
  9229. <div
  9230. v-if="checktoolArray.indexOf(68) == -1"
  9231. class="noChoose"
  9232. ></div>
  9233. <div v-else class="isChoose"></div>
  9234. </div>
  9235. </div>
  9236. <!-- <div
  9237. class="tool"
  9238. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9239. @click="addTools2(69)"
  9240. >
  9241. <div class="whiteBIcon">
  9242. <img src="../../assets/icon/secondToolList/english.png" alt />
  9243. <div style="margin: 5px 0">英语写作</div>
  9244. </div>
  9245. <div class="check">
  9246. <div
  9247. v-if="checktoolArray.indexOf(69) == -1"
  9248. class="noChoose"
  9249. ></div>
  9250. <div v-else class="isChoose"></div>
  9251. </div>
  9252. </div> -->
  9253. </div>
  9254. <div class="toolSort" v-if="toolType == 4">
  9255. <div
  9256. class="tool"
  9257. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9258. @click="addTools2(26)"
  9259. >
  9260. <div class="whiteBIcon">
  9261. <img
  9262. src="../../assets/icon/thirdToolList/courseDesign.png"
  9263. alt
  9264. />
  9265. <div style="margin: 5px 0">课程设计</div>
  9266. </div>
  9267. <div class="check">
  9268. <div
  9269. v-if="checktoolArray.indexOf(26) == -1"
  9270. class="noChoose"
  9271. ></div>
  9272. <div v-else class="isChoose"></div>
  9273. </div>
  9274. </div>
  9275. <div
  9276. class="tool"
  9277. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9278. @click="addTools2(25)"
  9279. >
  9280. <div class="whiteBIcon">
  9281. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9282. <div style="margin: 5px 0">目标管理</div>
  9283. </div>
  9284. <div class="check">
  9285. <div
  9286. v-if="checktoolArray.indexOf(25) == -1"
  9287. class="noChoose"
  9288. ></div>
  9289. <div v-else class="isChoose"></div>
  9290. </div>
  9291. </div>
  9292. </div>
  9293. </div>
  9294. </div>
  9295. <span
  9296. slot="footer"
  9297. class="dialog-footer"
  9298. style="display: block; text-align: center; padding: 0 0 10px 0"
  9299. >
  9300. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9301. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9302. </span>
  9303. </div>
  9304. <div
  9305. v-if="replyDialogVisible == true"
  9306. class="addDialogCss"
  9307. v-el-drag-dialog
  9308. >
  9309. <div class="pzTop">
  9310. <div class="teacherPz">
  9311. <div class="teacherPzImg">
  9312. <img src="../../assets/icon/teacherPz.png" alt="" />
  9313. </div>
  9314. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9315. </div>
  9316. <div @click="replyDialogVisible = false">
  9317. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9318. </div>
  9319. </div>
  9320. <div class="addPzBox">
  9321. <!-- <div class="addPzCheck">
  9322. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9323. >文本</span
  9324. >
  9325. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9326. >音频</span
  9327. >
  9328. </div> -->
  9329. <div style="height: calc(100% - 50px)">
  9330. <editor-bar
  9331. class="binfo_input pzConText"
  9332. style="width: 100% !important; margin: 0 auto"
  9333. placeholder="请输入回复描述"
  9334. v-model="reply"
  9335. @change="change"
  9336. ></editor-bar>
  9337. </div>
  9338. <div class="addTextCss" @click="addHf">确定</div>
  9339. </div>
  9340. </div>
  9341. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9342. <div class="pzTop">
  9343. <div class="teacherPz">
  9344. <div class="teacherPzImg">
  9345. <img src="../../assets/icon/teacherPz.png" alt="" />
  9346. </div>
  9347. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9348. </div>
  9349. <div @click="addPzDialog = false">
  9350. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9351. </div>
  9352. </div>
  9353. <div class="addPzBox">
  9354. <div class="addPzCheck">
  9355. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9356. >文本</span
  9357. >
  9358. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9359. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9360. >音频</span
  9361. >
  9362. </div>
  9363. <div style="height: calc(100% - 95px)">
  9364. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9365. v-if="pzType == 1"></textarea> -->
  9366. <editor-bar
  9367. class="binfo_input pzConText"
  9368. style="width: 100% !important"
  9369. placeholder="请输入任务描述"
  9370. v-model="pzConText"
  9371. @change="change"
  9372. v-if="pzType == 1"
  9373. ></editor-bar>
  9374. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9375. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9376. <div @click="addImg($event)">
  9377. <el-button type="primary">上传图片</el-button>
  9378. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9379. @change="beforeUpload1($event, 4)" />
  9380. </div>
  9381. </div> -->
  9382. </div>
  9383. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9384. 确定
  9385. </div>
  9386. </div>
  9387. </div>
  9388. <div v-if="proVisible" class="mask">
  9389. <div class="progressBox">
  9390. <!-- <div id="closePro" class="closeCss">
  9391. <img src="../../assets/icon/close.png" alt />
  9392. </div> -->
  9393. <div class="lbox">
  9394. <img src="../../assets/loading.gif" />上传中,请稍后
  9395. </div>
  9396. <div style="margin-bottom: 10px">
  9397. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9398. </div>
  9399. <el-progress
  9400. :text-inside="true"
  9401. :stroke-width="20"
  9402. :percentage="progress"
  9403. style="width: 80%"
  9404. ></el-progress>
  9405. </div>
  9406. </div>
  9407. <div v-if="proVisible2" class="mask">
  9408. <div class="progressBox">
  9409. <div class="lbox">
  9410. <img src="../../assets/loading.gif" />上传中,请稍后
  9411. </div>
  9412. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9413. </div>
  9414. </div>
  9415. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9416. <img width="100%" :src="dialogImageUrl" alt />
  9417. </el-dialog>
  9418. <el-dialog
  9419. :title="noteName != '' ? noteName : '查看问卷'"
  9420. :visible.sync="dialogVisible5"
  9421. :append-to-body="true"
  9422. width="1000px"
  9423. :before-close="handleClose"
  9424. class="dialog_diy dialog_diy3"
  9425. >
  9426. <div>
  9427. <div
  9428. class="a_add_title"
  9429. style="
  9430. display: flex;
  9431. flex-direction: row;
  9432. align-items: center;
  9433. justify-content: center;
  9434. "
  9435. >
  9436. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9437. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9438. </div>
  9439. <div class="a_addBox">
  9440. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9441. 题目内容
  9442. </div>
  9443. <div
  9444. class="a_add_box"
  9445. v-for="(item1, index1) in askJson.askCount"
  9446. :key="index1"
  9447. >
  9448. <div class="a_add_head">
  9449. <div style="display: flex">
  9450. <span class="askIndex"> {{ index1 + 1 }}</span>
  9451. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9452. </div>
  9453. <img
  9454. v-if="askJson.askJson[index1].img"
  9455. :src="askJson.askJson[index1].img"
  9456. style="height: 300px; margin-top: 10px; max-width: 100%"
  9457. />
  9458. </div>
  9459. <div class="a_add_body">
  9460. <div class="a_add_input">
  9461. <el-radio-group
  9462. v-model="radio[index1]"
  9463. v-if="
  9464. askJson.askJson[index1].type == '1' ||
  9465. !askJson.askJson[index1].type
  9466. "
  9467. >
  9468. <el-radio
  9469. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9470. .checkList"
  9471. :key="checkIndex"
  9472. :label="checkIndex"
  9473. :disabled="isAnswer"
  9474. class="redioStyle"
  9475. ><span v-html="item2"></span
  9476. ></el-radio>
  9477. </el-radio-group>
  9478. <el-checkbox-group
  9479. v-model="radio[index1]"
  9480. v-if="askJson.askJson[index1].type == '2'"
  9481. >
  9482. <el-checkbox
  9483. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9484. .checkList"
  9485. :key="checkIndex1"
  9486. :label="checkIndex1"
  9487. :disabled="isAnswer"
  9488. class="redioStyle"
  9489. ><span v-html="item2"></span>
  9490. </el-checkbox>
  9491. </el-checkbox-group>
  9492. </div>
  9493. </div>
  9494. </div>
  9495. </div>
  9496. </div>
  9497. <span slot="footer" class="dialog-footer">
  9498. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9499. >取 消</el-button
  9500. >
  9501. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9502. >确 定</el-button
  9503. >
  9504. </span>
  9505. </el-dialog>
  9506. <el-dialog
  9507. :title="noteName != '' ? noteName : '查看问卷'"
  9508. :visible.sync="dialogVisible5Teacher"
  9509. :append-to-body="true"
  9510. width="1000px"
  9511. :before-close="handleClose"
  9512. class="dialog_diy dialog_diy3"
  9513. >
  9514. <div>
  9515. <div class="w_name">
  9516. 学生姓名:<span>{{ sStudent.student }}</span>
  9517. </div>
  9518. <div
  9519. class="a_add_title"
  9520. style="
  9521. display: flex;
  9522. flex-direction: row;
  9523. align-items: center;
  9524. justify-content: center;
  9525. "
  9526. >
  9527. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9528. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9529. </div>
  9530. <div class="a_addBox">
  9531. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9532. 题目内容
  9533. </div>
  9534. <div
  9535. class="a_add_box"
  9536. v-for="(item1, index1) in askJson.askCount"
  9537. :key="index1"
  9538. >
  9539. <div class="a_add_head">
  9540. <div style="display: flex">
  9541. <span class="askIndex">{{ index1 + 1 }}</span>
  9542. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9543. </div>
  9544. <img
  9545. v-if="askJson.askJson[index1].img"
  9546. :src="askJson.askJson[index1].img"
  9547. style="height: 300px; margin-top: 10px; max-width: 100%"
  9548. />
  9549. </div>
  9550. <div class="a_add_body">
  9551. <div class="a_add_input">
  9552. <el-radio-group
  9553. v-model="radio[index1]"
  9554. v-if="
  9555. askJson.askJson[index1].type == '1' ||
  9556. !askJson.askJson[index1].type
  9557. "
  9558. >
  9559. <el-radio
  9560. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9561. .checkList"
  9562. :key="checkIndex"
  9563. :label="checkIndex"
  9564. :disabled="isAnswer"
  9565. class="redioStyle"
  9566. ><span v-html="item2"></span
  9567. ></el-radio>
  9568. </el-radio-group>
  9569. <el-checkbox-group
  9570. v-model="radio[index1]"
  9571. v-if="askJson.askJson[index1].type == '2'"
  9572. >
  9573. <el-checkbox
  9574. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9575. .checkList"
  9576. :key="checkIndex1"
  9577. :label="checkIndex1"
  9578. :disabled="isAnswer"
  9579. class="redioStyle"
  9580. ><span v-html="item2"></span>
  9581. </el-checkbox>
  9582. </el-checkbox-group>
  9583. </div>
  9584. </div>
  9585. </div>
  9586. </div>
  9587. </div>
  9588. <span slot="footer" class="dialog-footer">
  9589. <el-button
  9590. @click="dialogVisible5Teacher = false"
  9591. v-show="noteName == ''"
  9592. >取 消</el-button
  9593. >
  9594. <el-button
  9595. type="primary"
  9596. @click="addStudentAskTeacher"
  9597. v-show="noteName == ''"
  9598. >确 定</el-button
  9599. >
  9600. </span>
  9601. </el-dialog>
  9602. <el-dialog
  9603. :title="noteName != '' ? noteName : '查看选择题'"
  9604. :visible.sync="dialogVisibleChoice"
  9605. :append-to-body="true"
  9606. width="1000px"
  9607. :before-close="handleClose"
  9608. class="dialog_diy dialog_diy3"
  9609. >
  9610. <div>
  9611. <!-- <div class="a_add_title" style="
  9612. display: flex;
  9613. flex-direction: row;
  9614. align-items: center;
  9615. justify-content: center;
  9616. ">
  9617. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9618. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9619. </div> -->
  9620. <div class="a_addBox">
  9621. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9622. 题目内容
  9623. </div>
  9624. <div
  9625. class="a_add_box"
  9626. v-for="(item1, index1) in testJson.testCount"
  9627. :key="index1"
  9628. >
  9629. <div class="a_add_head">
  9630. <div style="display: flex;align-items: center;">
  9631. <span class="askIndex">{{ index1 + 1 }}</span>
  9632. <div
  9633. v-if="testJson.testJson[index1].type == '1'"
  9634. style="margin-right: 5px; min-width: 70px"
  9635. >
  9636. (单选题)
  9637. </div>
  9638. <div
  9639. v-if="testJson.testJson[index1].type == '2'"
  9640. style="margin-right: 5px; min-width: 70px"
  9641. >
  9642. (多选题)
  9643. </div>
  9644. <div>题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9645. </div>
  9646. <img
  9647. v-if="testJson.testJson[index1].img"
  9648. :src="testJson.testJson[index1].img"
  9649. style="height: 300px; margin-top: 10px; max-width: 100%"
  9650. />
  9651. </div>
  9652. <div
  9653. class="timuImgBox"
  9654. v-if="
  9655. testJson.testJson[index1].timuList &&
  9656. testJson.testJson[index1].timuList.length
  9657. "
  9658. >
  9659. <div
  9660. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9661. :key="tIndex"
  9662. class="timuImg"
  9663. @click.stop="previewImg(timg.src)"
  9664. >
  9665. <img :src="timg.src" alt="" />
  9666. </div>
  9667. </div>
  9668. <div class="a_add_body">
  9669. <div class="a_add_input">
  9670. <el-radio-group
  9671. v-model="radio[index1]"
  9672. v-if="testJson.testJson[index1].type == '1'"
  9673. >
  9674. <div class="radioBox">
  9675. <el-radio
  9676. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9677. .checkList"
  9678. :key="checkIndex"
  9679. :label="checkIndex"
  9680. :disabled="isAnswer"
  9681. class="redioStyle"
  9682. >
  9683. <div
  9684. style="margin-right: 10px"
  9685. v-if="item2 && item2.imgType && item2.imgType == 1"
  9686. >
  9687. <div class="inImg" @click.stop="previewImg(item2.src)">
  9688. <img :src="item2.src" alt="" />
  9689. </div>
  9690. </div>
  9691. <span v-else v-html="item2"></span>
  9692. </el-radio>
  9693. </div>
  9694. </el-radio-group>
  9695. <el-checkbox-group
  9696. v-model="radio[index1]"
  9697. v-if="testJson.testJson[index1].type == '2'"
  9698. >
  9699. <div class="radioBox">
  9700. <el-checkbox
  9701. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9702. .checkList"
  9703. :key="checkIndex"
  9704. :label="checkIndex"
  9705. :disabled="isAnswer"
  9706. class="redioStyle"
  9707. >
  9708. <div
  9709. style="margin-right: 10px"
  9710. v-if="item2 && item2.imgType && item2.imgType == 1"
  9711. >
  9712. <div class="inImg" @click.stop="previewImg(item2.src)">
  9713. <img :src="item2.src" alt="" />
  9714. </div>
  9715. </div>
  9716. <span v-else v-html="item2"></span>
  9717. </el-checkbox>
  9718. </div>
  9719. </el-checkbox-group>
  9720. </div>
  9721. </div>
  9722. </div>
  9723. </div>
  9724. </div>
  9725. <span slot="footer" class="dialog-footer">
  9726. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9727. >取 消</el-button
  9728. >
  9729. <el-button
  9730. type="primary"
  9731. @click="addStudentTest"
  9732. v-show="noteName == ''"
  9733. >确 定</el-button
  9734. >
  9735. </span>
  9736. </el-dialog>
  9737. <el-dialog
  9738. :title="noteName != '' ? noteName : '查看选择题'"
  9739. :visible.sync="dialogVisibleChoiceTeacher"
  9740. :append-to-body="true"
  9741. width="1000px"
  9742. :before-close="handleClose"
  9743. class="dialog_diy dialog_diy3"
  9744. >
  9745. <div>
  9746. <div class="w_name">
  9747. 学生姓名:<span>{{ sStudent.student }}</span>
  9748. </div>
  9749. <div class="a_addBox">
  9750. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9751. 题目内容
  9752. </div>
  9753. <div
  9754. class="a_add_box"
  9755. v-for="(item1, index1) in testJson.testCount"
  9756. :key="index1"
  9757. >
  9758. <div class="a_add_head">
  9759. <div style="display: flex">
  9760. <span class="askIndex">{{ index1 + 1 }}</span>
  9761. <div
  9762. v-if="testJson.testJson[index1].type == '1'"
  9763. style="margin-right: 5px; min-width: 70px"
  9764. >
  9765. (单选题)
  9766. </div>
  9767. <div
  9768. v-if="testJson.testJson[index1].type == '2'"
  9769. style="margin-right: 5px; min-width: 70px"
  9770. >
  9771. (多选题)
  9772. </div>
  9773. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9774. </div>
  9775. <img
  9776. v-if="testJson.testJson[index1].img"
  9777. :src="testJson.testJson[index1].img"
  9778. style="height: 300px; margin-top: 10px; max-width: 100%"
  9779. />
  9780. </div>
  9781. <div
  9782. class="timuImgBox"
  9783. v-if="
  9784. testJson.testJson[index1].timuList &&
  9785. testJson.testJson[index1].timuList.length
  9786. "
  9787. >
  9788. <div
  9789. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9790. :key="tIndex"
  9791. class="timuImg"
  9792. @click.stop="previewImg(timg.src)"
  9793. >
  9794. <img :src="timg.src" alt="" />
  9795. </div>
  9796. </div>
  9797. <div class="a_add_body">
  9798. <div class="a_add_input">
  9799. <el-radio-group
  9800. v-model="radio[index1]"
  9801. v-if="testJson.testJson[index1].type == '1'"
  9802. >
  9803. <div class="radioBox">
  9804. <el-radio
  9805. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9806. .checkList"
  9807. :key="checkIndex"
  9808. :label="checkIndex"
  9809. :disabled="isAnswer"
  9810. class="redioStyle"
  9811. >
  9812. <div
  9813. style="margin-right: 10px"
  9814. v-if="item2 && item2.imgType && item2.imgType == 1"
  9815. >
  9816. <div class="inImg" @click.stop="previewImg(item2.src)">
  9817. <img :src="item2.src" alt="" />
  9818. </div>
  9819. </div>
  9820. <span v-else v-html="item2"></span>
  9821. </el-radio>
  9822. </div>
  9823. </el-radio-group>
  9824. <el-checkbox-group
  9825. v-model="radio[index1]"
  9826. v-if="testJson.testJson[index1].type == '2'"
  9827. >
  9828. <div class="radioBox">
  9829. <el-checkbox
  9830. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9831. .checkList"
  9832. :key="checkIndex"
  9833. :label="checkIndex"
  9834. :disabled="isAnswer"
  9835. class="redioStyle"
  9836. >
  9837. <div
  9838. style="margin-right: 10px"
  9839. v-if="item2 && item2.imgType && item2.imgType == 1"
  9840. >
  9841. <div class="inImg" @click.stop="previewImg(item2.src)">
  9842. <img :src="item2.src" alt="" />
  9843. </div>
  9844. </div>
  9845. <span v-else v-html="item2"></span>
  9846. </el-checkbox>
  9847. </div>
  9848. </el-checkbox-group>
  9849. </div>
  9850. </div>
  9851. </div>
  9852. </div>
  9853. </div>
  9854. <span slot="footer" class="dialog-footer">
  9855. <el-button
  9856. @click="dialogVisibleChoiceTeacher = false"
  9857. v-show="noteName == ''"
  9858. >取 消</el-button
  9859. >
  9860. <el-button
  9861. type="primary"
  9862. @click="addStudentTestTeacher"
  9863. v-show="noteName == ''"
  9864. >确 定</el-button
  9865. >
  9866. </span>
  9867. </el-dialog>
  9868. <el-dialog
  9869. title="查看富文本"
  9870. :visible.sync="dialogVisible1"
  9871. :append-to-body="true"
  9872. width="500px"
  9873. :before-close="handleClose"
  9874. class="dialog_diy textCss"
  9875. >
  9876. <el-form style="font-size: 20px">
  9877. <el-form-item label="文本标题" class="textTitle">
  9878. <div style="font-size: 20px">{{ text.name }}</div>
  9879. </el-form-item>
  9880. <div>富文本内容</div>
  9881. <div
  9882. v-html="text.url"
  9883. style="font-size: 18px; padding: 40px 0 0 0"
  9884. ></div>
  9885. </el-form>
  9886. <span slot="footer" class="dialog-footer">
  9887. <el-button type="primary" @click="dialogVisible1 = false"
  9888. >确定</el-button
  9889. >
  9890. </span>
  9891. </el-dialog>
  9892. <el-dialog
  9893. title="文件预览"
  9894. :visible.sync="dialogVisible3"
  9895. width="50%"
  9896. :before-close="handleClose"
  9897. class="dialog_diy"
  9898. :class="{ fullStyle: full }"
  9899. >
  9900. <div slot="title" class="header-title">
  9901. <div style="color: #fff">文件预览</div>
  9902. <div style="position: absolute; top: 19px; right: 50px">
  9903. <img
  9904. src="../../assets/full.png"
  9905. style="height: 16px; cursor: pointer"
  9906. alt=""
  9907. @click="fullTools"
  9908. />
  9909. </div>
  9910. </div>
  9911. <pdf
  9912. v-if="showPDF"
  9913. :pdfUrl="pptImgUrl"
  9914. style="width: 100%; height: 520px; overflow: auto"
  9915. :class="{ fullStyle: full }"
  9916. ></pdf>
  9917. <iframe
  9918. v-else
  9919. :src="pptImgUrl"
  9920. frameborder="0"
  9921. width="100%"
  9922. height="600"
  9923. :class="{ fullStyle: full }"
  9924. ></iframe>
  9925. </el-dialog>
  9926. <el-dialog
  9927. title="文件预览"
  9928. :visible.sync="dialogVisible6"
  9929. width="50%"
  9930. :before-close="handleClose"
  9931. class="dialog_diy"
  9932. >
  9933. <iframe
  9934. :src="pptImgUrl1"
  9935. frameborder="0"
  9936. width="100%"
  9937. height="600"
  9938. ></iframe>
  9939. </el-dialog>
  9940. <el-dialog
  9941. title="提示"
  9942. :visible.sync="dialogVisible4"
  9943. :append-to-body="true"
  9944. width="800px"
  9945. :before-close="handleClose"
  9946. class="dialog_diy notice"
  9947. >
  9948. <div>此功能暂未开放!</div>
  9949. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9950. </el-dialog>
  9951. <el-dialog
  9952. title="问答"
  9953. :visible.sync="answerDialogVisible"
  9954. :append-to-body="true"
  9955. width="800px"
  9956. :before-close="handleClose"
  9957. class="dialog_diy"
  9958. >
  9959. <div>
  9960. <div
  9961. style="
  9962. display: flex;
  9963. flex-wrap: nowrap;
  9964. flex-direction: column;
  9965. position: relative;
  9966. "
  9967. >
  9968. <div class="queTop" style="padding: 20px 0 20px 0">
  9969. <div class="question">
  9970. <img src="../../assets/icon/question.png" alt />
  9971. </div>
  9972. <div class="queTitle">
  9973. <div style="width: 90px; min-width: 90px">提问:</div>
  9974. <div>{{ answerQ }}</div>
  9975. </div>
  9976. </div>
  9977. <div class="ediBottom">
  9978. <textarea
  9979. rows="6"
  9980. class="binfo_input"
  9981. cols
  9982. style="width: 95%; height: 120px"
  9983. v-model="questionAnswer"
  9984. ></textarea>
  9985. </div>
  9986. </div>
  9987. </div>
  9988. <div slot="footer">
  9989. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9990. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9991. </div>
  9992. </el-dialog>
  9993. <el-dialog
  9994. title="问答"
  9995. :visible.sync="answerDialogVisibleTeacher"
  9996. :append-to-body="true"
  9997. width="800px"
  9998. :before-close="handleClose"
  9999. class="dialog_diy"
  10000. >
  10001. <div>
  10002. <div class="w_name">
  10003. 学生姓名:<span>{{ sStudent.student }}</span>
  10004. </div>
  10005. <div
  10006. style="
  10007. display: flex;
  10008. flex-wrap: nowrap;
  10009. flex-direction: column;
  10010. position: relative;
  10011. "
  10012. >
  10013. <div class="queTop" style="padding: 20px 0 20px 0">
  10014. <div class="question">
  10015. <img src="../../assets/icon/question.png" alt />
  10016. </div>
  10017. <div class="queTitle">
  10018. <div style="width: 90px; min-width: 90px">提问:</div>
  10019. <div>{{ answerQ }}</div>
  10020. </div>
  10021. </div>
  10022. <div class="ediBottom">
  10023. <textarea
  10024. rows="6"
  10025. class="binfo_input"
  10026. cols
  10027. style="width: 95%; height: 120px"
  10028. v-model="questionAnswer"
  10029. ></textarea>
  10030. </div>
  10031. </div>
  10032. </div>
  10033. <div slot="footer">
  10034. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10035. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10036. </div>
  10037. </el-dialog>
  10038. <el-dialog
  10039. title="倒计时"
  10040. :visible.sync="timeDialogVisible"
  10041. :append-to-body="true"
  10042. width="800px"
  10043. :before-close="handleClose"
  10044. class="dialog_diy"
  10045. >
  10046. <div>
  10047. <div style="margin-bottom: 20px; color: #999">
  10048. 提示:点击“+”或“-”修改倒计时时长。
  10049. </div>
  10050. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10051. </div>
  10052. <div slot="footer">
  10053. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10054. </div>
  10055. </el-dialog>
  10056. <el-dialog
  10057. title="权限设置"
  10058. :visible.sync="juriVisible"
  10059. :append-to-body="true"
  10060. width="400px"
  10061. :before-close="handleClose"
  10062. class="dialog_diy"
  10063. >
  10064. <div>
  10065. <div class="open_box">
  10066. <div class="switch_box">
  10067. <span>允许学生查看所有作业</span>
  10068. <el-switch
  10069. v-model="sIsOpen"
  10070. active-text=""
  10071. class="switchCss"
  10072. @change="updateSLook"
  10073. ></el-switch>
  10074. </div>
  10075. <div
  10076. class="switch_box"
  10077. v-if="
  10078. (courseDetail.userid == userid ||
  10079. (courseDetail.course_teacher &&
  10080. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10081. "
  10082. >
  10083. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10084. <span>禁止学生查看阶段</span>
  10085. <el-switch
  10086. v-model="IsLookOpen"
  10087. active-text=""
  10088. class="switchCss"
  10089. @change="updateLookOpen"
  10090. ></el-switch>
  10091. </div>
  10092. <div class="switch_box" v-if="courseDetail.userid == userid">
  10093. <span>开启跟随模式</span>
  10094. <el-switch
  10095. v-model="IsFollow"
  10096. active-text=""
  10097. class="switchCss"
  10098. @change="updateFollow"
  10099. ></el-switch>
  10100. </div>
  10101. </div>
  10102. </div>
  10103. <div slot="footer">
  10104. <el-button
  10105. style="background: #409efe; color: #fff"
  10106. @click="juriVisible = false"
  10107. >关 闭</el-button
  10108. >
  10109. </div>
  10110. </el-dialog>
  10111. <el-dialog
  10112. title="查看视频"
  10113. :visible.sync="videoVisible"
  10114. :append-to-body="true"
  10115. width="1000px"
  10116. :before-close="handleClose"
  10117. class="dialog_diy1"
  10118. >
  10119. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10120. <video-player
  10121. class="video-player vjs-custom-skin"
  10122. :playsinline="true"
  10123. :options="videoDetail"
  10124. @play="onPlayerPlay($event)"
  10125. style="width: 100%; height: 100%"
  10126. ></video-player>
  10127. </div>
  10128. <div slot="footer">
  10129. <el-button
  10130. style="background: #409efe; color: #fff"
  10131. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10132. >
  10133. 关 闭</el-button
  10134. >
  10135. </div>
  10136. </el-dialog>
  10137. <el-dialog
  10138. title="查看详情"
  10139. :visible.sync="commentDialogVisible"
  10140. :append-to-body="true"
  10141. width="800px"
  10142. :before-close="handleClose"
  10143. class="dialog_diy"
  10144. >
  10145. <div class="commentTop">
  10146. <div class="studentDetail">
  10147. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10148. <div class="nameAndTime">
  10149. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10150. <div>{{ commentDetail.time }}</div>
  10151. </div>
  10152. <div
  10153. class="returnBtn"
  10154. style="margin-left: auto; width: 80px"
  10155. v-if="
  10156. commentDetail.works &&
  10157. commentDetail.type == 0 &&
  10158. (tType == 1 || tType == 4)
  10159. "
  10160. @click="
  10161. showPicturePaint(
  10162. commentDetail.img ? commentDetail.img : commentDetail.works
  10163. )
  10164. "
  10165. >
  10166. 教师批注
  10167. </div>
  10168. </div>
  10169. <div
  10170. class="worksAnswer"
  10171. v-if="commentDetail.works && commentDetail.type == 2"
  10172. >
  10173. {{ JSON.parse(commentDetail.works)[0].answer }}
  10174. </div>
  10175. <div
  10176. class="worksAnswer"
  10177. v-if="commentDetail.works && commentDetail.type == 1"
  10178. >
  10179. <img
  10180. src="../../assets/teacherWork.png"
  10181. v-if="commentDetail.ateacher"
  10182. class="w_teachert"
  10183. />
  10184. <pdf
  10185. v-if="showPDF"
  10186. :pdfUrl="pptImgUrl"
  10187. style="width: 100%; height: 520px; overflow: auto"
  10188. :class="{ fullStyle: full }"
  10189. ></pdf>
  10190. <iframe
  10191. v-else
  10192. :src="pptImgUrl"
  10193. frameborder="0"
  10194. width="100%"
  10195. height="600"
  10196. :class="{ fullStyle: full }"
  10197. ></iframe>
  10198. </div>
  10199. <div
  10200. class="worksAnswer"
  10201. v-if="commentDetail.works && commentDetail.type == 0"
  10202. >
  10203. <img
  10204. src="../../assets/teacherWork.png"
  10205. v-if="commentDetail.ateacher"
  10206. class="w_teachert"
  10207. style="right: 105px"
  10208. />
  10209. <img
  10210. :src="commentDetail.works"
  10211. alt=""
  10212. @click="previewImg(commentDetail.works)"
  10213. />
  10214. </div>
  10215. <div
  10216. class="worksAnswer"
  10217. v-if="commentDetail.works && commentDetail.type == 3"
  10218. >
  10219. <img
  10220. src="../../assets/teacherWork.png"
  10221. v-if="commentDetail.ateacher"
  10222. class="w_teachert"
  10223. />
  10224. <video-player
  10225. class="video-player vjs-custom-skin"
  10226. :playsinline="true"
  10227. :options="videoDetail"
  10228. @play="onPlayerPlay($event)"
  10229. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10230. ></video-player>
  10231. </div>
  10232. <div
  10233. class="worksAnswer"
  10234. v-if="commentDetail.works && commentDetail.type == 10"
  10235. >
  10236. <div class="cont" v-html="commentDetail.works.text"></div>
  10237. </div>
  10238. <div
  10239. class="worksAnswer codeFileBox"
  10240. v-if="commentDetail.works && commentDetail.type == 12"
  10241. @click="downloadFile(commentDetail.works)"
  10242. >
  10243. <img src="../../assets/icon/codeFile.png" />
  10244. <div>点击下载文件</div>
  10245. </div>
  10246. <div
  10247. class="worksAnswer codeFileBox"
  10248. v-if="commentDetail.works && commentDetail.type == 15"
  10249. @click="
  10250. openCocoPi(
  10251. 57,
  10252. commentIndexJson.toolIndex,
  10253. commentDetail.userid,
  10254. commentDetail.sName
  10255. )
  10256. "
  10257. >
  10258. <img src="../../assets/icon/codeFile.png" />
  10259. <div>点击打开CocoPi</div>
  10260. </div>
  10261. <div
  10262. class="worksAnswer"
  10263. v-if="commentDetail.works && commentDetail.type == 13"
  10264. >
  10265. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10266. </div>
  10267. <div
  10268. class="worksAnswer"
  10269. v-if="commentDetail.works && commentDetail.type == 4"
  10270. >
  10271. <div class="evalCss">
  10272. <div class="nav">请选择星星进行评分</div>
  10273. <div class="middleBox" v-if="eScore.eStar">
  10274. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10275. <div class="nameAndrate">
  10276. <div>{{ e.value }}</div>
  10277. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10278. </div>
  10279. <div v-if="e.detail">{{ e.detail }}</div>
  10280. </div>
  10281. <div class="bz">
  10282. <textarea
  10283. disabled
  10284. rows="4"
  10285. class="pj"
  10286. style="
  10287. padding: 10px 5px;
  10288. width: 70%;
  10289. background: #f7f6f9;
  10290. font-size: 14px;
  10291. text-indent: 10px;
  10292. color: #000;
  10293. "
  10294. cols
  10295. v-model="eScore.eBzText"
  10296. placeholder="请输入评价内容..."
  10297. ></textarea>
  10298. </div>
  10299. </div>
  10300. </div>
  10301. </div>
  10302. <div class="comment">
  10303. <div class="commentList">
  10304. <div class="commentImg">
  10305. <img
  10306. @click="
  10307. isLikes(
  10308. commentDetail.wid,
  10309. userid,
  10310. 1,
  10311. null,
  10312. commentDetail.isLikes,
  10313. commentDetail.sName
  10314. )
  10315. "
  10316. :src="commentDetail.isLikes == true ? likes : noLikes"
  10317. alt=""
  10318. />
  10319. </div>
  10320. <div>{{ commentDetail.likesCount }}</div>
  10321. </div>
  10322. <div class="commentList">
  10323. <div class="commentImg">
  10324. <img src="../../assets/icon/comment/comment.png" alt="" />
  10325. </div>
  10326. <div>{{ commentDetail.commentCount }}</div>
  10327. </div>
  10328. </div>
  10329. <div class="drawPBox" v-if="commentDetail.img">
  10330. <span>教师批注</span>
  10331. <img
  10332. :src="commentDetail.img"
  10333. alt=""
  10334. @click="previewImg(commentDetail.img)"
  10335. />
  10336. <span
  10337. class="deleteImg"
  10338. v-if="tType == 1 || tType == 4"
  10339. @click.stop="deletePicturePaint(commentDetail.wid)"
  10340. style="
  10341. font-size: 14px;
  10342. width: auto !important;
  10343. color: #b4b4b4;
  10344. top: unset;
  10345. bottom: 0;
  10346. border: none;
  10347. padding: 0;
  10348. height: auto !important;
  10349. margin: 0;
  10350. "
  10351. >删除</span
  10352. >
  10353. </div>
  10354. </div>
  10355. <div class="commentBox">
  10356. <div class="pl">评论:</div>
  10357. <div style="max-height: 200px; overflow: auto">
  10358. <div
  10359. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10360. style="padding: 10px 0 0 0"
  10361. >
  10362. <div
  10363. class="studentDetail"
  10364. style="padding-top: 10px"
  10365. v-for="(co, coIndex) in commentDetail.commentJson"
  10366. :key="coIndex"
  10367. >
  10368. <div class="tx" style="min-width: 50px">
  10369. <img src="../../assets/avatar.png" alt="" />
  10370. </div>
  10371. <div class="plPerson">
  10372. <div class="plName">
  10373. <div>{{ co.commentPeople }}</div>
  10374. <div style="margin-left: 5px">
  10375. {{ co.commentTime }}
  10376. </div>
  10377. <div
  10378. class="deleteComment"
  10379. v-if="userid == co.userid"
  10380. @click="deleteComment(co.wid)"
  10381. >
  10382. 删除
  10383. </div>
  10384. </div>
  10385. <div class="plContent">{{ co.commentText }}</div>
  10386. </div>
  10387. </div>
  10388. </div>
  10389. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10390. </div>
  10391. </div>
  10392. <div style="margin-top: 10px">
  10393. <div class="displayBox">
  10394. <div
  10395. style="
  10396. color: #556db4;
  10397. font-size: 14px;
  10398. font-weight: bold;
  10399. padding-bottom: 10px;
  10400. "
  10401. >
  10402. 评价
  10403. </div>
  10404. <div class="easy_comment" v-if="false">
  10405. <div
  10406. v-for="(p, pIndex) in PlTextList"
  10407. :key="pIndex"
  10408. @click="fastText(p, 1)"
  10409. >
  10410. {{ p }}
  10411. </div>
  10412. </div>
  10413. </div>
  10414. <div>
  10415. <textarea
  10416. rows="3"
  10417. class="pj"
  10418. style="padding: 10px 5px"
  10419. cols
  10420. v-model="commentText"
  10421. placeholder="请输入评论"
  10422. ></textarea>
  10423. </div>
  10424. </div>
  10425. <div slot="footer">
  10426. <el-button
  10427. @click="
  10428. (commentDialogVisible = false),
  10429. (commentIndexJson = {}),
  10430. videoDetail.sources && videoDetail.sources[0]
  10431. ? (videoDetail.sources[0].src = '')
  10432. : ''
  10433. "
  10434. >取 消</el-button
  10435. >
  10436. <el-button
  10437. type="primary"
  10438. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10439. >确 定</el-button
  10440. >
  10441. </div>
  10442. </el-dialog>
  10443. <el-dialog
  10444. title="查看文档"
  10445. :visible.sync="fullDialogVisible"
  10446. :append-to-body="true"
  10447. width="100%"
  10448. :before-close="handleClose"
  10449. :show-close="false"
  10450. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10451. >
  10452. <div slot="title" class="header-title">
  10453. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10454. <div v-else style="color: #fff">查看文档</div>
  10455. <div
  10456. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10457. style="
  10458. cursor: pointer;
  10459. position: absolute;
  10460. top: 20px;
  10461. right: 20px;
  10462. color: #fff;
  10463. "
  10464. >
  10465. 退出全屏
  10466. </div>
  10467. </div>
  10468. <div style="height: 100%;position: relative;">
  10469. <el-button
  10470. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10471. size="medium"
  10472. type="primary"
  10473. @click="
  10474. () => {
  10475. (fullDialogVisible = false),
  10476. changeSplitScreenBehavior({ code: 99 });
  10477. }
  10478. "
  10479. style="
  10480. cursor: pointer;
  10481. position: absolute;
  10482. top: 10px;
  10483. right: 20px;
  10484. color: #fff;
  10485. "
  10486. >
  10487. 退出全屏
  10488. </el-button>
  10489. <div
  10490. class="wheel"
  10491. v-if="fulltype == 1"
  10492. style="
  10493. box-shadow: 0 0 6px 1px #f2f2f2;
  10494. height:100%;
  10495. width: 100%;
  10496. background: #f1f1f1;
  10497. "
  10498. >
  10499. <div class="title" style="width: 100%; box-sizing: border-box">
  10500. 查看文档
  10501. </div>
  10502. <el-form class="textBox" style="height: 90%">
  10503. <el-form-item class="textTitle">
  10504. <div style="font-size: 22px">
  10505. {{ fullUrl.name }}
  10506. </div>
  10507. </el-form-item>
  10508. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10509. <div
  10510. v-html="fullUrl.url"
  10511. class="textContent"
  10512. style="height: auto"
  10513. ></div>
  10514. </el-form>
  10515. </div>
  10516. <div
  10517. class="wheel"
  10518. v-else-if="
  10519. (fulltype == 2 || fulltype == 4) &&
  10520. fullUrl.indexOf(
  10521. 'https://view.officeapps.live.com/op/view.aspx?src='
  10522. ) != -1
  10523. "
  10524. style="width: 100%;height:100%; margin: 0 auto"
  10525. >
  10526. <iframe
  10527. style="width: 100%; height: 100%; border: none"
  10528. :src="fullUrl"
  10529. ></iframe>
  10530. </div>
  10531. <iframe
  10532. style="width: 100%; height: 100%; border: none"
  10533. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10534. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10535. :src="fullUrl"
  10536. ></iframe>
  10537. <iframe
  10538. style="width: 100%; height: 100%; border: none"
  10539. security="restricted"
  10540. v-else-if="(fulltype == 2 || fulltype == 4)"
  10541. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10542. :src="fullUrl"
  10543. ></iframe>
  10544. <pdf
  10545. v-else-if="fulltype == 3"
  10546. :pdfUrl="fullUrl"
  10547. style="width: 100%; height: 100%; overflow: auto"
  10548. ></pdf>
  10549. <iframe
  10550. style="width: 100%; height: 100%; border: none"
  10551. security="restricted"
  10552. v-if="(fulltype == 16)"
  10553. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10554. :src="fullUrl"
  10555. ></iframe>
  10556. </div>
  10557. <!-- <div slot="footer">
  10558. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10559. </div> -->
  10560. </el-dialog>
  10561. <el-dialog
  10562. title="个人评价"
  10563. :visible.sync="studentEvalDialogVisible"
  10564. :append-to-body="true"
  10565. width="800px"
  10566. :before-close="handleClose"
  10567. class="dialog_diy"
  10568. >
  10569. <div class="evalCss">
  10570. <div class="nav">请选择星星进行评分</div>
  10571. <div class="middleBox" v-if="eScore.eStar">
  10572. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10573. <div class="nameAndrate">
  10574. <div>{{ e.value }}</div>
  10575. <el-rate
  10576. v-model="eScore.eStar[eIndex]"
  10577. :disabled="isStar"
  10578. ></el-rate>
  10579. </div>
  10580. <div v-if="e.detail">{{ e.detail }}</div>
  10581. </div>
  10582. <div class="easy_comment" v-if="false">
  10583. <div
  10584. v-for="(p, pIndex) in PlTextList"
  10585. :key="pIndex"
  10586. @click="fastText(p, 2)"
  10587. >
  10588. {{ p }}
  10589. </div>
  10590. </div>
  10591. <div class="bz">
  10592. <textarea
  10593. :disabled="isStar"
  10594. rows="4"
  10595. class="pj"
  10596. style="
  10597. padding: 10px 5px;
  10598. width: 70%;
  10599. background: #f7f6f9;
  10600. font-size: 14px;
  10601. text-indent: 10px;
  10602. "
  10603. cols
  10604. v-model="eScore.eBzText"
  10605. placeholder="请输入评价内容..."
  10606. ></textarea>
  10607. </div>
  10608. </div>
  10609. </div>
  10610. <div slot="footer">
  10611. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10612. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10613. >确 定</el-button
  10614. >
  10615. </div>
  10616. </el-dialog>
  10617. <el-dialog
  10618. title="个人评价"
  10619. :visible.sync="studentEvalDialogVisibleTeacher"
  10620. :append-to-body="true"
  10621. width="800px"
  10622. :before-close="handleClose"
  10623. class="dialog_diy"
  10624. >
  10625. <div class="w_name">
  10626. 学生姓名:<span>{{ sStudent.student }}</span>
  10627. </div>
  10628. <div class="evalCss">
  10629. <div class="nav">请选择星星进行评分</div>
  10630. <div class="middleBox" v-if="eScore.eStar">
  10631. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10632. <div class="nameAndrate">
  10633. <div>{{ e.value }}</div>
  10634. <el-rate
  10635. v-model="eScore.eStar[eIndex]"
  10636. :disabled="isStar"
  10637. ></el-rate>
  10638. </div>
  10639. <div v-if="e.detail">{{ e.detail }}</div>
  10640. </div>
  10641. <div class="easy_comment" v-if="false">
  10642. <div
  10643. v-for="(p, pIndex) in PlTextList"
  10644. :key="pIndex"
  10645. @click="fastText(p, 2)"
  10646. >
  10647. {{ p }}
  10648. </div>
  10649. </div>
  10650. <div class="bz">
  10651. <textarea
  10652. :disabled="isStar"
  10653. rows="4"
  10654. class="pj"
  10655. style="
  10656. padding: 10px 5px;
  10657. width: 70%;
  10658. background: #f7f6f9;
  10659. font-size: 14px;
  10660. text-indent: 10px;
  10661. "
  10662. cols
  10663. v-model="eScore.eBzText"
  10664. placeholder="请输入评价内容..."
  10665. ></textarea>
  10666. </div>
  10667. </div>
  10668. </div>
  10669. <div slot="footer">
  10670. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10671. >取 消</el-button
  10672. >
  10673. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10674. >确 定</el-button
  10675. >
  10676. </div>
  10677. </el-dialog>
  10678. <el-dialog
  10679. title="选择匹配"
  10680. :visible.sync="dialogVisibleSelect"
  10681. :append-to-body="true"
  10682. width="90%"
  10683. :before-close="handleClose"
  10684. class="dialog_diy dialog_diy3"
  10685. >
  10686. <div v-if="selectJson">
  10687. <div class="select_box2">
  10688. <div class="select_box2_title">
  10689. <div>选择匹配</div>
  10690. <div>请选择对应的答案进行答题!</div>
  10691. </div>
  10692. <div class="select_box2_box">
  10693. <div class="select_box2_img">
  10694. <img
  10695. :src="selectJson.url"
  10696. @click="previewImg(selectJson.url)"
  10697. alt=""
  10698. />
  10699. </div>
  10700. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10701. <div style="padding-top: 15px">
  10702. <div class="select_answer_title" v-if="isSelect">
  10703. {{ selectAnswer.stu }}
  10704. </div>
  10705. <div class="select_answer_title" v-else>
  10706. 根据题目选择对应答案
  10707. </div>
  10708. <div
  10709. class="select_box2_answer_box"
  10710. v-for="(item2, checkIndex) in selectJson.select"
  10711. :key="checkIndex"
  10712. >
  10713. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10714. <el-select
  10715. :disabled="isSelect"
  10716. v-model="selectAnswer.answer[checkIndex]"
  10717. placeholder="请选择正确答案"
  10718. >
  10719. <el-option
  10720. v-for="(e, eIndex) in selectJson.select"
  10721. :key="eIndex"
  10722. :label="e"
  10723. :value="eIndex"
  10724. >
  10725. </el-option>
  10726. </el-select>
  10727. </div>
  10728. </div>
  10729. <div
  10730. class="rightAnswerCss"
  10731. v-if="isSelect && (tType == 1 || tType == 4)"
  10732. >
  10733. <div
  10734. v-for="(a, aIndex) in selectJson.answer"
  10735. :key="aIndex"
  10736. class="rightAnswer"
  10737. >
  10738. <div
  10739. v-if="selectAnswer.answer[aIndex] === a"
  10740. style="color: #767de1"
  10741. >
  10742. 回答正确
  10743. </div>
  10744. <div v-else>回答错误</div>
  10745. <div
  10746. style="margin-left: 10px"
  10747. v-if="selectAnswer.answer[aIndex] !== a"
  10748. >
  10749. 正确答案:
  10750. </div>
  10751. <div
  10752. :class="
  10753. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10754. "
  10755. >
  10756. {{ selectJson.select[a] }}
  10757. </div>
  10758. </div>
  10759. </div>
  10760. </div>
  10761. <div class="upAnswerCss">
  10762. <el-button
  10763. type="primary"
  10764. @click="addSelectAnswer"
  10765. v-if="!isSelect"
  10766. >提交答案</el-button
  10767. >
  10768. </div>
  10769. </div>
  10770. </div>
  10771. </div>
  10772. </el-dialog>
  10773. <el-dialog
  10774. title="选择匹配"
  10775. :visible.sync="dialogVisibleSelectTeacher"
  10776. :append-to-body="true"
  10777. width="90%"
  10778. :before-close="handleClose"
  10779. class="dialog_diy dialog_diy3"
  10780. >
  10781. <div v-if="selectJson">
  10782. <div class="w_name">
  10783. 学生姓名:<span>{{ sStudent.student }}</span>
  10784. </div>
  10785. <div class="select_box2">
  10786. <div class="select_box2_title">
  10787. <div>选择匹配</div>
  10788. <div>请选择对应的答案进行答题!</div>
  10789. </div>
  10790. <div class="select_box2_box">
  10791. <div class="select_box2_img">
  10792. <img
  10793. :src="selectJson.url"
  10794. @click="previewImg(selectJson.url)"
  10795. alt=""
  10796. />
  10797. </div>
  10798. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10799. <div style="padding-top: 15px">
  10800. <div class="select_answer_title" v-if="isSelect">
  10801. {{ selectAnswer.stu }}
  10802. </div>
  10803. <div class="select_answer_title" v-else>
  10804. 根据题目选择对应答案
  10805. </div>
  10806. <div
  10807. class="select_box2_answer_box"
  10808. v-for="(item2, checkIndex) in selectJson.select"
  10809. :key="checkIndex"
  10810. >
  10811. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10812. <el-select
  10813. :disabled="isSelect"
  10814. v-model="selectAnswer.answer[checkIndex]"
  10815. placeholder="请选择正确答案"
  10816. >
  10817. <el-option
  10818. v-for="(e, eIndex) in selectJson.select"
  10819. :key="eIndex"
  10820. :label="e"
  10821. :value="eIndex"
  10822. >
  10823. </el-option>
  10824. </el-select>
  10825. </div>
  10826. </div>
  10827. <div
  10828. class="rightAnswerCss"
  10829. v-if="isSelect && (tType == 1 || tType == 4)"
  10830. >
  10831. <div
  10832. v-for="(a, aIndex) in selectJson.answer"
  10833. :key="aIndex"
  10834. class="rightAnswer"
  10835. >
  10836. <div
  10837. v-if="selectAnswer.answer[aIndex] === a"
  10838. style="color: #767de1"
  10839. >
  10840. 回答正确
  10841. </div>
  10842. <div v-else>回答错误</div>
  10843. <div
  10844. style="margin-left: 10px"
  10845. v-if="selectAnswer.answer[aIndex] !== a"
  10846. >
  10847. 正确答案:
  10848. </div>
  10849. <div
  10850. :class="
  10851. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10852. "
  10853. >
  10854. {{ selectJson.select[a] }}
  10855. </div>
  10856. </div>
  10857. </div>
  10858. </div>
  10859. <div class="upAnswerCss">
  10860. <el-button
  10861. type="primary"
  10862. @click="addSelectAnswerTeacher"
  10863. v-if="!isSelect"
  10864. >提交答案</el-button
  10865. >
  10866. </div>
  10867. </div>
  10868. </div>
  10869. </div>
  10870. </el-dialog>
  10871. <el-dialog
  10872. title="教师评分"
  10873. :visible.sync="dialogVisibleScore"
  10874. :append-to-body="true"
  10875. width="800px"
  10876. :before-close="handleClose"
  10877. class="dialog_diy"
  10878. >
  10879. <div>
  10880. <div class="studentDetail">
  10881. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10882. <div class="nameAndTime">
  10883. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10884. <div>{{ commentDetail.time }}</div>
  10885. </div>
  10886. </div>
  10887. <div
  10888. class="worksAnswer"
  10889. v-if="commentDetail.works && commentDetail.type == 2"
  10890. >
  10891. {{ JSON.parse(commentDetail.works)[0].answer }}
  10892. </div>
  10893. <div
  10894. class="worksAnswer"
  10895. v-if="commentDetail.works && commentDetail.type == 1"
  10896. >
  10897. <pdf
  10898. v-if="showPDF"
  10899. :pdfUrl="pptImgUrl"
  10900. style="width: 100%; height: 520px; overflow: auto"
  10901. :class="{ fullStyle: full }"
  10902. ></pdf>
  10903. <iframe
  10904. v-else
  10905. :src="pptImgUrl"
  10906. frameborder="0"
  10907. width="100%"
  10908. height="600"
  10909. :class="{ fullStyle: full }"
  10910. ></iframe>
  10911. </div>
  10912. <div
  10913. class="worksAnswer"
  10914. v-if="commentDetail.works && commentDetail.type == 0"
  10915. >
  10916. <img
  10917. :src="commentDetail.works"
  10918. alt=""
  10919. @click="previewImg(commentDetail.works)"
  10920. />
  10921. </div>
  10922. <div
  10923. class="worksAnswer"
  10924. v-if="commentDetail.works && commentDetail.type == 3"
  10925. >
  10926. <video-player
  10927. class="video-player vjs-custom-skin"
  10928. :playsinline="true"
  10929. :options="videoDetail"
  10930. @play="onPlayerPlay($event)"
  10931. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10932. ></video-player>
  10933. </div>
  10934. <div
  10935. class="worksAnswer codeFileBox"
  10936. v-if="commentDetail.works && commentDetail.type == 12"
  10937. @click="downloadFile(commentDetail.works)"
  10938. >
  10939. <img src="../../assets/icon/codeFile.png" />
  10940. <div>点击下载文件</div>
  10941. </div>
  10942. <div
  10943. class="worksAnswer codeFileBox"
  10944. v-if="commentDetail.works && commentDetail.type == 15"
  10945. @click="
  10946. openCocoPi(
  10947. 57,
  10948. commentIndexJson.toolIndex,
  10949. commentDetail.userid,
  10950. commentDetail.sName
  10951. )
  10952. "
  10953. >
  10954. <img src="../../assets/icon/codeFile.png" />
  10955. <div>点击打开CocoPi</div>
  10956. </div>
  10957. <div
  10958. class="worksAnswer"
  10959. v-if="commentDetail.works && commentDetail.type == 13"
  10960. >
  10961. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10962. </div>
  10963. <div class="scoreBox">
  10964. <span class="t">请输入分数</span>
  10965. <el-input-number
  10966. :disabled="courseDetail.userid != userid"
  10967. v-model="wScore"
  10968. :controls="false"
  10969. :min="0"
  10970. :max="100"
  10971. ></el-input-number>
  10972. </div>
  10973. <div class="scoreDetailBox">
  10974. <span class="t">评分评论</span>
  10975. <el-input
  10976. type="textarea"
  10977. :rows="5"
  10978. :disabled="courseDetail.userid != userid"
  10979. resize="none"
  10980. v-model="scoreDetail"
  10981. placeholder="请输入对学生的评价"
  10982. >
  10983. </el-input>
  10984. </div>
  10985. </div>
  10986. <span slot="footer" class="dialog-footer">
  10987. <el-button
  10988. @click="
  10989. (dialogVisibleScore = false),
  10990. (commentIndexJson = {}),
  10991. videoDetail.sources && videoDetail.sources[0]
  10992. ? (videoDetail.sources[0].src = '')
  10993. : ''
  10994. "
  10995. >取 消</el-button
  10996. >
  10997. <el-button
  10998. type="primary"
  10999. v-if="courseDetail.userid == userid"
  11000. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11001. >确 定
  11002. </el-button>
  11003. </span>
  11004. </el-dialog>
  11005. <el-dialog
  11006. title="排序"
  11007. :visible.sync="dialogVisibleSentence"
  11008. :append-to-body="true"
  11009. width="1000px"
  11010. :before-close="handleClose"
  11011. class="dialog_diy dialog_diy3"
  11012. >
  11013. <div>
  11014. <div class="sentenBox">
  11015. <div
  11016. v-for="(st, stIndex) in sentenceList"
  11017. :key="stIndex"
  11018. style="padding-bottom: 20px"
  11019. >
  11020. <div
  11021. style="padding: 15px 0 10px 20px"
  11022. class="sentenceTitle"
  11023. :index="stIndex + 1"
  11024. >
  11025. 题目{{ stIndex + 1 }}:请选择正确顺序
  11026. </div>
  11027. <div class="cardList" v-if="st.chooseSenList">
  11028. <div class="cardBox">
  11029. <div
  11030. v-for="(r, rIndex) in st.chooseSenList"
  11031. :key="rIndex"
  11032. @click="returnCard(r, stIndex, rIndex)"
  11033. >
  11034. <el-tooltip
  11035. class="item"
  11036. effect="light"
  11037. :content="r"
  11038. placement="top"
  11039. v-if="r != '' && r != undefined"
  11040. >
  11041. <div
  11042. :class="{
  11043. isCard: r,
  11044. isChooseCard: r == '' || r == undefined,
  11045. }"
  11046. >
  11047. <div>{{ r }}</div>
  11048. </div>
  11049. </el-tooltip>
  11050. <div
  11051. :class="{
  11052. isCard: r,
  11053. isChooseCard: r == '' || r == undefined,
  11054. }"
  11055. v-else
  11056. >
  11057. <div>{{ r }}</div>
  11058. </div>
  11059. </div>
  11060. </div>
  11061. </div>
  11062. <div class="cardList" v-if="st.addChangeSen">
  11063. <div class="cardBox">
  11064. <div
  11065. v-for="(s, sIndex) in st.addChangeSen"
  11066. :key="sIndex"
  11067. @click="setRightAnswer(s, stIndex, sIndex)"
  11068. >
  11069. <el-tooltip
  11070. class="item"
  11071. effect="light"
  11072. :content="s"
  11073. placement="top"
  11074. v-if="s != '' && s != undefined"
  11075. >
  11076. <div
  11077. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11078. >
  11079. <div>{{ s }}</div>
  11080. </div>
  11081. </el-tooltip>
  11082. <div
  11083. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11084. v-else
  11085. >
  11086. <div>{{ s }}</div>
  11087. </div>
  11088. </div>
  11089. </div>
  11090. </div>
  11091. </div>
  11092. </div>
  11093. </div>
  11094. <span slot="footer" class="dialog-footer">
  11095. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11096. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11097. </span>
  11098. </el-dialog>
  11099. <el-dialog
  11100. title="排序"
  11101. :visible.sync="dialogVisibleSentenceTeacher"
  11102. :append-to-body="true"
  11103. width="1000px"
  11104. :before-close="handleClose"
  11105. class="dialog_diy dialog_diy3"
  11106. >
  11107. <div>
  11108. <div class="w_name">
  11109. 学生姓名:<span>{{ sStudent.student }}</span>
  11110. </div>
  11111. <div class="sentenBox">
  11112. <div
  11113. v-for="(st, stIndex) in sentenceList"
  11114. :key="stIndex"
  11115. style="padding-bottom: 20px"
  11116. >
  11117. <div
  11118. style="padding: 15px 0 10px 20px"
  11119. class="sentenceTitle"
  11120. :index="stIndex + 1"
  11121. >
  11122. 题目{{ stIndex + 1 }}:请选择正确顺序
  11123. </div>
  11124. <div class="cardList" v-if="st.chooseSenList">
  11125. <div class="cardBox">
  11126. <div
  11127. v-for="(r, rIndex) in st.chooseSenList"
  11128. :key="rIndex"
  11129. @click="returnCard(r, stIndex, rIndex)"
  11130. >
  11131. <el-tooltip
  11132. class="item"
  11133. effect="light"
  11134. :content="r"
  11135. placement="top"
  11136. v-if="r != '' && r != undefined"
  11137. >
  11138. <div
  11139. :class="{
  11140. isCard: r,
  11141. isChooseCard: r == '' || r == undefined,
  11142. }"
  11143. >
  11144. <div>{{ r }}</div>
  11145. </div>
  11146. </el-tooltip>
  11147. <div
  11148. :class="{
  11149. isCard: r,
  11150. isChooseCard: r == '' || r == undefined,
  11151. }"
  11152. v-else
  11153. >
  11154. <div>{{ r }}</div>
  11155. </div>
  11156. </div>
  11157. </div>
  11158. </div>
  11159. <div class="cardList" v-if="st.addChangeSen">
  11160. <div class="cardBox">
  11161. <div
  11162. v-for="(s, sIndex) in st.addChangeSen"
  11163. :key="sIndex"
  11164. @click="setRightAnswer(s, stIndex, sIndex)"
  11165. >
  11166. <el-tooltip
  11167. class="item"
  11168. effect="light"
  11169. :content="s"
  11170. placement="top"
  11171. v-if="s != '' && s != undefined"
  11172. >
  11173. <div
  11174. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11175. >
  11176. <div>{{ s }}</div>
  11177. </div>
  11178. </el-tooltip>
  11179. <div
  11180. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11181. v-else
  11182. >
  11183. <div>{{ s }}</div>
  11184. </div>
  11185. </div>
  11186. </div>
  11187. </div>
  11188. </div>
  11189. </div>
  11190. </div>
  11191. <span slot="footer" class="dialog-footer">
  11192. <el-button @click="dialogVisibleSentenceTeacher = false"
  11193. >取 消</el-button
  11194. >
  11195. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11196. </span>
  11197. </el-dialog>
  11198. <el-dialog
  11199. title="排序"
  11200. :visible.sync="dialogVisibleSentence1"
  11201. :append-to-body="true"
  11202. width="1000px"
  11203. :before-close="handleClose"
  11204. class="dialog_diy dialog_diy3"
  11205. >
  11206. <div>
  11207. <div class="sentenBox">
  11208. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11209. {{ sentenceList1.stuName }}的作业
  11210. </div>
  11211. <div
  11212. v-for="(st, stIndex) in sentenceList1"
  11213. :key="stIndex"
  11214. style="padding-bottom: 20px"
  11215. >
  11216. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11217. 第{{ stIndex + 1 }}题
  11218. </div>
  11219. <div class="isWrong">
  11220. <div class="cardList1" v-if="st.chooseSenList">
  11221. <div class="cardBox">
  11222. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11223. <el-tooltip
  11224. class="item"
  11225. effect="light"
  11226. :content="s"
  11227. placement="top"
  11228. >
  11229. <div class="isCard">
  11230. <div>{{ s }}</div>
  11231. </div>
  11232. </el-tooltip>
  11233. </div>
  11234. </div>
  11235. <div class="cardAnswerBox">
  11236. 组成句子:{{ st.chooseSenList.join(" ") }}
  11237. </div>
  11238. </div>
  11239. <div v-if="tType == 2" class="isTj">
  11240. <div class="isTjImg">
  11241. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11242. </div>
  11243. <div>已提交</div>
  11244. </div>
  11245. <div
  11246. class="answerRight isTj"
  11247. v-if="
  11248. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11249. (tType == 1 || tType == 4)
  11250. "
  11251. >
  11252. <div class="isTjImg">
  11253. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11254. </div>
  11255. <div>回答正确</div>
  11256. </div>
  11257. <div
  11258. class="answerRight isTj"
  11259. v-if="
  11260. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11261. (tType == 1 || tType == 4)
  11262. "
  11263. >
  11264. <div class="isTjImg">
  11265. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11266. </div>
  11267. <div>回答错误</div>
  11268. </div>
  11269. </div>
  11270. <div
  11271. v-if="
  11272. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11273. (tType == 1 || tType == 4)
  11274. "
  11275. >
  11276. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11277. <div
  11278. class="cardList"
  11279. v-if="st.rightAnswer"
  11280. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11281. >
  11282. <div class="cardBox">
  11283. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11284. <el-tooltip
  11285. class="item"
  11286. effect="light"
  11287. :content="r"
  11288. placement="top"
  11289. >
  11290. <div class="isCard1">
  11291. <div>{{ r }}</div>
  11292. </div>
  11293. </el-tooltip>
  11294. </div>
  11295. </div>
  11296. <div class="cardAnswerBox">
  11297. 组成句子:{{ st.rightAnswer.join(" ") }}
  11298. </div>
  11299. </div>
  11300. </div>
  11301. </div>
  11302. </div>
  11303. </div>
  11304. <span slot="footer" class="dialog-footer">
  11305. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11306. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11307. >确 定</el-button
  11308. >
  11309. </span>
  11310. </el-dialog>
  11311. <el-dialog
  11312. title="教师提交作业"
  11313. :visible.sync="dialogVisibleWorks"
  11314. :append-to-body="true"
  11315. width="500px"
  11316. :before-close="handleClose"
  11317. class="dialog_change"
  11318. >
  11319. <div class="marginT">
  11320. <div class="w_name">
  11321. 学生姓名:<span>{{ sStudent.student }}</span>
  11322. </div>
  11323. <div>上传文件</div>
  11324. <div style="display: flex; gap: 10px">
  11325. <div
  11326. class="chapter_add"
  11327. @click="addImg($event)"
  11328. v-if="studyJuri[0].cover.length == 0"
  11329. >
  11330. <div class="up_photo">
  11331. <img src="../../assets/icon/uploadImg.png" alt />
  11332. </div>
  11333. <!-- <input
  11334. type="file"
  11335. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11336. style="display: none"
  11337. @change="beforeUpload1($event, 1)"
  11338. /> -->
  11339. <input
  11340. type="file"
  11341. accept="*"
  11342. style="display: none"
  11343. @change="beforeUpload1($event, 1)"
  11344. />
  11345. <!-- <input
  11346. type="file"
  11347. accept="image/*"
  11348. capture="camera"
  11349. style="display: none"
  11350. @change="beforeUpload1($event, 1)"
  11351. /> -->
  11352. </div>
  11353. <div
  11354. class="chapter_add"
  11355. @click="addImg($event)"
  11356. v-if="studyJuri[0].cover.length == 0"
  11357. >
  11358. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11359. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11360. </div>
  11361. <input
  11362. type="file"
  11363. accept="image/*"
  11364. capture="camera"
  11365. style="display: none"
  11366. @change="beforeUpload1($event, 1)"
  11367. />
  11368. </div>
  11369. </div>
  11370. <!-- capture="camera" -->
  11371. <div
  11372. class="chapter_add"
  11373. style="
  11374. display: flex;
  11375. width: 100%;
  11376. flex-direction: row;
  11377. flex-wrap: wrap;
  11378. justify-content: flex-start;
  11379. padding: 15px 0;
  11380. "
  11381. v-if="studyJuri[0].cover.length > 0"
  11382. >
  11383. <div class="upCover">
  11384. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11385. <img :src="word" alt v-else-if="fileType == 1" />
  11386. <img :src="video" alt v-else-if="fileType == 2" />
  11387. <img :src="word2" alt v-else-if="fileType == 3" />
  11388. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11389. <div class="deleteWord" @click="clean(1)">
  11390. <img src="../../assets/icon/deleteWorks.png" alt />
  11391. </div>
  11392. </div>
  11393. </div>
  11394. </div>
  11395. <div
  11396. class="upload_send"
  11397. @click="addCourseWorksTeacher(taskCount)"
  11398. v-if="!proVisible"
  11399. >
  11400. 提交
  11401. </div>
  11402. </el-dialog>
  11403. <ImgDraw
  11404. :drawShow="drawShow"
  11405. @closeDraw="closeDraw"
  11406. @addImgDraw="addImgDraw"
  11407. :bg="bg"
  11408. ></ImgDraw>
  11409. <el-dialog
  11410. title="表格"
  11411. :visible.sync="dialogVisibleTable"
  11412. :append-to-body="true"
  11413. width="95%"
  11414. :before-close="handleClose"
  11415. class="dialog_diy"
  11416. >
  11417. <el-form>
  11418. <div
  11419. style="
  11420. display: flex;
  11421. align-items: center;
  11422. justify-content: space-between;
  11423. "
  11424. >
  11425. <span>表格内容</span>
  11426. <el-button type="primary" size="small" @click="returnTableText"
  11427. >还原模板</el-button
  11428. >
  11429. </div>
  11430. <Table
  11431. v-model="tableJson.text"
  11432. @change="change"
  11433. v-if="dialogVisibleTable"
  11434. ></Table>
  11435. </el-form>
  11436. <span slot="footer" class="dialog-footer">
  11437. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11438. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11439. </span>
  11440. </el-dialog>
  11441. <el-dialog
  11442. title="表格"
  11443. :visible.sync="dialogVisibleTableTeacher"
  11444. :append-to-body="true"
  11445. width="95%"
  11446. :before-close="handleClose"
  11447. class="dialog_diy"
  11448. >
  11449. <el-form>
  11450. <div class="w_name">
  11451. 学生姓名:<span>{{ sStudent.student }}</span>
  11452. </div>
  11453. <div>表格内容</div>
  11454. <Table
  11455. v-model="tableJson.text"
  11456. @change="change"
  11457. v-if="dialogVisibleTableTeacher"
  11458. ></Table>
  11459. </el-form>
  11460. <span slot="footer" class="dialog-footer">
  11461. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11462. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11463. </span>
  11464. </el-dialog>
  11465. <el-dialog
  11466. title="文档"
  11467. :visible.sync="dialogVisibleWord"
  11468. :append-to-body="true"
  11469. width="95%"
  11470. :before-close="handleClose"
  11471. class="dialog_diy"
  11472. >
  11473. <el-form>
  11474. <div
  11475. style="
  11476. display: flex;
  11477. align-items: center;
  11478. justify-content: space-between;
  11479. "
  11480. >
  11481. <span>文档内容</span>
  11482. <el-button type="primary" size="small" @click="returnWordText"
  11483. >还原模板</el-button
  11484. >
  11485. </div>
  11486. <editor-bar
  11487. v-model="wordJson.text"
  11488. v-if="dialogVisibleWord"
  11489. ></editor-bar>
  11490. </el-form>
  11491. <span slot="footer" class="dialog-footer">
  11492. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11493. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11494. </span>
  11495. </el-dialog>
  11496. <el-dialog
  11497. title="文档"
  11498. :visible.sync="dialogVisibleWordTeacher"
  11499. :append-to-body="true"
  11500. width="95%"
  11501. :before-close="handleClose"
  11502. class="dialog_diy"
  11503. >
  11504. <el-form>
  11505. <div class="w_name">
  11506. 学生姓名:<span>{{ sStudent.student }}</span>
  11507. </div>
  11508. <div>文档内容</div>
  11509. <editor-bar
  11510. v-model="wordJson.text"
  11511. v-if="dialogVisibleWordTeacher"
  11512. ></editor-bar>
  11513. </el-form>
  11514. <span slot="footer" class="dialog-footer">
  11515. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11516. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11517. </span>
  11518. </el-dialog>
  11519. <el-dialog
  11520. title="表格"
  11521. :visible.sync="dialogVisibleTable2"
  11522. :append-to-body="true"
  11523. width="95%"
  11524. :before-close="handleClose"
  11525. class="dialog_diy"
  11526. >
  11527. <el-form>
  11528. <div class="cont" v-html="tableJson.text"></div>
  11529. </el-form>
  11530. <span slot="footer" class="dialog-footer">
  11531. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11532. </span>
  11533. </el-dialog>
  11534. <el-dialog
  11535. title="文档"
  11536. :visible.sync="dialogVisibleTable3"
  11537. :append-to-body="true"
  11538. width="95%"
  11539. :before-close="handleClose"
  11540. class="dialog_diy"
  11541. >
  11542. <el-form>
  11543. <div class="cont" v-html="tableJson.text"></div>
  11544. </el-form>
  11545. <span slot="footer" class="dialog-footer">
  11546. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11547. </span>
  11548. </el-dialog>
  11549. <el-dialog
  11550. title="分组设置"
  11551. :visible.sync="dialogVisibleGroup"
  11552. :append-to-body="true"
  11553. width="95%"
  11554. :before-close="handleClose"
  11555. class="dialog_diy"
  11556. >
  11557. <div v-if="dialogVisibleGroup">
  11558. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11559. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11560. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11561. </div>
  11562. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11563. @click="lockChair">
  11564. 锁定位置
  11565. </div>
  11566. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11567. 解锁位置
  11568. </div> -->
  11569. <div class="group_switch">
  11570. <span>开放选座</span>
  11571. <el-switch
  11572. v-model="islock"
  11573. active-text=""
  11574. class="switchCss"
  11575. @change="lockChair"
  11576. ></el-switch>
  11577. </div>
  11578. <div
  11579. type="primary"
  11580. @click="updateGroup"
  11581. class="returnBtn"
  11582. style="background-color: #225bc7"
  11583. >
  11584. 分组设置
  11585. </div>
  11586. </div>
  11587. <div>
  11588. <div
  11589. class="g_d_box"
  11590. v-if="groupJson.group && groupStudent[toolindex]"
  11591. >
  11592. <div
  11593. class="g_d_group"
  11594. v-for="(g, gindex) in groupJson.group"
  11595. :key="gindex"
  11596. >
  11597. <div class="g_d_group_chair">
  11598. <div v-if="groupJson.number > 1">
  11599. <span
  11600. :class="{
  11601. isChair:
  11602. groupStudent[toolindex][gindex] &&
  11603. groupStudent[toolindex][gindex][0],
  11604. updateChair:
  11605. courseDetail.userid == userid &&
  11606. groupStudent[toolindex][gindex] &&
  11607. groupStudent[toolindex][gindex][0] &&
  11608. groupJson.islock == 2,
  11609. }"
  11610. ><span
  11611. class="updateChairBtn"
  11612. @click="
  11613. updateGroupChair(
  11614. groupStudent[toolindex][gindex] &&
  11615. groupStudent[toolindex][gindex][0]
  11616. )
  11617. "
  11618. >修改</span
  11619. ></span
  11620. ><span>{{
  11621. groupStudent[toolindex][gindex] &&
  11622. groupStudent[toolindex][gindex][0]
  11623. ? groupStudent[toolindex][gindex] &&
  11624. groupStudent[toolindex][gindex][0].name
  11625. : "空位置"
  11626. }}</span>
  11627. </div>
  11628. <div v-if="groupJson.number > 4">
  11629. <span
  11630. :class="{
  11631. isChair:
  11632. groupStudent[toolindex][gindex] &&
  11633. groupStudent[toolindex][gindex][4],
  11634. updateChair:
  11635. courseDetail.userid == userid &&
  11636. groupStudent[toolindex][gindex] &&
  11637. groupStudent[toolindex][gindex][4] &&
  11638. groupJson.islock == 2,
  11639. }"
  11640. ><span
  11641. class="updateChairBtn"
  11642. @click="
  11643. updateGroupChair(
  11644. groupStudent[toolindex][gindex] &&
  11645. groupStudent[toolindex][gindex][4]
  11646. )
  11647. "
  11648. >修改</span
  11649. ></span
  11650. ><span>{{
  11651. groupStudent[toolindex][gindex] &&
  11652. groupStudent[toolindex][gindex][4]
  11653. ? groupStudent[toolindex][gindex] &&
  11654. groupStudent[toolindex][gindex][4].name
  11655. : "空位置"
  11656. }}</span>
  11657. </div>
  11658. <div v-if="groupJson.number > 8">
  11659. <span
  11660. :class="{
  11661. isChair:
  11662. groupStudent[toolindex][gindex] &&
  11663. groupStudent[toolindex][gindex][8],
  11664. updateChair:
  11665. courseDetail.userid == userid &&
  11666. groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][8] &&
  11668. groupJson.islock == 2,
  11669. }"
  11670. ><span
  11671. class="updateChairBtn"
  11672. @click="
  11673. updateGroupChair(
  11674. groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][8]
  11676. )
  11677. "
  11678. >修改</span
  11679. ></span
  11680. ><span>{{
  11681. groupStudent[toolindex][gindex] &&
  11682. groupStudent[toolindex][gindex][8]
  11683. ? groupStudent[toolindex][gindex] &&
  11684. groupStudent[toolindex][gindex][8].name
  11685. : "空位置"
  11686. }}</span>
  11687. </div>
  11688. </div>
  11689. <div class="g_d_group_tableBox">
  11690. <div class="g_d_group_chair2">
  11691. <div v-if="groupJson.number > 2">
  11692. <span
  11693. :class="{
  11694. isChair:
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][2],
  11697. updateChair:
  11698. courseDetail.userid == userid &&
  11699. groupStudent[toolindex][gindex] &&
  11700. groupStudent[toolindex][gindex][2] &&
  11701. groupJson.islock == 2,
  11702. }"
  11703. ><span
  11704. class="updateChairBtn"
  11705. @click="
  11706. updateGroupChair(
  11707. groupStudent[toolindex][gindex] &&
  11708. groupStudent[toolindex][gindex][2]
  11709. )
  11710. "
  11711. >修改</span
  11712. ></span
  11713. ><span>{{
  11714. groupStudent[toolindex][gindex] &&
  11715. groupStudent[toolindex][gindex][2]
  11716. ? groupStudent[toolindex][gindex] &&
  11717. groupStudent[toolindex][gindex][2].name
  11718. : "空位置"
  11719. }}</span>
  11720. </div>
  11721. <div v-if="groupJson.number > 6">
  11722. <span
  11723. :class="{
  11724. isChair:
  11725. groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][6],
  11727. updateChair:
  11728. courseDetail.userid == userid &&
  11729. groupStudent[toolindex][gindex] &&
  11730. groupStudent[toolindex][gindex][6] &&
  11731. groupJson.islock == 2,
  11732. }"
  11733. ><span
  11734. class="updateChairBtn"
  11735. @click="
  11736. updateGroupChair(
  11737. groupStudent[toolindex][gindex] &&
  11738. groupStudent[toolindex][gindex][6]
  11739. )
  11740. "
  11741. >修改</span
  11742. ></span
  11743. ><span>{{
  11744. groupStudent[toolindex][gindex] &&
  11745. groupStudent[toolindex][gindex][6]
  11746. ? groupStudent[toolindex][gindex] &&
  11747. groupStudent[toolindex][gindex][6].name
  11748. : "空位置"
  11749. }}</span>
  11750. </div>
  11751. </div>
  11752. <div class="g_d_group_table">
  11753. <div>
  11754. {{ g.name }}
  11755. </div>
  11756. <div>
  11757. <div
  11758. v-if="
  11759. courseDetail.userid == userid && groupJson.islock == 2
  11760. "
  11761. @click="deleteGroupChair(gindex)"
  11762. >
  11763. 移除组员
  11764. </div>
  11765. <div
  11766. @click="selectGroup(gindex)"
  11767. v-else-if="
  11768. groupStudentUid[toolindex] &&
  11769. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11770. "
  11771. >
  11772. 加入分组
  11773. </div>
  11774. <div
  11775. @click="
  11776. exitGroup(
  11777. groupStudent[toolindex][gindex] &&
  11778. groupStudent[toolindex][gindex][
  11779. groupStudentUid[toolindex][gindex].indexOf(userid)
  11780. ].id
  11781. )
  11782. "
  11783. v-else-if="
  11784. groupStudentUid[toolindex] &&
  11785. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11786. "
  11787. >
  11788. 退出分组
  11789. </div>
  11790. </div>
  11791. </div>
  11792. <div class="g_d_group_chair2">
  11793. <div v-if="groupJson.number > 3">
  11794. <span
  11795. :class="{
  11796. isChair:
  11797. groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][3],
  11799. updateChair:
  11800. courseDetail.userid == userid &&
  11801. groupStudent[toolindex][gindex] &&
  11802. groupStudent[toolindex][gindex][3] &&
  11803. groupJson.islock == 2,
  11804. }"
  11805. ><span
  11806. class="updateChairBtn"
  11807. @click="
  11808. updateGroupChair(
  11809. groupStudent[toolindex][gindex] &&
  11810. groupStudent[toolindex][gindex][3]
  11811. )
  11812. "
  11813. >修改</span
  11814. ></span
  11815. ><span>{{
  11816. groupStudent[toolindex][gindex] &&
  11817. groupStudent[toolindex][gindex][3]
  11818. ? groupStudent[toolindex][gindex] &&
  11819. groupStudent[toolindex][gindex][3].name
  11820. : "空位置"
  11821. }}</span>
  11822. </div>
  11823. <div v-if="groupJson.number > 7">
  11824. <span
  11825. :class="{
  11826. isChair:
  11827. groupStudent[toolindex][gindex] &&
  11828. groupStudent[toolindex][gindex][7],
  11829. updateChair:
  11830. courseDetail.userid == userid &&
  11831. groupStudent[toolindex][gindex] &&
  11832. groupStudent[toolindex][gindex][7] &&
  11833. groupJson.islock == 2,
  11834. }"
  11835. ><span
  11836. class="updateChairBtn"
  11837. @click="
  11838. updateGroupChair(
  11839. groupStudent[toolindex][gindex] &&
  11840. groupStudent[toolindex][gindex][7]
  11841. )
  11842. "
  11843. >修改</span
  11844. ></span
  11845. ><span>{{
  11846. groupStudent[toolindex][gindex] &&
  11847. groupStudent[toolindex][gindex][7]
  11848. ? groupStudent[toolindex][gindex] &&
  11849. groupStudent[toolindex][gindex][7].name
  11850. : "空位置"
  11851. }}</span>
  11852. </div>
  11853. </div>
  11854. </div>
  11855. <div class="g_d_group_chair">
  11856. <div v-if="groupJson.number > 1">
  11857. <span
  11858. :class="{
  11859. isChair:
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][1],
  11862. updateChair:
  11863. courseDetail.userid == userid &&
  11864. groupStudent[toolindex][gindex] &&
  11865. groupStudent[toolindex][gindex][1] &&
  11866. groupJson.islock == 2,
  11867. }"
  11868. ><span
  11869. class="updateChairBtn"
  11870. @click="
  11871. updateGroupChair(
  11872. groupStudent[toolindex][gindex] &&
  11873. groupStudent[toolindex][gindex][1]
  11874. )
  11875. "
  11876. >修改</span
  11877. ></span
  11878. ><span>{{
  11879. groupStudent[toolindex][gindex] &&
  11880. groupStudent[toolindex][gindex][1]
  11881. ? groupStudent[toolindex][gindex] &&
  11882. groupStudent[toolindex][gindex][1].name
  11883. : "空位置"
  11884. }}</span>
  11885. </div>
  11886. <div v-if="groupJson.number > 5">
  11887. <span
  11888. :class="{
  11889. isChair:
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][5],
  11892. updateChair:
  11893. courseDetail.userid == userid &&
  11894. groupStudent[toolindex][gindex] &&
  11895. groupStudent[toolindex][gindex][5] &&
  11896. groupJson.islock == 2,
  11897. }"
  11898. ><span
  11899. class="updateChairBtn"
  11900. @click="
  11901. updateGroupChair(
  11902. groupStudent[toolindex][gindex] &&
  11903. groupStudent[toolindex][gindex][5]
  11904. )
  11905. "
  11906. >修改</span
  11907. ></span
  11908. ><span>{{
  11909. groupStudent[toolindex][gindex] &&
  11910. groupStudent[toolindex][gindex][5]
  11911. ? groupStudent[toolindex][gindex] &&
  11912. groupStudent[toolindex][gindex][5].name
  11913. : "空位置"
  11914. }}</span>
  11915. </div>
  11916. <div v-if="groupJson.number > 9">
  11917. <span
  11918. :class="{
  11919. isChair:
  11920. groupStudent[toolindex][gindex] &&
  11921. groupStudent[toolindex][gindex][9],
  11922. updateChair:
  11923. courseDetail.userid == userid &&
  11924. groupStudent[toolindex][gindex] &&
  11925. groupStudent[toolindex][gindex][9] &&
  11926. groupJson.islock == 2,
  11927. }"
  11928. ><span
  11929. class="updateChairBtn"
  11930. @click="
  11931. updateGroupChair(
  11932. groupStudent[toolindex][gindex] &&
  11933. groupStudent[toolindex][gindex][9]
  11934. )
  11935. "
  11936. >修改</span
  11937. ></span
  11938. ><span>{{
  11939. groupStudent[toolindex][gindex] &&
  11940. groupStudent[toolindex][gindex][9]
  11941. ? groupStudent[toolindex][gindex] &&
  11942. groupStudent[toolindex][gindex][9].name
  11943. : "空位置"
  11944. }}</span>
  11945. </div>
  11946. </div>
  11947. </div>
  11948. </div>
  11949. </div>
  11950. </div>
  11951. <span slot="footer" class="dialog-footer">
  11952. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11953. </span>
  11954. </el-dialog>
  11955. <el-dialog
  11956. title="分组设置"
  11957. :visible.sync="dialogVisibleGroup2"
  11958. :append-to-body="true"
  11959. width="650px"
  11960. :before-close="handleClose"
  11961. class="dialog_diy"
  11962. >
  11963. <div class="groupBox">
  11964. <div v-if="groupJson2.group" class="groupContent">
  11965. <div class="groupTitle">请设置小组数量及名称</div>
  11966. <div
  11967. v-for="(item, index) in groupJson2.group"
  11968. :key="index"
  11969. class="groupName"
  11970. >
  11971. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11972. <el-input
  11973. v-model="item.name"
  11974. placeholder="请输入名称..."
  11975. style="width: 250px"
  11976. ></el-input>
  11977. <!-- <div class="groupBtn">
  11978. <el-button type="primary" size="small" @click="addGroup(index)">
  11979. 添加</el-button>
  11980. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11981. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11982. </div> -->
  11983. </div>
  11984. </div>
  11985. <div class="groupContent">
  11986. <div class="groupTitle">请设置每组人数</div>
  11987. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11988. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11989. <el-input
  11990. v-model="groupJson2.number"
  11991. style="width: 150px"
  11992. placeholder="请输入2-10的数字"
  11993. @change="numberPan"
  11994. ></el-input>
  11995. </div>
  11996. </div>
  11997. <span slot="footer" class="dialog-footer">
  11998. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11999. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12000. </span>
  12001. </el-dialog>
  12002. <el-dialog
  12003. title="作业提交"
  12004. :visible.sync="dialogVisibleGroupWork"
  12005. :append-to-body="true"
  12006. width="500px"
  12007. :before-close="handleClose"
  12008. class="dialog_change"
  12009. >
  12010. <div class="marginT">
  12011. <div>上传文件</div>
  12012. <div
  12013. class="chapter_add"
  12014. @click="addImg($event)"
  12015. v-if="studyJuri[0].cover.length == 0"
  12016. >
  12017. <div class="up_photo">
  12018. <img src="../../assets/icon/uploadImg.png" alt />
  12019. </div>
  12020. <!-- <input
  12021. type="file"
  12022. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12023. style="display: none"
  12024. @change="beforeUpload1($event, 1)"
  12025. /> -->
  12026. <input
  12027. type="file"
  12028. accept="*"
  12029. style="display: none"
  12030. @change="beforeUpload1($event, 1)"
  12031. />
  12032. </div>
  12033. <!-- capture="camera" -->
  12034. <div
  12035. class="chapter_add"
  12036. style="
  12037. display: flex;
  12038. width: 100%;
  12039. flex-direction: row;
  12040. flex-wrap: wrap;
  12041. justify-content: flex-start;
  12042. padding: 15px 0;
  12043. "
  12044. v-if="studyJuri[0].cover.length > 0"
  12045. >
  12046. <div class="upCover">
  12047. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12048. <img :src="word" alt v-else-if="fileType == 1" />
  12049. <img :src="video" alt v-else-if="fileType == 2" />
  12050. <img :src="word2" alt v-else-if="fileType == 3" />
  12051. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12052. <div class="deleteWord" @click="clean(1)">
  12053. <img src="../../assets/icon/deleteWorks.png" alt />
  12054. </div>
  12055. </div>
  12056. </div>
  12057. </div>
  12058. <div
  12059. class="upload_send"
  12060. @click="addCourseWorks2(taskCount)"
  12061. v-if="!proVisible"
  12062. >
  12063. 提交
  12064. </div>
  12065. </el-dialog>
  12066. <el-dialog
  12067. title="修改分组"
  12068. :visible.sync="dialogVisibleUpdateGroup"
  12069. :append-to-body="true"
  12070. width="350px"
  12071. :before-close="handleClose"
  12072. class="dialog_diy"
  12073. >
  12074. <div>
  12075. <h2>
  12076. {{ this.updateGroupUser.name }}
  12077. </h2>
  12078. <div style="color: rgb(171 171 171); margin-top: 10px">
  12079. 请选择要进入的分组
  12080. </div>
  12081. <el-radio-group v-model="checkChair">
  12082. <el-radio
  12083. style="display: block; margin-top: 20px"
  12084. v-for="(item, index) in updateGroupArray"
  12085. :label="item.label"
  12086. :key="index"
  12087. >{{ item.name }}</el-radio
  12088. >
  12089. </el-radio-group>
  12090. </div>
  12091. <span slot="footer" class="dialog-footer">
  12092. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12093. <el-button type="primary" @click="updateChair">确定</el-button>
  12094. </span>
  12095. </el-dialog>
  12096. <el-dialog
  12097. title="移除组员"
  12098. :visible.sync="dialogVisibleDeleteGroup"
  12099. :append-to-body="true"
  12100. width="350px"
  12101. :before-close="handleClose"
  12102. class="dialog_diy"
  12103. >
  12104. <div>
  12105. <h2>
  12106. {{ this.deleteGroupArray.name }}
  12107. </h2>
  12108. <div style="color: rgb(171 171 171); margin-top: 10px">
  12109. 请选择要删除的组员
  12110. </div>
  12111. <el-checkbox-group v-model="checkDeleteGroup">
  12112. <el-checkbox
  12113. style="display: flex; margin-top: 20px"
  12114. v-for="(item, index) in deleteGroupUser"
  12115. :label="item.userid"
  12116. :key="index"
  12117. >{{ item.name }}</el-checkbox
  12118. >
  12119. </el-checkbox-group>
  12120. </div>
  12121. <span slot="footer" class="dialog-footer">
  12122. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12123. <el-button type="primary" @click="deleteChair">确定</el-button>
  12124. </span>
  12125. </el-dialog>
  12126. <el-dialog
  12127. title="批量上传"
  12128. :visible.sync="dialogVisiblePl"
  12129. :append-to-body="true"
  12130. width="700px"
  12131. :before-close="handleClose"
  12132. class="dialog_change"
  12133. >
  12134. <div class="marginT">
  12135. <div class="plworkBox">
  12136. <div
  12137. class="chapter_add"
  12138. style="
  12139. display: flex;
  12140. width: 150px;
  12141. flex-direction: row;
  12142. flex-wrap: wrap;
  12143. justify-content: flex-start;
  12144. margin: 0 10px 10px 0;
  12145. "
  12146. v-for="(item, index) in plworkFile"
  12147. :key="index"
  12148. >
  12149. <div class="upCover2">
  12150. <img
  12151. :src="item.url"
  12152. alt
  12153. v-if="item.fileType == 1"
  12154. @click="previewImg(item.url)"
  12155. />
  12156. <img :src="word" alt v-else-if="item.fileType == 4" />
  12157. <img :src="video" alt v-else />
  12158. <!-- <span class="picName">{{ item.name }}</span> -->
  12159. <!-- <el-input
  12160. v-model="item.username"
  12161. placeholder="请输入学生名字"
  12162. style="margin-top: 10px"
  12163. ></el-input> -->
  12164. <div
  12165. class="pl_select_box"
  12166. @click="
  12167. getUpdateMore(true, checkUpload(), item.username, index)
  12168. "
  12169. >
  12170. {{ getSName(item.username) }}
  12171. </div>
  12172. <!-- <el-select
  12173. style="margin-top: 10px"
  12174. v-model="item.username"
  12175. filterable
  12176. allow-create
  12177. placeholder="请选择学生"
  12178. >
  12179. <el-option
  12180. v-for="item1 in checkUpload()"
  12181. :key="item1.userid"
  12182. :label="item1.name ? item1.name : item1.username"
  12183. :value="item1.userid"
  12184. >
  12185. </el-option>
  12186. </el-select> -->
  12187. <div class="deleteWord" @click="clean2(index)">
  12188. <img src="../../assets/icon/deleteWorks.png" alt />
  12189. </div>
  12190. </div>
  12191. </div>
  12192. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12193. <div class="up_photo2">
  12194. <img src="../../assets/icon/plwork.png" alt />
  12195. <span>点击上传文件</span>
  12196. </div>
  12197. <input
  12198. type="file"
  12199. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12200. multiple="multiple"
  12201. style="display: none"
  12202. @change="beforeUpload3($event, 6)"
  12203. />
  12204. </div>
  12205. </div>
  12206. </div>
  12207. <!-- capture="camera" -->
  12208. <div
  12209. class="upload_send"
  12210. @click="addCourseWorksPl(taskCount)"
  12211. v-if="!proVisible2"
  12212. >
  12213. 提交
  12214. </div>
  12215. </el-dialog>
  12216. <el-dialog
  12217. title="修改名称"
  12218. :visible.sync="dialogVisibleSname"
  12219. width="500px"
  12220. :before-close="handleClose"
  12221. class="dialog_diy"
  12222. center
  12223. >
  12224. <div
  12225. style="
  12226. text-align: center;
  12227. display: flex;
  12228. align-items: center;
  12229. justify-content: center;
  12230. "
  12231. >
  12232. <span class="tian1">名称</span>
  12233. <div
  12234. class="pl_select_box"
  12235. style="margin-left: 10px; width: 200px"
  12236. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12237. >
  12238. {{ getSName(worksSName) }}
  12239. </div>
  12240. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12241. placeholder="请选择学生">
  12242. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12243. :value="item.userid">
  12244. </el-option>
  12245. </el-select> -->
  12246. <!-- <el-input
  12247. v-model="worksSName"
  12248. style="width: 250px; margin: 15px 0px"
  12249. ></el-input> -->
  12250. </div>
  12251. <span slot="footer" class="dialog-footer">
  12252. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12253. <el-button type="primary" @click="updateName">确 定</el-button>
  12254. </span>
  12255. </el-dialog>
  12256. <el-dialog
  12257. title="英语写作"
  12258. :visible.sync="engDialogVisible"
  12259. :append-to-body="true"
  12260. width="800px"
  12261. :before-close="handleClose"
  12262. class="dialog_diy"
  12263. >
  12264. <onlineWrite
  12265. v-if="engDialogVisible"
  12266. :englishList="englishList"
  12267. :myAnswerList1="myAnswerList1"
  12268. ref="engJson"
  12269. ></onlineWrite>
  12270. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12271. <el-button @click="engDialogVisible = false">取 消</el-button>
  12272. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12273. </span>
  12274. </el-dialog>
  12275. <el-dialog
  12276. title="英语写作"
  12277. :visible.sync="engUpdateDialogVisible"
  12278. :append-to-body="true"
  12279. width="800px"
  12280. :before-close="handleClose"
  12281. class="dialog_diy fullStyle"
  12282. >
  12283. <div class="engUpBox">
  12284. <div class="engUpTop">
  12285. <div class="engTitle">
  12286. <div>作文题目:</div>
  12287. <div>{{ englishList1.engTitle }}</div>
  12288. </div>
  12289. <div class="engText">
  12290. <div>作文内容:</div>
  12291. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12292. </div>
  12293. </div>
  12294. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12295. <div class="oldBox">
  12296. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12297. <div class="oldText">
  12298. <div class="detailBox">
  12299. <div class="oldDetail">
  12300. <div>标题:</div>
  12301. <div>{{ oldEnglishJson.engTitle }} </div>
  12302. </div>
  12303. <div class="oldDetail1">
  12304. <div>正文:</div>
  12305. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12306. </div>
  12307. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12308. <div>图片:</div>
  12309. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12310. </div>
  12311. </div>
  12312. </div>
  12313. </div>
  12314. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12315. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12316. <div class="oldText">
  12317. <div class="detailBox" style="position: relative;">
  12318. <div class="oldDetail">
  12319. <div>标题:</div>
  12320. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12321. <div v-else v-html="newEnglishList.engTitle"></div>
  12322. </div>
  12323. <div class="oldDetail">
  12324. <div>正文:</div>
  12325. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12326. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12327. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12328. </div>
  12329. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12330. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12331. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12332. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12333. </div>
  12334. </div>
  12335. </div>
  12336. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12337. <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">
  12338. <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>
  12339. <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>
  12340. </div>
  12341. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12342. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12343. <div class="detailBox" style="position: relative;">
  12344. <div class="oldDetail">
  12345. <div>标题:</div>
  12346. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12347. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12348. </div>
  12349. <div class="oldDetail">
  12350. <div>正文:</div>
  12351. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12352. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12353. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12354. </div>
  12355. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12356. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12357. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12358. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12359. </div>
  12360. </div>
  12361. <div class="oldText" v-else-if="newEngIndex == -1">
  12362. <div class="detailBox" style="position: relative;">
  12363. <div class="oldDetail">
  12364. <div>标题:</div>
  12365. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12366. <div v-else v-html="newEnglishList.engTitle"></div>
  12367. </div>
  12368. <div class="oldDetail">
  12369. <div>正文:</div>
  12370. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12371. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12372. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12373. </div>
  12374. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12375. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12376. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12377. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12378. </div>
  12379. </div>
  12380. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12381. <div class="detailBox" style="position: relative;">
  12382. <div class="oldDetail">
  12383. <div>标题:</div>
  12384. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12385. <div v-else>
  12386. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12387. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12388. </div>
  12389. </div>
  12390. <div class="oldDetail">
  12391. <div>正文:</div>
  12392. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12393. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12394. <div v-else>
  12395. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12396. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12397. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12398. </div>
  12399. </div>
  12400. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12401. <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>
  12402. <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>
  12403. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12404. </div>
  12405. </div>
  12406. </div>
  12407. </div>
  12408. </div>
  12409. <span slot="footer" class="dialog-footer">
  12410. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12411. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12412. </span>
  12413. </el-dialog>
  12414. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12415. <interVideo
  12416. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12417. :videoJson="videoJson"
  12418. :userid="userid"
  12419. :id="id"
  12420. :courseType="courseType"
  12421. :taskCount="taskCount"
  12422. :toolindex="toolindex"
  12423. :videoType="videoType"
  12424. ></interVideo>
  12425. <UpdateMore
  12426. :dialogVisibleMember.sync="dialogVisibleMember"
  12427. :cList="uploadStudentJuri"
  12428. :userid="userid"
  12429. :searchTN="worksSName2"
  12430. @setPlname="setPlname"
  12431. ></UpdateMore>
  12432. <!-- <wordCloud
  12433. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12434. :data="wordCloudData"
  12435. ></wordCloud> -->
  12436. <el-dialog
  12437. title="词云"
  12438. :visible.sync="dialogVisibleWordCloud"
  12439. width="30%"
  12440. class="dialog_diy"
  12441. :before-close="handleClose">
  12442. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12443. </el-dialog>
  12444. <el-dialog
  12445. title="挑人"
  12446. :visible.sync="dialogVisiblePickPeople"
  12447. width="650px"
  12448. :before-close="handleClose"
  12449. class="dialog_diy"
  12450. center
  12451. >
  12452. <div class="pick_box">
  12453. <div
  12454. class="noWorksName"
  12455. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12456. v-for="(item, index) in uploadStudentJuri"
  12457. :key="index"
  12458. @click="pickStudent(item)"
  12459. >
  12460. {{ item.name }}
  12461. </div>
  12462. </div>
  12463. </el-dialog>
  12464. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12465. :englishVoiceJson='englishVoiceJson'
  12466. :userid="userid"
  12467. :id="id"
  12468. :courseType="courseType"
  12469. :taskCount="taskCount"
  12470. :toolindex="toolindex"
  12471. @selectSWorks="selectSWorks"
  12472. @selectStudent="selectStudent"
  12473. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12474. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12475. :userid="userid"
  12476. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12477. :commentDetail="commentDetail"
  12478. :courseDetail="courseDetail"
  12479. :wScore="wScore"
  12480. :scoreDetail="scoreDetail"
  12481. @selectSWorks="selectSWorks"
  12482. @selectStudent="selectStudent"></checkEnglishVoice>
  12483. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12484. <choseWorksDetailDialog
  12485. ref="choseWorksDetailDialogRef"
  12486. :worksStudentData="worksStudent"
  12487. :noWorksSData="noWorksS"
  12488. :chapInfoListData="chapInfoList"
  12489. :courseType="courseType"
  12490. :taskCount="taskCount"
  12491. :tType="tType"
  12492. :sIsOpen="sIsOpen"
  12493. :courseDetail="courseDetail"
  12494. :groupStudent2="groupStudent"
  12495. :groupStudentUid2="groupStudentUid"
  12496. :oid="oid"
  12497. :org="org"
  12498. @getCourseDetail="getCourseDetail"
  12499. @selectSLook="selectSLook"
  12500. @selectSWorks="selectSWorks"
  12501. @selectStudent="selectStudent"
  12502. @deleteWorks="deleteWorks"
  12503. @openTools="openTools"
  12504. @openWord="openWord"
  12505. @openScore="openScore"
  12506. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12507. />
  12508. <el-dialog
  12509. :visible.sync="confirmOpenDig"
  12510. width="500px"
  12511. :modal="false"
  12512. class="confirmOpenDigCss dialog_diyCopy"
  12513. :before-close="handleClose">
  12514. <div style="display: flex;align-items: center;">
  12515. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12516. <span>“{{ courseDetail.title }}”开课啦</span>
  12517. </div>
  12518. <div style="margin: 20px 0 35px;">
  12519. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12520. <div>要认真听讲哦~</div>
  12521. </div>
  12522. <div style="text-align: center;">
  12523. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12524. </div>
  12525. </el-dialog>
  12526. <appStoreC ref="appStoreC"
  12527. :sStudent="sStudent"
  12528. :courseType="courseType"
  12529. :taskCount="taskCount"
  12530. :toolindex="toolindex"
  12531. @selectSWorks="selectSWorks"
  12532. @selectStudent="selectStudent"
  12533. ></appStoreC>
  12534. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12535. </div>
  12536. </template>
  12537. <script>
  12538. import "../../common/aws-sdk-2.235.1.min.js";
  12539. // import pdf from "../components/pdf3";
  12540. import pdf from "../components/vpdf";
  12541. import AskStatic from "../components/askStatic";
  12542. import AskStatic2 from "../components/askStatic2";
  12543. import AnswerData2 from "../components/answerData2";
  12544. import AnswerData from "../components/answerData";
  12545. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12546. import EditorBar from "../tools/wangEnduit.vue";
  12547. import Table from "../tools/table.vue";
  12548. import Time from "../tools/time.vue";
  12549. import Mind from "../tools/jsmind.vue";
  12550. import Sunburst from "../tools/sunburst";
  12551. import SeeBoard from "../tools/seeBoard";
  12552. import * as imageConversion from "image-conversion";
  12553. import Audio from "../components/audio.vue";
  12554. import ImgDraw from "../tools/imgDraw/imgDraw";
  12555. import { Empty } from "element-ui";
  12556. import RecordRTC from "recordrtc";
  12557. import interVideo from "../interVideo/index.vue";
  12558. import UpdateMore from "../updateMore/updateMore.vue";
  12559. import wordCloud from "../wordCloud/index.vue";
  12560. import axios from "axios";
  12561. import JSZip from "jszip";
  12562. import FileSaver from "file-saver";
  12563. import onlineWrite from "./commpont/onlineWrite";
  12564. import englishEva from "../components/englishEva";
  12565. import * as Diff from 'diff'
  12566. import EnglishVoice from '../EnglishVoice2/index.vue'
  12567. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12568. import correctText from '../components/correctText.vue'
  12569. import scoreItem from '../scoreList/scoreItem.vue'
  12570. import scoreZong from '../scoreZong/index.vue'
  12571. import classRoomHelper from '../classRoomHelper/index.vue'
  12572. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12573. import MarkdownIt from "markdown-it";
  12574. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12575. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12576. import { v4 as uuidv4 } from "uuid";
  12577. var OpenCC = require("opencc-js");
  12578. import choseWordCloud from '../components/choseWordCloud.vue'
  12579. import appStoreC from "../components/appStoreC.vue";
  12580. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12581. import { myMixin } from "@/mixins/mixin.js"
  12582. import { tools as toolsList } from "@/common/tools2.js";
  12583. import katex from 'katex'
  12584. import 'katex/dist/katex.min.css'
  12585. let converter = OpenCC.Converter({
  12586. from: "hk",
  12587. to: "cn"
  12588. });
  12589. const getFile = (url) => {
  12590. return new Promise((resolve, reject) => {
  12591. var credentials = {
  12592. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12593. secretAccessKey: "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",
  12594. }; //秘钥形式的登录上传
  12595. window.AWS.config.update(credentials);
  12596. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12597. let url2 = url;
  12598. let _url2 = "";
  12599. if (
  12600. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12601. ) {
  12602. _url2 = url2.split(
  12603. "https://view.officeapps.live.com/op/view.aspx?src="
  12604. )[1];
  12605. } else {
  12606. _url2 = url2;
  12607. }
  12608. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12609. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12610. var params = {
  12611. Bucket: "ccrb",
  12612. Key: name
  12613. };
  12614. s3.getObject(params, function (err, data) {
  12615. if (err) {
  12616. console.log(err, err.stack)
  12617. resolve({ data: 1 });
  12618. }else {
  12619. resolve({ data: data.Body });
  12620. console.log(data);
  12621. } // sxuccessful response
  12622. });
  12623. // axios({
  12624. // method: "get",
  12625. // url,
  12626. // responseType: "blob",
  12627. // })
  12628. // .then((data) => {
  12629. // resolve({ data: data.data });
  12630. // })
  12631. // .catch((error) => {
  12632. // resolve({ data: 1 });
  12633. // // reject(error.toString());
  12634. // });
  12635. });
  12636. };
  12637. export default {
  12638. mixins: [ myMixin ],
  12639. components: {
  12640. choseWordCloud,
  12641. EditorBar,
  12642. Time,
  12643. pdf,
  12644. AskStatic,
  12645. AskStatic2,
  12646. Mind,
  12647. Sunburst,
  12648. SeeBoard,
  12649. AnswerData2,
  12650. AnswerData,
  12651. sortToolWorkShow,
  12652. Audio,
  12653. ImgDraw,
  12654. Table,
  12655. interVideo,
  12656. UpdateMore,
  12657. wordCloud,
  12658. onlineWrite,
  12659. englishEva,
  12660. EnglishVoice,
  12661. checkEnglishVoice,
  12662. correctText,
  12663. scoreItem,
  12664. classRoomHelper,
  12665. scoreZong,
  12666. statisticalAnalysis,
  12667. choseWorksDetailDialog,
  12668. appStoreC,
  12669. cocoFlowDia,
  12670. studentClassRoomHelper
  12671. },
  12672. data() {
  12673. return {
  12674. homeWorkLoading:false,
  12675. toolsList: toolsList,
  12676. wordCloudKey: 0,
  12677. bg: null,
  12678. drawShow: false,
  12679. dialogVisible: false,
  12680. dialogVisiblePl: false,
  12681. commentDialogVisible: false,
  12682. dialogVisibleMember: false,
  12683. dialogVisibleWordCloud: false,
  12684. videoVisible: false,
  12685. isStar: false,
  12686. studentEvalDialogVisible: false,
  12687. studentEvalDialogVisibleTeacher: false,
  12688. dialogVisibleSelect: false,
  12689. dialogVisibleSelectTeacher: false,
  12690. dialogVisibleScore: false,
  12691. dialogVisibleENScore: false,
  12692. dialogVisibleSentence: false,
  12693. dialogVisibleSentenceTeacher: false,
  12694. dialogVisibleSentence1: false,
  12695. dialogVisibleWorks: false,
  12696. dialogVisibleTable: false,
  12697. dialogVisibleTableTeacher: false,
  12698. dialogVisibleWord: false,
  12699. dialogVisibleWordTeacher: false,
  12700. dialogVisibleTable2: false,
  12701. dialogVisibleTable3: false,
  12702. dialogVisibleGroupWork: false,
  12703. dialogVisibleUpdateGroup: false,
  12704. dialogVisibleDeleteGroup: false,
  12705. dialogVisibleSname: false,
  12706. dialogVisibleVideo: false,
  12707. dialogVisiblePickPeople: false,
  12708. worksSName: "",
  12709. classJuri: [],
  12710. uploadStudentJuri: [],
  12711. uploadCid: "",
  12712. snameWid: "",
  12713. sStudent: {},
  12714. sTool: "",
  12715. bzText: "",
  12716. commentDetail: [],
  12717. selectAnswer: [],
  12718. videoDetail: {},
  12719. selectJson: {},
  12720. eScore: { eBzText: "", eStar: [] },
  12721. id: this.$route.query.courseId,
  12722. userid: this.$route.query.userid,
  12723. classId: this.$route.query.cid,
  12724. // courseTypeLine: this.$route.query.type,
  12725. oid: this.$route.query.oid,
  12726. org: this.$route.query.org,
  12727. tType: this.$route.query.tType,
  12728. courseType: this.$route.query.type,
  12729. screenType: this.$route.query.screenType,
  12730. tcid2: this.$route.query.tcid,
  12731. tcid: "",
  12732. pptImgUrl: "",
  12733. pptImgUrl1: "",
  12734. commentText: "",
  12735. full: false,
  12736. sIsOpen: false,
  12737. IsLookOpen: false,
  12738. IsFollow: false,
  12739. pzDialog: false,
  12740. contentDialog: false,
  12741. mlDialog: false,
  12742. type: 1,
  12743. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12744. sentenceList1: [],
  12745. tableJson: [],
  12746. tableJsonO: [],
  12747. wordJson: [],
  12748. wordJsonO: [],
  12749. vedio: [],
  12750. text: [],
  12751. textList: [],
  12752. line: [],
  12753. lineList: [],
  12754. chapTools: [],
  12755. chapToolList: [],
  12756. file: [],
  12757. fileC: [],
  12758. vedioTime: [],
  12759. upToolImg: "",
  12760. preTime: 0,
  12761. rateList: {
  12762. ca: 0,
  12763. },
  12764. rateParams: [],
  12765. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12766. studyJuri: [
  12767. {
  12768. content: "",
  12769. cover: [],
  12770. upVedio: [],
  12771. upFile: [],
  12772. },
  12773. ],
  12774. isClose: 0,
  12775. plworkFile: [],
  12776. mr: require("../../assets/vedioPic.png"),
  12777. word: require("../../assets/icon/isWord.png"),
  12778. word2: require("../../assets/icon/word2.png"),
  12779. video: require("../../assets/icon/isVideo.png"),
  12780. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12781. likes: require("../../assets/icon/comment/likes.png"),
  12782. scoreImg: require("../../assets/score.png"),
  12783. courseDetail: {},
  12784. reply: "",
  12785. isSelect: false,
  12786. chapInfo: [],
  12787. chapInfoList: [],
  12788. taskCount: 0,
  12789. imgList: [],
  12790. noImgList: [],
  12791. pzList: [],
  12792. timeWorkList: [],
  12793. PlTextList: [
  12794. "Excellent!",
  12795. "nice!",
  12796. "很有创意!",
  12797. "还不错哦~",
  12798. "继续努力哦~",
  12799. ],
  12800. isClickNav: "",
  12801. navId: "",
  12802. playerOptions: {
  12803. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12804. autoplay: false, //如果true,浏览器准备好时开始回放。
  12805. muted: false, // 默认情况下将会消除任何音频。
  12806. loop: false, // 导致视频一结束就重新开始。
  12807. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12808. language: "zh-CN",
  12809. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12810. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12811. sources: [
  12812. {
  12813. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12814. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12815. },
  12816. ],
  12817. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12818. // poster: dataRes.imgUrl, //你的封面地址
  12819. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12820. controlBar: {
  12821. timeDivider: true, //当前时间和持续时间的分隔符
  12822. durationDisplay: true, //显示持续时间
  12823. remainingTimeDisplay: false, //是否显示剩余时间功能
  12824. fullscreenToggle: true, //全屏按钮
  12825. },
  12826. },
  12827. playerOptions1: {
  12828. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12829. autoplay: false, //如果true,浏览器准备好时开始回放。
  12830. muted: false, // 默认情况下将会消除任何音频。
  12831. loop: false, // 导致视频一结束就重新开始。
  12832. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12833. language: "zh-CN",
  12834. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12835. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12836. sources: [
  12837. {
  12838. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12839. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12840. },
  12841. ],
  12842. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12843. // poster: dataRes.imgUrl, //你的封面地址
  12844. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12845. controlBar: {
  12846. timeDivider: true, //当前时间和持续时间的分隔符
  12847. durationDisplay: true, //显示持续时间
  12848. remainingTimeDisplay: false, //是否显示剩余时间功能
  12849. fullscreenToggle: true, //全屏按钮
  12850. },
  12851. },
  12852. playerO: {},
  12853. noneBtnImg: false,
  12854. proVisible: false,
  12855. proVisible2: false,
  12856. progress: 0,
  12857. isFinishSize: 0,
  12858. isAllSize: 0,
  12859. questionAnswer: "",
  12860. answerQ: "", //问答标题
  12861. rateJson: [],
  12862. wbCount: 0,
  12863. wordCount: 0,
  12864. mindCount: 0,
  12865. askCount: 0,
  12866. noteCount: 0,
  12867. mindNetWorkCount: 0,
  12868. libraryCount: 0,
  12869. workCount: 0,
  12870. timeCount: 0,
  12871. answerCount: 0,
  12872. trainCount: 0,
  12873. evalCount: 0,
  12874. dialogImageUrl: "",
  12875. pictureDialog: false,
  12876. toolTypeList: [],
  12877. dialogVisible1: false,
  12878. dialogVisible2: false,
  12879. dialogVisible3: false,
  12880. dialogVisible6: false,
  12881. dialogVisible4: false,
  12882. isNoHomeWork: false,
  12883. dialogVisible5: false,
  12884. dialogVisible5Teacher: false,
  12885. dialogVisibleChoice: false,
  12886. dialogVisibleChoiceTeacher: false,
  12887. answerDialogVisible: false,
  12888. answerDialogVisibleTeacher: false,
  12889. juriVisible: false,
  12890. timeDialogVisible: false,
  12891. replyDialogVisible: false,
  12892. toolDialogVisible: false,
  12893. engDialogVisible: false,
  12894. engUpdateDialogVisible:false,
  12895. engEvaDialogVisible: false,
  12896. evaEngJson: {
  12897. teacherJson: {},
  12898. studentJson: {},
  12899. message: {},
  12900. },
  12901. isNoUserid:false,
  12902. engListLength:0,
  12903. engWid:"",
  12904. newEnglishList:{
  12905. engTitle:"",
  12906. engText:"",
  12907. },
  12908. newEnglishList1:[],
  12909. oldEnglishJson:{},
  12910. oldEnglishJson1:{},
  12911. englishList1:{},
  12912. englishList:{},
  12913. myAnswerList1:{},
  12914. topHeight:0,
  12915. newEngIndex:-1,
  12916. englishToolIndex:0,
  12917. userMes:{},
  12918. englishToolIndex:0,
  12919. replyIndex: 0,
  12920. replyPid: "",
  12921. radio: [],
  12922. isAsk: false,
  12923. askJson: {
  12924. askCount: 1,
  12925. askTitle: "",
  12926. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12927. },
  12928. testJson: {},
  12929. englishList: {},
  12930. topHeight:0,
  12931. checkJson: [],
  12932. askList: [],
  12933. answerList: [],
  12934. navList: [],
  12935. addPzDialog: false,
  12936. pzConText: "",
  12937. worksStudent: [],
  12938. isCloseList: [],
  12939. workStudent: [],
  12940. groupStudent: [],
  12941. groupStudentUid: [],
  12942. noWorksS: [],
  12943. isWorksS: [],
  12944. noWorksStudent: [],
  12945. toolindex: 0,
  12946. toolDetailIndex: null,
  12947. groupIndex: 0,
  12948. workTypeB: false,
  12949. workTypeC: false,
  12950. isAnswer: false,
  12951. isHovered: false,
  12952. isHovered1: false,
  12953. isHovered2: false,
  12954. commentTagShow:0,
  12955. timer: null,
  12956. timer2: null,
  12957. opertimer: null,
  12958. showType: '',
  12959. fileType: 0,
  12960. showPDF: false,
  12961. noteName: "",
  12962. evaJuri: [],
  12963. evalua: "",
  12964. eTitle: "",
  12965. eName: "",
  12966. eJson: {},
  12967. fid: "", //一级
  12968. sid: "", //二级
  12969. tid: "", //二级
  12970. typeMode: 1,
  12971. eJSONNum: 0,
  12972. Etype: 1,
  12973. data: {
  12974. meta: {
  12975. name: "example",
  12976. author: "dd@163.com",
  12977. version: "0.2",
  12978. },
  12979. format: "node_array",
  12980. data: [{ id: "root", isroot: true, topic: "" }],
  12981. },
  12982. fullDialogVisible: false,
  12983. fulltype: "",
  12984. fullUrl: "",
  12985. commentIndexJson: {},
  12986. Stbodywidth: 0,
  12987. ispzType: 0,
  12988. pzType: 1,
  12989. wScore: 0,
  12990. scoreDetail: "",
  12991. videoStart: false,
  12992. recorder: null,
  12993. groupJson: {},
  12994. islock: false,
  12995. groupJson2: {},
  12996. dialogVisibleGroup: false,
  12997. dialogVisibleGroup2: false,
  12998. updateGroupArray: [],
  12999. updateGroupUser: {},
  13000. deleteGroupUser: [],
  13001. deleteGroupArray: {},
  13002. checkChair: "",
  13003. checkDeleteGroup: [],
  13004. inviteCode: "",
  13005. courseGroupStudent: [],
  13006. courseGroupStudentUid: [],
  13007. courseGroup: {},
  13008. isGroup: false,
  13009. toolIndex: null,
  13010. tool: {},
  13011. isWorkTool: [
  13012. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13013. ], //, 40
  13014. videoJson: {},
  13015. videoType:0,
  13016. toolType: 0,
  13017. checktoolArray: [],
  13018. vChapterData: [],
  13019. isUpdateToolDetail: false,
  13020. isUpdateToolDetail1: false,
  13021. updateToolDetailInner: "",
  13022. checkboxList: [],
  13023. plIndex: "",
  13024. worksSName2: "",
  13025. worksSid: "",
  13026. wordCloudData: [],
  13027. isPickStudent: [],
  13028. pzStype: 1,
  13029. myAnList: {},
  13030. downLoading: false,
  13031. greyType: false,
  13032. correctWord: [],
  13033. EnglishVoiceDialog: false,
  13034. englishVoiceJson: {},
  13035. englishVoiceJsonWork:[],
  13036. scoreList:{
  13037. listdata:[],
  13038. isScoreList:[],
  13039. },
  13040. classRoomHelperWidth: '85px',
  13041. orgArray:[],
  13042. oidArray:[],
  13043. splitScreenData:{
  13044. isOpen:false,
  13045. userId:"",
  13046. uid:"",
  13047. myUid:"",
  13048. loading:false,
  13049. behavior:null,
  13050. },
  13051. confirmOpenDig:false,
  13052. confirmOpenDigData:'',
  13053. diffKey:"1"
  13054. };
  13055. },
  13056. methods: {
  13057. //查看应用中心作业
  13058. openCocoFlow(w){
  13059. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13060. },
  13061. getAIJ(){
  13062. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13063. let oid = res.data[0];
  13064. let org = res.data[1];
  13065. let oidArray = [];
  13066. let orgArray = [];
  13067. oid.forEach(i=>oidArray.push(i.oid))
  13068. org.forEach(i=>orgArray.push(i.oid))
  13069. this.orgArray = orgArray;
  13070. this.oidArray = oidArray;
  13071. })
  13072. },
  13073. insertMemorandum(_html){//保存行为操作
  13074. //variable
  13075. //btn
  13076. let params = [{
  13077. uid:this.userid,
  13078. courseId:this.id+(this.tcid2?this.tcid2:''),
  13079. content:_html
  13080. }]
  13081. console.log(params)
  13082. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13083. if(res.data==1){
  13084. console.log('保存操作成功')
  13085. }else{
  13086. console.log('保存操作失败')
  13087. }
  13088. }).catch(e=>{
  13089. console.log('保存操作失败')
  13090. console.log(e)
  13091. })
  13092. },
  13093. gx(){
  13094. this.$forceUpdate();
  13095. },
  13096. isUpdateCorrect(t,p){
  13097. if(this.greyType == false){
  13098. this.isUpdateText = t;
  13099. this.greyType = true;
  13100. }else{
  13101. if(p == 1){
  13102. this.newEnglishList.engText = this.isUpdateText;
  13103. }else if(p == 2){
  13104. this.oldEnglishJson1.engText = this.isUpdateText;
  13105. }else if(p == 3){
  13106. this.newEnglishList.engText = this.isUpdateText;
  13107. }else{
  13108. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13109. }
  13110. this.greyType = false
  13111. }
  13112. },
  13113. aiCorrect(t,p){
  13114. let aiText = "";
  13115. const loading = this.$loading.service({
  13116. background: "rgba(255, 255, 255)",
  13117. target: document.querySelectorAll(".loadingText")[0],
  13118. });
  13119. let param = {
  13120. model: "gpt-3.5-turbo",
  13121. temperature: 0,
  13122. max_tokens: 2048,
  13123. top_p: 1,
  13124. frequency_penalty: 0,
  13125. presence_penalty: 0,
  13126. messages: [
  13127. {
  13128. role: "user",
  13129. content:
  13130. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13131. },
  13132. ],
  13133. uid: this.userid,
  13134. stream: false,
  13135. };
  13136. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13137. (res) => {
  13138. if (
  13139. res.data.FunctionResponse &&
  13140. res.data.FunctionResponse.result &&
  13141. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13142. ) {
  13143. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13144. return;
  13145. }
  13146. aiText =
  13147. res.data.FunctionResponse.choices[0].message.content;
  13148. aiText = aiText.replace(/%/g,"%25");
  13149. // let w = "";
  13150. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13151. // for(var k = 0;k<a.length;k++){
  13152. // //diffWordsWithSpace
  13153. // if(a.length > 1){
  13154. // if(a[k].added == true){
  13155. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13156. // }else if(a[k].removed == true){
  13157. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13158. // }else{
  13159. // w += '<span>' + a[k].value + '</span>';
  13160. // }
  13161. // }else{
  13162. // if(p == 1){
  13163. // w = this.newEnglishList.engText;
  13164. // }else if(p == 2){
  13165. // w = this.oldEnglishJson1.engText;
  13166. // }else if(p == 3){
  13167. // w = this.newEnglishList.engText;
  13168. // }else{
  13169. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13170. // }
  13171. // }
  13172. // }
  13173. if(p == 1){
  13174. this.newEnglishList.engText = aiText;
  13175. }else if(p == 2){
  13176. this.oldEnglishJson1.engText = aiText;
  13177. }else if(p == 3){
  13178. this.newEnglishList.engText = aiText;
  13179. }else{
  13180. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13181. }
  13182. loading.close();
  13183. },
  13184. (err) => {
  13185. console.log(err);
  13186. loading.close();
  13187. }
  13188. );
  13189. },
  13190. addToolChoose() {
  13191. if (!this.checktoolArray.length) {
  13192. this.$message.error("请选择要添加的任务");
  13193. return;
  13194. }
  13195. if (
  13196. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13197. this.taskCount
  13198. ].toolChoose[0].tool.length
  13199. ) {
  13200. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13201. this.taskCount
  13202. ].toolChoose[0].tool = this.checktoolArray;
  13203. } else {
  13204. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13205. this.taskCount
  13206. ].toolChoose.push({
  13207. tool: this.checktoolArray,
  13208. toolDetail: "",
  13209. toolType: 0,
  13210. askCount: 1,
  13211. askTitle: "",
  13212. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13213. });
  13214. }
  13215. let params = [
  13216. {
  13217. cid: this.id,
  13218. chapters: JSON.stringify(this.chapInfoList),
  13219. uid: this.userid,
  13220. unitIndex: this.courseType,
  13221. },
  13222. ];
  13223. this.ajax
  13224. .post(this.$store.state.api + "updateWorkNew4", params)
  13225. .then((res) => {
  13226. this.$message({
  13227. message: "添加成功",
  13228. type: "success",
  13229. });
  13230. this.checktoolArray = [];
  13231. this.getCourseDetail(2);
  13232. this.checkBz(
  13233. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13234. this.taskCount
  13235. ].toolChoose.length - 1
  13236. );
  13237. this.toolDialogVisible = false;
  13238. this.refreshCourse();
  13239. this.$forceUpdate();
  13240. })
  13241. .catch((err) => {
  13242. console.error(err);
  13243. });
  13244. },
  13245. checkBz(index) {
  13246. this.isUpdateToolDetail = false;
  13247. this.$forceUpdate();
  13248. setTimeout(() => {
  13249. document.scrollingElement.scrollTop =
  13250. document.querySelectorAll(".filebox")[index].offsetTop +
  13251. document.querySelector(".student_body").offsetTop;
  13252. }, 500);
  13253. },
  13254. updateToolDetail(i, type) {
  13255. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13256. this.toolDetailIndex = i
  13257. this.isUpdateToolDetail1 = true;
  13258. setTimeout(() => {
  13259. this.updateToolDetailInner = JSON.parse(
  13260. JSON.stringify(
  13261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13262. this.taskCount
  13263. ].toolChoose[i].toolDetail
  13264. )
  13265. );
  13266. document.querySelector(".checkTextArea").focus();
  13267. }, 0);
  13268. } else if((this.isUpdateToolDetail1 && type != 2)){
  13269. // this.toolDetailIndex = i;
  13270. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13271. this.taskCount
  13272. ].toolChoose[i].toolDetail = JSON.parse(
  13273. JSON.stringify(this.updateToolDetailInner)
  13274. );
  13275. let params = [
  13276. {
  13277. cid: this.id,
  13278. chapters: JSON.stringify(this.chapInfoList),
  13279. uid: this.userid,
  13280. unitIndex: this.courseType,
  13281. },
  13282. ];
  13283. this.ajax
  13284. .post(this.$store.state.api + "updateWorkNew4", params)
  13285. .then((res) => {
  13286. this.isUpdateToolDetail1 = false;
  13287. this.$message({
  13288. message: "修改成功",
  13289. type: "success",
  13290. });
  13291. this.toolDetailIndex = null;
  13292. this.updateToolDetailInner = "";
  13293. this.getCourseDetail(2);
  13294. this.$forceUpdate();
  13295. })
  13296. .catch((err) => {
  13297. console.error(err);
  13298. });
  13299. } else if((this.isUpdateToolDetail1 && type == 2)){
  13300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13301. this.taskCount
  13302. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13303. JSON.stringify(this.updateToolDetailInner)
  13304. );
  13305. let params = [
  13306. {
  13307. cid: this.id,
  13308. chapters: JSON.stringify(this.chapInfoList),
  13309. uid: this.userid,
  13310. unitIndex: this.courseType,
  13311. },
  13312. ];
  13313. this.ajax
  13314. .post(this.$store.state.api + "updateWorkNew4", params)
  13315. .then((res) => {
  13316. this.$message({
  13317. message: "修改成功",
  13318. type: "success",
  13319. });
  13320. this.toolDetailIndex = i;
  13321. this.isUpdateToolDetail1 = true;
  13322. setTimeout(() => {
  13323. this.updateToolDetailInner = JSON.parse(
  13324. JSON.stringify(
  13325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13326. this.taskCount
  13327. ].toolChoose[i].toolDetail
  13328. )
  13329. );
  13330. document.querySelector(".checkTextArea").focus();
  13331. }, 0);
  13332. this.getCourseDetail(2);
  13333. this.$forceUpdate();
  13334. })
  13335. .catch((err) => {
  13336. console.error(err);
  13337. });
  13338. }
  13339. },
  13340. jumpGj(i, j, k, l) {
  13341. for (var z = 0; z < this.navList.length; z++) {
  13342. for (var q = 0; q < this.navList[z].task.length; q++) {
  13343. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13344. this.navList[z].task[q].tool[w].isTool = false;
  13345. }
  13346. }
  13347. }
  13348. console.log(this.navList);
  13349. this.navList[i].task[j].tool[k].isTool =
  13350. !this.navList[i].task[j].tool[k].isTool;
  13351. var a = document.scrollingElement;
  13352. let target = document.querySelector(`#gj${k}`);
  13353. if (target) {
  13354. // target.scrollIntoView(true);
  13355. // setTimeout(() => {
  13356. // a.scrollTop = a.scrollTop - 150;
  13357. // }, 0);
  13358. target.scrollIntoView();
  13359. setTimeout(()=>{
  13360. let scrollBody = document.querySelector('.body_student').parentElement
  13361. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13362. }, 0);
  13363. }
  13364. this.navId = ""
  13365. let flag = this.courseType == i;
  13366. let flag2 = this.taskCount == j
  13367. if (l) {
  13368. this.courseType = i;
  13369. // this.navId = l;
  13370. this.taskCount = j;
  13371. this.selectPz();
  13372. this.getHomeWork();
  13373. this.getCourseDetail(2);
  13374. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13375. if(flag){
  13376. if(flag2){
  13377. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13378. }else{
  13379. 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>`)
  13380. }
  13381. }else{
  13382. 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>`)
  13383. }
  13384. }
  13385. // var b = this.$refs["bz" + k][0];
  13386. // a.scrollTop = b.offsetTop;
  13387. },
  13388. addTools2(i) {
  13389. if (i == 4) {
  13390. // this.openTools2(4);
  13391. this.$message.error("暂未开放");
  13392. return;
  13393. }
  13394. if (i == 45) {
  13395. // this.openTools2(45);
  13396. this.$message.error("暂未开放");
  13397. return;
  13398. }
  13399. if (i == 47) {
  13400. // this.openTools2(47);
  13401. this.$message.error("暂未开放");
  13402. return;
  13403. }
  13404. if (i == 49) {
  13405. // this.openTools2(49);
  13406. this.$message.error("暂未开放");
  13407. return;
  13408. }
  13409. if (i == 62) {
  13410. // this.openTools(itemTaskIndex, 62, toolIndex);
  13411. this.$message.error("暂未开放");
  13412. return;
  13413. }
  13414. if (i == 15) {
  13415. // this.openTools(itemTaskIndex, 15, toolIndex);
  13416. this.$message.error("暂未开放");
  13417. return;
  13418. }
  13419. if (i == 40) {
  13420. // this.openTools(itemTaskIndex, 40, toolIndex);
  13421. this.$message.error("暂未开放");
  13422. return;
  13423. }
  13424. if (i == 41) {
  13425. // this.openTools(itemTaskIndex, 41, toolIndex);
  13426. this.$message.error("暂未开放");
  13427. return;
  13428. }
  13429. if (i == 42) {
  13430. // this.openTools(itemTaskIndex, 42, toolIndex);
  13431. this.$message.error("暂未开放");
  13432. return;
  13433. }
  13434. if (this.checktoolArray.length > 0) {
  13435. if (this.checktoolArray.indexOf(i) != -1) {
  13436. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13437. } else {
  13438. this.checktoolArray = [];
  13439. this.checktoolArray.push(i);
  13440. }
  13441. } else {
  13442. this.checktoolArray.push(i);
  13443. }
  13444. this.$forceUpdate();
  13445. },
  13446. jump() {
  13447. window.topU.postMessage({ tools: "43" }, "*");
  13448. },
  13449. getUpdateMore(f, checkboxList, searchTN, index) {
  13450. this.dialogVisibleMember = f;
  13451. this.checkboxList = checkboxList;
  13452. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13453. this.plIndex = index;
  13454. },
  13455. setPlname(a) {
  13456. if (this.plworkFile.length) {
  13457. this.plworkFile[this.plIndex].username = a;
  13458. } else {
  13459. this.worksSName = a;
  13460. }
  13461. this.dialogVisibleMember = false;
  13462. },
  13463. previewImg(url,w) {
  13464. this.$hevueImgPreview(url);
  13465. if(w){
  13466. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13467. }
  13468. },
  13469. checkImg(list) {
  13470. if (!list.length) {
  13471. return;
  13472. }
  13473. this.$hevueImgPreview({
  13474. multiple: true, // 开启多图预览模式
  13475. imgList: list, // 需要预览的多图数组
  13476. });
  13477. },
  13478. change(val) {
  13479. console.log(val);
  13480. },
  13481. goTo(path) {
  13482. this.$router.push(path);
  13483. },
  13484. handlePictureCardPreview(url) {
  13485. this.dialogImageUrl = url;
  13486. this.pictureDialog = true;
  13487. },
  13488. clean(type) {
  13489. if (type == 1) {
  13490. this.studyJuri[0].cover.splice(0, 1);
  13491. } else if (type == 2) {
  13492. this.studyJuri[0].upVedio.splice(0, 1);
  13493. } else {
  13494. this.studyJuri[0].upFile.splice(0, 1);
  13495. }
  13496. },
  13497. clean2(index) {
  13498. this.plworkFile.splice(index, 1);
  13499. },
  13500. handleClose(done) {
  13501. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13502. this.videoDetail.sources[0].src = "";
  13503. }
  13504. this.commentIndexJson = {};
  13505. this.changeSplitScreenBehavior({code:99})
  13506. done();
  13507. },
  13508. fullTools() {
  13509. this.full = !this.full;
  13510. },
  13511. imgChange(file, fileList, type) {
  13512. if (type == 1) {
  13513. var _tmp = this.studyJuri[0].cover;
  13514. } else if (type == 2) {
  13515. var _tmp = this.studyJuri[0].upVedio;
  13516. } else {
  13517. var _tmp = this.studyJuri[0].upFile;
  13518. }
  13519. this.noneBtnImg = _tmp.length >= 1;
  13520. },
  13521. setContent(bool) {
  13522. this.contentDialog = bool;
  13523. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13524. document.querySelector(".workd_media").style.height = "650px";
  13525. } else if (document.querySelector(".workd_media")) {
  13526. document.querySelector(".workd_media").style.height = "auto";
  13527. }
  13528. },
  13529. setContent2(bool) {
  13530. this.mlDialog = bool;
  13531. if (
  13532. bool &&
  13533. this.contentDialog &&
  13534. document.querySelector(".workd_media")
  13535. ) {
  13536. document.querySelector(".workd_media").style.height = "650px";
  13537. } else if (document.querySelector(".workd_media")) {
  13538. document.querySelector(".workd_media").style.height = "auto";
  13539. }
  13540. },
  13541. openToolAll() {
  13542. this.toolDialogVisible = true;
  13543. },
  13544. addImg(e) {
  13545. var el = e.currentTarget;
  13546. // this.$message.success('触发上传')
  13547. el.getElementsByTagName("input")[0].click();
  13548. e.target.value = "";
  13549. },
  13550. addSelectAnswer() {
  13551. let params = [
  13552. {
  13553. uid: this.userid,
  13554. cid: this.id,
  13555. stage: this.courseType,
  13556. task: this.taskCount,
  13557. tool: this.toolindex,
  13558. content: this.selectAnswer.answer,
  13559. type: 7,
  13560. },
  13561. ];
  13562. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13563. this.homeWorkLoading = true
  13564. this.ajax
  13565. .post(this.$store.state.api + "addCourseWorks", params)
  13566. .then((res) => {
  13567. this.$message({
  13568. message: "提交成功",
  13569. type: "success",
  13570. });
  13571. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13572. setTimeout(() => {
  13573. this.homeWorkLoading = false
  13574. }, 500);
  13575. this.dialogVisibleSelect = false;
  13576. // this.selectAnswer = {};
  13577. this.selectSWorks();
  13578. this.selectStudent();
  13579. })
  13580. .catch((err) => {
  13581. this.$message.error("提交失败");
  13582. console.error(err);
  13583. setTimeout(() => {
  13584. this.homeWorkLoading = false
  13585. }, 500);
  13586. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13587. });
  13588. },
  13589. addSelectAnswerTeacher() {
  13590. let params = [
  13591. {
  13592. uid: this.sStudent.userid,
  13593. cid: this.id,
  13594. stage: this.courseType,
  13595. task: this.taskCount,
  13596. tool: this.toolindex,
  13597. content: this.selectAnswer.answer,
  13598. type: 7,
  13599. },
  13600. ];
  13601. this.ajax
  13602. .post(this.$store.state.api + "addCourseWorks", params)
  13603. .then((res) => {
  13604. this.$message({
  13605. message: "提交成功",
  13606. type: "success",
  13607. });
  13608. this.dialogVisibleSelectTeacher = false;
  13609. // this.selectAnswer = {};
  13610. this.selectSWorks();
  13611. this.selectStudent();
  13612. })
  13613. .catch((err) => {
  13614. this.$message.error("提交失败");
  13615. console.error(err);
  13616. });
  13617. },
  13618. addSenWorks() {
  13619. for (var i = 0; i < this.sentenceList.length; i++) {
  13620. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13621. if (
  13622. this.sentenceList[i].chooseSenList[j] == undefined ||
  13623. this.sentenceList[i].chooseSenList[j] == ""
  13624. ) {
  13625. this.$message.error("请将答案填写完整!");
  13626. return;
  13627. }
  13628. }
  13629. }
  13630. let params = [
  13631. {
  13632. uid: this.userid,
  13633. cid: this.id,
  13634. stage: this.courseType,
  13635. task: this.taskCount,
  13636. tool: this.toolindex,
  13637. content: JSON.stringify(this.sentenceList),
  13638. type: 9,
  13639. },
  13640. ];
  13641. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13642. this.homeWorkLoading = true
  13643. this.ajax
  13644. .post(this.$store.state.api + "addCourseWorks", params)
  13645. .then((res) => {
  13646. this.$message({
  13647. message: "提交成功",
  13648. type: "success",
  13649. });
  13650. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13651. setTimeout(() => {
  13652. this.homeWorkLoading = false
  13653. }, 500);
  13654. this.dialogVisibleSentence = false;
  13655. // this.selectAnswer = {};
  13656. this.selectSWorks();
  13657. this.selectStudent();
  13658. })
  13659. .catch((err) => {
  13660. this.$message.error("提交失败");
  13661. console.error(err);
  13662. setTimeout(() => {
  13663. this.homeWorkLoading = false
  13664. }, 500);
  13665. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13666. });
  13667. },
  13668. addSenWorksTeacher() {
  13669. for (var i = 0; i < this.sentenceList.length; i++) {
  13670. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13671. if (
  13672. this.sentenceList[i].chooseSenList[j] == undefined ||
  13673. this.sentenceList[i].chooseSenList[j] == ""
  13674. ) {
  13675. this.$message.error("请将答案填写完整!");
  13676. return;
  13677. }
  13678. }
  13679. }
  13680. let params = [
  13681. {
  13682. uid: this.sStudent.userid,
  13683. cid: this.id,
  13684. stage: this.courseType,
  13685. task: this.taskCount,
  13686. tool: this.toolindex,
  13687. content: JSON.stringify(this.sentenceList),
  13688. type: 9,
  13689. },
  13690. ];
  13691. this.ajax
  13692. .post(this.$store.state.api + "addCourseWorks", params)
  13693. .then((res) => {
  13694. this.$message({
  13695. message: "提交成功",
  13696. type: "success",
  13697. });
  13698. this.dialogVisibleSentenceTeacher = false;
  13699. // this.selectAnswer = {};
  13700. this.selectSWorks();
  13701. this.selectStudent();
  13702. })
  13703. .catch((err) => {
  13704. this.$message.error("提交失败");
  13705. console.error(err);
  13706. });
  13707. },
  13708. returnTableText() {
  13709. this.$confirm("确定还原此模板吗?", "提示", {
  13710. confirmButtonText: "确定",
  13711. cancelButtonText: "取消",
  13712. type: "warning",
  13713. })
  13714. .then(() => {
  13715. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13716. })
  13717. .catch(() => {});
  13718. },
  13719. addTableWorks() {
  13720. let params = [
  13721. {
  13722. uid: this.userid,
  13723. cid: this.id,
  13724. stage: this.courseType,
  13725. task: this.taskCount,
  13726. tool: this.toolindex,
  13727. content: JSON.stringify(this.tableJson),
  13728. type: 10,
  13729. },
  13730. ];
  13731. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13732. this.homeWorkLoading = true
  13733. this.ajax
  13734. .post(this.$store.state.api + "addCourseWorks", params)
  13735. .then((res) => {
  13736. this.$message({
  13737. message: "提交成功",
  13738. type: "success",
  13739. });
  13740. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13741. setTimeout(() => {
  13742. this.homeWorkLoading = false
  13743. }, 500);
  13744. this.dialogVisibleTable = false;
  13745. // this.selectAnswer = {};
  13746. this.selectSWorks();
  13747. this.selectStudent();
  13748. })
  13749. .catch((err) => {
  13750. this.$message.error("提交失败");
  13751. console.error(err);
  13752. setTimeout(() => {
  13753. this.homeWorkLoading = false
  13754. }, 500);
  13755. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13756. });
  13757. },
  13758. tableRowClassName({ row, rowIndex }) {
  13759. if ((rowIndex + 1) % 2 === 0) {
  13760. return "even_row";
  13761. } else {
  13762. return "";
  13763. }
  13764. },
  13765. addTableWorksTeacher() {
  13766. let params = [
  13767. {
  13768. uid: this.sStudent.userid,
  13769. cid: this.id,
  13770. stage: this.courseType,
  13771. task: this.taskCount,
  13772. tool: this.toolindex,
  13773. content: JSON.stringify(this.tableJson),
  13774. type: 10,
  13775. },
  13776. ];
  13777. this.ajax
  13778. .post(this.$store.state.api + "addCourseWorks", params)
  13779. .then((res) => {
  13780. this.$message({
  13781. message: "提交成功",
  13782. type: "success",
  13783. });
  13784. this.dialogVisibleTableTeacher = false;
  13785. // this.selectAnswer = {};
  13786. this.selectSWorks();
  13787. this.selectStudent();
  13788. })
  13789. .catch((err) => {
  13790. this.$message.error("提交失败");
  13791. console.error(err);
  13792. });
  13793. },
  13794. returnWordText() {
  13795. this.$confirm("确定还原此模板吗?", "提示", {
  13796. confirmButtonText: "确定",
  13797. cancelButtonText: "取消",
  13798. type: "warning",
  13799. })
  13800. .then(() => {
  13801. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13802. })
  13803. .catch(() => {});
  13804. },
  13805. addWordWorks() {
  13806. let params = [
  13807. {
  13808. uid: this.userid,
  13809. cid: this.id,
  13810. stage: this.courseType,
  13811. task: this.taskCount,
  13812. tool: this.toolindex,
  13813. content: JSON.stringify(this.wordJson),
  13814. type: 13,
  13815. atool: 52,
  13816. },
  13817. ];
  13818. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13819. this.homeWorkLoading = true
  13820. this.ajax
  13821. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13822. .then((res) => {
  13823. this.$message({
  13824. message: "提交成功",
  13825. type: "success",
  13826. });
  13827. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13828. setTimeout(() => {
  13829. this.homeWorkLoading = false
  13830. }, 500);
  13831. this.dialogVisibleWord = false;
  13832. // this.selectAnswer = {};
  13833. this.selectSWorks();
  13834. this.selectStudent();
  13835. })
  13836. .catch((err) => {
  13837. this.$message.error("提交失败");
  13838. console.error(err);
  13839. setTimeout(() => {
  13840. this.homeWorkLoading = false
  13841. }, 500);
  13842. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13843. });
  13844. },
  13845. addWordWorksTeacher() {
  13846. let params = [
  13847. {
  13848. uid: this.sStudent.userid,
  13849. cid: this.id,
  13850. stage: this.courseType,
  13851. task: this.taskCount,
  13852. tool: this.toolindex,
  13853. content: JSON.stringify(this.wordJson),
  13854. type: 13,
  13855. atool: 52,
  13856. },
  13857. ];
  13858. this.ajax
  13859. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13860. .then((res) => {
  13861. this.$message({
  13862. message: "提交成功",
  13863. type: "success",
  13864. });
  13865. this.dialogVisibleWordTeacher = false;
  13866. // this.selectAnswer = {};
  13867. this.selectSWorks();
  13868. this.selectStudent();
  13869. })
  13870. .catch((err) => {
  13871. this.$message.error("提交失败");
  13872. console.error(err);
  13873. });
  13874. },
  13875. addCourseWorks(i) {
  13876. var typesql;
  13877. if (this.fileType === 0) {
  13878. typesql = 1;
  13879. } else if (this.fileType === 1) {
  13880. typesql = 4;
  13881. } else if (this.fileType === 2) {
  13882. typesql = 5;
  13883. } else if (this.fileType === 3) {
  13884. typesql = 12;
  13885. }
  13886. if (!this.studyJuri[0].cover[0].url) {
  13887. this.$message.error("请上传文件");
  13888. return;
  13889. }
  13890. let params = [
  13891. {
  13892. uid: this.userid,
  13893. cid: this.id,
  13894. stage: this.courseType,
  13895. task: i,
  13896. tool: this.toolindex,
  13897. content: this.studyJuri[0].cover[0].url,
  13898. type: typesql,
  13899. },
  13900. ];
  13901. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13902. this.homeWorkLoading = true
  13903. this.ajax
  13904. .post(this.$store.state.api + "addCourseWorksR", params)
  13905. .then((res) => {
  13906. this.$message({
  13907. message: "提交成功",
  13908. type: "success",
  13909. });
  13910. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13911. setTimeout(() => {
  13912. this.homeWorkLoading = false
  13913. }, 500);
  13914. this.studyJuri[0].cover = [];
  13915. this.dialogVisible = false;
  13916. this.getCourseDetail(2);
  13917. })
  13918. .catch((err) => {
  13919. this.$message.error("提交失败");
  13920. console.error(err);
  13921. setTimeout(() => {
  13922. this.homeWorkLoading = false
  13923. }, 500);
  13924. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13925. });
  13926. },
  13927. addCourseWorksPl(i) {
  13928. let _files = this.plworkFile;
  13929. var c = 1;
  13930. for (var k = 0; k < _files.length; k++) {
  13931. if (!_files[k].username) {
  13932. c = 2;
  13933. }
  13934. }
  13935. if (c == 2) {
  13936. this.$message.error("请填写学生姓名");
  13937. return;
  13938. }
  13939. let params = [
  13940. {
  13941. ateacher: this.userid,
  13942. cid: this.id,
  13943. stage: this.courseType,
  13944. task: i,
  13945. tool: this.toolindex,
  13946. content: JSON.stringify(_files),
  13947. },
  13948. ];
  13949. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13950. this.homeWorkLoading = true
  13951. this.ajax
  13952. .post(this.$store.state.api + "addCourseWorksPl", params)
  13953. .then((res) => {
  13954. this.$message({
  13955. message: "提交成功",
  13956. type: "success",
  13957. });
  13958. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13959. setTimeout(() => {
  13960. this.homeWorkLoading = false
  13961. }, 500);
  13962. this.plworkFile = [];
  13963. this.dialogVisiblePl = false;
  13964. this.getCourseDetail(2);
  13965. })
  13966. .catch((err) => {
  13967. this.$message.error("提交失败");
  13968. console.error(err);
  13969. setTimeout(() => {
  13970. this.homeWorkLoading = false
  13971. }, 500);
  13972. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13973. });
  13974. },
  13975. addCourseWorks2(i) {
  13976. var typesql;
  13977. if (this.fileType === 0) {
  13978. typesql = 0;
  13979. } else if (this.fileType === 1) {
  13980. typesql = 1;
  13981. } else if (this.fileType === 2) {
  13982. typesql = 3;
  13983. } else if (this.fileType === 3) {
  13984. typesql = 12;
  13985. }
  13986. if (!this.studyJuri[0].cover[0].url) {
  13987. this.$message.error("请上传文件");
  13988. return;
  13989. }
  13990. let params = [
  13991. {
  13992. uid: this.userid,
  13993. cid: this.id,
  13994. stage: this.courseType,
  13995. task: i,
  13996. tool: this.toolindex,
  13997. content: JSON.stringify({
  13998. type: typesql,
  13999. groupIndex: this.groupIndex,
  14000. url: this.studyJuri[0].cover[0].url,
  14001. }),
  14002. type: 11,
  14003. atool: 49,
  14004. text: "",
  14005. },
  14006. ];
  14007. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14008. this.homeWorkLoading = true
  14009. this.ajax
  14010. .post(this.$store.state.api + "addCourseWorks5", params)
  14011. .then((res) => {
  14012. this.$message({
  14013. message: "提交成功",
  14014. type: "success",
  14015. });
  14016. setTimeout(() => {
  14017. this.homeWorkLoading = false
  14018. }, 500);
  14019. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14020. type: typesql,
  14021. groupIndex: this.groupIndex,
  14022. url: this.studyJuri[0].cover[0].url,
  14023. }),type: "course_tool_sub" }, "success")
  14024. this.studyJuri[0].cover = [];
  14025. this.dialogVisibleGroupWork = false;
  14026. this.getCourseDetail(2);
  14027. })
  14028. .catch((err) => {
  14029. this.$message.error("提交失败");
  14030. console.error(err);
  14031. setTimeout(() => {
  14032. this.homeWorkLoading = false
  14033. }, 500);
  14034. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14035. type: typesql,
  14036. groupIndex: this.groupIndex,
  14037. url: this.studyJuri[0].cover[0].url,
  14038. }),type: "course_tool_sub" }, err)
  14039. });
  14040. },
  14041. addEnglishWork() {
  14042. this.myAnList = this.$refs['engJson'].myAnswerList;
  14043. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14044. this.$message.error("请输入作文标题和正文!");
  14045. return;
  14046. }
  14047. let params = [
  14048. {
  14049. uid: this.userid,
  14050. cid: this.id,
  14051. stage: this.courseType,
  14052. task: this.taskCount,
  14053. tool: this.englishToolIndex,
  14054. content: JSON.stringify(this.myAnList),
  14055. type: 16,
  14056. atool: 69,
  14057. text: "",
  14058. },
  14059. ];
  14060. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14061. this.homeWorkLoading = true
  14062. this.ajax
  14063. .post(this.$store.state.api + "addCourseWorks5", params)
  14064. .then((res) => {
  14065. this.$message({
  14066. message: "提交成功",
  14067. type: "success",
  14068. });
  14069. setTimeout(() => {
  14070. this.homeWorkLoading = false
  14071. }, 500);
  14072. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14073. data: JSON.stringify(this.myAnList),
  14074. type: "course_tool_sub" }, "success")
  14075. this.myAnList = {};
  14076. this.englishList = {};
  14077. this.englishToolIndex = 0;
  14078. this.engDialogVisible = false;
  14079. this.selectSWorks();
  14080. this.selectStudent();
  14081. })
  14082. .catch((err) => {
  14083. this.$message.error("提交失败");
  14084. console.error(err);
  14085. setTimeout(() => {
  14086. this.homeWorkLoading = false
  14087. }, 500);
  14088. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14089. data: JSON.stringify(this.myAnList),
  14090. type: "course_tool_sub" }, err)
  14091. });
  14092. },
  14093. addCourseWorksGong(i, data, tool) {
  14094. let params = [
  14095. {
  14096. uid: this.userid,
  14097. cid: this.id,
  14098. stage: this.courseType,
  14099. task: this.taskCount,
  14100. tool: i,
  14101. content: data,
  14102. type: 12,
  14103. atool: tool,
  14104. text: "",
  14105. },
  14106. ];
  14107. this.ajax
  14108. .post(this.$store.state.api + "addCourseWorks5", params)
  14109. .then((res) => {
  14110. this.$message({
  14111. message: "提交成功",
  14112. type: "success",
  14113. });
  14114. this.studyJuri[0].cover = [];
  14115. this.selectSWorks();
  14116. this.selectStudent();
  14117. })
  14118. .catch((err) => {
  14119. this.$message.error("提交失败");
  14120. console.error(err);
  14121. });
  14122. },
  14123. addCourseWorksGongTeacher(i, data, tool) {
  14124. let params = [
  14125. {
  14126. uid: this.sStudent.userid,
  14127. cid: this.id,
  14128. stage: this.courseType,
  14129. task: this.taskCount,
  14130. tool: i,
  14131. content: data,
  14132. type: 12,
  14133. atool: tool,
  14134. text: "",
  14135. },
  14136. ];
  14137. this.ajax
  14138. .post(this.$store.state.api + "addCourseWorks5", params)
  14139. .then((res) => {
  14140. this.$message({
  14141. message: "提交成功",
  14142. type: "success",
  14143. });
  14144. this.studyJuri[0].cover = [];
  14145. this.dialogVisibleWorks = false;
  14146. this.selectSWorks();
  14147. this.selectStudent();
  14148. })
  14149. .catch((err) => {
  14150. this.$message.error("提交失败");
  14151. console.error(err);
  14152. });
  14153. },
  14154. addCourseWorksGongPl(i, data, tool, type) {
  14155. let params = [
  14156. {
  14157. uid: this.sStudent.userid,
  14158. cid: this.id,
  14159. stage: this.courseType,
  14160. task: this.taskCount,
  14161. tool: i,
  14162. content: data,
  14163. type: type,
  14164. atool: tool,
  14165. text: "",
  14166. },
  14167. ];
  14168. this.ajax
  14169. .post(this.$store.state.api + "addCourseWorks5", params)
  14170. .then((res) => {
  14171. this.$message({
  14172. message: "提交成功",
  14173. type: "success",
  14174. });
  14175. this.studyJuri[0].cover = [];
  14176. this.dialogVisibleWorks = false;
  14177. this.selectSWorks();
  14178. this.selectStudent();
  14179. })
  14180. .catch((err) => {
  14181. this.$message.error("提交失败");
  14182. console.error(err);
  14183. });
  14184. },
  14185. addCourseWorksTeacher(i) {
  14186. var typesql;
  14187. if (this.sTool == 32) {
  14188. this.addCourseWorksGongTeacher(
  14189. this.toolindex,
  14190. this.studyJuri[0].cover[0].url,
  14191. this.sTool
  14192. );
  14193. return;
  14194. }
  14195. if (this.fileType === 0) {
  14196. typesql = 1;
  14197. } else if (this.fileType === 1) {
  14198. typesql = 4;
  14199. } else if (this.fileType === 2) {
  14200. typesql = 5;
  14201. } else if (this.fileType === 3) {
  14202. typesql = 12;
  14203. }
  14204. if (this.sTool == 50) {
  14205. this.addCourseWorksGongPl(
  14206. this.toolindex,
  14207. this.studyJuri[0].cover[0].url,
  14208. this.sTool,
  14209. typesql
  14210. );
  14211. return;
  14212. }
  14213. if (!this.studyJuri[0].cover[0].url) {
  14214. this.$message.error("请上传文件");
  14215. return;
  14216. }
  14217. let params = [
  14218. {
  14219. uid: this.sStudent.userid,
  14220. cid: this.id,
  14221. stage: this.courseType,
  14222. task: i,
  14223. tool: this.toolindex,
  14224. content: this.studyJuri[0].cover[0].url,
  14225. type: typesql,
  14226. ateacher: this.userid,
  14227. },
  14228. ];
  14229. this.ajax
  14230. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14231. .then((res) => {
  14232. this.$message({
  14233. message: "提交成功",
  14234. type: "success",
  14235. });
  14236. this.studyJuri[0].cover = [];
  14237. this.dialogVisibleWorks = false;
  14238. this.getCourseDetail(2);
  14239. })
  14240. .catch((err) => {
  14241. this.$message.error("提交失败");
  14242. console.error(err);
  14243. });
  14244. },
  14245. selectUploadStudent(type) {
  14246. const loading = this.$loading.service({
  14247. background: "rgba(255, 255, 255, 0.7)",
  14248. target: document.body,
  14249. });
  14250. let params = {
  14251. cid: this.uploadCid,
  14252. oid: this.oid,
  14253. cn: "",
  14254. };
  14255. this.ajax
  14256. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14257. .then((res) => {
  14258. loading.close();
  14259. var studentK = [];
  14260. if (this.isWorksS[this.toolindex].length > 0) {
  14261. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14262. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14263. }
  14264. studentK = studentK.join(",");
  14265. }
  14266. this.uploadStudentJuri = res.data[0].filter((el) => {
  14267. return studentK.indexOf(el.userid) == -1;
  14268. });
  14269. if (this.worksSName && this.worksSid) {
  14270. this.uploadStudentJuri.push({
  14271. userid: this.worksSid,
  14272. name: this.worksSName,
  14273. });
  14274. }
  14275. if (type == 1) {
  14276. this.plworkFile = [];
  14277. this.dialogVisibleSname = true;
  14278. } else if (type == 2) {
  14279. this.dialogVisiblePl = true;
  14280. }
  14281. })
  14282. .catch((err) => {
  14283. loading.close();
  14284. console.error(err);
  14285. });
  14286. },
  14287. selectPickStudent() {
  14288. const loading = this.$loading.service({
  14289. background: "rgba(255, 255, 255, 0.7)",
  14290. target: document.body,
  14291. });
  14292. let params = {
  14293. cid: this.uploadCid,
  14294. oid: this.oid,
  14295. cn: "",
  14296. };
  14297. this.ajax
  14298. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14299. .then((res) => {
  14300. loading.close();
  14301. this.uploadStudentJuri = res.data[0];
  14302. this.dialogVisiblePickPeople = true;
  14303. })
  14304. .catch((err) => {
  14305. loading.close();
  14306. console.error(err);
  14307. });
  14308. },
  14309. arrayToArray(arrayo, arrayt) {
  14310. let array1 = arrayo;
  14311. let array2 = arrayt;
  14312. let commonElements = [];
  14313. for (let i = 0; i < array1.length; i++) {
  14314. for (let j = 0; j < array2.length; j++) {
  14315. if (array1[i] === array2[j]) {
  14316. commonElements.push(array1[i]);
  14317. }
  14318. }
  14319. }
  14320. return commonElements;
  14321. },
  14322. selectWorksStudent() {
  14323. let params = {
  14324. oid: this.oid,
  14325. cid: this.courseDetail.juri,
  14326. };
  14327. this.ajax
  14328. .get(this.$store.state.api + "selectWorksStudent", params)
  14329. .then((res) => {
  14330. var a = res.data[0];
  14331. for (var i = 0; i < this.isWorksS.length; i++) {
  14332. this.noWorksS[i] = [];
  14333. var studentK = [];
  14334. if (this.isWorksS[i].length > 0) {
  14335. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14336. studentK.push(this.isWorksS[i][z].uid);
  14337. }
  14338. studentK = studentK.join(",");
  14339. for (var j = 0; j < a.length; j++) {
  14340. if (studentK.indexOf(a[j].userid) == -1) {
  14341. if (this.tcid) {
  14342. // a[j].classid.indexOf(this.tcid) != -1
  14343. if (
  14344. this.arrayToArray(
  14345. a[j].classid.split(","),
  14346. this.tcid.split(",")
  14347. ).length
  14348. ) {
  14349. this.noWorksS[i].push({
  14350. student: a[j].name,
  14351. userid: a[j].userid,
  14352. });
  14353. }
  14354. } else {
  14355. this.noWorksS[i].push({
  14356. student: a[j].name,
  14357. userid: a[j].userid,
  14358. });
  14359. }
  14360. }
  14361. }
  14362. } else {
  14363. for (var k = 0; k < a.length; k++) {
  14364. if (this.tcid) {
  14365. if (
  14366. this.arrayToArray(
  14367. a[k].classid.split(","),
  14368. this.tcid.split(",")
  14369. ).length
  14370. ) {
  14371. this.noWorksS[i].push({
  14372. student: a[k].name,
  14373. userid: a[k].userid,
  14374. });
  14375. }
  14376. } else {
  14377. this.noWorksS[i].push({
  14378. student: a[k].name,
  14379. userid: a[k].userid,
  14380. });
  14381. }
  14382. }
  14383. }
  14384. }
  14385. this.$forceUpdate();
  14386. if (
  14387. Object.keys(this.commentDetail).length &&
  14388. Object.keys(this.commentIndexJson).length &&
  14389. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14390. ) {
  14391. let a = 1;
  14392. let c = this.commentIndexJson;
  14393. if (
  14394. this.commentIndexJson.gindex ||
  14395. this.commentIndexJson.gindex === 0
  14396. ) {
  14397. for (
  14398. var i = 0;
  14399. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14400. i++
  14401. ) {
  14402. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14403. groupA: for (var k = 0; k < _el.length; k++) {
  14404. let el = _el[k];
  14405. if (el.wid == this.commentDetail.wid) {
  14406. a = 2;
  14407. this.commentOther(
  14408. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14409. this.commentIndexJson.toolIndex,
  14410. k,
  14411. this.commentIndexJson.gindex
  14412. );
  14413. break groupA;
  14414. }
  14415. }
  14416. }
  14417. if (a === 1) {
  14418. this.commentDetail = [];
  14419. this.commentIndexJson = {};
  14420. this.commentDialogVisible = false;
  14421. this.$message("此作业已被删除");
  14422. }
  14423. } else {
  14424. if (this.isGroup && this.commentIndexJson.gid) {
  14425. groupA: for (
  14426. var i = 0;
  14427. i < this.courseGroup.group.length;
  14428. i++
  14429. ) {
  14430. let _group = this.courseGroup.group[i];
  14431. if (_group.id == this.commentIndexJson.gid) {
  14432. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14433. for (var k = 0; k < _el2.length; k++) {
  14434. let el2 = _el2[k];
  14435. if (el2.wid == this.commentDetail.wid) {
  14436. a = 2;
  14437. this.commentOther(
  14438. _el2[k],
  14439. this.commentIndexJson.toolIndex,
  14440. k,
  14441. null,
  14442. this.commentIndexJson.gid
  14443. );
  14444. break groupA;
  14445. }
  14446. }
  14447. }
  14448. }
  14449. }
  14450. if (a == 1) {
  14451. for (
  14452. var i = 0;
  14453. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14454. i++
  14455. ) {
  14456. let el =
  14457. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14458. if (el.wid == this.commentDetail.wid) {
  14459. a = 2;
  14460. this.commentOther(
  14461. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14462. this.commentIndexJson.toolIndex,
  14463. i
  14464. );
  14465. break;
  14466. }
  14467. }
  14468. }
  14469. if (a === 1) {
  14470. this.commentDetail = [];
  14471. this.commentIndexJson = {};
  14472. this.commentDialogVisible = false;
  14473. this.$message("此作业已被删除");
  14474. }
  14475. }
  14476. }
  14477. })
  14478. .catch((err) => {
  14479. console.error(err);
  14480. });
  14481. },
  14482. selectStudent() {
  14483. //学生查看自己作业
  14484. let params = {
  14485. uid: this.userid,
  14486. cid: this.id,
  14487. s: this.courseType,
  14488. t: this.taskCount,
  14489. };
  14490. this.ajax
  14491. .get(this.$store.state.api + "selectStudentWorks", params)
  14492. .then((res) => {
  14493. var a =
  14494. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14495. this.taskCount
  14496. ].toolChoose;
  14497. var b = res.data[0];
  14498. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14499. var y = [
  14500. "AVI",
  14501. "NAVI",
  14502. "MPEG",
  14503. "ASF",
  14504. "MOV",
  14505. "WMV",
  14506. "3GP",
  14507. "RM",
  14508. "RMVB",
  14509. "FLV",
  14510. "F4V",
  14511. "H.264",
  14512. "H.265",
  14513. "REAL VIDEO",
  14514. "MKV",
  14515. "WebM",
  14516. "HDDVD",
  14517. "MP4",
  14518. "MPG",
  14519. "M4V",
  14520. "MGV",
  14521. "OGV",
  14522. "QTM",
  14523. "STR",
  14524. "AMC",
  14525. "DVX",
  14526. "EVO",
  14527. "DAT",
  14528. "OGG",
  14529. "OGM",
  14530. ];
  14531. for (var i = 0; i < a.length; i++) {
  14532. this.workStudent[i] = [];
  14533. for (var j = 0; j < b.length; j++) {
  14534. if (i == b[j].tool) {
  14535. if (
  14536. (b[j].type == 1 ||
  14537. b[j].type == 4 ||
  14538. b[j].type == 5 ||
  14539. b[j].type == 6 ||
  14540. b[j].type == 12 ||
  14541. b[j].type == 7) &&
  14542. a[i].tool[0] != 15 &&
  14543. a[i].tool[0] != 4 &&
  14544. a[i].tool[0] != 45 &&
  14545. a[i].tool[0] != 50 &&
  14546. a[i].tool[0] != 32 &&
  14547. a[i].tool[0] != 57 &&
  14548. a[i].tool[0] != 52 &&
  14549. a[i].tool[0] != 69
  14550. ) {
  14551. if (
  14552. c.indexOf(
  14553. b[j].content
  14554. .split(".")
  14555. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14556. ) != -1 &&
  14557. a[i].tool[0] == 16 &&
  14558. b[j].atool != 50
  14559. ) {
  14560. this.workStudent[i].push({
  14561. works: b[j].content,
  14562. sName: b[j].name,
  14563. score: b[j].score,
  14564. img: b[j].img,
  14565. type: 1,
  14566. time: b[j].time,
  14567. userid: b[j].userid,
  14568. wid: b[j].id,
  14569. });
  14570. } else if (
  14571. y.indexOf(
  14572. b[j].content
  14573. .split(".")
  14574. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14575. ) != -1 &&
  14576. a[i].tool[0] == 16 &&
  14577. b[j].atool != 50
  14578. ) {
  14579. this.workStudent[i].push({
  14580. userid: b[j].userid,
  14581. wid: b[j].id,
  14582. works: b[j].content,
  14583. sName: b[j].name,
  14584. score: b[j].score,
  14585. img: b[j].img,
  14586. type: 3,
  14587. time: b[j].time,
  14588. });
  14589. } else if (b[j].type == 6 && b[j].atool != 50) {
  14590. this.workStudent[i].push({
  14591. userid: b[j].userid,
  14592. wid: b[j].id,
  14593. works: b[j].content,
  14594. sName: b[j].name,
  14595. score: b[j].score,
  14596. img: b[j].img,
  14597. type: 4,
  14598. time: b[j].time,
  14599. });
  14600. } else if (b[j].type == 7 && b[j].atool != 50) {
  14601. this.workStudent[i].push({
  14602. userid: b[j].userid,
  14603. wid: b[j].id,
  14604. works: b[j].content,
  14605. sName: b[j].name,
  14606. score: b[j].score,
  14607. img: b[j].img,
  14608. type: 5,
  14609. time: b[j].time,
  14610. });
  14611. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14612. this.workStudent[i].push({
  14613. works: b[j].content,
  14614. sName: b[j].name,
  14615. score: b[j].score,
  14616. img: b[j].img,
  14617. type: 12,
  14618. time: b[j].time,
  14619. userid: b[j].userid,
  14620. wid: b[j].id,
  14621. });
  14622. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14623. this.workStudent[i].push({
  14624. works: b[j].content,
  14625. sName: b[j].name,
  14626. score: b[j].score,
  14627. img: b[j].img,
  14628. type: 0,
  14629. time: b[j].time,
  14630. userid: b[j].userid,
  14631. wid: b[j].id,
  14632. });
  14633. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14634. this.workStudent[i].push({
  14635. works: b[j].content,
  14636. sName: b[j].name,
  14637. score: b[j].score,
  14638. img: b[j].img,
  14639. type: 0,
  14640. time: b[j].time,
  14641. userid: b[j].userid,
  14642. wid: b[j].id,
  14643. });
  14644. }
  14645. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14646. this.workStudent[i].push({
  14647. works: b[j].content,
  14648. sName: b[j].name,
  14649. score: b[j].score,
  14650. img: b[j].img,
  14651. type: 2,
  14652. time: b[j].time,
  14653. userid: b[j].userid,
  14654. wid: b[j].id,
  14655. });
  14656. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14657. this.workStudent[i].push({
  14658. works: b[j].content,
  14659. sName: b[j].name,
  14660. score: b[j].score,
  14661. img: b[j].img,
  14662. type: 20,
  14663. time: b[j].time,
  14664. userid: b[j].userid,
  14665. wid: b[j].id,
  14666. });
  14667. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14668. //问卷
  14669. this.workStudent[i].push({
  14670. works: b[j].content,
  14671. sName: b[j].name,
  14672. score: b[j].score,
  14673. img: b[j].img,
  14674. type: 2,
  14675. time: b[j].time,
  14676. userid: b[j].userid,
  14677. wid: b[j].id,
  14678. });
  14679. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14680. //选择题
  14681. this.workStudent[i].push({
  14682. works: b[j].content,
  14683. sName: b[j].name,
  14684. score: b[j].score,
  14685. img: b[j].img,
  14686. type: 8,
  14687. time: b[j].time,
  14688. userid: b[j].userid,
  14689. wid: b[j].id,
  14690. });
  14691. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14692. //选择题
  14693. this.workStudent[i].push({
  14694. works: b[j].content,
  14695. sName: b[j].name,
  14696. score: b[j].score,
  14697. img: b[j].img,
  14698. type: 9,
  14699. time: b[j].time,
  14700. userid: b[j].userid,
  14701. wid: b[j].id,
  14702. });
  14703. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14704. //选择题
  14705. this.workStudent[i].push({
  14706. works: b[j].content,
  14707. sName: b[j].name,
  14708. score: b[j].score,
  14709. img: b[j].img,
  14710. type: 10,
  14711. time: b[j].time,
  14712. userid: b[j].userid,
  14713. wid: b[j].id,
  14714. });
  14715. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14716. //选择题
  14717. this.workStudent[i].push({
  14718. works: b[j].content,
  14719. sName: b[j].name,
  14720. score: b[j].score,
  14721. img: b[j].img,
  14722. type: 13,
  14723. time: b[j].time,
  14724. userid: b[j].userid,
  14725. wid: b[j].id,
  14726. });
  14727. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14728. //选择题
  14729. this.workStudent[i].push({
  14730. works: b[j].content,
  14731. sName: b[j].name,
  14732. score: b[j].score,
  14733. img: b[j].img,
  14734. type: 12,
  14735. time: b[j].time,
  14736. userid: b[j].userid,
  14737. wid: b[j].id,
  14738. });
  14739. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14740. //选择题
  14741. this.workStudent[i].push({
  14742. works: b[j].content,
  14743. sName: b[j].name,
  14744. score: b[j].score,
  14745. img: b[j].img,
  14746. type: 12,
  14747. time: b[j].time,
  14748. userid: b[j].userid,
  14749. wid: b[j].id,
  14750. });
  14751. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14752. //选择题
  14753. this.workStudent[i].push({
  14754. works: b[j].content,
  14755. sName: b[j].name,
  14756. score: b[j].score,
  14757. img: b[j].img,
  14758. type: 15,
  14759. time: b[j].time,
  14760. userid: b[j].userid,
  14761. wid: b[j].id,
  14762. });
  14763. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14764. //英语写作
  14765. this.workStudent[i].push({
  14766. works: b[j].content,
  14767. sName: b[j].name,
  14768. score: b[j].score,
  14769. img: b[j].img,
  14770. type: 16,
  14771. time: b[j].time,
  14772. userid: b[j].userid,
  14773. wid: b[j].id,
  14774. aiCode: b[j].aiCode,
  14775. teacherCode: b[j].teacherCode
  14776. });
  14777. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14778. //英语口语
  14779. this.workStudent[i].push({
  14780. works: b[j].content,
  14781. sName: b[j].name,
  14782. score: b[j].score,
  14783. img: b[j].img,
  14784. type: 17,
  14785. time: b[j].time,
  14786. userid: b[j].userid,
  14787. wid: b[j].id,
  14788. });
  14789. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14790. //交互视频
  14791. this.workStudent[i].push({
  14792. works: b[j].content,
  14793. sName: b[j].name,
  14794. score: b[j].score,
  14795. img: b[j].img,
  14796. type: 14,
  14797. time: b[j].time,
  14798. userid: b[j].userid,
  14799. wid: b[j].id,
  14800. });
  14801. }
  14802. }
  14803. }
  14804. }
  14805. })
  14806. .catch((err) => {
  14807. console.error(err);
  14808. });
  14809. },
  14810. openVideo(w) {
  14811. this.videoDetail = {};
  14812. this.playerOptions1.sources[0].src = w.works;
  14813. this.videoDetail = this.playerOptions1;
  14814. this.videoVisible = true;
  14815. },
  14816. isLikes(wid, uid, t, c, isLikes,sName) {
  14817. if (isLikes == false) {
  14818. let params = [
  14819. {
  14820. wid: wid,
  14821. lid: uid,
  14822. t: t,
  14823. c: c,
  14824. },
  14825. ];
  14826. this.ajax
  14827. .post(this.$store.state.api + "insertComment", params)
  14828. .then((res) => {
  14829. this.$message({
  14830. message: "点赞成功",
  14831. type: "success",
  14832. });
  14833. this.selectSWorks();
  14834. this.selectStudent();
  14835. if(this.tType!=2){
  14836. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14837. }
  14838. })
  14839. .catch((err) => {
  14840. this.$message.error("点赞失败");
  14841. console.error(err);
  14842. });
  14843. } else {
  14844. let params = {
  14845. wid: wid,
  14846. lid: uid,
  14847. type: t,
  14848. };
  14849. this.ajax
  14850. .get(this.$store.state.api + "deleteComment", params)
  14851. .then((res) => {
  14852. this.$message({
  14853. message: "取消点赞成功",
  14854. type: "success",
  14855. });
  14856. this.selectSWorks();
  14857. this.selectStudent();
  14858. })
  14859. .catch((err) => {
  14860. console.error(err);
  14861. });
  14862. }
  14863. },
  14864. deleteComment(wid) {
  14865. this.$confirm("确定删除此评论吗?", "提示", {
  14866. confirmButtonText: "确定",
  14867. cancelButtonText: "取消",
  14868. type: "warning",
  14869. })
  14870. .then(() => {
  14871. let params = {
  14872. id: wid,
  14873. };
  14874. this.ajax
  14875. .get(this.$store.state.api + "deleteComment2", params)
  14876. .then((res) => {
  14877. this.$message({
  14878. message: "删除评论成功",
  14879. type: "success",
  14880. });
  14881. this.selectSWorks();
  14882. this.selectStudent();
  14883. })
  14884. .catch((err) => {
  14885. console.error(err);
  14886. });
  14887. })
  14888. .catch(() => {});
  14889. },
  14890. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14891. this.commentIndexJson = {
  14892. toolIndex: toolIndex,
  14893. wIndex: wIndex,
  14894. gindex: gindex,
  14895. gid: gid,
  14896. };
  14897. this.commentDetail = [];
  14898. this.commentDialogVisible = true;
  14899. this.commentDetail = w;
  14900. if (w.works && w.type == 1) {
  14901. // this.pptImgUrl = "";
  14902. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14903. if (
  14904. a.indexOf(
  14905. w.works
  14906. .split(".")
  14907. [w.works.split(".").length - 1].toLocaleUpperCase()
  14908. ) != -1
  14909. ) {
  14910. let _uuurl = await this.checkLink(w.works);
  14911. console.log(_uuurl)
  14912. this.pptImgUrl =
  14913. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14914. this.showPDF = false;
  14915. } else if (
  14916. w.works
  14917. .split(".")
  14918. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14919. ) {
  14920. this.pptImgUrl = w.works;
  14921. this.showPDF = true;
  14922. }
  14923. } else if (w.works && w.type == 3) {
  14924. this.videoDetail = {};
  14925. this.playerOptions1.sources[0].src = w.works;
  14926. this.videoDetail = this.playerOptions1;
  14927. // this.videoVisible = true;
  14928. } else if (w.works && w.type == 4) {
  14929. this.eScore = JSON.parse(w.works);
  14930. this.rateJson =
  14931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14932. this.taskCount
  14933. ].toolChoose[toolIndex].rateJson;
  14934. } else if (w.works && w.type == 10) {
  14935. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14936. } else if (w.works && w.type == 13) {
  14937. this.wordJson =
  14938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14939. this.taskCount
  14940. ].toolChoose[toolIndex].wordJson;
  14941. }
  14942. },
  14943. async openScore(w, index) {
  14944. this.wScore = 0;
  14945. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14946. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14947. this.commentDetail = [];
  14948. if(w.type == 17){
  14949. this.dialogVisibleENScore = true;
  14950. }else{
  14951. this.dialogVisibleScore = true;
  14952. }
  14953. this.commentDetail = w;
  14954. if (w.works && w.type == 1) {
  14955. this.pptImgUrl = "";
  14956. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14957. if (
  14958. a.indexOf(
  14959. w.works
  14960. .split(".")
  14961. [w.works.split(".").length - 1].toLocaleUpperCase()
  14962. ) != -1
  14963. ) {
  14964. let _uuurl = await this.checkLink(w.works);
  14965. console.log(_uuurl)
  14966. this.pptImgUrl =
  14967. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14968. this.showPDF = false;
  14969. } else if (
  14970. w.works
  14971. .split(".")
  14972. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14973. ) {
  14974. this.pptImgUrl = w.works;
  14975. this.showPDF = true;
  14976. }
  14977. } else if (w.works && w.type == 3) {
  14978. this.videoDetail = {};
  14979. this.playerOptions1.sources[0].src = w.works;
  14980. this.videoDetail = this.playerOptions1;
  14981. }else if(w.type == 17){
  14982. let englishVoiceJson = {}
  14983. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14984. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14985. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14986. .toolChoose[index].englishVoiceJson
  14987. : {};
  14988. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14989. }
  14990. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14991. },
  14992. addComment(wid, uid, t,detail) {
  14993. if (this.commentText == "") {
  14994. this.$message.error("请输入评论");
  14995. return;
  14996. }
  14997. let params2 = [
  14998. {
  14999. wid: wid,
  15000. lid: uid,
  15001. t: t,
  15002. },
  15003. ];
  15004. this.ajax
  15005. .post(this.$store.state.api + "getComment", params2)
  15006. .then((res) => {
  15007. if (res.data[0].length > 0) {
  15008. this.$message.error("一个作业只能评论一条");
  15009. } else {
  15010. let params = [
  15011. {
  15012. wid: wid,
  15013. lid: uid,
  15014. t: t,
  15015. c: this.commentText,
  15016. },
  15017. ];
  15018. this.ajax
  15019. .post(this.$store.state.api + "insertComment", params)
  15020. .then((res) => {
  15021. this.$message({
  15022. message: "评论成功",
  15023. type: "success",
  15024. });
  15025. this.commentText = "";
  15026. this.selectSWorks();
  15027. this.selectStudent();
  15028. if(this.tType!=2){
  15029. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15030. }
  15031. })
  15032. .catch((err) => {
  15033. this.$message.error("评论失败");
  15034. console.error(err);
  15035. });
  15036. }
  15037. })
  15038. .catch((err) => {
  15039. // this.$message.error("评论失败");
  15040. console.error(err);
  15041. });
  15042. },
  15043. scoreWork(wid,sName) {
  15044. if (this.wScore == 0) {
  15045. this.$message.error("请评分");
  15046. return;
  15047. }
  15048. let params = [
  15049. {
  15050. wid: wid,
  15051. score: JSON.stringify({
  15052. wScore: this.wScore,
  15053. detail: this.scoreDetail,
  15054. }),
  15055. },
  15056. ];
  15057. this.ajax
  15058. .post(this.$store.state.api + "scoreWork", params)
  15059. .then((res) => {
  15060. this.$message({
  15061. message: "评分成功",
  15062. type: "success",
  15063. });
  15064. this.wScore = 0;
  15065. this.scoreDetail = "";
  15066. this.dialogVisibleScore = false;
  15067. this.selectSWorks();
  15068. this.selectStudent();
  15069. if(this.tType!=2){
  15070. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15071. }
  15072. })
  15073. .catch((err) => {
  15074. this.$message.error("评分失败");
  15075. console.error(err);
  15076. });
  15077. },
  15078. openXz(w, i) {
  15079. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15080. .taskJson[this.taskCount].toolChoose[i].selectJson
  15081. ? JSON.parse(
  15082. JSON.stringify(
  15083. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15084. this.taskCount
  15085. ].toolChoose[i].selectJson
  15086. )
  15087. )
  15088. : { url: "", select: [], answer: [] };
  15089. var a = w.works.split(",");
  15090. for (var k = 0; k < a.length; k++) {
  15091. a[k] = parseInt(a[k]);
  15092. }
  15093. this.selectAnswer = { answer: a, stu: w.sName };
  15094. this.isSelect = true;
  15095. this.dialogVisibleSelect = true;
  15096. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15097. },
  15098. openSen(w, i) {
  15099. this.sentenceList1 = JSON.parse(w.works);
  15100. this.sentenceList1.stuName = w.sName;
  15101. this.dialogVisibleSentence1 = true;
  15102. },
  15103. openPj(w, toolindex) {
  15104. this.isStar = true;
  15105. this.eScore = JSON.parse(w);
  15106. this.rateJson =
  15107. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15108. this.taskCount
  15109. ].toolChoose[toolindex].rateJson;
  15110. this.studentEvalDialogVisible = true;
  15111. },
  15112. openEnglishEva(id,i){
  15113. let params = {
  15114. wid: id
  15115. };
  15116. this.ajax
  15117. .get(this.$store.state.api + "selectEngWork", params)
  15118. .then((res) => {
  15119. this.evaEngJson.message = res.data[0][0];
  15120. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15121. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15122. .toolChoose[i].englishList;
  15123. this.engEvaDialogVisible = true;
  15124. })
  15125. .catch((err) => {
  15126. console.error(err);
  15127. });
  15128. },
  15129. deleteWorks(id) {
  15130. this.$confirm("确定删除此作业吗?", "提示", {
  15131. confirmButtonText: "确定",
  15132. cancelButtonText: "取消",
  15133. type: "warning",
  15134. })
  15135. .then(() => {
  15136. let params = [
  15137. {
  15138. id: id,
  15139. },
  15140. ];
  15141. this.ajax
  15142. .post(this.$store.state.api + "deleteCourseWork", params)
  15143. .then((res) => {
  15144. this.$message({
  15145. message: "删除成功",
  15146. type: "success",
  15147. });
  15148. this.selectStudent();
  15149. this.selectSWorks();
  15150. this.selectSLook();
  15151. })
  15152. .catch((err) => {
  15153. this.$message.error("网络异常");
  15154. console.error(err);
  15155. });
  15156. })
  15157. .catch(() => {});
  15158. },
  15159. selectSWorks(gindex) {
  15160. //教师查看全部作业
  15161. let params = {
  15162. cid: this.id,
  15163. s: this.courseType,
  15164. t: this.taskCount,
  15165. };
  15166. this.ajax
  15167. .get(this.$store.state.api + "selectSWorks", params)
  15168. .then((res) => {
  15169. var a =
  15170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15171. this.taskCount
  15172. ].toolChoose;
  15173. var b = res.data[0];
  15174. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15175. var y = [
  15176. "AVI",
  15177. "NAVI",
  15178. "MPEG",
  15179. "ASF",
  15180. "MOV",
  15181. "WMV",
  15182. "3GP",
  15183. "RM",
  15184. "RMVB",
  15185. "FLV",
  15186. "F4V",
  15187. "H.264",
  15188. "H.265",
  15189. "REAL VIDEO",
  15190. "MKV",
  15191. "WebM",
  15192. "HDDVD",
  15193. "MP4",
  15194. "MPG",
  15195. "M4V",
  15196. "MGV",
  15197. "OGV",
  15198. "QTM",
  15199. "STR",
  15200. "AMC",
  15201. "DVX",
  15202. "EVO",
  15203. "DAT",
  15204. "OGG",
  15205. "OGM",
  15206. ];
  15207. var d = res.data[1];
  15208. var e = res.data[2];
  15209. var f = res.data[3];
  15210. let _worksStudent = [];
  15211. var _worksStudent2 = [];
  15212. for (var i = 0; i < a.length; i++) {
  15213. _worksStudent[i] = [];
  15214. _worksStudent2[i] = [];
  15215. if (
  15216. !this.isCloseList[i] ||
  15217. this.isCloseList[i].isClose == undefined
  15218. ) {
  15219. this.isCloseList[i] = { isClose: 0 };
  15220. }
  15221. this.groupStudent[i] = [];
  15222. this.groupStudentUid[i] = [];
  15223. if (this.isGroup) {
  15224. for (
  15225. var groupI = 0;
  15226. groupI < this.courseGroup.group.length;
  15227. groupI++
  15228. ) {
  15229. this.courseGroup.group[groupI].works[i] = [];
  15230. }
  15231. }
  15232. this.isWorksS[i] = [];
  15233. this.checkJson[i] = [];
  15234. if (a[i].tool[0] == 49) {
  15235. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15236. this.groupStudent[i][gA] = [];
  15237. this.groupStudentUid[i][gA] = [];
  15238. _worksStudent[i][gA] = [];
  15239. _worksStudent2[i][gA] = [];
  15240. this.isCloseList[i][gA] = [];
  15241. for (var g = 0; g < f.length; g++) {
  15242. if (
  15243. f[g].ttype == 2 &&
  15244. this.tcid &&
  15245. this.arrayToArray(
  15246. (f[g].classid ? f[g].classid.split(",") : []),
  15247. this.tcid.split(",")
  15248. ).length == 0
  15249. ) {
  15250. continue;
  15251. }
  15252. let _classId = this.arrayToArray(
  15253. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15254. this.classId ? this.classId.split(",") : []
  15255. )
  15256. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15257. (f[g].classid ? f[g].classid.split(",") : []),
  15258. this.tcid.split(",")
  15259. ).length !== 0 || this.arrayToArray(
  15260. (f[g].classid ? f[g].classid.split(",") : []),
  15261. _classId
  15262. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15263. this.groupStudent[i][gA].push(f[g]);
  15264. this.groupStudentUid[i][gA].push(f[g].userid);
  15265. }
  15266. }
  15267. }
  15268. this.$forceUpdate();
  15269. }
  15270. for (var j = 0; j < b.length; j++) {
  15271. if (
  15272. b[j].ttype == 2 &&
  15273. this.tcid &&
  15274. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15275. .length == 0
  15276. ) {
  15277. continue;
  15278. }
  15279. var likesCount = 0;
  15280. var commentCount = 0;
  15281. var isLikes = false;
  15282. var commentJson = [];
  15283. var likeJson = [];
  15284. var data = b[j];
  15285. if (i == b[j].tool) {
  15286. if (data.type == 2 && a[i].tool[0] == 4) {
  15287. // if(JSON.parse(data.content)[0].anwer){
  15288. var checkL =
  15289. JSON.parse(data.content)[0].anwer instanceof Array
  15290. ? JSON.parse(data.content)[0].anwer
  15291. : JSON.parse(data.content)[0].anwer.split(",");
  15292. for (var z = 0; z < checkL.length; z++) {
  15293. if (!this.checkJson[i][z]) {
  15294. this.checkJson[i].push({
  15295. checkCount: [],
  15296. checkPerson: [],
  15297. rightPerson: [],
  15298. });
  15299. }
  15300. if (!this.checkJson[i][z].checkCount.length) {
  15301. this.checkJson[i][z].checkCount = [];
  15302. let _askItemCount = JSON.parse(data.content)[0].askJson
  15303. .askJson[z].askItem;
  15304. for (var aic = 0; aic < _askItemCount; aic++) {
  15305. this.checkJson[i][z].checkCount.push(0);
  15306. }
  15307. }
  15308. if (checkL[z] instanceof Array) {
  15309. if (
  15310. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15311. checkL[z].sort().join(",")
  15312. ) {
  15313. this.checkJson[i][z].rightPerson.push(data.name);
  15314. }
  15315. for (var q = 0; q < checkL[z].length; q++) {
  15316. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15317. ? this.checkJson[i][z].checkPerson[
  15318. parseInt(checkL[z][q])
  15319. ].push(data.name)
  15320. : (this.checkJson[i][z].checkPerson[
  15321. parseInt(checkL[z][q])
  15322. ] = [data.name]);
  15323. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15324. ? this.checkJson[i][z].checkCount[
  15325. parseInt(checkL[z][q])
  15326. ]++
  15327. : (this.checkJson[i][z].checkCount[
  15328. parseInt(checkL[z][q])
  15329. ] = 1);
  15330. }
  15331. } else {
  15332. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15333. this.checkJson[i][z].rightPerson.push(data.name);
  15334. }
  15335. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15336. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15337. ? this.checkJson[i][z].checkPerson[
  15338. parseInt(checkL[z])
  15339. ].push(data.name)
  15340. : (this.checkJson[i][z].checkPerson[
  15341. parseInt(checkL[z])
  15342. ] = [data.name]);
  15343. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15344. ? this.checkJson[i][z].checkCount[
  15345. parseInt(checkL[z])
  15346. ]++
  15347. : (this.checkJson[i][z].checkCount[
  15348. parseInt(checkL[z])
  15349. ] = 1);
  15350. }
  15351. }
  15352. }
  15353. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15354. var checkL = JSON.parse(data.content)[0].anwer;
  15355. for (var z = 0; z < checkL.length; z++) {
  15356. if (!this.checkJson[i][z]) {
  15357. this.checkJson[i].push({
  15358. checkCount: [],
  15359. checkPerson: [],
  15360. rightPerson: [],
  15361. });
  15362. }
  15363. if (!this.checkJson[i][z].checkCount.length) {
  15364. this.checkJson[i][z].checkCount = [];
  15365. let _askItemCount = JSON.parse(data.content)[0].testJson
  15366. .testJson[z].testItem;
  15367. for (var aic = 0; aic < _askItemCount; aic++) {
  15368. this.checkJson[i][z].checkCount.push(0);
  15369. }
  15370. }
  15371. if (checkL[z] instanceof Array) {
  15372. if (
  15373. JSON.parse(data.content)[0]
  15374. .testJson.testJson[z].answer.sort()
  15375. .join(",") == checkL[z].sort().join(",")
  15376. ) {
  15377. this.checkJson[i][z].rightPerson.push(data.name);
  15378. }
  15379. for (var q = 0; q < checkL[z].length; q++) {
  15380. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15381. ? this.checkJson[i][z].checkPerson[
  15382. parseInt(checkL[z][q])
  15383. ].push(data.name)
  15384. : (this.checkJson[i][z].checkPerson[
  15385. parseInt(checkL[z][q])
  15386. ] = [data.name]);
  15387. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15388. ? this.checkJson[i][z].checkCount[
  15389. parseInt(checkL[z][q])
  15390. ]++
  15391. : (this.checkJson[i][z].checkCount[
  15392. parseInt(checkL[z][q])
  15393. ] = 1);
  15394. }
  15395. } else {
  15396. if (
  15397. JSON.parse(data.content)[0].testJson.testJson[z]
  15398. .answer == checkL[z]
  15399. ) {
  15400. this.checkJson[i][z].rightPerson.push(data.name);
  15401. }
  15402. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15403. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15404. ? this.checkJson[i][z].checkPerson[
  15405. parseInt(checkL[z])
  15406. ].push(data.name)
  15407. : (this.checkJson[i][z].checkPerson[
  15408. parseInt(checkL[z])
  15409. ] = [data.name]);
  15410. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15411. ? this.checkJson[i][z].checkCount[
  15412. parseInt(checkL[z])
  15413. ]++
  15414. : (this.checkJson[i][z].checkCount[
  15415. parseInt(checkL[z])
  15416. ] = 1);
  15417. }
  15418. }
  15419. }
  15420. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15421. var checkL = JSON.parse(data.content);
  15422. for (var z = 0; z < checkL.length; z++) {
  15423. if (!this.checkJson[i][z]) {
  15424. this.checkJson[i].push({
  15425. checkCount: [],
  15426. checkPerson: [],
  15427. rightPerson: [],
  15428. });
  15429. }
  15430. this.checkJson[i][z].checkPerson.push(data.name);
  15431. if (
  15432. checkL[z].chooseSenList.toString() ==
  15433. checkL[z].rightAnswer.toString()
  15434. ) {
  15435. this.checkJson[i][z].rightPerson.push(data.name);
  15436. }
  15437. }
  15438. }
  15439. for (var k = 0; k < d.length; k++) {
  15440. //点赞
  15441. if (d[k].workId == b[j].id) {
  15442. likesCount++;
  15443. likeJson.push(d[k])
  15444. if (d[k].likesId == this.userid) {
  15445. isLikes = true;
  15446. }
  15447. }
  15448. }
  15449. for (var l = 0; l < e.length; l++) {
  15450. //评论
  15451. if (e[l].workId == b[j].id) {
  15452. if (e[l].comment != "") {
  15453. commentCount++;
  15454. commentJson.push({
  15455. commentText: e[l].comment,
  15456. commentTime: e[l].commentTime,
  15457. commentPeople: e[l].commentPeople,
  15458. userid: e[l].userid,
  15459. wid: e[l].id,
  15460. });
  15461. }
  15462. }
  15463. }
  15464. if (
  15465. (b[j].type == 1 ||
  15466. b[j].type == 4 ||
  15467. b[j].type == 5 ||
  15468. b[j].type == 6 ||
  15469. b[j].type == 12 ||
  15470. b[j].type == 7) &&
  15471. a[i].tool[0] != 15 &&
  15472. a[i].tool[0] != 4 &&
  15473. a[i].tool[0] != 45 &&
  15474. a[i].tool[0] != 50 &&
  15475. a[i].tool[0] != 32 &&
  15476. a[i].tool[0] != 57 &&
  15477. a[i].tool[0] != 52
  15478. ) {
  15479. if (
  15480. c.indexOf(
  15481. b[j].content
  15482. .split(".")
  15483. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15484. ) != -1 &&
  15485. a[i].tool[0] == 16 &&
  15486. b[j].atool != 50
  15487. ) {
  15488. let _works = {
  15489. userid: b[j].userid,
  15490. ateacher: b[j].ateacher,
  15491. wid: b[j].id,
  15492. works: b[j].content,
  15493. sName: b[j].name,
  15494. type: 1,
  15495. ttype:b[j].ttype,
  15496. time: b[j].time,
  15497. score: b[j].score,
  15498. img: b[j].img,
  15499. likesCount: likesCount,
  15500. commentCount: commentCount,
  15501. isLikes: isLikes,
  15502. commentJson: commentJson,
  15503. likeJson:likeJson
  15504. };
  15505. if (this.isGroup) {
  15506. let isGw = 1;
  15507. for (
  15508. var groupI = 0;
  15509. groupI < this.courseGroup.group.length;
  15510. groupI++
  15511. ) {
  15512. let gid = this.courseGroup.group[groupI].id;
  15513. if (
  15514. this.courseGroupStudentUid[gid].indexOf(
  15515. b[j].userid
  15516. ) != -1
  15517. ) {
  15518. isGw = 2;
  15519. this.courseGroup.group[groupI].works[i].push(_works);
  15520. break;
  15521. }
  15522. }
  15523. if (isGw == 1) {
  15524. _worksStudent[i].push(_works);
  15525. }
  15526. } else {
  15527. _worksStudent[i].push(_works);
  15528. }
  15529. _worksStudent2[i].push(_works);
  15530. this.isWorksS[i].push({
  15531. uid: b[j].userid,
  15532. sName: b[j].name,
  15533. });
  15534. } else if (
  15535. y.indexOf(
  15536. b[j].content
  15537. .split(".")
  15538. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15539. ) != -1 &&
  15540. a[i].tool[0] == 16 &&
  15541. b[j].atool != 50
  15542. ) {
  15543. let _works = {
  15544. userid: b[j].userid,
  15545. ateacher: b[j].ateacher,
  15546. wid: b[j].id,
  15547. works: b[j].content,
  15548. sName: b[j].name,
  15549. type: 3,
  15550. ttype:b[j].ttype,
  15551. time: b[j].time,
  15552. score: b[j].score,
  15553. img: b[j].img,
  15554. likesCount: likesCount,
  15555. commentCount: commentCount,
  15556. isLikes: isLikes,
  15557. commentJson: commentJson,
  15558. likeJson:likeJson
  15559. };
  15560. if (this.isGroup) {
  15561. let isGw = 1;
  15562. for (
  15563. var groupI = 0;
  15564. groupI < this.courseGroup.group.length;
  15565. groupI++
  15566. ) {
  15567. let gid = this.courseGroup.group[groupI].id;
  15568. if (
  15569. this.courseGroupStudentUid[gid].indexOf(
  15570. b[j].userid
  15571. ) != -1
  15572. ) {
  15573. isGw = 2;
  15574. this.courseGroup.group[groupI].works[i].push(_works);
  15575. break;
  15576. }
  15577. }
  15578. if (isGw == 1) {
  15579. _worksStudent[i].push(_works);
  15580. }
  15581. } else {
  15582. _worksStudent[i].push(_works);
  15583. }
  15584. _worksStudent2[i].push(_works);
  15585. this.isWorksS[i].push({
  15586. uid: b[j].userid,
  15587. sName: b[j].name,
  15588. });
  15589. } else if (b[j].type == 6 && b[j].atool != 50) {
  15590. let _works = {
  15591. userid: b[j].userid,
  15592. ateacher: b[j].ateacher,
  15593. wid: b[j].id,
  15594. works: b[j].content,
  15595. sName: b[j].name,
  15596. type: 4,
  15597. ttype:b[j].ttype,
  15598. time: b[j].time,
  15599. score: b[j].score,
  15600. img: b[j].img,
  15601. likesCount: likesCount,
  15602. commentCount: commentCount,
  15603. isLikes: isLikes,
  15604. commentJson: commentJson,
  15605. likeJson:likeJson
  15606. };
  15607. _worksStudent[i].push(_works);
  15608. _worksStudent2[i].push(_works);
  15609. this.isWorksS[i].push({
  15610. uid: b[j].userid,
  15611. sName: b[j].name,
  15612. });
  15613. } else if (b[j].type == 7 && b[j].atool != 50) {
  15614. let _work = {
  15615. userid: b[j].userid,
  15616. ateacher: b[j].ateacher,
  15617. wid: b[j].id,
  15618. works: b[j].content,
  15619. sName: b[j].name,
  15620. type: 5,
  15621. ttype:b[j].ttype,
  15622. time: b[j].time,
  15623. score: b[j].score,
  15624. img: b[j].img,
  15625. likesCount: likesCount,
  15626. commentCount: commentCount,
  15627. isLikes: isLikes,
  15628. commentJson: commentJson,
  15629. likeJson:likeJson
  15630. };
  15631. _worksStudent[i].push(_work);
  15632. _worksStudent2[i].push(_work);
  15633. this.isWorksS[i].push({
  15634. uid: b[j].userid,
  15635. sName: b[j].name,
  15636. });
  15637. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15638. let _works = {
  15639. userid: b[j].userid,
  15640. ateacher: b[j].ateacher,
  15641. wid: b[j].id,
  15642. works: b[j].content,
  15643. sName: b[j].name,
  15644. type: 12,
  15645. ttype:b[j].ttype,
  15646. time: b[j].time,
  15647. score: b[j].score,
  15648. img: b[j].img,
  15649. likesCount: likesCount,
  15650. commentCount: commentCount,
  15651. isLikes: isLikes,
  15652. commentJson: commentJson,
  15653. likeJson:likeJson
  15654. };
  15655. if (this.isGroup) {
  15656. let isGw = 1;
  15657. for (
  15658. var groupI = 0;
  15659. groupI < this.courseGroup.group.length;
  15660. groupI++
  15661. ) {
  15662. let gid = this.courseGroup.group[groupI].id;
  15663. if (
  15664. this.courseGroupStudentUid[gid].indexOf(
  15665. b[j].userid
  15666. ) != -1
  15667. ) {
  15668. isGw = 2;
  15669. this.courseGroup.group[groupI].works[i].push(_works);
  15670. break;
  15671. }
  15672. }
  15673. if (isGw == 1) {
  15674. _worksStudent[i].push(_works);
  15675. }
  15676. } else {
  15677. _worksStudent[i].push(_works);
  15678. }
  15679. _worksStudent2[i].push(_works);
  15680. this.isWorksS[i].push({
  15681. uid: b[j].userid,
  15682. sName: b[j].name,
  15683. });
  15684. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15685. let _works = {
  15686. userid: b[j].userid,
  15687. ateacher: b[j].ateacher,
  15688. wid: b[j].id,
  15689. works: b[j].content,
  15690. sName: b[j].name,
  15691. type: 0,
  15692. ttype:b[j].ttype,
  15693. time: b[j].time,
  15694. score: b[j].score,
  15695. img: b[j].img,
  15696. likesCount: likesCount,
  15697. commentCount: commentCount,
  15698. isLikes: isLikes,
  15699. commentJson: commentJson,
  15700. likeJson:likeJson
  15701. };
  15702. if (this.isGroup) {
  15703. let isGw = 1;
  15704. for (
  15705. var groupI = 0;
  15706. groupI < this.courseGroup.group.length;
  15707. groupI++
  15708. ) {
  15709. let gid = this.courseGroup.group[groupI].id;
  15710. if (
  15711. this.courseGroupStudentUid[gid].indexOf(
  15712. b[j].userid
  15713. ) != -1
  15714. ) {
  15715. isGw = 2;
  15716. this.courseGroup.group[groupI].works[i].push(_works);
  15717. break;
  15718. }
  15719. }
  15720. if (isGw == 1) {
  15721. _worksStudent[i].push(_works);
  15722. }
  15723. } else {
  15724. _worksStudent[i].push(_works);
  15725. }
  15726. _worksStudent2[i].push(_works);
  15727. this.isWorksS[i].push({
  15728. uid: b[j].userid,
  15729. sName: b[j].name,
  15730. });
  15731. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15732. let _works = {
  15733. userid: b[j].userid,
  15734. ateacher: b[j].ateacher,
  15735. wid: b[j].id,
  15736. works: b[j].content,
  15737. sName: b[j].name,
  15738. type: 0,
  15739. ttype:b[j].ttype,
  15740. time: b[j].time,
  15741. score: b[j].score,
  15742. img: b[j].img,
  15743. likesCount: likesCount,
  15744. commentCount: commentCount,
  15745. isLikes: isLikes,
  15746. commentJson: commentJson,
  15747. likeJson:likeJson
  15748. };
  15749. if (this.isGroup) {
  15750. let isGw = 1;
  15751. for (
  15752. var groupI = 0;
  15753. groupI < this.courseGroup.group.length;
  15754. groupI++
  15755. ) {
  15756. let gid = this.courseGroup.group[groupI].id;
  15757. if (
  15758. this.courseGroupStudentUid[gid].indexOf(
  15759. b[j].userid
  15760. ) != -1
  15761. ) {
  15762. isGw = 2;
  15763. this.courseGroup.group[groupI].works[i].push(_works);
  15764. break;
  15765. }
  15766. }
  15767. if (isGw == 1) {
  15768. _worksStudent[i].push(_works);
  15769. }
  15770. } else {
  15771. _worksStudent[i].push(_works);
  15772. }
  15773. _worksStudent2[i].push(_works);
  15774. this.isWorksS[i].push({
  15775. uid: b[j].userid,
  15776. sName: b[j].name,
  15777. });
  15778. }
  15779. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15780. let _works = {
  15781. userid: b[j].userid,
  15782. ateacher: b[j].ateacher,
  15783. wid: b[j].id,
  15784. works: b[j].content,
  15785. sName: b[j].name,
  15786. type: 2,
  15787. ttype:b[j].ttype,
  15788. time: b[j].time,
  15789. score: b[j].score,
  15790. img: b[j].img,
  15791. likesCount: likesCount,
  15792. commentCount: commentCount,
  15793. isLikes: isLikes,
  15794. commentJson: commentJson,
  15795. likeJson:likeJson
  15796. };
  15797. if (this.isGroup) {
  15798. let isGw = 1;
  15799. for (
  15800. var groupI = 0;
  15801. groupI < this.courseGroup.group.length;
  15802. groupI++
  15803. ) {
  15804. let gid = this.courseGroup.group[groupI].id;
  15805. if (
  15806. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15807. -1
  15808. ) {
  15809. isGw = 2;
  15810. this.courseGroup.group[groupI].works[i].push(_works);
  15811. break;
  15812. }
  15813. }
  15814. if (isGw == 1) {
  15815. _worksStudent[i].push(_works);
  15816. }
  15817. } else {
  15818. _worksStudent[i].push(_works);
  15819. }
  15820. _worksStudent2[i].push(_works);
  15821. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15822. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15823. let _works = {
  15824. userid: b[j].userid,
  15825. ateacher: b[j].ateacher,
  15826. wid: b[j].id,
  15827. works: b[j].content,
  15828. sName: b[j].name,
  15829. type: 20,
  15830. ttype:b[j].ttype,
  15831. time: b[j].time,
  15832. score: b[j].score,
  15833. img: b[j].img,
  15834. likesCount: likesCount,
  15835. commentCount: commentCount,
  15836. isLikes: isLikes,
  15837. commentJson: commentJson,
  15838. likeJson:likeJson
  15839. };
  15840. if (this.isGroup) {
  15841. let isGw = 1;
  15842. for (
  15843. var groupI = 0;
  15844. groupI < this.courseGroup.group.length;
  15845. groupI++
  15846. ) {
  15847. let gid = this.courseGroup.group[groupI].id;
  15848. if (
  15849. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15850. -1
  15851. ) {
  15852. isGw = 2;
  15853. this.courseGroup.group[groupI].works[i].push(_works);
  15854. break;
  15855. }
  15856. }
  15857. if (isGw == 1) {
  15858. _worksStudent[i].push(_works);
  15859. }
  15860. } else {
  15861. _worksStudent[i].push(_works);
  15862. }
  15863. _worksStudent2[i].push(_works);
  15864. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15865. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15866. //问卷
  15867. let _work = {
  15868. userid: b[j].userid,
  15869. ateacher: b[j].ateacher,
  15870. wid: b[j].id,
  15871. works: b[j].content,
  15872. sName: b[j].name,
  15873. type: 2,
  15874. ttype:b[j].ttype,
  15875. time: b[j].time,
  15876. score: b[j].score,
  15877. img: b[j].img,
  15878. likesCount: likesCount,
  15879. commentCount: commentCount,
  15880. isLikes: isLikes,
  15881. commentJson: commentJson,
  15882. likeJson:likeJson
  15883. };
  15884. _worksStudent[i].push(_work);
  15885. _worksStudent2[i].push(_work);
  15886. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15887. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15888. //选择题
  15889. let _work = {
  15890. userid: b[j].userid,
  15891. ateacher: b[j].ateacher,
  15892. wid: b[j].id,
  15893. works: b[j].content,
  15894. sName: b[j].name,
  15895. type: 8,
  15896. ttype:b[j].ttype,
  15897. time: b[j].time,
  15898. score: b[j].score,
  15899. img: b[j].img,
  15900. likesCount: likesCount,
  15901. commentCount: commentCount,
  15902. isLikes: isLikes,
  15903. commentJson: commentJson,
  15904. likeJson:likeJson
  15905. };
  15906. _worksStudent[i].push(_work);
  15907. _worksStudent2[i].push(_work);
  15908. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15909. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15910. //选择题
  15911. let _work = {
  15912. userid: b[j].userid,
  15913. ateacher: b[j].ateacher,
  15914. wid: b[j].id,
  15915. works: b[j].content,
  15916. sName: b[j].name,
  15917. type: 9,
  15918. ttype:b[j].ttype,
  15919. time: b[j].time,
  15920. score: b[j].score,
  15921. img: b[j].img,
  15922. likesCount: likesCount,
  15923. commentCount: commentCount,
  15924. isLikes: isLikes,
  15925. commentJson: commentJson,
  15926. likeJson:likeJson
  15927. };
  15928. _worksStudent[i].push(_work);
  15929. _worksStudent2[i].push(_work);
  15930. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15931. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15932. //选择题
  15933. let _work = {
  15934. userid: b[j].userid,
  15935. ateacher: b[j].ateacher,
  15936. wid: b[j].id,
  15937. works: b[j].content,
  15938. sName: b[j].name,
  15939. type: 10,
  15940. ttype:b[j].ttype,
  15941. time: b[j].time,
  15942. score: b[j].score,
  15943. img: b[j].img,
  15944. likesCount: likesCount,
  15945. commentCount: commentCount,
  15946. isLikes: isLikes,
  15947. commentJson: commentJson,
  15948. likeJson:likeJson
  15949. };
  15950. _worksStudent[i].push(_work);
  15951. _worksStudent2[i].push(_work);
  15952. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15953. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15954. //选择题
  15955. let _work = {
  15956. userid: b[j].userid,
  15957. ateacher: b[j].ateacher,
  15958. wid: b[j].id,
  15959. works: b[j].content,
  15960. sName: b[j].name,
  15961. type: 13,
  15962. ttype:b[j].ttype,
  15963. time: b[j].time,
  15964. score: b[j].score,
  15965. img: b[j].img,
  15966. likesCount: likesCount,
  15967. commentCount: commentCount,
  15968. isLikes: isLikes,
  15969. commentJson: commentJson,
  15970. likeJson:likeJson
  15971. };
  15972. _worksStudent[i].push(_work);
  15973. _worksStudent2[i].push(_work);
  15974. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15975. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15976. //选择题
  15977. let _work = {
  15978. userid: b[j].userid,
  15979. ateacher: b[j].ateacher,
  15980. wid: b[j].id,
  15981. works: b[j].content,
  15982. sName: b[j].name,
  15983. type: 16,
  15984. ttype:b[j].ttype,
  15985. time: b[j].time,
  15986. score: b[j].score,
  15987. img: b[j].img,
  15988. likesCount: likesCount,
  15989. commentCount: commentCount,
  15990. isLikes: isLikes,
  15991. commentJson: commentJson,
  15992. aiCode: b[j].aiCode,
  15993. teacherCode: b[j].teacherCode,
  15994. likeJson:likeJson
  15995. };
  15996. _worksStudent[i].push(_work);
  15997. _worksStudent2[i].push(_work);
  15998. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15999. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16000. //英语口语
  16001. let _work = {
  16002. userid: b[j].userid,
  16003. ateacher: b[j].ateacher,
  16004. wid: b[j].id,
  16005. works: b[j].content,
  16006. sName: b[j].name,
  16007. type: 17,
  16008. ttype:b[j].ttype,
  16009. time: b[j].time,
  16010. score: b[j].score,
  16011. img: b[j].img,
  16012. likesCount: likesCount,
  16013. commentCount: commentCount,
  16014. isLikes: isLikes,
  16015. commentJson: commentJson,
  16016. likeJson:likeJson
  16017. };
  16018. _worksStudent[i].push(_work);
  16019. _worksStudent2[i].push(_work);
  16020. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16021. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16022. //交互视频
  16023. let _work = {
  16024. userid: b[j].userid,
  16025. ateacher: b[j].ateacher,
  16026. wid: b[j].id,
  16027. works: b[j].content,
  16028. sName: b[j].name,
  16029. type: 14,
  16030. ttype:b[j].ttype,
  16031. time: b[j].time,
  16032. score: b[j].score,
  16033. img: b[j].img,
  16034. likesCount: likesCount,
  16035. commentCount: commentCount,
  16036. isLikes: isLikes,
  16037. commentJson: commentJson,
  16038. likeJson:likeJson
  16039. };
  16040. _worksStudent[i].push(_work);
  16041. _worksStudent2[i].push(_work);
  16042. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16043. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16044. let _gindex = JSON.parse(b[j].content);
  16045. if (
  16046. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16047. b[j].userid
  16048. ) != -1
  16049. ) {
  16050. let _work = {
  16051. userid: b[j].userid,
  16052. ateacher: b[j].ateacher,
  16053. wid: b[j].id,
  16054. works: _gindex.url,
  16055. sName: b[j].name,
  16056. type: _gindex.type,
  16057. ttype:b[j].ttype,
  16058. time: b[j].time,
  16059. score: b[j].score,
  16060. img: b[j].img,
  16061. likesCount: likesCount,
  16062. commentCount: commentCount,
  16063. isLikes: isLikes,
  16064. commentJson: commentJson,
  16065. likeJson:likeJson
  16066. };
  16067. _worksStudent[i][_gindex.groupIndex].push(_work);
  16068. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16069. }
  16070. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16071. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16072. let _work = {
  16073. userid: b[j].userid,
  16074. ateacher: b[j].ateacher,
  16075. wid: b[j].id,
  16076. works: b[j].content,
  16077. sName: b[j].name ? b[j].name : b[j].userid,
  16078. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16079. ttype:b[j].ttype,
  16080. time: b[j].time,
  16081. score: b[j].score,
  16082. img: b[j].img,
  16083. likesCount: likesCount,
  16084. commentCount: commentCount,
  16085. isLikes: isLikes,
  16086. commentJson: commentJson,
  16087. likeJson:likeJson
  16088. };
  16089. _worksStudent[i].push(_work);
  16090. _worksStudent2[i].push(_work);
  16091. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16092. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16093. let _work = {
  16094. userid: b[j].userid,
  16095. ateacher: b[j].ateacher,
  16096. wid: b[j].id,
  16097. works: b[j].content,
  16098. sName: b[j].name ? b[j].name : b[j].userid,
  16099. type: 12,
  16100. ttype:b[j].ttype,
  16101. time: b[j].time,
  16102. score: b[j].score,
  16103. img: b[j].img,
  16104. likesCount: likesCount,
  16105. commentCount: commentCount,
  16106. isLikes: isLikes,
  16107. commentJson: commentJson,
  16108. likeJson:likeJson
  16109. };
  16110. _worksStudent[i].push(_work);
  16111. _worksStudent2[i].push(_work);
  16112. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16113. } else if (
  16114. a[i].tool[0] == 57 &&
  16115. b[j].atool == 57 &&
  16116. b[j].type == 12
  16117. ) {
  16118. let _work = {
  16119. userid: b[j].userid,
  16120. ateacher: b[j].ateacher,
  16121. wid: b[j].id,
  16122. works: b[j].content,
  16123. sName: b[j].name ? b[j].name : b[j].userid,
  16124. type: 12,
  16125. ttype:b[j].ttype,
  16126. time: b[j].time,
  16127. score: b[j].score,
  16128. img: b[j].img,
  16129. likesCount: likesCount,
  16130. commentCount: commentCount,
  16131. isLikes: isLikes,
  16132. commentJson: commentJson,
  16133. likeJson:likeJson
  16134. };
  16135. _worksStudent[i].push(_work);
  16136. _worksStudent2[i].push(_work);
  16137. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16138. } else if (
  16139. a[i].tool[0] == 57 &&
  16140. b[j].atool == 57 &&
  16141. b[j].type == 15
  16142. ) {
  16143. let _work = {
  16144. userid: b[j].userid,
  16145. ateacher: b[j].ateacher,
  16146. wid: b[j].id,
  16147. works: b[j].content,
  16148. sName: b[j].name ? b[j].name : b[j].userid,
  16149. type: 15,
  16150. ttype:b[j].ttype,
  16151. time: b[j].time,
  16152. score: b[j].score,
  16153. img: b[j].img,
  16154. likesCount: likesCount,
  16155. commentCount: commentCount,
  16156. isLikes: isLikes,
  16157. commentJson: commentJson,
  16158. likeJson:likeJson
  16159. };
  16160. _worksStudent[i].push(_work);
  16161. _worksStudent2[i].push(_work);
  16162. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16163. }
  16164. }
  16165. }
  16166. if (_worksStudent[i] && _worksStudent[i].length) {
  16167. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16168. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16169. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16170. var scoreA = parseFloat(jscoreA);
  16171. var scoreB = parseFloat(jscoreB);
  16172. if (scoreA == scoreB) {
  16173. return b.likesCount - a.likesCount;
  16174. }
  16175. return scoreB - scoreA;
  16176. });
  16177. if (this.isGroup) {
  16178. for (
  16179. var groupI = 0;
  16180. groupI < this.courseGroup.group.length;
  16181. groupI++
  16182. ) {
  16183. this.courseGroup.group[groupI].works[i] =
  16184. this.courseGroup.group[groupI].works[i].sort(function (
  16185. a,
  16186. b
  16187. ) {
  16188. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16189. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16190. var scoreA = parseFloat(jscoreA);
  16191. var scoreB = parseFloat(jscoreB);
  16192. if (scoreA == scoreB) {
  16193. return b.likesCount - a.likesCount;
  16194. }
  16195. return scoreB - scoreA;
  16196. });
  16197. }
  16198. }
  16199. }
  16200. }
  16201. this.timeWorkList = _worksStudent2;
  16202. for (var i = 0; i < a.length; i++) {
  16203. for (var j = 0; j < b.length; j++) {
  16204. var data = b[j];
  16205. if (i == b[j].tool) {
  16206. if (data.type == 2 || data.type == 8) {
  16207. for (var z = 0; z < this.checkJson[i].length; z++) {
  16208. this.checkJson[i][z].checkPerent = [];
  16209. this.checkJson[i][z].right = Math.round(
  16210. (this.checkJson[i][z].rightPerson.length /
  16211. parseInt(_worksStudent[i].length)) *
  16212. 100
  16213. );
  16214. let aaaa = this.checkJson[i][z];
  16215. for (
  16216. var k = 0;
  16217. k < this.checkJson[i][z].checkCount.length;
  16218. k++
  16219. ) {
  16220. this.checkJson[i][z].checkPerent.push(
  16221. Math.round(
  16222. (this.checkJson[i][z].checkCount[k] /
  16223. parseInt(_worksStudent[i].length)) *
  16224. 100
  16225. )
  16226. );
  16227. }
  16228. }
  16229. } else if (data.type == 9) {
  16230. for (var z = 0; z < this.checkJson[i].length; z++) {
  16231. this.checkJson[i][z].checkPerent = [];
  16232. this.checkJson[i][z].right = Math.round(
  16233. (this.checkJson[i][z].rightPerson.length /
  16234. this.checkJson[i][z].checkPerson.length) *
  16235. 100
  16236. );
  16237. }
  16238. }
  16239. }
  16240. }
  16241. }
  16242. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16243. this.joinGroup(gindex);
  16244. }
  16245. this.worksStudent = _worksStudent;
  16246. this.selectWorksStudent();
  16247. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16248. this.$nextTick(()=>{
  16249. setTimeout(()=>{
  16250. setTimeout(()=>{
  16251. this.panToolHeight('tool-'+ci);
  16252. }, 500)
  16253. }, 0)
  16254. })
  16255. }
  16256. })
  16257. .catch((err) => {
  16258. console.error(err);
  16259. });
  16260. },
  16261. pngToWhiteBg(file) {
  16262. const _file = file;
  16263. let read = new FileReader();
  16264. read.readAsDataURL(file); // 文件转base64
  16265. return new Promise((resolve, reject) => {
  16266. read.onload = (e) => {
  16267. let img = new Image();
  16268. img.src = e.target.result;
  16269. img.onload = async () => {
  16270. // 生成canvas
  16271. let canvas = document.createElement("canvas");
  16272. let context = canvas.getContext("2d");
  16273. // 绘制图片到canvas上
  16274. canvas.width = img.width;
  16275. canvas.height = img.height;
  16276. // 在canvas绘制前填充白色背景
  16277. context.fillStyle = "#fff";
  16278. context.fillRect(0, 0, canvas.width, canvas.height);
  16279. context.drawImage(img, 0, 0);
  16280. let base64 = canvas.toDataURL(file["type"], 1);
  16281. let newFile = this.dataUrlToFile(base64, _file);
  16282. resolve(newFile);
  16283. };
  16284. };
  16285. });
  16286. },
  16287. dataUrlToFile(dataurl, file) {
  16288. let arr = dataurl.split(","),
  16289. mime = arr[0].match(/:(.*?);/)[1],
  16290. bstr = atob(arr[1]),
  16291. n = bstr.length,
  16292. u8arr = new Uint8Array(n);
  16293. while (n--) {
  16294. u8arr[n] = bstr.charCodeAt(n);
  16295. }
  16296. // return new Blob([u8arr], { type: mime });
  16297. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16298. type: mime,
  16299. });
  16300. },
  16301. async beforeUpload1(event, type, i) {
  16302. // this.$message.success('进入上传')
  16303. var file = "";
  16304. if (type == 5) {
  16305. file = event;
  16306. } else {
  16307. file = event.target.files[0];
  16308. }
  16309. var credentials = {
  16310. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16311. secretAccessKey: "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",
  16312. }; //秘钥形式的登录上传
  16313. window.AWS.config.update(credentials);
  16314. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16315. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16316. var _this = this;
  16317. _this.progress = 0;
  16318. _this.proVisible = true;
  16319. _this.isFinishSize = 0;
  16320. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16321. var b = [
  16322. "DOC",
  16323. "DOCX",
  16324. "DOCM",
  16325. "DOTM",
  16326. "DOTX",
  16327. "PPTX",
  16328. "PPSX",
  16329. "PPT",
  16330. "PPS",
  16331. "PPTM",
  16332. "POTM",
  16333. "PPAM",
  16334. "POTX",
  16335. "PPSM",
  16336. ];
  16337. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16338. var photoA = [
  16339. "BMP",
  16340. "GIF",
  16341. "PNG",
  16342. "JPEG",
  16343. "JPEG",
  16344. "JPG",
  16345. "TIF",
  16346. "PCX",
  16347. "TGA",
  16348. "EXIF",
  16349. "FPX",
  16350. "SVG",
  16351. "APNG",
  16352. ];
  16353. // if (
  16354. // b.indexOf(
  16355. // file.name
  16356. // .split(".")
  16357. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16358. // ) != -1
  16359. // ) {
  16360. // if (file.size / 1024 / 1024 > 10) {
  16361. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16362. // return;
  16363. // }
  16364. // } else if (
  16365. // excelA.indexOf(
  16366. // file.name
  16367. // .split(".")
  16368. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16369. // ) != "-1"
  16370. // ) {
  16371. // if (file.size / 1024 / 1024 > 5) {
  16372. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16373. // return;
  16374. // }
  16375. // }
  16376. if (
  16377. photoA.indexOf(
  16378. file.name
  16379. .split(".")
  16380. [file.name.split(".").length - 1].toLocaleUpperCase()
  16381. ) != -1 &&
  16382. type != 4
  16383. ) {
  16384. // const blob = await imageConversion.compress(file, 0.8)
  16385. file = await this.pngToWhiteBg(file);
  16386. const blob = await imageConversion.compressAccurately(file, 256);
  16387. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16388. file = new File([blob], file.name, { type: file.type });
  16389. }
  16390. if (file) {
  16391. var params = {
  16392. Key:
  16393. file.name.split(".")[0] +
  16394. new Date().getTime() +
  16395. "." +
  16396. file.name.split(".")[file.name.split(".").length - 1],
  16397. ContentType: file.type,
  16398. Body: file,
  16399. "Access-Control-Allow-Credentials": "*",
  16400. ACL: "public-read",
  16401. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16402. var options = {
  16403. // partSize: 2048 * 1024 * 1024,
  16404. partSize: 1024 * 1024 * 1024,
  16405. queueSize: 2,
  16406. leavePartsOnError: true,
  16407. };
  16408. bucket
  16409. .upload(params, options)
  16410. .on("httpUploadProgress", function (evt) {
  16411. //这里可以写进度条
  16412. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16413. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16414. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16415. })
  16416. .send(function (err, data) {
  16417. _this.progress = 100;
  16418. _this.isFinishSize = _this.isAllSize;
  16419. setTimeout(() => {
  16420. _this.proVisible = false;
  16421. }, 1000);
  16422. if (err) {
  16423. var a = _this.$refs.upload1.uploadFiles;
  16424. a.splice(a.length - 1, a.length);
  16425. _this.$message.error("上传失败");
  16426. } else {
  16427. // _this.$message.success('上传成功')
  16428. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16429. var c = [
  16430. "AVI",
  16431. "NAVI",
  16432. "MPEG",
  16433. "ASF",
  16434. "MOV",
  16435. "WMV",
  16436. "3GP",
  16437. "RM",
  16438. "RMVB",
  16439. "FLV",
  16440. "F4V",
  16441. "H.264",
  16442. "H.265",
  16443. "REAL VIDEO",
  16444. "MKV",
  16445. "WebM",
  16446. "HDDVD",
  16447. "MP4",
  16448. "MPG",
  16449. "M4V",
  16450. "MGV",
  16451. "OGV",
  16452. "QTM",
  16453. "STR",
  16454. "AMC",
  16455. "DVX",
  16456. "EVO",
  16457. "DAT",
  16458. "OGG",
  16459. "OGM",
  16460. ];
  16461. if (type == 1) {
  16462. _this.studyJuri[0].cover.push({
  16463. name: file.name,
  16464. url: data.Location,
  16465. uid: file.uid,
  16466. });
  16467. if (
  16468. c.indexOf(
  16469. _this.studyJuri[0].cover[0].url
  16470. .split(".")
  16471. [
  16472. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16473. ].toLocaleUpperCase()
  16474. ) != -1
  16475. ) {
  16476. _this.fileType = 2;
  16477. } else if (
  16478. b.indexOf(
  16479. _this.studyJuri[0].cover[0].url
  16480. .split(".")
  16481. [
  16482. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16483. ].toLocaleUpperCase()
  16484. ) != -1
  16485. ) {
  16486. _this.fileType = 1;
  16487. } else if (
  16488. photoA.indexOf(
  16489. _this.studyJuri[0].cover[0].url
  16490. .split(".")
  16491. [
  16492. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16493. ].toLocaleUpperCase()
  16494. ) != -1
  16495. ) {
  16496. _this.fileType = 0;
  16497. } else {
  16498. _this.fileType = 3;
  16499. }
  16500. _this.imgChange(null, null, type);
  16501. } else if (type == 2) {
  16502. _this.upToolImg = data.Location;
  16503. _this.imgChange(null, null, type);
  16504. _this.addCourseWorks(i);
  16505. } else if (type == 4) {
  16506. _this.addPz("3", data.Location);
  16507. } else if (type == 5) {
  16508. _this.addImgDrawImG(data.Location);
  16509. } else if (type == 6) {
  16510. var _ftype = 1;
  16511. if (
  16512. c.indexOf(
  16513. data.Location.split(".")[
  16514. data.Location.split(".").length - 1
  16515. ].toLocaleUpperCase()
  16516. ) != -1
  16517. ) {
  16518. _ftype = 5;
  16519. } else if (
  16520. b.indexOf(
  16521. data.Location.split(".")[
  16522. data.Location.split(".").length - 1
  16523. ].toLocaleUpperCase()
  16524. ) != -1
  16525. ) {
  16526. _ftype = 4;
  16527. } else {
  16528. _ftype = 1;
  16529. }
  16530. _this.plworkFile.push({
  16531. name: file.name,
  16532. url: data.Location,
  16533. uid: file.uid,
  16534. fileType: _ftype,
  16535. username:
  16536. _this.plworkFile.length > 10
  16537. ? _this.plworkFile.length + 1
  16538. : "0" + (_this.plworkFile.length + 1),
  16539. });
  16540. } else if (type == 7) {
  16541. _this.addCourseWorksGong(i, data.Location, 32);
  16542. } else if (type == 8) {
  16543. _this.addCourseWorksGong(i, data.Location, 57);
  16544. }
  16545. _this.imgChange(null, null, type);
  16546. console.log(data.Location);
  16547. // _this.$message.success('上传成功'+data.Location)
  16548. }
  16549. });
  16550. }
  16551. },
  16552. async beforeUpload3(event, type, i) {
  16553. // this.$message.success('进入上传')
  16554. let file = "";
  16555. let cfindex2 = 0;
  16556. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16557. file = event.target.files[cfindex];
  16558. var credentials = {
  16559. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16560. secretAccessKey: "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",
  16561. }; //秘钥形式的登录上传
  16562. window.AWS.config.update(credentials);
  16563. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16564. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16565. var _this = this;
  16566. // _this.progress = 0;
  16567. _this.proVisible2 = true;
  16568. var b = [
  16569. "DOC",
  16570. "DOCX",
  16571. "DOCM",
  16572. "DOTM",
  16573. "DOTX",
  16574. "PPTX",
  16575. "PPSX",
  16576. "PPT",
  16577. "PPS",
  16578. "PPTM",
  16579. "POTM",
  16580. "PPAM",
  16581. "POTX",
  16582. "PPSM",
  16583. ];
  16584. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16585. var photoA = [
  16586. "BMP",
  16587. "GIF",
  16588. "PNG",
  16589. "JPEG",
  16590. "JPG",
  16591. "TIF",
  16592. "PCX",
  16593. "TGA",
  16594. "EXIF",
  16595. "FPX",
  16596. "SVG",
  16597. "APNG",
  16598. ];
  16599. if (
  16600. photoA.indexOf(
  16601. file.name
  16602. .split(".")
  16603. [file.name.split(".").length - 1].toLocaleUpperCase()
  16604. ) != -1 &&
  16605. type != 4
  16606. ) {
  16607. // const blob = await imageConversion.compress(file, 0.8)
  16608. file = await this.pngToWhiteBg(file);
  16609. const blob = await imageConversion.compressAccurately(file, 256);
  16610. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16611. file = new File([blob], file.name, { type: file.type });
  16612. }
  16613. if (file) {
  16614. var params = {
  16615. Key:
  16616. file.name.split(".")[0] +
  16617. new Date().getTime() +
  16618. "." +
  16619. file.name.split(".")[file.name.split(".").length - 1],
  16620. ContentType: file.type,
  16621. Body: file,
  16622. "Access-Control-Allow-Credentials": "*",
  16623. ACL: "public-read",
  16624. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16625. var options = {
  16626. // partSize: 2048 * 1024 * 1024,
  16627. partSize: 1024 * 1024 * 1024,
  16628. queueSize: 2,
  16629. leavePartsOnError: true,
  16630. };
  16631. bucket
  16632. .upload(params, options)
  16633. .on("httpUploadProgress", function (evt) {
  16634. //这里可以写进度条
  16635. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16636. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16637. })
  16638. .send(function (err, data) {
  16639. // _this.progress = 100;
  16640. cfindex2++;
  16641. setTimeout(() => {
  16642. if (
  16643. cfindex2 == event.target.files.length - 1 ||
  16644. cfindex2 > event.target.files.length - 1
  16645. ) {
  16646. _this.proVisible2 = false;
  16647. }
  16648. }, 1000);
  16649. if (err) {
  16650. var a = _this.$refs.upload1.uploadFiles;
  16651. a.splice(a.length - 1, a.length);
  16652. _this.$message.error("上传失败");
  16653. } else {
  16654. // _this.$message.success('上传成功')
  16655. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16656. var c = [
  16657. "AVI",
  16658. "NAVI",
  16659. "MPEG",
  16660. "ASF",
  16661. "MOV",
  16662. "WMV",
  16663. "3GP",
  16664. "RM",
  16665. "RMVB",
  16666. "FLV",
  16667. "F4V",
  16668. "H.264",
  16669. "H.265",
  16670. "REAL VIDEO",
  16671. "MKV",
  16672. "WebM",
  16673. "HDDVD",
  16674. "MP4",
  16675. "MPG",
  16676. "M4V",
  16677. "MGV",
  16678. "OGV",
  16679. "QTM",
  16680. "STR",
  16681. "AMC",
  16682. "DVX",
  16683. "EVO",
  16684. "DAT",
  16685. "OGG",
  16686. "OGM",
  16687. ];
  16688. if (type == 1) {
  16689. _this.studyJuri[0].cover.push({
  16690. name: file.name,
  16691. url: data.Location,
  16692. uid: file.uid,
  16693. });
  16694. if (
  16695. c.indexOf(
  16696. _this.studyJuri[0].cover[0].url
  16697. .split(".")
  16698. [
  16699. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16700. ].toLocaleUpperCase()
  16701. ) != -1
  16702. ) {
  16703. _this.fileType = 2;
  16704. } else if (
  16705. b.indexOf(
  16706. _this.studyJuri[0].cover[0].url
  16707. .split(".")
  16708. [
  16709. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16710. ].toLocaleUpperCase()
  16711. ) != -1
  16712. ) {
  16713. _this.fileType = 1;
  16714. } else {
  16715. _this.fileType = 0;
  16716. }
  16717. _this.imgChange(null, null, type);
  16718. } else if (type == 2) {
  16719. _this.upToolImg = data.Location;
  16720. _this.imgChange(null, null, type);
  16721. _this.addCourseWorks(i);
  16722. } else if (type == 4) {
  16723. _this.addPz("3", data.Location);
  16724. } else if (type == 5) {
  16725. _this.addImgDrawImG(data.Location);
  16726. } else if (type == 6) {
  16727. var _ftype = 1;
  16728. if (
  16729. c.indexOf(
  16730. data.Location.split(".")[
  16731. data.Location.split(".").length - 1
  16732. ].toLocaleUpperCase()
  16733. ) != -1
  16734. ) {
  16735. _ftype = 5;
  16736. } else if (
  16737. b.indexOf(
  16738. data.Location.split(".")[
  16739. data.Location.split(".").length - 1
  16740. ].toLocaleUpperCase()
  16741. ) != -1
  16742. ) {
  16743. _ftype = 4;
  16744. } else {
  16745. _ftype = 1;
  16746. }
  16747. _this.plworkFile.push({
  16748. name: file.name,
  16749. url: data.Location,
  16750. uid: file.uid,
  16751. fileType: _ftype,
  16752. username:
  16753. _this.plworkFile.length + 1 > 9
  16754. ? _this.plworkFile.length + 1
  16755. : "0" + (_this.plworkFile.length + 1),
  16756. });
  16757. }
  16758. _this.imgChange(null, null, type);
  16759. console.log(data.Location);
  16760. // _this.$message.success('上传成功'+data.Location)
  16761. }
  16762. });
  16763. }
  16764. }
  16765. },
  16766. beforeUpload2(event, type) {
  16767. var file = event.target.files[0];
  16768. var credentials = {
  16769. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16770. secretAccessKey: "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",
  16771. }; //秘钥形式的登录上传
  16772. window.AWS.config.update(credentials);
  16773. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16774. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16775. var _this = this;
  16776. _this.progress = 0;
  16777. _this.proVisible = true;
  16778. if (file) {
  16779. var params = {
  16780. Key:
  16781. file.name.split(".")[0] +
  16782. new Date().getTime() +
  16783. "." +
  16784. file.name.split(".")[file.name.split(".").length - 1],
  16785. ContentType: file.type,
  16786. Body: file,
  16787. "Access-Control-Allow-Credentials": "*",
  16788. ACL: "public-read",
  16789. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16790. var options = {
  16791. partSize: 2048 * 1024 * 1024,
  16792. queueSize: 2,
  16793. leavePartsOnError: true,
  16794. };
  16795. bucket
  16796. .upload(params, options)
  16797. .on("httpUploadProgress", function (evt) {
  16798. //这里可以写进度条
  16799. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16800. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16801. })
  16802. .send(function (err, data) {
  16803. _this.progress = 100;
  16804. setTimeout(() => {
  16805. _this.proVisible = false;
  16806. }, 1000);
  16807. if (err) {
  16808. var a = _this.$refs.upload1.uploadFiles;
  16809. a.splice(a.length - 1, a.length);
  16810. _this.$message.error("上传失败");
  16811. } else {
  16812. if (type == 2) {
  16813. _this.studyJuri[0].upVedio.push({
  16814. name: file.name,
  16815. url: data.Location,
  16816. uid: file.uid,
  16817. });
  16818. _this.imgChange(null, null, type);
  16819. } else if (type == 3) {
  16820. _this.studyJuri[0].upFile.push({
  16821. name: file.name,
  16822. url: data.Location,
  16823. uid: file.uid,
  16824. });
  16825. _this.imgChange(null, null, type);
  16826. }
  16827. console.log(data.Location);
  16828. }
  16829. });
  16830. }
  16831. },
  16832. allScrell() {
  16833. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16834. },
  16835. nextOrpreSteps(t) {
  16836. if (this.IsFollow && this.tType == 2) {
  16837. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16838. return;
  16839. }
  16840. var b = this.chapInfoList.length - 1;
  16841. if (t == 0) {
  16842. if (this.courseType == 0) {
  16843. if (this.taskCount == 0) {
  16844. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16845. if (this.IsLookOpen) {
  16846. if (
  16847. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16848. ) {
  16849. if (
  16850. this.courseDetail.userid != this.userid &&
  16851. (!this.courseDetail.course_teacher ||
  16852. (this.courseDetail.course_teacher &&
  16853. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16854. ) {
  16855. this.$message.error("任务未解锁");
  16856. } else {
  16857. this.$message.error("上一任务未解锁");
  16858. }
  16859. return;
  16860. }
  16861. }
  16862. this.navList[this.courseType].isOpen = false;
  16863. this.courseType = b;
  16864. this.taskCount =
  16865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16866. .length - 1;
  16867. this.navList[this.courseType].isOpen = true;
  16868. } else {
  16869. this.taskCount--;
  16870. }
  16871. } else {
  16872. if (this.taskCount == 0) {
  16873. this.navList[this.courseType].isOpen = false;
  16874. this.courseType--;
  16875. this.taskCount =
  16876. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16877. .length - 1;
  16878. this.navList[this.courseType].isOpen = true;
  16879. } else {
  16880. this.taskCount--;
  16881. }
  16882. }
  16883. } else {
  16884. if (this.courseType == b) {
  16885. if (
  16886. this.taskCount ==
  16887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16888. 1
  16889. ) {
  16890. this.navList[this.courseType].isOpen = false;
  16891. this.courseType = 0;
  16892. this.taskCount = 0;
  16893. this.navList[this.courseType].isOpen = true;
  16894. } else {
  16895. var bbb = parseInt(this.taskCount) + 1;
  16896. if (
  16897. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16898. .isLook &&
  16899. this.courseDetail.userid != this.userid &&
  16900. (!this.courseDetail.course_teacher ||
  16901. (this.courseDetail.course_teacher &&
  16902. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16903. this.IsLookOpen
  16904. ) {
  16905. this.$message.error("任务未解锁");
  16906. return;
  16907. }
  16908. this.taskCount++;
  16909. if (this.IsLookOpen) {
  16910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16911. this.taskCount
  16912. ].isLook = true;
  16913. this.addCourseState(3);
  16914. }
  16915. }
  16916. } else {
  16917. if (
  16918. this.taskCount ==
  16919. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16920. 1
  16921. ) {
  16922. var bbb = parseInt(this.courseType) + 1;
  16923. if (
  16924. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16925. this.courseDetail.userid != this.userid &&
  16926. (!this.courseDetail.course_teacher ||
  16927. (this.courseDetail.course_teacher &&
  16928. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16929. this.IsLookOpen
  16930. ) {
  16931. this.$message.error("任务未解锁");
  16932. return;
  16933. }
  16934. this.navList[this.courseType].isOpen = false;
  16935. this.courseType++;
  16936. this.taskCount = 0;
  16937. this.navList[this.courseType].isOpen = true;
  16938. } else {
  16939. var bbb = parseInt(this.taskCount) + 1;
  16940. if (
  16941. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16942. .isLook &&
  16943. this.courseDetail.userid != this.userid &&
  16944. (!this.courseDetail.course_teacher ||
  16945. (this.courseDetail.course_teacher &&
  16946. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16947. this.IsLookOpen
  16948. ) {
  16949. this.$message.error("任务未解锁");
  16950. return;
  16951. }
  16952. this.taskCount++;
  16953. }
  16954. if (this.IsLookOpen) {
  16955. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16956. this.taskCount
  16957. ].isLook = true;
  16958. this.addCourseState(3);
  16959. }
  16960. }
  16961. // if (
  16962. // this.taskCount ==
  16963. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16964. // ) {
  16965. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16966. // } else {
  16967. // this.taskCount++;
  16968. // }
  16969. }
  16970. document.scrollingElement.scrollTop = 0;
  16971. // this.showType = 7;
  16972. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16973. // if (this.vedio[this.taskCount].length > 0) {
  16974. // var a =
  16975. // document.getElementsByClassName("box_course")[this.taskCount]
  16976. // .offsetHeight;
  16977. // document.getElementsByClassName("vedioList")[
  16978. // this.taskCount
  16979. // ].style.height = a + "px";
  16980. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16981. // a - 40 + "px";
  16982. // }
  16983. this.isNoHomeWork = false;
  16984. (this.studyJuri = [
  16985. {
  16986. content: "",
  16987. cover: [],
  16988. upVedio: [],
  16989. upFile: [],
  16990. },
  16991. ]),
  16992. (this.radio = []);
  16993. this.isClickNav = "";
  16994. this.selectPz();
  16995. this.getHomeWork();
  16996. this.getCourseDetail(2);
  16997. this.$forceUpdate();
  16998. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16999. this.setCTask();
  17000. }
  17001. },
  17002. openTask(s, n, i) {
  17003. if (this.IsFollow && this.tType == 2) {
  17004. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17005. return;
  17006. }
  17007. if (this.IsLookOpen &&
  17008. this.courseDetail.userid != this.userid &&
  17009. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17010. if (
  17011. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17012. this.courseDetail.userid != this.userid &&
  17013. (!this.courseDetail.course_teacher ||
  17014. (this.courseDetail.course_teacher &&
  17015. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17016. ) {
  17017. this.$message.error("任务未解锁");
  17018. return;
  17019. }
  17020. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17021. if (
  17022. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17023. .isLook
  17024. ) {
  17025. this.$message.error("上一任务未解锁");
  17026. return;
  17027. }
  17028. } else if (s > this.courseType) {
  17029. if (n > 0) {
  17030. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17031. this.$message.error("上一任务未解锁");
  17032. return;
  17033. }
  17034. } else {
  17035. if (
  17036. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17037. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17038. ].isLook
  17039. ) {
  17040. this.$message.error("上一任务未解锁");
  17041. return;
  17042. }
  17043. }
  17044. }
  17045. }
  17046. if (this.navList[s].task[n].isOpen == true) {
  17047. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17048. return;
  17049. }
  17050. let flag = this.courseType==s;
  17051. this.courseType = s;
  17052. this.navId = i;
  17053. this.taskCount = n;
  17054. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17055. this.navList[this.courseType].task[this.taskCount].isOpen =
  17056. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17057. if (this.IsLookOpen) {
  17058. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17059. this.taskCount
  17060. ].isLook = true;
  17061. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17062. this.addCourseState(3,yym);
  17063. }
  17064. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17065. this.isCloseList[ci].isClose = 0;
  17066. this.isCloseList[ci].isCloseBoolean = false;
  17067. this.$nextTick(()=>{
  17068. setTimeout(()=>{
  17069. setTimeout(()=>{
  17070. this.panToolHeight('tool-'+ci);
  17071. }, 0)
  17072. }, 0)
  17073. })
  17074. }
  17075. // this.showType = 7;
  17076. this.isNoHomeWork = false;
  17077. (this.studyJuri = [
  17078. {
  17079. content: "",
  17080. cover: [],
  17081. upVedio: [],
  17082. upFile: [],
  17083. },
  17084. ]),
  17085. (this.radio = []);
  17086. document.scrollingElement.scrollTop = 0;
  17087. // setTimeout(() => {
  17088. // let a = document.getElementById(i);
  17089. // if (a.offsetTop - 110 == 0) {
  17090. // window.scrollTo(0, 0);
  17091. // } else {
  17092. // window.scrollTo(0, a.offsetTop);
  17093. // }
  17094. // }, 0);
  17095. for (var z = 0; z < this.navList.length; z++) {
  17096. for (var q = 0; q < this.navList[z].task.length; q++) {
  17097. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17098. this.navList[z].task[q].tool[w].isTool = false;
  17099. }
  17100. }
  17101. }
  17102. this.selectPz();
  17103. this.getHomeWork();
  17104. this.getCourseDetail(2);
  17105. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17106. this.setCTask();
  17107. }
  17108. if(flag){
  17109. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17110. }else{
  17111. 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>`)
  17112. }
  17113. },
  17114. get(i) {
  17115. if (this.IsFollow && this.tType == 2) {
  17116. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17117. return;
  17118. }
  17119. // for(var k=0;k<this.navList.length;k++){
  17120. // this.navList[k].isOpen = false;
  17121. // }
  17122. // this.navList[i].isOpen = true;
  17123. this.navList[i].isOpen = !this.navList[i].isOpen;
  17124. if (this.navList[i].isOpen) {
  17125. this.openTask(i, 0, i + "-0");
  17126. }
  17127. },
  17128. addQuestion() {
  17129. this.answerList.push({
  17130. answerTitle: this.answerQ,
  17131. answer: this.questionAnswer,
  17132. });
  17133. let params = [
  17134. {
  17135. uid: this.userid,
  17136. cid: this.id,
  17137. stage: this.courseType,
  17138. task: this.taskCount,
  17139. tool: this.toolindex,
  17140. content: JSON.stringify(this.answerList),
  17141. type: 3,
  17142. },
  17143. ];
  17144. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17145. this.homeWorkLoading = true
  17146. this.ajax
  17147. .post(this.$store.state.api + "addCourseWorks", params)
  17148. .then((res) => {
  17149. this.$message({
  17150. message: "提交成功",
  17151. type: "success",
  17152. });
  17153. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17154. setTimeout(() => {
  17155. this.homeWorkLoading = false
  17156. }, 500);
  17157. this.answerList = [];
  17158. this.answerDialogVisible = false;
  17159. this.selectStudent();
  17160. this.selectSWorks();
  17161. this.selectSLook();
  17162. })
  17163. .catch((err) => {
  17164. this.$message.error("提交失败");
  17165. console.error(err);
  17166. setTimeout(() => {
  17167. this.homeWorkLoading = false
  17168. }, 500);
  17169. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17170. });
  17171. },
  17172. addQuestionTeacher() {
  17173. this.answerList.push({
  17174. answerTitle: this.answerQ,
  17175. answer: this.questionAnswer,
  17176. });
  17177. let params = [
  17178. {
  17179. uid: this.sStudent.userid,
  17180. cid: this.id,
  17181. stage: this.courseType,
  17182. task: this.taskCount,
  17183. tool: this.toolindex,
  17184. content: JSON.stringify(this.answerList),
  17185. type: 3,
  17186. ateacher: this.userid,
  17187. },
  17188. ];
  17189. this.ajax
  17190. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17191. .then((res) => {
  17192. this.$message({
  17193. message: "提交成功",
  17194. type: "success",
  17195. });
  17196. this.answerList = [];
  17197. this.questionAnswer = "";
  17198. this.answerDialogVisibleTeacher = false;
  17199. this.selectStudent();
  17200. this.selectSWorks();
  17201. this.selectSLook();
  17202. })
  17203. .catch((err) => {
  17204. this.$message.error("提交失败");
  17205. console.error(err);
  17206. });
  17207. },
  17208. refreshCourse() {
  17209. // window.location.reload();
  17210. this.navList = [];
  17211. this.getCourseDetail(1);
  17212. },
  17213. getCourseDetail(type, gindex) {
  17214. let loading;
  17215. if (type != 2) {
  17216. loading = this.$loading.service({
  17217. background: "rgba(255, 255, 255, 0.7)",
  17218. target: document.querySelector(".student_table"),
  17219. });
  17220. }
  17221. this.downLoading = false
  17222. // this.navList[0].isOpen = false;
  17223. // this.navList[this.courseType].isOpen = true;
  17224. // this.courseType = this.courseTypeLine;
  17225. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17226. let params = {
  17227. courseId: this.id,
  17228. };
  17229. this.ajax
  17230. .get(this.$store.state.api + "selectCourseDetail3", params)
  17231. .then((res) => {
  17232. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17233. if (type != 2) {
  17234. loading.close();
  17235. if (
  17236. this.courseType >
  17237. JSON.parse(res.data[0][0].chapters).length - 1
  17238. ) {
  17239. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17240. }
  17241. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17242. .chapterInfo[0].taskJson;
  17243. var b = [
  17244. "AVI",
  17245. "NAVI",
  17246. "MPEG",
  17247. "ASF",
  17248. "MOV",
  17249. "WMV",
  17250. "3GP",
  17251. "RM",
  17252. "RMVB",
  17253. "FLV",
  17254. "F4V",
  17255. "H.264",
  17256. "H.265",
  17257. "REAL VIDEO",
  17258. "MKV",
  17259. "WebM",
  17260. "HDDVD",
  17261. "MP4",
  17262. "MPG",
  17263. "M4V",
  17264. "MGV",
  17265. "OGV",
  17266. "QTM",
  17267. "STR",
  17268. "AMC",
  17269. "DVX",
  17270. "EVO",
  17271. "DAT",
  17272. "OGG",
  17273. "OGM",
  17274. "MP3",
  17275. ];
  17276. let _chapterData = [];
  17277. for (var i = 0; i < a.length; i++) {
  17278. var c = a[i].chapterData;
  17279. this.vedio[i] = [];
  17280. this.textList[i] = [];
  17281. this.lineList[i] = [];
  17282. this.chapToolList[i] = [];
  17283. this.file[i] = [];
  17284. this.fileC[i] = [];
  17285. _chapterData[i] = c.filter((el) => {
  17286. return el.type != 12;
  17287. });
  17288. this.fileC[i] = c.filter((el) => {
  17289. return el.type == 12;
  17290. });
  17291. if (this.tType == 2) {
  17292. if (this.fileC[i].length) {
  17293. let yym1 = this.fileC[i].filter(e=>{
  17294. if(!converter(e.name).includes(converter("教案"))){
  17295. return e
  17296. }
  17297. })
  17298. this.fileC[i] = yym1
  17299. }
  17300. }
  17301. // else if (c[j].type == 12) {
  17302. // this.fileC[i].push(c[j]);
  17303. // }
  17304. for (var j = 0; j < c.length; j++) {
  17305. if (c[j].type == 7) {
  17306. this.chapToolList[i].push(c[j]);
  17307. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17308. this.lineList[i].push(c[j]);
  17309. } else if (c[j].type == 6) {
  17310. this.textList[i].push(c[j]);
  17311. } else {
  17312. if (
  17313. b.indexOf(
  17314. c[j].url
  17315. .split(".")
  17316. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17317. ) != -1
  17318. ) {
  17319. this.vedio[i].push(c[j]);
  17320. } else {
  17321. this.file[i].push(c[j]);
  17322. }
  17323. }
  17324. }
  17325. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17326. d.sources[0].src =
  17327. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17328. this.playerO[i] = d;
  17329. }
  17330. this.courseDetail = res.data[0][0];
  17331. if(this.tType == 2){
  17332. this.tcid = this.arrayToArray(
  17333. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17334. this.classId ? this.classId.split(",") : []
  17335. ).join(",");
  17336. }else{
  17337. this.tcid = this.arrayToArray(
  17338. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17339. this.tcid2 ? this.tcid2.split(",") : []
  17340. ).join(",");
  17341. }
  17342. this.evalua = res.data[0][0].evaId;
  17343. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17344. this.courseType
  17345. ];
  17346. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17347. if (this.tcid && res.data[1].length) {
  17348. let _inviteA = [];
  17349. for (var ik = 0; ik < res.data[1].length; ik++) {
  17350. _inviteA.push({
  17351. cid: res.data[1][ik].classid,
  17352. ic: res.data[1][ik].code,
  17353. });
  17354. }
  17355. for (var ik = 0; ik < _inviteA.length; ik++) {
  17356. if (
  17357. this.arrayToArray(
  17358. _inviteA[ik].cid.split(","),
  17359. this.tcid.split(",")
  17360. ).length
  17361. ) {
  17362. this.inviteCode = _inviteA[ik].ic;
  17363. break;
  17364. }
  17365. }
  17366. }
  17367. for (var l = 0; l < this.chapInfoList.length; l++) {
  17368. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17369. for (var m = 0; m < w.length; m++) {
  17370. w[m].id = l + "-" + m;
  17371. }
  17372. }
  17373. let taskCount = 0;
  17374. if (
  17375. _chapterData[taskCount].length &&
  17376. _chapterData[taskCount][0].type == 2
  17377. ) {
  17378. this.showType = 0;
  17379. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17380. } else {
  17381. if (_chapterData[taskCount].length > 0) {
  17382. let _url = _chapterData[taskCount][0].url;
  17383. if (
  17384. _chapterData[taskCount][0].type == 8 ||
  17385. _chapterData[taskCount][0].type == 14 ||
  17386. _chapterData[taskCount][0].type == 15
  17387. ) {
  17388. this.showType = 2;
  17389. if (
  17390. _url.indexOf("https://") == -1 &&
  17391. _url.indexOf("http://") == -1
  17392. ) {
  17393. _url = "https://" + _url;
  17394. }
  17395. this.pptImgUrl1 = _url;
  17396. } else if (_chapterData[taskCount][0].type == 3) {
  17397. if (
  17398. _url
  17399. .split(".")
  17400. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17401. ) {
  17402. this.showType = 3;
  17403. this.pptImgUrl1 = _url;
  17404. } else if (
  17405. this.isAssetTypeAnImage(
  17406. _url
  17407. .split(".")
  17408. [_url.split(".").length - 1].toLocaleLowerCase()
  17409. )
  17410. ) {
  17411. this.showType = 4;
  17412. this.pptImgUrl1 = _url;
  17413. } else {
  17414. this.showType = 2;
  17415. this.pptImgUrl1 =
  17416. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17417. encodeURIComponent(_url);
  17418. }
  17419. } else if (_chapterData[taskCount][0].type == 13) {
  17420. this.showType = 4;
  17421. this.pptImgUrl1 = _url;
  17422. } else if (_chapterData[taskCount][0].type == 6) {
  17423. this.showType = 1;
  17424. this.text = this.textList[taskCount][0];
  17425. } else if (_chapterData[taskCount][0].type == 16) {
  17426. this.showType = 16;
  17427. this.pptImgUrl1 = _url;
  17428. }
  17429. }
  17430. }
  17431. this.isClickNav = 0;
  17432. if (
  17433. !_chapterData[taskCount].length ||
  17434. _chapterData[taskCount][0].type == 12
  17435. ) {
  17436. this.isClickNav = "";
  17437. this.showType = "";
  17438. }
  17439. if (this.tType == 2) {
  17440. _chapterData.forEach((e,i)=>{
  17441. if (e.length) {
  17442. let yym = e.filter(k=>{
  17443. if(!converter(k.name).includes(converter("教案"))){
  17444. return k
  17445. }
  17446. })
  17447. _chapterData[i] = yym
  17448. }
  17449. })
  17450. }
  17451. this.vChapterData = _chapterData;
  17452. } else {
  17453. // this.showType = 0;
  17454. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17455. .chapterInfo[0].taskJson;
  17456. var b = [
  17457. "AVI",
  17458. "NAVI",
  17459. "MPEG",
  17460. "ASF",
  17461. "MOV",
  17462. "WMV",
  17463. "3GP",
  17464. "RM",
  17465. "RMVB",
  17466. "FLV",
  17467. "F4V",
  17468. "H.264",
  17469. "H.265",
  17470. "REAL VIDEO",
  17471. "MKV",
  17472. "WebM",
  17473. "HDDVD",
  17474. "MP4",
  17475. "MPG",
  17476. "M4V",
  17477. "MGV",
  17478. "OGV",
  17479. "QTM",
  17480. "STR",
  17481. "AMC",
  17482. "DVX",
  17483. "EVO",
  17484. "DAT",
  17485. "OGG",
  17486. "OGM",
  17487. "MP3",
  17488. ];
  17489. let _chapterData = [];
  17490. for (var i = 0; i < a.length; i++) {
  17491. var c = a[i].chapterData;
  17492. this.vedio[i] = [];
  17493. this.textList[i] = [];
  17494. this.lineList[i] = [];
  17495. this.chapToolList[i] = [];
  17496. this.file[i] = [];
  17497. this.fileC[i] = [];
  17498. _chapterData[i] = c.filter((el) => {
  17499. return el.type != 12;
  17500. });
  17501. this.fileC[i] = c.filter((el) => {
  17502. return el.type == 12;
  17503. });
  17504. if (this.tType == 2) {
  17505. if (this.fileC[i].length) {
  17506. let yym1 = this.fileC[i].filter(e=>{
  17507. if(!converter(e.name).includes(converter("教案"))){
  17508. return e
  17509. }
  17510. })
  17511. this.fileC[i] = yym1
  17512. }
  17513. }
  17514. for (var j = 0; j < c.length; j++) {
  17515. if (c[j].type == 7) {
  17516. this.chapToolList[i].push(c[j]);
  17517. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17518. this.lineList[i].push(c[j]);
  17519. } else if (c[j].type == 6) {
  17520. this.textList[i].push(c[j]);
  17521. } else {
  17522. if (
  17523. b.indexOf(
  17524. c[j].url
  17525. .split(".")
  17526. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17527. ) != -1
  17528. ) {
  17529. this.vedio[i].push(c[j]);
  17530. } else {
  17531. this.file[i].push(c[j]);
  17532. }
  17533. }
  17534. }
  17535. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17536. d.sources[0].src =
  17537. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17538. this.playerO[i] = d;
  17539. }
  17540. let taskCount = 0;
  17541. if (
  17542. _chapterData[taskCount].length &&
  17543. _chapterData[taskCount][0].type == 2
  17544. ) {
  17545. // this.showType = 0;
  17546. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17547. } else {
  17548. if (_chapterData[taskCount].length > 0) {
  17549. let _url = _chapterData[taskCount][0].url;
  17550. if (
  17551. _chapterData[taskCount][0].type == 8 ||
  17552. _chapterData[taskCount][0].type == 14||
  17553. _chapterData[taskCount][0].type == 15
  17554. ) {
  17555. // this.showType = 2;
  17556. if (
  17557. _url.indexOf("https://") == -1 &&
  17558. _url.indexOf("http://") == -1
  17559. ) {
  17560. _url = "https://" + _url;
  17561. }
  17562. // this.pptImgUrl1 = _url;
  17563. } else if (_chapterData[taskCount][0].type == 3) {
  17564. if (
  17565. _url
  17566. .split(".")
  17567. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17568. ) {
  17569. // this.showType = 3;
  17570. // this.pptImgUrl1 = _url;
  17571. } else if (
  17572. this.isAssetTypeAnImage(
  17573. _url
  17574. .split(".")
  17575. [_url.split(".").length - 1].toLocaleLowerCase()
  17576. )
  17577. ) {
  17578. // this.showType = 4;
  17579. // this.pptImgUrl1 = _url;
  17580. } else {
  17581. // this.showType = 2;
  17582. // this.pptImgUrl1 =
  17583. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17584. // encodeURIComponent(_url);
  17585. }
  17586. } else if (_chapterData[taskCount][0].type == 13) {
  17587. // this.showType = 4;
  17588. // this.pptImgUrl1 = _url;
  17589. } else if (_chapterData[taskCount][0].type == 6) {
  17590. this.showType = 1;
  17591. this.text = this.textList[taskCount][0];
  17592. } else if (_chapterData[taskCount][0].type == 16) {
  17593. this.showType = 16;
  17594. this.pptImgUrl1 = _url;
  17595. }
  17596. }
  17597. }
  17598. this.isClickNav = 0;
  17599. if (
  17600. !_chapterData[taskCount].length ||
  17601. _chapterData[taskCount][0].type == 12
  17602. ) {
  17603. this.isClickNav = "";
  17604. // this.showType = "";
  17605. }
  17606. if (this.tType == 2) {
  17607. _chapterData.forEach((e,i)=>{
  17608. if (e.length) {
  17609. let yym = e.filter(k=>{
  17610. if(!converter(k.name).includes(converter("教案"))){
  17611. return k
  17612. }
  17613. })
  17614. _chapterData[i] = yym
  17615. }
  17616. })
  17617. }
  17618. this.vChapterData = _chapterData;
  17619. this.$forceUpdate();
  17620. }
  17621. // else {
  17622. // this.courseDetail = res.data[0][0];
  17623. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17624. // }
  17625. let _this = this;
  17626. if (_this.timer) {
  17627. clearInterval(_this.timer);
  17628. _this.timer = null;
  17629. }
  17630. if (_this.tcid) {
  17631. _this.getCourseGroup(gindex);
  17632. } else {
  17633. _this.selectSWorks(gindex);
  17634. }
  17635. _this.selectStudent();
  17636. _this.selectSLook();
  17637. _this.getPick();
  17638. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17639. // _this.setCTask();
  17640. // }
  17641. if (_this.dialogVisibleGroup) {
  17642. _this.groupJson =
  17643. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17644. _this.taskCount
  17645. ].toolChoose[_this.toolindex].groupJson;
  17646. }
  17647. _this.$nextTick(() => {
  17648. setTimeout(() => {
  17649. _this.checkEva();
  17650. }, 1000);
  17651. });
  17652. _this.timer = setInterval(function () {
  17653. // _this.getCourseDetail(2);
  17654. if (_this.tcid) {
  17655. _this.getCourseGroup();
  17656. } else {
  17657. _this.selectSWorks();
  17658. }
  17659. _this.selectStudent();
  17660. _this.selectSLook();
  17661. _this.getPick();
  17662. // _this.getSplitScreenData();//获取分屏数据
  17663. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17664. // _this.setCTask();
  17665. // }
  17666. if (_this.dialogVisibleGroup) {
  17667. _this.groupJson =
  17668. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17669. _this.taskCount
  17670. ].toolChoose[_this.toolindex].groupJson;
  17671. }
  17672. if (_this.tType == 4 || _this.ispzType == 4) {
  17673. _this.selectPz();
  17674. }
  17675. }, 5000);
  17676. if (_this.timer2 == null) {
  17677. _this.timer2 = setInterval(()=> {
  17678. _this.getSplitScreenData();//获取分屏数据
  17679. }, 5000);
  17680. }
  17681. _this.$nextTick(function () {
  17682. setTimeout(() => {
  17683. // var a =
  17684. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17685. // document.getElementsByClassName("vedioList")[0].style.height =
  17686. // a + "px";
  17687. // document.getElementsByClassName("navBox")[0].style.height =
  17688. // a - 40 + "px";
  17689. // if (_this.vedio[_this.taskCount].length > 0) {
  17690. // _this.vedioTime = [];
  17691. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17692. // _this.vedioTime[i] = document.getElementsByClassName(
  17693. // "vjs-duration-display"
  17694. // )[i].textContent;
  17695. // }
  17696. // }
  17697. }, 1000);
  17698. });
  17699. })
  17700. .catch((err) => {
  17701. loading.close();
  17702. console.error(err);
  17703. });
  17704. },
  17705. getCourseGroup(gindex) {
  17706. let params = {
  17707. cid: this.id,
  17708. classid: this.tcid ? this.tcid : "1",
  17709. };
  17710. this.ajax
  17711. .get(this.$store.state.api + "getCourseGroup", params)
  17712. .then((res) => {
  17713. if (res.data && res.data[0].length) {
  17714. if (!this.isGroup) {
  17715. let courseGroup = JSON.parse(res.data[0][0].group);
  17716. courseGroup.group = courseGroup.group.filter((el) => {
  17717. el.works = [];
  17718. return el;
  17719. });
  17720. if (courseGroup.isopen == 2) {
  17721. this.isGroup = false;
  17722. this.selectSWorks(gindex);
  17723. return;
  17724. }
  17725. this.courseGroup = courseGroup;
  17726. let groupPerson = res.data[1];
  17727. let group = JSON.parse(res.data[0][0].group).group;
  17728. let courseGroupStudent = {};
  17729. let courseGroupStudentUid = {};
  17730. for (var i = 0; i < group.length; i++) {
  17731. courseGroupStudent[group[i].id] = [];
  17732. courseGroupStudentUid[group[i].id] = [];
  17733. for (var j = 0; j < groupPerson.length; j++) {
  17734. if (groupPerson[j].groupCid == group[i].id) {
  17735. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17736. courseGroupStudentUid[group[i].id].push(
  17737. groupPerson[j].userid
  17738. );
  17739. }
  17740. }
  17741. }
  17742. this.courseGroupStudent = courseGroupStudent;
  17743. this.courseGroupStudentUid = courseGroupStudentUid;
  17744. }
  17745. if (this.courseGroup.isopen == 2) {
  17746. this.isGroup = false;
  17747. } else {
  17748. this.isGroup = true;
  17749. }
  17750. this.selectSWorks(gindex);
  17751. } else {
  17752. this.selectSWorks(gindex);
  17753. this.isGroup = false;
  17754. }
  17755. })
  17756. .catch((err) => {
  17757. // this.$message.error("网络不佳");
  17758. console.error(err);
  17759. });
  17760. },
  17761. setOperationTime() {
  17762. let _this = this;
  17763. if (_this.opertimer) {
  17764. clearInterval(_this.opertimer);
  17765. _this.opertimer = null;
  17766. }
  17767. _this.opertimer = setInterval(() => {
  17768. _this.setoTime("600");
  17769. }, 600000);
  17770. },
  17771. setoTime(time) {
  17772. let params = [
  17773. {
  17774. uid: this.userid,
  17775. cid: this.id,
  17776. type: "2",
  17777. time: time,
  17778. },
  17779. ];
  17780. this.ajax
  17781. .post(this.$store.state.api + "addOperationTimeT2", params)
  17782. .then((res) => {})
  17783. .catch((err) => {
  17784. console.error(err);
  17785. });
  17786. },
  17787. addPz(type, content) {
  17788. if (type == "1" && this.pzConText == "") {
  17789. this.$message.error("评论不能为空!");
  17790. return;
  17791. }
  17792. let params = [
  17793. {
  17794. cid: this.id,
  17795. uid: this.userid,
  17796. s: this.courseType,
  17797. t: this.taskCount,
  17798. c: type == "1" ? this.pzConText : content,
  17799. type: type,
  17800. },
  17801. ];
  17802. this.ajax
  17803. .post(this.$store.state.api + "addPz2", params)
  17804. .then((res) => {
  17805. this.$message({
  17806. message: "添加成功",
  17807. type: "success",
  17808. });
  17809. this.pzConText = "";
  17810. this.addPzDialog = false;
  17811. this.selectPz();
  17812. if(this.tType!=2){
  17813. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17814. }
  17815. })
  17816. .catch((err) => {
  17817. this.$message.error("添加失败");
  17818. console.error(err);
  17819. });
  17820. },
  17821. setReplyIndex(id, i) {
  17822. this.replyIndex = i;
  17823. this.replyPid = id;
  17824. this.replyDialogVisible = true;
  17825. },
  17826. addHf() {
  17827. if (this.reply == "") {
  17828. this.$message.error("回复不能为空!");
  17829. return;
  17830. }
  17831. let params = [
  17832. {
  17833. cid: this.id,
  17834. uid: this.userid,
  17835. s: this.courseType,
  17836. t: this.taskCount,
  17837. type: "1",
  17838. ct: 2,
  17839. pid: this.replyPid,
  17840. c: this.reply,
  17841. },
  17842. ];
  17843. this.ajax
  17844. .post(this.$store.state.api + "addHf", params)
  17845. .then((res) => {
  17846. this.reply = "";
  17847. this.$message({
  17848. message: "回复成功",
  17849. type: "success",
  17850. });
  17851. this.replyDialogVisible = false;
  17852. this.selectPz();
  17853. })
  17854. .catch((err) => {
  17855. this.$message.error("回复失败");
  17856. console.error(err);
  17857. });
  17858. },
  17859. deletePz(id) {
  17860. this.$confirm("确定删除此评论吗?", "提示", {
  17861. confirmButtonText: "确定",
  17862. cancelButtonText: "取消",
  17863. type: "warning",
  17864. })
  17865. .then(() => {
  17866. let params = [
  17867. {
  17868. id: id,
  17869. },
  17870. ];
  17871. this.ajax
  17872. .post(this.$store.state.api + "deletePz", params)
  17873. .then((res) => {
  17874. this.$message({
  17875. message: "删除成功",
  17876. type: "success",
  17877. });
  17878. this.selectPz();
  17879. })
  17880. .catch((err) => {
  17881. this.$message.error("网络异常");
  17882. console.error(err);
  17883. });
  17884. })
  17885. .catch(() => {});
  17886. },
  17887. deleteReply(id) {
  17888. this.$confirm("确定删除此回复吗?", "提示", {
  17889. confirmButtonText: "确定",
  17890. cancelButtonText: "取消",
  17891. type: "warning",
  17892. })
  17893. .then(() => {
  17894. let params = [
  17895. {
  17896. id: id,
  17897. },
  17898. ];
  17899. this.ajax
  17900. .post(this.$store.state.api + "deleteReply", params)
  17901. .then((res) => {
  17902. this.$message({
  17903. message: "删除成功",
  17904. type: "success",
  17905. });
  17906. this.selectPz();
  17907. })
  17908. .catch((err) => {
  17909. this.$message.error("网络异常");
  17910. console.error(err);
  17911. });
  17912. })
  17913. .catch(() => {});
  17914. },
  17915. setPz() {
  17916. if (this.ispzType == 4) {
  17917. this.ispzType = 0;
  17918. this.pzDialog = false;
  17919. return;
  17920. }
  17921. this.ispzType = 4;
  17922. this.pzDialog = true;
  17923. this.selectPz();
  17924. },
  17925. selectPz() {
  17926. let params = {
  17927. cid: this.id,
  17928. s: this.courseType,
  17929. t: this.taskCount,
  17930. type: this.pzStype,
  17931. uid: this.userid,
  17932. };
  17933. this.ajax
  17934. .get(this.$store.state.api + "selectPzListType", params)
  17935. .then((res) => {
  17936. this.pzList = res.data[0];
  17937. var a = res.data[1];
  17938. for (var i = 0; i < a.length; i++) {
  17939. for (var j = 0; j < this.pzList.length; j++) {
  17940. if (!this.pzList[j].hfList) {
  17941. this.pzList[j].hfList = [];
  17942. }
  17943. if (a[i].pid == this.pzList[j].id) {
  17944. this.pzList[j].hfList.push(a[i]);
  17945. }
  17946. }
  17947. }
  17948. })
  17949. .catch((err) => {
  17950. console.error(err);
  17951. });
  17952. },
  17953. // selectHf() {
  17954. // let params = {
  17955. // cid: this.id,
  17956. // s: this.courseType,
  17957. // t: this.taskCount,
  17958. // };
  17959. // this.ajax
  17960. // .get(this.$store.state.api + "selectHfList", params)
  17961. // .then((res) => {
  17962. // var a = res.data[0];
  17963. // for (var i = 0; i < a.length; i++) {
  17964. // for (var j = 0; j < this.pzList.length; j++) {
  17965. // if (!this.pzList[i].hfList) {
  17966. // this.pzList[i].hfList = [];
  17967. // }
  17968. // if (a[i].pid == this.pzList[j].id) {
  17969. // this.pzList[i].hfList.push(a[i]);
  17970. // }
  17971. // }
  17972. // }
  17973. // })
  17974. // .catch((err) => {
  17975. // console.error(err);
  17976. // });
  17977. // },
  17978. updateSLook() {
  17979. let params = {
  17980. sopen: this.sIsOpen == false ? 1 : 2,
  17981. cid: this.id,
  17982. };
  17983. this.ajax
  17984. .get(this.$store.state.api + "updateCourseSLook", params)
  17985. .then((res) => {
  17986. if (this.sIsOpen == true) {
  17987. this.$message({
  17988. message: "权限设置成功",
  17989. type: "success",
  17990. });
  17991. } else {
  17992. this.$message({
  17993. message: "权限关闭成功",
  17994. type: "success",
  17995. });
  17996. }
  17997. })
  17998. .catch((err) => {
  17999. console.error(err);
  18000. });
  18001. },
  18002. updateFollow() {
  18003. let params = [
  18004. {
  18005. sopen: this.IsFollow == false ? 1 : 2,
  18006. cid: this.id,
  18007. },
  18008. ];
  18009. this.ajax
  18010. .post(this.$store.state.api + "updateCourseFollow", params)
  18011. .then((res) => {
  18012. if (this.IsFollow == true) {
  18013. this.$message({
  18014. message: "开启成功",
  18015. type: "success",
  18016. });
  18017. } else {
  18018. this.$message({
  18019. message: "关闭成功",
  18020. type: "success",
  18021. });
  18022. }
  18023. this.setCTask();
  18024. })
  18025. .catch((err) => {
  18026. console.error(err);
  18027. });
  18028. },
  18029. setCTask() {
  18030. let params = [
  18031. {
  18032. sopen: this.courseType + "-" + this.taskCount,
  18033. cid: this.id,
  18034. },
  18035. ];
  18036. this.ajax
  18037. .post(this.$store.state.api + "updateCourseFollowC", params)
  18038. .then((res) => {})
  18039. .catch((err) => {
  18040. console.error(err);
  18041. });
  18042. },
  18043. updateLookOpen() {
  18044. let params = [
  18045. {
  18046. sopen: this.IsLookOpen == false ? 1 : 2,
  18047. cid: this.id,
  18048. },
  18049. ];
  18050. this.ajax
  18051. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18052. .then((res) => {
  18053. if (this.IsLookOpen == true) {
  18054. // if (this.courseType != 0 && this.taskCount != 0) {
  18055. // this.openTask(0, 0, "0-0");
  18056. // }
  18057. this.$message({
  18058. message: "权限设置成功",
  18059. type: "success",
  18060. });
  18061. } else {
  18062. this.$message({
  18063. message: "权限关闭成功",
  18064. type: "success",
  18065. });
  18066. }
  18067. this.getCourseState(2);
  18068. })
  18069. .catch((err) => {
  18070. console.error(err);
  18071. });
  18072. },
  18073. selectSLook() {
  18074. let params = {
  18075. cid: this.id,
  18076. };
  18077. this.ajax
  18078. .get(this.$store.state.api + "selectCourseSLook", params)
  18079. .then((res) => {
  18080. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18081. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18082. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18083. if (!this.IsLookOpen) {
  18084. this.setNavList();
  18085. }else {
  18086. this.getCourseState(1);
  18087. }
  18088. if ((this.IsFollow && this.tType == 2)) {
  18089. this.setContent2(false);
  18090. let _followC = res.data[0][0].followC.split("-");
  18091. if (
  18092. this.courseType != _followC[0] ||
  18093. this.taskCount != _followC[1]
  18094. ) {
  18095. this.navList[this.courseType].isOpen = false;
  18096. this.courseType = _followC[0];
  18097. this.navList[this.courseType].isOpen = true;
  18098. this.taskCount = parseInt(_followC[1]);
  18099. this.navId = res.data[0][0].followC;
  18100. document.scrollingElement.scrollTop = 0;
  18101. this.getCourseDetail(2);
  18102. }
  18103. }
  18104. })
  18105. .catch((err) => {
  18106. console.error(err);
  18107. });
  18108. },
  18109. setNavList() {
  18110. if (this.navList.length == 0) {
  18111. this.navList = [];
  18112. var copyList = [];
  18113. for (var l = 0; l < this.chapInfoList.length; l++) {
  18114. var q = this.chapInfoList[l].dyName;
  18115. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18116. var e;
  18117. copyList.push({
  18118. dyName: q,
  18119. isOpen: l === 0 ? true : false,
  18120. task: [],
  18121. });
  18122. for (var r = 0; r < w.length; r++) {
  18123. e = w[r].task;
  18124. if (this.chapInfoList[l].easy == 1) {
  18125. copyList[l].task.push({
  18126. taskName: q,
  18127. id: l + "-" + r,
  18128. isLook: w[r].isLook,
  18129. isOpen: r === 0 ? true : false,
  18130. tool: [],
  18131. });
  18132. } else {
  18133. copyList[l].task.push({
  18134. taskName: e,
  18135. id: l + "-" + r,
  18136. isLook: w[r].isLook,
  18137. isOpen: r === 0 ? true : false,
  18138. tool: [],
  18139. });
  18140. }
  18141. var t = w[r].toolChoose;
  18142. for (var k = 0; k < t.length; k++) {
  18143. var tool = t[k].tool[0];
  18144. copyList[l].task[r].tool.push({
  18145. tool: tool,
  18146. isTool: false,
  18147. });
  18148. }
  18149. // this.navId = this.navId ? this.navId : l + "-" + r;
  18150. // this.navId = l + "-" + r;
  18151. }
  18152. }
  18153. this.navList = copyList;
  18154. this.navList[0].isOpen = false;
  18155. this.navList[this.courseType].isOpen = true;
  18156. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18157. } else {
  18158. this.setNavList2();
  18159. }
  18160. },
  18161. setNavList2() {
  18162. for (var l = 0; l < this.chapInfoList.length; l++) {
  18163. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18164. for (var r = 0; r < w.length; r++) {
  18165. this.navList[l].task[r].isLook = w[r].isLook;
  18166. }
  18167. }
  18168. if (
  18169. this.IsLookOpen &&
  18170. !this.navList[this.courseType].task[this.taskCount].isLook
  18171. ) {
  18172. this.openTask(0, 0, "0-0");
  18173. }
  18174. this.$forceUpdate();
  18175. },
  18176. getCourseState(type) {
  18177. let params = {
  18178. cid: this.id,
  18179. };
  18180. this.ajax
  18181. .get(this.$store.state.api + "getCourseState", params)
  18182. .then((res) => {
  18183. // if (res.data[0].length > 0) {
  18184. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18185. // }
  18186. if (res.data[0].length > 0 && type == 1) {
  18187. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18188. this.setNavList();
  18189. this.$forceUpdate();
  18190. } else if (res.data[0].length > 0 && type == 2) {
  18191. this.addCourseState(2);
  18192. } else {
  18193. // this.addCourseState(1);
  18194. }
  18195. })
  18196. .catch((err) => {
  18197. console.error(err);
  18198. });
  18199. },
  18200. addCourseState(type,val = '') {
  18201. let _state = val ? val : this.chapInfoList;
  18202. // this.courseType this.taskCount
  18203. if (type == 1 || type == 2) {
  18204. for (var i = 0; i < _state.length; i++) {
  18205. let el = _state[i].chapterInfo[0].taskJson;
  18206. for (var j = 0; j < el.length; j++) {
  18207. // if (i == 0 && j == 0) {
  18208. // el[j].isLook = true;
  18209. // } else {
  18210. // el[j].isLook = false;
  18211. // }
  18212. if (
  18213. this.courseType > i ||
  18214. (this.courseType == i && this.taskCount + 1 > j)
  18215. ) {
  18216. el[j].isLook = true;
  18217. } else {
  18218. el[j].isLook = false;
  18219. }
  18220. }
  18221. }
  18222. }
  18223. let params = [
  18224. {
  18225. cid: this.id,
  18226. state: JSON.stringify(_state),
  18227. },
  18228. ];
  18229. this.ajax
  18230. .post(
  18231. this.$store.state.api +
  18232. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18233. params
  18234. )
  18235. .then((res) => {
  18236. if (this.IsLookOpen) {
  18237. this.setNavList();
  18238. }
  18239. if (type == 3 && type == 2) {
  18240. this.getCourseState(1);
  18241. }
  18242. })
  18243. .catch((err) => {
  18244. console.error(err);
  18245. });
  18246. },
  18247. getHomeWork() {
  18248. let params = {
  18249. cid: this.id,
  18250. stage: this.courseType,
  18251. task: this.taskCount,
  18252. uid: this.userid,
  18253. };
  18254. this.ajax
  18255. .get(this.$store.state.api + "selectWork", params)
  18256. .then((res) => {
  18257. if (res.data[0].length > 0) {
  18258. this.studyJuri = JSON.parse(res.data[0][0].content);
  18259. this.isNoHomeWork = true;
  18260. }
  18261. })
  18262. .catch((err) => {
  18263. console.error(err);
  18264. });
  18265. },
  18266. isAssetTypeAnImage(ext) {
  18267. return (
  18268. [
  18269. "png",
  18270. "jpg",
  18271. "jpeg",
  18272. "bmp",
  18273. "gif",
  18274. "webp",
  18275. "psd",
  18276. "svg",
  18277. "tiff",
  18278. ].indexOf(ext) !== -1
  18279. );
  18280. },
  18281. switchVideo(media) {
  18282. this.playerO = {};
  18283. this.playerOptions.poster = "";
  18284. this.playerOptions.sources[0].src = media;
  18285. this.playerO = this.playerOptions;
  18286. },
  18287. onPlayerPlay() {},
  18288. onPlayerTimeupdate(player) {
  18289. let gklog = player.cache_.currentTime; //当前播放的秒数
  18290. let a = player.cache_.duration; //视频的总时长
  18291. let gklog2 = parseInt(gklog);
  18292. // if(gklog2 == '3'){
  18293. // player.pause()
  18294. // setTimeout(()=>{
  18295. // player.currentTime(gklog2+1)
  18296. // player.play()
  18297. // },1000)
  18298. // }
  18299. console.log(" onPlayerTimeupdate!", gklog);
  18300. console.log(" onPlayerTimeupdate!", gklog2);
  18301. },
  18302. lookVedio(u, i) {
  18303. this.isClickNav = "";
  18304. // this.playerOptions.sources[0].src = u;
  18305. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18306. d.sources[0].src = u;
  18307. this.playerO[0] = d;
  18308. this.showType = 0;
  18309. // this.isClickNav = "video" + i;
  18310. this.isClickNav = i;
  18311. this.$forceUpdate();
  18312. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18313. },
  18314. lookText(i, t) {
  18315. this.isClickNav = "";
  18316. // this.text = this.textList[i][t];
  18317. this.text = this.vChapterData[i][t];
  18318. // this.dialogVisible1 = true;
  18319. this.showType = 1;
  18320. // this.isClickNav = "text" + t;
  18321. this.isClickNav = t;
  18322. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18323. },
  18324. lookTools(i, t) {
  18325. this.chapTools = this.chapToolList[i][t];
  18326. this.dialogVisible2 = true;
  18327. },
  18328. async openFile(f) {
  18329. this.pptImgUrl = "";
  18330. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18331. if (
  18332. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18333. -1
  18334. ) {
  18335. let _uuurl = await this.checkLink(f);
  18336. console.log(_uuurl)
  18337. this.pptImgUrl =
  18338. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18339. this.showPDF = false;
  18340. this.dialogVisible3 = true;
  18341. } else if (
  18342. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18343. ) {
  18344. this.pptImgUrl = f;
  18345. this.showPDF = true;
  18346. this.dialogVisible3 = true;
  18347. }
  18348. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18349. },
  18350. openTable(f) {
  18351. this.tableJson = JSON.parse(f.works);
  18352. this.dialogVisibleTable2 = true;
  18353. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18354. },
  18355. openWord(f) {
  18356. this.tableJson = JSON.parse(f.works);
  18357. this.dialogVisibleTable3 = true;
  18358. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18359. },
  18360. doUrl(url, i) {
  18361. this.isClickNav = "";
  18362. this.pptImgUrl1 = "";
  18363. this.showType = 2;
  18364. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18365. url = "https://" + url;
  18366. }
  18367. this.pptImgUrl1 = "";
  18368. this.diffKey = new Date().getTime();
  18369. setTimeout(() => {
  18370. this.pptImgUrl1 = url;
  18371. }, 500);
  18372. // this.isClickNav = "line" + i;
  18373. this.isClickNav = i;
  18374. this.$forceUpdate();
  18375. },
  18376. checkPhoto(f, i) {
  18377. this.showType = 4;
  18378. this.pptImgUrl1 = f.url;
  18379. this.isClickNav = i;
  18380. this.$forceUpdate();
  18381. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18382. },
  18383. checkHtml(f, i){
  18384. this.showType = 16;
  18385. this.pptImgUrl1 = f.url;
  18386. this.isClickNav = i;
  18387. this.$forceUpdate();
  18388. },
  18389. async downFile(f, i) {
  18390. this.isClickNav = "";
  18391. this.pptImgUrl1 = "";
  18392. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18393. if (
  18394. a.indexOf(
  18395. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18396. ) != -1
  18397. ) {
  18398. let _uuurl = await this.checkLink(f.url);
  18399. console.log(_uuurl)
  18400. this.pptImgUrl1 =
  18401. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18402. // this.dialogVisible3 = true;
  18403. this.showType = 2;
  18404. } else if (
  18405. this.isAssetTypeAnImage(
  18406. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18407. )
  18408. ) {
  18409. this.showType = 4;
  18410. this.pptImgUrl1 = f.url;
  18411. } else if (
  18412. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18413. "PDF"
  18414. ) {
  18415. this.pptImgUrl1 = f.url;
  18416. // this.dialogVisible3 = true;
  18417. this.showType = 3;
  18418. } else {
  18419. window.open(this.file[i].url);
  18420. }
  18421. // this.isClickNav = "word" + i;
  18422. this.isClickNav = i;
  18423. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18424. },
  18425. downFileList(i) {
  18426. window.open(this.noImgList[i].url);
  18427. },
  18428. openAddWork() {
  18429. this.dialogVisible = true;
  18430. },
  18431. addBzWorks() {
  18432. let params = [
  18433. {
  18434. uid: this.userid,
  18435. cid: this.id,
  18436. stage: this.courseType,
  18437. task: this.taskCount,
  18438. tool: this.toolindex,
  18439. content: JSON.stringify(this.eScore),
  18440. type: 6,
  18441. },
  18442. ];
  18443. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18444. this.homeWorkLoading = true
  18445. this.ajax
  18446. .post(this.$store.state.api + "addCourseWorks", params)
  18447. .then((res) => {
  18448. this.$message({
  18449. message: "提交成功",
  18450. type: "success",
  18451. });
  18452. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18453. setTimeout(() => {
  18454. this.homeWorkLoading = false
  18455. }, 500);
  18456. this.eScore = { eBzText: "", eStar: [] };
  18457. this.studentEvalDialogVisible = false;
  18458. this.selectSWorks();
  18459. })
  18460. .catch((err) => {
  18461. this.$message.error("提交失败");
  18462. console.error(err);
  18463. setTimeout(() => {
  18464. this.homeWorkLoading = false
  18465. }, 500);
  18466. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18467. });
  18468. },
  18469. addBzWorksTeacher() {
  18470. let params = [
  18471. {
  18472. uid: this.sStudent.userid,
  18473. cid: this.id,
  18474. stage: this.courseType,
  18475. task: this.taskCount,
  18476. tool: this.toolindex,
  18477. content: JSON.stringify(this.eScore),
  18478. type: 6,
  18479. },
  18480. ];
  18481. this.ajax
  18482. .post(this.$store.state.api + "addCourseWorks", params)
  18483. .then((res) => {
  18484. this.$message({
  18485. message: "提交成功",
  18486. type: "success",
  18487. });
  18488. this.eScore = { eBzText: "", eStar: [] };
  18489. this.studentEvalDialogVisibleTeacher = false;
  18490. this.selectSWorks();
  18491. })
  18492. .catch((err) => {
  18493. this.$message.error("提交失败");
  18494. console.error(err);
  18495. });
  18496. },
  18497. addStudentAsk() {
  18498. if (!this.radio.length) {
  18499. this.$message.error("请选择选项");
  18500. return;
  18501. }
  18502. for (var i = 0; i < this.askJson.askCount; i++) {
  18503. if (
  18504. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18505. (this.radio[i] !== 0 && !this.radio[i])
  18506. ) {
  18507. this.$message.error("请选择选项");
  18508. return;
  18509. }
  18510. }
  18511. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18512. let params = [
  18513. {
  18514. uid: this.userid,
  18515. cid: this.id,
  18516. stage: this.courseType,
  18517. task: this.taskCount,
  18518. tool: this.toolindex,
  18519. content: JSON.stringify(this.askList),
  18520. type: 2,
  18521. },
  18522. ];
  18523. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18524. this.homeWorkLoading = true
  18525. this.ajax
  18526. .post(this.$store.state.api + "addCourseWorks", params)
  18527. .then((res) => {
  18528. this.$message({
  18529. message: "提交成功",
  18530. type: "success",
  18531. });
  18532. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18533. setTimeout(() => {
  18534. this.homeWorkLoading = false
  18535. }, 500);
  18536. this.askList = [];
  18537. this.dialogVisible5 = false;
  18538. this.selectStudent();
  18539. this.selectSWorks();
  18540. this.selectSLook();
  18541. })
  18542. .catch((err) => {
  18543. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18544. setTimeout(() => {
  18545. this.homeWorkLoading = false
  18546. }, 500);
  18547. this.$message.error("提交失败");
  18548. console.error(err);
  18549. });
  18550. },
  18551. addStudentAskTeacher() {
  18552. if (!this.radio.length) {
  18553. this.$message.error("请选择选项");
  18554. return;
  18555. }
  18556. for (var i = 0; i < this.askJson.askCount; i++) {
  18557. if (
  18558. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18559. (this.radio[i] !== 0 && !this.radio[i])
  18560. ) {
  18561. this.$message.error("请选择选项");
  18562. return;
  18563. }
  18564. }
  18565. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18566. let params = [
  18567. {
  18568. uid: this.sStudent.userid,
  18569. cid: this.id,
  18570. stage: this.courseType,
  18571. task: this.taskCount,
  18572. tool: this.toolindex,
  18573. content: JSON.stringify(this.askList),
  18574. type: 2,
  18575. },
  18576. ];
  18577. this.ajax
  18578. .post(this.$store.state.api + "addCourseWorks", params)
  18579. .then((res) => {
  18580. this.$message({
  18581. message: "提交成功",
  18582. type: "success",
  18583. });
  18584. this.askList = [];
  18585. this.dialogVisible5Teacher = false;
  18586. this.selectStudent();
  18587. this.selectSWorks();
  18588. this.selectSLook();
  18589. })
  18590. .catch((err) => {
  18591. this.$message.error("提交失败");
  18592. console.error(err);
  18593. });
  18594. },
  18595. addStudentTest() {
  18596. if (!this.radio.length) {
  18597. this.$message.error("请选择选项");
  18598. return;
  18599. }
  18600. for (var i = 0; i < this.testJson.testCount; i++) {
  18601. if (
  18602. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18603. (this.radio[i] !== 0 && !this.radio[i])
  18604. ) {
  18605. this.$message.error("请选择选项");
  18606. return;
  18607. }
  18608. }
  18609. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18610. let params = [
  18611. {
  18612. uid: this.userid,
  18613. cid: this.id,
  18614. stage: this.courseType,
  18615. task: this.taskCount,
  18616. tool: this.toolindex,
  18617. content: JSON.stringify(this.askList),
  18618. type: 8,
  18619. },
  18620. ];
  18621. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18622. this.homeWorkLoading = true
  18623. this.ajax
  18624. .post(this.$store.state.api + "addCourseWorks", params)
  18625. .then((res) => {
  18626. this.$message({
  18627. message: "提交成功",
  18628. type: "success",
  18629. });
  18630. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18631. setTimeout(() => {
  18632. this.homeWorkLoading = false
  18633. }, 500);
  18634. this.askList = [];
  18635. this.dialogVisibleChoice = false;
  18636. this.selectStudent();
  18637. this.selectSWorks();
  18638. this.selectSLook();
  18639. })
  18640. .catch((err) => {
  18641. this.$message.error("提交失败");
  18642. console.error(err);
  18643. setTimeout(() => {
  18644. this.homeWorkLoading = false
  18645. }, 500);
  18646. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18647. });
  18648. },
  18649. addStudentTestTeacher() {
  18650. if (!this.radio.length) {
  18651. this.$message.error("请选择选项");
  18652. return;
  18653. }
  18654. for (var i = 0; i < this.testJson.testCount; i++) {
  18655. if (
  18656. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18657. (this.radio[i] !== 0 && !this.radio[i])
  18658. ) {
  18659. this.$message.error("请选择选项");
  18660. return;
  18661. }
  18662. }
  18663. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18664. let params = [
  18665. {
  18666. uid: this.sStudent.userid,
  18667. cid: this.id,
  18668. stage: this.courseType,
  18669. task: this.taskCount,
  18670. tool: this.toolindex,
  18671. content: JSON.stringify(this.askList),
  18672. type: 8,
  18673. },
  18674. ];
  18675. this.ajax
  18676. .post(this.$store.state.api + "addCourseWorks", params)
  18677. .then((res) => {
  18678. this.$message({
  18679. message: "提交成功",
  18680. type: "success",
  18681. });
  18682. this.askList = [];
  18683. this.dialogVisibleChoiceTeacher = false;
  18684. this.selectStudent();
  18685. this.selectSWorks();
  18686. this.selectSLook();
  18687. })
  18688. .catch((err) => {
  18689. this.$message.error("提交失败");
  18690. console.error(err);
  18691. });
  18692. },
  18693. addWork() {
  18694. if (this.studyJuri[0].content == "") {
  18695. this.$message.error("请将信息填写完整");
  18696. return;
  18697. } else if (this.studyJuri[0].cover.length == 0) {
  18698. this.$message.error("请将信息填写完整");
  18699. return;
  18700. } else if (this.studyJuri[0].upVedio.length == 0) {
  18701. this.$message.error("请将信息填写完整");
  18702. return;
  18703. }
  18704. if (this.isNoHomeWork) {
  18705. this.$confirm(
  18706. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18707. "提示",
  18708. {
  18709. confirmButtonText: "确定",
  18710. cancelButtonText: "取消",
  18711. type: "warning",
  18712. }
  18713. )
  18714. .then(() => {
  18715. let params = [
  18716. {
  18717. uid: this.userid,
  18718. cid: this.id,
  18719. stage: this.courseType,
  18720. task: this.taskCount,
  18721. content: JSON.stringify(this.studyJuri),
  18722. },
  18723. ];
  18724. this.ajax
  18725. .post(this.$store.state.api + "addWorks", params)
  18726. .then((res) => {
  18727. this.$message({
  18728. message: "提交成功",
  18729. type: "success",
  18730. });
  18731. this.isNoHomeWork = true;
  18732. this.dialogVisible = false;
  18733. })
  18734. .catch((err) => {
  18735. this.$message.error("提交失败");
  18736. console.error(err);
  18737. });
  18738. })
  18739. .catch(() => {});
  18740. } else {
  18741. let params = [
  18742. {
  18743. uid: this.userid,
  18744. cid: this.id,
  18745. stage: this.courseType,
  18746. task: this.taskCount,
  18747. content: JSON.stringify(this.studyJuri),
  18748. },
  18749. ];
  18750. this.ajax
  18751. .post(this.$store.state.api + "addWorks", params)
  18752. .then((res) => {
  18753. this.$message({
  18754. message: "提交成功",
  18755. type: "success",
  18756. });
  18757. this.isNoHomeWork = true;
  18758. this.dialogVisible = false;
  18759. })
  18760. .catch((err) => {
  18761. this.$message.error("提交失败");
  18762. console.error(err);
  18763. });
  18764. }
  18765. },
  18766. selectCount() {
  18767. let params = {
  18768. cid: this.id,
  18769. chid: this.courseType,
  18770. uid: this.userid,
  18771. };
  18772. this.ajax
  18773. .get(this.$store.state.api + "selectToolsCount", params)
  18774. .then((res) => {
  18775. for (var i = 0; i < res.data[0].length; i++) {
  18776. if (res.data[0][i].tools == 1) {
  18777. this.wbCount = res.data[0][i].count;
  18778. } else if (res.data[0][i].tools == 2) {
  18779. this.wordCount = res.data[0][i].count;
  18780. } else if (res.data[0][i].tools == 3) {
  18781. this.mindCount = res.data[0][i].count;
  18782. } else if (res.data[0][i].tools == 4) {
  18783. this.askCount = res.data[0][i].count;
  18784. } else if (res.data[0][i].tools == 6) {
  18785. this.noteCount = res.data[0][i].count;
  18786. } else if (res.data[0][i].tools == 7) {
  18787. this.mindNetWorkCount = res.data[0][i].count;
  18788. } else if (res.data[0][i].tools == 8) {
  18789. this.libraryCount = res.data[0][i].count;
  18790. } else if (res.data[0][i].tools == 16) {
  18791. this.workCount = res.data[0][i].count;
  18792. } else if (res.data[0][i].tools == 10) {
  18793. this.timeCount = res.data[0][i].count;
  18794. } else if (res.data[0][i].tools == 15) {
  18795. this.answerCount = res.data[0][i].count;
  18796. } else if (res.data[0][i].tools == 18) {
  18797. this.trainCount = res.data[0][i].count;
  18798. }
  18799. }
  18800. })
  18801. .catch((err) => {
  18802. console.error(err);
  18803. });
  18804. },
  18805. openTools(t, i, index, c, sName,id) {
  18806. var z = JSON.parse(c);
  18807. this.noteName = sName;
  18808. if (t == 4) {
  18809. this.radio = [];
  18810. this.isAnswer = false;
  18811. let b = z[0].anwer;
  18812. this.radio = b;
  18813. this.askJson = z[0].askJson;
  18814. this.isAnswer = true;
  18815. this.dialogVisible5 = true;
  18816. } else if (t == 45) {
  18817. this.radio = [];
  18818. this.isAnswer = false;
  18819. let b = z[0].anwer;
  18820. this.radio = b;
  18821. this.testJson = z[0].testJson;
  18822. this.isAnswer = true;
  18823. this.dialogVisibleChoice = true;
  18824. }else if(t == 69){
  18825. this.oldEnglishJson1 = {}
  18826. this.oldEnglishJson = {}
  18827. this.englishList1 = {}
  18828. this.newEngIndex = -1;
  18829. this.isNoUserid = false;
  18830. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18831. .toolChoose[i].englishList;
  18832. this.oldEnglishJson = z;
  18833. this.engWid = id;
  18834. this.newEnglishList = { engTitle:"",engText:"" }
  18835. this.newEnglishList1 = []
  18836. this.selectEngC(id,z);
  18837. }else if(t == 62){
  18838. this.videoType = 1;
  18839. this.videoJson = {};
  18840. this.videoJson = JSON.parse(c);
  18841. // this.videoJson =
  18842. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18843. // index
  18844. // ].toolChoose[i].videoJson;
  18845. this.dialogVisibleVideo = true;
  18846. }
  18847. // else if (t == 15) {
  18848. // this.answerQ = "";
  18849. // this.questionAnswer = "";
  18850. // this.answerQ = z[0].answerTitle;
  18851. // this.questionAnswer = z[0].answer;
  18852. // this.answerDialogVisible = true;
  18853. // }
  18854. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18855. },
  18856. fastText(p, t) {
  18857. if (t == 1) {
  18858. this.commentText += p;
  18859. } else {
  18860. this.eScore.eBzText += p;
  18861. }
  18862. },
  18863. addTools(t, i, index) {
  18864. var a = 0;
  18865. // this.taskCount = index;
  18866. this.toolindex = i;
  18867. if (t == 1) {
  18868. if (this.wbCount > 0) {
  18869. this.updateCount(this.wbCount, t);
  18870. } else {
  18871. this.wbCount++;
  18872. a = this.wbCount;
  18873. this.toolsCount(a, t);
  18874. }
  18875. window.topU.postMessage(
  18876. {
  18877. tools: "1",
  18878. cid: this.id,
  18879. stage: this.courseType,
  18880. task: this.taskCount,
  18881. tool: i,
  18882. },
  18883. "*"
  18884. );
  18885. } else if (t == 2) {
  18886. if (this.wordCount > 0) {
  18887. this.updateCount(this.wordCount, t);
  18888. } else {
  18889. this.wordCount++;
  18890. a = this.wordCount;
  18891. this.toolsCount(a, t);
  18892. }
  18893. window.topU.postMessage({ tools: "2" }, "*");
  18894. } else if (t == 3) {
  18895. if (this.mindCount > 0) {
  18896. this.updateCount(this.mindCount, t);
  18897. } else {
  18898. this.mindCount++;
  18899. a = this.mindCount;
  18900. this.toolsCount(a, t);
  18901. }
  18902. window.topU.postMessage(
  18903. {
  18904. tools: "3",
  18905. cid: this.id,
  18906. stage: this.courseType,
  18907. task: this.taskCount,
  18908. tool: i,
  18909. },
  18910. "*"
  18911. );
  18912. } else if (t == 4) {
  18913. this.radio = [];
  18914. this.noteName = "";
  18915. this.isAnswer = false;
  18916. if (this.askCount > 0) {
  18917. this.updateCount(this.askCount, t);
  18918. } else {
  18919. this.askCount++;
  18920. a = this.askCount;
  18921. this.toolsCount(a, t);
  18922. }
  18923. if (!this.dialogVisible2) {
  18924. this.askJson.askJson =
  18925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18926. index
  18927. ].toolChoose[i].askJson;
  18928. this.askJson.askTitle =
  18929. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18930. index
  18931. ].toolChoose[i].askTitle;
  18932. this.askJson.askCount =
  18933. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18934. index
  18935. ].toolChoose[i].askCount;
  18936. } else {
  18937. this.askJson.askJson = this.chapTools.askJson.askJson;
  18938. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18939. this.askJson.askCount = this.chapTools.askJson.askCount;
  18940. }
  18941. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18942. if (this.askJson.askJson[k].type == "2") {
  18943. this.radio.push([]);
  18944. } else {
  18945. this.radio.push("");
  18946. }
  18947. }
  18948. this.dialogVisible5 = true;
  18949. // window.topU.postMessage({ tools: "4" }, "*");
  18950. } else if (t == 45) {
  18951. this.noteName = "";
  18952. this.radio = [];
  18953. this.isAnswer = false;
  18954. if (this.askCount > 0) {
  18955. this.updateCount(this.askCount, t);
  18956. } else {
  18957. this.askCount++;
  18958. a = this.askCount;
  18959. this.toolsCount(a, t);
  18960. }
  18961. this.testJson =
  18962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18963. index
  18964. ].toolChoose[i].testJson;
  18965. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18966. if (this.testJson.testJson[k].type == "2") {
  18967. this.radio.push([]);
  18968. } else {
  18969. this.radio.push("");
  18970. }
  18971. }
  18972. this.dialogVisibleChoice = true;
  18973. // window.topU.postMessage({ tools: "4" }, "*");
  18974. } else if (t == 5) {
  18975. if (this.scoreCount > 0) {
  18976. this.updateCount(this.scoreCount, t);
  18977. } else {
  18978. this.scoreCount++;
  18979. a = this.scoreCount;
  18980. this.toolsCount(a, t);
  18981. }
  18982. this.dialogVisible4 = true;
  18983. // window.topU.postMessage({ tools: "5" }, "*");
  18984. } else if (t == 6) {
  18985. if (this.noteCount > 0) {
  18986. this.updateCount(this.noteCount, t);
  18987. } else {
  18988. this.noteCount++;
  18989. a = this.noteCount;
  18990. this.toolsCount(a, t);
  18991. }
  18992. window.topU.postMessage(
  18993. {
  18994. tools: "6",
  18995. cid: this.id,
  18996. stage: this.courseType,
  18997. task: this.taskCount,
  18998. tool: i,
  18999. },
  19000. "*"
  19001. );
  19002. } else if (t == 7) {
  19003. if (this.mindNetWorkCount > 0) {
  19004. this.updateCount(this.mindNetWorkCount, t);
  19005. } else {
  19006. this.mindNetWorkCount++;
  19007. a = this.mindNetWorkCount;
  19008. this.toolsCount(a, t);
  19009. }
  19010. window.topU.postMessage(
  19011. {
  19012. tools: "7",
  19013. cid: this.id,
  19014. stage: this.courseType,
  19015. task: this.taskCount,
  19016. tool: i,
  19017. },
  19018. "*"
  19019. );
  19020. } else if (t == 16) {
  19021. if (this.workCount > 0) {
  19022. this.updateCount(this.workCount, t);
  19023. } else {
  19024. this.workCount++;
  19025. a = this.workCount;
  19026. this.toolsCount(a, t);
  19027. }
  19028. this.dialogVisible = true;
  19029. } else if (t == 50) {
  19030. if (this.tType == 2) {
  19031. this.$message.error("不支持学生使用");
  19032. return;
  19033. }
  19034. this.plworkFile = [];
  19035. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19036. if (!this.uploadCid) {
  19037. this.$message.error(
  19038. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19039. );
  19040. return;
  19041. }
  19042. // this.uploadCid =
  19043. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19044. // index
  19045. // ].toolChoose[i].uploadJson[0];
  19046. this.selectUploadStudent(2);
  19047. } else if (t == 8) {
  19048. if (this.libraryCount > 0) {
  19049. this.updateCount(this.libraryCount, t);
  19050. } else {
  19051. this.libraryCount++;
  19052. a = this.libraryCount;
  19053. this.toolsCount(a, t);
  19054. }
  19055. window.topU.postMessage({ tools: "8" }, "*");
  19056. } else if (t == 17) {
  19057. if (this.libraryCount > 0) {
  19058. this.updateCount(this.libraryCount, t);
  19059. } else {
  19060. this.libraryCount++;
  19061. a = this.libraryCount;
  19062. this.toolsCount(a, t);
  19063. }
  19064. window.topU.postMessage({ tools: "17" }, "*");
  19065. } else if (t == 18) {
  19066. if (this.trainCount > 0) {
  19067. this.updateCount(this.trainCount, t);
  19068. } else {
  19069. this.trainCount++;
  19070. a = this.trainCount;
  19071. this.toolsCount(a, t);
  19072. }
  19073. window.topU.postMessage({ tools: "18" }, "*");
  19074. } else if (t == 10) {
  19075. if (this.timeCount > 0) {
  19076. this.updateCount(this.timeCount, t);
  19077. } else {
  19078. this.timeCount++;
  19079. a = this.timeCount;
  19080. this.toolsCount(a, t);
  19081. }
  19082. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19083. .taskJson[index].toolChoose[i].preTime
  19084. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19085. .toolChoose[i].preTime
  19086. : "";
  19087. this.timeDialogVisible = true;
  19088. } else if (t == 15) {
  19089. this.answerQ = "";
  19090. this.questionAnswer = "";
  19091. if (this.answerCount > 0) {
  19092. this.updateCount(this.answerCount, t);
  19093. } else {
  19094. this.answerCount++;
  19095. a = this.answerCount;
  19096. this.toolsCount(a, t);
  19097. }
  19098. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19099. .taskJson[index].toolChoose[i].answerQ
  19100. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19101. .toolChoose[i].answerQ
  19102. : "";
  19103. this.answerDialogVisible = true;
  19104. } else if (t == 21) {
  19105. window.topU.postMessage({ tools: "21" }, "*");
  19106. } else if (t == 22) {
  19107. window.topU.postMessage({ tools: "22" }, "*");
  19108. } else if (t == 23) {
  19109. window.topU.postMessage({ tools: "23" }, "*");
  19110. } else if (t == 24) {
  19111. window.topU.postMessage({ tools: "24" }, "*");
  19112. } else if (t == 25) {
  19113. window.topU.postMessage({ tools: "25" }, "*");
  19114. } else if (t == 31) {
  19115. window.topU.postMessage({ tools: "31" }, "*");
  19116. } else if (t == 28) {
  19117. window.topU.postMessage({ tools: "28" }, "*");
  19118. } else if (t == 37) {
  19119. window.topU.postMessage({ tools: "37" }, "*");
  19120. } else if (t == 38) {
  19121. window.topU.postMessage({ tools: "38" }, "*");
  19122. } else if (t == 39) {
  19123. window.topU.postMessage({ tools: "39" }, "*");
  19124. } else if (t == 32) {
  19125. window.topU.postMessage({ tools: "32" }, "*");
  19126. } else if (t == 66) {
  19127. window.topU.postMessage({ tools: "66" }, "*");
  19128. } else if (t == 67) {
  19129. window.topU.postMessage({ tools: "67" }, "*");
  19130. } else if (t == 68) {
  19131. window.topU.postMessage({ tools: "68" }, "*");
  19132. } else if (t == 57) {
  19133. // window.topU.postMessage({ tools: "57" }, "*");
  19134. window.topU.postMessage(
  19135. {
  19136. tools: "57u",
  19137. cid: this.id,
  19138. stage: this.courseType,
  19139. task: this.taskCount,
  19140. tool: i,
  19141. },
  19142. "*"
  19143. );
  19144. } else if (t == 58) {
  19145. window.topU.postMessage({ tools: "58" }, "*");
  19146. } else if (t == 59) {
  19147. window.topU.postMessage({ tools: "59" }, "*");
  19148. } else if (t == 60) {
  19149. window.topU.postMessage({ tools: "60" }, "*");
  19150. } else if (t == 61) {
  19151. window.topU.postMessage({ tools: "61" }, "*");
  19152. } else if (t == 63) {
  19153. window.topU.postMessage({ tools: "63" }, "*");
  19154. } else if (t == 71) {
  19155. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19156. // this.$message.error("该工具不可使用");
  19157. // return
  19158. // }
  19159. window.topU.postMessage({ tools: "71" }, "*");
  19160. } else if (t == 72) {
  19161. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19162. .taskJson[index].toolChoose[i].appJson
  19163. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19164. .toolChoose[i].appJson
  19165. : "";
  19166. if(!item || !item.url){
  19167. this.$message.error("应用连接为空, 请到课程管理中添加");
  19168. return;
  19169. }
  19170. if (!document.fullscreenElement) {
  19171. this.enterFullScreen();
  19172. }
  19173. this.$refs.appStoreC.getData(item.url,this.userid)
  19174. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19175. // window.open(item.url, "_blank");
  19176. } else if (t == 69) {
  19177. if (this.worksStudent[i].length) {
  19178. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19179. if (this.userid == this.worksStudent[i][k].userid) {
  19180. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19181. break;
  19182. } else {
  19183. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19184. }
  19185. }
  19186. } else {
  19187. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19188. }
  19189. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19190. .taskJson[index].toolChoose[i].englishList
  19191. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19192. .toolChoose[i].englishList
  19193. : {};
  19194. this.englishToolIndex = i;
  19195. this.myAnList = this.myAnswerList1;
  19196. this.engDialogVisible = true;
  19197. } else if (t == 70) {
  19198. if (this.worksStudent[i].length) {
  19199. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19200. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19201. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19202. break;
  19203. } else {
  19204. this.englishVoiceJsonWork = [];
  19205. }
  19206. }
  19207. } else {
  19208. this.englishVoiceJsonWork = [];
  19209. }
  19210. let englishVoiceJson = {}
  19211. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19212. .taskJson[index].toolChoose[i].englishVoiceJson
  19213. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19214. .toolChoose[i].englishVoiceJson
  19215. : {};
  19216. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19217. this.EnglishVoiceDialog = true;
  19218. } else if (t == 65) {
  19219. if (this.tType == 2) {
  19220. this.$message.error("不支持学生使用");
  19221. return;
  19222. }
  19223. this.uploadCid = this.tcid;
  19224. if (!this.uploadCid) {
  19225. this.$message.error(
  19226. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19227. );
  19228. return;
  19229. }
  19230. this.selectPickStudent();
  19231. } else if (t == 26) {
  19232. window.topU.postMessage(
  19233. {
  19234. tools: "26",
  19235. cid: this.id,
  19236. stage: this.courseType,
  19237. task: this.taskCount,
  19238. tool: i,
  19239. },
  19240. "*"
  19241. );
  19242. } else if (t == 40) {
  19243. if (this.evalCount > 0) {
  19244. this.updateCount(this.evalCount, t);
  19245. } else {
  19246. this.evalCount++;
  19247. a = this.evalCount;
  19248. this.toolsCount(a, t);
  19249. }
  19250. this.eScore = { eBzText: "", eStar: [] };
  19251. if (this.worksStudent[i].length) {
  19252. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19253. if (this.userid == this.worksStudent[i][k].userid) {
  19254. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19255. this.rateJson =
  19256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19257. index
  19258. ].toolChoose[i].rateJson;
  19259. break;
  19260. } else {
  19261. this.rateJson =
  19262. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19263. index
  19264. ].toolChoose[i].rateJson;
  19265. }
  19266. }
  19267. } else {
  19268. this.rateJson =
  19269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19270. index
  19271. ].toolChoose[i].rateJson;
  19272. }
  19273. this.isStar = false;
  19274. this.studentEvalDialogVisible = true;
  19275. } else if (t == 41) {
  19276. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19277. .taskJson[index].toolChoose[i].selectJson
  19278. ? JSON.parse(
  19279. JSON.stringify(
  19280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19281. index
  19282. ].toolChoose[i].selectJson
  19283. )
  19284. )
  19285. : { url: "", select: [], answer: [] };
  19286. if (this.worksStudent[i].length) {
  19287. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19288. if (this.userid == this.worksStudent[i][k].userid) {
  19289. var a = this.worksStudent[i][k].works.split(",");
  19290. for (var ki = 0; ki < a.length; ki++) {
  19291. a[ki] = parseInt(a[ki]);
  19292. }
  19293. this.selectAnswer = {
  19294. answer: a,
  19295. stu: this.worksStudent[i][k].sName,
  19296. };
  19297. break;
  19298. } else {
  19299. this.selectAnswer = { answer: [], stu: "" };
  19300. }
  19301. }
  19302. } else {
  19303. this.selectAnswer = { answer: [], stu: "" };
  19304. }
  19305. this.isSelect = false;
  19306. this.dialogVisibleSelect = true;
  19307. } else if (t == 44) {
  19308. window.topU.postMessage({ tools: "44" }, "*");
  19309. } else if (t == 47) {
  19310. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19311. .taskJson[index].toolChoose[i].sentenceList
  19312. ? JSON.parse(
  19313. JSON.stringify(
  19314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19315. index
  19316. ].toolChoose[i].sentenceList
  19317. )
  19318. )
  19319. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19320. for (var q = 0; q < this.sentenceList.length; q++) {
  19321. this.sentenceList[q].chooseSenList = [];
  19322. this.sentenceList[q].addChangeSen = [];
  19323. this.sentenceList[q].addChangeSen = JSON.parse(
  19324. JSON.stringify(this.sentenceList[q].addSentence)
  19325. );
  19326. this.sentenceList[q].chooseSenList.length =
  19327. this.sentenceList[q].rightAnswer.length;
  19328. }
  19329. this.dialogVisibleSentence = true;
  19330. } else if (t == 48) {
  19331. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19332. .taskJson[index].toolChoose[i].tableJson
  19333. ? JSON.parse(
  19334. JSON.stringify(
  19335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19336. index
  19337. ].toolChoose[i].tableJson
  19338. )
  19339. )
  19340. : { text: "" };
  19341. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19342. if (this.worksStudent[i].length) {
  19343. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19344. if (this.userid == this.worksStudent[i][k].userid) {
  19345. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19346. break;
  19347. }
  19348. }
  19349. }
  19350. this.dialogVisibleTable = true;
  19351. } else if (t == 52) {
  19352. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19353. .taskJson[index].toolChoose[i].wordJson
  19354. ? JSON.parse(
  19355. JSON.stringify(
  19356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19357. index
  19358. ].toolChoose[i].wordJson
  19359. )
  19360. )
  19361. : { text: "" };
  19362. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19363. if (this.worksStudent[i].length) {
  19364. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19365. if (this.userid == this.worksStudent[i][k].userid) {
  19366. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19367. break;
  19368. }
  19369. }
  19370. }
  19371. this.dialogVisibleWord = true;
  19372. } else if (t == 49) {
  19373. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19374. return
  19375. }
  19376. this.groupJson =
  19377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19378. index
  19379. ].toolChoose[i].groupJson;
  19380. this.islock = this.groupJson.islock == 1 ? true : false;
  19381. this.dialogVisibleGroup = true;
  19382. } else if (t == 62) {
  19383. this.videoType = 0;
  19384. this.videoJson = {};
  19385. this.videoJson =
  19386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19387. index
  19388. ].toolChoose[i].videoJson;
  19389. this.dialogVisibleVideo = true;
  19390. }
  19391. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19392. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19393. },
  19394. teacherWorkSubmit(t, i, index, s) {
  19395. this.sStudent = s;
  19396. this.toolindex = i;
  19397. this.sTool = t;
  19398. if (this.tType !== "1" && this.tType !== "4") {
  19399. return;
  19400. }
  19401. if (t == 16 || t == 32 || t == 50) {
  19402. this.dialogVisibleWorks = true;
  19403. } else if (t == 15) {
  19404. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19405. .taskJson[index].toolChoose[i].answerQ
  19406. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19407. .toolChoose[i].answerQ
  19408. : "";
  19409. this.questionAnswer = "";
  19410. this.answerDialogVisibleTeacher = true; //问答
  19411. } else if (t == 52) {
  19412. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19413. .taskJson[index].toolChoose[i].wordJson
  19414. ? JSON.parse(
  19415. JSON.stringify(
  19416. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19417. index
  19418. ].toolChoose[i].wordJson
  19419. )
  19420. )
  19421. : { text: "" };
  19422. if (this.worksStudent[i].length) {
  19423. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19424. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19425. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19426. break;
  19427. }
  19428. }
  19429. }
  19430. this.dialogVisibleWordTeacher = true; //文档
  19431. } else if (t == 4) {
  19432. this.radio = [];
  19433. this.noteName = "";
  19434. this.isAnswer = false;
  19435. if (this.askCount > 0) {
  19436. this.updateCount(this.askCount, t);
  19437. } else {
  19438. this.askCount++;
  19439. a = this.askCount;
  19440. this.toolsCount(a, t);
  19441. }
  19442. if (!this.dialogVisible2) {
  19443. this.askJson.askJson =
  19444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19445. index
  19446. ].toolChoose[i].askJson;
  19447. this.askJson.askTitle =
  19448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19449. index
  19450. ].toolChoose[i].askTitle;
  19451. this.askJson.askCount =
  19452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19453. index
  19454. ].toolChoose[i].askCount;
  19455. } else {
  19456. this.askJson.askJson = this.chapTools.askJson.askJson;
  19457. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19458. this.askJson.askCount = this.chapTools.askJson.askCount;
  19459. }
  19460. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19461. if (this.askJson.askJson[k].type == "2") {
  19462. this.radio.push([]);
  19463. } else {
  19464. this.radio.push("");
  19465. }
  19466. }
  19467. this.dialogVisible5Teacher = true;
  19468. } else if (t == 45) {
  19469. this.noteName = "";
  19470. this.radio = [];
  19471. this.isAnswer = false;
  19472. if (this.askCount > 0) {
  19473. this.updateCount(this.askCount, t);
  19474. } else {
  19475. this.askCount++;
  19476. a = this.askCount;
  19477. this.toolsCount(a, t);
  19478. }
  19479. this.testJson =
  19480. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19481. index
  19482. ].toolChoose[i].testJson;
  19483. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19484. if (this.testJson.testJson[k].type == "2") {
  19485. this.radio.push([]);
  19486. } else {
  19487. this.radio.push("");
  19488. }
  19489. }
  19490. this.dialogVisibleChoiceTeacher = true;
  19491. } else if (t == 41) {
  19492. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19493. .taskJson[index].toolChoose[i].selectJson
  19494. ? JSON.parse(
  19495. JSON.stringify(
  19496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19497. index
  19498. ].toolChoose[i].selectJson
  19499. )
  19500. )
  19501. : { url: "", select: [], answer: [] };
  19502. if (this.worksStudent[i].length) {
  19503. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19504. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19505. var a = this.worksStudent[i][k].works.split(",");
  19506. for (var ki = 0; ki < a.length; ki++) {
  19507. a[ki] = parseInt(a[ki]);
  19508. }
  19509. this.selectAnswer = {
  19510. answer: a,
  19511. stu: this.worksStudent[i][k].sName,
  19512. };
  19513. break;
  19514. } else {
  19515. this.selectAnswer = { answer: [], stu: "" };
  19516. }
  19517. }
  19518. } else {
  19519. this.selectAnswer = { answer: [], stu: "" };
  19520. }
  19521. this.isSelect = false;
  19522. this.dialogVisibleSelectTeacher = true;
  19523. } else if (t == 47) {
  19524. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19525. .taskJson[index].toolChoose[i].sentenceList
  19526. ? JSON.parse(
  19527. JSON.stringify(
  19528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19529. index
  19530. ].toolChoose[i].sentenceList
  19531. )
  19532. )
  19533. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19534. for (var q = 0; q < this.sentenceList.length; q++) {
  19535. this.sentenceList[q].chooseSenList = [];
  19536. this.sentenceList[q].addChangeSen = [];
  19537. this.sentenceList[q].addChangeSen = JSON.parse(
  19538. JSON.stringify(this.sentenceList[q].addSentence)
  19539. );
  19540. this.sentenceList[q].chooseSenList.length =
  19541. this.sentenceList[q].rightAnswer.length;
  19542. }
  19543. this.dialogVisibleSentenceTeacher = true;
  19544. } else if (t == 48) {
  19545. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19546. .taskJson[index].toolChoose[i].tableJson
  19547. ? JSON.parse(
  19548. JSON.stringify(
  19549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19550. index
  19551. ].toolChoose[i].tableJson
  19552. )
  19553. )
  19554. : { text: "" };
  19555. if (this.worksStudent[i].length) {
  19556. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19557. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19558. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19559. break;
  19560. }
  19561. }
  19562. }
  19563. this.dialogVisibleTableTeacher = true;
  19564. } else if (t == 40) {
  19565. if (this.evalCount > 0) {
  19566. this.updateCount(this.evalCount, t);
  19567. } else {
  19568. this.evalCount++;
  19569. a = this.evalCount;
  19570. this.toolsCount(a, t);
  19571. }
  19572. this.eScore = { eBzText: "", eStar: [] };
  19573. if (this.worksStudent[i].length) {
  19574. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19575. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19576. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19577. this.rateJson =
  19578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19579. index
  19580. ].toolChoose[i].rateJson;
  19581. break;
  19582. } else {
  19583. this.rateJson =
  19584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19585. index
  19586. ].toolChoose[i].rateJson;
  19587. }
  19588. }
  19589. } else {
  19590. this.rateJson =
  19591. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19592. index
  19593. ].toolChoose[i].rateJson;
  19594. }
  19595. this.isStar = false;
  19596. this.studentEvalDialogVisibleTeacher = true;
  19597. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19598. window.topU.postMessage(
  19599. {
  19600. tools: t + "teacher",
  19601. cid: this.id,
  19602. stage: this.courseType,
  19603. task: this.taskCount,
  19604. tool: i,
  19605. student: this.sStudent,
  19606. },
  19607. "*"
  19608. );
  19609. }else if (t == 72) {
  19610. if (!document.fullscreenElement) {
  19611. this.enterFullScreen();
  19612. }
  19613. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19614. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19615. }
  19616. },
  19617. openCocoPi(tool, i, uid, uname) {
  19618. let student = {
  19619. userid: uid,
  19620. student: uname,
  19621. };
  19622. if (tool == 57) {
  19623. window.topU.postMessage(
  19624. {
  19625. tools: tool + "teacher",
  19626. cid: this.id,
  19627. stage: this.courseType,
  19628. task: this.taskCount,
  19629. tool: i,
  19630. student: student,
  19631. },
  19632. "*"
  19633. );
  19634. }
  19635. },
  19636. setRightAnswer(s, i, j) {
  19637. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19638. if (
  19639. this.sentenceList[i].chooseSenList[q] == undefined ||
  19640. this.sentenceList[i].chooseSenList[q] == ""
  19641. ) {
  19642. this.sentenceList[i].chooseSenList[q] = s;
  19643. this.sentenceList[i].addChangeSen[j] = "";
  19644. break;
  19645. }
  19646. }
  19647. this.$forceUpdate();
  19648. },
  19649. returnCard(r, i, j) {
  19650. var a = this.sentenceList[i].addSentence.indexOf(r);
  19651. this.sentenceList[i].chooseSenList[j] = "";
  19652. this.sentenceList[i].addChangeSen[a] = r;
  19653. this.$forceUpdate();
  19654. },
  19655. // addSentenceTool() {
  19656. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19657. // this.taskCount
  19658. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19659. // this.sentenceList = [
  19660. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19661. // ];
  19662. // this.dialogVisibleSentence = false;
  19663. // },
  19664. toolsCount(a, t) {
  19665. let params = {
  19666. cid: this.id,
  19667. chid: this.courseType,
  19668. uid: this.userid,
  19669. tid: t,
  19670. count: a,
  19671. };
  19672. this.ajax
  19673. .get(this.$store.state.api + "insertToolsCount", params)
  19674. .then((res) => {
  19675. this.selectCount();
  19676. })
  19677. .catch((err) => {
  19678. console.error(err);
  19679. });
  19680. },
  19681. updateCount(c, t) {
  19682. c++;
  19683. let params = {
  19684. cid: this.id,
  19685. chid: this.courseType,
  19686. uid: this.userid,
  19687. tid: t,
  19688. count: c,
  19689. };
  19690. this.ajax
  19691. .get(this.$store.state.api + "updateToolsCount", params)
  19692. .then((res) => {
  19693. this.selectCount();
  19694. })
  19695. .catch((err) => {
  19696. console.error(err);
  19697. });
  19698. },
  19699. checkEva() {
  19700. if (this.evalua != "") {
  19701. for (var i = 0; i < this.evaJuri.length; i++) {
  19702. if (this.evalua == this.evaJuri[i].id) {
  19703. this.eTitle = this.evaJuri[i].title;
  19704. this.eJson = JSON.parse(this.evaJuri[i].content);
  19705. }
  19706. }
  19707. this.$forceUpdate();
  19708. setTimeout(() => {
  19709. this.setMindData();
  19710. }, 0);
  19711. }
  19712. },
  19713. selectEva() {
  19714. let params = {
  19715. oid: this.oid,
  19716. };
  19717. this.ajax
  19718. .get(this.$store.state.api + "selectAllEvaluation", params)
  19719. .then((res) => {
  19720. this.evaJuri = res.data[0];
  19721. })
  19722. .catch((err) => {
  19723. console.error(err);
  19724. });
  19725. },
  19726. setMindData() {
  19727. this.data.data = [];
  19728. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19729. let _eJson = Object.keys(this.eJson);
  19730. let _e = this.eJson;
  19731. for (let i = 0; i < _eJson.length; i++) {
  19732. let element = _e[_eJson[i]];
  19733. this.data.data.push({
  19734. id: element.id,
  19735. parentid: "root",
  19736. topic: element.name,
  19737. });
  19738. let _eJsonc = Object.keys(element.child);
  19739. let _e2 = element.child;
  19740. for (let j = 0; j < _eJsonc.length; j++) {
  19741. let _ec = _e2[_eJsonc[j]];
  19742. this.data.data.push({
  19743. id: _ec.id,
  19744. parentid: element.id,
  19745. topic: _ec.name,
  19746. });
  19747. let _eJsonz = Object.keys(_ec.child);
  19748. let _e3 = _ec.child;
  19749. for (let z = 0; z < _eJsonz.length; z++) {
  19750. let _ez = _e3[_eJsonz[z]];
  19751. this.data.data.push({
  19752. id: _ez.id,
  19753. parentid: _ec.id,
  19754. topic: _ez.name,
  19755. });
  19756. }
  19757. }
  19758. }
  19759. this.$forceUpdate();
  19760. },
  19761. checkFileFull(type, url) {
  19762. this.fullDialogVisible = true;
  19763. this.fulltype = type;
  19764. this.fullUrl = url;
  19765. },
  19766. async checkFileFull1(t, f) {
  19767. this.fullDialogVisible = true;
  19768. if (t == 6) {
  19769. this.fulltype = 1;
  19770. console.log('checkFileFull1',f);
  19771. this.fullUrl = JSON.parse(JSON.stringify(f));
  19772. } else if (t == 8) {
  19773. this.fulltype = 2;
  19774. this.fullUrl = f.url;
  19775. } else if (t == 16) {
  19776. this.fulltype = 16;
  19777. this.fullUrl = f.url;
  19778. } else if (t == 15) {
  19779. this.fulltype = 4;
  19780. this.fullUrl = f.url;
  19781. } else if (
  19782. t == 3 &&
  19783. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19784. "PDF"
  19785. ) {
  19786. this.fulltype = 3;
  19787. this.fullUrl = f.url;
  19788. } else if (t == 3) {
  19789. this.fulltype = 2;
  19790. let _uuurl = await this.checkLink(f.url);
  19791. console.log(_uuurl)
  19792. this.fullUrl =
  19793. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19794. }
  19795. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19796. },
  19797. openSname(n, id, i, uid) {
  19798. this.snameWid = id;
  19799. this.worksSName = n;
  19800. this.worksSid = uid == n ? "" : uid;
  19801. this.toolindex = i;
  19802. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19803. if (!this.uploadCid) {
  19804. this.$message.error(
  19805. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19806. );
  19807. return;
  19808. }
  19809. this.selectUploadStudent(1);
  19810. },
  19811. updateName() {
  19812. let params = {
  19813. n: this.worksSName,
  19814. cid: this.snameWid,
  19815. };
  19816. this.ajax
  19817. .get(this.$store.state.api + "updateCourseWorksName", params)
  19818. .then((res) => {
  19819. this.$message({
  19820. message: "修改成功",
  19821. type: "success",
  19822. });
  19823. this.dialogVisibleSname = false;
  19824. this.getCourseDetail(2);
  19825. this.snameWid = "";
  19826. this.worksSName = "";
  19827. })
  19828. .catch((err) => {
  19829. console.error(err);
  19830. });
  19831. },
  19832. downloadFile2(f) {
  19833. // const loading = this.$loading.service({
  19834. // background: "rgba(255, 255, 255, 0.7)",
  19835. // target: document.body,
  19836. // text: "文件加载中...",
  19837. // });
  19838. // let url2 = f.url;
  19839. // let _url2 = "";
  19840. // if (
  19841. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19842. // ) {
  19843. // _url2 = url2.split(
  19844. // "https://view.officeapps.live.com/op/view.aspx?src="
  19845. // )[1];
  19846. // } else {
  19847. // _url2 = url2;
  19848. // }
  19849. // let params = {
  19850. // url: _url2,
  19851. // name: f.name,
  19852. // };
  19853. // this.ajax
  19854. // .get(this.$store.state.api + "download", params)
  19855. // .then((res) => {
  19856. // loading.close();
  19857. // let content = res.data.data.data;
  19858. // let ab = new ArrayBuffer(content.length);
  19859. // let view = new Uint8Array(ab);
  19860. // for (var i = 0; i < content.length; ++i) {
  19861. // view[i] = content[i];
  19862. // }
  19863. // let elink = document.createElement("a");
  19864. // elink.download = f.name;
  19865. // elink.style.display = "none";
  19866. // let blob = new Blob([ab], {
  19867. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19868. // });
  19869. // elink.href = URL.createObjectURL(blob);
  19870. // document.body.appendChild(elink);
  19871. // elink.click();
  19872. // document.body.removeChild(elink);
  19873. // })
  19874. // .catch((err) => {
  19875. // loading.close();
  19876. // console.error(err);
  19877. // });
  19878. var credentials = {
  19879. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19880. secretAccessKey: "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",
  19881. }; //秘钥形式的登录上传
  19882. window.AWS.config.update(credentials);
  19883. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19884. let url2 = f.url;
  19885. let _url2 = "";
  19886. if (
  19887. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19888. ) {
  19889. _url2 = url2.split(
  19890. "https://view.officeapps.live.com/op/view.aspx?src="
  19891. )[1];
  19892. } else {
  19893. _url2 = url2;
  19894. }
  19895. let _this = this;
  19896. _this.downLoading = true
  19897. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19898. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19899. var params = {
  19900. Bucket: "ccrb",
  19901. Key: name
  19902. };
  19903. s3.getObject(params, function (err, data) {
  19904. _this.downLoading = false
  19905. if (err) console.log(err, err.stack); // an error occurred
  19906. else {
  19907. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19908. let a = document.createElement("a");
  19909. a.name = f.name;
  19910. a.href = url;
  19911. a.download = f.name;
  19912. a.click();
  19913. console.log(data);
  19914. } // sxuccessful response
  19915. });
  19916. return;
  19917. let url = f.url;
  19918. let _url = "";
  19919. if (
  19920. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19921. ) {
  19922. _url = url.split(
  19923. "https://view.officeapps.live.com/op/view.aspx?src="
  19924. )[1];
  19925. } else {
  19926. _url = url;
  19927. }
  19928. _this.downLoading = true
  19929. // const loading = _this.$loading.service({
  19930. // background: "rgba(255, 255, 255, 0.7)",
  19931. // target: document.body,
  19932. // text: "文件加载中...",
  19933. // });
  19934. let x = new XMLHttpRequest();
  19935. x.open("GET", _url, true);
  19936. x.responseType = "blob";
  19937. x.onload = function () {
  19938. _this.downLoading = false
  19939. // loading.close();
  19940. let url = window.URL.createObjectURL(new Blob([x.response]));
  19941. let a = document.createElement("a");
  19942. a.name = f.name;
  19943. a.href = url;
  19944. a.download = f.name;
  19945. a.click();
  19946. };
  19947. x.send();
  19948. },
  19949. downloadFile(url,uid) {
  19950. if (this.tType == 1 || this.userid == uid) {
  19951. var credentials = {
  19952. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19953. secretAccessKey: "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",
  19954. }; //秘钥形式的登录上传
  19955. window.AWS.config.update(credentials);
  19956. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19957. let url2 = url;
  19958. let _url2 = "";
  19959. if (
  19960. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19961. ) {
  19962. _url2 = url2.split(
  19963. "https://view.officeapps.live.com/op/view.aspx?src="
  19964. )[1];
  19965. } else {
  19966. _url2 = url2;
  19967. }
  19968. const loading2 = this.$loading.service({
  19969. background: "rgba(255, 255, 255, 0.7)",
  19970. target: document.body,
  19971. text: "文件加载中...",
  19972. });
  19973. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19974. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19975. var params = {
  19976. Bucket: "ccrb",
  19977. Key: name
  19978. };
  19979. s3.getObject(params, function (err, data) {
  19980. loading2.close();
  19981. if (err) console.log(err, err.stack); // an error occurred
  19982. else {
  19983. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19984. let a = document.createElement("a");
  19985. a.name = name;
  19986. a.href = url;
  19987. a.download = name;
  19988. a.click();
  19989. console.log(data);
  19990. } // sxuccessful response
  19991. });
  19992. }
  19993. return;
  19994. let _this = this;
  19995. let _url = "";
  19996. if (
  19997. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19998. ) {
  19999. _url = url.split(
  20000. "https://view.officeapps.live.com/op/view.aspx?src="
  20001. )[1];
  20002. } else {
  20003. _url = url;
  20004. }
  20005. const x = new XMLHttpRequest();
  20006. x.open("GET", _url, true);
  20007. x.responseType = "blob";
  20008. // this.downLoading = true
  20009. const loading = _this.$loading.service({
  20010. background: "rgba(255, 255, 255, 0.7)",
  20011. target: document.body,
  20012. text: "文件加载中...",
  20013. });
  20014. // _this.$message.success("文件下载中...");
  20015. x.onload = function (e) {
  20016. this.downLoading = false
  20017. loading.close();
  20018. let content = x.response;
  20019. let elink = document.createElement("a");
  20020. elink.download = decodeURI(
  20021. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20022. );
  20023. elink.style.display = "none";
  20024. let blob = new Blob([content]);
  20025. elink.href = URL.createObjectURL(blob);
  20026. document.body.appendChild(elink);
  20027. elink.click();
  20028. document.body.removeChild(elink);
  20029. };
  20030. x.send();
  20031. },
  20032. openLine(url) {
  20033. window.open(url);
  20034. },
  20035. resize() {
  20036. if (document.getElementsByClassName("box_course").length) {
  20037. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20038. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20039. if (this.showType == 2 || this.showType == 3) {
  20040. document.getElementsByClassName("navBox")[0].style.height =
  20041. a - 40 + 0+ "px";
  20042. } else {
  20043. document.getElementsByClassName("navBox")[0].style.height =
  20044. a - 40 + "px";
  20045. }
  20046. }
  20047. this.Stbodywidth =
  20048. document.getElementsByClassName("student_body").length &&
  20049. document.getElementsByClassName("student_body")[0].offsetWidth;
  20050. },
  20051. closeDraw() {
  20052. this.bg = null;
  20053. this.drawShow = false;
  20054. },
  20055. showPicturePaint(url) {
  20056. let params = {
  20057. img: url,
  20058. };
  20059. this.ajax
  20060. .get(this.$store.state.api + "imgToBase64", params)
  20061. .then((res) => {
  20062. this.drawShow = true;
  20063. this.bg = res.data[0].img;
  20064. })
  20065. .catch((err) => {
  20066. console.error(err);
  20067. });
  20068. },
  20069. addImgDraw(base64) {
  20070. let file = { name: "批注图.png" };
  20071. let img = this.dataUrlToFile(base64, file);
  20072. this.beforeUpload1(img, 5);
  20073. },
  20074. addImgDrawImG(url) {
  20075. // console.log(url);
  20076. let params = [
  20077. {
  20078. wid: this.commentDetail.wid,
  20079. img: url,
  20080. },
  20081. ];
  20082. this.ajax
  20083. .post(this.$store.state.api + "updateCourseWorks", params)
  20084. .then((res) => {
  20085. this.$message({
  20086. message: "提交成功",
  20087. type: "success",
  20088. });
  20089. this.drawShow = false;
  20090. this.bg = "";
  20091. this.selectSWorks();
  20092. this.selectStudent();
  20093. })
  20094. .catch((err) => {
  20095. this.$message.error("提交失败");
  20096. console.error(err);
  20097. });
  20098. },
  20099. deletePicturePaint() {
  20100. this.$confirm("确定删除此批注吗?", "提示", {
  20101. confirmButtonText: "确定",
  20102. cancelButtonText: "取消",
  20103. type: "warning",
  20104. })
  20105. .then(() => {
  20106. let params = [
  20107. {
  20108. wid: this.commentDetail.wid,
  20109. img: "",
  20110. },
  20111. ];
  20112. this.ajax
  20113. .post(this.$store.state.api + "updateCourseWorks", params)
  20114. .then((res) => {
  20115. this.$message({
  20116. message: "删除成功",
  20117. type: "success",
  20118. });
  20119. this.selectSWorks();
  20120. this.selectStudent();
  20121. })
  20122. .catch((err) => {
  20123. this.$message.error("删除失败");
  20124. console.error(err);
  20125. });
  20126. })
  20127. .catch(() => {});
  20128. },
  20129. getAudioVideo(constraintsData) {
  20130. if (navigator.mediaDevices === undefined) {
  20131. navigator.mediaDevices = {};
  20132. }
  20133. if (navigator.mediaDevices.getUserMedia === undefined) {
  20134. navigator.mediaDevices.getUserMedia = function (constraints) {
  20135. // 首先,如果有getUserMedia的话,就获得它
  20136. var getUserMedia =
  20137. navigator.getUserMedia ||
  20138. navigator.webkitGetUserMedia ||
  20139. navigator.mozGetUserMedia ||
  20140. navigator.msGetUserMedia;
  20141. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20142. if (!getUserMedia) {
  20143. return Promise.reject({ code: 404 });
  20144. }
  20145. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20146. return new Promise(function (resolve, reject) {
  20147. getUserMedia.call(navigator, constraints, resolve, reject);
  20148. });
  20149. };
  20150. }
  20151. return navigator.mediaDevices.getUserMedia(constraintsData);
  20152. },
  20153. /**
  20154. * 开始录制
  20155. */
  20156. startRecording(callback) {
  20157. let _function = (screenStream) => {
  20158. this.addStreamStopListener(screenStream, () => {
  20159. console.log("流停止监听");
  20160. this.stopRecording();
  20161. this.$emit("streamStop", {});
  20162. // this.stopRecording();
  20163. });
  20164. var options = {
  20165. type: "video",
  20166. mimeType: "video/webm",
  20167. disableLogs: false,
  20168. getNativeBlob: false, // enable it for longer recordings
  20169. ignoreMutedMedia: false,
  20170. };
  20171. // this.video.srcObject = screenStream;
  20172. this.recorder = RecordRTC(screenStream, options);
  20173. this.recorder.startRecording();
  20174. this.recorder.screen = screenStream;
  20175. this.videoStart = true;
  20176. // callback(true);
  20177. };
  20178. this.getAudioVideo({ audio: true })
  20179. .then((res) => {
  20180. this.captureScreen(_function, true);
  20181. console.log("已点击允许,开启成功");
  20182. })
  20183. .catch((err) => {
  20184. // console.log('浏览器不支持,请更换浏览器')
  20185. // } else {
  20186. this.captureScreen(_function, false);
  20187. console.log("请检查是否存在麦克风");
  20188. });
  20189. },
  20190. /**
  20191. * 停止录制
  20192. */
  20193. stopRecording(callback) {
  20194. this.recorder.stopRecording(() => {
  20195. // this.video.src = this.video.srcObject = null;
  20196. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20197. const url = URL.createObjectURL(this.recorder.getBlob());
  20198. const a = document.createElement("a"); //this.fileName+
  20199. let videoFile = new File(
  20200. [this.recorder.getBlob()],
  20201. this.courseDetail.title + "录屏.mp4",
  20202. {
  20203. type: "video/mp4",
  20204. }
  20205. );
  20206. let downloadUrl = URL.createObjectURL(videoFile);
  20207. if(this.$refs.classRoomHelperRef){
  20208. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20209. }
  20210. document.body.appendChild(a);
  20211. a.style.display = "none";
  20212. a.href = url;
  20213. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20214. a.click();
  20215. this.recorder.screen.stop();
  20216. this.recorder.destroy();
  20217. this.recorder = null;
  20218. this.videoStart = false;
  20219. // callback(false);
  20220. });
  20221. },
  20222. //初始化
  20223. captureScreen(callback, type) {
  20224. if (navigator.getDisplayMedia) {
  20225. //录制结束,文件下载
  20226. navigator
  20227. .getDisplayMedia({
  20228. video: true,
  20229. })
  20230. .then((screenStream) => {
  20231. if (type) {
  20232. navigator.mediaDevices
  20233. .getUserMedia({ audio: true })
  20234. .then((mic) => {
  20235. screenStream.addTrack(mic.getTracks()[0]);
  20236. callback(screenStream);
  20237. });
  20238. } else {
  20239. callback(screenStream);
  20240. }
  20241. })
  20242. .catch(function (error) {
  20243. console.log("error", error);
  20244. });
  20245. } else if (navigator.mediaDevices.getDisplayMedia) {
  20246. navigator.mediaDevices
  20247. .getDisplayMedia({
  20248. video: true,
  20249. })
  20250. .then((screenStream) => {
  20251. if (type) {
  20252. navigator.mediaDevices
  20253. .getUserMedia({ audio: true })
  20254. .then((mic) => {
  20255. screenStream.addTrack(mic.getTracks()[0]);
  20256. callback(screenStream);
  20257. });
  20258. } else {
  20259. callback(screenStream);
  20260. }
  20261. })
  20262. .catch(function (error) {
  20263. console.log("error", error);
  20264. });
  20265. } else {
  20266. var error = "getDisplayMedia API are not supported in this browser.";
  20267. console.log("error", error);
  20268. alert(error);
  20269. }
  20270. },
  20271. //流监听
  20272. addStreamStopListener(stream, callback) {
  20273. stream.addEventListener(
  20274. "ended",
  20275. function () {
  20276. callback();
  20277. callback = function () {};
  20278. },
  20279. false
  20280. );
  20281. stream.addEventListener(
  20282. "inactive",
  20283. function () {
  20284. callback();
  20285. callback = function () {};
  20286. },
  20287. false
  20288. );
  20289. stream.getTracks().forEach(function (track) {
  20290. track.addEventListener(
  20291. "ended",
  20292. function () {
  20293. callback();
  20294. callback = function () {};
  20295. },
  20296. false
  20297. );
  20298. track.addEventListener(
  20299. "inactive",
  20300. function () {
  20301. callback();
  20302. callback = function () {};
  20303. },
  20304. false
  20305. );
  20306. });
  20307. },
  20308. updateGroup() {
  20309. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20310. this.dialogVisibleGroup2 = true;
  20311. },
  20312. numberPan() {
  20313. if (
  20314. /[^\d]/.test(this.groupJson.number) ||
  20315. this.groupJson.number < 2 ||
  20316. this.groupJson.number > 10
  20317. ) {
  20318. this.$message.error("请输入2-10的数字");
  20319. this.groupJson.number = "";
  20320. }
  20321. },
  20322. updateGroupJson() {
  20323. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20324. if (
  20325. this.groupStudentUid[this.toolindex][i].length >
  20326. this.groupJson2.number
  20327. ) {
  20328. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20329. return;
  20330. }
  20331. }
  20332. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20333. this.islock = this.groupJson.islock == 1 ? true : false;
  20334. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20335. this.taskCount
  20336. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20337. let params = [
  20338. {
  20339. cid: this.id,
  20340. chapters: JSON.stringify(this.chapInfoList),
  20341. uid: this.userid,
  20342. unitIndex: this.courseType,
  20343. },
  20344. ];
  20345. this.ajax
  20346. .post(this.$store.state.api + "updateWorkNew4", params)
  20347. .then((res) => {
  20348. this.$message.success("设置成功");
  20349. this.getCourseDetail(2);
  20350. this.dialogVisibleGroup2 = false;
  20351. this.groupJson2 = {};
  20352. this.$forceUpdate();
  20353. })
  20354. .catch((err) => {
  20355. this.$message.error("网络不佳");
  20356. console.error(err);
  20357. });
  20358. },
  20359. lockChair() {
  20360. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20361. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20362. this.updateGroupJson();
  20363. },
  20364. selectGroup(index) {
  20365. this.getCourseDetail(2, index);
  20366. },
  20367. joinGroup(index) {
  20368. if (this.groupJson.islock == 2) {
  20369. this.$message.error("位置已被锁定,无法加入");
  20370. return;
  20371. }
  20372. if (
  20373. this.groupStudent[this.toolindex][index].length >
  20374. this.groupJson.number ||
  20375. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20376. ) {
  20377. this.$message.error("位置已满,无法加入");
  20378. return;
  20379. }
  20380. let params = [
  20381. {
  20382. cid: this.id,
  20383. stage: this.courseType,
  20384. task: this.taskCount,
  20385. tool: this.toolindex,
  20386. g: index,
  20387. uid: this.userid,
  20388. },
  20389. ];
  20390. this.ajax
  20391. .post(this.$store.state.api + "joinGroup", params)
  20392. .then((res) => {
  20393. this.$message.success("加入成功");
  20394. this.getCourseDetail(2);
  20395. })
  20396. .catch((err) => {
  20397. this.$message.error("网络不佳");
  20398. console.error(err);
  20399. });
  20400. },
  20401. exitGroup(id) {
  20402. if (this.groupJson.islock == 2) {
  20403. this.$message.error("位置已被锁定,无法退出");
  20404. return;
  20405. }
  20406. let params = [
  20407. {
  20408. gid: id,
  20409. },
  20410. ];
  20411. this.ajax
  20412. .post(this.$store.state.api + "exitGroup", params)
  20413. .then((res) => {
  20414. this.$message.success("退出成功");
  20415. this.getCourseDetail(2);
  20416. })
  20417. .catch((err) => {
  20418. this.$message.error("网络不佳");
  20419. console.error(err);
  20420. });
  20421. },
  20422. groupUpload(index, task, gindex) {
  20423. this.taskCount = task;
  20424. this.toolindex = index;
  20425. this.groupIndex = gindex;
  20426. this.dialogVisibleGroupWork = true;
  20427. },
  20428. updateGroupChair(user) {
  20429. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20430. el.label = index;
  20431. return index != user.group;
  20432. });
  20433. this.updateGroupUser = user;
  20434. this.dialogVisibleUpdateGroup = true;
  20435. },
  20436. updateChair() {
  20437. if (
  20438. this.groupStudent[this.toolindex][this.checkChair].length >
  20439. this.groupJson.number ||
  20440. this.groupStudent[this.toolindex][this.checkChair].length ==
  20441. this.groupJson.number
  20442. ) {
  20443. this.$message.error("位置已满,无法加入");
  20444. return;
  20445. }
  20446. let params = [
  20447. {
  20448. cid: this.id,
  20449. stage: this.courseType,
  20450. task: this.taskCount,
  20451. tool: this.toolindex,
  20452. g: this.checkChair,
  20453. uid: this.updateGroupUser.userid,
  20454. },
  20455. ];
  20456. this.ajax
  20457. .post(this.$store.state.api + "joinGroup", params)
  20458. .then((res) => {
  20459. this.$message.success("修改成功");
  20460. this.updateGroupUser = {};
  20461. this.checkChair = "";
  20462. this.updateGroupArray = {};
  20463. this.dialogVisibleUpdateGroup = false;
  20464. this.getCourseDetail(2);
  20465. })
  20466. .catch((err) => {
  20467. this.$message.error("网络不佳");
  20468. console.error(err);
  20469. });
  20470. },
  20471. deleteGroupChair(gindex) {
  20472. this.checkDeleteGroup = [];
  20473. this.deleteGroupUser = JSON.parse(
  20474. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20475. );
  20476. this.deleteGroupArray = this.groupJson.group[gindex];
  20477. this.groupIndex = gindex;
  20478. this.dialogVisibleDeleteGroup = true;
  20479. },
  20480. async deleteChair() {
  20481. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20482. const gid =
  20483. this.groupStudent[this.toolindex][this.groupIndex][
  20484. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20485. this.checkDeleteGroup[i]
  20486. )
  20487. ];
  20488. let params = [
  20489. {
  20490. gid: gid.id,
  20491. },
  20492. ];
  20493. var a = await this.deleteChairA(params);
  20494. if (i == this.checkDeleteGroup.length - 1) {
  20495. this.$message.success("退出成功");
  20496. this.dialogVisibleDeleteGroup = false;
  20497. this.deleteGroupUser = [];
  20498. this.deleteGroupArray = {};
  20499. this.groupIndex = "";
  20500. this.checkDeleteGroup = [];
  20501. this.getCourseDetail(2);
  20502. }
  20503. }
  20504. },
  20505. deleteChairA(params) {
  20506. return new Promise((resolve, reject) => {
  20507. this.ajax
  20508. .post(this.$store.state.api + "exitGroup", params)
  20509. .then((res) => {
  20510. resolve(1);
  20511. })
  20512. .catch((err) => {
  20513. this.$message.error("网络不佳");
  20514. console.error(err);
  20515. });
  20516. });
  20517. },
  20518. contract(i) {
  20519. if (this.isCloseList[i].isClose == 0) {
  20520. this.isCloseList[i].isClose = 1;
  20521. } else {
  20522. this.isCloseList[i].isClose = 0;
  20523. }
  20524. this.$forceUpdate();
  20525. },
  20526. openWordCloud(toolindex) {
  20527. this.wordCloudData = '';
  20528. let array = [];
  20529. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20530. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20531. array.push({ name: works });
  20532. }
  20533. if (this.isGroup) {
  20534. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20535. let works = this.courseGroup.group[i].works[toolindex];
  20536. for (var j = 0; j < works.length; j++) {
  20537. let answer = JSON.parse(works[j].works)[0].answer;
  20538. array.push({ name: answer });
  20539. }
  20540. }
  20541. }
  20542. let _result = ''
  20543. array.forEach(e=>{
  20544. _result +=e.name+','
  20545. })
  20546. this.wordCloudData = _result;
  20547. this.dialogVisibleWordCloud = true;
  20548. this.wordCloudKey += 1;
  20549. },
  20550. uploadWorks(i) {
  20551. this.$confirm("确定导出作业吗?", "提示", {
  20552. confirmButtonText: "确定",
  20553. cancelButtonText: "取消",
  20554. type: "warning",
  20555. })
  20556. .then(() => {
  20557. const loading = this.$loading.service({
  20558. background: "rgba(255, 255, 255, 0.7)",
  20559. target: document.body,
  20560. text: "文件加载中...",
  20561. });
  20562. const _worksStudent = this.worksStudent;
  20563. let url = [];
  20564. var counts = {};
  20565. for (var l = 0; l < _worksStudent[i].length; l++) {
  20566. var item = _worksStudent[i][l];
  20567. var name = item.sName;
  20568. if (!counts.hasOwnProperty(name)) {
  20569. counts[name] = 0;
  20570. } else {
  20571. counts[name]++;
  20572. }
  20573. if (counts[name] > 0) {
  20574. item.sName += " (" + counts[name] + ")";
  20575. }
  20576. }
  20577. for (var l = 0; l < _worksStudent[i].length; l++) {
  20578. var item = _worksStudent[i][l];
  20579. if (
  20580. item.works.indexOf(
  20581. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20582. ) !== -1 &&
  20583. item.works.indexOf("img") === -1
  20584. ) {
  20585. url.push({ name: item.sName, url: item.works });
  20586. }
  20587. }
  20588. // var toolList = [
  20589. // { name: "电子白板", tool: 1 },
  20590. // { name: "思维导图", tool: 3 },
  20591. // { name: "协同文档", tool: 6 },
  20592. // { name: "思维网格", tool: 7 },
  20593. // { name: "素材库", tool: 8 },
  20594. // { name: "学习资料", tool: 17 },
  20595. // { name: "便签", tool: 2 },
  20596. // { name: "问卷调查", tool: 4 },
  20597. // { name: "选择题", tool: 45 },
  20598. // { name: "倒计时", tool: 10 },
  20599. // { name: "问答", tool: 15 },
  20600. // { name: "课程设计", tool: 26 },
  20601. // { name: "训练服务器", tool: 18 },
  20602. // { name: "作业提交", tool: 16 },
  20603. // { name: "批量上传", tool: 50 },
  20604. // { name: "AIoT Blockly", tool: 21 },
  20605. // { name: "AI Python", tool: 23 },
  20606. // { name: "AI Blockly", tool: 24 },
  20607. // { name: "目标管理", tool: 25 },
  20608. // { name: "数学画板", tool: 31 },
  20609. // { name: "翻译", tool: 28 },
  20610. // { name: "魔盒识字", tool: 37 },
  20611. // { name: "数学画板", tool: 31 },
  20612. // { name: "24点", tool: 38 },
  20613. // { name: "GeoGebra", tool: 39 },
  20614. // { name: "源码编辑", tool: 32 },
  20615. // { name: "个人评价", tool: 40 },
  20616. // { name: "选择匹配", tool: 41 },
  20617. // { name: "汉字宫", tool: 44 },
  20618. // { name: "排序", tool: 47 },
  20619. // { name: "表格", tool: 48 },
  20620. // { name: "文档", tool: 52 },
  20621. // { name: "学生分组", tool: 49 },
  20622. // { name: "CocoPi", tool: 57 },
  20623. // { name: "模拟驾驶", tool: 58 },
  20624. // { name: "路径搜索", tool: 59 },
  20625. // { name: "深度学习", tool: 60 },
  20626. // { name: "全历史", tool: 61 },
  20627. // { name: "交互视频", tool: 62 },
  20628. // { name: "海龟编程", tool: 63 },
  20629. // { name: "挑人", tool: 65 },
  20630. // { name: "公式编辑", tool: 66 },
  20631. // { name: "分子结构", tool: 67 },
  20632. // { name: "时间轴", tool: 68 },
  20633. // ];
  20634. // var toolName = "";
  20635. // for(var w = 0;w<toolList.length;w++){
  20636. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20637. // toolName = toolList[w].name;
  20638. // }
  20639. // }
  20640. console.log(url);
  20641. this.downLoadAll(url, loading);
  20642. })
  20643. .catch(() => {});
  20644. },
  20645. downLoadAll(url, loading) {
  20646. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20647. const zip = new JSZip();
  20648. const cache = {};
  20649. const promises = [];
  20650. data.forEach((item) => {
  20651. const promise = getFile(item.url).then((data) => {
  20652. if (data.data != 1) {
  20653. // 下载文件, 并存成ArrayBuffer对象
  20654. const file_name =
  20655. item.name +
  20656. "." +
  20657. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20658. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20659. cache[file_name] = data.data;
  20660. }
  20661. });
  20662. promises.push(promise);
  20663. });
  20664. Promise.all(promises).then(() => {
  20665. zip.generateAsync({ type: "blob" }).then((content) => {
  20666. // 生成二进制流
  20667. FileSaver.saveAs(
  20668. content,
  20669. this.courseDetail.title + "-" + "作业提交工具.zip"
  20670. ); // 利用file-saver保存文件 自定义文件名
  20671. setTimeout(() => {
  20672. loading.close();
  20673. }, 2000);
  20674. });
  20675. });
  20676. },
  20677. pickStudent(stu) {
  20678. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20679. return;
  20680. }
  20681. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20682. confirmButtonText: "确定",
  20683. cancelButtonText: "取消",
  20684. type: "warning",
  20685. })
  20686. .then(() => {
  20687. let params = [
  20688. {
  20689. uid: stu.userid,
  20690. cid: this.id,
  20691. stage: this.courseType,
  20692. task: this.taskCount,
  20693. tool: this.toolindex,
  20694. },
  20695. ];
  20696. this.ajax
  20697. .post(this.$store.state.api + "updateCoursePick", params)
  20698. .then((res) => {
  20699. this.$message.success("操作成功");
  20700. this.getPick();
  20701. })
  20702. .catch((err) => {
  20703. this.$message.error("网络不佳");
  20704. console.error(err);
  20705. });
  20706. })
  20707. .catch(() => {});
  20708. },
  20709. selectUser(){
  20710. let params = {
  20711. userid: this.userid,
  20712. };
  20713. this.ajax
  20714. .get(this.$store.state.api + "selectUser", params)
  20715. .then((res) => {
  20716. this.userMes = res.data[0];
  20717. })
  20718. .catch((err) => {
  20719. console.error(err);
  20720. });
  20721. },
  20722. setEngText(i){
  20723. this.newEngIndex = i;
  20724. this.$forceUpdate();
  20725. },
  20726. addCorrect(){
  20727. this.$confirm("你确定提交批改嘛?", "提示", {
  20728. confirmButtonText: "确定",
  20729. showCancelButton: false,
  20730. closeOnClickModal: false,
  20731. type: "warning",
  20732. })
  20733. .then(() => {
  20734. let params = {
  20735. cid: this.id,
  20736. s: parseInt(this.courseType),
  20737. t: this.taskCount,
  20738. tool: this.toolindex,
  20739. wid: this.engWid,
  20740. c: this.userid,
  20741. 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) : "",
  20742. };
  20743. this.ajax
  20744. .get(this.$store.state.api + "addEngC", params)
  20745. .then((res) => {
  20746. this.$message.success("提交成功");
  20747. this.engUpdateDialogVisible = false;
  20748. })
  20749. .catch((err) => {
  20750. console.error(err);
  20751. });
  20752. })
  20753. .catch(() => {});
  20754. },
  20755. selectEngC(id,z){
  20756. let params = {
  20757. workid: id,
  20758. };
  20759. this.ajax
  20760. .get(this.$store.state.api + "selectEngC", params)
  20761. .then((res) => {
  20762. if(res.data[0].length == 0){
  20763. this.newEnglishList.engTitle = z.engTitle;
  20764. this.newEnglishList.engText = z.engText;
  20765. }else{
  20766. var a = res.data[0];
  20767. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20768. if(this.userMes[0].type == 2){
  20769. var snum = 0;
  20770. for(var i = 0;i<a.length;i++){
  20771. if(this.userMes[0].userid == a[i].correct){
  20772. this.newEnglishList = JSON.parse(a[i].cWork);
  20773. snum = 1;
  20774. }
  20775. }
  20776. if(snum == 0){
  20777. this.newEnglishList = { engTitle:"",engText:"" };
  20778. this.newEnglishList.engTitle = z.engTitle;
  20779. this.newEnglishList.engText = z.engText;
  20780. }
  20781. }else if(this.userMes[0].type == 1){
  20782. var num = 0;
  20783. for(var w= 0;w<a.length;w++){
  20784. if(this.userMes[0].userid == a[w].correct){
  20785. num = 1;
  20786. }
  20787. }
  20788. if(num == 0){
  20789. this.isNoUserid = true;
  20790. var c = JSON.parse(JSON.stringify(z));
  20791. this.oldEnglishJson1 = c;
  20792. }else{
  20793. this.isNoUserid = false;
  20794. }
  20795. var b = a.sort((item, index) => {
  20796. console.log(item)
  20797. if (item.correct === this.userMes[0].userid) {
  20798. return -1; // 将a移到前面
  20799. } else if (index.correct === this.userMes[0].userid) {
  20800. return 1; // 将b移到前面
  20801. } else {
  20802. return 0; // 保持默认顺序
  20803. }
  20804. });
  20805. for(var p = 0;p<b.length;p++){
  20806. for(var y = 0;y<ppp.length;y++){
  20807. if(b[p].id == ppp[y].id){
  20808. b[p].cWork = JSON.parse(ppp[y].cWork);
  20809. break
  20810. }
  20811. }
  20812. }
  20813. this.newEnglishList1 = b;
  20814. }
  20815. }
  20816. this.greyType = false;
  20817. setTimeout(() => {
  20818. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20819. if(this.newEnglishList1.length > 0){
  20820. if(this.isNoUserid == true){
  20821. this.engListLength = this.newEnglishList1.length + 1;
  20822. this.newEngIndex = -1;
  20823. }else{
  20824. this.engListLength = this.newEnglishList1.length;
  20825. this.newEngIndex = 0;
  20826. }
  20827. }
  20828. if(this.userMes[0].type == 2){
  20829. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20830. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20831. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20832. }else if(this.newEngIndex == -1){
  20833. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20834. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20835. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20836. }
  20837. }, 500);
  20838. this.engUpdateDialogVisible = true;
  20839. this.$forceUpdate();
  20840. })
  20841. .catch((err) => {
  20842. console.error(err);
  20843. });
  20844. },
  20845. getPick() {
  20846. let params = {
  20847. cid: this.id,
  20848. };
  20849. this.ajax
  20850. .get(this.$store.state.api + "getPick", params)
  20851. .then((res) => {
  20852. let array = [];
  20853. for (var i = 0; i < res.data[0].length; i++) {
  20854. array.push(res.data[0][i].userid);
  20855. }
  20856. this.isPickStudent = array;
  20857. if (array.indexOf(this.userid) !== -1) {
  20858. this.$confirm("你被老师选到啦!", "提示", {
  20859. confirmButtonText: "确定",
  20860. showCancelButton: false,
  20861. closeOnClickModal: false,
  20862. type: "warning",
  20863. })
  20864. .then(() => {
  20865. let pa = [
  20866. {
  20867. uid: this.userid,
  20868. cid: this.id,
  20869. },
  20870. ];
  20871. this.ajax
  20872. .post(this.$store.state.api + "deletePick", pa)
  20873. .then((res) => {
  20874. this.getPick();
  20875. })
  20876. .catch((err) => {
  20877. this.$message.error("网络不佳");
  20878. console.error(err);
  20879. });
  20880. })
  20881. .catch(() => {});
  20882. }
  20883. })
  20884. .catch((err) => {
  20885. this.$message.error("网络不佳");
  20886. console.error(err);
  20887. });
  20888. },
  20889. foldEva() {
  20890. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20891. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20892. } else {
  20893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20894. setTimeout(() => {
  20895. this.checkEva();
  20896. setTimeout(() => {
  20897. this.checkEva();
  20898. }, 500);
  20899. }, 0);
  20900. }
  20901. this.$forceUpdate();
  20902. },
  20903. panToolHeight(tool) {
  20904. var _tool = document.querySelectorAll('#'+tool)[0]
  20905. var _toolA = _tool ? _tool.offsetHeight : 0
  20906. var _toolC = 0
  20907. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20908. let boolean2 = (_toolA > _toolC) ? true : false
  20909. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20910. this.$forceUpdate();
  20911. },
  20912. async checkLink(url) {
  20913. // console.log(url)
  20914. let _url = url
  20915. try {
  20916. const response = await fetch(url);
  20917. if(!response.ok){
  20918. _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]))
  20919. }
  20920. // console.log(response.ok)
  20921. } catch (error) {
  20922. console.error('Error checking link:', error);
  20923. // console.log(false)
  20924. _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]))
  20925. }
  20926. // console.log(_url)
  20927. return _url
  20928. },
  20929. getScoreList(){
  20930. let params = {
  20931. cid: this.id,
  20932. };
  20933. this.ajax
  20934. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20935. .then((res) => {
  20936. let result = res.data;
  20937. this.scoreList.datalist = result[0];
  20938. this.scoreList.isScoreList = result[1];
  20939. })
  20940. .catch((err) => {
  20941. console.error(err);
  20942. });
  20943. },
  20944. setClassRoomHelperWidth(width){
  20945. this.classRoomHelperWidth = width
  20946. },
  20947. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20948. this.$refs.choseWorksDetailDialogRef.open({
  20949. toolType:tooc,
  20950. tType: this.tType,
  20951. toolIndex: toolIndex
  20952. });
  20953. this.changeSplitScreenBehavior({
  20954. code: 1,
  20955. form: {
  20956. toolType:tooc,
  20957. toolIndex: toolIndex,
  20958. courseType: this.courseType,
  20959. taskCount: this.taskCount,
  20960. type: 0
  20961. }
  20962. });
  20963. },
  20964. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20965. this.$refs.statisticalAnalysisRef.open({
  20966. worksStudent: this.worksStudent[toolIndex],
  20967. tType: this.tType,
  20968. toolIndex: toolIndex
  20969. });
  20970. this.changeSplitScreenBehavior({
  20971. code: 2,
  20972. form: {
  20973. toolType:4,
  20974. courseType: this.courseType,
  20975. taskCount: this.taskCount,
  20976. toolIndex: toolIndex,
  20977. type: 0
  20978. }
  20979. });
  20980. },
  20981. statisticalAnalysisRefresh(toolIndex) {
  20982. this.$refs.statisticalAnalysisRef.refreshData({
  20983. worksStudent: this.worksStudent[toolIndex],
  20984. tType: this.tType,
  20985. toolIndex: toolIndex
  20986. });
  20987. },
  20988. async splitScreenBehavior(type = 0) {
  20989. // return;
  20990. if (this.splitScreenData.loading)
  20991. return this.$message.info("操作过快,请稍等");
  20992. if (type == 0) {
  20993. //关闭分屏
  20994. this.splitScreenData.isOpen = false;
  20995. // this.splitScreenData.userId = "";
  20996. // this.splitScreenData.uid = "";
  20997. this.splitScreenData.behavior = null;
  20998. await this.updateSplitScreenData(1);
  20999. this.$message.success("已关闭分屏模式");
  21000. this.studentFreePreview(false);
  21001. this.OpenJobPreview(false);
  21002. // this.followingMode(false);
  21003. } else if (type == 1) {
  21004. //开启分屏
  21005. this.splitScreenData.isOpen = true;
  21006. this.splitScreenData.userId = this.userid;
  21007. this.splitScreenData.uid = this.splitScreenData.myUid;
  21008. this.splitScreenData.behavior = null;
  21009. let status = await this.updateSplitScreenData(0);
  21010. this.changeSplitScreenBehavior({form:{}})
  21011. if (status == 1) {
  21012. this.$message.success("已开启分屏");
  21013. this.studentFreePreview(false);
  21014. this.OpenJobPreview(true);
  21015. // this.followingMode(true);
  21016. } else {
  21017. this.splitScreenData.isOpen = false;
  21018. this.splitScreenData.userId = "";
  21019. this.splitScreenData.uid = "";
  21020. this.splitScreenData.behavior = null;
  21021. this.$message.success("分屏开启失败");
  21022. }
  21023. }
  21024. },
  21025. enterFullScreen() {
  21026. let element = document.documentElement;
  21027. if (element.requestFullscreen) {
  21028. element.requestFullscreen();
  21029. } else if (element.mozRequestFullScreen) { /* Firefox */
  21030. element.mozRequestFullScreen();
  21031. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21032. element.webkitRequestFullscreen();
  21033. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21034. element.msRequestFullscreen();
  21035. }
  21036. },
  21037. exitFullScreen() {
  21038. if (document.exitFullscreen) {
  21039. document.exitFullscreen();
  21040. } else if (document.mozCancelFullScreen) { /* Firefox */
  21041. document.mozCancelFullScreen();
  21042. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21043. document.webkitExitFullscreen();
  21044. } else if (document.msExitFullscreen) { /* IE/Edge */
  21045. document.msExitFullscreen();
  21046. }
  21047. },
  21048. confirmOpen(){
  21049. this.splitScreenData.isOpen = true;
  21050. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21051. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21052. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21053. this.confirmOpenDig = false
  21054. if (!document.fullscreenElement) {
  21055. this.enterFullScreen();
  21056. }
  21057. // if (this.timer2) {
  21058. // clearInterval(this.timer2);
  21059. // this.timer2 = null;
  21060. // }
  21061. // this.timer2 = setInterval(()=> {
  21062. // this.getSplitScreenData();//获取分屏数据
  21063. // }, 1000);
  21064. this.$message.success("分屏模式已开启");
  21065. },
  21066. getSplitScreenData() {
  21067. // return;
  21068. // if (this.tType != 1) return;
  21069. let params = {
  21070. cid: this.id
  21071. };
  21072. this.ajax
  21073. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21074. .then(async res => {
  21075. let data = res.data[0][0]["splitScreenData"];
  21076. console.log("获取了分屏数:", data);
  21077. if (data) {
  21078. data = JSON.parse(data);
  21079. if (
  21080. !this.splitScreenData.isOpen &&
  21081. data.isOpen &&
  21082. this.splitScreenData.myUid == data.uid
  21083. ) {
  21084. this.splitScreenData.isOpen = false;
  21085. this.splitScreenData.userId = "";
  21086. this.splitScreenData.uid = "";
  21087. this.splitScreenData.behavior = null;
  21088. await this.updateSplitScreenData(1);
  21089. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21090. this.confirmOpenDig = true
  21091. this.confirmOpenDigData = data
  21092. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21093. this.splitScreenData.isOpen = false;
  21094. this.splitScreenData.userId = "";
  21095. this.splitScreenData.uid = "";
  21096. this.splitScreenData.behavior = null;
  21097. this.$message.error("已结束分屏模式");
  21098. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21099. this.splitScreenData.isOpen = true;
  21100. this.splitScreenData.uid = data.uid;
  21101. this.splitScreenData.userId = data.userId;
  21102. this.splitScreenData.behavior = data.behavior;
  21103. }
  21104. this.doSplitScreenBehavior();
  21105. } else {
  21106. if (this.splitScreenData.isOpen) {
  21107. this.splitScreenData.isOpen = false;
  21108. this.splitScreenData.userId = "";
  21109. this.splitScreenData.uid = "";
  21110. this.splitScreenData.behavior = null;
  21111. this.$message.error("已结束分屏模式");
  21112. // if (this.timer2) {
  21113. // clearInterval(this.timer2);
  21114. // this.timer2 = null;
  21115. // }
  21116. // this.timer2 = setInterval(()=> {
  21117. // this.getSplitScreenData();//获取分屏数据
  21118. // }, 5000);
  21119. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21120. confirmButtonText: '确定', //确认按钮的文字
  21121. showCancelButton: false, //是否显示取消按钮
  21122. showClose: false, //是否显示关闭按钮
  21123. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21124. type: "warning",
  21125. })
  21126. .then(() => {
  21127. if (document.fullscreenElement) {
  21128. this.exitFullScreen();
  21129. }
  21130. })
  21131. .catch(() => {});
  21132. }
  21133. }
  21134. })
  21135. .catch(e => {
  21136. console.log("获取分屏数出错:", e);
  21137. });
  21138. },
  21139. doSplitScreenBehavior() {
  21140. if (
  21141. this.splitScreenData.isOpen &&
  21142. this.splitScreenData.uid != this.splitScreenData.myUid
  21143. ) {
  21144. let behavior = this.splitScreenData.behavior;
  21145. if (behavior) {
  21146. if (behavior.code === 99) {
  21147. //初始化
  21148. this.fullDialogVisible = false;
  21149. if(this.$refs.choseWorksDetailDialogRef.show){
  21150. this.$refs.choseWorksDetailDialogRef.close();
  21151. }
  21152. if(this.$refs.statisticalAnalysisRef.show){
  21153. this.$refs.statisticalAnalysisRef.close();
  21154. }
  21155. }
  21156. if (behavior.code === 0) {
  21157. //开启内容列表弹窗
  21158. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21159. }else{
  21160. this.fullDialogVisible = false;
  21161. }
  21162. if (behavior.code === 1) {
  21163. //关于选择题的作业详细的操作
  21164. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21165. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21166. this.courseType = behavior.form.courseType;
  21167. this.taskCount = behavior.form.taskCount;
  21168. }
  21169. this.$nextTick(() => {
  21170. if (this.$refs.choseWorksDetailDialogRef.show) {
  21171. //已经打开了
  21172. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21173. } else {
  21174. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21175. }
  21176. });
  21177. }else{
  21178. this.$refs.choseWorksDetailDialogRef.close()
  21179. }
  21180. if(behavior.code === 2){
  21181. if(this.$refs.statisticalAnalysisRef.show){
  21182. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21183. }else{
  21184. this.$refs.statisticalAnalysisRef.open({
  21185. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21186. tType: this.tType,
  21187. toolIndex: behavior.form.toolIndex
  21188. });
  21189. }
  21190. }else{
  21191. this.$refs.statisticalAnalysisRef.close();
  21192. }
  21193. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21194. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21195. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21196. if (behavior.form.courseType != this.courseType ||
  21197. behavior.form.taskCount != this.taskCount ||
  21198. behavior.form.toolType != this.toolindex
  21199. ) {
  21200. var a = document.scrollingElement;
  21201. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21202. if (target) {
  21203. target.scrollIntoView(true);
  21204. setTimeout(()=>{
  21205. let scrollBody = document.querySelector('.body_student').parentElement
  21206. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21207. }, 0);
  21208. // setTimeout(() => {
  21209. // a.scrollTop = 0
  21210. // }, 0);
  21211. }
  21212. }
  21213. if(this.courseType !=behavior.form.courseType){
  21214. this.courseType = behavior.form.courseType;
  21215. }
  21216. if(this.taskCount !=behavior.form.taskCount){
  21217. this.taskCount = behavior.form.taskCount;
  21218. }
  21219. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21220. this.toolindex = behavior.form.toolType;
  21221. }
  21222. // if(behavior.form.navId){
  21223. // this.navId = behavior.form.navId
  21224. // }
  21225. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21226. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21227. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21228. this.getCourseDetail()
  21229. }
  21230. this.setContent2(false)
  21231. }
  21232. } else {
  21233. }
  21234. }
  21235. },
  21236. updateSplitScreenData(empty = 0) {
  21237. return new Promise(resolve => {
  21238. if(this.userid!==this.courseDetail.userid){
  21239. if(!this.courseDetail.userid){
  21240. return setTimeout(()=>{
  21241. this.updateSplitScreenData(empty)
  21242. },2000)
  21243. }
  21244. return;
  21245. };
  21246. if (
  21247. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21248. this.splitScreenData.userId == this.userid
  21249. ) {
  21250. this.splitScreenData.loading = true;
  21251. let params = [
  21252. {
  21253. cid: this.id,
  21254. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21255. }
  21256. ];
  21257. this.ajax
  21258. .post(
  21259. this.$store.state.api + "update_courseSplitScreenData",
  21260. params
  21261. )
  21262. .then(res => {
  21263. this.splitScreenData.loading = false;
  21264. if (res.data == 1) {
  21265. resolve(1);
  21266. console.log("修改分屏数据成功");
  21267. }
  21268. })
  21269. .catch(e => {
  21270. this.splitScreenData.loading = false;
  21271. console.log("修改分屏数据失败", e);
  21272. resoleve(0);
  21273. });
  21274. } else if (empty == 2 && this.tType == 1) {
  21275. let params = [
  21276. {
  21277. cid: this.id,
  21278. nData: ""
  21279. }
  21280. ];
  21281. return this.ajax
  21282. .post(
  21283. this.$store.state.api + "update_courseSplitScreenData",
  21284. params
  21285. )
  21286. .then(_ => resolve(1))
  21287. .catch(_ => resolve(0));
  21288. } else {
  21289. return resolve(0);
  21290. }
  21291. });
  21292. },
  21293. changeSplitScreenBehavior(newValue) {
  21294. if (
  21295. this.splitScreenData.isOpen &&
  21296. this.splitScreenData.uid == this.splitScreenData.myUid
  21297. ) {
  21298. let _behavior = null;
  21299. if(!newValue){
  21300. _behavior = {}
  21301. }else{
  21302. _behavior = newValue
  21303. }
  21304. if(_behavior.form){
  21305. _behavior.form.taskCount = this.taskCount;
  21306. _behavior.form.courseType = this.courseType
  21307. }else{
  21308. _behavior.form = {
  21309. taskCount:this.taskCount,
  21310. courseType:this.courseType
  21311. }
  21312. }
  21313. this.splitScreenData.behavior = _behavior;
  21314. this.updateSplitScreenData(0);
  21315. }
  21316. },
  21317. studentFreePreview(flag) {
  21318. this.IsLookOpen = flag;
  21319. this.followingMode(flag)
  21320. this.updateLookOpen();
  21321. },
  21322. OpenJobPreview(flag) {
  21323. this.sIsOpen = flag;
  21324. this.updateSLook();
  21325. },
  21326. followingMode(flag) {
  21327. this.IsFollow = flag;
  21328. this.updateFollow();
  21329. }
  21330. },
  21331. directives: {
  21332. // 使用局部注册指令的方式
  21333. resize: {
  21334. // 指令的名称
  21335. bind(el, binding) {
  21336. // el为绑定的元素,binding为绑定给指令的对象
  21337. let width = "",
  21338. height = "";
  21339. function isReize() {
  21340. const style = document.defaultView.getComputedStyle(el);
  21341. if (width !== style.width || height !== style.height) {
  21342. binding.value(); // 关键
  21343. }
  21344. width = style.width;
  21345. height = style.height;
  21346. }
  21347. el.__vueSetInterval__ = setInterval(isReize, 300);
  21348. },
  21349. unbind(el) {
  21350. clearInterval(el.__vueSetInterval__);
  21351. },
  21352. },
  21353. autoHeight: {
  21354. update(el, binding) {
  21355. const { value } = binding
  21356. if (value && typeof value === 'number') {
  21357. el.style.height = `${value}px`
  21358. } else {
  21359. el.style.height = 'auto'
  21360. }
  21361. },
  21362. componentUpdated(el) {
  21363. el.style.height = `${el.scrollHeight + 5}px`
  21364. },
  21365. },
  21366. },
  21367. beforeDestroy() {
  21368. window.onresize = null;
  21369. clearInterval(this.timer);
  21370. this.timer = null;
  21371. clearInterval(this.timer2);
  21372. this.timer2 = null;
  21373. clearInterval(this.opertimer);
  21374. this.opertimer = null;
  21375. this.updateSplitScreenData(1);
  21376. },
  21377. computed: {
  21378. renderedFormula2() {
  21379. return function(val){
  21380. // 处理换行符和HTML实体
  21381. const normalized = val
  21382. .replace(/&amp;/g, '&')
  21383. .replace(/<br\/?>/g, '\n');
  21384. // 匹配行内公式($...$)和块级公式($$...$$)
  21385. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21386. try {
  21387. return katex.renderToString(expr.trim(), {
  21388. displayMode: false,
  21389. throwOnError: false,
  21390. macros: {
  21391. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21392. }
  21393. });
  21394. } catch (e) {
  21395. console.warn('KaTeX渲染失败:', e);
  21396. return `<span style="color:red">${expr}</span>`;
  21397. }
  21398. })
  21399. }
  21400. },
  21401. renderedFormula() {
  21402. return function(val){
  21403. try {
  21404. // 判断是否含有HTML标签,<tag ...>...</tag>
  21405. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21406. if (!hasTag) {
  21407. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21408. // 纯文本,整体渲染
  21409. try {
  21410. return katex.renderToString(val.trim(), {
  21411. throwOnError: false,
  21412. strict: false,
  21413. output: "htmlAndMathml"
  21414. });
  21415. } catch (e) {
  21416. return val; // 渲染失败原样输出
  21417. }
  21418. } else {
  21419. // 有标签,对每个标签内容渲染
  21420. return val.replace(
  21421. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21422. (match, tag, attrs, inner) => {
  21423. let html;
  21424. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21425. try {
  21426. html = katex.renderToString(inner.trim(), {
  21427. throwOnError: false,
  21428. strict: false,
  21429. output: "htmlAndMathml"
  21430. });
  21431. } catch (e) {
  21432. html = inner;
  21433. }
  21434. return `<${tag}${attrs}>${html}</${tag}>`;
  21435. }
  21436. );
  21437. }
  21438. } catch (e) {
  21439. console.error('KaTeX渲染错误:', e);
  21440. return val;
  21441. }
  21442. }
  21443. },
  21444. isAndroid() {
  21445. return /Android/i.test(navigator.userAgent);
  21446. },
  21447. getHeight(){
  21448. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21449. },
  21450. contentConvent() {
  21451. return function (c) {
  21452. return c
  21453. ? c
  21454. .replaceAll(/\r\n/g, "<br/>")
  21455. .replaceAll(/\n/g, "<br/>")
  21456. .replaceAll(/\s/g, "&nbsp")
  21457. : "";
  21458. };
  21459. },
  21460. MarkdownT() {
  21461. return function (c) {
  21462. let md = new MarkdownIt();
  21463. return c
  21464. ? md.render(c) : "";
  21465. };
  21466. },
  21467. commentRight(){
  21468. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21469. return "35px";
  21470. }
  21471. return `calc(${this.classRoomHelperWidth} + 5px)`
  21472. // if(this.$refs["classRoomHelperRef"].type==0){
  21473. // return "100px";
  21474. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21475. // return "502px"
  21476. // }else{
  21477. // return "0px"
  21478. // }
  21479. },
  21480. checkUpload() {
  21481. return function () {
  21482. var studentK = [];
  21483. if (this.plworkFile.length > 0) {
  21484. for (var z = 0; z < this.plworkFile.length; z++) {
  21485. studentK.push(this.plworkFile[z].username);
  21486. }
  21487. studentK = studentK.join(",");
  21488. }
  21489. var a = this.uploadStudentJuri.filter((el) => {
  21490. return studentK.indexOf(el.userid) == -1;
  21491. });
  21492. return a;
  21493. };
  21494. },
  21495. getSName() {
  21496. return function (name) {
  21497. var check = name;
  21498. this.uploadStudentJuri.forEach((el) => {
  21499. if (el.userid == check) {
  21500. check = el.name ? el.name : el.username;
  21501. }
  21502. });
  21503. return check;
  21504. };
  21505. },
  21506. getImgList() {
  21507. return function (val) {
  21508. let srcList = []; // 定义一个数组用来接收后面的img地址
  21509. val.replace(
  21510. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21511. function (match, capture) {
  21512. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21513. srcList.push(capture);
  21514. }
  21515. );
  21516. return srcList;
  21517. };
  21518. },
  21519. retrnToolHeight(){
  21520. return function (tool) {
  21521. var _tool = document.querySelectorAll('#'+tool)[0]
  21522. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21523. };
  21524. },
  21525. Correct() {
  21526. return function (c,d) {
  21527. let w = "";
  21528. let a = this.correctWord;
  21529. for(var k = 0;k<a.length;k++){
  21530. //diffWordsWithSpace
  21531. if(a.length > 1){
  21532. if(a[k].added == true){
  21533. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21534. }else if(a[k].removed == true){
  21535. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21536. }else{
  21537. w += '<span>' + a[k].value + '</span>';
  21538. }
  21539. }else{
  21540. w = c
  21541. }
  21542. console.log("👇👇!+++==")
  21543. console.log(w)
  21544. //diffChars方法
  21545. // if(w == ""){
  21546. // if(a.length > 1){
  21547. // if(a[k].added == true){
  21548. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21549. // }else if(a[k].removed == true){
  21550. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21551. // }
  21552. // }else{
  21553. // w = c
  21554. // }
  21555. // }else{
  21556. // if(k == a.length - 1){
  21557. // if(a[k].added == true){
  21558. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21559. // }else if(a[k].removed == true){
  21560. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21561. // }
  21562. // }else{
  21563. // if(a[k].added == true){
  21564. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21565. // }else if(a[k].removed == true){
  21566. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21567. // }
  21568. // }
  21569. // }
  21570. }
  21571. c = w;
  21572. return c;
  21573. };
  21574. },
  21575. },
  21576. mounted() {
  21577. document.body.addEventListener("click", (e) => {
  21578. if (this.isUpdateToolDetail1) {
  21579. this.updateToolDetail(this.toolDetailIndex);
  21580. }
  21581. });
  21582. try {
  21583. if (this.screenType == 2) {
  21584. window.topU.postMessage({ allScreen: 4 }, "*");
  21585. } else if (this.screenType == 3) {
  21586. window.topU.postMessage({ allScreen: 5 }, "*");
  21587. } else if (this.screenType == 1) {
  21588. window.topU.postMessage({ allScreen: 6 }, "*");
  21589. }
  21590. } catch (error) {
  21591. console.log(error)
  21592. }
  21593. this.setOperationTime();
  21594. this.selectEva();
  21595. this.getCourseDetail();
  21596. this.selectCount();
  21597. this.getHomeWork();
  21598. this.selectUser();
  21599. this.getAIJ();
  21600. this.contentDialog = false;
  21601. this.setContent2(true);
  21602. if (this.tType == 4) {
  21603. this.pzDialog = true;
  21604. this.selectPz();
  21605. }
  21606. // 获取评分列表
  21607. this.getScoreList()
  21608. this.updateSplitScreenData(2);
  21609. this.splitScreenData.myUid = uuidv4();
  21610. document.scrollingElement.scrollTop = 0;
  21611. window.addEventListener("resize", () => {
  21612. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21613. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21614. if (this.showType == 2 || this.showType == 3) {
  21615. document.getElementsByClassName("navBox")[0].style.height =
  21616. a - 40 + 0+ "px";
  21617. } else {
  21618. document.getElementsByClassName("navBox")[0].style.height =
  21619. a - 40 + "px";
  21620. }
  21621. });
  21622. let _this = this;
  21623. setTimeout(() => {
  21624. // _this.vedioTime = [];
  21625. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21626. // _this.vedioTime[i] = document.getElementsByClassName(
  21627. // "vjs-duration-display"
  21628. // )[i].textContent;
  21629. // }
  21630. }, 1000);
  21631. },
  21632. };
  21633. </script>
  21634. <style scoped>
  21635. @media screen and (max-width: 1280px) {
  21636. /* .courseIndex > div:first-child(2) {
  21637. width: 15% !important;
  21638. } */
  21639. /* .navText {
  21640. width: 120px !important;
  21641. } */
  21642. .evaCss {
  21643. flex-direction: column !important;
  21644. align-items: center !important;
  21645. }
  21646. .elist_input {
  21647. width: 90% !important;
  21648. }
  21649. .dialog_diy1 >>> .el-dialog {
  21650. width: 100% !important;
  21651. }
  21652. .rightWidthCss {
  21653. width: 100% !important;
  21654. }
  21655. .dialog_diy3 >>> .el-dialog {
  21656. width: 100% !important;
  21657. }
  21658. .addToolCss {
  21659. right: 0 !important;
  21660. width: 100% !important;
  21661. min-width: unset !important;
  21662. }
  21663. }
  21664. .evaCssMax {
  21665. flex-direction: column !important;
  21666. align-items: center !important;
  21667. }
  21668. .dialog_diy >>> .el-dialog {
  21669. margin-top: 10vh !important;
  21670. }
  21671. .body_student {
  21672. width: 77%;
  21673. height: 100%;
  21674. position: absolute;
  21675. left: 22%;
  21676. top: 0;
  21677. }
  21678. .student_head {
  21679. width: 100%;
  21680. margin: 20px auto 0;
  21681. padding-bottom: 20px;
  21682. display: flex;
  21683. flex-direction: column;
  21684. flex-wrap: nowrap;
  21685. align-items: flex-start;
  21686. justify-content: flex-start;
  21687. }
  21688. .pb_left {
  21689. width: 15%;
  21690. margin-right: 10px;
  21691. background: rgb(255, 255, 255);
  21692. position: fixed;
  21693. height: calc(100% - 40px);
  21694. border-radius: 20px;
  21695. padding-bottom: 15px;
  21696. box-sizing: border-box;
  21697. }
  21698. .wheel > img,
  21699. .project > img,
  21700. .star > img,
  21701. .evaluate > img,
  21702. .up_photo > img,
  21703. .chapter_add > img,
  21704. .deleteWord > img,
  21705. .question > img,
  21706. .homework > img {
  21707. width: 100%;
  21708. height: 100%;
  21709. }
  21710. .upCover > img {
  21711. width: 131px;
  21712. height: 69px;
  21713. object-fit: cover;
  21714. }
  21715. .upCover {
  21716. width: calc(100% / 3.5);
  21717. position: relative;
  21718. margin: 0 15px 10px 0;
  21719. display: flex;
  21720. flex-direction: column;
  21721. flex-wrap: nowrap;
  21722. justify-content: center;
  21723. align-content: center;
  21724. align-items: center;
  21725. height: fit-content;
  21726. }
  21727. .upCover2 {
  21728. width: 100%;
  21729. position: relative;
  21730. margin: 0 15px 10px 0;
  21731. display: flex;
  21732. flex-direction: column;
  21733. flex-wrap: nowrap;
  21734. justify-content: center;
  21735. align-content: center;
  21736. align-items: center;
  21737. }
  21738. .upCover2 > img {
  21739. width: 100%;
  21740. height: 90px;
  21741. object-fit: contain;
  21742. }
  21743. .chapter_add {
  21744. width: 120px;
  21745. position: relative;
  21746. text-align: center;
  21747. }
  21748. .isAddThings {
  21749. margin-top: 20px;
  21750. position: relative;
  21751. text-align: center;
  21752. background: #f7f8fa;
  21753. height: 90px;
  21754. width: 90px;
  21755. display: flex;
  21756. flex-direction: column;
  21757. justify-content: center;
  21758. }
  21759. .deleteWord {
  21760. width: 22px;
  21761. height: 22px;
  21762. position: absolute;
  21763. right: -5px;
  21764. top: -5px;
  21765. cursor: pointer;
  21766. }
  21767. .box_course {
  21768. /* width: 60%; */
  21769. width: calc(100% - 300px);
  21770. }
  21771. .wheel {
  21772. width: 100%;
  21773. /* height: 100%; */
  21774. height: 650px;
  21775. }
  21776. .right_box {
  21777. display: flex;
  21778. flex-direction: column;
  21779. margin-left: 30px;
  21780. justify-content: space-around;
  21781. }
  21782. .right_box_title {
  21783. font-size: 23px;
  21784. }
  21785. .people {
  21786. display: flex;
  21787. }
  21788. .student_body {
  21789. width: 100%;
  21790. margin: 0 auto;
  21791. margin-top: 10px;
  21792. padding: 0 0 20px;
  21793. }
  21794. .study_top {
  21795. margin-top: 100px;
  21796. width: 100%;
  21797. height: auto;
  21798. padding-bottom: 20px;
  21799. margin-left: 2px;
  21800. min-height: 90%;
  21801. }
  21802. .study_top .checkbox {
  21803. display: flex;
  21804. align-items: center;
  21805. padding: 15px 0 15px 30px;
  21806. flex: 0 0 auto;
  21807. font-weight: bold;
  21808. border-bottom: 1px solid #eee;
  21809. }
  21810. .study_top .check {
  21811. padding-bottom: 5px;
  21812. text-align: center;
  21813. cursor: pointer;
  21814. height: 30px;
  21815. box-sizing: border-box;
  21816. display: flex;
  21817. }
  21818. .study_top .checked {
  21819. border-bottom: 4px solid #3fc6a0;
  21820. padding-bottom: 5px;
  21821. color: #3fc6a0;
  21822. display: flex;
  21823. height: 35px;
  21824. }
  21825. .study_top .checked > div,
  21826. .study_top .check > div {
  21827. margin-right: 5px;
  21828. }
  21829. .videoTop {
  21830. display: flex;
  21831. flex-direction: row;
  21832. justify-content: space-between;
  21833. background: #fff;
  21834. align-items: center;
  21835. width: 95%;
  21836. padding: 20px;
  21837. }
  21838. .filebox {
  21839. display: flex;
  21840. flex-wrap: wrap;
  21841. flex-direction: column;
  21842. padding: 0 0 5px;
  21843. position: relative;
  21844. }
  21845. .filebox:before {
  21846. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21847. position: absolute;
  21848. top: 20px;
  21849. left: 13px;
  21850. border-left: 2px dotted #cad1dc;
  21851. height: calc(100% - 15px);
  21852. }
  21853. .toolHeng2 > div:last-child::before {
  21854. height: calc(100% - 43px);
  21855. }
  21856. .filebox .tooldetail {
  21857. width: calc(100%);
  21858. margin: 0px 12px;
  21859. padding: 12px;
  21860. line-height: 30px;
  21861. word-break: break-word;
  21862. background: #ffffff;
  21863. border-radius: 8px 8px 8px 8px;
  21864. opacity: 1;
  21865. border: 1px solid #cad1dc;
  21866. overflow:hidden;
  21867. box-sizing:border-box;
  21868. }
  21869. .pb_content >>> .katex {
  21870. font-size: 16px;
  21871. width: 100%;
  21872. white-space: normal;
  21873. }
  21874. .pb_content >>> .katex .base{
  21875. display: inline !important;
  21876. display: contents !important;
  21877. }
  21878. .pb_content >>> .katex .base .cjk_fallback{
  21879. white-space: normal !important;
  21880. display: inline !important;
  21881. }
  21882. .file {
  21883. display: flex;
  21884. flex-direction: column;
  21885. align-items: center;
  21886. justify-content: center;
  21887. cursor: pointer;
  21888. width: 200px;
  21889. }
  21890. .file div {
  21891. margin-top: 10px;
  21892. width: 150px;
  21893. text-align: center;
  21894. overflow: hidden;
  21895. white-space: nowrap;
  21896. text-overflow: ellipsis;
  21897. }
  21898. .media {
  21899. display: flex;
  21900. flex-direction: column;
  21901. align-items: center;
  21902. justify-content: center;
  21903. margin: 0 20px 20px 0;
  21904. cursor: pointer;
  21905. margin: 12px 0 5px 15px;
  21906. overflow: hidden;
  21907. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21908. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21909. box-sizing: border-box;
  21910. }
  21911. .media img {
  21912. height: 90px;
  21913. width: 160px;
  21914. object-fit: cover;
  21915. }
  21916. .media .title {
  21917. padding: 5px;
  21918. text-align: left;
  21919. width: 100%;
  21920. box-sizing: border-box;
  21921. }
  21922. .media .btn {
  21923. width: 100%;
  21924. height: 35px;
  21925. line-height: 35px;
  21926. color: #fff;
  21927. background: #606060;
  21928. text-align: center;
  21929. overflow: hidden;
  21930. white-space: nowrap;
  21931. text-overflow: ellipsis;
  21932. }
  21933. .detail_content_top {
  21934. width: 100%;
  21935. padding: 25px 0 25px 0;
  21936. }
  21937. .detail_title {
  21938. text-align: center;
  21939. font-size: 24px;
  21940. }
  21941. .detail_time {
  21942. font-size: 13px;
  21943. padding: 15px 0 0 40px;
  21944. }
  21945. .detail_content {
  21946. line-height: 2pc;
  21947. width: 90%;
  21948. margin: 0 auto;
  21949. padding-top: 30px;
  21950. text-indent: 30px;
  21951. overflow: auto;
  21952. height: 200px;
  21953. }
  21954. .score_box >>> .el-rate {
  21955. margin-left: 10px;
  21956. }
  21957. .dialog_change >>> .el-dialog {
  21958. border-radius: 5px;
  21959. }
  21960. .dialog_change >>> .el-dialog__header {
  21961. background: #f2f2f2;
  21962. text-align: center;
  21963. }
  21964. .dialog_change >>> .el-dialog__title {
  21965. line-height: 5px;
  21966. }
  21967. .dialog_change >>> .el-dialog__body {
  21968. background: #fff;
  21969. padding: 10px 20px;
  21970. }
  21971. .score_box {
  21972. display: flex;
  21973. align-items: center;
  21974. margin-bottom: 18px;
  21975. margin-top: 20px;
  21976. }
  21977. .up_photo {
  21978. width: 120px;
  21979. cursor: pointer;
  21980. margin-top: 10px;
  21981. }
  21982. .up_photo2 {
  21983. width: 180px;
  21984. box-sizing: border-box;
  21985. min-width: 180px;
  21986. height: 180px;
  21987. max-height: 180px;
  21988. min-height: 180px;
  21989. cursor: pointer;
  21990. display: flex;
  21991. flex-direction: column;
  21992. align-items: center;
  21993. justify-content: center;
  21994. background: rgb(242, 246, 255);
  21995. /* padding: 25px; */
  21996. margin-bottom: 10px;
  21997. }
  21998. .up_photo2 img {
  21999. width: 50%;
  22000. height: auto;
  22001. }
  22002. .up_photo2 span {
  22003. color: #898989;
  22004. }
  22005. .plworkBox {
  22006. display: flex;
  22007. align-items: center;
  22008. margin-top: 10px;
  22009. flex-wrap: wrap;
  22010. }
  22011. .upload_send {
  22012. margin: 30px auto 30px;
  22013. width: 60%;
  22014. background: #3681fc;
  22015. text-align: center;
  22016. height: 35px;
  22017. line-height: 35px;
  22018. color: #fff;
  22019. border-radius: 5px;
  22020. cursor: pointer;
  22021. }
  22022. .marginT {
  22023. margin-top: 20px;
  22024. }
  22025. .cd_content_steps {
  22026. display: flex;
  22027. width: 90%;
  22028. justify-content: space-around;
  22029. border-top: 1px solid #eeeeee;
  22030. }
  22031. .cd_steps_box {
  22032. display: flex;
  22033. justify-content: center;
  22034. align-items: center;
  22035. flex-direction: column;
  22036. cursor: pointer;
  22037. }
  22038. .first {
  22039. display: flex;
  22040. align-items: center;
  22041. margin: 15px 0 20px 0;
  22042. font-size: 20px;
  22043. }
  22044. .first > div:nth-child(2) {
  22045. font-size: 16px !important;
  22046. padding-left: 10px;
  22047. line-height: 26px;
  22048. box-sizing: border-box;
  22049. }
  22050. .blue_box_one {
  22051. text-align: center;
  22052. color: #fff;
  22053. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22054. border-radius: 7px;
  22055. margin: 10px;
  22056. cursor: pointer;
  22057. width: 95%;
  22058. height: 45px;
  22059. display: flex;
  22060. flex-direction: row;
  22061. justify-content: flex-start;
  22062. align-items: center;
  22063. }
  22064. .blue_box_one > div:nth-child(1) {
  22065. line-height: 30px;
  22066. margin: 0 5px 0 10px;
  22067. width: 30%;
  22068. min-width: 70px;
  22069. border-radius: 4px;
  22070. }
  22071. .blue_box_one > div:nth-child(2) {
  22072. white-space: nowrap;
  22073. text-overflow: ellipsis;
  22074. overflow: hidden;
  22075. word-break: break-all;
  22076. width: 70%;
  22077. text-align: left;
  22078. margin-right: 10px;
  22079. max-width: calc(100% - 85px);
  22080. }
  22081. .blue_box_one > div:nth-child(2):hover {
  22082. overflow: hidden;
  22083. text-overflow: ellipsis;
  22084. white-space: nowrap;
  22085. cursor: pointer;
  22086. }
  22087. .upFile {
  22088. margin: 0 auto;
  22089. width: 120px;
  22090. background: #3681fc;
  22091. color: #fff;
  22092. height: 30px;
  22093. text-align: center;
  22094. line-height: 30px;
  22095. border-radius: 5px;
  22096. font-size: 14px;
  22097. cursor: pointer;
  22098. }
  22099. .courseTitle {
  22100. width: 85%;
  22101. margin: 10px auto 26px auto;
  22102. display: flex;
  22103. flex-direction: row;
  22104. align-items: center;
  22105. justify-content: space-between;
  22106. text-align: center;
  22107. }
  22108. .courseTitle .ctitle {
  22109. font-size: 20px;
  22110. font-weight: bold;
  22111. color: #0e1e33;
  22112. white-space: nowrap;
  22113. overflow: hidden;
  22114. text-overflow: ellipsis;
  22115. }
  22116. .inviteBox {
  22117. font-size: 14px;
  22118. /* margin-top: 5px; */
  22119. color: #00000099;
  22120. text-align: center;
  22121. }
  22122. .courseTitle >>> .el-tooltip {
  22123. width: 100%;
  22124. white-space: nowrap;
  22125. overflow: hidden;
  22126. text-overflow: ellipsis;
  22127. word-break: break-word;
  22128. }
  22129. .ml {
  22130. margin-left: 20px;
  22131. color: #5b7dba;
  22132. border-left: 3px solid #5b7dba;
  22133. padding-left: 5px;
  22134. font-weight: bold;
  22135. }
  22136. .return {
  22137. width: 2rem;
  22138. height: 2rem;
  22139. cursor: pointer;
  22140. }
  22141. .return > img {
  22142. width: 100%;
  22143. height: 100%;
  22144. }
  22145. .returnBtn {
  22146. width: 86px;
  22147. height: 36px;
  22148. background: #3681fc;
  22149. border-radius: 4px;
  22150. color: #fff;
  22151. text-align: center;
  22152. line-height: 36px;
  22153. margin-right: 20px;
  22154. cursor: pointer;
  22155. font-size: 14px;
  22156. font-weight: 400;
  22157. display: flex;
  22158. flex-direction: row;
  22159. flex-wrap: nowrap;
  22160. align-items: center;
  22161. justify-content: center;
  22162. }
  22163. .reBtnIcon,
  22164. .commentIcon,
  22165. .vedioIcon,
  22166. .vedioIcon1 {
  22167. /* width: 36px; */
  22168. height: 36px;
  22169. border-radius: 4px;
  22170. position: relative;
  22171. /* background: #e0eafb; */
  22172. background: #0061ff;
  22173. cursor: pointer;
  22174. margin-right: 12px;
  22175. display: flex;
  22176. align-items: center;
  22177. padding: 0 10px;
  22178. box-sizing: border-box;
  22179. font-size: 14px;
  22180. color: #fff;
  22181. }
  22182. .reBtnIcon::before,
  22183. .commentIcon::before,
  22184. .vedioIcon::before,
  22185. .vedioIcon1::before {
  22186. content: "";
  22187. display: block;
  22188. background-size: 100% 100%;
  22189. background-repeat: no-repeat;
  22190. width: 20px;
  22191. height: 20px;
  22192. margin-right: 5px;
  22193. /* position: absolute; */
  22194. /* top: 8px;
  22195. left: 8px; */
  22196. }
  22197. .vedioIcon1 {
  22198. background: #f63564;
  22199. }
  22200. .reBtnIcon::before {
  22201. background-image: url("../../assets/icon/newIcons/refresh.png");
  22202. }
  22203. .commentIcon::before {
  22204. background-image: url("../../assets/icon/newIcons/comment.png");
  22205. }
  22206. .vedioIcon::before {
  22207. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22208. }
  22209. .vedioIcon1::before {
  22210. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22211. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22212. }
  22213. .tool {
  22214. display: flex;
  22215. flex-direction: column;
  22216. flex-wrap: nowrap;
  22217. width: 13%;
  22218. margin: 0 30px;
  22219. align-items: center;
  22220. position: relative;
  22221. padding: 10px 25px;
  22222. cursor: pointer;
  22223. }
  22224. .whiteBIcon {
  22225. width: 150px;
  22226. }
  22227. .whiteBIcon > img {
  22228. width: 100%;
  22229. height: 100%;
  22230. }
  22231. .mask {
  22232. background-color: rgba(0, 0, 0, 0);
  22233. position: fixed;
  22234. top: 0;
  22235. left: 0;
  22236. width: 100%;
  22237. height: 100%;
  22238. z-index: 20000;
  22239. display: flex;
  22240. align-items: center;
  22241. justify-content: center;
  22242. }
  22243. .progressBox {
  22244. width: 500px;
  22245. height: 180px;
  22246. background: #fff;
  22247. border-radius: 10px;
  22248. box-shadow: 0 0 6px 1px #bfbfbf;
  22249. display: flex;
  22250. align-items: center;
  22251. justify-content: center;
  22252. flex-direction: column;
  22253. position: relative;
  22254. color: #6c6c6c;
  22255. }
  22256. .progressBox >>> .el-progress-bar__outer {
  22257. background-color: #d1dfff !important;
  22258. }
  22259. .progressBox .lbox {
  22260. height: 50px;
  22261. font-size: 19px;
  22262. display: flex;
  22263. align-items: center;
  22264. color: #747474;
  22265. }
  22266. .progressBox .lbox img {
  22267. width: 40px;
  22268. margin-right: 20px;
  22269. }
  22270. .closeCss {
  22271. position: absolute;
  22272. top: 8px;
  22273. right: 8px;
  22274. cursor: pointer;
  22275. width: 20px;
  22276. height: 20px;
  22277. }
  22278. .closeCss > img {
  22279. width: 100%;
  22280. height: 100%;
  22281. }
  22282. .uploadVedio {
  22283. display: flex;
  22284. flex-direction: column;
  22285. flex-wrap: nowrap;
  22286. justify-content: center;
  22287. align-items: center;
  22288. margin: 0 15px 10px 0;
  22289. }
  22290. .uploadVedio > img {
  22291. width: 30px;
  22292. height: 30px;
  22293. }
  22294. .uploadVedio > span {
  22295. white-space: nowrap;
  22296. overflow: hidden;
  22297. text-overflow: ellipsis;
  22298. width: 75px;
  22299. margin-top: 7px;
  22300. }
  22301. .picName {
  22302. white-space: nowrap;
  22303. overflow: hidden;
  22304. text-overflow: ellipsis;
  22305. width: 75px;
  22306. margin-top: 7px;
  22307. }
  22308. .new_top {
  22309. display: flex;
  22310. background: #fff;
  22311. flex-direction: row;
  22312. justify-content: flex-start;
  22313. align-items: center;
  22314. height: 60px;
  22315. position: fixed;
  22316. top: 20px;
  22317. left: 22%;
  22318. width: 77%;
  22319. z-index: 999;
  22320. border-radius: 12px 12px 0 0;
  22321. border-bottom: 1px solid #cad1dc;
  22322. padding: 10px 0;
  22323. }
  22324. .new_topFixed {
  22325. width: 100%;
  22326. height: 40px;
  22327. position: fixed;
  22328. top: 0px;
  22329. display: block;
  22330. background: #f2f2f2;
  22331. z-index: 998;
  22332. }
  22333. .before {
  22334. position: absolute;
  22335. background: #c3dad4;
  22336. width: 6px;
  22337. height: 100%;
  22338. }
  22339. .courseIndex {
  22340. display: flex;
  22341. flex-direction: row;
  22342. align-items: center;
  22343. width: calc(100% - 745px);
  22344. }
  22345. .courseIndex > div:nth-child(1) {
  22346. margin: 0 0 0 10px;
  22347. font-size: 20px;
  22348. min-width: 100px;
  22349. font-weight: bold;
  22350. border-left: 4px solid #3363b9;
  22351. height: 32px;
  22352. text-align: center;
  22353. line-height: 35px;
  22354. }
  22355. .courseIndex > div:nth-child(2) {
  22356. font-size: 20px;
  22357. /* width: 300px; */
  22358. max-width: calc(100% - 105px);
  22359. white-space: nowrap;
  22360. overflow: hidden;
  22361. text-overflow: ellipsis;
  22362. }
  22363. .courseIndex > div:nth-child(3) {
  22364. border-bottom: 1px solid #d7d7d7;
  22365. padding-bottom: 5px;
  22366. background: #3681fc;
  22367. width: 55px;
  22368. min-width: 55px;
  22369. border-radius: 5px;
  22370. color: #fff;
  22371. text-align: center;
  22372. height: 20px;
  22373. line-height: 26px;
  22374. font-size: 14px;
  22375. margin: 0 0 0 10px;
  22376. }
  22377. .course_text {
  22378. padding: 20px 0 0 15px;
  22379. text-indent: 30px;
  22380. width: 80%;
  22381. min-height: 20px;
  22382. }
  22383. .vedioList {
  22384. background: #f2f2f2;
  22385. border: 1px solid #ececec;
  22386. /* width: 38.8%; */
  22387. /* width: 300px; */
  22388. width: 100%;
  22389. height: 445px;
  22390. border-radius: 10px;
  22391. overflow: hidden;
  22392. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22393. }
  22394. .vedioNav {
  22395. margin: 10px 0 0 15px;
  22396. border-bottom: 1px solid #d7d7d7;
  22397. padding-bottom: 5px;
  22398. background: #3681fc;
  22399. width: 55px;
  22400. min-width: 55px;
  22401. border-radius: 5px;
  22402. color: #fff;
  22403. text-align: center;
  22404. height: 20px;
  22405. line-height: 26px;
  22406. font-size: 14px;
  22407. }
  22408. .queTop {
  22409. display: flex;
  22410. padding: 20px 0 20px 30px;
  22411. width: 100%;
  22412. flex-direction: row;
  22413. justify-content: flex-start;
  22414. align-items: center;
  22415. box-sizing: border-box;
  22416. }
  22417. .queTopTitle {
  22418. display: flex;
  22419. flex-direction: row;
  22420. flex-wrap: nowrap;
  22421. align-items: center;
  22422. font-weight: bold;
  22423. font-size: 20px;
  22424. color: rgb(14, 30, 51);
  22425. }
  22426. .queTopTitle::before {
  22427. content: "";
  22428. width: 2px;
  22429. height: 22px;
  22430. background: #3681fc;
  22431. border-radius: 3px;
  22432. display: block;
  22433. margin: 2px 6px 0 0;
  22434. }
  22435. .queTopRight {
  22436. display: flex;
  22437. flex-direction: row;
  22438. flex-wrap: nowrap;
  22439. align-items: center;
  22440. }
  22441. .queTopClose {
  22442. margin-right: 20px;
  22443. cursor: pointer;
  22444. position: relative;
  22445. display: flex;
  22446. }
  22447. .closeImg,
  22448. .openImg {
  22449. width: 25px;
  22450. height: 25px;
  22451. position: absolute;
  22452. left: -20px;
  22453. top: -1px;
  22454. }
  22455. .closeImg > img,
  22456. .openImg > img {
  22457. width: 100%;
  22458. height: 100%;
  22459. }
  22460. .question {
  22461. width: 40px;
  22462. margin-right: 10px;
  22463. margin-top: 7px;
  22464. }
  22465. .queTitle {
  22466. margin-left: 5px;
  22467. font-size: 25px;
  22468. display: flex;
  22469. align-items: center;
  22470. }
  22471. .addEditor {
  22472. width: 100px;
  22473. height: 30px;
  22474. background: #42cda6;
  22475. color: #fff;
  22476. border-radius: 5px;
  22477. text-align: center;
  22478. line-height: 30px;
  22479. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22480. cursor: pointer;
  22481. }
  22482. /* .vedioName {
  22483. cursor: pointer;
  22484. margin: 0px 0px 10px 5px;
  22485. white-space: nowrap;
  22486. overflow: hidden;
  22487. text-overflow: ellipsis;
  22488. width: 100%;
  22489. } */
  22490. .vedioTime {
  22491. width: 35px;
  22492. position: absolute;
  22493. color: #fff;
  22494. bottom: 0px;
  22495. right: 0px;
  22496. text-align: center;
  22497. background: #46411f;
  22498. height: 20px;
  22499. font-size: 14px;
  22500. line-height: 20px;
  22501. }
  22502. .homework {
  22503. width: 200px;
  22504. display: flex;
  22505. flex-direction: column;
  22506. flex-wrap: nowrap;
  22507. align-items: center;
  22508. cursor: pointer;
  22509. }
  22510. .homebox {
  22511. display: flex;
  22512. flex-wrap: wrap;
  22513. flex-direction: row;
  22514. justify-content: flex-start;
  22515. align-items: center;
  22516. padding: 15px 0;
  22517. }
  22518. .isChooseActive {
  22519. color: #3681fc !important;
  22520. font-weight: bold !important;
  22521. }
  22522. .chooseWho {
  22523. display: flex;
  22524. width: 100%;
  22525. flex-direction: row;
  22526. flex-wrap: nowrap;
  22527. justify-content: flex-start;
  22528. padding-bottom: 10px;
  22529. }
  22530. .chooseWho > div {
  22531. cursor: pointer;
  22532. padding-bottom: 10px;
  22533. margin: 0 30px 0 0;
  22534. font-weight: 400;
  22535. color: #0e1e33;
  22536. }
  22537. .addPoint > div > img {
  22538. cursor: pointer;
  22539. width: 85px;
  22540. border-radius: 15px;
  22541. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22542. }
  22543. .addPoint > div {
  22544. display: flex;
  22545. flex-direction: column;
  22546. flex-wrap: nowrap;
  22547. align-items: center;
  22548. }
  22549. .isBorder > div {
  22550. margin: 0 0 10px 0;
  22551. align-items: flex-start !important;
  22552. }
  22553. .noiframeBox {
  22554. display: flex;
  22555. flex-wrap: wrap;
  22556. }
  22557. .iframeBox iframe {
  22558. width: 100%;
  22559. height: 800px;
  22560. border: none;
  22561. margin-bottom: 20px;
  22562. border: 1px solid #ccc;
  22563. }
  22564. .upload_toolBtn {
  22565. background: #3681fc;
  22566. color: #fff;
  22567. width: 110px;
  22568. text-align: center;
  22569. height: 35px;
  22570. line-height: 35px;
  22571. font-size: 14px;
  22572. border-radius: 5px;
  22573. cursor: pointer;
  22574. position: absolute;
  22575. right: 10px;
  22576. bottom: 0;
  22577. }
  22578. .binfo_input,
  22579. .pj {
  22580. font: inherit;
  22581. color: currentColor;
  22582. width: 100%;
  22583. margin: 0;
  22584. padding: 15px 14px;
  22585. display: block;
  22586. min-width: 0;
  22587. outline: none;
  22588. box-sizing: content-box;
  22589. background: none;
  22590. -webkit-tap-highlight-color: transparent;
  22591. border: 1px solid rgba(0, 0, 0, 0.23);
  22592. border-radius: 4px;
  22593. box-sizing: border-box;
  22594. resize: none;
  22595. }
  22596. .binfo_input:focus-visible {
  22597. border: 1px solid rgba(61, 103, 188);
  22598. }
  22599. .dialog_diy >>> .el-dialog__header,
  22600. .dialog_diy1 >>> .el-dialog__header {
  22601. background: #454545 !important;
  22602. padding: 15px 20px;
  22603. }
  22604. .dialog_diy >>> .el-dialog__title,
  22605. .dialog_diy1 >>> .el-dialog__title {
  22606. color: #fff;
  22607. }
  22608. .dialog_diy >>> .el-dialog__headerbtn,
  22609. .dialog_diy1 >>> .el-dialog__headerbtn {
  22610. top: 19px;
  22611. }
  22612. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22613. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22614. color: #fff;
  22615. }
  22616. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22617. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22618. color: #fff;
  22619. }
  22620. .dialog_diy1 >>> .el-dialog__body {
  22621. padding: 0;
  22622. }
  22623. .dialog_diy >>> .el-dialog__body,
  22624. .dialog_diy >>> .el-dialog__footer,
  22625. .dialog_diy1 >>> .el-dialog__footer {
  22626. background: #fafafa;
  22627. }
  22628. .a_addBox {
  22629. padding: 0 0 0 15px;
  22630. }
  22631. .a_add_box {
  22632. padding: 10px;
  22633. background: #fff;
  22634. margin-bottom: 10px;
  22635. border-radius: 5px;
  22636. box-shadow: 0 0 5px 0 #d5d5d5;
  22637. }
  22638. .a_add_head {
  22639. display: flex;
  22640. align-items: flex-start;
  22641. /* justify-content: space-between; */
  22642. flex-direction: column;
  22643. /* flex-direction: row; */
  22644. margin: 10px 0 20px 0;
  22645. font-size: 18px;
  22646. width: 100%;
  22647. }
  22648. .askIndex {
  22649. background: #3681fc;
  22650. border-radius: 50%;
  22651. color: #fff;
  22652. width: 25px;
  22653. height: 25px;
  22654. min-width: 25px;
  22655. min-height: 25px;
  22656. text-align: center;
  22657. line-height: 25px;
  22658. margin-right: 5px;
  22659. }
  22660. .a_add_head .a_add_head_input {
  22661. width: 300px;
  22662. }
  22663. .a_add_head .a_add_head_div {
  22664. display: flex;
  22665. align-items: center;
  22666. justify-content: space-between;
  22667. }
  22668. .a_add_body {
  22669. display: flex;
  22670. align-items: center;
  22671. }
  22672. .a_add_input {
  22673. display: flex;
  22674. align-items: center;
  22675. flex-wrap: wrap;
  22676. width: 100%;
  22677. }
  22678. .a_add_input >>> .el-radio-group,
  22679. .a_add_input >>> .el-checkbox-group {
  22680. width: 100%;
  22681. }
  22682. .a_add_input >>> .el-radio,
  22683. .a_add_input >>> .el-checkbox {
  22684. display: flex;
  22685. flex-direction: row;
  22686. flex-wrap: nowrap;
  22687. align-items: center;
  22688. padding: 15px 0;
  22689. }
  22690. .a_add_input >>> .el-radio:not(:last-child),
  22691. .a_add_input >>> .el-checkbox:not(:last-child) {
  22692. width: 100%;
  22693. border-bottom: 1px solid #efefef;
  22694. }
  22695. .redioStyle >>> .el-radio__label {
  22696. font-size: 18px;
  22697. }
  22698. .redioStyle >>> .el-radio__label > span,
  22699. .redioStyle >>> .el-checkbox__label > span {
  22700. word-break: break-all;
  22701. white-space: normal;
  22702. }
  22703. .redioStyle >>> .el-checkbox__label {
  22704. font-size: 18px;
  22705. }
  22706. .toolHeng2 {
  22707. width: 100%;
  22708. padding-left: 15px;
  22709. box-sizing: border-box;
  22710. }
  22711. .workNav {
  22712. font-size: 20px;
  22713. font-weight: bold;
  22714. color: #0e1e33;
  22715. display: flex;
  22716. flex-direction: row;
  22717. flex-wrap: nowrap;
  22718. align-items: center;
  22719. padding: 15px 0 15px 0;
  22720. }
  22721. .workNav::before {
  22722. content: "";
  22723. width: 2px;
  22724. height: 22px;
  22725. background: #3681fc;
  22726. border-radius: 3px;
  22727. display: block;
  22728. margin: 2px 6px 0 0;
  22729. }
  22730. .toolHeng {
  22731. display: flex;
  22732. flex-direction: row;
  22733. flex-wrap: wrap;
  22734. justify-content: flex-start;
  22735. align-items: center;
  22736. width: 100%;
  22737. }
  22738. .toolHeng > div {
  22739. padding-left: 20px;
  22740. }
  22741. .isWidth {
  22742. width: 20%;
  22743. }
  22744. .textTitle {
  22745. display: flex;
  22746. flex-direction: row;
  22747. flex-wrap: nowrap;
  22748. align-items: center;
  22749. width: 95%;
  22750. }
  22751. .textTitle >>> .el-form-item__label {
  22752. font-size: 22px;
  22753. color: #918f8f;
  22754. width: 100px;
  22755. }
  22756. .textTitle >>> .el-form-item__content {
  22757. width: calc(100% - 100px);
  22758. }
  22759. .textCss >>> .el-dialog {
  22760. width: 800px !important;
  22761. height: 400px;
  22762. background: #fafafa;
  22763. }
  22764. .textCss >>> .el-dialog__body {
  22765. margin: 55px 8% 0 8%;
  22766. padding: 0 !important;
  22767. }
  22768. .textCss >>> .el-dialog__footer {
  22769. padding-top: 38px;
  22770. }
  22771. .toolsCss >>> .el-dialog__body {
  22772. padding: 20px;
  22773. }
  22774. .lineCss >>> .el-dialog__body {
  22775. display: flex;
  22776. flex-direction: row;
  22777. align-items: center;
  22778. justify-content: center;
  22779. }
  22780. .newNav {
  22781. display: flex;
  22782. flex-direction: row;
  22783. align-items: baseline;
  22784. justify-content: flex-start;
  22785. }
  22786. .navListItem {
  22787. width: calc(100% - 20px);
  22788. height: 50px;
  22789. margin: 0px auto 10px;
  22790. display: flex;
  22791. flex-direction: row;
  22792. flex-wrap: nowrap;
  22793. align-items: center;
  22794. justify-content: space-between;
  22795. background: #f0f4fa;
  22796. border-radius: 6px 6px 6px 6px;
  22797. }
  22798. .navText {
  22799. cursor: pointer;
  22800. white-space: nowrap;
  22801. overflow: hidden;
  22802. text-overflow: ellipsis;
  22803. width: 220px;
  22804. padding: 0 10px;
  22805. font-weight: 400;
  22806. color: #0e1e33;
  22807. }
  22808. .downIcon {
  22809. width: 20px;
  22810. min-width: 20px;
  22811. height: 20px;
  22812. margin-right: 15px;
  22813. cursor: pointer;
  22814. }
  22815. .downIcon > img {
  22816. width: 100%;
  22817. height: 100%;
  22818. }
  22819. .noVedio {
  22820. display: flex;
  22821. flex-direction: row;
  22822. justify-content: center;
  22823. align-content: center;
  22824. }
  22825. .noNavText {
  22826. cursor: pointer;
  22827. margin: 0px 0px 10px 5px;
  22828. width: 112px;
  22829. }
  22830. .listNoVedio {
  22831. margin: 0 0 0 30px;
  22832. width: 97%;
  22833. }
  22834. .video-player >>> .video-js {
  22835. height: 100%;
  22836. }
  22837. .hangVedioList {
  22838. width: 90% !important;
  22839. height: 150px !important;
  22840. margin: 20px 0 0 30px;
  22841. }
  22842. .hangVedio {
  22843. width: 100%;
  22844. height: 170px !important;
  22845. align-items: flex-start !important;
  22846. }
  22847. .hangHand {
  22848. height: 150px !important;
  22849. }
  22850. .twoChild {
  22851. width: 95%;
  22852. margin: 10px;
  22853. border-radius: 5px;
  22854. background: #f2f2f2;
  22855. display: flex;
  22856. flex-direction: column;
  22857. flex-wrap: nowrap;
  22858. justify-content: flex-start;
  22859. align-items: flex-start;
  22860. transition: all 0.5s;
  22861. overflow: hidden;
  22862. height: 0;
  22863. background: #e7f3ff;
  22864. }
  22865. .twoChild > div:nth-child(1) {
  22866. margin-top: 5px;
  22867. }
  22868. .navChild {
  22869. width: 100%;
  22870. cursor: pointer;
  22871. margin-bottom: 10px;
  22872. position: relative;
  22873. }
  22874. .navChild img {
  22875. position: absolute;
  22876. right: 11px;
  22877. width: 15px;
  22878. top: 50%;
  22879. transform: translateY(-50%);
  22880. }
  22881. .navActive,
  22882. .toolActive {
  22883. height: auto !important;
  22884. overflow: auto !important;
  22885. /* padding-bottom: 16px; */
  22886. }
  22887. .toolActive {
  22888. padding: 0;
  22889. }
  22890. .navTask {
  22891. display: flex;
  22892. flex-direction: row;
  22893. flex-wrap: nowrap;
  22894. align-items: center;
  22895. align-content: flex-start;
  22896. height: 40px;
  22897. justify-content: flex-start;
  22898. padding: 0 10px;
  22899. width: 100%;
  22900. box-sizing: border-box;
  22901. }
  22902. .navTaskname {
  22903. white-space: nowrap;
  22904. text-overflow: ellipsis;
  22905. overflow: hidden;
  22906. word-break: break-all;
  22907. padding-left: 5px;
  22908. }
  22909. .openTaskActive {
  22910. /* background-color: #e0eafb !important;
  22911. color: #0061ff; */
  22912. color:#fff;
  22913. background: rgb(55, 129, 252) !important;
  22914. }
  22915. .iframeName {
  22916. margin: 5px 0;
  22917. border-left: 4px solid #41c4a4;
  22918. padding-left: 4px;
  22919. }
  22920. .toolTitle {
  22921. margin: 0px 0px 20px;
  22922. font-size: 20px;
  22923. font-weight: 500;
  22924. border-left: 4px solid #41c4a4;
  22925. padding-left: 4px;
  22926. }
  22927. .cru_selectBox {
  22928. overflow: auto;
  22929. width: 95%;
  22930. margin: 17px auto 0;
  22931. height: calc(100% - 40px - 21px - 20px - 17px);
  22932. background: #fff;
  22933. border-radius: 8px;
  22934. }
  22935. .cru_selectBox::-webkit-scrollbar,
  22936. .study_top::-webkit-scrollbar,
  22937. .textContent::-webkit-scrollbar {
  22938. /*滚动条整体样式*/
  22939. width: 6px;
  22940. /*高宽分别对应横竖滚动条的尺寸*/
  22941. height: 6px;
  22942. }
  22943. /*定义滚动条轨道 内阴影+圆角*/
  22944. .cru_selectBox::-webkit-scrollbar-track,
  22945. .study_top::-webkit-scrollbar-track,
  22946. .textContent::-webkit-scrollbar {
  22947. border-radius: 10px;
  22948. background-color: #b8bdc9;
  22949. }
  22950. /*定义滑块 内阴影+圆角*/
  22951. .cru_selectBox::-webkit-scrollbar-thumb,
  22952. .study_top::-webkit-scrollbar-thumb,
  22953. .textContent::-webkit-scrollbar-thumb {
  22954. border-radius: 10px;
  22955. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22956. background-color: #2c5ab3;
  22957. }
  22958. .vedioBox {
  22959. border-radius: 0 0 20px 20px;
  22960. background: #fff;
  22961. overflow: auto;
  22962. }
  22963. .taskBox {
  22964. width: 98%;
  22965. background: #f0f4fa;
  22966. margin: 10px auto;
  22967. padding: 0 10px;
  22968. border-radius: 4px;
  22969. box-sizing: border-box;
  22970. }
  22971. .vedioTaskBox {
  22972. width: 100%;
  22973. display: flex;
  22974. flex-direction: row;
  22975. flex-wrap: nowrap;
  22976. align-items: flex-start;
  22977. position: relative;
  22978. }
  22979. .toolBox {
  22980. margin: 15px 0 0 25px;
  22981. display: flex;
  22982. position: relative;
  22983. padding: 18px 20px;
  22984. border-top-left-radius: 5px;
  22985. border-top-right-radius: 5px;
  22986. width: 90%;
  22987. }
  22988. .btnAll {
  22989. position: absolute;
  22990. right: 0;
  22991. display: flex;
  22992. flex-direction: row;
  22993. flex-wrap: nowrap;
  22994. align-items: center;
  22995. }
  22996. .btnLeft,
  22997. .btnRight {
  22998. display: flex;
  22999. flex-direction: row;
  23000. flex-wrap: nowrap;
  23001. align-items: center;
  23002. padding: 5px 0;
  23003. }
  23004. .btnLeft {
  23005. border-right: 1px solid #cad1dc;
  23006. }
  23007. .btnLeft > .custom-tooltip {
  23008. background: #3681fc;
  23009. color: #fff;
  23010. }
  23011. .last:hover {
  23012. background: #3383fa !important;
  23013. color: #fff;
  23014. border: 1px solid #3383fa !important;
  23015. }
  23016. .last,
  23017. .returnBtn1 {
  23018. width: 90px;
  23019. height: 36px;
  23020. background: #ffffff;
  23021. border-radius: 4px;
  23022. border: 1px solid #0061ff;
  23023. color: #0061ff;
  23024. cursor: pointer;
  23025. display: flex;
  23026. flex-direction: row;
  23027. flex-wrap: nowrap;
  23028. align-items: center;
  23029. justify-content: center;
  23030. margin-left: 12px;
  23031. }
  23032. .returnBtn1 {
  23033. background: #f0f4fa;
  23034. border-radius: 4px;
  23035. border: 1px solid #cad1dc;
  23036. margin: 0 12px;
  23037. }
  23038. .lastImg {
  23039. min-width: 15px;
  23040. width: 15px;
  23041. height: 15px;
  23042. display: flex;
  23043. }
  23044. .lastText {
  23045. padding: 0 5px 0 5px;
  23046. box-sizing: border-box;
  23047. font-size: 14px;
  23048. }
  23049. .lastImg > img {
  23050. width: 100%;
  23051. height: 100%;
  23052. }
  23053. /* .vedioTimeBox {
  23054. display: flex;
  23055. flex-direction: row;
  23056. align-items: center;
  23057. flex-wrap: nowrap;
  23058. position: relative;
  23059. } */
  23060. .navBox {
  23061. background: #fff;
  23062. height: calc(100% - 40px);
  23063. overflow-y: auto;
  23064. overflow-x: hidden;
  23065. }
  23066. .worksBox {
  23067. margin: 0 0 10px 25px;
  23068. border-bottom: 1px solid #eeeeee;
  23069. padding: 18px 20px;
  23070. border-radius: 4px;
  23071. width: 90%;
  23072. }
  23073. .worksBTitle {
  23074. font-size: 20px;
  23075. padding-bottom: 15px;
  23076. border-bottom: 1px solid #eeeeee;
  23077. display: flex;
  23078. align-items: center;
  23079. }
  23080. .greenBox {
  23081. width: 5px;
  23082. height: 30px;
  23083. background: #63b6fa;
  23084. margin-right: 5px;
  23085. }
  23086. .worksDetailBox {
  23087. display: flex;
  23088. width: 100%;
  23089. flex-direction: row;
  23090. flex-wrap: wrap;
  23091. align-items: flex-end;
  23092. justify-content: flex-start;
  23093. padding: 15px 5px;
  23094. box-sizing: border-box;
  23095. }
  23096. .works {
  23097. display: flex;
  23098. flex-direction: column;
  23099. flex-wrap: nowrap;
  23100. align-items: flex-start;
  23101. justify-content: flex-start;
  23102. align-content: center;
  23103. max-width: 240px;
  23104. width: calc(100% / 3 - 10px);
  23105. height: auto;
  23106. margin-right: 10px;
  23107. margin-bottom: 10px;
  23108. overflow: hidden;
  23109. height: 140px;
  23110. box-shadow: 0 0 6px 1px #dfdada;
  23111. border-radius: 15px;
  23112. }
  23113. .workImg {
  23114. width: 100%;
  23115. /* height: calc(100% - 40px); */
  23116. height: 105px;
  23117. position: relative;
  23118. }
  23119. .workImg > img {
  23120. width: 100%;
  23121. height: 100%;
  23122. object-fit: contain;
  23123. cursor: pointer;
  23124. }
  23125. .worksName {
  23126. height: 40px;
  23127. line-height: 40px;
  23128. display: flex;
  23129. width: 100%;
  23130. flex-direction: row;
  23131. flex-wrap: nowrap;
  23132. justify-content: space-between;
  23133. align-items: center;
  23134. margin: 0 0 0 10px;
  23135. }
  23136. .worksName > div:nth-child(1) {
  23137. width: 110px;
  23138. white-space: nowrap;
  23139. overflow: hidden;
  23140. text-overflow: ellipsis;
  23141. }
  23142. .worksName > div:nth-child(2) {
  23143. color: #b7b4b5;
  23144. }
  23145. .noWorksS {
  23146. padding: 15px 0;
  23147. display: flex;
  23148. flex-direction: row;
  23149. flex-wrap: wrap;
  23150. align-items: center;
  23151. justify-content: flex-start;
  23152. }
  23153. .noWorksName,
  23154. .isWorksName,
  23155. .isWorksName2 {
  23156. background: #ddebf8;
  23157. color: #000;
  23158. width: 90px;
  23159. height: 25px;
  23160. text-align: center;
  23161. line-height: 25px;
  23162. border-radius: 4px;
  23163. margin: 10px 15px 10px 0;
  23164. white-space: nowrap;
  23165. overflow: hidden;
  23166. padding: 5px;
  23167. text-overflow: ellipsis;
  23168. cursor: pointer;
  23169. border: 1px solid #ddebf8;
  23170. }
  23171. .noWorksName {
  23172. background: #fff;
  23173. color: #0061ff;
  23174. border: 1px solid #0061ff;
  23175. }
  23176. .noWorksName > span{
  23177. max-width: 100%;
  23178. display: block;
  23179. overflow: hidden;
  23180. text-overflow: ellipsis;
  23181. white-space: nowrap;
  23182. }
  23183. .isWorksName2 {
  23184. width: 100px;
  23185. height: 40px;
  23186. line-height: 40px;
  23187. position: relative;
  23188. background: #dae6f9;
  23189. }
  23190. .isWorksName {
  23191. background: #e7ebf1 !important;
  23192. width: 100px;
  23193. height: 40px;
  23194. line-height: 40px;
  23195. position: relative;
  23196. color: #acb4bf;
  23197. border: 1px solid #cad1dc !important;
  23198. }
  23199. .isSelectName,
  23200. .noWorksName:hover {
  23201. background: #3383fa !important;
  23202. color: #fff !important;
  23203. border: 1px solid #3383fa !important;
  23204. }
  23205. .title {
  23206. background: #1e5cc9;
  23207. /* width: 98%; */
  23208. height: 45px;
  23209. color: #fff;
  23210. line-height: 45px;
  23211. padding-left: 20px;
  23212. box-sizing: border-box;
  23213. }
  23214. .textBox {
  23215. font-size: 20px;
  23216. width: 90%;
  23217. display: flex;
  23218. flex-direction: column;
  23219. align-items: center;
  23220. margin: 20px auto 0;
  23221. max-height: calc(100% - 75px);
  23222. overflow: auto;
  23223. }
  23224. .textContent {
  23225. font-size: 18px;
  23226. width: 95%;
  23227. max-width: 95%;
  23228. }
  23229. .answerBg {
  23230. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23231. background-size: 100% 100%;
  23232. width: 100%;
  23233. height: 100%;
  23234. color: #fff;
  23235. text-align: center;
  23236. display: flex;
  23237. flex-direction: column;
  23238. flex-wrap: nowrap;
  23239. align-items: center;
  23240. position: relative;
  23241. justify-content: center;
  23242. }
  23243. /* .answerBg > div:nth-child(1) {
  23244. font-size: 22px;
  23245. padding: 25px 0 10px;
  23246. } */
  23247. .answerContent {
  23248. width: 215px;
  23249. max-height: 60px;
  23250. word-break: break-all;
  23251. text-align: center;
  23252. /* white-space: nowrap; */
  23253. overflow: hidden;
  23254. text-overflow: ellipsis;
  23255. /* padding: 23px 0 0; */
  23256. -webkit-line-clamp: 3;
  23257. -webkit-box-orient: vertical;
  23258. display: -webkit-box;
  23259. font-size: 15px;
  23260. cursor: pointer;
  23261. }
  23262. .elist_input_box {
  23263. display: flex;
  23264. align-items: flex-start;
  23265. flex-wrap: nowrap;
  23266. padding: 10px 0 15px 30px;
  23267. flex-direction: column;
  23268. }
  23269. .elist_input {
  23270. /* width: 40%; */
  23271. width: 45%;
  23272. margin: 20px;
  23273. }
  23274. .elist_input .elist_input_box input {
  23275. font: inherit;
  23276. color: currentColor;
  23277. width: 200px;
  23278. padding: 8px 14px;
  23279. display: block;
  23280. min-width: 0;
  23281. outline: none;
  23282. border: 1px solid rgba(0, 0, 0, 0.23);
  23283. border-radius: 4px;
  23284. box-sizing: border-box;
  23285. background: #fff;
  23286. margin: 0 20px 0 0;
  23287. }
  23288. .elist_input .elist_input_box span {
  23289. height: 36px;
  23290. line-height: 36px;
  23291. color: rgb(82, 82, 82);
  23292. }
  23293. .elist_input .elist_input_box .remove {
  23294. height: 20px;
  23295. width: 20px;
  23296. background-size: 100% 100%;
  23297. background-position: unset;
  23298. margin-left: 5px;
  23299. }
  23300. .elist_input_box >>> .el-rate {
  23301. display: flex;
  23302. height: 36px;
  23303. align-items: center;
  23304. }
  23305. .elist_input_box .elist_inptu_text {
  23306. min-height: 50px;
  23307. /* width: 500px;
  23308. max-height: 150px; */
  23309. width: 100%;
  23310. line-height: 50px;
  23311. color: rgb(82, 82, 82);
  23312. overflow: auto;
  23313. text-indent: 5px;
  23314. background: #f7f6f9;
  23315. border-radius: 10px;
  23316. }
  23317. .elist_input_box .elist_inptu_text input {
  23318. width: 500px;
  23319. }
  23320. .elist_input_box >>> .el-rate__icon {
  23321. font-size: 24px;
  23322. }
  23323. .isClick {
  23324. background: #4d9def;
  23325. }
  23326. .bzBox {
  23327. display: flex;
  23328. flex-direction: row;
  23329. align-items: center;
  23330. }
  23331. .bzBox .yCss {
  23332. width: 7px;
  23333. height: 7px;
  23334. background: #fff;
  23335. margin: 0 16px 0 6px;
  23336. border-radius: 50%;
  23337. border: 5px solid #3681fc;
  23338. z-index: 99;
  23339. }
  23340. .bzBox > div:nth-child(2) {
  23341. font-size: 18px;
  23342. font-weight: bold;
  23343. color: #0e1e33;
  23344. }
  23345. .navTitile {
  23346. padding: 0 0px 0 15px;
  23347. font-size: 16px;
  23348. font-weight: bold;
  23349. color: #0e1e33;
  23350. height: 40px;
  23351. line-height: 40px;
  23352. }
  23353. .isTypeOne {
  23354. width: 240px;
  23355. height: 170px;
  23356. /* border: 1px solid #f8f8f8; */
  23357. border-radius: 10px;
  23358. box-shadow: 0 0 6px 1px #dfdada;
  23359. }
  23360. .e_add_top {
  23361. display: flex;
  23362. justify-content: space-between;
  23363. padding: 10px 20px;
  23364. border-radius: 3px;
  23365. background: #fff;
  23366. }
  23367. .e_add_title2 {
  23368. display: flex;
  23369. align-items: center;
  23370. }
  23371. .e_add_title2 span {
  23372. width: 40px;
  23373. }
  23374. .e_add_title {
  23375. display: flex;
  23376. align-items: center;
  23377. color: #b8b8b8;
  23378. font-size: 18px;
  23379. position: relative;
  23380. height: 40px;
  23381. }
  23382. .e_add_title span {
  23383. margin-right: 10px;
  23384. }
  23385. .e_add_title .el_input {
  23386. width: 300px;
  23387. }
  23388. .e_add_title >>> .el-input__inner {
  23389. width: 400px;
  23390. }
  23391. /* .e_add_btn {
  23392. } */
  23393. .e_add_content {
  23394. display: flex;
  23395. width: 100%;
  23396. max-width: 650px;
  23397. height: 550px;
  23398. }
  23399. .e_add_list {
  23400. background: #fff;
  23401. height: 500px;
  23402. width: 210px;
  23403. position: relative;
  23404. margin: 15px 5px 0 0;
  23405. flex-shrink: 0;
  23406. display: flex;
  23407. flex-direction: column;
  23408. }
  23409. .e_add_list_title {
  23410. font-size: 20px;
  23411. width: 100%;
  23412. box-sizing: border-box;
  23413. padding: 15px 40px;
  23414. text-align: center;
  23415. border-bottom: 1px solid #eaeaea;
  23416. position: relative;
  23417. display: flex;
  23418. align-items: center;
  23419. justify-content: center;
  23420. height: 57px;
  23421. background: #f6f6f6;
  23422. }
  23423. .e_add_list_title span {
  23424. overflow: hidden;
  23425. white-space: nowrap;
  23426. text-overflow: ellipsis;
  23427. }
  23428. .e_add_list_title img {
  23429. position: absolute;
  23430. right: 15px;
  23431. width: 25px;
  23432. cursor: pointer;
  23433. top: 50%;
  23434. transform: translateY(-50%);
  23435. }
  23436. .e_add_list_body {
  23437. height: calc(100% - 187px);
  23438. overflow: auto;
  23439. }
  23440. .e_add_list_child {
  23441. width: 100%;
  23442. display: flex;
  23443. align-items: center;
  23444. justify-content: center;
  23445. position: relative;
  23446. box-sizing: border-box;
  23447. padding: 15px 40px;
  23448. text-align: center;
  23449. }
  23450. .e_add_list_child span {
  23451. overflow: hidden;
  23452. white-space: nowrap;
  23453. text-overflow: ellipsis;
  23454. cursor: pointer;
  23455. }
  23456. .e_add_list_child img {
  23457. position: absolute;
  23458. right: 10px;
  23459. width: 21px;
  23460. cursor: pointer;
  23461. top: 50%;
  23462. transform: translateY(-50%);
  23463. }
  23464. .e_add_list_child + .e_add_list_child {
  23465. border-top: 1px solid #eaeaea;
  23466. }
  23467. .e_add_list_child .active {
  23468. color: #409eff;
  23469. }
  23470. .e_add_list_btn {
  23471. position: absolute;
  23472. bottom: 0;
  23473. height: 50px;
  23474. background: rgb(120, 120, 254);
  23475. width: 100%;
  23476. color: #fff;
  23477. font-size: 16px;
  23478. text-align: center;
  23479. line-height: 50px;
  23480. cursor: pointer;
  23481. }
  23482. .e_add_list_detail {
  23483. position: absolute;
  23484. bottom: 0;
  23485. height: 130px;
  23486. background: rgb(120, 120, 254);
  23487. width: 100%;
  23488. color: #fff;
  23489. font-size: 16px;
  23490. display: flex;
  23491. align-items: center;
  23492. justify-content: center;
  23493. }
  23494. .e_add_list_detail textarea {
  23495. height: 90%;
  23496. width: 95%;
  23497. border: none;
  23498. resize: none;
  23499. outline: none;
  23500. padding: 5px;
  23501. box-sizing: border-box;
  23502. }
  23503. .e_add_list_pbox {
  23504. width: 100%;
  23505. max-width: 650px;
  23506. /* height: 600px; */
  23507. }
  23508. .e_add_list_pbox_title {
  23509. height: 50px;
  23510. background: #fff;
  23511. display: flex;
  23512. align-items: center;
  23513. width: 100%;
  23514. box-sizing: border-box;
  23515. padding: 0 20px;
  23516. }
  23517. .type_title {
  23518. font-size: 18px;
  23519. font-weight: 700;
  23520. }
  23521. .type_content {
  23522. font-size: 16px;
  23523. /* margin-left: 30px; */
  23524. }
  23525. .type_content span + span {
  23526. margin-left: 20px;
  23527. }
  23528. .type_content span {
  23529. cursor: pointer;
  23530. padding-bottom: 5px;
  23531. box-sizing: border-box;
  23532. }
  23533. .type_content .active {
  23534. color: #409eff;
  23535. border-bottom: 2px solid #409eff;
  23536. }
  23537. .e_add_list_pbox_content {
  23538. height: calc(100% - 50px);
  23539. display: flex;
  23540. align-items: center;
  23541. width: 100%;
  23542. background: #fff;
  23543. }
  23544. .evaCss {
  23545. display: flex;
  23546. flex-direction: row;
  23547. flex-wrap: nowrap;
  23548. align-items: flex-start;
  23549. padding: 0 0 20px;
  23550. }
  23551. .cru_line {
  23552. position: absolute;
  23553. bottom: 0px;
  23554. transition: all 0.5s;
  23555. left: 0px;
  23556. width: 125px;
  23557. margin-left: -25px;
  23558. }
  23559. .isNoMessage {
  23560. width: 20%;
  23561. margin: 25% auto 0;
  23562. }
  23563. .isNoMessage > img {
  23564. width: 100%;
  23565. height: 100%;
  23566. }
  23567. .fullStyle >>> .el-dialog__body {
  23568. height: 100% !important;
  23569. }
  23570. .fullStyle >>> .el-dialog,
  23571. .fullStyle {
  23572. width: 100% !important;
  23573. max-width: 100% !important;
  23574. height: 100% !important;
  23575. margin: 0 !important;
  23576. }
  23577. .full_diy >>> .el-dialog {
  23578. margin: 0 !important;
  23579. height: 100%;
  23580. padding: 4px;
  23581. }
  23582. .full_diy >>> .el-dialog__body {
  23583. height: calc(100% - 100px);
  23584. }
  23585. .full_diy2 >>> .el-dialog__body {
  23586. height: calc(100% - 50px);
  23587. padding: 0;
  23588. }
  23589. .switchCss {
  23590. /* width: 100%; */
  23591. display: flex;
  23592. flex-direction: row;
  23593. flex-wrap: nowrap;
  23594. align-items: center;
  23595. /* justify-content: center; */
  23596. }
  23597. .isClickNav {
  23598. /* color: #499eef; */
  23599. color: #000;
  23600. }
  23601. .commentImg {
  23602. width: 25px;
  23603. height: 25px;
  23604. cursor: pointer;
  23605. }
  23606. .commentImg > img {
  23607. width: 100%;
  23608. height: 100%;
  23609. }
  23610. .comment {
  23611. background: #f9f9f9;
  23612. border-radius: 0 0 4px 4px;
  23613. display: flex;
  23614. flex-direction: row;
  23615. flex-wrap: nowrap;
  23616. align-items: center;
  23617. justify-content: flex-end;
  23618. height: 35px;
  23619. }
  23620. .commentList {
  23621. display: flex;
  23622. flex-direction: row;
  23623. flex-wrap: nowrap;
  23624. align-items: center;
  23625. justify-content: center;
  23626. align-content: center;
  23627. /* margin-left: 15px; */
  23628. /* margin-left: 8px; */
  23629. }
  23630. .scoreImg {
  23631. width: 17px;
  23632. height: 17px;
  23633. }
  23634. .studentDetail {
  23635. display: flex;
  23636. flex-direction: row;
  23637. flex-wrap: nowrap;
  23638. /* align-items: center; */
  23639. align-items: flex-start;
  23640. }
  23641. .tx {
  23642. width: 50px;
  23643. }
  23644. .tx > img {
  23645. width: 100%;
  23646. height: 100%;
  23647. }
  23648. .nameAndTime {
  23649. display: flex;
  23650. flex-direction: column;
  23651. flex-wrap: nowrap;
  23652. align-items: flex-start;
  23653. margin-left: 10px;
  23654. }
  23655. .worksAnswer {
  23656. color: #4078dd;
  23657. margin: 10px 0;
  23658. font-size: 16px;
  23659. position: relative;
  23660. }
  23661. .worksAnswer > img {
  23662. width: 500px;
  23663. height: 300px;
  23664. object-fit: contain;
  23665. margin: 0 auto;
  23666. display: block;
  23667. }
  23668. .commentTop {
  23669. border-bottom: 1px solid #eaeaea;
  23670. padding-bottom: 10px;
  23671. }
  23672. .commentBox {
  23673. padding-top: 15px;
  23674. }
  23675. .pl {
  23676. font-size: 18px;
  23677. }
  23678. .plPerson {
  23679. width: 100%;
  23680. }
  23681. .plName {
  23682. display: flex;
  23683. flex-direction: row;
  23684. flex-wrap: nowrap;
  23685. align-items: baseline;
  23686. color: #78787a;
  23687. width: 100%;
  23688. }
  23689. .deleteComment {
  23690. cursor: pointer;
  23691. margin-left: auto;
  23692. color: #237ade;
  23693. }
  23694. .plContent {
  23695. margin-top: 5px;
  23696. }
  23697. .evalCss {
  23698. background: #fff;
  23699. font-size: 18px;
  23700. }
  23701. .nav {
  23702. color: #9d9d9d;
  23703. padding: 5px 0 15px 20px;
  23704. }
  23705. .middleBox {
  23706. padding: 5px 0 15px 20px;
  23707. }
  23708. .pfBox {
  23709. padding-bottom: 30px;
  23710. }
  23711. .nameAndrate {
  23712. display: flex;
  23713. flex-direction: row;
  23714. flex-wrap: nowrap;
  23715. align-items: center;
  23716. padding-bottom: 10px;
  23717. height: 30px;
  23718. line-height: 30px;
  23719. }
  23720. .nameAndrate > div {
  23721. margin-left: 10px;
  23722. color: #000;
  23723. height: 30px;
  23724. }
  23725. .nameAndrate >>> .el-rate__icon {
  23726. font-size: 28px !important;
  23727. }
  23728. .pfBox > div:nth-child(2) {
  23729. background: #f7f6f9;
  23730. width: 400px;
  23731. min-height: 45px;
  23732. border-radius: 10px;
  23733. font-size: 16px;
  23734. display: flex;
  23735. flex-wrap: wrap;
  23736. align-items: center;
  23737. padding: 10px 20px;
  23738. box-sizing: border-box;
  23739. color: #000;
  23740. }
  23741. .bz {
  23742. display: flex;
  23743. flex-direction: row;
  23744. flex-wrap: nowrap;
  23745. align-items: flex-start;
  23746. }
  23747. .bz > div {
  23748. padding: 0 10px;
  23749. }
  23750. .select_box2_title {
  23751. background: #fff;
  23752. border-radius: 5px;
  23753. padding: 15px 10px;
  23754. box-sizing: border-box;
  23755. margin-bottom: 10px;
  23756. display: flex;
  23757. flex-direction: row;
  23758. flex-wrap: nowrap;
  23759. align-items: center;
  23760. }
  23761. .select_box2_title > div:nth-child(2) {
  23762. margin-left: 10px;
  23763. color: #c4c4c4;
  23764. }
  23765. .select_box2_box {
  23766. display: flex;
  23767. height: 500px;
  23768. }
  23769. .select_box2_img {
  23770. width: calc(100% - 310px);
  23771. height: 100%;
  23772. overflow: auto;
  23773. background: #fff;
  23774. border-radius: 5px;
  23775. }
  23776. .select_box2_img img {
  23777. width: 100%;
  23778. }
  23779. .select_box2_answer {
  23780. background: #fff;
  23781. margin-left: 10px;
  23782. border-radius: 5px;
  23783. width: 300px;
  23784. overflow: auto;
  23785. height: 90%;
  23786. display: flex;
  23787. flex-direction: column;
  23788. align-items: flex-start;
  23789. padding-top: 10px;
  23790. box-sizing: border-box;
  23791. position: relative;
  23792. }
  23793. .select_answer_title {
  23794. padding: 0 0 15px 20px;
  23795. color: #c4c4c4;
  23796. }
  23797. .select_box2_answer_box {
  23798. margin: 0 0 10px 20px;
  23799. width: 85%;
  23800. display: flex;
  23801. flex-direction: row;
  23802. flex-wrap: nowrap;
  23803. align-items: center;
  23804. }
  23805. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23806. color: #000;
  23807. }
  23808. .upAnswerCss {
  23809. position: absolute;
  23810. bottom: 15px;
  23811. right: 15px;
  23812. }
  23813. .upAnswerCss >>> .el-button {
  23814. width: 95px;
  23815. height: 35px;
  23816. line-height: 35px;
  23817. padding: 0;
  23818. }
  23819. .rightWidthCss {
  23820. width: 60%;
  23821. display: flex;
  23822. flex-direction: row;
  23823. align-items: flex-start;
  23824. }
  23825. .rightAnswer {
  23826. display: flex;
  23827. flex-direction: row;
  23828. flex-wrap: nowrap;
  23829. align-items: center;
  23830. color: red;
  23831. margin-bottom: 31px;
  23832. }
  23833. .rightAnswerCss {
  23834. display: flex;
  23835. flex-direction: column;
  23836. flex-wrap: nowrap;
  23837. padding-top: 60px;
  23838. }
  23839. .blueCss {
  23840. color: #767de1;
  23841. margin-left: 10px;
  23842. }
  23843. .redCss {
  23844. color: red;
  23845. }
  23846. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23847. color: rgb(0 123 255) !important;
  23848. }
  23849. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23850. color: rgb(0 123 255) !important;
  23851. }
  23852. .zuoyeYulan {
  23853. padding-top: 0;
  23854. font-size: 18px;
  23855. display: flex;
  23856. align-items: flex-end;
  23857. }
  23858. .buttonA {
  23859. margin-left: 10px;
  23860. padding: 0;
  23861. }
  23862. .displayBox {
  23863. margin-bottom: 10px;
  23864. display: block;
  23865. border-bottom: 3px solid #eee;
  23866. display: flex;
  23867. align-items: center;
  23868. }
  23869. .easy_comment {
  23870. width: calc(100% - 90px);
  23871. margin-left: 10px;
  23872. display: flex;
  23873. flex-wrap: wrap;
  23874. }
  23875. .easy_comment > div {
  23876. border: 1px solid #4a4a4a;
  23877. color: #666;
  23878. border-radius: 15px;
  23879. padding: 5px 10px;
  23880. font-size: 16px;
  23881. margin-bottom: 10px;
  23882. margin-right: 5px;
  23883. cursor: pointer;
  23884. }
  23885. .easy_comment div:hover {
  23886. border: 1px solid #f7ba2a;
  23887. color: #c69217;
  23888. }
  23889. .xuan_right_box {
  23890. padding: 10px 0;
  23891. background: #f0f4fa;
  23892. margin: 0 15px 0 25px;
  23893. border-bottom-left-radius: 5px;
  23894. border-bottom-right-radius: 5px;
  23895. width: 91.5%;
  23896. }
  23897. .tool_right_box {
  23898. display: flex;
  23899. align-items: center;
  23900. }
  23901. .tool_right_box + .tool_right_box {
  23902. margin-top: 10px;
  23903. }
  23904. .right_box_xuan {
  23905. border-radius: 5px;
  23906. padding: 5px;
  23907. margin-left: 10px;
  23908. min-width: 85px;
  23909. background: #fff;
  23910. color: #0061ff;
  23911. border: 1px solid #0061ff;
  23912. font-size: 14px;
  23913. }
  23914. .pButton:hover {
  23915. opacity: 1 !important;
  23916. }
  23917. .pButton {
  23918. position: fixed;
  23919. text-align: center;
  23920. cursor: pointer;
  23921. z-index: 999;
  23922. right: 20px;
  23923. top: 110px;
  23924. width: 50px;
  23925. height: 50px;
  23926. display: flex;
  23927. align-items: center;
  23928. justify-content: center;
  23929. border-radius: 5px;
  23930. }
  23931. .pzClass {
  23932. width: calc(100% - 340px);
  23933. }
  23934. .newDialogCss {
  23935. /* position: fixed;
  23936. right: 5%;
  23937. top: 50%;
  23938. width: 340px;
  23939. transform: translateY(-50%);
  23940. height: 60%;
  23941. box-shadow: 0px 0 8px 0px #555555;
  23942. border-radius: 15px;
  23943. z-index: 999; */
  23944. position: fixed;
  23945. right: 20px;
  23946. top: 101px;
  23947. width: 330px;
  23948. height: calc(100% - 80px);
  23949. z-index: 999;
  23950. background: #fff;
  23951. border-top-right-radius: 0px;
  23952. border-bottom-right-radius: 0px;
  23953. overflow: hidden;
  23954. }
  23955. .newDialogCss>.scoreList{
  23956. width:100%;
  23957. height:100%;
  23958. box-sizing:border-box;
  23959. padding:10px 15px;
  23960. overflow:auto;
  23961. padding-bottom:80px;
  23962. }
  23963. .pzTop {
  23964. color: #fff;
  23965. background: #000;
  23966. display: flex;
  23967. flex-direction: row;
  23968. flex-wrap: nowrap;
  23969. align-items: center;
  23970. justify-content: space-between;
  23971. height: 40px;
  23972. border-radius: 15px 15px 0 0;
  23973. user-select: none;
  23974. }
  23975. .pzTop2 .checkbox {
  23976. display: flex;
  23977. align-items: center;
  23978. padding: 5px 10px;
  23979. flex: 0 0 auto;
  23980. font-weight: bold;
  23981. border-bottom: 1px solid #eee;
  23982. justify-content: space-between;
  23983. }
  23984. .checkbox>.cb-tabList{
  23985. display:flex;
  23986. align-items:center;
  23987. }
  23988. .cb-tabList>div{
  23989. margin-right:20px;
  23990. font-weight:400;
  23991. cursor:pointer;
  23992. }
  23993. .cb-tabList>.cb-tabItem{
  23994. color:#1684FC;
  23995. position:relative;
  23996. }
  23997. .cb-tabItem::after{
  23998. content:"";
  23999. width:100%;
  24000. height:2px;
  24001. background:#1684FC;
  24002. position:absolute;
  24003. bottom:-5px;
  24004. left:0
  24005. }
  24006. .pzTop2 .check {
  24007. text-align: center;
  24008. cursor: pointer;
  24009. box-sizing: border-box;
  24010. display: flex;
  24011. }
  24012. .pzTop2 img {
  24013. width: 25px;
  24014. cursor: pointer;
  24015. }
  24016. .pzTop > div:nth-child(1) {
  24017. padding-left: 10px;
  24018. }
  24019. .pzTop > div:nth-child(2) {
  24020. width: 15px;
  24021. height: 15px;
  24022. padding-right: 10px;
  24023. cursor: pointer;
  24024. }
  24025. .pzTop > div:nth-child(2) > img {
  24026. width: 100%;
  24027. height: 100%;
  24028. }
  24029. .pzBox,
  24030. .noPzBox {
  24031. height: calc(100% - 60px);
  24032. /* background: #ededed; */
  24033. background: #fff;
  24034. /* border-radius: 0 0 15px 15px; */
  24035. }
  24036. .noPzBox {
  24037. display: flex;
  24038. flex-direction: column;
  24039. flex-wrap: nowrap;
  24040. justify-content: center;
  24041. align-items: center;
  24042. }
  24043. .pzList {
  24044. background: #f7f7f7;
  24045. width: 90%;
  24046. margin: 0 auto 15px;
  24047. border-radius: 5px;
  24048. }
  24049. .pzNavTop {
  24050. display: flex;
  24051. flex-direction: row;
  24052. flex-wrap: nowrap;
  24053. padding: 10px 10px 0 10px;
  24054. align-items: center;
  24055. }
  24056. .pzDelete {
  24057. cursor: pointer;
  24058. margin-left: auto;
  24059. font-size: 14px;
  24060. color: #afafaf;
  24061. }
  24062. .pzNavTop > div:nth-child(1) {
  24063. background: #3760af;
  24064. width: 35px;
  24065. height: 35px;
  24066. color: #fff;
  24067. text-align: center;
  24068. line-height: 35px;
  24069. border-radius: 50%;
  24070. font-size: 14px;
  24071. }
  24072. .pzNavTop > div:nth-child(2) {
  24073. font-size: 18px;
  24074. color: #959595;
  24075. margin-left: 5px;
  24076. }
  24077. .pzContent {
  24078. padding: 10px;
  24079. word-break: break-word;
  24080. }
  24081. .pzContent audio {
  24082. width: 100%;
  24083. }
  24084. .pzContent audio::-webkit-media-controls-panel {
  24085. background: #fff;
  24086. }
  24087. .pzContent >>> img {
  24088. max-width: 100%;
  24089. }
  24090. .pzListBox {
  24091. padding-top: 15px;
  24092. height: calc(100% - 110px);
  24093. overflow: auto;
  24094. }
  24095. .addPzButton {
  24096. position: relative;
  24097. margin-top: 3px;
  24098. width: 100%;
  24099. }
  24100. .addPzButton .img1 {
  24101. position: absolute;
  24102. top: 50%;
  24103. right: 25px;
  24104. transform: translateY(-50%);
  24105. height: 100%;
  24106. display: flex;
  24107. align-items: center;
  24108. }
  24109. .addPzButton .img1 div {
  24110. display: flex;
  24111. }
  24112. .addPzButton .img1 div img {
  24113. width: 28px;
  24114. margin-left: 10px;
  24115. cursor: pointer;
  24116. }
  24117. .addPzButton .img1 div span {
  24118. font-size: 14px;
  24119. margin: 4px 0 0 3px;
  24120. color: #afafaf;
  24121. }
  24122. .addPz {
  24123. background: #4b79ce;
  24124. width: 100px;
  24125. color: #fff;
  24126. font-size: 12px;
  24127. height: 30px;
  24128. margin: 0 auto;
  24129. text-align: center;
  24130. line-height: 30px;
  24131. border-radius: 10px;
  24132. cursor: pointer;
  24133. }
  24134. .addDialogCss {
  24135. position: fixed;
  24136. width: 600px;
  24137. height: 70%;
  24138. min-height: 450px;
  24139. box-shadow: 0px 0 8px 0px #555555;
  24140. border-radius: 15px;
  24141. z-index: 999;
  24142. left: 50%;
  24143. top: 50%;
  24144. margin: -18% 0 0 -300px;
  24145. }
  24146. .teacherPz {
  24147. display: flex;
  24148. flex-direction: row;
  24149. align-items: center;
  24150. flex-wrap: nowrap;
  24151. }
  24152. .teacherPzImg {
  24153. width: 30px;
  24154. height: 30px;
  24155. }
  24156. .teacherPzImg > img {
  24157. width: 100%;
  24158. height: 100%;
  24159. }
  24160. .addPzBox {
  24161. height: calc(100% - 40px);
  24162. background: #ededed;
  24163. border-bottom-left-radius: 15px;
  24164. border-bottom-right-radius: 15px;
  24165. }
  24166. .pzAudioClass {
  24167. margin: 15px 14px;
  24168. background: #fff;
  24169. height: 100%;
  24170. display: flex;
  24171. justify-content: center;
  24172. align-items: center;
  24173. }
  24174. .pzConText {
  24175. width: 95%;
  24176. height: 100%;
  24177. margin: 10px auto 0;
  24178. border: none;
  24179. background: #fff;
  24180. border-radius: 0px;
  24181. }
  24182. .pzConText >>> .text {
  24183. height: calc(100% - 82px);
  24184. }
  24185. .addTextCss {
  24186. background: #4b79ce;
  24187. width: 80px;
  24188. height: 30px;
  24189. text-align: center;
  24190. color: #fff;
  24191. line-height: 30px;
  24192. border-radius: 10px;
  24193. margin: 10px auto 0;
  24194. cursor: pointer;
  24195. }
  24196. .pzConText:focus-visible {
  24197. border: none !important;
  24198. }
  24199. .maxWidth {
  24200. width: 1000px;
  24201. }
  24202. .noPz {
  24203. width: 150px;
  24204. margin: 0 auto 20%;
  24205. }
  24206. .noPz > img {
  24207. width: 100%;
  24208. height: 100%;
  24209. }
  24210. .timeAndReply {
  24211. display: flex;
  24212. flex-direction: row;
  24213. flex-wrap: nowrap;
  24214. justify-content: space-between;
  24215. align-items: center;
  24216. font-size: 14px;
  24217. box-sizing: border-box;
  24218. padding: 0 10px 10px 0px;
  24219. }
  24220. .timeAndReply .time {
  24221. color: #bfbfbf;
  24222. padding: 0 0 0 10px;
  24223. box-sizing: border-box;
  24224. }
  24225. .timeAndReply > div:last-child {
  24226. cursor: pointer;
  24227. color: #777;
  24228. }
  24229. /* table 样式 */
  24230. .cont >>> table {
  24231. border-top: 1px solid #ccc;
  24232. border-left: 1px solid #ccc;
  24233. }
  24234. .cont >>> table td,
  24235. .cont >>> table th {
  24236. border-bottom: 1px solid #ccc;
  24237. border-right: 1px solid #ccc;
  24238. /* padding: 20px 5px; */
  24239. padding: 5px 10px;
  24240. max-width: 0px;
  24241. height: 30px;
  24242. vertical-align: baseline;
  24243. box-sizing: border-box;
  24244. }
  24245. .cont >>> table th {
  24246. border-bottom: 2px solid #ccc;
  24247. text-align: center;
  24248. }
  24249. /* blockquote 样式 */
  24250. .cont >>> blockquote {
  24251. display: block;
  24252. border-left: 8px solid #d0e5f2;
  24253. padding: 5px 10px;
  24254. margin: 10px 0;
  24255. line-height: 1.4;
  24256. font-size: 100%;
  24257. background-color: #f1f1f1;
  24258. }
  24259. /* code 样式 */
  24260. .cont >>> code {
  24261. display: inline-block;
  24262. /* *display: inline; */
  24263. zoom: 1;
  24264. background-color: #f1f1f1;
  24265. border-radius: 3px;
  24266. padding: 3px 5px;
  24267. margin: 0 3px;
  24268. }
  24269. .cont >>> pre code {
  24270. display: block;
  24271. }
  24272. /* ul ol 样式 */
  24273. .cont >>> ul,
  24274. ol {
  24275. margin: 10px 0 10px 20px;
  24276. }
  24277. .addPzCheck {
  24278. display: flex;
  24279. flex-direction: row;
  24280. flex-wrap: nowrap;
  24281. padding: 10px 15px 0;
  24282. }
  24283. .addPzCheck span {
  24284. cursor: pointer;
  24285. padding-bottom: 5px;
  24286. font-weight: bold;
  24287. }
  24288. .addPzCheck span + span {
  24289. margin-left: 10px;
  24290. }
  24291. .addPzCheck .isChooseActive {
  24292. color: #3e88f4;
  24293. border-bottom: 2px solid #2f80f3;
  24294. }
  24295. /* code 样式 */
  24296. .cont {
  24297. /* -webkit-user-modify: read-write; */
  24298. overflow-wrap: break-word;
  24299. -webkit-line-break: after-white-space;
  24300. word-break: break-word;
  24301. white-space: pre-line;
  24302. }
  24303. .scoreBox,
  24304. .scoreDetailBox {
  24305. display: flex;
  24306. align-items: center;
  24307. justify-content: flex-start;
  24308. margin-top: 20px;
  24309. font-size: 18px;
  24310. width: 100%;
  24311. }
  24312. .scoreBox .t,
  24313. .scoreDetailBox .t {
  24314. margin-right: 10px;
  24315. width: 100px;
  24316. text-align: right;
  24317. }
  24318. .scoreDetailBox {
  24319. align-items: flex-start;
  24320. }
  24321. .scoreDetailBox >>> .el-textarea {
  24322. width: calc(100% - 200px);
  24323. }
  24324. .scoreBox >>> .el-input {
  24325. width: 130px;
  24326. font-size: 38px;
  24327. }
  24328. .scoreBox >>> .el-input__inner {
  24329. height: 60px;
  24330. }
  24331. .answerScore {
  24332. position: absolute;
  24333. top: 10px;
  24334. right: 10px;
  24335. background: #0000008f;
  24336. border-radius: 5px;
  24337. padding: 3px 5px;
  24338. font-size: 14px;
  24339. color: #fff;
  24340. cursor: pointer;
  24341. }
  24342. .open_box .switch_box {
  24343. width: 100%;
  24344. margin: 0 auto;
  24345. display: flex;
  24346. justify-content: space-between;
  24347. }
  24348. .open_box .switch_box + .switch_box {
  24349. margin-top: 10px;
  24350. }
  24351. .deleteImg,.deleteImg1 {
  24352. width: 25px !important;
  24353. height: 25px !important;
  24354. cursor: pointer;
  24355. position: absolute;
  24356. top: 10px;
  24357. right: 10px;
  24358. }
  24359. .deleteImg2 {
  24360. width: 23px !important;
  24361. height: 23px !important;
  24362. top: 5px;
  24363. right: 5px;
  24364. }
  24365. .deleteImg1{
  24366. width: 23px !important;
  24367. height: 23px !important;
  24368. top: 5px !important;
  24369. right: 30px !important;
  24370. }
  24371. .rightW {
  24372. right: 40px;
  24373. }
  24374. .drawPBox {
  24375. display: flex;
  24376. flex-direction: column;
  24377. position: relative;
  24378. }
  24379. .drawPBox span {
  24380. font-size: 18px;
  24381. color: #606266;
  24382. padding-bottom: 10px;
  24383. margin: 10px 0;
  24384. border-bottom: 1px solid #eaeaea;
  24385. }
  24386. .drawPBox img {
  24387. width: 500px;
  24388. height: 300px;
  24389. object-fit: contain;
  24390. cursor: pointer;
  24391. margin: 0 auto;
  24392. }
  24393. .sentenBox {
  24394. background: #fff;
  24395. height: 450px;
  24396. overflow: auto;
  24397. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24398. background-position: 102%;
  24399. background-repeat: no-repeat;
  24400. background-size: 60%;
  24401. }
  24402. .addSen {
  24403. background: #409efe;
  24404. width: 90px;
  24405. color: #fff;
  24406. height: 35px;
  24407. text-align: center;
  24408. line-height: 35px;
  24409. border-radius: 5px;
  24410. float: right;
  24411. margin: 10px 20px 0 0;
  24412. cursor: pointer;
  24413. }
  24414. .sentenTop {
  24415. display: flex;
  24416. flex-direction: row;
  24417. flex-wrap: nowrap;
  24418. align-items: center;
  24419. padding: 55px 0 0 20px;
  24420. box-sizing: border-box;
  24421. }
  24422. .sentenTop > div:nth-child(2) {
  24423. width: 300px;
  24424. margin: 0 15px;
  24425. }
  24426. .sentenTop > div:nth-child(3) {
  24427. background: #409efe;
  24428. color: #fff;
  24429. width: 65px;
  24430. height: 35px;
  24431. text-align: center;
  24432. line-height: 35px;
  24433. border-radius: 5px;
  24434. cursor: pointer;
  24435. }
  24436. .cardList,
  24437. .cardList1 {
  24438. padding: 10px 0 10px 0;
  24439. display: flex;
  24440. flex-direction: row;
  24441. flex-wrap: wrap;
  24442. align-items: center;
  24443. box-sizing: border-box;
  24444. border-bottom: 1px solid #f4f4f4;
  24445. width: 98%;
  24446. margin: 0 auto;
  24447. min-width: 60%;
  24448. max-width: 85%;
  24449. }
  24450. .cardList1 {
  24451. padding: 10px 0 10px 10px !important;
  24452. margin: 0 !important;
  24453. }
  24454. .cardBox {
  24455. display: flex;
  24456. flex-direction: row;
  24457. flex-wrap: wrap;
  24458. align-items: center;
  24459. align-content: center;
  24460. }
  24461. .cardBox > div {
  24462. margin-bottom: 10px;
  24463. }
  24464. .isCard,
  24465. .isChooseCard,
  24466. .noCard,
  24467. .isCard1 {
  24468. min-width: 130px;
  24469. width: auto;
  24470. height: 60px;
  24471. text-align: center;
  24472. line-height: 60px;
  24473. font-size: 20px;
  24474. cursor: pointer;
  24475. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24476. background-size: cover;
  24477. transition: all 2s;
  24478. margin-right: 20px;
  24479. background-size: 100% 100%;
  24480. padding: 0 20px;
  24481. box-sizing: border-box;
  24482. }
  24483. .isCard > div,
  24484. .noCard > div,
  24485. .isCard1 > div {
  24486. white-space: nowrap;
  24487. overflow: hidden;
  24488. text-overflow: ellipsis;
  24489. width: 100%;
  24490. margin: 0 auto;
  24491. }
  24492. .noCard {
  24493. background-image: none;
  24494. }
  24495. .isCard1 {
  24496. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24497. }
  24498. .isChooseCard {
  24499. background-image: none;
  24500. border: 1px dashed #b9b9b9;
  24501. border-radius: 10px;
  24502. }
  24503. .card {
  24504. width: 130px;
  24505. height: 60px;
  24506. }
  24507. .card > img {
  24508. width: 100%;
  24509. height: 100%;
  24510. }
  24511. .rightCardBox {
  24512. margin: 10px 0 0 10px;
  24513. }
  24514. .rightCardBox > div:nth-child(1) {
  24515. margin-bottom: 10px;
  24516. }
  24517. .cardCss {
  24518. display: flex;
  24519. flex-direction: column;
  24520. flex-wrap: nowrap;
  24521. align-items: center;
  24522. border-bottom: 3px solid #b4c3d3;
  24523. padding: 0 0 5px 0;
  24524. margin-right: 10px;
  24525. }
  24526. .cardCss > div:nth-child(2) {
  24527. background: #5b7b9d;
  24528. color: #fff;
  24529. width: 20px;
  24530. height: 20px;
  24531. border-radius: 50%;
  24532. text-align: center;
  24533. line-height: 20px;
  24534. }
  24535. .isWrong {
  24536. display: flex;
  24537. flex-direction: row;
  24538. flex-wrap: nowrap;
  24539. align-content: center;
  24540. align-items: center;
  24541. }
  24542. .answerRight {
  24543. width: 25%;
  24544. }
  24545. .isTj {
  24546. display: flex;
  24547. flex-direction: row;
  24548. flex-wrap: nowrap;
  24549. align-items: center;
  24550. }
  24551. .isTj > div:nth-child(2) {
  24552. color: #727070;
  24553. margin-left: 10px;
  24554. }
  24555. .isTjImg {
  24556. width: 30px;
  24557. height: 30px;
  24558. }
  24559. .isTjImg > img {
  24560. width: 100%;
  24561. height: 100%;
  24562. }
  24563. .cardAnswerBox {
  24564. font-size: 18px;
  24565. width: 97%;
  24566. border: 5px;
  24567. padding: 0;
  24568. border-radius: 5px;
  24569. margin: 10px auto;
  24570. word-break: break-word;
  24571. }
  24572. .w_name {
  24573. margin-bottom: 10px;
  24574. }
  24575. .w_name span {
  24576. font-size: 16px;
  24577. }
  24578. .w_teachert {
  24579. width: 50px !important;
  24580. position: absolute;
  24581. height: auto !important;
  24582. z-index: 10;
  24583. right: 25px;
  24584. top: -25px;
  24585. }
  24586. /* .group_workBox {
  24587. } */
  24588. .group_workBox + .group_workBox {
  24589. margin-top: 20px;
  24590. }
  24591. .group_box {
  24592. padding-bottom: 20px;
  24593. border-bottom: 2px solid #f0f0f0;
  24594. margin-top: 10px;
  24595. }
  24596. .group_title {
  24597. display: flex;
  24598. align-items: center;
  24599. justify-content: space-between;
  24600. width: 95%;
  24601. }
  24602. .group_name {
  24603. background-image: url(../../assets/icon/groupN.png);
  24604. width: 220px;
  24605. background-size: 100% 100%;
  24606. height: 67px;
  24607. padding: 0 20px 0 43px;
  24608. box-sizing: border-box;
  24609. line-height: 63px;
  24610. color: #fff;
  24611. overflow: hidden;
  24612. white-space: nowrap;
  24613. text-overflow: ellipsis;
  24614. }
  24615. .group_work {
  24616. width: 100%;
  24617. padding: 0 10px;
  24618. box-sizing: border-box;
  24619. display: flex;
  24620. flex-wrap: wrap;
  24621. }
  24622. .g_d_box {
  24623. display: flex;
  24624. flex-flow: wrap;
  24625. justify-content: space-around;
  24626. }
  24627. .g_d_box .isChair {
  24628. background-image: url(../../assets/avatar.png) !important;
  24629. }
  24630. .g_d_group {
  24631. width: 500px;
  24632. margin-bottom: 80px;
  24633. }
  24634. .g_d_group_chair {
  24635. display: flex;
  24636. align-items: center;
  24637. justify-content: center;
  24638. }
  24639. .g_d_group_chair > div + div {
  24640. margin-left: 30px;
  24641. }
  24642. .g_d_group_chair > div,
  24643. .g_d_group_chair2 > div {
  24644. display: flex;
  24645. flex-direction: column;
  24646. align-items: center;
  24647. }
  24648. .g_d_group_chair > div > span:nth-child(1),
  24649. .g_d_group_chair2 > div > span:nth-child(1) {
  24650. background-image: url(../../assets/icon/chair.png);
  24651. width: 50px;
  24652. height: 50px;
  24653. display: block;
  24654. background-size: 100% 100%;
  24655. }
  24656. .g_d_group_tableBox {
  24657. display: flex;
  24658. align-items: center;
  24659. justify-content: center;
  24660. }
  24661. .g_d_group_chair2 {
  24662. display: flex;
  24663. flex-direction: column;
  24664. align-items: center;
  24665. justify-content: center;
  24666. }
  24667. .g_d_group_chair2 > div + div {
  24668. margin-top: 10px;
  24669. }
  24670. .g_d_group_table {
  24671. background-image: url(../../assets/icon/groupBg.png);
  24672. width: 354px;
  24673. height: 196px;
  24674. background-size: 100% 100%;
  24675. display: flex;
  24676. align-items: center;
  24677. justify-content: center;
  24678. flex-direction: column;
  24679. color: #fff;
  24680. }
  24681. .g_d_group_table > div:nth-child(1) {
  24682. font-size: 24px;
  24683. margin-bottom: 5px;
  24684. }
  24685. .g_d_group_table > div:nth-child(2) div {
  24686. cursor: pointer;
  24687. background: #2e77bf;
  24688. padding: 4px 10px;
  24689. border-radius: 5px;
  24690. }
  24691. /* .groupBox {
  24692. } */
  24693. .groupContent + .groupContent {
  24694. margin-top: 30px;
  24695. }
  24696. .groupTitle {
  24697. font-size: 24px;
  24698. color: rgb(80, 80, 80);
  24699. margin-bottom: 20px;
  24700. }
  24701. .groupName {
  24702. display: flex;
  24703. align-items: center;
  24704. }
  24705. .groupn {
  24706. font-size: 15px;
  24707. margin-right: 10px;
  24708. }
  24709. .groupName + .groupName {
  24710. margin-top: 15px;
  24711. }
  24712. .groupBtn {
  24713. margin-left: 10px;
  24714. }
  24715. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24716. text-align: left;
  24717. }
  24718. .g_d_btnBox {
  24719. display: flex;
  24720. justify-content: flex-end;
  24721. align-items: center;
  24722. margin-bottom: 20px;
  24723. }
  24724. .updateChair {
  24725. position: relative;
  24726. }
  24727. .updateChairBtn {
  24728. position: absolute;
  24729. width: 50px;
  24730. height: 50px;
  24731. overflow: hidden;
  24732. /* display: flex; */
  24733. align-items: center;
  24734. justify-content: center;
  24735. background: #00000087;
  24736. color: #fff;
  24737. border-radius: 50px;
  24738. display: none;
  24739. cursor: pointer;
  24740. }
  24741. .updateChair:hover .updateChairBtn {
  24742. display: flex;
  24743. }
  24744. .group_staic_box {
  24745. display: flex;
  24746. padding: 30px 40px 10px;
  24747. flex-wrap: wrap;
  24748. }
  24749. .group_staic {
  24750. /* width: 50%; */
  24751. margin-bottom: 20px;
  24752. display: flex;
  24753. align-items: center;
  24754. }
  24755. .group_staic span:nth-child(1) {
  24756. width: 150px;
  24757. text-align: right;
  24758. margin-right: 15px;
  24759. }
  24760. .group_staic span:nth-child(2) {
  24761. background: rgb(0 123 255);
  24762. color: #fff;
  24763. border-radius: 5px;
  24764. padding: 5px;
  24765. }
  24766. .codeFileBox {
  24767. height: 300px;
  24768. background: #fff;
  24769. display: flex;
  24770. align-items: center;
  24771. justify-content: center;
  24772. }
  24773. .codeFileBox img {
  24774. width: 200px;
  24775. margin: 0;
  24776. height: auto;
  24777. }
  24778. .codeFileBox div {
  24779. background: rgb(80, 142, 226);
  24780. color: #fff;
  24781. padding: 10px 20px;
  24782. border-radius: 25px;
  24783. cursor: pointer;
  24784. margin-left: 15px;
  24785. }
  24786. .radioBox {
  24787. display: flex;
  24788. flex-direction: column;
  24789. flex-wrap: nowrap;
  24790. align-items: flex-start;
  24791. }
  24792. .radioBox > div {
  24793. margin: 10px 0 0 10px;
  24794. }
  24795. /* .radioBox >>> .el-radio__input,
  24796. .radioBox >>> .el-checkbox__inner {
  24797. margin-left: 10px;
  24798. } */
  24799. .radioBox >>> .el-radio__label,
  24800. .radioBox >>> .el-checkbox__label {
  24801. display: flex;
  24802. align-items: center;
  24803. width: 100%;
  24804. }
  24805. .radioBox >>> .el-radio__label > span {
  24806. width: 100%;
  24807. display: -webkit-box;
  24808. overflow: hidden;
  24809. white-space: normal !important;
  24810. text-overflow: ellipsis;
  24811. word-wrap: break-word;
  24812. }
  24813. .inImg {
  24814. width: 100px;
  24815. cursor: pointer;
  24816. }
  24817. .inImg > img {
  24818. width: 100%;
  24819. height: 100%;
  24820. object-fit: cover;
  24821. }
  24822. .timuImgBox {
  24823. margin: 10px 0;
  24824. display: flex;
  24825. flex-direction: column;
  24826. flex-wrap: wrap;
  24827. align-items: flex-start;
  24828. }
  24829. .timuImg {
  24830. width: 150px;
  24831. margin: 5px 0;
  24832. cursor: pointer;
  24833. }
  24834. .timuImg > img {
  24835. width: 100%;
  24836. height: 100%;
  24837. object-fit: cover;
  24838. }
  24839. .worksTop {
  24840. display: flex;
  24841. flex-direction: row;
  24842. align-items: flex-end;
  24843. }
  24844. .worksTitle {
  24845. display: flex;
  24846. flex-direction: row;
  24847. flex-wrap: nowrap;
  24848. align-items: center;
  24849. }
  24850. .worksTitle::before,
  24851. .worksTop::before {
  24852. content: "";
  24853. display: block;
  24854. width: 3px;
  24855. height: 20px;
  24856. background: #0061ff;
  24857. border-radius: 3px;
  24858. margin: 0 5px 0 0;
  24859. }
  24860. .corOpen {
  24861. margin: 0 0 0 10px;
  24862. font-size: 14px;
  24863. cursor: pointer;
  24864. color: #505050;
  24865. }
  24866. .corOpen:hover {
  24867. color: #499eef;
  24868. }
  24869. .navCorOpenBox {
  24870. display: flex;
  24871. flex-direction: row;
  24872. align-items: center;
  24873. justify-content: space-between;
  24874. height: 55px;
  24875. background: #ffffff;
  24876. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24877. border-radius: 8px 8px 0px 0px;
  24878. z-index: 9;
  24879. position: relative;
  24880. }
  24881. .navCorOpen {
  24882. padding-right: 15px;
  24883. cursor: pointer;
  24884. width: 45px;
  24885. display: flex;
  24886. }
  24887. .navCorOpen > img {
  24888. width: 100%;
  24889. height: 100%;
  24890. }
  24891. .mlImg {
  24892. width: 40px !important;
  24893. min-width: 40px;
  24894. cursor: pointer;
  24895. transform: rotate(180deg);
  24896. }
  24897. .mlImg > img {
  24898. width: 100%;
  24899. height: 100%;
  24900. }
  24901. .navLeftCss {
  24902. width: 100% !important;
  24903. left: 0 !important;
  24904. }
  24905. .isContentCss {
  24906. width: 100% !important;
  24907. }
  24908. .isAllWidth {
  24909. width: 100% !important;
  24910. }
  24911. .group_switch {
  24912. margin-right: 10px;
  24913. height: 30px;
  24914. display: flex;
  24915. align-items: center;
  24916. }
  24917. .group_switch > span {
  24918. margin-right: 5px;
  24919. }
  24920. .fileC_box {
  24921. padding-top: 15px;
  24922. }
  24923. .fileC_box > .fileC_title {
  24924. padding: 10px 5px 14px 10px;
  24925. border-top: 1px solid #cad1dc;
  24926. font-size: 14px;
  24927. font-weight: 400;
  24928. color: #cad1dc;
  24929. width: calc(100% - 20px);
  24930. margin: 0 auto;
  24931. box-sizing: border-box;
  24932. }
  24933. .pl_select_box {
  24934. height: 40px;
  24935. line-height: 40px;
  24936. width: 100%;
  24937. cursor: pointer;
  24938. padding: 0 20px;
  24939. box-sizing: border-box;
  24940. border-radius: 5px;
  24941. border: 1px solid #d6d6d6;
  24942. white-space: nowrap;
  24943. overflow: hidden;
  24944. text-overflow: ellipsis;
  24945. background: #fff;
  24946. text-align: left;
  24947. }
  24948. .newButton {
  24949. width: 102px;
  24950. height: 36px;
  24951. background: #e7ebf1;
  24952. border-radius: 4px;
  24953. color: #0e1e33;
  24954. font-weight: 400;
  24955. font-size: 14px;
  24956. border: none;
  24957. float: right;
  24958. margin-left: 10px;
  24959. }
  24960. .el-table >>> .even_row {
  24961. background-color: #f0f4fa;
  24962. }
  24963. .stageBoxCss,
  24964. .stageBoxIsCss {
  24965. display: flex;
  24966. flex-direction: row;
  24967. flex-wrap: nowrap;
  24968. align-items: center;
  24969. height: 50px;
  24970. border-bottom: 1px solid #e2f5fc;
  24971. cursor: pointer;
  24972. width: 100%;
  24973. }
  24974. .stageBoxIsCss {
  24975. background: #0061ff;
  24976. color: #fff;
  24977. border-radius: 8px;
  24978. }
  24979. .closeTri,
  24980. .closeTri1 {
  24981. min-width: 15px;
  24982. width: 15px;
  24983. height: 15px;
  24984. }
  24985. .closeTri1 {
  24986. padding-left: 10px;
  24987. cursor: pointer;
  24988. }
  24989. .closeTri > img,
  24990. .closeTri1 > img {
  24991. width: 100%;
  24992. height: 100%;
  24993. /* transition: all .5s; */
  24994. }
  24995. .noToolBlue {
  24996. min-width: 10px;
  24997. width: 10px;
  24998. height: 10px;
  24999. background: #0061ff;
  25000. border-radius: 50%;
  25001. margin-left: 13px;
  25002. }
  25003. .stageChild,
  25004. .toolChild {
  25005. height: 0;
  25006. overflow: hidden;
  25007. transition: all 0.5s;
  25008. }
  25009. /* .toolChild { */
  25010. /* margin: 0 0 0 17px;
  25011. padding: 0 0 0 20px;
  25012. border-left: 1px solid #d7d7d7; */
  25013. /* } */
  25014. .toolChild > div + div{
  25015. margin-top:5px;
  25016. }
  25017. .gjCss {
  25018. display: flex;
  25019. flex-direction: row;
  25020. flex-wrap: nowrap;
  25021. align-items: center;
  25022. padding: 10px 0 10px 40px;
  25023. box-sizing: border-box;
  25024. font-size: 14px;
  25025. cursor: pointer;
  25026. border-radius:5px;
  25027. }
  25028. .toolChild > div {
  25029. position: relative;
  25030. width: 100%;
  25031. }
  25032. .toolChild > div::before {
  25033. /* content: "";
  25034. width: 15px;
  25035. height: 1px;
  25036. background: #cad1dc;
  25037. position: absolute;
  25038. top: 24px;
  25039. left: -20px;
  25040. display: block; */
  25041. }
  25042. .isGjCss {
  25043. /* color: #0061ff; */
  25044. color:#fff;
  25045. background: rgb(55, 129, 252);
  25046. /* background-color: #e0eafb !important;
  25047. color: #0061ff !important; */
  25048. }
  25049. .navItem {
  25050. background: #ffffff;
  25051. border-radius: 4px;
  25052. width: 100%;
  25053. margin: 10px auto;
  25054. position: relative;
  25055. height: 40px;
  25056. display: flex;
  25057. flex-direction: row;
  25058. flex-wrap: nowrap;
  25059. align-items: center;
  25060. }
  25061. .navItemList {
  25062. display: flex;
  25063. flex-direction: row;
  25064. flex-wrap: nowrap;
  25065. align-items: center;
  25066. padding: 0 13px;
  25067. cursor: pointer;
  25068. width: calc(100% - 60px);
  25069. height: 100%;
  25070. }
  25071. .navItemList > div:first-child {
  25072. min-width: 60px;
  25073. }
  25074. .navItemList > div:last-child {
  25075. width: calc(100% - 80px);
  25076. white-space: nowrap;
  25077. overflow: hidden;
  25078. text-overflow: ellipsis;
  25079. word-break: break-word;
  25080. }
  25081. /* .isItemList > div {
  25082. color: #fff !important;
  25083. } */
  25084. .tool_work_box {
  25085. width: 100%;
  25086. padding: 0 37px 0;
  25087. box-sizing: border-box;
  25088. }
  25089. .tool_box {
  25090. width: 100%;
  25091. padding: 0 0 0 20px;
  25092. }
  25093. .tool_type_box {
  25094. display: flex;
  25095. flex-direction: row;
  25096. align-items: baseline;
  25097. flex-wrap: nowrap;
  25098. justify-content: flex-start;
  25099. position: relative;
  25100. }
  25101. .toolSort {
  25102. display: flex;
  25103. flex-direction: row;
  25104. flex-wrap: wrap;
  25105. justify-content: flex-start;
  25106. align-items: flex-start;
  25107. padding: 0 0 15px 0;
  25108. }
  25109. .toolSort > div {
  25110. margin: 0 10px 0 0;
  25111. width: 135px;
  25112. box-sizing: border-box;
  25113. border: 2px solid transparent;
  25114. }
  25115. .tools {
  25116. width: 100%;
  25117. display: flex;
  25118. flex-direction: column;
  25119. flex-wrap: nowrap;
  25120. align-items: flex-start;
  25121. }
  25122. .whiteBIcon {
  25123. width: fit-content;
  25124. cursor: pointer;
  25125. display: flex;
  25126. flex-direction: column;
  25127. flex-wrap: nowrap;
  25128. align-items: center;
  25129. font-size: 14px;
  25130. }
  25131. .tool:hover {
  25132. border: 2px solid #a5c7ff;
  25133. border-radius: 5px;
  25134. }
  25135. .whiteBIcon > img {
  25136. width: 65px;
  25137. height: 100%;
  25138. }
  25139. .whiteBIcon > img {
  25140. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25141. border-radius: 15px;
  25142. }
  25143. .check {
  25144. /* width: 20px;
  25145. height: 20px; */
  25146. cursor: pointer;
  25147. margin: 10px 0;
  25148. position: absolute;
  25149. right: 2px;
  25150. top: -5px;
  25151. }
  25152. .noChoose,
  25153. .isChoose {
  25154. width: 15px;
  25155. height: 15px;
  25156. border-radius: 50%;
  25157. border: 1px solid #adadad;
  25158. }
  25159. .isChoose {
  25160. border: 4px solid #0363ff !important;
  25161. width: 10px;
  25162. height: 10px;
  25163. }
  25164. .isToolChoose {
  25165. border: 2px solid #5394ff !important;
  25166. border-radius: 5px;
  25167. box-shadow: 0 0 6px 0px #5394ff;
  25168. }
  25169. .checkDiv {
  25170. display: flex;
  25171. align-items: center;
  25172. }
  25173. .checkDiv span {
  25174. margin-left: 5px;
  25175. color: #858585;
  25176. }
  25177. .check img {
  25178. width: 20px;
  25179. height: 20px;
  25180. }
  25181. .lockTaskIcon {
  25182. width: 20px;
  25183. height: 20px;
  25184. position: absolute;
  25185. right: 10px;
  25186. top: 10px;
  25187. }
  25188. .lockTaskIcon > img {
  25189. width: 100%;
  25190. height: 100%;
  25191. }
  25192. .pick_box {
  25193. display: flex;
  25194. align-items: flex-start;
  25195. flex-wrap: wrap;
  25196. }
  25197. .selectBox {
  25198. width: 110px;
  25199. margin-left: 10px;
  25200. margin: 0 10px 0 auto;
  25201. }
  25202. .selectBox >>> .el-input__inner {
  25203. height: 30px;
  25204. line-height: 30px;
  25205. }
  25206. .selectBox >>> .el-input__icon {
  25207. line-height: 30px;
  25208. }
  25209. .sentenceTitle {
  25210. display: flex;
  25211. flex-direction: row;
  25212. flex-wrap: nowrap;
  25213. align-items: center;
  25214. }
  25215. .sentenceTitle::before {
  25216. content: attr(index);
  25217. background: #3681fc;
  25218. border-radius: 50%;
  25219. color: #fff;
  25220. width: 25px;
  25221. height: 25px;
  25222. min-width: 25px;
  25223. min-height: 25px;
  25224. text-align: center;
  25225. line-height: 25px;
  25226. margin-right: 5px;
  25227. }
  25228. .hfBox {
  25229. padding: 10px;
  25230. box-sizing: border-box;
  25231. }
  25232. .whoReplyWho {
  25233. display: flex;
  25234. flex-direction: row;
  25235. flex-wrap: nowrap;
  25236. align-items: baseline;
  25237. justify-content: flex-start;
  25238. }
  25239. .hfBottom {
  25240. display: flex;
  25241. flex-direction: row;
  25242. flex-wrap: nowrap;
  25243. align-items: center;
  25244. justify-content: space-between;
  25245. font-size: 14px;
  25246. }
  25247. .deleteHfItem {
  25248. cursor: pointer;
  25249. width: 20px;
  25250. height: 20px;
  25251. }
  25252. .deleteHfItem > img {
  25253. width: 100%;
  25254. height: 100%;
  25255. }
  25256. .whoReplyWho > .hfImg {
  25257. width: 12px;
  25258. height: 12px;
  25259. margin: 0 5px;
  25260. }
  25261. .whoReplyWho > .hfImg > img {
  25262. width: 100%;
  25263. height: 100%;
  25264. }
  25265. .hfContent {
  25266. padding-top: 10px;
  25267. box-sizing: border-box;
  25268. display: -webkit-box;
  25269. overflow: hidden;
  25270. white-space: normal !important;
  25271. text-overflow: ellipsis;
  25272. word-wrap: break-word;
  25273. -webkit-box-orient: vertical;
  25274. }
  25275. .hfTime {
  25276. text-align: left;
  25277. box-sizing: border-box;
  25278. padding: 10px 0 10px 0px;
  25279. color: #bfbfbf;
  25280. font-size: 14px;
  25281. }
  25282. .btnAllNT {
  25283. position: fixed;
  25284. bottom: 100px;
  25285. right: 40px;
  25286. z-index: 999;
  25287. display: flex;
  25288. flex-direction: row;
  25289. }
  25290. .btnAllNT > img {
  25291. cursor: pointer;
  25292. width: 80px;
  25293. }
  25294. .toolMask {
  25295. position: fixed;
  25296. width: 100%;
  25297. height: 100%;
  25298. background: #3f3c3c;
  25299. opacity: 0.5;
  25300. top: 0;
  25301. left: 0;
  25302. z-index: 999;
  25303. }
  25304. .addToolCss {
  25305. position: fixed;
  25306. z-index: 999;
  25307. background: #fff;
  25308. right: 5%;
  25309. bottom: 18%;
  25310. min-width: 1035px;
  25311. min-height: 300px;
  25312. border-radius: 10px;
  25313. box-shadow: 0 0 8px 1px #b2b2b2;
  25314. }
  25315. .toolTop {
  25316. display: flex;
  25317. flex-direction: row;
  25318. flex-wrap: nowrap;
  25319. justify-content: space-between;
  25320. align-items: center;
  25321. padding: 20px;
  25322. }
  25323. .toolTop > div:nth-child(2) {
  25324. width: 15px;
  25325. height: 15px;
  25326. padding-right: 10px;
  25327. cursor: pointer;
  25328. }
  25329. .toolTop > div:nth-child(2) > img {
  25330. width: 100%;
  25331. height: 100%;
  25332. }
  25333. .fullStyle>>>.el-dialog__body {
  25334. height: calc(100% - 125px) !important;
  25335. box-sizing: border-box;
  25336. padding: 30px 0 !important;
  25337. background: #fff !important;
  25338. }
  25339. .fullStyle>>>.el-dialog {
  25340. width: 100% !important;
  25341. max-width: 100% !important;
  25342. height: 100% !important;
  25343. margin: 0 !important;
  25344. }
  25345. .fullStyle {
  25346. width: 100% !important;
  25347. max-width: 100% !important;
  25348. height: 100% !important;
  25349. margin: 0 auto !important;
  25350. }
  25351. .fullStyle>>>.el-dialog__footer{
  25352. background: #fff !important;
  25353. }
  25354. .engUpBox {
  25355. width: 100%;
  25356. height: 100%;
  25357. }
  25358. .engTitle,
  25359. .engText {
  25360. display: flex;
  25361. flex-direction: row;
  25362. flex-wrap: nowrap;
  25363. align-items: flex-start;
  25364. padding: 0 20px 20px 20px;
  25365. box-sizing: border-box;
  25366. }
  25367. .engTitle > .div:first-child,
  25368. .engText > div:first-child {
  25369. min-width: 75px;
  25370. }
  25371. .correctBox{
  25372. width: 100%;
  25373. display: flex;
  25374. flex-direction: row;
  25375. flex-wrap: nowrap;
  25376. align-items: flex-start;
  25377. }
  25378. .oldBox{
  25379. width: 50%;
  25380. height: 100%;
  25381. display: flex;
  25382. flex-direction: column;
  25383. flex-wrap: nowrap;
  25384. align-items: center;
  25385. border-top: 1px solid #d9d9d9;
  25386. border-left: 1px solid #d9d9d9;
  25387. border-right: 1px solid #d9d9d9;
  25388. }
  25389. .oldBox>div:first-child{
  25390. width: 100%;
  25391. text-align: center;
  25392. background: #d9d9d9;
  25393. height: 35px;
  25394. line-height: 35px;
  25395. font-weight: bold;
  25396. }
  25397. .oldText{
  25398. width: 100%;
  25399. height: calc(100% - 35px);
  25400. overflow: auto;
  25401. margin: 10px 0;
  25402. display: flex;
  25403. flex-direction: column;
  25404. flex-wrap: nowrap;
  25405. align-content: center;
  25406. align-items: center;
  25407. }
  25408. .detailBox{
  25409. width: 50%;
  25410. padding: 10px;
  25411. background: #f6f6f6;
  25412. border-radius: 5px;
  25413. }
  25414. .oldDetail,.oldDetail1{
  25415. padding-bottom: 30px;
  25416. }
  25417. .oldImg{
  25418. width:30px;
  25419. height: 30px;
  25420. }
  25421. .oldImg>img{
  25422. width: 100%;
  25423. height: 100%;
  25424. }
  25425. .allName{
  25426. min-width: 200px;
  25427. white-space: nowrap;
  25428. overflow: hidden;
  25429. text-overflow: ellipsis;
  25430. word-break: break-word;
  25431. cursor: pointer;
  25432. text-align: center;
  25433. border: 1px solid #bcc2cc;
  25434. box-sizing: border-box;
  25435. }
  25436. .engUpTop{
  25437. max-height: 300px;
  25438. overflow: auto;
  25439. }
  25440. .isUpdateToolDetailClass{
  25441. padding: 0 !important;
  25442. }
  25443. .isUpdateToolDetailClass textarea{
  25444. padding:12px;
  25445. font-size: 16px;
  25446. min-height:100%;
  25447. width: 100%;
  25448. box-sizing:border-box;
  25449. outline: none;
  25450. border:none;
  25451. line-height: 30px;
  25452. resize: none;
  25453. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25454. color: #838383;
  25455. }
  25456. .show_taskD {
  25457. min-width: fit-content;
  25458. margin-left: 10px;
  25459. display: flex;
  25460. align-items: center;
  25461. font-size: 14px;
  25462. cursor: pointer;
  25463. color: #717c8d;
  25464. }
  25465. .show_taskD > img {
  25466. width: 15px;
  25467. margin-right: 5px;
  25468. transition: 0.2s all;
  25469. transform: rotate(-90deg);
  25470. }
  25471. .show_taskD.show > img {
  25472. transform: rotate(0deg);
  25473. }
  25474. .dialog_diyCopy >>> .el-dialog__header {
  25475. display: none !important;
  25476. }
  25477. .dialog_diyCopy >>> .el-dialog__body {
  25478. padding: 0 !important;
  25479. height: 100% !important;
  25480. }
  25481. .confirmOpenDigCss > div{
  25482. font-size: 14px;
  25483. color: rgba(0, 0, 0, 0.6);
  25484. }
  25485. .confirmOpenDigCss >>> .el-dialog{
  25486. border-radius: 6px;
  25487. }
  25488. .confirmOpenDigCss >>> .el-dialog__body{
  25489. padding: 25px !important;
  25490. }
  25491. .confirmOpenDigCss > span{
  25492. font-size: 16px;
  25493. font-weight: 600;
  25494. color: rgba(0, 0, 0, 0.8);
  25495. }
  25496. .correctCss{
  25497. position: absolute;
  25498. bottom: -70px;
  25499. background: #409eff;
  25500. color: #fff;
  25501. }
  25502. div::-webkit-scrollbar {
  25503. width: 10px;
  25504. height: 6px;
  25505. }
  25506. .Ovh{
  25507. margin: 5px 0;
  25508. width: 4em;
  25509. -webkit-line-clamp: 2;
  25510. display: -webkit-box;
  25511. -webkit-box-orient: vertical;
  25512. overflow: hidden;
  25513. text-overflow: ellipsis;
  25514. }
  25515. </style>