studyStudent.vue 867 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867
  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% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '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) || ['2'].includes(tType)">
  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. ? 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. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  622. :src="pptImgUrl1"
  623. ></iframe>
  624. <iframe
  625. style="width: 100%; height: 100%; border: none"
  626. security="restricted"
  627. v-else
  628. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  629. :src="pptImgUrl1"
  630. ></iframe>
  631. </div>
  632. <div
  633. class="wheel"
  634. v-if="showType == 3"
  635. style="width: 95%; margin: 0 auto"
  636. >
  637. <pdf
  638. :pdfUrl="pptImgUrl1"
  639. style="width: 100%; height: 100%; overflow: auto"
  640. ></pdf>
  641. </div>
  642. <div
  643. class="wheel"
  644. v-if="showType == 4"
  645. style="width: 95%; margin: 0 auto"
  646. >
  647. <el-image
  648. :src="pptImgUrl1"
  649. fit="contain"
  650. style="width: 100%; height: 100%; cursor: pointer"
  651. @click="previewImg(pptImgUrl1)"
  652. ></el-image>
  653. </div>
  654. </div>
  655. <div
  656. class="pButton"
  657. style="position: absolute; right: 20px; top: 0; z-index: 998"
  658. v-if="!contentDialog"
  659. @click="setContent(true)"
  660. >
  661. <!-- 批 -->
  662. <img
  663. src="../../assets/icon/newIcons/isLeft.png"
  664. style="width: 45px"
  665. alt=""
  666. />
  667. </div>
  668. <div
  669. v-if="contentDialog == true"
  670. :style="{
  671. width:
  672. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  673. showType === ''
  674. ? 'calc(100%)'
  675. : '300px',
  676. margin:
  677. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  678. showType === ''
  679. ? '0 15px'
  680. : '0 15px 0 0',
  681. }"
  682. >
  683. <div
  684. class="vedioList"
  685. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  686. style="height: 650px"
  687. >
  688. <div class="navCorOpenBox">
  689. <div class="navTitile">内容列表:</div>
  690. <div class="navCorOpen" @click="setContent(false)">
  691. <img
  692. src="../../assets/icon/newIcons/isRight.png"
  693. alt=""
  694. />
  695. </div>
  696. </div>
  697. <div class="navBox">
  698. <div
  699. v-show="
  700. vChapterData[0].length > 0 || fileC[0].length > 0
  701. "
  702. style="padding: 10px 0 25px 0"
  703. >
  704. <div
  705. class="vedioTimeBox"
  706. v-for="(vitem, vindex) in vChapterData[0]"
  707. :key="vindex + '1'"
  708. >
  709. <div class="navListItem" v-if="vitem.type == 2">
  710. <div
  711. @click="lookVedio(vitem.url, vindex)"
  712. class="navText"
  713. :class="isClickNav == vindex ? 'isClickNav' : ''"
  714. >
  715. <span v-if="vitem.text">{{ vitem.text }}-</span
  716. >{{ vitem.name }}
  717. </div>
  718. <div class="downIcon" @click="downloadFile2(vitem)">
  719. <img
  720. src="../../assets/icon/newIcon/down.png"
  721. alt
  722. />
  723. </div>
  724. </div>
  725. <div class="navListItem" v-if="vitem.type == 6">
  726. <div
  727. @click="lookText(0, vindex)"
  728. class="navText"
  729. :class="isClickNav == vindex ? 'isClickNav' : ''"
  730. >
  731. {{ vitem.name }}.doc
  732. </div>
  733. <div
  734. class="downIcon"
  735. @click="checkFileFull1(vitem.type, vitem)"
  736. >
  737. <img
  738. src="../../assets/icon/newIcon/allScreen.png"
  739. alt
  740. />
  741. </div>
  742. </div>
  743. <div
  744. class="navListItem"
  745. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  746. >
  747. <div
  748. @click="doUrl(vitem.url, vindex)"
  749. class="navText"
  750. :class="isClickNav == vindex ? 'isClickNav' : ''"
  751. >
  752. {{ vitem.title ? vitem.title : vitem.url }}
  753. </div>
  754. <div
  755. class="downIcon"
  756. @click="checkFileFull1(vitem.type, vitem)"
  757. >
  758. <img
  759. src="../../assets/icon/newIcon/allScreen.png"
  760. alt
  761. />
  762. </div>
  763. </div>
  764. <div class="navListItem" v-if="vitem.type == 3">
  765. <div
  766. @click="downFile(vitem, vindex)"
  767. class="navText"
  768. :class="isClickNav == vindex ? 'isClickNav' : ''"
  769. >
  770. <span v-if="vitem.text">{{ vitem.text }}-</span
  771. >{{ vitem.name }}
  772. </div>
  773. <div
  774. class="downIcon"
  775. @click="checkFileFull1(vitem.type, vitem)"
  776. >
  777. <img
  778. src="../../assets/icon/newIcon/allScreen.png"
  779. alt
  780. />
  781. </div>
  782. <div class="downIcon" @click="downloadFile2(vitem)">
  783. <img
  784. src="../../assets/icon/newIcon/down.png"
  785. alt
  786. />
  787. </div>
  788. </div>
  789. <div class="navListItem" v-if="vitem.type == 12">
  790. <div class="navText" @click="downloadFile2(vitem)">
  791. <span v-if="vitem.text">{{ vitem.text }}-</span
  792. >{{ vitem.name }}
  793. </div>
  794. <div
  795. class="downIcon"
  796. @click="checkFileFull1(vitem.type, vitem)"
  797. >
  798. <img
  799. src="../../assets/icon/newIcon/allScreen.png"
  800. alt
  801. />
  802. </div>
  803. <div class="downIcon" @click="downloadFile2(vitem)">
  804. <img
  805. src="../../assets/icon/newIcon/down.png"
  806. alt
  807. />
  808. </div>
  809. </div>
  810. <div class="navListItem" v-if="vitem.type == 13">
  811. <div
  812. class="navText"
  813. @click="checkPhoto(vitem, vindex)"
  814. :class="isClickNav == vindex ? 'isClickNav' : ''"
  815. >
  816. {{ vitem.name }}
  817. </div>
  818. <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div>
  824. </div>
  825. </div>
  826. <div class="fileC_box" v-if="fileC[0].length > 0">
  827. <div class="fileC_title">以下文件不支持预览</div>
  828. <div
  829. class="vedioTimeBox"
  830. v-for="(vitem, vindex) in fileC[0]"
  831. :key="vindex + '1'"
  832. >
  833. <div class="navListItem" v-if="vitem.type == 12">
  834. <div class="navText" style="color: #acb4bf">
  835. <span v-if="vitem.text">{{ vitem.text }}-</span
  836. >{{ vitem.name }}
  837. </div>
  838. <div
  839. class="downIcon"
  840. @click="downloadFile2(vitem)"
  841. >
  842. <img
  843. src="../../assets/icon/newIcon/down.png"
  844. alt
  845. />
  846. </div>
  847. </div>
  848. </div>
  849. </div>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <div style="width: calc(100% - 315px)">
  856. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  857. <!-- <el-button
  858. type="primary"
  859. class="newButton"
  860. @click="checkFileFull(showType, pptImgUrl1)"
  861. >全屏查看</el-button
  862. >
  863. <el-button
  864. type="primary"
  865. class="newButton"
  866. @click="downloadFile(pptImgUrl1)"
  867. v-if="showType != 2"
  868. >文件下载</el-button
  869. > -->
  870. <el-button
  871. v-if="
  872. showType == 2 &&
  873. pptImgUrl1.indexOf(
  874. 'https://view.officeapps.live.com/op/view.aspx?src='
  875. ) == -1
  876. "
  877. type="primary"
  878. class="newButton"
  879. @click="openLine(pptImgUrl1)"
  880. >打开链接
  881. </el-button>
  882. </div>
  883. <!-- <div
  884. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  885. v-if="showType == 1"
  886. >
  887. <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, text)"
  891. >全屏查看</el-button
  892. >
  893. </div> -->
  894. </div>
  895. </div>
  896. </div>
  897. <div class="student_body" v-resize="resize">
  898. <div
  899. class="vedioBox"
  900. :style="{
  901. borderRadius:
  902. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  903. .taskDetail == '' &&
  904. vChapterData[taskCount].length == 0 &&
  905. fileC[taskCount].length == 0
  906. ? '0 0 20px 20px'
  907. : '20px',
  908. }"
  909. v-if="
  910. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  911. .toolChoose[0].tool &&
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool.length > 0
  914. "
  915. >
  916. <div
  917. class="toolHeng2"
  918. style="position: relative"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length &&
  924. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  925. .toolChoose[0].tool.length > 0
  926. "
  927. >
  928. <div class="workNav">工作区</div>
  929. <div
  930. class="filebox"
  931. style="flex-wrap: nowrap"
  932. v-for="(tool, toolIndex) in chapInfoList[courseType]
  933. .chapterInfo[0].taskJson[taskCount].toolChoose"
  934. :key="toolIndex"
  935. >
  936. <div class="bzBox">
  937. <div class="yCss"></div>
  938. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  939. 工具{{ toolIndex + 1 }}
  940. </div>
  941. <div
  942. v-if="timeWorkList[toolIndex].length > 0"
  943. style="margin: 0 0 0 10px"
  944. >
  945. {{
  946. timeWorkList[toolIndex][0].time
  947. ? "时间:" + timeWorkList[toolIndex][0].time
  948. : ""
  949. }}
  950. </div>
  951. </div>
  952. <div class="toolBox">
  953. <div>
  954. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  955. :key="indexTool"-->
  956. <!-- <div class="iframeBox">
  957. <div
  958. class="addPoint isBorder"
  959. v-for="(tooC, toolCIndex) in tool.tool"
  960. :key="toolCIndex"
  961. >
  962. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  963. <div
  964. class="iframeName"
  965. >
  966. 电子白板
  967. </div>
  968. <iframe
  969. src="https://iwb.cocorobo.cn/"
  970. ref="whiteBoard"
  971. ></iframe>
  972. </div>
  973. </div>
  974. </div>-->
  975. <div class="noiframeBox">
  976. <div
  977. class="addPoint"
  978. v-for="(tooC, toolCIndex) in tool.tool"
  979. :key="toolCIndex"
  980. >
  981. <div v-if="tooC == 1">
  982. <img
  983. src="../../assets/icon/secondToolList/whiteBoard.png"
  984. alt
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. />
  987. <div style="margin: 5px 0">电子白板</div>
  988. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  989. style="position: absolute;right: 33px;top: -30px;">
  990. 投影
  991. </div>
  992. </div>
  993. <div v-if="tooC == 3">
  994. <img
  995. src="../../assets/icon/secondToolList/mindMapping.png"
  996. alt
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. />
  999. <div style="margin: 5px 0">思维导图</div>
  1000. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1001. style="position: absolute;right: 33px;top: -30px;">
  1002. 投影
  1003. </div>
  1004. </div>
  1005. <div v-if="tooC == 6">
  1006. <img
  1007. src="../../assets/icon/secondToolList/doc.png"
  1008. alt
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. />
  1011. <div style="margin: 5px 0">协同文档</div>
  1012. </div>
  1013. <div v-if="tooC == 7">
  1014. <img
  1015. src="../../assets/icon/secondToolList/mindNetwork.png"
  1016. alt
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. />
  1019. <div style="margin: 5px 0">思维网格</div>
  1020. <!-- && worksStudent[toolIndex].length>0 -->
  1021. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1022. style="position: absolute;right: 33px;top: -30px;">
  1023. 投影
  1024. </div>
  1025. </div>
  1026. <div v-if="tooC == 8">
  1027. <img
  1028. src="../../assets/icon/secondToolList/library.png"
  1029. alt
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. />
  1032. <div style="margin: 5px 0">素材库</div>
  1033. </div>
  1034. <div v-if="tooC == 17">
  1035. <img
  1036. src="../../assets/icon/secondToolList/library.png"
  1037. alt
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. />
  1040. <div style="margin: 5px 0">学习资料</div>
  1041. </div>
  1042. <div v-if="tooC == 2">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../../assets/icon/secondToolList/note.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">便签</div>
  1049. </div>
  1050. <div v-if="tooC == 4">
  1051. <img
  1052. @click="addTools(tooC, toolIndex, taskCount)"
  1053. src="../../assets/icon/thirdToolList/ask.png"
  1054. alt
  1055. />
  1056. <div style="margin: 5px 0">问卷调查</div>
  1057. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1058. style="position: absolute;right: 153px;top: -30px;">
  1059. 投影
  1060. </div>
  1061. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1062. style="position: absolute;right: 33px;top: -30px;">
  1063. 统计分析
  1064. </div>
  1065. </div>
  1066. <div v-if="tooC == 45">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../../assets/icon/thirdToolList/choose.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">选择题</div>
  1073. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1074. style="position: absolute;right: 33px;top: -30px;">
  1075. 投影
  1076. </div>
  1077. </div>
  1078. <!-- <div v-if="tooC == 5">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../../assets/icon/thirdToolList/score.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">量规评分</div>
  1085. </div> -->
  1086. <div v-if="tooC == 10">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../../assets/icon/thirdToolList/time.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">倒计时</div>
  1093. </div>
  1094. <div v-if="tooC == 15">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../../assets/icon/thirdToolList/answer.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">问答</div>
  1101. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1102. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1103. 投影
  1104. </div>
  1105. </div>
  1106. <div v-if="tooC == 26">
  1107. <img
  1108. @click="addTools(tooC, toolIndex, taskCount)"
  1109. src="../../assets/icon/thirdToolList/courseDesign.png"
  1110. alt
  1111. />
  1112. <div style="margin: 5px 0">课程设计</div>
  1113. </div>
  1114. <div v-if="tooC == 18">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">训练服务器</div>
  1121. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1122. style="position: absolute;right: 33px;top: -30px;">
  1123. 投影
  1124. </div>
  1125. </div>
  1126. <div v-if="tooC == 16">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/thirdToolList/work.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">作业提交</div>
  1133. </div>
  1134. <div v-if="tooC == 50">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../../assets/icon/thirdToolList/plwork.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">批量上传</div>
  1141. </div>
  1142. <div v-if="tooC == 21">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/fourthToolList/program.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">AIoT Blockly</div>
  1149. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1150. style="position: absolute;right: 33px;top: -30px;">
  1151. 投影
  1152. </div>
  1153. </div>
  1154. <!-- <div v-if="tooC == 22">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/fourthToolList/program.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">AI体验</div>
  1161. </div> -->
  1162. <div v-if="tooC == 23">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">AI Python</div>
  1169. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1170. style="position: absolute;right: 33px;top: -30px;">
  1171. 投影
  1172. </div>
  1173. </div>
  1174. <div v-if="tooC == 24">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/AIprogram.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AI Blockly</div>
  1181. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1182. style="position: absolute;right: 33px;top: -30px;">
  1183. 投影
  1184. </div>
  1185. </div>
  1186. <div v-if="tooC == 25">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/thirdToolList/evalua.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">目标管理</div>
  1193. </div>
  1194. <div v-if="tooC == 31">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/secondToolList/networkPanel.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">数学画板</div>
  1201. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1202. style="position: absolute;right: 33px;top: -30px;">
  1203. 投影
  1204. </div>
  1205. </div>
  1206. <div v-if="tooC == 28">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/secondToolList/translation.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">翻译</div>
  1213. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. 投影
  1216. </div>
  1217. </div>
  1218. <div v-if="tooC == 37">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/secondToolList/mohe.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">魔盒识字</div>
  1225. </div>
  1226. <div v-if="tooC == 38">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/secondToolList/24game.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">24点</div>
  1233. </div>
  1234. <div v-if="tooC == 39">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/secondToolList/GeoGebra.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">GeoGebra</div>
  1241. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1242. style="position: absolute;right: 33px;top: -30px;">
  1243. 投影
  1244. </div>
  1245. </div>
  1246. <div v-if="tooC == 32">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/thirdToolList/code.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">源码编辑</div>
  1253. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1254. style="position: absolute;right: 153px;top: -42px;">
  1255. 投影
  1256. </div>
  1257. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1258. style="position: absolute;left: 110px;bottom: 30px;">
  1259. 上传文件
  1260. <input type="file" accept="*" style="display: none"
  1261. @change="beforeUpload1($event, 7, toolIndex)" />
  1262. </div> -->
  1263. </div>
  1264. <div v-if="tooC == 40">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/eval.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">个人评价</div>
  1271. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 投影
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 41">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/select.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">选择匹配</div>
  1283. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. 投影
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 44">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../../assets/icon/thirdToolList/hanClass.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">汉字宫</div>
  1295. </div>
  1296. <div v-if="tooC == 47">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/fourthToolList/conSentences.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">排序</div>
  1303. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1304. style="position: absolute;right: 33px;top: -30px;">
  1305. 投影
  1306. </div>
  1307. </div>
  1308. <div v-if="tooC == 48">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../../assets/icon/fourthToolList/table.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">表格</div>
  1315. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1316. style="position: absolute;right: 33px;top: -30px;">
  1317. 投影
  1318. </div>
  1319. </div>
  1320. <div v-if="tooC == 52">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../../assets/icon/fourthToolList/text.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">文档</div>
  1327. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1328. style="position: absolute;right: 33px;top: -30px;">
  1329. 投影
  1330. </div>
  1331. </div>
  1332. <div v-if="tooC == 49">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../../assets/icon/fourthToolList/group.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">学生分组</div>
  1339. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. 投影
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 57">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../../assets/icon/fourthToolList/cocopi.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">CocoPi</div>
  1351. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. 投影
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 58">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/fourthToolList/car.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">模拟驾驶</div>
  1363. </div>
  1364. <div v-if="tooC == 59">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../../assets/icon/fourthToolList/lineSearch.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">路径搜索</div>
  1371. </div>
  1372. <div v-if="tooC == 60">
  1373. <img
  1374. @click="addTools(tooC, toolIndex, taskCount)"
  1375. src="../../assets/icon/fourthToolList/deepLearning.png"
  1376. alt
  1377. />
  1378. <div style="margin: 5px 0">深度学习</div>
  1379. </div>
  1380. <div v-if="tooC == 61">
  1381. <img
  1382. @click="addTools(tooC, toolIndex, taskCount)"
  1383. src="../../assets/icon/fourthToolList/allHistory.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">全历史</div>
  1387. </div>
  1388. <div v-if="tooC == 62">
  1389. <img
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../../assets/icon/fourthToolList/interVideo.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">交互视频</div>
  1395. </div>
  1396. <div v-if="tooC == 63">
  1397. <img
  1398. @click="addTools(tooC, toolIndex, taskCount)"
  1399. src="../../assets/icon/fourthToolList/Wood.png"
  1400. alt
  1401. />
  1402. <div style="margin: 5px 0">海龟编程</div>
  1403. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1404. style="position: absolute;right: 33px;top: -30px;">
  1405. 投影
  1406. </div>
  1407. </div>
  1408. <div v-if="tooC == 71">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../../assets/icon/fourthToolList/chatgpt.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">AI智能体</div>
  1415. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1416. style="position: absolute;right: 33px;top: -30px;">
  1417. 投影
  1418. </div>
  1419. </div>
  1420. <div v-if="tooC == 72">
  1421. <img
  1422. style="height: 85px;object-fit: cover;"
  1423. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1424. @click="addTools(tooC, toolIndex, taskCount)"
  1425. :src="tool.appJson.json.icon"
  1426. alt
  1427. />
  1428. <img
  1429. v-else
  1430. @click="addTools(tooC, toolIndex, taskCount)"
  1431. src="../../assets/icon/firstToolList/appStore.png"
  1432. alt
  1433. />
  1434. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1435. <!-- content to trigger tooltip here -->
  1436. <div class="Ovh">
  1437. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1438. </div>
  1439. </el-tooltip>
  1440. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1441. style="position: absolute;right: 33px;top: -30px;">
  1442. 投影
  1443. </div>
  1444. </div>
  1445. <div v-if="tooC == 65">
  1446. <img
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. src="../../assets/icon/firstToolList/pickPeople.png"
  1449. alt
  1450. />
  1451. <div style="margin: 5px 0">挑人</div>
  1452. </div>
  1453. <div v-if="tooC == 66">
  1454. <img
  1455. @click="addTools(tooC, toolIndex, taskCount)"
  1456. src="../../assets/icon/secondToolList/formulaEdi.png"
  1457. alt
  1458. />
  1459. <div style="margin: 5px 0">公式编辑</div>
  1460. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1461. style="position: absolute;right: 33px;top: -30px;">
  1462. 投影
  1463. </div>
  1464. </div>
  1465. <div v-if="tooC == 67">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../../assets/icon/secondToolList/molStr.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">分子结构</div>
  1472. </div>
  1473. <div v-if="tooC == 68">
  1474. <img
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. src="../../assets/icon/secondToolList/timeAxis.png"
  1477. alt
  1478. />
  1479. <div style="margin: 5px 0">时间轴</div>
  1480. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1481. style="position: absolute;right: 33px;top: -30px;">
  1482. 投影
  1483. </div> -->
  1484. </div>
  1485. <div v-if="tooC == 69">
  1486. <img
  1487. @click="addTools(tooC, toolIndex, taskCount)"
  1488. src="../../assets/icon/secondToolList/english.png"
  1489. alt
  1490. />
  1491. <div style="margin: 5px 0">英语写作</div>
  1492. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1493. style="position: absolute;right: 33px;top: -30px;">
  1494. 投影
  1495. </div>
  1496. </div>
  1497. <div v-if="tooC == 70">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../../assets/icon/thirdToolList/englishVoice.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">英语口语</div>
  1504. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1505. style="position: absolute;right: 33px;top: -30px;">
  1506. 投影
  1507. </div>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. </div>
  1512. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1513. <!-- <div class="toolTitle">工具描述</div> -->
  1514. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1515. <div style="height:100%;"
  1516. v-html="contentConvent(tool.toolDetail)"
  1517. v-if="toolDetailIndex != toolIndex"
  1518. ></div>
  1519. <div v-else @click.stop="" style="height:100%;">
  1520. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1521. </div>
  1522. </div>
  1523. <el-button
  1524. type="primary"
  1525. v-if="tool.tool[0] == 32"
  1526. style="position: absolute; right: 30px; top: -45px"
  1527. @click="addImg($event)"
  1528. >上传作业<input
  1529. type="file"
  1530. accept="*"
  1531. style="display: none"
  1532. @change="beforeUpload1($event, 7, toolIndex)"
  1533. /></el-button>
  1534. <el-button
  1535. type="primary"
  1536. v-if="tool.tool[0] == 15"
  1537. style="position: absolute; right: 30px; top: -45px"
  1538. @click="openWordCloud(toolIndex)"
  1539. >生成词云</el-button
  1540. >
  1541. <el-button
  1542. type="primary"
  1543. v-if="
  1544. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1545. "
  1546. style="position: absolute; right: 30px; top: -45px"
  1547. @click="uploadWorks(toolIndex)"
  1548. >导出作业</el-button
  1549. >
  1550. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1551. position: absolute;
  1552. right: 30px;
  1553. transform: translateY(-130%);
  1554. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1555. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1556. </div>
  1557. <div
  1558. v-if="
  1559. tType &&
  1560. tType == 2 &&
  1561. !sIsOpen &&
  1562. tool.tool.indexOf(16) != -1
  1563. "
  1564. class="worksBox"
  1565. >
  1566. <div
  1567. class="zuoyeYulan"
  1568. v-if="workStudent[toolIndex].length > 0"
  1569. >
  1570. <span class="worksTitle">作业预览</span>
  1571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg" v-if="w.type == 0">
  1589. <img
  1590. :src="w.works"
  1591. @click="previewImg(w.works,w)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="workImg" v-if="w.type == 1">
  1627. <img :src="word" @click="openFile(w.works)" alt />
  1628. <div
  1629. class="answerScore"
  1630. v-if="w.score"
  1631. @click.stop="openScore(w)"
  1632. :class="{
  1633. rightW:
  1634. w.userid == userid || tType == 1 || tType == 4,
  1635. }"
  1636. >
  1637. {{ JSON.parse(w.score).wScore }}分
  1638. </div>
  1639. <div
  1640. class="answerScore"
  1641. @click.stop="openScore(w)"
  1642. v-else-if="courseDetail.userid == userid"
  1643. :class="{
  1644. rightW:
  1645. w.userid == userid || tType == 1 || tType == 4,
  1646. }"
  1647. >
  1648. 评分
  1649. </div>
  1650. <img
  1651. class="deleteImg"
  1652. src="../../assets/deleteworks.png"
  1653. v-if="
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. "
  1656. @click.stop="deleteWorks(w.wid)"
  1657. alt
  1658. />
  1659. </div>
  1660. <div class="workImg" v-if="w.type == 3">
  1661. <img
  1662. style="cursor: pointer"
  1663. :src="video"
  1664. @click="openVideo(w)"
  1665. alt
  1666. />
  1667. <div
  1668. class="answerScore"
  1669. v-if="w.score"
  1670. @click.stop="openScore(w)"
  1671. :class="{
  1672. rightW:
  1673. w.userid == userid || tType == 1 || tType == 4,
  1674. }"
  1675. >
  1676. {{ JSON.parse(w.score).wScore }}分
  1677. </div>
  1678. <div
  1679. class="answerScore"
  1680. @click.stop="openScore(w)"
  1681. v-else-if="courseDetail.userid == userid"
  1682. :class="{
  1683. rightW:
  1684. w.userid == userid || tType == 1 || tType == 4,
  1685. }"
  1686. >
  1687. 评分
  1688. </div>
  1689. <img
  1690. class="deleteImg"
  1691. src="../../assets/deleteworks.png"
  1692. v-if="
  1693. w.userid == userid || tType == 1 || tType == 4
  1694. "
  1695. @click.stop="deleteWorks(w.wid)"
  1696. alt
  1697. />
  1698. </div>
  1699. <div class="workImg" v-if="w.type == 12">
  1700. <img
  1701. style="cursor: pointer"
  1702. :src="word2"
  1703. @click="downloadFile(w.works)"
  1704. alt
  1705. />
  1706. <div
  1707. class="answerScore"
  1708. v-if="w.score"
  1709. @click.stop="openScore(w)"
  1710. :class="{
  1711. rightW:
  1712. w.userid == userid || tType == 1 || tType == 4,
  1713. }"
  1714. >
  1715. {{ JSON.parse(w.score).wScore }}分
  1716. </div>
  1717. <div
  1718. class="answerScore"
  1719. @click.stop="openScore(w)"
  1720. v-else-if="courseDetail.userid == userid"
  1721. :class="{
  1722. rightW:
  1723. w.userid == userid || tType == 1 || tType == 4,
  1724. }"
  1725. >
  1726. 评分
  1727. </div>
  1728. <img
  1729. class="deleteImg"
  1730. src="../../assets/deleteworks.png"
  1731. v-if="
  1732. w.userid == userid || tType == 1 || tType == 4
  1733. "
  1734. @click.stop="deleteWorks(w.wid)"
  1735. alt
  1736. />
  1737. </div>
  1738. <div class="worksName">
  1739. <div>{{ w.sName }}</div>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <div
  1745. v-if="
  1746. tType &&
  1747. tType == 2 &&
  1748. !sIsOpen &&
  1749. tool.tool.indexOf(32) != -1
  1750. "
  1751. class="worksBox"
  1752. >
  1753. <div
  1754. class="zuoyeYulan"
  1755. v-if="workStudent[toolIndex].length > 0"
  1756. >
  1757. <span class="worksTitle">作业预览</span>
  1758. </div>
  1759. <div
  1760. class="worksDetailBox"
  1761. v-if="workStudent[toolIndex].length > 0"
  1762. >
  1763. <div
  1764. class="works"
  1765. style="
  1766. width: 200px;
  1767. height: 140px;
  1768. margin: 10px 10px 10px 0;
  1769. box-shadow: 0 0 6px 1px #dfdada;
  1770. "
  1771. v-for="(w, wIndex) in workStudent[toolIndex]"
  1772. :key="wIndex"
  1773. >
  1774. <div class="workImg">
  1775. <img
  1776. :src="word2"
  1777. @click="downloadFile(w.works)"
  1778. alt
  1779. />
  1780. <div
  1781. class="answerScore"
  1782. v-if="w.score"
  1783. @click.stop="openScore(w)"
  1784. :class="{
  1785. rightW:
  1786. w.userid == userid || tType == 1 || tType == 4,
  1787. }"
  1788. >
  1789. {{ JSON.parse(w.score).wScore }}分
  1790. </div>
  1791. <div
  1792. class="answerScore"
  1793. @click.stop="openScore(w)"
  1794. v-else-if="courseDetail.userid == userid"
  1795. :class="{
  1796. rightW:
  1797. w.userid == userid || tType == 1 || tType == 4,
  1798. }"
  1799. >
  1800. 评分
  1801. </div>
  1802. <img
  1803. class="deleteImg"
  1804. src="../../assets/deleteworks.png"
  1805. v-if="
  1806. w.userid == userid || tType == 1 || tType == 4
  1807. "
  1808. @click.stop="deleteWorks(w.wid)"
  1809. alt
  1810. />
  1811. </div>
  1812. <div class="worksName">
  1813. <div>{{ w.sName }}</div>
  1814. </div>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. <div
  1819. v-if="
  1820. tType &&
  1821. tType == 2 &&
  1822. !sIsOpen &&
  1823. tool.tool.indexOf(57) != -1
  1824. "
  1825. class="worksBox"
  1826. >
  1827. <div
  1828. class="zuoyeYulan"
  1829. v-if="workStudent[toolIndex].length > 0"
  1830. >
  1831. <span class="worksTitle">作业预览</span>
  1832. </div>
  1833. <div
  1834. class="worksDetailBox"
  1835. v-if="workStudent[toolIndex].length > 0"
  1836. >
  1837. <div
  1838. class="works"
  1839. style="
  1840. width: 200px;
  1841. height: 140px;
  1842. margin: 10px 10px 10px 0;
  1843. box-shadow: 0 0 6px 1px #dfdada;
  1844. "
  1845. v-for="(w, wIndex) in workStudent[toolIndex]"
  1846. :key="wIndex"
  1847. >
  1848. <div class="workImg">
  1849. <img
  1850. :src="word2"
  1851. @click="downloadFile(w.works)"
  1852. v-if="w.type == 12"
  1853. alt
  1854. />
  1855. <img
  1856. :src="word2"
  1857. @click="
  1858. openCocoPi(57, toolIndex, w.userid, w.sName)
  1859. "
  1860. v-else-if="w.type == 15"
  1861. alt
  1862. />
  1863. <div
  1864. class="answerScore"
  1865. v-if="w.score"
  1866. @click.stop="openScore(w)"
  1867. :class="{
  1868. rightW:
  1869. w.userid == userid || tType == 1 || tType == 4,
  1870. }"
  1871. >
  1872. {{ JSON.parse(w.score).wScore }}分
  1873. </div>
  1874. <div
  1875. class="answerScore"
  1876. @click.stop="openScore(w)"
  1877. v-else-if="courseDetail.userid == userid"
  1878. :class="{
  1879. rightW:
  1880. w.userid == userid || tType == 1 || tType == 4,
  1881. }"
  1882. >
  1883. 评分
  1884. </div>
  1885. <img
  1886. class="deleteImg"
  1887. src="../../assets/deleteworks.png"
  1888. v-if="
  1889. w.userid == userid || tType == 1 || tType == 4
  1890. "
  1891. @click.stop="deleteWorks(w.wid)"
  1892. alt
  1893. />
  1894. </div>
  1895. <div class="worksName">
  1896. <div>{{ w.sName }}</div>
  1897. </div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. <div
  1902. v-if="
  1903. tType &&
  1904. tType == 2 &&
  1905. !sIsOpen &&
  1906. tool.tool.indexOf(4) != -1
  1907. "
  1908. class="worksBox"
  1909. >
  1910. <div
  1911. class="zuoyeYulan"
  1912. v-if="workStudent[toolIndex].length > 0"
  1913. >
  1914. <span class="worksTitle">作业预览</span>
  1915. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1916. </div>
  1917. <div
  1918. class="worksDetailBox"
  1919. v-if="workStudent[toolIndex].length > 0"
  1920. >
  1921. <div
  1922. class="isWorksName2"
  1923. v-for="(w, wIndex) in workStudent[toolIndex]"
  1924. :key="wIndex"
  1925. @click="
  1926. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1927. "
  1928. >
  1929. {{ w.sName }}
  1930. <img
  1931. class="deleteImg deleteImg2"
  1932. src="../../assets/deleteworks.png"
  1933. v-if="w.userid == userid || tType == 1 || tType == 4"
  1934. @click.stop="deleteWorks(w.wid)"
  1935. alt
  1936. />
  1937. </div>
  1938. <!-- <div
  1939. class="works"
  1940. style="
  1941. width: 200px;
  1942. height: 140px;
  1943. border-radius: 10px;
  1944. box-shadow: 0 0 6px 1px #dfdada;
  1945. overflow: hidden;
  1946. "
  1947. v-for="(w, wIndex) in workStudent[toolIndex]"
  1948. :key="wIndex"
  1949. >
  1950. <div class="workImg">
  1951. <img
  1952. src="../../assets/icon/works/noImg.png"
  1953. @click="
  1954. openTools(
  1955. 4,
  1956. toolIndex,
  1957. taskCount,
  1958. w.works,
  1959. w.sName
  1960. )
  1961. "
  1962. alt
  1963. />
  1964. </div>
  1965. <div class="worksName">
  1966. <div>{{ w.sName }}</div>
  1967. <div>{{ w.time }}</div>
  1968. </div>
  1969. </div> -->
  1970. </div>
  1971. </div>
  1972. <div
  1973. v-if="
  1974. tType &&
  1975. ((tType == 2 && sIsOpen == true) ||
  1976. tType == 1 ||
  1977. tType == 4) &&
  1978. tool.tool.indexOf(62) != -1
  1979. "
  1980. class="worksBox"
  1981. >
  1982. <div
  1983. class="zuoyeYulan"
  1984. v-if="
  1985. worksStudent.length &&
  1986. worksStudent[toolIndex].length > 0
  1987. "
  1988. >
  1989. <div class="worksTop">
  1990. <div>作业预览</div>
  1991. <div
  1992. class="corOpen"
  1993. @click="contract(toolIndex)"
  1994. v-if="
  1995. (isCloseList[toolIndex].isCloseBoolean) &&
  1996. isCloseList[toolIndex].isClose == 0
  1997. "
  1998. >
  1999. 折叠
  2000. </div>
  2001. <div
  2002. class="corOpen"
  2003. @click="contract(toolIndex)"
  2004. v-if="isCloseList[toolIndex].isClose == 1"
  2005. >
  2006. 展开
  2007. </div>
  2008. </div>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div>
  2012. <div
  2013. :id="'tool-' + toolIndex"
  2014. :style="{
  2015. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2016. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2017. }"
  2018. class="worksDetailBox"
  2019. v-if="
  2020. worksStudent.length &&
  2021. worksStudent[toolIndex].length > 0
  2022. "
  2023. >
  2024. <div
  2025. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2026. :key="wIndex"
  2027. class="isWorksName2"
  2028. @click="
  2029. openTools(
  2030. 62,
  2031. toolIndex,
  2032. taskCount,
  2033. w.works,
  2034. w.sName
  2035. )
  2036. "
  2037. >
  2038. {{ w.sName }}
  2039. <img
  2040. class="deleteImg deleteImg2"
  2041. src="../../assets/deleteworks.png"
  2042. v-if="
  2043. w.userid == userid || tType == 1 || tType == 4
  2044. "
  2045. @click.stop="deleteWorks(w.wid)"
  2046. alt
  2047. />
  2048. </div>
  2049. </div>
  2050. </div>
  2051. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2052. 未提交
  2053. </div>
  2054. <div
  2055. class="noWorksS"
  2056. v-if="noWorksS && noWorksS[toolIndex].length"
  2057. >
  2058. <div
  2059. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2060. :key="sIndex"
  2061. class="noWorksName"
  2062. >
  2063. <el-tooltip effect="dark" :content="s.student" placement="top">
  2064. <span>{{ s.student }}</span>
  2065. </el-tooltip>
  2066. </div>
  2067. </div>
  2068. </div>
  2069. <div
  2070. v-if="
  2071. tType &&
  2072. tType == 2 &&
  2073. !sIsOpen &&
  2074. tool.tool.indexOf(62) != -1
  2075. "
  2076. class="worksBox"
  2077. >
  2078. <div
  2079. class="zuoyeYulan"
  2080. v-if="workStudent[toolIndex].length > 0"
  2081. >
  2082. <span class="worksTitle">作业预览</span>
  2083. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2084. </div>
  2085. <div
  2086. class="worksDetailBox"
  2087. v-if="workStudent[toolIndex].length > 0"
  2088. >
  2089. <div
  2090. class="isWorksName2"
  2091. v-for="(w, wIndex) in workStudent[toolIndex]"
  2092. :key="wIndex"
  2093. @click="
  2094. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2095. "
  2096. >
  2097. {{ w.sName }}
  2098. <img
  2099. class="deleteImg deleteImg2"
  2100. src="../../assets/deleteworks.png"
  2101. v-if="w.userid == userid || tType == 1 || tType == 4"
  2102. @click.stop="deleteWorks(w.wid)"
  2103. alt
  2104. />
  2105. </div>
  2106. </div>
  2107. </div>
  2108. <div
  2109. v-if="
  2110. tType &&
  2111. tType == 2 &&
  2112. !sIsOpen &&
  2113. tool.tool.indexOf(45) != -1
  2114. "
  2115. class="worksBox"
  2116. >
  2117. <div
  2118. class="zuoyeYulan"
  2119. v-if="workStudent[toolIndex].length > 0"
  2120. >
  2121. <span class="worksTitle">作业预览</span>
  2122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2123. </div>
  2124. <div
  2125. class="worksDetailBox"
  2126. v-if="workStudent[toolIndex].length > 0"
  2127. >
  2128. <div
  2129. class="isWorksName2"
  2130. v-for="(w, wIndex) in workStudent[toolIndex]"
  2131. :key="wIndex"
  2132. @click="
  2133. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2134. "
  2135. >
  2136. {{ w.sName }}
  2137. <img
  2138. class="deleteImg deleteImg2"
  2139. src="../../assets/deleteworks.png"
  2140. v-if="w.userid == userid || tType == 1 || tType == 4"
  2141. @click.stop="deleteWorks(w.wid)"
  2142. alt
  2143. />
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <div
  2148. v-if="
  2149. tType &&
  2150. tType == 2 &&
  2151. !sIsOpen &&
  2152. tool.tool.indexOf(69) != -1
  2153. "
  2154. class="worksBox"
  2155. >
  2156. <div
  2157. class="zuoyeYulan"
  2158. v-if="workStudent[toolIndex].length > 0"
  2159. >
  2160. <span class="worksTitle">作业预览</span>
  2161. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2162. </div>
  2163. <div
  2164. class="worksDetailBox"
  2165. v-if="workStudent[toolIndex].length > 0"
  2166. >
  2167. <div
  2168. class="isWorksName2"
  2169. v-for="(w, wIndex) in workStudent[toolIndex]"
  2170. :key="wIndex"
  2171. @click="
  2172. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2173. "
  2174. >
  2175. {{ w.sName }}
  2176. <img
  2177. class="deleteImg deleteImg2"
  2178. src="../../assets/deleteworks.png"
  2179. v-if="w.userid == userid || tType == 1 || tType == 4"
  2180. @click.stop="deleteWorks(w.wid)"
  2181. alt
  2182. />
  2183. </div>
  2184. </div>
  2185. </div>
  2186. <div
  2187. v-if="
  2188. tType &&
  2189. tType == 2 &&
  2190. !sIsOpen &&
  2191. tool.tool.indexOf(15) != -1
  2192. "
  2193. class="worksBox"
  2194. >
  2195. <div
  2196. class="zuoyeYulan"
  2197. v-if="workStudent[toolIndex].length > 0"
  2198. >
  2199. <span class="worksTitle">作业预览</span>
  2200. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2201. </div>
  2202. <div
  2203. class="worksDetailBox"
  2204. v-if="workStudent[toolIndex].length > 0"
  2205. >
  2206. <div
  2207. class="works"
  2208. v-for="(w, wIndex) in workStudent[toolIndex]"
  2209. :key="wIndex"
  2210. >
  2211. <div class="workImg">
  2212. <!-- <img
  2213. src="../../assets/icon/works/noImg.png"
  2214. @click="openTools(15, toolIndex, taskCount, w.works)"
  2215. alt=""
  2216. />-->
  2217. <div class="answerBg">
  2218. <!-- <div>{{ w.sName }}</div> -->
  2219. <el-tooltip
  2220. class="item"
  2221. effect="light"
  2222. :content="JSON.parse(w.works)[0].answer"
  2223. placement="top"
  2224. >
  2225. <div class="answerContent">
  2226. {{ JSON.parse(w.works)[0].answer }}
  2227. </div>
  2228. </el-tooltip>
  2229. <div
  2230. class="answerScore"
  2231. v-if="w.score"
  2232. @click.stop="openScore(w)"
  2233. :class="{
  2234. rightW:
  2235. w.userid == userid ||
  2236. tType == 1 ||
  2237. tType == 4,
  2238. }"
  2239. >
  2240. {{ JSON.parse(w.score).wScore }}分
  2241. </div>
  2242. <div
  2243. class="answerScore"
  2244. @click.stop="openScore(w)"
  2245. v-else-if="courseDetail.userid == userid"
  2246. :class="{
  2247. rightW:
  2248. w.userid == userid ||
  2249. tType == 1 ||
  2250. tType == 4,
  2251. }"
  2252. >
  2253. 评分
  2254. </div>
  2255. <img
  2256. class="deleteImg"
  2257. src="../../assets/deleteworks.png"
  2258. v-if="
  2259. w.userid == userid || tType == 1 || tType == 4
  2260. "
  2261. @click.stop="deleteWorks(w.wid)"
  2262. alt
  2263. />
  2264. </div>
  2265. <div class="comment">
  2266. <div class="worksName">
  2267. <div>{{ w.sName }}</div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. </div>
  2274. <div
  2275. v-if="
  2276. tType &&
  2277. tType == 2 &&
  2278. !sIsOpen &&
  2279. tool.tool.indexOf(1) != -1
  2280. "
  2281. class="worksBox"
  2282. >
  2283. <div
  2284. class="zuoyeYulan"
  2285. v-if="workStudent[toolIndex].length > 0"
  2286. >
  2287. <span class="worksTitle">作业预览</span>
  2288. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2289. </div>
  2290. <div
  2291. class="worksDetailBox"
  2292. v-if="workStudent[toolIndex].length > 0"
  2293. >
  2294. <div
  2295. class="works"
  2296. style="
  2297. width: 200px;
  2298. height: 140px;
  2299. margin: 10px 10px 10px 0;
  2300. box-shadow: 0 0 6px 1px #dfdada;
  2301. "
  2302. v-for="(w, wIndex) in workStudent[toolIndex]"
  2303. :key="wIndex"
  2304. >
  2305. <div class="workImg">
  2306. <img
  2307. :src="w.works"
  2308. @click="previewImg(w.works,w)"
  2309. alt
  2310. />
  2311. <div
  2312. class="answerScore"
  2313. v-if="w.score"
  2314. @click.stop="openScore(w)"
  2315. :class="{
  2316. rightW:
  2317. w.userid == userid || tType == 1 || tType == 4,
  2318. }"
  2319. >
  2320. {{ JSON.parse(w.score).wScore }}分
  2321. </div>
  2322. <div
  2323. class="answerScore"
  2324. @click.stop="openScore(w)"
  2325. v-else-if="courseDetail.userid == userid"
  2326. :class="{
  2327. rightW:
  2328. w.userid == userid || tType == 1 || tType == 4,
  2329. }"
  2330. >
  2331. 评分
  2332. </div>
  2333. <img
  2334. class="deleteImg"
  2335. src="../../assets/deleteworks.png"
  2336. v-if="
  2337. w.userid == userid || tType == 1 || tType == 4
  2338. "
  2339. @click.stop="deleteWorks(w.wid)"
  2340. alt
  2341. />
  2342. </div>
  2343. <div class="worksName">
  2344. <div>{{ w.sName }}</div>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. </div>
  2349. <div
  2350. v-if="
  2351. tType &&
  2352. tType == 2 &&
  2353. !sIsOpen &&
  2354. tool.tool.indexOf(3) != -1
  2355. "
  2356. class="worksBox"
  2357. >
  2358. <div
  2359. class="zuoyeYulan"
  2360. v-if="workStudent[toolIndex].length > 0"
  2361. >
  2362. <span class="worksTitle">作业预览</span>
  2363. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2364. </div>
  2365. <div
  2366. class="worksDetailBox"
  2367. v-if="workStudent[toolIndex].length > 0"
  2368. >
  2369. <div
  2370. class="works"
  2371. style="
  2372. width: 200px;
  2373. height: 140px;
  2374. margin: 10px 10px 10px 0;
  2375. box-shadow: 0 0 6px 1px #dfdada;
  2376. "
  2377. v-for="(w, wIndex) in workStudent[toolIndex]"
  2378. :key="wIndex"
  2379. >
  2380. <div class="workImg">
  2381. <img
  2382. :src="w.works"
  2383. @click="previewImg(w.works,w)"
  2384. alt
  2385. />
  2386. <div
  2387. class="answerScore"
  2388. v-if="w.score"
  2389. @click.stop="openScore(w)"
  2390. :class="{
  2391. rightW:
  2392. w.userid == userid || tType == 1 || tType == 4,
  2393. }"
  2394. >
  2395. {{ JSON.parse(w.score).wScore }}分
  2396. </div>
  2397. <div
  2398. class="answerScore"
  2399. @click.stop="openScore(w)"
  2400. v-else-if="courseDetail.userid == userid"
  2401. :class="{
  2402. rightW:
  2403. w.userid == userid || tType == 1 || tType == 4,
  2404. }"
  2405. >
  2406. 评分
  2407. </div>
  2408. <img
  2409. class="deleteImg"
  2410. src="../../assets/deleteworks.png"
  2411. v-if="
  2412. w.userid == userid || tType == 1 || tType == 4
  2413. "
  2414. @click.stop="deleteWorks(w.wid)"
  2415. alt
  2416. />
  2417. </div>
  2418. <div class="worksName">
  2419. <div>{{ w.sName }}</div>
  2420. </div>
  2421. </div>
  2422. </div>
  2423. </div>
  2424. <div
  2425. v-if="
  2426. tType &&
  2427. tType == 2 &&
  2428. !sIsOpen &&
  2429. tool.tool.indexOf(6) != -1
  2430. "
  2431. class="worksBox"
  2432. >
  2433. <div
  2434. class="zuoyeYulan"
  2435. v-if="workStudent[toolIndex].length > 0"
  2436. >
  2437. <span class="worksTitle">作业预览</span>
  2438. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2439. </div>
  2440. <div
  2441. class="worksDetailBox"
  2442. v-if="workStudent[toolIndex].length > 0"
  2443. >
  2444. <div
  2445. class="works"
  2446. style="
  2447. width: 200px;
  2448. height: 140px;
  2449. margin: 10px 10px 10px 0;
  2450. box-shadow: 0 0 6px 1px #dfdada;
  2451. "
  2452. v-for="(w, wIndex) in workStudent[toolIndex]"
  2453. :key="wIndex"
  2454. >
  2455. <div class="workImg">
  2456. <img
  2457. :src="w.works"
  2458. @click="previewImg(w.works,w)"
  2459. alt
  2460. />
  2461. <div
  2462. class="answerScore"
  2463. v-if="w.score"
  2464. @click.stop="openScore(w)"
  2465. :class="{
  2466. rightW:
  2467. w.userid == userid || tType == 1 || tType == 4,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid || tType == 1 || tType == 4,
  2479. }"
  2480. >
  2481. 评分
  2482. </div>
  2483. <img
  2484. class="deleteImg"
  2485. src="../../assets/deleteworks.png"
  2486. v-if="
  2487. w.userid == userid || tType == 1 || tType == 4
  2488. "
  2489. @click.stop="deleteWorks(w.wid)"
  2490. alt
  2491. />
  2492. </div>
  2493. <div class="worksName">
  2494. <div>{{ w.sName }}</div>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. </div>
  2499. <div
  2500. v-if="
  2501. tType &&
  2502. tType == 2 &&
  2503. !sIsOpen &&
  2504. tool.tool.indexOf(7) != -1
  2505. "
  2506. class="worksBox"
  2507. >
  2508. <div
  2509. class="zuoyeYulan"
  2510. v-if="workStudent[toolIndex].length > 0"
  2511. >
  2512. <span class="worksTitle">作业预览</span>
  2513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2514. </div>
  2515. <div
  2516. class="worksDetailBox"
  2517. v-if="workStudent[toolIndex].length > 0"
  2518. >
  2519. <div
  2520. class="works"
  2521. style="
  2522. width: 200px;
  2523. height: 140px;
  2524. margin: 10px 10px 10px 0;
  2525. box-shadow: 0 0 6px 1px #dfdada;
  2526. "
  2527. v-for="(w, wIndex) in workStudent[toolIndex]"
  2528. :key="wIndex"
  2529. >
  2530. <div class="workImg">
  2531. <img
  2532. :src="w.works"
  2533. @click="previewImg(w.works,w)"
  2534. alt
  2535. />
  2536. <div
  2537. class="answerScore"
  2538. v-if="w.score"
  2539. @click.stop="openScore(w)"
  2540. :class="{
  2541. rightW:
  2542. w.userid == userid || tType == 1 || tType == 4,
  2543. }"
  2544. >
  2545. {{ JSON.parse(w.score).wScore }}分
  2546. </div>
  2547. <div
  2548. class="answerScore"
  2549. @click.stop="openScore(w)"
  2550. v-else-if="courseDetail.userid == userid"
  2551. :class="{
  2552. rightW:
  2553. w.userid == userid || tType == 1 || tType == 4,
  2554. }"
  2555. >
  2556. 评分
  2557. </div>
  2558. <img
  2559. class="deleteImg"
  2560. src="../../assets/deleteworks.png"
  2561. v-if="
  2562. w.userid == userid || tType == 1 || tType == 4
  2563. "
  2564. @click.stop="deleteWorks(w.wid)"
  2565. alt
  2566. />
  2567. </div>
  2568. <div class="worksName">
  2569. <div>{{ w.sName }}</div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <div
  2575. v-if="
  2576. tType &&
  2577. tType == 2 &&
  2578. !sIsOpen &&
  2579. tool.tool.indexOf(26) != -1
  2580. "
  2581. class="worksBox"
  2582. >
  2583. <div
  2584. class="zuoyeYulan"
  2585. v-if="workStudent[toolIndex].length > 0"
  2586. >
  2587. <span class="worksTitle">作业预览</span>
  2588. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2589. </div>
  2590. <div
  2591. class="worksDetailBox"
  2592. v-if="workStudent[toolIndex].length > 0"
  2593. >
  2594. <div
  2595. class="works"
  2596. style="
  2597. width: 200px;
  2598. height: 140px;
  2599. margin: 10px 10px 10px 0;
  2600. box-shadow: 0 0 6px 1px #dfdada;
  2601. "
  2602. v-for="(w, wIndex) in workStudent[toolIndex]"
  2603. :key="wIndex"
  2604. >
  2605. <div class="workImg">
  2606. <img
  2607. :src="w.works"
  2608. @click="previewImg(w.works,w)"
  2609. alt
  2610. />
  2611. <img
  2612. class="deleteImg"
  2613. src="../../assets/deleteworks.png"
  2614. v-if="
  2615. w.userid == userid || tType == 1 || tType == 4
  2616. "
  2617. @click.stop="deleteWorks(w.wid)"
  2618. alt
  2619. />
  2620. </div>
  2621. <div class="worksName">
  2622. <div>{{ w.sName }}</div>
  2623. </div>
  2624. </div>
  2625. </div>
  2626. </div>
  2627. <div
  2628. v-if="
  2629. tType &&
  2630. ((tType == 2 && sIsOpen == true) ||
  2631. tType == 1 ||
  2632. tType == 4) &&
  2633. tool.tool.indexOf(16) != -1
  2634. "
  2635. class="worksBox"
  2636. >
  2637. <div
  2638. class="zuoyeYulan"
  2639. v-if="
  2640. (worksStudent.length &&
  2641. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2642. "
  2643. >
  2644. <div class="worksTop">
  2645. <div>作业预览</div>
  2646. <div
  2647. class="corOpen"
  2648. @click="contract(toolIndex)"
  2649. v-if="
  2650. (isCloseList[toolIndex].isCloseBoolean) &&
  2651. isCloseList[toolIndex].isClose == 0
  2652. "
  2653. >
  2654. 折叠
  2655. </div>
  2656. <div
  2657. class="corOpen"
  2658. @click="contract(toolIndex)"
  2659. v-if="isCloseList[toolIndex].isClose == 1"
  2660. >
  2661. 展开
  2662. </div>
  2663. </div>
  2664. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2665. </div>
  2666. <div
  2667. class="group_workBox"
  2668. v-for="(g, gindex) in courseGroup.group"
  2669. :key="gindex"
  2670. >
  2671. <div class="group_box">
  2672. <div class="group_title">
  2673. <el-tooltip
  2674. class="item"
  2675. effect="light"
  2676. :content="g.name"
  2677. placement="top"
  2678. >
  2679. <div class="group_name">{{ g.name }}</div>
  2680. </el-tooltip>
  2681. </div>
  2682. <div
  2683. class="group_work"
  2684. v-if="
  2685. g.works &&
  2686. g.works.length &&
  2687. g.works[toolIndex].length
  2688. "
  2689. >
  2690. <div
  2691. class="works"
  2692. style="
  2693. width: 200px;
  2694. height: 140px;
  2695. margin: 10px 10px 10px 0;
  2696. border-radius: 15px;
  2697. box-shadow: 0 0 6px 1px #dfdada;
  2698. "
  2699. v-for="(w, wIndex) in g.works[toolIndex]"
  2700. :key="wIndex"
  2701. :class="w.type == 1 ? 'isTypeOne' : ''"
  2702. >
  2703. <div class="workImg" v-if="w.type == 0">
  2704. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2705. <img
  2706. :src="w.works"
  2707. @click="previewImg(w.works,w)"
  2708. alt
  2709. />
  2710. <div
  2711. class="answerScore"
  2712. v-if="w.score"
  2713. @click.stop="openScore(w)"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid ||
  2717. tType == 1 ||
  2718. tType == 4 ||
  2719. w.ateacher == userid,
  2720. }"
  2721. >
  2722. {{ JSON.parse(w.score).wScore }}分
  2723. </div>
  2724. <div
  2725. class="answerScore"
  2726. @click.stop="openScore(w)"
  2727. v-else-if="courseDetail.userid == userid"
  2728. :class="{
  2729. rightW:
  2730. w.userid == userid ||
  2731. tType == 1 ||
  2732. tType == 4 ||
  2733. w.ateacher == userid,
  2734. }"
  2735. >
  2736. 评分
  2737. </div>
  2738. <img
  2739. class="deleteImg"
  2740. src="../../assets/deleteworks.png"
  2741. v-if="
  2742. w.userid == userid || tType == 1 || tType == 4
  2743. "
  2744. @click.stop="deleteWorks(w.wid)"
  2745. alt
  2746. />
  2747. </div>
  2748. <div class="workImg" v-if="w.type == 1">
  2749. <img :src="word" @click="openFile(w.works)" alt />
  2750. <!-- @click="openFile(w.works)" -->
  2751. <div
  2752. class="answerScore"
  2753. v-if="w.score"
  2754. @click.stop="openScore(w)"
  2755. :class="{
  2756. rightW:
  2757. w.userid == userid ||
  2758. tType == 1 ||
  2759. tType == 4 ||
  2760. w.ateacher == userid,
  2761. }"
  2762. >
  2763. {{ JSON.parse(w.score).wScore }}分
  2764. </div>
  2765. <div
  2766. class="answerScore"
  2767. @click.stop="openScore(w)"
  2768. v-else-if="courseDetail.userid == userid"
  2769. :class="{
  2770. rightW:
  2771. w.userid == userid ||
  2772. tType == 1 ||
  2773. tType == 4 ||
  2774. w.ateacher == userid,
  2775. }"
  2776. >
  2777. 评分
  2778. </div>
  2779. <img
  2780. class="deleteImg"
  2781. src="../../assets/deleteworks.png"
  2782. v-if="
  2783. w.userid == userid || tType == 1 || tType == 4
  2784. "
  2785. @click.stop="deleteWorks(w.wid)"
  2786. alt
  2787. />
  2788. </div>
  2789. <div class="workImg" v-if="w.type == 3">
  2790. <img
  2791. style="cursor: pointer"
  2792. :src="video"
  2793. @click="openVideo(w)"
  2794. alt
  2795. />
  2796. <!-- @click="openVideo(w.works)" -->
  2797. <div
  2798. class="answerScore"
  2799. v-if="w.score"
  2800. @click.stop="openScore(w)"
  2801. :class="{
  2802. rightW:
  2803. w.userid == userid ||
  2804. tType == 1 ||
  2805. tType == 4 ||
  2806. w.ateacher == userid,
  2807. }"
  2808. >
  2809. {{ JSON.parse(w.score).wScore }}分
  2810. </div>
  2811. <div
  2812. class="answerScore"
  2813. @click.stop="openScore(w)"
  2814. v-else-if="courseDetail.userid == userid"
  2815. :class="{
  2816. rightW:
  2817. w.userid == userid ||
  2818. tType == 1 ||
  2819. tType == 4 ||
  2820. w.ateacher == userid,
  2821. }"
  2822. >
  2823. 评分
  2824. </div>
  2825. <img
  2826. class="deleteImg"
  2827. src="../../assets/deleteworks.png"
  2828. v-if="
  2829. w.userid == userid || tType == 1 || tType == 4
  2830. "
  2831. @click.stop="deleteWorks(w.wid)"
  2832. alt
  2833. />
  2834. </div>
  2835. <div class="workImg" v-if="w.type == 12">
  2836. <img
  2837. style="cursor: pointer"
  2838. :src="word2"
  2839. @click="downloadFile(w.works)"
  2840. alt
  2841. />
  2842. <!-- @click="openVideo(w.works)" -->
  2843. <div
  2844. class="answerScore"
  2845. v-if="w.score"
  2846. @click.stop="openScore(w)"
  2847. :class="{
  2848. rightW:
  2849. w.userid == userid ||
  2850. tType == 1 ||
  2851. tType == 4 ||
  2852. w.ateacher == userid,
  2853. }"
  2854. >
  2855. {{ JSON.parse(w.score).wScore }}分
  2856. </div>
  2857. <div
  2858. class="answerScore"
  2859. @click.stop="openScore(w)"
  2860. v-else-if="courseDetail.userid == userid"
  2861. :class="{
  2862. rightW:
  2863. w.userid == userid ||
  2864. tType == 1 ||
  2865. tType == 4 ||
  2866. w.ateacher == userid,
  2867. }"
  2868. >
  2869. 评分
  2870. </div>
  2871. <img
  2872. class="deleteImg"
  2873. src="../../assets/deleteworks.png"
  2874. v-if="
  2875. w.userid == userid || tType == 1 || tType == 4
  2876. "
  2877. @click.stop="deleteWorks(w.wid)"
  2878. alt
  2879. />
  2880. </div>
  2881. <div class="comment" style="min-width: 200px">
  2882. <div class="worksName">
  2883. <div>{{ w.sName }}</div>
  2884. </div>
  2885. <div class="commentList">
  2886. <div class="commentList">
  2887. <div
  2888. class="commentImg"
  2889. @click="
  2890. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2891. "
  2892. >
  2893. <img
  2894. :src="w.isLikes == true ? likes : noLikes"
  2895. alt=""
  2896. />
  2897. </div>
  2898. <div>{{ w.likesCount }}</div>
  2899. </div>
  2900. <div
  2901. class="commentList"
  2902. style="margin-right: 15px"
  2903. >
  2904. <div
  2905. class="commentImg"
  2906. @click="
  2907. commentOther(
  2908. w,
  2909. toolIndex,
  2910. wIndex,
  2911. null,
  2912. g.id
  2913. )
  2914. "
  2915. >
  2916. <img
  2917. src="../../assets/icon/comment/comment.png"
  2918. alt=""
  2919. />
  2920. </div>
  2921. <div>{{ w.commentCount }}</div>
  2922. </div>
  2923. </div>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. <div class="group_work" v-else>暂无提交作业</div>
  2928. </div>
  2929. </div>
  2930. <div
  2931. :id="'tool-' + toolIndex"
  2932. :style="{
  2933. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2934. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2935. }"
  2936. class="worksDetailBox"
  2937. v-if="
  2938. worksStudent.length &&
  2939. worksStudent[toolIndex].length > 0
  2940. "
  2941. >
  2942. <div
  2943. class="works"
  2944. style="
  2945. width: 200px;
  2946. height: 140px;
  2947. margin: 10px 10px 10px 0;
  2948. border-radius: 15px;
  2949. box-shadow: 0 0 6px 1px #dfdada;
  2950. "
  2951. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2952. :key="wIndex"
  2953. :class="w.type == 1 ? 'isTypeOne' : ''"
  2954. >
  2955. <div class="workImg" v-if="w.type == 0">
  2956. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2957. <img
  2958. :src="w.works"
  2959. @click="previewImg(w.works,w)"
  2960. alt
  2961. />
  2962. <div
  2963. class="answerScore"
  2964. v-if="w.score"
  2965. @click.stop="openScore(w)"
  2966. :class="{
  2967. rightW:
  2968. w.userid == userid ||
  2969. tType == 1 ||
  2970. tType == 4 ||
  2971. w.ateacher == userid,
  2972. }"
  2973. >
  2974. {{ JSON.parse(w.score).wScore }}分
  2975. </div>
  2976. <div
  2977. class="answerScore"
  2978. @click.stop="openScore(w)"
  2979. v-else-if="courseDetail.userid == userid"
  2980. :class="{
  2981. rightW:
  2982. w.userid == userid ||
  2983. tType == 1 ||
  2984. tType == 4 ||
  2985. w.ateacher == userid,
  2986. }"
  2987. >
  2988. 评分
  2989. </div>
  2990. <img
  2991. class="deleteImg"
  2992. src="../../assets/deleteworks.png"
  2993. v-if="
  2994. w.userid == userid || tType == 1 || tType == 4
  2995. "
  2996. @click.stop="deleteWorks(w.wid)"
  2997. alt
  2998. />
  2999. </div>
  3000. <div class="workImg" v-if="w.type == 1">
  3001. <img :src="word" @click="openFile(w.works)" alt />
  3002. <!-- @click="openFile(w.works)" -->
  3003. <div
  3004. class="answerScore"
  3005. v-if="w.score"
  3006. @click.stop="openScore(w)"
  3007. :class="{
  3008. rightW:
  3009. w.userid == userid ||
  3010. tType == 1 ||
  3011. tType == 4 ||
  3012. w.ateacher == userid,
  3013. }"
  3014. >
  3015. {{ JSON.parse(w.score).wScore }}分
  3016. </div>
  3017. <div
  3018. class="answerScore"
  3019. @click.stop="openScore(w)"
  3020. v-else-if="courseDetail.userid == userid"
  3021. :class="{
  3022. rightW:
  3023. w.userid == userid ||
  3024. tType == 1 ||
  3025. tType == 4 ||
  3026. w.ateacher == userid,
  3027. }"
  3028. >
  3029. 评分
  3030. </div>
  3031. <img
  3032. class="deleteImg"
  3033. src="../../assets/deleteworks.png"
  3034. v-if="
  3035. w.userid == userid || tType == 1 || tType == 4
  3036. "
  3037. @click.stop="deleteWorks(w.wid)"
  3038. alt
  3039. />
  3040. </div>
  3041. <div class="workImg" v-if="w.type == 3">
  3042. <img
  3043. style="cursor: pointer"
  3044. :src="video"
  3045. @click="openVideo(w)"
  3046. alt
  3047. />
  3048. <!-- @click="openVideo(w.works)" -->
  3049. <div
  3050. class="answerScore"
  3051. v-if="w.score"
  3052. @click.stop="openScore(w)"
  3053. :class="{
  3054. rightW:
  3055. w.userid == userid ||
  3056. tType == 1 ||
  3057. tType == 4 ||
  3058. w.ateacher == userid,
  3059. }"
  3060. >
  3061. {{ JSON.parse(w.score).wScore }}分
  3062. </div>
  3063. <div
  3064. class="answerScore"
  3065. @click.stop="openScore(w)"
  3066. v-else-if="courseDetail.userid == userid"
  3067. :class="{
  3068. rightW:
  3069. w.userid == userid ||
  3070. tType == 1 ||
  3071. tType == 4 ||
  3072. w.ateacher == userid,
  3073. }"
  3074. >
  3075. 评分
  3076. </div>
  3077. <img
  3078. class="deleteImg"
  3079. src="../../assets/deleteworks.png"
  3080. v-if="
  3081. w.userid == userid || tType == 1 || tType == 4
  3082. "
  3083. @click.stop="deleteWorks(w.wid)"
  3084. alt
  3085. />
  3086. </div>
  3087. <div class="workImg" v-if="w.type == 12">
  3088. <img
  3089. style="cursor: pointer"
  3090. :src="word2"
  3091. @click="downloadFile(w.works)"
  3092. alt
  3093. />
  3094. <!-- @click="openVideo(w.works)" -->
  3095. <div
  3096. class="answerScore"
  3097. v-if="w.score"
  3098. @click.stop="openScore(w)"
  3099. :class="{
  3100. rightW:
  3101. w.userid == userid ||
  3102. tType == 1 ||
  3103. tType == 4 ||
  3104. w.ateacher == userid,
  3105. }"
  3106. >
  3107. {{ JSON.parse(w.score).wScore }}分
  3108. </div>
  3109. <div
  3110. class="answerScore"
  3111. @click.stop="openScore(w)"
  3112. v-else-if="courseDetail.userid == userid"
  3113. :class="{
  3114. rightW:
  3115. w.userid == userid ||
  3116. tType == 1 ||
  3117. tType == 4 ||
  3118. w.ateacher == userid,
  3119. }"
  3120. >
  3121. 评分
  3122. </div>
  3123. <img
  3124. class="deleteImg"
  3125. src="../../assets/deleteworks.png"
  3126. v-if="
  3127. w.userid == userid || tType == 1 || tType == 4
  3128. "
  3129. @click.stop="deleteWorks(w.wid)"
  3130. alt
  3131. />
  3132. </div>
  3133. <div class="comment" style="min-width: 200px">
  3134. <div class="worksName">
  3135. <div>{{ w.sName }}</div>
  3136. </div>
  3137. <div class="commentList">
  3138. <div class="commentList">
  3139. <div
  3140. class="commentImg"
  3141. @click="
  3142. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3143. "
  3144. >
  3145. <img
  3146. :src="w.isLikes == true ? likes : noLikes"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div>{{ w.likesCount }}</div>
  3151. </div>
  3152. <div class="commentList" style="margin-right: 15px">
  3153. <div
  3154. class="commentImg"
  3155. @click="commentOther(w, toolIndex, wIndex)"
  3156. >
  3157. <img
  3158. src="../../assets/icon/comment/comment.png"
  3159. alt=""
  3160. />
  3161. </div>
  3162. <div>{{ w.commentCount }}</div>
  3163. </div>
  3164. </div>
  3165. </div>
  3166. </div>
  3167. </div>
  3168. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3169. 未提交
  3170. </div>
  3171. <div
  3172. class="noWorksS"
  3173. v-if="noWorksS && noWorksS[toolIndex].length"
  3174. >
  3175. <div
  3176. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3177. :key="sIndex"
  3178. class="noWorksName"
  3179. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3180. >
  3181. <el-tooltip effect="dark" :content="s.student" placement="top">
  3182. <span>{{ s.student }}</span>
  3183. </el-tooltip>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. <div
  3188. v-if="
  3189. tType &&
  3190. ((tType == 2 && sIsOpen == true) ||
  3191. tType == 1 ||
  3192. tType == 4) &&
  3193. tool.tool.indexOf(70) != -1
  3194. "
  3195. class="worksBox"
  3196. >
  3197. <div
  3198. class="zuoyeYulan"
  3199. v-if="
  3200. (worksStudent.length &&
  3201. worksStudent[toolIndex].length > 0)
  3202. "
  3203. >
  3204. <div class="worksTop">
  3205. <div>作业预览</div>
  3206. <div
  3207. class="corOpen"
  3208. @click="contract(toolIndex)"
  3209. v-if="
  3210. (isCloseList[toolIndex].isCloseBoolean) &&
  3211. isCloseList[toolIndex].isClose == 0
  3212. "
  3213. >
  3214. 折叠
  3215. </div>
  3216. <div
  3217. class="corOpen"
  3218. @click="contract(toolIndex)"
  3219. v-if="isCloseList[toolIndex].isClose == 1"
  3220. >
  3221. 展开
  3222. </div>
  3223. </div>
  3224. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3225. </div>
  3226. <div
  3227. :id="'tool-' + toolIndex"
  3228. :style="{
  3229. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3230. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3231. }"
  3232. class="worksDetailBox"
  3233. v-if="
  3234. worksStudent.length &&
  3235. worksStudent[toolIndex].length > 0
  3236. "
  3237. >
  3238. <div
  3239. class="works"
  3240. style="
  3241. width: 200px;
  3242. height: 140px;
  3243. margin: 10px 10px 10px 0;
  3244. border-radius: 15px;
  3245. box-shadow: 0 0 6px 1px #dfdada;
  3246. "
  3247. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3248. :key="wIndex"
  3249. :class="w.type == 1 ? 'isTypeOne' : ''"
  3250. >
  3251. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3252. <img :src="word" alt />
  3253. <img
  3254. class="deleteImg"
  3255. src="../../assets/deleteworks.png"
  3256. v-if="
  3257. w.userid == userid || tType == 1 || tType == 4
  3258. "
  3259. @click.stop="deleteWorks(w.wid)"
  3260. alt
  3261. />
  3262. </div>
  3263. <div class="comment" style="min-width: 200px">
  3264. <div class="worksName">
  3265. <div>{{ w.sName }}</div>
  3266. </div>
  3267. </div>
  3268. </div>
  3269. </div>
  3270. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3271. 未提交
  3272. </div>
  3273. <div
  3274. class="noWorksS"
  3275. v-if="noWorksS && noWorksS[toolIndex].length"
  3276. >
  3277. <div
  3278. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3279. :key="sIndex"
  3280. class="noWorksName"
  3281. >
  3282. <el-tooltip effect="dark" :content="s.student" placement="top">
  3283. <span>{{ s.student }}</span>
  3284. </el-tooltip>
  3285. </div>
  3286. </div>
  3287. </div>
  3288. <div
  3289. v-if="
  3290. tType &&
  3291. tType == 2 &&
  3292. !sIsOpen &&
  3293. tool.tool.indexOf(70) != -1
  3294. "
  3295. class="worksBox"
  3296. >
  3297. <div
  3298. class="zuoyeYulan"
  3299. v-if="workStudent[toolIndex].length > 0"
  3300. >
  3301. <span class="worksTitle">作业预览</span>
  3302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3303. </div>
  3304. <div
  3305. class="worksDetailBox"
  3306. v-if="workStudent[toolIndex].length > 0"
  3307. >
  3308. <div
  3309. class="works"
  3310. style="
  3311. width: 200px;
  3312. height: 140px;
  3313. margin: 10px 10px 10px 0;
  3314. box-shadow: 0 0 6px 1px #dfdada;
  3315. "
  3316. v-for="(w, wIndex) in workStudent[toolIndex]"
  3317. :key="wIndex"
  3318. >
  3319. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3320. <img :src="word" alt />
  3321. <img
  3322. class="deleteImg"
  3323. src="../../assets/deleteworks.png"
  3324. v-if="
  3325. w.userid == userid || tType == 1 || tType == 4
  3326. "
  3327. @click.stop="deleteWorks(w.wid)"
  3328. alt
  3329. />
  3330. </div>
  3331. <div class="worksName">
  3332. <div>{{ w.sName }}</div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. <div
  3338. v-if="
  3339. tType &&
  3340. ((tType == 2 && sIsOpen == true) ||
  3341. tType == 1 ||
  3342. tType == 4) &&
  3343. tool.tool.indexOf(32) != -1
  3344. "
  3345. class="worksBox"
  3346. >
  3347. <div
  3348. class="zuoyeYulan"
  3349. v-if="
  3350. worksStudent.length &&
  3351. worksStudent[toolIndex].length > 0
  3352. "
  3353. >
  3354. <div class="worksTop">
  3355. <div>作业预览</div>
  3356. <div
  3357. class="corOpen"
  3358. @click="contract(toolIndex)"
  3359. v-if="
  3360. (isCloseList[toolIndex].isCloseBoolean) &&
  3361. isCloseList[toolIndex].isClose == 0
  3362. "
  3363. >
  3364. 折叠
  3365. </div>
  3366. <div
  3367. class="corOpen"
  3368. @click="contract(toolIndex)"
  3369. v-if="isCloseList[toolIndex].isClose == 1"
  3370. >
  3371. 展开
  3372. </div>
  3373. </div>
  3374. </div>
  3375. <div
  3376. :id="'tool-' + toolIndex"
  3377. :style="{
  3378. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3379. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3380. }"
  3381. class="worksDetailBox"
  3382. v-if="
  3383. worksStudent.length &&
  3384. worksStudent[toolIndex].length > 0
  3385. "
  3386. >
  3387. <div
  3388. class="works"
  3389. style="
  3390. width: 200px;
  3391. height: 140px;
  3392. margin: 10px 10px 10px 0;
  3393. border-radius: 15px;
  3394. box-shadow: 0 0 6px 1px #dfdada;
  3395. "
  3396. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3397. :key="wIndex"
  3398. :class="w.type == 1 ? 'isTypeOne' : ''"
  3399. >
  3400. <div class="workImg">
  3401. <img
  3402. :src="word2"
  3403. @click="downloadFile(w.works)"
  3404. alt
  3405. />
  3406. <div
  3407. class="answerScore"
  3408. v-if="w.score"
  3409. @click.stop="openScore(w)"
  3410. :class="{
  3411. rightW:
  3412. w.userid == userid ||
  3413. tType == 1 ||
  3414. tType == 4 ||
  3415. w.ateacher == userid,
  3416. }"
  3417. >
  3418. {{ JSON.parse(w.score).wScore }}分
  3419. </div>
  3420. <div
  3421. class="answerScore"
  3422. @click.stop="openScore(w)"
  3423. v-else-if="courseDetail.userid == userid"
  3424. :class="{
  3425. rightW:
  3426. w.userid == userid ||
  3427. tType == 1 ||
  3428. tType == 4 ||
  3429. w.ateacher == userid,
  3430. }"
  3431. >
  3432. 评分
  3433. </div>
  3434. <img
  3435. class="deleteImg"
  3436. src="../../assets/deleteworks.png"
  3437. v-if="
  3438. w.userid == userid || tType == 1 || tType == 4
  3439. "
  3440. @click.stop="deleteWorks(w.wid)"
  3441. alt
  3442. />
  3443. </div>
  3444. <div class="comment" style="min-width: 200px">
  3445. <div class="worksName">
  3446. <div>{{ w.sName }}</div>
  3447. </div>
  3448. <div class="commentList">
  3449. <div class="commentList">
  3450. <div
  3451. class="commentImg"
  3452. @click="
  3453. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3454. "
  3455. >
  3456. <img
  3457. :src="w.isLikes == true ? likes : noLikes"
  3458. alt=""
  3459. />
  3460. </div>
  3461. <div>{{ w.likesCount }}</div>
  3462. </div>
  3463. <div class="commentList" style="margin-right: 15px">
  3464. <div
  3465. class="commentImg"
  3466. @click="commentOther(w, toolIndex, wIndex)"
  3467. >
  3468. <img
  3469. src="../../assets/icon/comment/comment.png"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div>{{ w.commentCount }}</div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. </div>
  3478. </div>
  3479. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3480. 未提交
  3481. </div>
  3482. <div
  3483. class="noWorksS"
  3484. v-if="noWorksS && noWorksS[toolIndex].length"
  3485. >
  3486. <div
  3487. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3488. :key="sIndex"
  3489. class="noWorksName"
  3490. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3491. >
  3492. <el-tooltip effect="dark" :content="s.student" placement="top">
  3493. <span>{{ s.student }}</span>
  3494. </el-tooltip>
  3495. </div>
  3496. </div>
  3497. </div>
  3498. <div
  3499. v-if="
  3500. tType &&
  3501. ((tType == 2 && sIsOpen == true) ||
  3502. tType == 1 ||
  3503. tType == 4) &&
  3504. tool.tool.indexOf(57) != -1
  3505. "
  3506. class="worksBox"
  3507. >
  3508. <div
  3509. class="zuoyeYulan"
  3510. v-if="
  3511. worksStudent.length &&
  3512. worksStudent[toolIndex].length > 0
  3513. "
  3514. >
  3515. <div class="worksTop">
  3516. <div>作业预览</div>
  3517. <div
  3518. class="corOpen"
  3519. @click="contract(toolIndex)"
  3520. v-if="
  3521. (isCloseList[toolIndex].isCloseBoolean) &&
  3522. isCloseList[toolIndex].isClose == 0
  3523. "
  3524. >
  3525. 折叠
  3526. </div>
  3527. <div
  3528. class="corOpen"
  3529. @click="contract(toolIndex)"
  3530. v-if="isCloseList[toolIndex].isClose == 1"
  3531. >
  3532. 展开
  3533. </div>
  3534. </div>
  3535. </div>
  3536. <div
  3537. :id="'tool-' + toolIndex"
  3538. :style="{
  3539. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3540. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3541. }"
  3542. class="worksDetailBox"
  3543. v-if="
  3544. worksStudent.length &&
  3545. worksStudent[toolIndex].length > 0
  3546. "
  3547. >
  3548. <div
  3549. class="works"
  3550. style="
  3551. width: 200px;
  3552. height: 140px;
  3553. margin: 10px 10px 10px 0;
  3554. border-radius: 15px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. "
  3557. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3558. :key="wIndex"
  3559. :class="w.type == 1 ? 'isTypeOne' : ''"
  3560. >
  3561. <div class="workImg">
  3562. <img
  3563. :src="word2"
  3564. @click="downloadFile(w.works)"
  3565. v-if="w.type == 12"
  3566. alt
  3567. />
  3568. <img
  3569. :src="word2"
  3570. @click="
  3571. openCocoPi(57, toolIndex, w.userid, w.sName)
  3572. "
  3573. v-else-if="w.type == 15"
  3574. alt
  3575. />
  3576. <div
  3577. class="answerScore"
  3578. v-if="w.score"
  3579. @click.stop="openScore(w)"
  3580. :class="{
  3581. rightW:
  3582. w.userid == userid ||
  3583. tType == 1 ||
  3584. tType == 4 ||
  3585. w.ateacher == userid,
  3586. }"
  3587. >
  3588. {{ JSON.parse(w.score).wScore }}分
  3589. </div>
  3590. <div
  3591. class="answerScore"
  3592. @click.stop="openScore(w)"
  3593. v-else-if="courseDetail.userid == userid"
  3594. :class="{
  3595. rightW:
  3596. w.userid == userid ||
  3597. tType == 1 ||
  3598. tType == 4 ||
  3599. w.ateacher == userid,
  3600. }"
  3601. >
  3602. 评分
  3603. </div>
  3604. <img
  3605. class="deleteImg"
  3606. src="../../assets/deleteworks.png"
  3607. v-if="
  3608. w.userid == userid || tType == 1 || tType == 4
  3609. "
  3610. @click.stop="deleteWorks(w.wid)"
  3611. alt
  3612. />
  3613. </div>
  3614. <div class="comment" style="min-width: 200px">
  3615. <div class="worksName">
  3616. <div>{{ w.sName }}</div>
  3617. </div>
  3618. <div class="commentList">
  3619. <div class="commentList">
  3620. <div
  3621. class="commentImg"
  3622. @click="
  3623. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3624. "
  3625. >
  3626. <img
  3627. :src="w.isLikes == true ? likes : noLikes"
  3628. alt=""
  3629. />
  3630. </div>
  3631. <div>{{ w.likesCount }}</div>
  3632. </div>
  3633. <div class="commentList" style="margin-right: 15px">
  3634. <div
  3635. class="commentImg"
  3636. @click="commentOther(w, toolIndex, wIndex)"
  3637. >
  3638. <img
  3639. src="../../assets/icon/comment/comment.png"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div>{{ w.commentCount }}</div>
  3644. </div>
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3650. 未提交
  3651. </div>
  3652. <div
  3653. class="noWorksS"
  3654. v-if="noWorksS && noWorksS[toolIndex].length"
  3655. >
  3656. <div
  3657. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3658. :key="sIndex"
  3659. class="noWorksName"
  3660. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3661. >
  3662. <el-tooltip effect="dark" :content="s.student" placement="top">
  3663. <span>{{ s.student }}</span>
  3664. </el-tooltip>
  3665. </div>
  3666. </div>
  3667. </div>
  3668. <div
  3669. v-if="
  3670. tType &&
  3671. ((tType == 2 && sIsOpen == true) ||
  3672. tType == 1 ||
  3673. tType == 4) &&
  3674. tool.tool.indexOf(72) != -1
  3675. "
  3676. class="worksBox"
  3677. >
  3678. <div
  3679. class="zuoyeYulan"
  3680. v-if="
  3681. worksStudent.length &&
  3682. worksStudent[toolIndex].length > 0
  3683. "
  3684. >
  3685. <div class="worksTop">
  3686. <div>作业预览</div>
  3687. <div
  3688. class="corOpen"
  3689. @click="contract(toolIndex)"
  3690. v-if="
  3691. isCloseList[toolIndex].isCloseBoolean &&
  3692. isCloseList[toolIndex].isClose == 0
  3693. "
  3694. >
  3695. 折叠
  3696. </div>
  3697. <div
  3698. class="corOpen"
  3699. @click="contract(toolIndex)"
  3700. v-if="isCloseList[toolIndex].isClose == 1"
  3701. >
  3702. 展开
  3703. </div>
  3704. </div>
  3705. </div>
  3706. <div
  3707. :id="'tool-' + toolIndex"
  3708. :style="{
  3709. height:
  3710. isCloseList[toolIndex].isClose == 1
  3711. ? retrnToolHeight('tool-' + toolIndex)
  3712. : 'auto',
  3713. overflow:
  3714. isCloseList[toolIndex].isClose == 1
  3715. ? 'hidden'
  3716. : 'unset'
  3717. }"
  3718. class="worksDetailBox"
  3719. v-if="
  3720. worksStudent.length &&
  3721. worksStudent[toolIndex].length > 0
  3722. "
  3723. >
  3724. <div
  3725. class="works"
  3726. style="
  3727. width: 200px;
  3728. height: 140px;
  3729. margin: 10px 10px 10px 0;
  3730. border-radius: 15px;
  3731. box-shadow: 0 0 6px 1px #dfdada;
  3732. "
  3733. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3734. :key="wIndex"
  3735. :class="w.type == 1 ? 'isTypeOne' : ''"
  3736. >
  3737. <div class="workImg">
  3738. <!-- <img
  3739. :src="word2"
  3740. @click="downloadFile(w.works)"
  3741. v-if="w.type == 12"
  3742. alt
  3743. /> -->
  3744. <img
  3745. :src="word2"
  3746. @click="
  3747. openCocoFlow(w)
  3748. "
  3749. alt
  3750. />
  3751. <div
  3752. class="answerScore"
  3753. v-if="w.score"
  3754. @click.stop="openScore(w)"
  3755. :class="{
  3756. rightW:
  3757. w.userid == userid ||
  3758. tType == 1 ||
  3759. tType == 4 ||
  3760. w.ateacher == userid
  3761. }"
  3762. >
  3763. {{ JSON.parse(w.score).wScore }}分
  3764. </div>
  3765. <div
  3766. class="answerScore"
  3767. @click.stop="openScore(w)"
  3768. v-else-if="
  3769. courseDetail.userid == userid &&
  3770. courseDetail.state != 5 &&
  3771. chapInfoList[courseType].chapterInfo[0]
  3772. .taskJson[taskCount].eList &&
  3773. chapInfoList[courseType].chapterInfo[0]
  3774. .taskJson[taskCount].eList.length
  3775. "
  3776. :class="{
  3777. rightW:
  3778. w.userid == userid ||
  3779. tType == 1 ||
  3780. tType == 4 ||
  3781. w.ateacher == userid
  3782. }"
  3783. >
  3784. 评分
  3785. </div>
  3786. <img
  3787. class="deleteImg"
  3788. src="../../assets/deleteworks.png"
  3789. v-if="
  3790. w.userid == userid || tType == 1 || tType == 4
  3791. "
  3792. @click.stop="deleteWorks(w.wid)"
  3793. alt
  3794. />
  3795. </div>
  3796. <div class="comment" style="min-width: 200px">
  3797. <div class="worksName">
  3798. <div>{{ w.sName }}</div>
  3799. </div>
  3800. <div class="commentList">
  3801. <div class="commentList">
  3802. <div
  3803. class="commentImg"
  3804. @click="
  3805. isLikes(
  3806. w.wid,
  3807. userid,
  3808. 1,
  3809. null,
  3810. w.isLikes,
  3811. w.sName
  3812. )
  3813. "
  3814. >
  3815. <img
  3816. :src="w.isLikes == true ? likes : noLikes"
  3817. alt=""
  3818. />
  3819. </div>
  3820. <div>{{ w.likesCount }}</div>
  3821. </div>
  3822. <div class="commentList" style="margin-right: 15px">
  3823. <div
  3824. class="commentImg"
  3825. @click="commentOther(w, toolIndex, wIndex)"
  3826. >
  3827. <img
  3828. src="../../assets/icon/comment/comment.png"
  3829. alt=""
  3830. />
  3831. </div>
  3832. <div>{{ w.commentCount }}</div>
  3833. </div>
  3834. </div>
  3835. </div>
  3836. </div>
  3837. </div>
  3838. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3839. 未提交
  3840. </div>
  3841. <div
  3842. class="noWorksS"
  3843. v-if="noWorksS && noWorksS[toolIndex].length"
  3844. >
  3845. <div
  3846. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3847. :key="sIndex"
  3848. class="noWorksName"
  3849. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3850. >
  3851. <el-tooltip
  3852. effect="dark"
  3853. :content="s.student"
  3854. placement="top"
  3855. >
  3856. <span>{{ s.student }}</span>
  3857. </el-tooltip>
  3858. </div>
  3859. </div>
  3860. </div>
  3861. <div
  3862. v-if="
  3863. tType &&
  3864. tType == 2 &&
  3865. !sIsOpen &&
  3866. tool.tool.indexOf(72) != -1
  3867. "
  3868. class="worksBox"
  3869. >
  3870. <div
  3871. class="zuoyeYulan"
  3872. v-if="workStudent[toolIndex].length > 0"
  3873. >
  3874. <span class="worksTitle">作业预览</span>
  3875. </div>
  3876. <div
  3877. class="worksDetailBox"
  3878. v-if="workStudent[toolIndex].length > 0"
  3879. >
  3880. <div
  3881. class="works"
  3882. style="
  3883. width: 200px;
  3884. height: 140px;
  3885. margin: 10px 10px 10px 0;
  3886. box-shadow: 0 0 6px 1px #dfdada;
  3887. "
  3888. v-for="(w, wIndex) in workStudent[toolIndex]"
  3889. :key="wIndex"
  3890. >
  3891. <div class="workImg">
  3892. <!-- <img
  3893. :src="word2"
  3894. @click="downloadFile(w.works)"
  3895. v-if="w.type == 12"
  3896. alt
  3897. /> -->
  3898. <img
  3899. :src="word2"
  3900. @click="
  3901. openCocoFlow(w)
  3902. "
  3903. alt
  3904. />
  3905. <div
  3906. class="answerScore"
  3907. v-if="w.score"
  3908. @click.stop="openScore(w)"
  3909. :class="{
  3910. rightW:
  3911. w.userid == userid || tType == 1 || tType == 4
  3912. }"
  3913. >
  3914. {{ JSON.parse(w.score).wScore }}分
  3915. </div>
  3916. <div
  3917. class="answerScore"
  3918. @click.stop="openScore(w)"
  3919. v-else-if="courseDetail.userid == userid"
  3920. :class="{
  3921. rightW:
  3922. w.userid == userid || tType == 1 || tType == 4
  3923. }"
  3924. >
  3925. 评分
  3926. </div>
  3927. <img
  3928. class="deleteImg"
  3929. src="../../assets/deleteworks.png"
  3930. v-if="
  3931. w.userid == userid || tType == 1 || tType == 4
  3932. "
  3933. @click.stop="deleteWorks(w.wid)"
  3934. alt
  3935. />
  3936. </div>
  3937. <div class="worksName">
  3938. <div>{{ w.sName }}</div>
  3939. </div>
  3940. </div>
  3941. </div>
  3942. </div>
  3943. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3944. <div
  3945. class="zuoyeYulan"
  3946. v-if="
  3947. worksStudent.length &&
  3948. worksStudent[toolIndex].length > 0
  3949. "
  3950. >
  3951. <span class="worksTitle">作业预览</span>
  3952. <div
  3953. class="corOpen"
  3954. @click="contract(toolIndex)"
  3955. v-if="
  3956. (isCloseList[toolIndex].isCloseBoolean) &&
  3957. isCloseList[toolIndex].isClose == 0
  3958. "
  3959. >
  3960. 折叠
  3961. </div>
  3962. <div
  3963. class="corOpen"
  3964. @click="contract(toolIndex)"
  3965. v-if="isCloseList[toolIndex].isClose == 1"
  3966. >
  3967. 展开
  3968. </div>
  3969. </div>
  3970. <div
  3971. :id="'tool-' + toolIndex"
  3972. :style="{
  3973. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3974. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3975. }"
  3976. class="worksDetailBox"
  3977. v-if="
  3978. worksStudent.length &&
  3979. worksStudent[toolIndex].length > 0
  3980. "
  3981. >
  3982. <div
  3983. class="works"
  3984. style="
  3985. width: 200px;
  3986. height: 140px;
  3987. margin: 10px 10px 10px 0;
  3988. border-radius: 15px;
  3989. box-shadow: 0 0 6px 1px #dfdada;
  3990. "
  3991. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3992. :key="wIndex"
  3993. :class="w.type == 1 ? 'isTypeOne' : ''"
  3994. >
  3995. <div class="workImg" v-if="w.type == 0">
  3996. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3997. <img
  3998. :src="w.works"
  3999. @click="previewImg(w.works,w)"
  4000. alt
  4001. />
  4002. <div
  4003. class="answerScore"
  4004. v-if="w.score"
  4005. @click.stop="openScore(w)"
  4006. :class="{
  4007. rightW:
  4008. w.userid == userid ||
  4009. tType == 1 ||
  4010. tType == 4 ||
  4011. w.ateacher == userid,
  4012. }"
  4013. >
  4014. {{ JSON.parse(w.score).wScore }}分
  4015. </div>
  4016. <div
  4017. class="answerScore"
  4018. @click.stop="openScore(w)"
  4019. v-else-if="courseDetail.userid == userid"
  4020. :class="{
  4021. rightW:
  4022. w.userid == userid ||
  4023. tType == 1 ||
  4024. tType == 4 ||
  4025. w.ateacher == userid,
  4026. }"
  4027. >
  4028. 评分
  4029. </div>
  4030. <img
  4031. class="deleteImg"
  4032. src="../../assets/deleteworks.png"
  4033. v-if="
  4034. w.userid == userid || tType == 1 || tType == 4
  4035. "
  4036. @click.stop="deleteWorks(w.wid)"
  4037. alt
  4038. />
  4039. </div>
  4040. <div
  4041. class="workImg"
  4042. style="cursor: pointer"
  4043. v-if="w.type == 1"
  4044. >
  4045. <img :src="word" @click="openFile(w.works)" alt />
  4046. <!-- @click="openFile(w.works)" -->
  4047. <div
  4048. class="answerScore"
  4049. v-if="w.score"
  4050. @click.stop="openScore(w)"
  4051. :class="{
  4052. rightW:
  4053. w.userid == userid ||
  4054. tType == 1 ||
  4055. tType == 4 ||
  4056. w.ateacher == userid,
  4057. }"
  4058. >
  4059. {{ JSON.parse(w.score).wScore }}分
  4060. </div>
  4061. <div
  4062. class="answerScore"
  4063. @click.stop="openScore(w)"
  4064. v-else-if="courseDetail.userid == userid"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid,
  4071. }"
  4072. >
  4073. 评分
  4074. </div>
  4075. <img
  4076. class="deleteImg"
  4077. src="../../assets/deleteworks.png"
  4078. v-if="
  4079. w.userid == userid || tType == 1 || tType == 4
  4080. "
  4081. @click.stop="deleteWorks(w.wid)"
  4082. alt
  4083. />
  4084. </div>
  4085. <div class="workImg" v-if="w.type == 3">
  4086. <img
  4087. style="cursor: pointer"
  4088. :src="video"
  4089. @click="openVideo(w)"
  4090. alt
  4091. />
  4092. <!-- @click="openVideo(w.works)" -->
  4093. <div
  4094. class="answerScore"
  4095. v-if="w.score"
  4096. @click.stop="openScore(w)"
  4097. :class="{
  4098. rightW:
  4099. w.userid == userid ||
  4100. tType == 1 ||
  4101. tType == 4 ||
  4102. w.ateacher == userid,
  4103. }"
  4104. >
  4105. {{ JSON.parse(w.score).wScore }}分
  4106. </div>
  4107. <div
  4108. class="answerScore"
  4109. @click.stop="openScore(w)"
  4110. v-else-if="courseDetail.userid == userid"
  4111. :class="{
  4112. rightW:
  4113. w.userid == userid ||
  4114. tType == 1 ||
  4115. tType == 4 ||
  4116. w.ateacher == userid,
  4117. }"
  4118. >
  4119. 评分
  4120. </div>
  4121. <img
  4122. class="deleteImg"
  4123. src="../../assets/deleteworks.png"
  4124. v-if="
  4125. w.userid == userid || tType == 1 || tType == 4
  4126. "
  4127. @click.stop="deleteWorks(w.wid)"
  4128. alt
  4129. />
  4130. </div>
  4131. <div class="comment" style="min-width: 200px">
  4132. <div class="worksName">
  4133. <div
  4134. style="cursor: pointer"
  4135. @click="
  4136. openSname(w.sName, w.wid, toolIndex, w.userid)
  4137. "
  4138. >
  4139. {{ w.sName }}
  4140. </div>
  4141. </div>
  4142. <div class="commentList">
  4143. <div class="commentList">
  4144. <div
  4145. class="commentImg"
  4146. @click="
  4147. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4148. "
  4149. >
  4150. <img
  4151. :src="w.isLikes == true ? likes : noLikes"
  4152. alt=""
  4153. />
  4154. </div>
  4155. <div>{{ w.likesCount }}</div>
  4156. </div>
  4157. <div class="commentList" style="margin-right: 15px">
  4158. <div
  4159. class="commentImg"
  4160. @click="commentOther(w, toolIndex, wIndex)"
  4161. >
  4162. <img
  4163. src="../../assets/icon/comment/comment.png"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.commentCount }}</div>
  4168. </div>
  4169. </div>
  4170. </div>
  4171. </div>
  4172. </div>
  4173. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4174. 未提交
  4175. </div>
  4176. <div
  4177. class="noWorksS"
  4178. v-if="noWorksS && noWorksS[toolIndex].length"
  4179. >
  4180. <div
  4181. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4182. :key="sIndex"
  4183. class="noWorksName"
  4184. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4185. >
  4186. <el-tooltip effect="dark" :content="s.student" placement="top">
  4187. <span>{{ s.student }}</span>
  4188. </el-tooltip>
  4189. </div>
  4190. </div>
  4191. </div>
  4192. <div
  4193. v-if="
  4194. tType &&
  4195. ((tType == 2 && sIsOpen == true) ||
  4196. tType == 1 ||
  4197. tType == 4) &&
  4198. tool.tool.indexOf(4) != -1 &&
  4199. (tool.askJson[0].answer ||
  4200. tool.askJson[0].answer === 0) &&
  4201. checkJson[toolIndex].length
  4202. "
  4203. class="xuan_right_box"
  4204. >
  4205. <div
  4206. class="tool_right_box"
  4207. v-for="(item, index) in tool.askJson"
  4208. :key="index"
  4209. >
  4210. <div style="width: calc(100% - 30px);">
  4211. <el-tooltip
  4212. effect="light"
  4213. :content="index + 1 + '、' + item.askstitle"
  4214. placement="top"
  4215. popper-class="text_tooltip"
  4216. >
  4217. <div
  4218. style="
  4219. width: calc(100% - 130px);
  4220. display: block;
  4221. white-space: nowrap;
  4222. overflow: hidden;
  4223. text-overflow: ellipsis;
  4224. word-break: break-word;
  4225. cursor: pointer;
  4226. "
  4227. >
  4228. {{ index + 1 + "、" + item.askstitle }}
  4229. </div>
  4230. </el-tooltip>
  4231. </div>
  4232. <div class="right_box_xuan">
  4233. <span>正确率</span>
  4234. <span>{{
  4235. (checkJson[toolIndex][index].right
  4236. ? checkJson[toolIndex][index].right
  4237. : 0) + "%"
  4238. }}</span>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. <div
  4243. class="xuan_right_box"
  4244. style="background: unset; padding: 0 10px"
  4245. v-if="
  4246. tType &&
  4247. ((tType == 2 && sIsOpen == true) ||
  4248. tType == 1 ||
  4249. tType == 4) &&
  4250. tool.tool.indexOf(4) != -1
  4251. "
  4252. >
  4253. <AskStatic
  4254. v-if="
  4255. worksStudent.length &&
  4256. worksStudent[toolIndex].length > 0
  4257. "
  4258. :askJSON="tool"
  4259. :checkJson="checkJson[toolIndex]"
  4260. ></AskStatic>
  4261. </div>
  4262. <div
  4263. v-if="
  4264. tType &&
  4265. ((tType == 2 && sIsOpen == true) ||
  4266. tType == 1 ||
  4267. tType == 4) &&
  4268. tool.tool.indexOf(4) != -1
  4269. "
  4270. class="worksBox"
  4271. >
  4272. <div
  4273. class="zuoyeYulan"
  4274. v-if="
  4275. worksStudent.length &&
  4276. worksStudent[toolIndex].length > 0
  4277. "
  4278. >
  4279. <div class="worksTop">
  4280. <div>作业预览</div>
  4281. <div
  4282. class="corOpen"
  4283. @click="contract(toolIndex)"
  4284. v-if="
  4285. (isCloseList[toolIndex].isCloseBoolean) &&
  4286. isCloseList[toolIndex].isClose == 0
  4287. "
  4288. >
  4289. 折叠
  4290. </div>
  4291. <div
  4292. class="corOpen"
  4293. @click="contract(toolIndex)"
  4294. v-if="isCloseList[toolIndex].isClose == 1"
  4295. >
  4296. 展开
  4297. </div>
  4298. </div>
  4299. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4300. </div>
  4301. <div>
  4302. <div
  4303. :id="'tool-' + toolIndex"
  4304. :style="{
  4305. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4306. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4307. }"
  4308. class="worksDetailBox"
  4309. v-if="
  4310. worksStudent.length &&
  4311. worksStudent[toolIndex].length > 0
  4312. "
  4313. >
  4314. <div
  4315. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4316. :key="wIndex"
  4317. class="isWorksName2"
  4318. @click="
  4319. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4320. "
  4321. >
  4322. {{ w.sName }}
  4323. <img
  4324. class="deleteImg deleteImg2"
  4325. src="../../assets/deleteworks.png"
  4326. v-if="
  4327. w.userid == userid || tType == 1 || tType == 4
  4328. "
  4329. @click.stop="deleteWorks(w.wid)"
  4330. alt
  4331. />
  4332. </div>
  4333. <!-- <div class="works" style="
  4334. width: 200px;
  4335. height: 140px;
  4336. border-radius: 10px;
  4337. box-shadow: 0 0 6px 1px #dfdada;
  4338. overflow: hidden;
  4339. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4340. <div class="workImg">
  4341. <img src="../../assets/icon/works/noImg.png" @click="
  4342. openTools(
  4343. 4,
  4344. toolIndex,
  4345. taskCount,
  4346. w.works,
  4347. w.sName
  4348. )
  4349. " alt />
  4350. </div>
  4351. <div class="worksName">
  4352. <div>{{ w.sName }}</div>
  4353. <div>{{ w.time }}</div>
  4354. </div>
  4355. </div> -->
  4356. </div>
  4357. </div>
  4358. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4359. 未提交
  4360. </div>
  4361. <div
  4362. class="noWorksS"
  4363. v-if="noWorksS && noWorksS[toolIndex].length"
  4364. >
  4365. <div
  4366. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4367. :key="sIndex"
  4368. class="noWorksName"
  4369. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4370. >
  4371. <el-tooltip effect="dark" :content="s.student" placement="top">
  4372. <span>{{ s.student }}</span>
  4373. </el-tooltip>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. <div
  4378. v-if="
  4379. tType &&
  4380. ((tType == 2 && sIsOpen == true) ||
  4381. tType == 1 ||
  4382. tType == 4) &&
  4383. tool.tool.indexOf(45) != -1 &&
  4384. (tool.testJson.testJson[0].answer ||
  4385. tool.testJson.testJson[0].answer === 0) &&
  4386. checkJson[toolIndex].length
  4387. "
  4388. class="xuan_right_box"
  4389. >
  4390. <div
  4391. class="tool_right_box"
  4392. v-for="(item, index) in tool.testJson.testJson"
  4393. :key="index"
  4394. >
  4395. <div class="right_box_xuan" style="margin-right: 10px">
  4396. <span>正确率</span>
  4397. <span>{{
  4398. (checkJson[toolIndex][index].right
  4399. ? checkJson[toolIndex][index].right
  4400. : 0) + "%"
  4401. }}</span>
  4402. </div>
  4403. <div style="width: calc(100% - 30px);">
  4404. <el-tooltip
  4405. effect="light"
  4406. :content="index + 1 + '、' + item.teststitle"
  4407. placement="top"
  4408. popper-class="text_tooltip"
  4409. >
  4410. <div
  4411. style="
  4412. width: calc(100% - 130px);
  4413. display: block;
  4414. white-space: nowrap;
  4415. overflow: hidden;
  4416. text-overflow: ellipsis;
  4417. word-break: break-word;
  4418. cursor: pointer;
  4419. "
  4420. >
  4421. {{ index + 1 + "、" + item.teststitle }}
  4422. </div>
  4423. </el-tooltip>
  4424. </div>
  4425. </div>
  4426. </div>
  4427. <div
  4428. class="xuan_right_box"
  4429. style="background: unset; padding: 0 10px; width: 91.5%"
  4430. v-if="
  4431. tType &&
  4432. ((tType == 2 && sIsOpen == true) ||
  4433. tType == 1 ||
  4434. tType == 4) &&
  4435. tool.tool.indexOf(45) != -1
  4436. "
  4437. >
  4438. <AskStatic2
  4439. v-if="
  4440. worksStudent.length &&
  4441. worksStudent[toolIndex].length > 0
  4442. "
  4443. :askJSON="tool"
  4444. :checkJson="checkJson[toolIndex]"
  4445. ></AskStatic2>
  4446. </div>
  4447. <div
  4448. v-if="
  4449. tType &&
  4450. ((tType == 2 && sIsOpen == true) ||
  4451. tType == 1 ||
  4452. tType == 4) &&
  4453. tool.tool.indexOf(45) != -1
  4454. "
  4455. class="worksBox"
  4456. >
  4457. <div
  4458. class="zuoyeYulan"
  4459. v-if="
  4460. worksStudent.length &&
  4461. worksStudent[toolIndex].length > 0
  4462. "
  4463. >
  4464. <div class="worksTop">
  4465. <div>作业预览</div>
  4466. <div
  4467. class="corOpen"
  4468. @click="contract(toolIndex)"
  4469. v-if="
  4470. (isCloseList[toolIndex].isCloseBoolean) &&
  4471. isCloseList[toolIndex].isClose == 0
  4472. "
  4473. >
  4474. 折叠
  4475. </div>
  4476. <div
  4477. class="corOpen"
  4478. @click="contract(toolIndex)"
  4479. v-if="isCloseList[toolIndex].isClose == 1"
  4480. >
  4481. 展开
  4482. </div>
  4483. </div>
  4484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4485. </div>
  4486. <div>
  4487. <div
  4488. :id="'tool-' + toolIndex"
  4489. :style="{
  4490. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4491. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4492. }"
  4493. class="worksDetailBox"
  4494. v-if="
  4495. worksStudent.length &&
  4496. worksStudent[toolIndex].length > 0
  4497. "
  4498. >
  4499. <div
  4500. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4501. :key="wIndex"
  4502. class="isWorksName2"
  4503. @click="
  4504. openTools(
  4505. 45,
  4506. toolIndex,
  4507. taskCount,
  4508. w.works,
  4509. w.sName
  4510. )
  4511. "
  4512. >
  4513. {{ w.sName }}
  4514. <img
  4515. class="deleteImg deleteImg2"
  4516. src="../../assets/deleteworks.png"
  4517. v-if="
  4518. w.userid == userid || tType == 1 || tType == 4
  4519. "
  4520. @click.stop="deleteWorks(w.wid)"
  4521. alt
  4522. />
  4523. </div>
  4524. </div>
  4525. </div>
  4526. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4527. 未提交
  4528. </div>
  4529. <div
  4530. class="noWorksS"
  4531. v-if="noWorksS && noWorksS[toolIndex].length"
  4532. >
  4533. <div
  4534. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4535. :key="sIndex"
  4536. class="noWorksName"
  4537. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4538. >
  4539. <el-tooltip effect="dark" :content="s.student" placement="top">
  4540. <span>{{ s.student }}</span>
  4541. </el-tooltip>
  4542. </div>
  4543. </div>
  4544. </div>
  4545. <div
  4546. v-if="
  4547. tType &&
  4548. ((tType == 2 && sIsOpen == true) ||
  4549. tType == 1 ||
  4550. tType == 4) &&
  4551. tool.tool.indexOf(69) != -1
  4552. "
  4553. class="worksBox"
  4554. >
  4555. <div
  4556. class="zuoyeYulan"
  4557. v-if="
  4558. worksStudent.length &&
  4559. worksStudent[toolIndex].length > 0
  4560. "
  4561. >
  4562. <div class="worksTop">
  4563. <div>作业预览</div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="
  4568. (isCloseList[toolIndex].isCloseBoolean) &&
  4569. isCloseList[toolIndex].isClose == 0
  4570. "
  4571. >
  4572. 折叠
  4573. </div>
  4574. <div
  4575. class="corOpen"
  4576. @click="contract(toolIndex)"
  4577. v-if="isCloseList[toolIndex].isClose == 1"
  4578. >
  4579. 展开
  4580. </div>
  4581. </div>
  4582. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4583. </div>
  4584. <div>
  4585. <div
  4586. :id="'tool-' + toolIndex"
  4587. :style="{
  4588. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4589. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4590. }"
  4591. class="worksDetailBox"
  4592. v-if="
  4593. worksStudent.length &&
  4594. worksStudent[toolIndex].length > 0
  4595. "
  4596. >
  4597. <div
  4598. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4599. :key="wIndex"
  4600. class="isWorksName2"
  4601. style="width: 160px;height: 65px;line-height: 65px;"
  4602. @click="
  4603. openTools(
  4604. 69,
  4605. toolIndex,
  4606. taskCount,
  4607. w.works,
  4608. w.sName,
  4609. w.wid
  4610. )
  4611. "
  4612. >
  4613. {{ w.sName }}
  4614. <img
  4615. class="deleteImg1"
  4616. src="../../assets/evaEnglish.png"
  4617. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4618. alt
  4619. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4620. />
  4621. <img
  4622. class="deleteImg deleteImg2"
  4623. src="../../assets/deleteworks.png"
  4624. v-if="
  4625. w.userid == userid || tType == 1 || tType == 4
  4626. "
  4627. @click.stop="deleteWorks(w.wid)"
  4628. alt
  4629. />
  4630. </div>
  4631. </div>
  4632. </div>
  4633. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4634. 未提交
  4635. </div>
  4636. <div
  4637. class="noWorksS"
  4638. v-if="noWorksS && noWorksS[toolIndex].length"
  4639. >
  4640. <div
  4641. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4642. :key="sIndex"
  4643. class="noWorksName"
  4644. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4645. >
  4646. <el-tooltip effect="dark" :content="s.student" placement="top">
  4647. <span>{{ s.student }}</span>
  4648. </el-tooltip>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. <div
  4653. v-if="
  4654. tType &&
  4655. ((tType == 2 && sIsOpen == true) ||
  4656. tType == 1 ||
  4657. tType == 4) &&
  4658. tool.tool.indexOf(15) != -1
  4659. "
  4660. class="worksBox"
  4661. >
  4662. <div
  4663. class="zuoyeYulan"
  4664. v-if="
  4665. (worksStudent.length &&
  4666. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4667. "
  4668. >
  4669. <div class="worksTop">
  4670. <div>作业预览</div>
  4671. <div
  4672. class="corOpen"
  4673. @click="contract(toolIndex)"
  4674. v-if="
  4675. (isCloseList[toolIndex].isCloseBoolean) &&
  4676. isCloseList[toolIndex].isClose == 0
  4677. "
  4678. >
  4679. 折叠
  4680. </div>
  4681. <div
  4682. class="corOpen"
  4683. @click="contract(toolIndex)"
  4684. v-if="isCloseList[toolIndex].isClose == 1"
  4685. >
  4686. 展开
  4687. </div>
  4688. </div>
  4689. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4690. </div>
  4691. <div
  4692. class="group_workBox"
  4693. v-for="(g, gindex) in courseGroup.group"
  4694. :key="gindex"
  4695. >
  4696. <div class="group_box">
  4697. <div class="group_title">
  4698. <el-tooltip
  4699. class="item"
  4700. effect="light"
  4701. :content="g.name"
  4702. placement="top"
  4703. >
  4704. <div class="group_name">{{ g.name }}</div>
  4705. </el-tooltip>
  4706. </div>
  4707. <div
  4708. class="group_work"
  4709. v-if="
  4710. g.works &&
  4711. g.works.length &&
  4712. g.works[toolIndex].length
  4713. "
  4714. >
  4715. <div
  4716. class="works"
  4717. v-for="(w, wIndex) in g.works[toolIndex]"
  4718. :key="wIndex"
  4719. >
  4720. <div
  4721. class="workImg"
  4722. style="
  4723. border-radius: 15px;
  4724. box-shadow: 0px 0px 5px 5px #eee;
  4725. "
  4726. >
  4727. <div
  4728. class="answerBg"
  4729. style="border-radius: 15px 15px 0 0"
  4730. @click="
  4731. commentOther(w, toolIndex, wIndex, null, g.id)
  4732. "
  4733. >
  4734. <div class="answerContent">
  4735. {{ JSON.parse(w.works)[0].answer }}
  4736. </div>
  4737. <div
  4738. class="answerScore"
  4739. v-if="w.score"
  4740. @click.stop="openScore(w)"
  4741. :class="{
  4742. rightW:
  4743. w.userid == userid ||
  4744. tType == 1 ||
  4745. tType == 4,
  4746. }"
  4747. >
  4748. {{ JSON.parse(w.score).wScore }}分
  4749. </div>
  4750. <div
  4751. class="answerScore"
  4752. @click.stop="openScore(w)"
  4753. v-else-if="courseDetail.userid == userid"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. 评分
  4762. </div>
  4763. <img
  4764. class="deleteImg"
  4765. src="../../assets/deleteworks.png"
  4766. v-if="
  4767. w.userid == userid ||
  4768. tType == 1 ||
  4769. tType == 4
  4770. "
  4771. @click.stop="deleteWorks(w.wid)"
  4772. alt
  4773. />
  4774. </div>
  4775. <div class="comment">
  4776. <div class="worksName">
  4777. <div>{{ w.sName }}</div>
  4778. </div>
  4779. <div class="commentList">
  4780. <div
  4781. class="commentImg"
  4782. @click="
  4783. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4784. "
  4785. >
  4786. <img
  4787. :src="w.isLikes == true ? likes : noLikes"
  4788. alt=""
  4789. />
  4790. </div>
  4791. <div>{{ w.likesCount }}</div>
  4792. </div>
  4793. <div
  4794. class="commentList"
  4795. style="margin-right: 15px"
  4796. >
  4797. <div
  4798. class="commentImg"
  4799. @click="
  4800. commentOther(
  4801. w,
  4802. toolIndex,
  4803. wIndex,
  4804. null,
  4805. g.id
  4806. )
  4807. "
  4808. >
  4809. <img
  4810. src="../../assets/icon/comment/comment.png"
  4811. alt=""
  4812. />
  4813. </div>
  4814. <div>{{ w.commentCount }}</div>
  4815. </div>
  4816. </div>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. <div class="group_work" v-else>暂无提交作业</div>
  4821. </div>
  4822. </div>
  4823. <div
  4824. :id="'tool-' + toolIndex"
  4825. :style="{
  4826. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4827. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4828. }"
  4829. class="worksDetailBox"
  4830. v-if="
  4831. worksStudent.length &&
  4832. worksStudent[toolIndex].length > 0
  4833. "
  4834. >
  4835. <div
  4836. class="works"
  4837. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4838. :key="wIndex"
  4839. >
  4840. <div
  4841. class="workImg"
  4842. style="
  4843. border-radius: 15px;
  4844. box-shadow: 0px 0px 5px 5px #eee;
  4845. "
  4846. >
  4847. <!-- <img
  4848. src="../../assets/icon/works/noImg.png"
  4849. @click="openTools(15, toolIndex, taskCount, w.works)"
  4850. alt=""
  4851. />-->
  4852. <div
  4853. class="answerBg"
  4854. style="border-radius: 15px 15px 0 0"
  4855. @click="commentOther(w, toolIndex, wIndex)"
  4856. >
  4857. <!-- <div>{{ w.sName }}</div> -->
  4858. <div class="answerContent">
  4859. {{ JSON.parse(w.works)[0].answer }}
  4860. </div>
  4861. <div
  4862. class="answerScore"
  4863. v-if="w.score"
  4864. @click.stop="openScore(w)"
  4865. :class="{
  4866. rightW:
  4867. w.userid == userid ||
  4868. tType == 1 ||
  4869. tType == 4,
  4870. }"
  4871. >
  4872. {{ JSON.parse(w.score).wScore }}分
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. @click.stop="openScore(w)"
  4877. v-else-if="courseDetail.userid == userid"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. 评分
  4886. </div>
  4887. <img
  4888. class="deleteImg"
  4889. src="../../assets/deleteworks.png"
  4890. v-if="
  4891. w.userid == userid || tType == 1 || tType == 4
  4892. "
  4893. @click.stop="deleteWorks(w.wid)"
  4894. alt
  4895. />
  4896. </div>
  4897. <div class="comment">
  4898. <div class="worksName">
  4899. <div>{{ w.sName }}</div>
  4900. </div>
  4901. <div class="commentList">
  4902. <div
  4903. class="commentImg"
  4904. @click="
  4905. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4906. "
  4907. >
  4908. <img
  4909. :src="w.isLikes == true ? likes : noLikes"
  4910. alt=""
  4911. />
  4912. </div>
  4913. <div>{{ w.likesCount }}</div>
  4914. </div>
  4915. <div class="commentList" style="margin-right: 15px">
  4916. <div
  4917. class="commentImg"
  4918. @click="commentOther(w, toolIndex, wIndex)"
  4919. >
  4920. <img
  4921. src="../../assets/icon/comment/comment.png"
  4922. alt=""
  4923. />
  4924. </div>
  4925. <div>{{ w.commentCount }}</div>
  4926. </div>
  4927. </div>
  4928. </div>
  4929. </div>
  4930. </div>
  4931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4932. 未提交
  4933. </div>
  4934. <div
  4935. class="noWorksS"
  4936. v-if="noWorksS && noWorksS[toolIndex].length"
  4937. >
  4938. <div
  4939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4940. :key="sIndex"
  4941. class="noWorksName"
  4942. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4943. >
  4944. <el-tooltip effect="dark" :content="s.student" placement="top">
  4945. <span>{{ s.student }}</span>
  4946. </el-tooltip>
  4947. </div>
  4948. </div>
  4949. </div>
  4950. <div
  4951. v-if="
  4952. tType &&
  4953. ((tType == 2 && sIsOpen == true) ||
  4954. tType == 1 ||
  4955. tType == 4) &&
  4956. tool.tool.indexOf(1) != -1
  4957. "
  4958. class="worksBox"
  4959. >
  4960. <div
  4961. class="zuoyeYulan"
  4962. v-if="
  4963. (worksStudent.length &&
  4964. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4965. "
  4966. >
  4967. <div class="worksTop">
  4968. <div>作业预览</div>
  4969. <div
  4970. class="corOpen"
  4971. @click="contract(toolIndex)"
  4972. v-if="
  4973. (isCloseList[toolIndex].isCloseBoolean) &&
  4974. isCloseList[toolIndex].isClose == 0
  4975. "
  4976. >
  4977. 折叠
  4978. </div>
  4979. <div
  4980. class="corOpen"
  4981. @click="contract(toolIndex)"
  4982. v-if="isCloseList[toolIndex].isClose == 1"
  4983. >
  4984. 展开
  4985. </div>
  4986. </div>
  4987. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4988. </div>
  4989. <div
  4990. class="group_workBox"
  4991. v-for="(g, gindex) in courseGroup.group"
  4992. :key="gindex"
  4993. >
  4994. <div class="group_box">
  4995. <div class="group_title">
  4996. <el-tooltip
  4997. class="item"
  4998. effect="light"
  4999. :content="g.name"
  5000. placement="top"
  5001. >
  5002. <div class="group_name">{{ g.name }}</div>
  5003. </el-tooltip>
  5004. </div>
  5005. <div
  5006. class="group_work"
  5007. v-if="
  5008. g.works &&
  5009. g.works.length &&
  5010. g.works[toolIndex].length
  5011. "
  5012. >
  5013. <div
  5014. class="works"
  5015. style="
  5016. width: 200px;
  5017. height: 140px;
  5018. margin: 10px 10px 10px 0;
  5019. border-radius: 15px;
  5020. box-shadow: 0 0 6px 1px #dfdada;
  5021. "
  5022. v-for="(w, wIndex) in g.works[toolIndex]"
  5023. :key="wIndex"
  5024. :class="w.type == 1 ? 'isTypeOne' : ''"
  5025. >
  5026. <div class="workImg">
  5027. <img
  5028. :src="w.works"
  5029. @click="previewImg(w.works,w)"
  5030. alt
  5031. />
  5032. <div
  5033. class="answerScore"
  5034. v-if="w.score"
  5035. @click.stop="openScore(w)"
  5036. :class="{
  5037. rightW:
  5038. w.userid == userid ||
  5039. tType == 1 ||
  5040. tType == 4,
  5041. }"
  5042. >
  5043. {{ JSON.parse(w.score).wScore }}分
  5044. </div>
  5045. <div
  5046. class="answerScore"
  5047. @click.stop="openScore(w)"
  5048. v-else-if="courseDetail.userid == userid"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid ||
  5052. tType == 1 ||
  5053. tType == 4,
  5054. }"
  5055. >
  5056. 评分
  5057. </div>
  5058. <img
  5059. class="deleteImg"
  5060. src="../../assets/deleteworks.png"
  5061. v-if="
  5062. w.userid == userid || tType == 1 || tType == 4
  5063. "
  5064. @click.stop="deleteWorks(w.wid)"
  5065. alt
  5066. />
  5067. </div>
  5068. <div class="comment" style="min-width: 200px">
  5069. <div class="worksName">
  5070. <div>{{ w.sName }}</div>
  5071. </div>
  5072. <div class="commentList">
  5073. <div class="commentList">
  5074. <div
  5075. class="commentImg"
  5076. @click="
  5077. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5078. "
  5079. >
  5080. <img
  5081. :src="w.isLikes == true ? likes : noLikes"
  5082. alt=""
  5083. />
  5084. </div>
  5085. <div>{{ w.likesCount }}</div>
  5086. </div>
  5087. <div
  5088. class="commentList"
  5089. style="margin-right: 15px"
  5090. >
  5091. <div
  5092. class="commentImg"
  5093. @click="
  5094. commentOther(
  5095. w,
  5096. toolIndex,
  5097. wIndex,
  5098. null,
  5099. g.id
  5100. )
  5101. "
  5102. >
  5103. <img
  5104. src="../../assets/icon/comment/comment.png"
  5105. alt=""
  5106. />
  5107. </div>
  5108. <div>{{ w.commentCount }}</div>
  5109. </div>
  5110. </div>
  5111. </div>
  5112. </div>
  5113. </div>
  5114. <div class="group_work" v-else>暂无提交作业</div>
  5115. </div>
  5116. </div>
  5117. <div
  5118. :id="'tool-' + toolIndex"
  5119. :style="{
  5120. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5121. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5122. }"
  5123. class="worksDetailBox"
  5124. v-if="
  5125. worksStudent.length &&
  5126. worksStudent[toolIndex].length > 0
  5127. "
  5128. >
  5129. <div
  5130. class="works"
  5131. style="
  5132. width: 200px;
  5133. height: 140px;
  5134. margin: 10px 10px 10px 0;
  5135. border-radius: 15px;
  5136. box-shadow: 0 0 6px 1px #dfdada;
  5137. "
  5138. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5139. :key="wIndex"
  5140. >
  5141. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5142. <div class="workImg">
  5143. <img
  5144. :src="w.works"
  5145. @click="previewImg(w.works,w)"
  5146. alt
  5147. />
  5148. <div
  5149. class="answerScore"
  5150. v-if="w.score"
  5151. @click.stop="openScore(w)"
  5152. :class="{
  5153. rightW:
  5154. w.userid == userid || tType == 1 || tType == 4,
  5155. }"
  5156. >
  5157. {{ JSON.parse(w.score).wScore }}分
  5158. </div>
  5159. <div
  5160. class="answerScore"
  5161. @click.stop="openScore(w)"
  5162. v-else-if="courseDetail.userid == userid"
  5163. :class="{
  5164. rightW:
  5165. w.userid == userid || tType == 1 || tType == 4,
  5166. }"
  5167. >
  5168. 评分
  5169. </div>
  5170. <img
  5171. class="deleteImg"
  5172. src="../../assets/deleteworks.png"
  5173. v-if="
  5174. w.userid == userid || tType == 1 || tType == 4
  5175. "
  5176. @click.stop="deleteWorks(w.wid)"
  5177. alt
  5178. />
  5179. </div>
  5180. <div class="comment" style="min-width: 200px">
  5181. <div class="worksName">
  5182. <div>{{ w.sName }}</div>
  5183. </div>
  5184. <div class="commentList">
  5185. <div class="commentList">
  5186. <div
  5187. class="commentImg"
  5188. @click="
  5189. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5190. "
  5191. >
  5192. <img
  5193. :src="w.isLikes == true ? likes : noLikes"
  5194. alt=""
  5195. />
  5196. </div>
  5197. <div>{{ w.likesCount }}</div>
  5198. </div>
  5199. <div class="commentList" style="margin-right: 15px">
  5200. <div
  5201. class="commentImg"
  5202. @click="commentOther(w, toolIndex, wIndex)"
  5203. >
  5204. <img
  5205. src="../../assets/icon/comment/comment.png"
  5206. alt=""
  5207. />
  5208. </div>
  5209. <div>{{ w.commentCount }}</div>
  5210. </div>
  5211. </div>
  5212. </div>
  5213. </div>
  5214. </div>
  5215. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5216. 未提交
  5217. </div>
  5218. <div
  5219. class="noWorksS"
  5220. v-if="noWorksS && noWorksS[toolIndex].length"
  5221. >
  5222. <div
  5223. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5224. :key="sIndex"
  5225. class="noWorksName"
  5226. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5227. >
  5228. <el-tooltip effect="dark" :content="s.student" placement="top">
  5229. <span>{{ s.student }}</span>
  5230. </el-tooltip>
  5231. </div>
  5232. </div>
  5233. </div>
  5234. <div
  5235. v-if="
  5236. tType &&
  5237. ((tType == 2 && sIsOpen == true) ||
  5238. tType == 1 ||
  5239. tType == 4) &&
  5240. tool.tool.indexOf(3) != -1
  5241. "
  5242. class="worksBox"
  5243. >
  5244. <div
  5245. class="zuoyeYulan"
  5246. v-if="
  5247. (worksStudent.length &&
  5248. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5249. "
  5250. >
  5251. <div class="worksTop">
  5252. <div>作业预览</div>
  5253. <div
  5254. class="corOpen"
  5255. @click="contract(toolIndex)"
  5256. v-if="
  5257. (isCloseList[toolIndex].isCloseBoolean) &&
  5258. isCloseList[toolIndex].isClose == 0
  5259. "
  5260. >
  5261. 折叠
  5262. </div>
  5263. <div
  5264. class="corOpen"
  5265. @click="contract(toolIndex)"
  5266. v-if="isCloseList[toolIndex].isClose == 1"
  5267. >
  5268. 展开
  5269. </div>
  5270. </div>
  5271. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5272. </div>
  5273. <div
  5274. class="group_workBox"
  5275. v-for="(g, gindex) in courseGroup.group"
  5276. :key="gindex"
  5277. >
  5278. <div class="group_box">
  5279. <div class="group_title">
  5280. <el-tooltip
  5281. class="item"
  5282. effect="light"
  5283. :content="g.name"
  5284. placement="top"
  5285. >
  5286. <div class="group_name">{{ g.name }}</div>
  5287. </el-tooltip>
  5288. </div>
  5289. <div
  5290. class="group_work"
  5291. v-if="
  5292. g.works &&
  5293. g.works.length &&
  5294. g.works[toolIndex].length
  5295. "
  5296. >
  5297. <div
  5298. class="works"
  5299. style="
  5300. width: 200px;
  5301. height: 140px;
  5302. margin: 10px 10px 10px 0;
  5303. border-radius: 15px;
  5304. box-shadow: 0 0 6px 1px #dfdada;
  5305. "
  5306. v-for="(w, wIndex) in g.works[toolIndex]"
  5307. :key="wIndex"
  5308. :class="w.type == 1 ? 'isTypeOne' : ''"
  5309. >
  5310. <div class="workImg">
  5311. <img
  5312. :src="w.works"
  5313. @click="previewImg(w.works,w)"
  5314. alt
  5315. />
  5316. <div
  5317. class="answerScore"
  5318. v-if="w.score"
  5319. @click.stop="openScore(w)"
  5320. :class="{
  5321. rightW:
  5322. w.userid == userid ||
  5323. tType == 1 ||
  5324. tType == 4,
  5325. }"
  5326. >
  5327. {{ JSON.parse(w.score).wScore }}分
  5328. </div>
  5329. <div
  5330. class="answerScore"
  5331. @click.stop="openScore(w)"
  5332. v-else-if="courseDetail.userid == userid"
  5333. :class="{
  5334. rightW:
  5335. w.userid == userid ||
  5336. tType == 1 ||
  5337. tType == 4,
  5338. }"
  5339. >
  5340. 评分
  5341. </div>
  5342. <img
  5343. class="deleteImg"
  5344. src="../../assets/deleteworks.png"
  5345. v-if="
  5346. w.userid == userid || tType == 1 || tType == 4
  5347. "
  5348. @click.stop="deleteWorks(w.wid)"
  5349. alt
  5350. />
  5351. </div>
  5352. <div class="comment" style="min-width: 200px">
  5353. <div class="worksName">
  5354. <div>{{ w.sName }}</div>
  5355. </div>
  5356. <div class="commentList">
  5357. <div class="commentList">
  5358. <div
  5359. class="commentImg"
  5360. @click="
  5361. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5362. "
  5363. >
  5364. <img
  5365. :src="w.isLikes == true ? likes : noLikes"
  5366. alt=""
  5367. />
  5368. </div>
  5369. <div>{{ w.likesCount }}</div>
  5370. </div>
  5371. <div
  5372. class="commentList"
  5373. style="margin-right: 15px"
  5374. >
  5375. <div
  5376. class="commentImg"
  5377. @click="
  5378. commentOther(
  5379. w,
  5380. toolIndex,
  5381. wIndex,
  5382. null,
  5383. g.id
  5384. )
  5385. "
  5386. >
  5387. <img
  5388. src="../../assets/icon/comment/comment.png"
  5389. alt=""
  5390. />
  5391. </div>
  5392. <div>{{ w.commentCount }}</div>
  5393. </div>
  5394. </div>
  5395. </div>
  5396. </div>
  5397. </div>
  5398. <div class="group_work" v-else>暂无提交作业</div>
  5399. </div>
  5400. </div>
  5401. <div
  5402. :id="'tool-' + toolIndex"
  5403. :style="{
  5404. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5405. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5406. }"
  5407. class="worksDetailBox"
  5408. v-if="
  5409. worksStudent.length &&
  5410. worksStudent[toolIndex].length > 0
  5411. "
  5412. >
  5413. <div
  5414. class="works"
  5415. style="
  5416. width: 200px;
  5417. height: 140px;
  5418. margin: 10px 10px 10px 0;
  5419. border-radius: 15px;
  5420. box-shadow: 0 0 6px 1px #dfdada;
  5421. "
  5422. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5423. :key="wIndex"
  5424. >
  5425. <!-- @click="previewImg(w.works)" -->
  5426. <div class="workImg">
  5427. <img
  5428. :src="w.works"
  5429. @click="previewImg(w.works,w)"
  5430. alt
  5431. />
  5432. <div
  5433. class="answerScore"
  5434. v-if="w.score"
  5435. @click.stop="openScore(w)"
  5436. :class="{
  5437. rightW:
  5438. w.userid == userid || tType == 1 || tType == 4,
  5439. }"
  5440. >
  5441. {{ JSON.parse(w.score).wScore }}分
  5442. </div>
  5443. <div
  5444. class="answerScore"
  5445. @click.stop="openScore(w)"
  5446. v-else-if="courseDetail.userid == userid"
  5447. :class="{
  5448. rightW:
  5449. w.userid == userid || tType == 1 || tType == 4,
  5450. }"
  5451. >
  5452. 评分
  5453. </div>
  5454. <img
  5455. class="deleteImg"
  5456. src="../../assets/deleteworks.png"
  5457. v-if="
  5458. w.userid == userid || tType == 1 || tType == 4
  5459. "
  5460. @click.stop="deleteWorks(w.wid)"
  5461. alt
  5462. />
  5463. </div>
  5464. <div class="comment" style="min-width: 200px">
  5465. <div class="worksName">
  5466. <div>{{ w.sName }}</div>
  5467. </div>
  5468. <div class="commentList">
  5469. <div class="commentList">
  5470. <div
  5471. class="commentImg"
  5472. @click="
  5473. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5474. "
  5475. >
  5476. <img
  5477. :src="w.isLikes == true ? likes : noLikes"
  5478. alt=""
  5479. />
  5480. </div>
  5481. <div>{{ w.likesCount }}</div>
  5482. </div>
  5483. <div class="commentList" style="margin-right: 15px">
  5484. <div
  5485. class="commentImg"
  5486. @click="commentOther(w, toolIndex, wIndex)"
  5487. >
  5488. <img
  5489. src="../../assets/icon/comment/comment.png"
  5490. alt=""
  5491. />
  5492. </div>
  5493. <div>{{ w.commentCount }}</div>
  5494. </div>
  5495. </div>
  5496. </div>
  5497. </div>
  5498. </div>
  5499. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5500. 未提交
  5501. </div>
  5502. <div
  5503. class="noWorksS"
  5504. v-if="noWorksS && noWorksS[toolIndex].length"
  5505. >
  5506. <div
  5507. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5508. :key="sIndex"
  5509. class="noWorksName"
  5510. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5511. >
  5512. <el-tooltip effect="dark" :content="s.student" placement="top">
  5513. <span>{{ s.student }}</span>
  5514. </el-tooltip>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. <div
  5519. v-if="
  5520. tType &&
  5521. ((tType == 2 && sIsOpen == true) ||
  5522. tType == 1 ||
  5523. tType == 4) &&
  5524. tool.tool.indexOf(6) != -1
  5525. "
  5526. class="worksBox"
  5527. >
  5528. <div
  5529. class="zuoyeYulan"
  5530. v-if="
  5531. (worksStudent.length &&
  5532. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5533. "
  5534. >
  5535. <div class="worksTop">
  5536. <div>作业预览</div>
  5537. <div
  5538. class="corOpen"
  5539. @click="contract(toolIndex)"
  5540. v-if="
  5541. (isCloseList[toolIndex].isCloseBoolean) &&
  5542. isCloseList[toolIndex].isClose == 0
  5543. "
  5544. >
  5545. 折叠
  5546. </div>
  5547. <div
  5548. class="corOpen"
  5549. @click="contract(toolIndex)"
  5550. v-if="isCloseList[toolIndex].isClose == 1"
  5551. >
  5552. 展开
  5553. </div>
  5554. </div>
  5555. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5556. </div>
  5557. <div
  5558. class="group_workBox"
  5559. v-for="(g, gindex) in courseGroup.group"
  5560. :key="gindex"
  5561. >
  5562. <div class="group_box">
  5563. <div class="group_title">
  5564. <el-tooltip
  5565. class="item"
  5566. effect="light"
  5567. :content="g.name"
  5568. placement="top"
  5569. >
  5570. <div class="group_name">{{ g.name }}</div>
  5571. </el-tooltip>
  5572. </div>
  5573. <div
  5574. class="group_work"
  5575. v-if="
  5576. g.works &&
  5577. g.works.length &&
  5578. g.works[toolIndex].length
  5579. "
  5580. >
  5581. <div
  5582. class="works"
  5583. style="
  5584. width: 200px;
  5585. height: 140px;
  5586. margin: 10px 10px 10px 0;
  5587. border-radius: 15px;
  5588. box-shadow: 0 0 6px 1px #dfdada;
  5589. "
  5590. v-for="(w, wIndex) in g.works[toolIndex]"
  5591. :key="wIndex"
  5592. :class="w.type == 1 ? 'isTypeOne' : ''"
  5593. >
  5594. <div class="workImg">
  5595. <img
  5596. :src="w.works"
  5597. @click="previewImg(w.works,w)"
  5598. alt
  5599. />
  5600. <div
  5601. class="answerScore"
  5602. v-if="w.score"
  5603. @click.stop="openScore(w)"
  5604. :class="{
  5605. rightW:
  5606. w.userid == userid ||
  5607. tType == 1 ||
  5608. tType == 4,
  5609. }"
  5610. >
  5611. {{ JSON.parse(w.score).wScore }}分
  5612. </div>
  5613. <div
  5614. class="answerScore"
  5615. @click.stop="openScore(w)"
  5616. v-else-if="courseDetail.userid == userid"
  5617. :class="{
  5618. rightW:
  5619. w.userid == userid ||
  5620. tType == 1 ||
  5621. tType == 4,
  5622. }"
  5623. >
  5624. 评分
  5625. </div>
  5626. <img
  5627. class="deleteImg"
  5628. src="../../assets/deleteworks.png"
  5629. v-if="
  5630. w.userid == userid || tType == 1 || tType == 4
  5631. "
  5632. @click.stop="deleteWorks(w.wid)"
  5633. alt
  5634. />
  5635. </div>
  5636. <div class="comment" style="min-width: 200px">
  5637. <div class="worksName">
  5638. <div>{{ w.sName }}</div>
  5639. </div>
  5640. <div class="commentList">
  5641. <div class="commentList">
  5642. <div
  5643. class="commentImg"
  5644. @click="
  5645. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5646. "
  5647. >
  5648. <img
  5649. :src="w.isLikes == true ? likes : noLikes"
  5650. alt=""
  5651. />
  5652. </div>
  5653. <div>{{ w.likesCount }}</div>
  5654. </div>
  5655. <div
  5656. class="commentList"
  5657. style="margin-right: 15px"
  5658. >
  5659. <div
  5660. class="commentImg"
  5661. @click="
  5662. commentOther(
  5663. w,
  5664. toolIndex,
  5665. wIndex,
  5666. null,
  5667. g.id
  5668. )
  5669. "
  5670. >
  5671. <img
  5672. src="../../assets/icon/comment/comment.png"
  5673. alt=""
  5674. />
  5675. </div>
  5676. <div>{{ w.commentCount }}</div>
  5677. </div>
  5678. </div>
  5679. </div>
  5680. </div>
  5681. </div>
  5682. <div class="group_work" v-else>暂无提交作业</div>
  5683. </div>
  5684. </div>
  5685. <div
  5686. :id="'tool-' + toolIndex"
  5687. :style="{
  5688. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5689. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5690. }"
  5691. class="worksDetailBox"
  5692. v-if="
  5693. worksStudent.length &&
  5694. worksStudent[toolIndex].length > 0
  5695. "
  5696. >
  5697. <div
  5698. class="works"
  5699. style="
  5700. width: 200px;
  5701. height: 140px;
  5702. margin: 10px 10px 10px 0;
  5703. border-radius: 15px;
  5704. box-shadow: 0 0 6px 1px #dfdada;
  5705. "
  5706. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5707. :key="wIndex"
  5708. >
  5709. <!-- @click="previewImg(w.works)" -->
  5710. <div class="workImg">
  5711. <img
  5712. :src="w.works"
  5713. @click="previewImg(w.works,w)"
  5714. alt
  5715. />
  5716. <div
  5717. class="answerScore"
  5718. v-if="w.score"
  5719. @click.stop="openScore(w)"
  5720. :class="{
  5721. rightW:
  5722. w.userid == userid || tType == 1 || tType == 4,
  5723. }"
  5724. >
  5725. {{ JSON.parse(w.score).wScore }}分
  5726. </div>
  5727. <div
  5728. class="answerScore"
  5729. @click.stop="openScore(w)"
  5730. v-else-if="courseDetail.userid == userid"
  5731. :class="{
  5732. rightW:
  5733. w.userid == userid || tType == 1 || tType == 4,
  5734. }"
  5735. >
  5736. 评分
  5737. </div>
  5738. <img
  5739. class="deleteImg"
  5740. src="../../assets/deleteworks.png"
  5741. v-if="
  5742. w.userid == userid || tType == 1 || tType == 4
  5743. "
  5744. @click.stop="deleteWorks(w.wid)"
  5745. alt
  5746. />
  5747. </div>
  5748. <div class="comment" style="min-width: 200px">
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. <div class="commentList">
  5753. <div class="commentList">
  5754. <div
  5755. class="commentImg"
  5756. @click="
  5757. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5758. "
  5759. >
  5760. <img
  5761. :src="w.isLikes == true ? likes : noLikes"
  5762. alt=""
  5763. />
  5764. </div>
  5765. <div>{{ w.likesCount }}</div>
  5766. </div>
  5767. <div class="commentList" style="margin-right: 15px">
  5768. <div
  5769. class="commentImg"
  5770. @click="commentOther(w, toolIndex, wIndex)"
  5771. >
  5772. <img
  5773. src="../../assets/icon/comment/comment.png"
  5774. alt=""
  5775. />
  5776. </div>
  5777. <div>{{ w.commentCount }}</div>
  5778. </div>
  5779. </div>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5784. 未提交
  5785. </div>
  5786. <div
  5787. class="noWorksS"
  5788. v-if="noWorksS && noWorksS[toolIndex].length"
  5789. >
  5790. <div
  5791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5792. :key="sIndex"
  5793. class="noWorksName"
  5794. >
  5795. <el-tooltip effect="dark" :content="s.student" placement="top">
  5796. <span>{{ s.student }}</span>
  5797. </el-tooltip>
  5798. </div>
  5799. </div>
  5800. </div>
  5801. <div
  5802. v-if="
  5803. tType &&
  5804. ((tType == 2 && sIsOpen == true) ||
  5805. tType == 1 ||
  5806. tType == 4) &&
  5807. tool.tool.indexOf(7) != -1
  5808. "
  5809. class="worksBox"
  5810. >
  5811. <div
  5812. class="zuoyeYulan"
  5813. v-if="
  5814. (worksStudent.length &&
  5815. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5816. "
  5817. >
  5818. <div class="worksTop">
  5819. <div>作业预览</div>
  5820. <div
  5821. class="corOpen"
  5822. @click="contract(toolIndex)"
  5823. v-if="
  5824. (isCloseList[toolIndex].isCloseBoolean) &&
  5825. isCloseList[toolIndex].isClose == 0
  5826. "
  5827. >
  5828. 折叠
  5829. </div>
  5830. <div
  5831. class="corOpen"
  5832. @click="contract(toolIndex)"
  5833. v-if="isCloseList[toolIndex].isClose == 1"
  5834. >
  5835. 展开
  5836. </div>
  5837. </div>
  5838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5839. </div>
  5840. <div
  5841. class="group_workBox"
  5842. v-for="(g, gindex) in courseGroup.group"
  5843. :key="gindex"
  5844. >
  5845. <div class="group_box">
  5846. <div class="group_title">
  5847. <el-tooltip
  5848. class="item"
  5849. effect="light"
  5850. :content="g.name"
  5851. placement="top"
  5852. >
  5853. <div class="group_name">{{ g.name }}</div>
  5854. </el-tooltip>
  5855. </div>
  5856. <div
  5857. class="group_work"
  5858. v-if="
  5859. g.works &&
  5860. g.works.length &&
  5861. g.works[toolIndex].length
  5862. "
  5863. >
  5864. <div
  5865. class="works"
  5866. style="
  5867. width: 200px;
  5868. height: 140px;
  5869. margin: 10px 10px 10px 0;
  5870. border-radius: 15px;
  5871. box-shadow: 0 0 6px 1px #dfdada;
  5872. "
  5873. v-for="(w, wIndex) in g.works[toolIndex]"
  5874. :key="wIndex"
  5875. :class="w.type == 1 ? 'isTypeOne' : ''"
  5876. >
  5877. <div class="workImg">
  5878. <img
  5879. :src="w.works"
  5880. @click="previewImg(w.works,w)"
  5881. alt
  5882. />
  5883. <div
  5884. class="answerScore"
  5885. v-if="w.score"
  5886. @click.stop="openScore(w)"
  5887. :class="{
  5888. rightW:
  5889. w.userid == userid ||
  5890. tType == 1 ||
  5891. tType == 4,
  5892. }"
  5893. >
  5894. {{ JSON.parse(w.score).wScore }}分
  5895. </div>
  5896. <div
  5897. class="answerScore"
  5898. @click.stop="openScore(w)"
  5899. v-else-if="courseDetail.userid == userid"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. 评分
  5908. </div>
  5909. <img
  5910. class="deleteImg"
  5911. src="../../assets/deleteworks.png"
  5912. v-if="
  5913. w.userid == userid || tType == 1 || tType == 4
  5914. "
  5915. @click.stop="deleteWorks(w.wid)"
  5916. alt
  5917. />
  5918. </div>
  5919. <div class="comment" style="min-width: 200px">
  5920. <div class="worksName">
  5921. <div>{{ w.sName }}</div>
  5922. </div>
  5923. <div class="commentList">
  5924. <div class="commentList">
  5925. <div
  5926. class="commentImg"
  5927. @click="
  5928. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5929. "
  5930. >
  5931. <img
  5932. :src="w.isLikes == true ? likes : noLikes"
  5933. alt=""
  5934. />
  5935. </div>
  5936. <div>{{ w.likesCount }}</div>
  5937. </div>
  5938. <div
  5939. class="commentList"
  5940. style="margin-right: 15px"
  5941. >
  5942. <div
  5943. class="commentImg"
  5944. @click="
  5945. commentOther(
  5946. w,
  5947. toolIndex,
  5948. wIndex,
  5949. null,
  5950. g.id
  5951. )
  5952. "
  5953. >
  5954. <img
  5955. src="../../assets/icon/comment/comment.png"
  5956. alt=""
  5957. />
  5958. </div>
  5959. <div>{{ w.commentCount }}</div>
  5960. </div>
  5961. </div>
  5962. </div>
  5963. </div>
  5964. </div>
  5965. <div class="group_work" v-else>暂无提交作业</div>
  5966. </div>
  5967. </div>
  5968. <div
  5969. :id="'tool-' + toolIndex"
  5970. :style="{
  5971. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5972. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5973. }"
  5974. class="worksDetailBox"
  5975. v-if="
  5976. worksStudent.length &&
  5977. worksStudent[toolIndex].length > 0
  5978. "
  5979. >
  5980. <div
  5981. class="works"
  5982. style="
  5983. width: 200px;
  5984. height: 140px;
  5985. margin: 10px 10px 10px 0;
  5986. border-radius: 15px;
  5987. box-shadow: 0 0 6px 1px #dfdada;
  5988. "
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. >
  5992. <!-- @click="previewImg(w.works)" -->
  5993. <div class="workImg">
  5994. <img
  5995. :src="w.works"
  5996. @click="previewImg(w.works,w)"
  5997. alt
  5998. />
  5999. <div
  6000. class="answerScore"
  6001. v-if="w.score"
  6002. @click.stop="openScore(w)"
  6003. :class="{
  6004. rightW:
  6005. w.userid == userid || tType == 1 || tType == 4,
  6006. }"
  6007. >
  6008. {{ JSON.parse(w.score).wScore }}分
  6009. </div>
  6010. <div
  6011. class="answerScore"
  6012. @click.stop="openScore(w)"
  6013. v-else-if="courseDetail.userid == userid"
  6014. :class="{
  6015. rightW:
  6016. w.userid == userid || tType == 1 || tType == 4,
  6017. }"
  6018. >
  6019. 评分
  6020. </div>
  6021. <img
  6022. class="deleteImg"
  6023. src="../../assets/deleteworks.png"
  6024. v-if="
  6025. w.userid == userid || tType == 1 || tType == 4
  6026. "
  6027. @click.stop="deleteWorks(w.wid)"
  6028. alt
  6029. />
  6030. </div>
  6031. <div class="comment" style="min-width: 200px">
  6032. <div class="worksName">
  6033. <div>{{ w.sName }}</div>
  6034. </div>
  6035. <div class="commentList">
  6036. <div class="commentList">
  6037. <div
  6038. class="commentImg"
  6039. @click="
  6040. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6041. "
  6042. >
  6043. <img
  6044. :src="w.isLikes == true ? likes : noLikes"
  6045. alt=""
  6046. />
  6047. </div>
  6048. <div>{{ w.likesCount }}</div>
  6049. </div>
  6050. <div class="commentList" style="margin-right: 15px">
  6051. <div
  6052. class="commentImg"
  6053. @click="commentOther(w, toolIndex, wIndex)"
  6054. >
  6055. <img
  6056. src="../../assets/icon/comment/comment.png"
  6057. alt=""
  6058. />
  6059. </div>
  6060. <div>{{ w.commentCount }}</div>
  6061. </div>
  6062. </div>
  6063. </div>
  6064. </div>
  6065. </div>
  6066. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6067. 未提交
  6068. </div>
  6069. <div
  6070. class="noWorksS"
  6071. v-if="noWorksS && noWorksS[toolIndex].length"
  6072. >
  6073. <div
  6074. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6075. :key="sIndex"
  6076. class="noWorksName"
  6077. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6078. >
  6079. <el-tooltip effect="dark" :content="s.student" placement="top">
  6080. <span>{{ s.student }}</span>
  6081. </el-tooltip>
  6082. </div>
  6083. </div>
  6084. </div>
  6085. <div
  6086. v-if="
  6087. tType &&
  6088. ((tType == 2 && sIsOpen == true) ||
  6089. tType == 1 ||
  6090. tType == 4) &&
  6091. tool.tool.indexOf(26) != -1
  6092. "
  6093. class="worksBox"
  6094. >
  6095. <div
  6096. class="zuoyeYulan"
  6097. v-if="
  6098. worksStudent.length &&
  6099. worksStudent[toolIndex].length > 0
  6100. "
  6101. >
  6102. <div class="worksTop">
  6103. <div>作业预览</div>
  6104. <div
  6105. class="corOpen"
  6106. @click="contract(toolIndex)"
  6107. v-if="
  6108. (isCloseList[toolIndex].isCloseBoolean) &&
  6109. isCloseList[toolIndex].isClose == 0
  6110. "
  6111. >
  6112. 折叠
  6113. </div>
  6114. <div
  6115. class="corOpen"
  6116. @click="contract(toolIndex)"
  6117. v-if="isCloseList[toolIndex].isClose == 1"
  6118. >
  6119. 展开
  6120. </div>
  6121. </div>
  6122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6123. </div>
  6124. <div
  6125. :id="'tool-' + toolIndex"
  6126. :style="{
  6127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6129. }"
  6130. class="worksDetailBox"
  6131. v-if="
  6132. worksStudent.length &&
  6133. worksStudent[toolIndex].length > 0
  6134. "
  6135. >
  6136. <div
  6137. class="works"
  6138. style="width: 240px; height: 140px; overflow: hidden"
  6139. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6140. :key="wIndex"
  6141. :class="w.type == 1 ? 'isTypeOne' : ''"
  6142. >
  6143. <div class="workImg" v-if="w.type == 0">
  6144. <img
  6145. :src="w.works"
  6146. @click="previewImg(w.works,w)"
  6147. alt
  6148. />
  6149. <img
  6150. class="deleteImg"
  6151. src="../../assets/deleteworks.png"
  6152. v-if="
  6153. w.userid == userid || tType == 1 || tType == 4
  6154. "
  6155. @click.stop="deleteWorks(w.wid)"
  6156. alt
  6157. />
  6158. </div>
  6159. <div class="workImg" v-if="w.type == 1">
  6160. <img :src="word" @click="openFile(w.works)" alt />
  6161. <img
  6162. class="deleteImg"
  6163. src="../../assets/deleteworks.png"
  6164. v-if="
  6165. w.userid == userid || tType == 1 || tType == 4
  6166. "
  6167. @click.stop="deleteWorks(w.wid)"
  6168. alt
  6169. />
  6170. </div>
  6171. <div class="worksName">
  6172. <div>{{ w.sName }}</div>
  6173. </div>
  6174. </div>
  6175. </div>
  6176. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6177. 未提交
  6178. </div>
  6179. <div
  6180. class="noWorksS"
  6181. v-if="noWorksS && noWorksS[toolIndex].length"
  6182. >
  6183. <div
  6184. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6185. :key="sIndex"
  6186. class="noWorksName"
  6187. >
  6188. <el-tooltip effect="dark" :content="s.student" placement="top">
  6189. <span>{{ s.student }}</span>
  6190. </el-tooltip>
  6191. </div>
  6192. </div>
  6193. </div>
  6194. <div
  6195. v-if="
  6196. tType &&
  6197. ((tType == 2 && sIsOpen == true) ||
  6198. tType == 1 ||
  6199. tType == 4) &&
  6200. tool.tool.indexOf(40) != -1
  6201. "
  6202. class="worksBox"
  6203. >
  6204. <div
  6205. class="zuoyeYulan"
  6206. v-if="
  6207. worksStudent.length &&
  6208. worksStudent[toolIndex].length > 0
  6209. "
  6210. >
  6211. <div class="worksTop">
  6212. <div>作业预览</div>
  6213. <div
  6214. class="corOpen"
  6215. @click="contract(toolIndex)"
  6216. v-if="
  6217. (isCloseList[toolIndex].isCloseBoolean) &&
  6218. isCloseList[toolIndex].isClose == 0
  6219. "
  6220. >
  6221. 折叠
  6222. </div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="isCloseList[toolIndex].isClose == 1"
  6227. >
  6228. 展开
  6229. </div>
  6230. </div>
  6231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6232. </div>
  6233. <div
  6234. :id="'tool-' + toolIndex"
  6235. :style="{
  6236. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6237. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6238. }"
  6239. class="worksDetailBox"
  6240. v-if="
  6241. worksStudent.length &&
  6242. worksStudent[toolIndex].length > 0
  6243. "
  6244. >
  6245. <div
  6246. class="works"
  6247. style="
  6248. width: 200px;
  6249. height: 140px;
  6250. margin: 10px 10px 10px 0;
  6251. border-radius: 15px;
  6252. box-shadow: 0 0 6px 1px #dfdada;
  6253. "
  6254. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6255. :key="wIndex"
  6256. :class="w.type == 1 ? 'isTypeOne' : ''"
  6257. >
  6258. <div class="workImg">
  6259. <img
  6260. src="../../assets/icon/works/noImg.png"
  6261. @click="openPj(w.works, toolIndex)"
  6262. alt
  6263. />
  6264. <img
  6265. class="deleteImg"
  6266. src="../../assets/deleteworks.png"
  6267. v-if="
  6268. w.userid == userid || tType == 1 || tType == 4
  6269. "
  6270. @click.stop="deleteWorks(w.wid)"
  6271. alt
  6272. />
  6273. </div>
  6274. <div class="comment" style="min-width: 200px">
  6275. <div class="worksName">
  6276. <div>{{ w.sName }}</div>
  6277. </div>
  6278. <div class="commentList">
  6279. <div class="commentList">
  6280. <div
  6281. class="commentImg"
  6282. @click="
  6283. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6284. "
  6285. >
  6286. <img
  6287. :src="w.isLikes == true ? likes : noLikes"
  6288. alt=""
  6289. />
  6290. </div>
  6291. <div>{{ w.likesCount }}</div>
  6292. </div>
  6293. <div class="commentList" style="margin-right: 15px">
  6294. <div
  6295. class="commentImg"
  6296. @click="commentOther(w, toolIndex, wIndex)"
  6297. >
  6298. <img
  6299. src="../../assets/icon/comment/comment.png"
  6300. alt=""
  6301. />
  6302. </div>
  6303. <div>{{ w.commentCount }}</div>
  6304. </div>
  6305. </div>
  6306. </div>
  6307. </div>
  6308. </div>
  6309. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6310. 未提交
  6311. </div>
  6312. <div
  6313. class="noWorksS"
  6314. v-if="noWorksS && noWorksS[toolIndex].length"
  6315. >
  6316. <div
  6317. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6318. :key="sIndex"
  6319. class="noWorksName"
  6320. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6321. >
  6322. <el-tooltip effect="dark" :content="s.student" placement="top">
  6323. <span>{{ s.student }}</span>
  6324. </el-tooltip>
  6325. </div>
  6326. </div>
  6327. </div>
  6328. <div
  6329. v-if="
  6330. tType &&
  6331. tType == 2 &&
  6332. !sIsOpen &&
  6333. tool.tool.indexOf(40) != -1
  6334. "
  6335. class="worksBox"
  6336. >
  6337. <div
  6338. class="zuoyeYulan"
  6339. v-if="workStudent[toolIndex].length > 0"
  6340. >
  6341. <span class="worksTitle">作业预览</span>
  6342. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6343. </div>
  6344. <div
  6345. class="worksDetailBox"
  6346. v-if="workStudent[toolIndex].length > 0"
  6347. >
  6348. <div
  6349. class="works"
  6350. style="
  6351. width: 200px;
  6352. height: 140px;
  6353. margin: 10px 10px 10px 0;
  6354. "
  6355. v-for="(w, wIndex) in workStudent[toolIndex]"
  6356. :key="wIndex"
  6357. >
  6358. <div class="workImg">
  6359. <img
  6360. src="../../assets/icon/works/noImg.png"
  6361. @click="openPj(w.works, toolIndex)"
  6362. alt
  6363. />
  6364. <img
  6365. class="deleteImg"
  6366. src="../../assets/deleteworks.png"
  6367. v-if="
  6368. w.userid == userid || tType == 1 || tType == 4
  6369. "
  6370. @click.stop="deleteWorks(w.wid)"
  6371. alt
  6372. />
  6373. </div>
  6374. <div class="worksName">
  6375. <div>{{ w.sName }}</div>
  6376. </div>
  6377. </div>
  6378. </div>
  6379. </div>
  6380. <div
  6381. v-if="
  6382. tType &&
  6383. ((tType == 2 && sIsOpen == true) ||
  6384. tType == 1 ||
  6385. tType == 4) &&
  6386. tool.tool.indexOf(41) != -1
  6387. "
  6388. >
  6389. <AnswerData2
  6390. v-if="
  6391. worksStudent.length &&
  6392. worksStudent[toolIndex].length > 0
  6393. "
  6394. :problemJson="tool.selectJson.answer"
  6395. :people="worksStudent[toolIndex]"
  6396. ></AnswerData2>
  6397. </div>
  6398. <div
  6399. v-if="
  6400. tType &&
  6401. ((tType == 2 && sIsOpen == true) ||
  6402. tType == 1 ||
  6403. tType == 4) &&
  6404. tool.tool.indexOf(41) != -1
  6405. "
  6406. class="worksBox"
  6407. >
  6408. <div
  6409. class="zuoyeYulan"
  6410. v-if="
  6411. worksStudent.length &&
  6412. worksStudent[toolIndex].length > 0
  6413. "
  6414. >
  6415. <div class="worksTop">
  6416. <div>作业预览</div>
  6417. <div
  6418. class="corOpen"
  6419. @click="contract(toolIndex)"
  6420. v-if="
  6421. (isCloseList[toolIndex].isCloseBoolean) &&
  6422. isCloseList[toolIndex].isClose == 0
  6423. "
  6424. >
  6425. 折叠
  6426. </div>
  6427. <div
  6428. class="corOpen"
  6429. @click="contract(toolIndex)"
  6430. v-if="isCloseList[toolIndex].isClose == 1"
  6431. >
  6432. 展开
  6433. </div>
  6434. </div>
  6435. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6436. </div>
  6437. <div
  6438. :id="'tool-' + toolIndex"
  6439. :style="{
  6440. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6441. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6442. }"
  6443. class="worksDetailBox"
  6444. v-if="
  6445. worksStudent.length &&
  6446. worksStudent[toolIndex].length > 0
  6447. "
  6448. >
  6449. <div
  6450. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6451. :key="wIndex"
  6452. class="isWorksName2"
  6453. @click="openXz(w, toolIndex)"
  6454. >
  6455. {{ w.sName }}
  6456. <img
  6457. class="deleteImg deleteImg2"
  6458. src="../../assets/deleteworks.png"
  6459. v-if="w.userid == userid || tType == 1 || tType == 4"
  6460. @click.stop="deleteWorks(w.wid)"
  6461. alt
  6462. />
  6463. </div>
  6464. <!-- <div
  6465. class="works"
  6466. style="
  6467. width: 200px;
  6468. height: 140px;
  6469. margin: 10px 10px 10px 0;
  6470. border-radius: 15px;
  6471. box-shadow: 0 0 6px 1px #dfdada;
  6472. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6473. :class="w.type == 5 ? 'isTypeOne' : ''">
  6474. <div class="workImg">
  6475. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6476. </div>
  6477. <div class="worksName">
  6478. <div>{{ w.sName }}</div>
  6479. </div>
  6480. </div> -->
  6481. </div>
  6482. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6483. 未提交
  6484. </div>
  6485. <div
  6486. class="noWorksS"
  6487. v-if="noWorksS && noWorksS[toolIndex].length"
  6488. >
  6489. <div
  6490. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6491. :key="sIndex"
  6492. class="noWorksName"
  6493. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6494. >
  6495. <el-tooltip effect="dark" :content="s.student" placement="top">
  6496. <span>{{ s.student }}</span>
  6497. </el-tooltip>
  6498. </div>
  6499. </div>
  6500. </div>
  6501. <div
  6502. v-if="
  6503. tType &&
  6504. tType == 2 &&
  6505. !sIsOpen &&
  6506. tool.tool.indexOf(41) != -1
  6507. "
  6508. class="worksBox"
  6509. >
  6510. <div
  6511. class="zuoyeYulan"
  6512. v-if="workStudent[toolIndex].length > 0"
  6513. >
  6514. <span class="worksTitle">作业预览</span>
  6515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6516. </div>
  6517. <div
  6518. class="worksDetailBox"
  6519. v-if="workStudent[toolIndex].length > 0"
  6520. >
  6521. <div
  6522. class="works"
  6523. style="
  6524. width: 200px;
  6525. height: 140px;
  6526. margin: 10px 10px 10px 0;
  6527. "
  6528. v-for="(w, wIndex) in workStudent[toolIndex]"
  6529. :key="wIndex"
  6530. >
  6531. <div class="workImg">
  6532. <img
  6533. src="../../assets/icon/works/noImg.png"
  6534. @click="openXz(w, toolIndex)"
  6535. alt
  6536. />
  6537. <img
  6538. class="deleteImg"
  6539. src="../../assets/deleteworks.png"
  6540. v-if="
  6541. w.userid == userid || tType == 1 || tType == 4
  6542. "
  6543. @click.stop="deleteWorks(w.wid)"
  6544. alt
  6545. />
  6546. </div>
  6547. <div class="worksName">
  6548. <div>{{ w.sName }}</div>
  6549. </div>
  6550. </div>
  6551. </div>
  6552. </div>
  6553. <div v-if="false" class="xuan_right_box">
  6554. <div
  6555. class="tool_right_box"
  6556. v-for="(item, index) in tool.sentenceList"
  6557. :key="index"
  6558. >
  6559. <div>
  6560. <span
  6561. style="word-break: break-all; white-space: normal"
  6562. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6563. >
  6564. </div>
  6565. <div class="right_box_xuan">
  6566. <span>正确率</span>
  6567. <span>{{
  6568. (checkJson[toolIndex][index].right
  6569. ? checkJson[toolIndex][index].right
  6570. : 0) + "%"
  6571. }}</span>
  6572. </div>
  6573. <div class="right_box_xuan">
  6574. <span>答对人数</span>
  6575. <span>{{
  6576. checkJson[toolIndex][index].rightPerson.length
  6577. }}</span>
  6578. </div>
  6579. </div>
  6580. </div>
  6581. <div
  6582. v-if="
  6583. tType &&
  6584. ((tType == 2 && sIsOpen == true) ||
  6585. tType == 1 ||
  6586. tType == 4) &&
  6587. tool.tool.indexOf(47) != -1
  6588. "
  6589. >
  6590. <AnswerData
  6591. v-if="
  6592. checkJson[toolIndex].length &&
  6593. (tool.sentenceList || tool.sentenceList.length > 0)
  6594. "
  6595. :people="checkJson[toolIndex]"
  6596. ></AnswerData>
  6597. </div>
  6598. <div
  6599. v-if="
  6600. tType &&
  6601. tType == 2 &&
  6602. !sIsOpen &&
  6603. tool.tool.indexOf(47) != -1
  6604. "
  6605. class="worksBox"
  6606. >
  6607. <div
  6608. class="zuoyeYulan"
  6609. v-if="workStudent[toolIndex].length > 0"
  6610. >
  6611. <span class="worksTitle">作业预览</span>
  6612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6613. </div>
  6614. <div
  6615. class="worksDetailBox"
  6616. v-if="workStudent[toolIndex].length > 0"
  6617. >
  6618. <div
  6619. class="works"
  6620. style="
  6621. width: 200px;
  6622. height: 140px;
  6623. margin: 10px 10px 10px 0;
  6624. "
  6625. v-for="(w, wIndex) in workStudent[toolIndex]"
  6626. :key="wIndex"
  6627. >
  6628. <!-- @click="openXz(w, toolIndex)" -->
  6629. <div class="workImg" @click="openSen(w, toolIndex)">
  6630. <img src="../../assets/icon/works/noImg.png" alt />
  6631. <img
  6632. class="deleteImg"
  6633. src="../../assets/deleteworks.png"
  6634. v-if="
  6635. w.userid == userid || tType == 1 || tType == 4
  6636. "
  6637. @click.stop="deleteWorks(w.wid)"
  6638. alt
  6639. />
  6640. </div>
  6641. <div class="worksName">
  6642. <div>
  6643. {{ w.sName }}
  6644. </div>
  6645. </div>
  6646. </div>
  6647. </div>
  6648. </div>
  6649. <div
  6650. v-if="
  6651. tType &&
  6652. ((tType == 2 && sIsOpen == true) ||
  6653. tType == 1 ||
  6654. tType == 4) &&
  6655. tool.tool.indexOf(47) != -1
  6656. "
  6657. class="worksBox"
  6658. >
  6659. <div
  6660. class="zuoyeYulan"
  6661. v-if="
  6662. worksStudent.length &&
  6663. worksStudent[toolIndex].length > 0
  6664. "
  6665. >
  6666. <div class="worksTop">
  6667. <div>作业预览</div>
  6668. <div
  6669. class="corOpen"
  6670. @click="contract(toolIndex)"
  6671. v-if="
  6672. (isCloseList[toolIndex].isCloseBoolean) &&
  6673. isCloseList[toolIndex].isClose == 0
  6674. "
  6675. >
  6676. 折叠
  6677. </div>
  6678. <div
  6679. class="corOpen"
  6680. @click="contract(toolIndex)"
  6681. v-if="isCloseList[toolIndex].isClose == 1"
  6682. >
  6683. 展开
  6684. </div>
  6685. </div>
  6686. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6687. </div>
  6688. <div
  6689. :id="'tool-' + toolIndex"
  6690. :style="{
  6691. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6692. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6693. }"
  6694. class="worksDetailBox"
  6695. v-if="
  6696. worksStudent.length &&
  6697. worksStudent[toolIndex].length > 0
  6698. "
  6699. >
  6700. <!-- @click="openXz(w, toolIndex)" -->
  6701. <div
  6702. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6703. :key="wIndex"
  6704. class="isWorksName2"
  6705. @click="openSen(w, toolIndex)"
  6706. >
  6707. {{ w.sName }}
  6708. <img
  6709. class="deleteImg deleteImg2"
  6710. src="../../assets/deleteworks.png"
  6711. v-if="w.userid == userid || tType == 1 || tType == 4"
  6712. @click.stop="deleteWorks(w.wid)"
  6713. alt
  6714. />
  6715. </div>
  6716. </div>
  6717. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6718. 未提交
  6719. </div>
  6720. <div
  6721. class="noWorksS"
  6722. v-if="noWorksS && noWorksS[toolIndex].length"
  6723. >
  6724. <div
  6725. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6726. :key="sIndex"
  6727. class="noWorksName"
  6728. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6729. >
  6730. <el-tooltip effect="dark" :content="s.student" placement="top">
  6731. <span>{{ s.student }}</span>
  6732. </el-tooltip>
  6733. </div>
  6734. </div>
  6735. </div>
  6736. <div
  6737. v-if="
  6738. tType &&
  6739. ((tType == 2 && sIsOpen == true) ||
  6740. tType == 1 ||
  6741. tType == 4) &&
  6742. tool.tool.indexOf(48) != -1
  6743. "
  6744. class="worksBox"
  6745. >
  6746. <div
  6747. class="zuoyeYulan"
  6748. v-if="
  6749. worksStudent.length &&
  6750. worksStudent[toolIndex].length > 0
  6751. "
  6752. >
  6753. <div class="worksTop">
  6754. <div>作业预览</div>
  6755. <div
  6756. class="corOpen"
  6757. @click="contract(toolIndex)"
  6758. v-if="
  6759. (isCloseList[toolIndex].isCloseBoolean) &&
  6760. isCloseList[toolIndex].isClose == 0
  6761. "
  6762. >
  6763. 折叠
  6764. </div>
  6765. <div
  6766. class="corOpen"
  6767. @click="contract(toolIndex)"
  6768. v-if="isCloseList[toolIndex].isClose == 1"
  6769. >
  6770. 展开
  6771. </div>
  6772. </div>
  6773. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6774. </div>
  6775. <div
  6776. :id="'tool-' + toolIndex"
  6777. :style="{
  6778. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6779. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6780. }"
  6781. class="worksDetailBox"
  6782. v-if="
  6783. worksStudent.length &&
  6784. worksStudent[toolIndex].length > 0
  6785. "
  6786. >
  6787. <div
  6788. class="works"
  6789. style="
  6790. width: 200px;
  6791. height: 140px;
  6792. margin: 10px 10px 10px 0;
  6793. border-radius: 15px;
  6794. box-shadow: 0 0 6px 1px #dfdada;
  6795. "
  6796. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6797. :key="wIndex"
  6798. :class="w.type == 1 ? 'isTypeOne' : ''"
  6799. >
  6800. <div class="workImg">
  6801. <img :src="word" @click="openTable(w)" alt />
  6802. <!-- @click="openFile(w.works)" -->
  6803. <div
  6804. class="answerScore"
  6805. v-if="w.score"
  6806. @click.stop="openScore(w)"
  6807. :class="{
  6808. rightW:
  6809. w.userid == userid ||
  6810. tType == 1 ||
  6811. tType == 4 ||
  6812. w.ateacher == userid,
  6813. }"
  6814. >
  6815. {{ JSON.parse(w.score).wScore }}分
  6816. </div>
  6817. <div
  6818. class="answerScore"
  6819. @click.stop="openScore(w)"
  6820. v-else-if="courseDetail.userid == userid"
  6821. :class="{
  6822. rightW:
  6823. w.userid == userid ||
  6824. tType == 1 ||
  6825. tType == 4 ||
  6826. w.ateacher == userid,
  6827. }"
  6828. >
  6829. 评分
  6830. </div>
  6831. <img
  6832. class="deleteImg"
  6833. src="../../assets/deleteworks.png"
  6834. v-if="
  6835. w.userid == userid || tType == 1 || tType == 4
  6836. "
  6837. @click.stop="deleteWorks(w.wid)"
  6838. alt
  6839. />
  6840. </div>
  6841. <div class="comment" style="min-width: 200px">
  6842. <div class="worksName">
  6843. <div>{{ w.sName }}</div>
  6844. </div>
  6845. <div class="commentList">
  6846. <div class="commentList">
  6847. <div
  6848. class="commentImg"
  6849. @click="
  6850. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6851. "
  6852. >
  6853. <img
  6854. :src="w.isLikes == true ? likes : noLikes"
  6855. alt=""
  6856. />
  6857. </div>
  6858. <div>{{ w.likesCount }}</div>
  6859. </div>
  6860. <div class="commentList" style="margin-right: 15px">
  6861. <div
  6862. class="commentImg"
  6863. @click="commentOther(w, toolIndex, wIndex)"
  6864. >
  6865. <img
  6866. src="../../assets/icon/comment/comment.png"
  6867. alt=""
  6868. />
  6869. </div>
  6870. <div>{{ w.commentCount }}</div>
  6871. </div>
  6872. </div>
  6873. </div>
  6874. </div>
  6875. </div>
  6876. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6877. 未提交
  6878. </div>
  6879. <div
  6880. class="noWorksS"
  6881. v-if="noWorksS && noWorksS[toolIndex].length"
  6882. >
  6883. <div
  6884. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6885. :key="sIndex"
  6886. class="noWorksName"
  6887. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6888. >
  6889. <el-tooltip effect="dark" :content="s.student" placement="top">
  6890. <span>{{ s.student }}</span>
  6891. </el-tooltip>
  6892. </div>
  6893. </div>
  6894. </div>
  6895. <div
  6896. v-if="
  6897. tType &&
  6898. tType == 2 &&
  6899. !sIsOpen &&
  6900. tool.tool.indexOf(48) != -1
  6901. "
  6902. class="worksBox"
  6903. >
  6904. <div
  6905. class="zuoyeYulan"
  6906. v-if="workStudent[toolIndex].length > 0"
  6907. >
  6908. <span class="worksTitle">作业预览</span>
  6909. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6910. </div>
  6911. <div
  6912. class="worksDetailBox"
  6913. v-if="workStudent[toolIndex].length > 0"
  6914. >
  6915. <div
  6916. class="works"
  6917. style="
  6918. width: 200px;
  6919. height: 140px;
  6920. margin: 10px 10px 10px 0;
  6921. box-shadow: 0 0 6px 1px #dfdada;
  6922. "
  6923. v-for="(w, wIndex) in workStudent[toolIndex]"
  6924. :key="wIndex"
  6925. >
  6926. <div class="workImg">
  6927. <img :src="word" @click="openTable(w)" alt />
  6928. <div
  6929. class="answerScore"
  6930. v-if="w.score"
  6931. @click.stop="openScore(w)"
  6932. :class="{
  6933. rightW:
  6934. w.userid == userid || tType == 1 || tType == 4,
  6935. }"
  6936. >
  6937. {{ JSON.parse(w.score).wScore }}分
  6938. </div>
  6939. <div
  6940. class="answerScore"
  6941. @click.stop="openScore(w)"
  6942. v-else-if="courseDetail.userid == userid"
  6943. :class="{
  6944. rightW:
  6945. w.userid == userid || tType == 1 || tType == 4,
  6946. }"
  6947. >
  6948. 评分
  6949. </div>
  6950. <img
  6951. class="deleteImg"
  6952. src="../../assets/deleteworks.png"
  6953. v-if="
  6954. w.userid == userid || tType == 1 || tType == 4
  6955. "
  6956. @click.stop="deleteWorks(w.wid)"
  6957. alt
  6958. />
  6959. </div>
  6960. <div class="worksName">
  6961. <div>{{ w.sName }}</div>
  6962. </div>
  6963. </div>
  6964. </div>
  6965. </div>
  6966. <div
  6967. v-if="
  6968. tType &&
  6969. ((tType == 2 && sIsOpen == true) ||
  6970. tType == 1 ||
  6971. tType == 4) &&
  6972. tool.tool.indexOf(52) != -1
  6973. "
  6974. class="worksBox"
  6975. >
  6976. <div
  6977. class="zuoyeYulan"
  6978. v-if="
  6979. worksStudent.length &&
  6980. worksStudent[toolIndex].length > 0
  6981. "
  6982. >
  6983. <div class="worksTop">
  6984. <div>作业预览</div>
  6985. <div
  6986. class="corOpen"
  6987. @click="contract(toolIndex)"
  6988. v-if="
  6989. (isCloseList[toolIndex].isCloseBoolean) &&
  6990. isCloseList[toolIndex].isClose == 0
  6991. "
  6992. >
  6993. 折叠
  6994. </div>
  6995. <div
  6996. class="corOpen"
  6997. @click="contract(toolIndex)"
  6998. v-if="isCloseList[toolIndex].isClose == 1"
  6999. >
  7000. 展开
  7001. </div>
  7002. </div>
  7003. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7004. </div>
  7005. <div
  7006. :id="'tool-' + toolIndex"
  7007. :style="{
  7008. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7009. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7010. }"
  7011. class="worksDetailBox"
  7012. v-if="
  7013. worksStudent.length &&
  7014. worksStudent[toolIndex].length > 0
  7015. "
  7016. >
  7017. <div
  7018. class="works"
  7019. style="
  7020. width: 200px;
  7021. height: 140px;
  7022. margin: 10px 10px 10px 0;
  7023. border-radius: 15px;
  7024. box-shadow: 0 0 6px 1px #dfdada;
  7025. "
  7026. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7027. :key="wIndex"
  7028. :class="w.type == 1 ? 'isTypeOne' : ''"
  7029. >
  7030. <div class="workImg">
  7031. <img :src="word" @click="openWord(w)" alt />
  7032. <!-- @click="openFile(w.works)" -->
  7033. <div
  7034. class="answerScore"
  7035. v-if="w.score"
  7036. @click.stop="openScore(w)"
  7037. :class="{
  7038. rightW:
  7039. w.userid == userid ||
  7040. tType == 1 ||
  7041. tType == 4 ||
  7042. w.ateacher == userid,
  7043. }"
  7044. >
  7045. {{ JSON.parse(w.score).wScore }}分
  7046. </div>
  7047. <div
  7048. class="answerScore"
  7049. @click.stop="openScore(w)"
  7050. v-else-if="courseDetail.userid == userid"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid ||
  7054. tType == 1 ||
  7055. tType == 4 ||
  7056. w.ateacher == userid,
  7057. }"
  7058. >
  7059. 评分
  7060. </div>
  7061. <img
  7062. class="deleteImg"
  7063. src="../../assets/deleteworks.png"
  7064. v-if="
  7065. w.userid == userid || tType == 1 || tType == 4
  7066. "
  7067. @click.stop="deleteWorks(w.wid)"
  7068. alt
  7069. />
  7070. </div>
  7071. <div class="comment" style="min-width: 200px">
  7072. <div class="worksName">
  7073. <div>{{ w.sName }}</div>
  7074. </div>
  7075. <div class="commentList">
  7076. <div class="commentList">
  7077. <div
  7078. class="commentImg"
  7079. @click="
  7080. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7081. "
  7082. >
  7083. <img
  7084. :src="w.isLikes == true ? likes : noLikes"
  7085. alt=""
  7086. />
  7087. </div>
  7088. <div>{{ w.likesCount }}</div>
  7089. </div>
  7090. <div class="commentList" style="margin-right: 15px">
  7091. <div
  7092. class="commentImg"
  7093. @click="commentOther(w, toolIndex, wIndex)"
  7094. >
  7095. <img
  7096. src="../../assets/icon/comment/comment.png"
  7097. alt=""
  7098. />
  7099. </div>
  7100. <div>{{ w.commentCount }}</div>
  7101. </div>
  7102. </div>
  7103. </div>
  7104. </div>
  7105. </div>
  7106. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7107. 未提交
  7108. </div>
  7109. <div
  7110. class="noWorksS"
  7111. v-if="noWorksS && noWorksS[toolIndex].length"
  7112. >
  7113. <div
  7114. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7115. :key="sIndex"
  7116. class="noWorksName"
  7117. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7118. >
  7119. <el-tooltip effect="dark" :content="s.student" placement="top">
  7120. <span>{{ s.student }}</span>
  7121. </el-tooltip>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. <div
  7126. v-if="
  7127. tType &&
  7128. tType == 2 &&
  7129. !sIsOpen &&
  7130. tool.tool.indexOf(52) != -1
  7131. "
  7132. class="worksBox"
  7133. >
  7134. <div
  7135. class="zuoyeYulan"
  7136. v-if="workStudent[toolIndex].length > 0"
  7137. >
  7138. <span class="worksTitle">作业预览</span>
  7139. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7140. </div>
  7141. <div
  7142. class="worksDetailBox"
  7143. v-if="workStudent[toolIndex].length > 0"
  7144. >
  7145. <div
  7146. class="works"
  7147. style="
  7148. width: 200px;
  7149. height: 140px;
  7150. margin: 10px 10px 10px 0;
  7151. box-shadow: 0 0 6px 1px #dfdada;
  7152. "
  7153. v-for="(w, wIndex) in workStudent[toolIndex]"
  7154. :key="wIndex"
  7155. >
  7156. <div class="workImg">
  7157. <img :src="word" @click="openWord(w)" alt />
  7158. <div
  7159. class="answerScore"
  7160. v-if="w.score"
  7161. @click.stop="openScore(w)"
  7162. :class="{
  7163. rightW:
  7164. w.userid == userid || tType == 1 || tType == 4,
  7165. }"
  7166. >
  7167. {{ JSON.parse(w.score).wScore }}分
  7168. </div>
  7169. <div
  7170. class="answerScore"
  7171. @click.stop="openScore(w)"
  7172. v-else-if="courseDetail.userid == userid"
  7173. :class="{
  7174. rightW:
  7175. w.userid == userid || tType == 1 || tType == 4,
  7176. }"
  7177. >
  7178. 评分
  7179. </div>
  7180. <img
  7181. class="deleteImg"
  7182. src="../../assets/deleteworks.png"
  7183. v-if="
  7184. w.userid == userid || tType == 1 || tType == 4
  7185. "
  7186. @click.stop="deleteWorks(w.wid)"
  7187. alt
  7188. />
  7189. </div>
  7190. <div class="worksName">
  7191. <div>{{ w.sName }}</div>
  7192. </div>
  7193. </div>
  7194. </div>
  7195. </div>
  7196. <div
  7197. v-if="tool.tool.indexOf(49) != -1"
  7198. class="xuan_right_box"
  7199. style="margin: 0 15px 0 25px; width: 93%"
  7200. >
  7201. <div
  7202. v-if="courseDetail.userid == userid"
  7203. style="
  7204. display: flex;
  7205. justify-content: flex-end;
  7206. margin-right: 10px;
  7207. "
  7208. >
  7209. <el-button
  7210. type="primary"
  7211. size="small"
  7212. @click="addTools(49, toolIndex, taskCount)"
  7213. >分组设置</el-button
  7214. >
  7215. </div>
  7216. <div
  7217. v-if="groupStudentUid[toolIndex]"
  7218. class="group_staic_box"
  7219. >
  7220. <div
  7221. v-for="(gp, gd) in tool.groupJson.group"
  7222. :key="gd"
  7223. class="group_staic"
  7224. >
  7225. <span> {{ gp.name }}</span>
  7226. <span>
  7227. 目前人数{{
  7228. groupStudentUid[toolIndex][gd].length
  7229. }}人</span
  7230. >
  7231. </div>
  7232. </div>
  7233. </div>
  7234. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7235. <div
  7236. class="zuoyeYulan"
  7237. v-if="
  7238. worksStudent.length &&
  7239. worksStudent[toolIndex].length > 0
  7240. "
  7241. >
  7242. <span class="worksTitle">作业预览</span>
  7243. </div>
  7244. <div>
  7245. <div
  7246. class="group_workBox"
  7247. v-for="(g, gindex) in tool.groupJson.group"
  7248. :key="gindex"
  7249. >
  7250. <div
  7251. class="group_box"
  7252. v-if="
  7253. groupStudentUid[toolIndex] &&
  7254. worksStudent[toolIndex] &&
  7255. (worksStudent[toolIndex][gindex].length ||
  7256. groupStudentUid[toolIndex][gindex].indexOf(
  7257. userid
  7258. ) != -1)
  7259. "
  7260. >
  7261. <div class="group_title">
  7262. <el-tooltip
  7263. class="item"
  7264. effect="light"
  7265. :content="g.name"
  7266. placement="top"
  7267. >
  7268. <div class="group_name">{{ g.name }}</div>
  7269. </el-tooltip>
  7270. <el-button
  7271. type="primary"
  7272. v-if="
  7273. groupStudentUid[toolIndex][gindex].indexOf(
  7274. userid
  7275. ) != -1
  7276. "
  7277. @click="groupUpload(toolIndex, taskCount, gindex)"
  7278. >上传作业</el-button
  7279. >
  7280. </div>
  7281. <div class="group_work">
  7282. <div
  7283. class="works"
  7284. style="
  7285. width: 200px;
  7286. height: 140px;
  7287. margin: 10px 10px 10px 0;
  7288. border-radius: 15px;
  7289. box-shadow: 0 0 6px 1px #dfdada;
  7290. "
  7291. v-for="(w, wIndex) in worksStudent[toolIndex][
  7292. gindex
  7293. ]"
  7294. :key="wIndex"
  7295. :class="w.type == 1 ? 'isTypeOne' : ''"
  7296. >
  7297. <div class="workImg" v-if="w.type == 0">
  7298. <img
  7299. :src="w.works"
  7300. @click="previewImg(w.works,w)"
  7301. alt
  7302. />
  7303. <div
  7304. class="answerScore"
  7305. v-if="w.score"
  7306. @click.stop="openScore(w)"
  7307. :class="{
  7308. rightW:
  7309. w.userid == userid ||
  7310. tType == 1 ||
  7311. tType == 4 ||
  7312. w.ateacher == userid,
  7313. }"
  7314. >
  7315. {{ JSON.parse(w.score).wScore }}分
  7316. </div>
  7317. <div
  7318. class="answerScore"
  7319. @click.stop="openScore(w)"
  7320. v-else-if="courseDetail.userid == userid"
  7321. :class="{
  7322. rightW:
  7323. w.userid == userid ||
  7324. tType == 1 ||
  7325. tType == 4 ||
  7326. w.ateacher == userid,
  7327. }"
  7328. >
  7329. 评分
  7330. </div>
  7331. <img
  7332. class="deleteImg"
  7333. src="../../assets/deleteworks.png"
  7334. v-if="
  7335. w.userid == userid ||
  7336. tType == 1 ||
  7337. tType == 4
  7338. "
  7339. @click.stop="deleteWorks(w.wid)"
  7340. alt
  7341. />
  7342. </div>
  7343. <div class="workImg" v-if="w.type == 1">
  7344. <img
  7345. :src="word"
  7346. @click="openFile(w.works)"
  7347. alt
  7348. />
  7349. <!-- @click="openFile(w.works)" -->
  7350. <div
  7351. class="answerScore"
  7352. v-if="w.score"
  7353. @click.stop="openScore(w)"
  7354. :class="{
  7355. rightW:
  7356. w.userid == userid ||
  7357. tType == 1 ||
  7358. tType == 4 ||
  7359. w.ateacher == userid,
  7360. }"
  7361. >
  7362. {{ JSON.parse(w.score).wScore }}分
  7363. </div>
  7364. <div
  7365. class="answerScore"
  7366. @click.stop="openScore(w)"
  7367. v-else-if="courseDetail.userid == userid"
  7368. :class="{
  7369. rightW:
  7370. w.userid == userid ||
  7371. tType == 1 ||
  7372. tType == 4 ||
  7373. w.ateacher == userid,
  7374. }"
  7375. >
  7376. 评分
  7377. </div>
  7378. <img
  7379. class="deleteImg"
  7380. src="../../assets/deleteworks.png"
  7381. v-if="
  7382. w.userid == userid ||
  7383. tType == 1 ||
  7384. tType == 4
  7385. "
  7386. @click.stop="deleteWorks(w.wid)"
  7387. alt
  7388. />
  7389. </div>
  7390. <div class="workImg" v-if="w.type == 3">
  7391. <img
  7392. style="cursor: pointer"
  7393. :src="video"
  7394. @click="openVideo(w)"
  7395. alt
  7396. />
  7397. <!-- @click="openVideo(w.works)" -->
  7398. <div
  7399. class="answerScore"
  7400. v-if="w.score"
  7401. @click.stop="openScore(w)"
  7402. :class="{
  7403. rightW:
  7404. w.userid == userid ||
  7405. tType == 1 ||
  7406. tType == 4 ||
  7407. w.ateacher == userid,
  7408. }"
  7409. >
  7410. {{ JSON.parse(w.score).wScore }}分
  7411. </div>
  7412. <div
  7413. class="answerScore"
  7414. @click.stop="openScore(w)"
  7415. v-else-if="courseDetail.userid == userid"
  7416. :class="{
  7417. rightW:
  7418. w.userid == userid ||
  7419. tType == 1 ||
  7420. tType == 4 ||
  7421. w.ateacher == userid,
  7422. }"
  7423. >
  7424. 评分
  7425. </div>
  7426. <img
  7427. class="deleteImg"
  7428. src="../../assets/deleteworks.png"
  7429. v-if="
  7430. w.userid == userid ||
  7431. tType == 1 ||
  7432. tType == 4
  7433. "
  7434. @click.stop="deleteWorks(w.wid)"
  7435. alt
  7436. />
  7437. </div>
  7438. <div class="workImg" v-if="w.type == 12">
  7439. <img
  7440. style="cursor: pointer"
  7441. :src="word2"
  7442. @click="downloadFile(w.works)"
  7443. alt
  7444. />
  7445. <!-- @click="openVideo(w.works)" -->
  7446. <div
  7447. class="answerScore"
  7448. v-if="w.score"
  7449. @click.stop="openScore(w)"
  7450. :class="{
  7451. rightW:
  7452. w.userid == userid ||
  7453. tType == 1 ||
  7454. tType == 4 ||
  7455. w.ateacher == userid,
  7456. }"
  7457. >
  7458. {{ JSON.parse(w.score).wScore }}分
  7459. </div>
  7460. <div
  7461. class="answerScore"
  7462. @click.stop="openScore(w)"
  7463. v-else-if="courseDetail.userid == userid"
  7464. :class="{
  7465. rightW:
  7466. w.userid == userid ||
  7467. tType == 1 ||
  7468. tType == 4 ||
  7469. w.ateacher == userid,
  7470. }"
  7471. >
  7472. 评分
  7473. </div>
  7474. <img
  7475. class="deleteImg"
  7476. src="../../assets/deleteworks.png"
  7477. v-if="
  7478. w.userid == userid ||
  7479. tType == 1 ||
  7480. tType == 4
  7481. "
  7482. @click.stop="deleteWorks(w.wid)"
  7483. alt
  7484. />
  7485. </div>
  7486. <div class="comment" style="min-width: 200px">
  7487. <div class="worksName">
  7488. <div>{{ w.sName }}</div>
  7489. </div>
  7490. <div class="commentList">
  7491. <div class="commentList">
  7492. <div
  7493. class="commentImg"
  7494. @click="
  7495. isLikes(
  7496. w.wid,
  7497. userid,
  7498. 1,
  7499. null,
  7500. w.isLikes,
  7501. w.sName
  7502. )
  7503. "
  7504. >
  7505. <img
  7506. :src="
  7507. w.isLikes == true ? likes : noLikes
  7508. "
  7509. alt=""
  7510. />
  7511. </div>
  7512. <div>{{ w.likesCount }}</div>
  7513. </div>
  7514. <div
  7515. class="commentList"
  7516. style="margin-right: 15px"
  7517. >
  7518. <div
  7519. class="commentImg"
  7520. @click="
  7521. commentOther(
  7522. w,
  7523. toolIndex,
  7524. wIndex,
  7525. gindex
  7526. )
  7527. "
  7528. >
  7529. <img
  7530. src="../../assets/icon/comment/comment.png"
  7531. alt=""
  7532. />
  7533. </div>
  7534. <div>{{ w.commentCount }}</div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. </div>
  7539. </div>
  7540. </div>
  7541. </div>
  7542. </div>
  7543. </div>
  7544. </div>
  7545. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7546. 上传文件
  7547. <input
  7548. type="file"
  7549. accept="image/png, image/gif, image/jpeg"
  7550. style="display: none"
  7551. @change="beforeUpload1($event, 2, index)"
  7552. />
  7553. </div>-->
  7554. </div>
  7555. </div>
  7556. <!-- <div
  7557. class="vedioBox"
  7558. style="margin-top: 10px"
  7559. v-if="
  7560. courseDetail.userid == userid ||
  7561. (courseDetail.course_teacher &&
  7562. courseDetail.course_teacher.indexOf(userid) != -1)
  7563. "
  7564. :style="{
  7565. borderRadius:
  7566. !(
  7567. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7568. .toolChoose[0].tool &&
  7569. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7570. .toolChoose[0].tool.length > 0
  7571. ) &&
  7572. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7573. .taskDetail == '' &&
  7574. vChapterData[taskCount].length == 0 &&
  7575. fileC[taskCount].length == 0
  7576. ? '0 0 20px 20px'
  7577. : '20px',
  7578. }"
  7579. >
  7580. <div
  7581. class="queTop"
  7582. @click="isClose = !isClose"
  7583. style="
  7584. padding: 15px 0 15px 37px;
  7585. justify-content: space-between;
  7586. "
  7587. >
  7588. <div class="queTopTitle">新增工具</div>
  7589. <div class="queTopRight">
  7590. <div class="queTopClose" v-if="isClose == 0">
  7591. 展开
  7592. <div class="closeImg">
  7593. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7594. </div>
  7595. </div>
  7596. <div class="queTopClose" v-if="isClose == 1">
  7597. 折叠
  7598. <div class="openImg">
  7599. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7600. </div>
  7601. </div>
  7602. <el-button
  7603. style="margin: 0 30px 0 auto"
  7604. type="primary"
  7605. size="small"
  7606. v-if="isClose == 1 && checktoolArray.length > 0"
  7607. @click.stop="addToolChoose"
  7608. >确定</el-button
  7609. >
  7610. </div>
  7611. </div>
  7612. <div
  7613. class="tool_work_box"
  7614. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7615. >
  7616. <div class="tool_box">
  7617. <div class="tool_type_box">
  7618. <div class="chooseWho">
  7619. <div
  7620. :class="toolType == 0 ? 'isChooseActive' : ''"
  7621. @click="(toolType = 0), $forceUpdate()"
  7622. >
  7623. 互动类
  7624. </div>
  7625. <div
  7626. :class="toolType == 1 ? 'isChooseActive' : ''"
  7627. @click="(toolType = 1), $forceUpdate()"
  7628. >
  7629. 思维类
  7630. </div>
  7631. <div
  7632. :class="toolType == 2 ? 'isChooseActive' : ''"
  7633. @click="(toolType = 2), $forceUpdate()"
  7634. >
  7635. 测评类
  7636. </div>
  7637. <div
  7638. :class="toolType == 3 ? 'isChooseActive' : ''"
  7639. @click="(toolType = 3), $forceUpdate()"
  7640. >
  7641. 编程类
  7642. </div>
  7643. <div
  7644. :class="toolType == 5 ? 'isChooseActive' : ''"
  7645. @click="(toolType = 5), $forceUpdate()"
  7646. >
  7647. 学科类
  7648. </div>
  7649. </div>
  7650. </div>
  7651. <div>
  7652. <div class="toolSort" v-if="toolType == 0">
  7653. <div class="tool">
  7654. <div class="whiteBIcon" @click="addTools2(10)">
  7655. <img
  7656. src="../../assets/icon/thirdToolList/time.png"
  7657. alt
  7658. />
  7659. <div style="margin: 5px 0">倒计时</div>
  7660. </div>
  7661. <div class="check" @click="addTools2(10)">
  7662. <img
  7663. src="../../assets/icon/checkNo.png"
  7664. alt
  7665. v-if="checktoolArray.indexOf(10) == -1"
  7666. />
  7667. <div class="checkDiv" v-else>
  7668. <img src="../../assets/icon/checkedIs.png" alt /><span
  7669. >已选择</span
  7670. >
  7671. </div>
  7672. </div>
  7673. </div>
  7674. <div class="tool">
  7675. <div class="whiteBIcon" @click="addTools2(65)">
  7676. <img
  7677. src="../../assets/icon/firstToolList/pickPeople.png"
  7678. alt
  7679. />
  7680. <div style="margin: 5px 0">挑人</div>
  7681. </div>
  7682. <div class="check" @click="addTools2(65)">
  7683. <img
  7684. src="../../assets/icon/checkNo.png"
  7685. alt
  7686. v-if="checktoolArray.indexOf(65) == -1"
  7687. />
  7688. <div class="checkDiv" v-else>
  7689. <img src="../../assets/icon/checkedIs.png" alt /><span
  7690. >已选择</span
  7691. >
  7692. </div>
  7693. </div>
  7694. </div>
  7695. </div>
  7696. <div class="toolSort" v-if="toolType == 1">
  7697. <div class="tool">
  7698. <div class="whiteBIcon" @click="addTools2(7)">
  7699. <img
  7700. src="../../assets/icon/secondToolList/mindNetwork.png"
  7701. alt
  7702. />
  7703. <div style="margin: 5px 0">思维网格</div>
  7704. </div>
  7705. <div class="check" @click="addTools2(7)">
  7706. <img
  7707. src="../../assets/icon/checkNo.png"
  7708. alt
  7709. v-if="checktoolArray.indexOf(7) == -1"
  7710. />
  7711. <div class="checkDiv" v-else>
  7712. <img src="../../assets/icon/checkedIs.png" alt /><span
  7713. >已选择</span
  7714. >
  7715. </div>
  7716. </div>
  7717. </div>
  7718. <div class="tool">
  7719. <div class="whiteBIcon" @click="addTools2(1)">
  7720. <img
  7721. src="../../assets/icon/secondToolList/whiteBoard.png"
  7722. alt
  7723. />
  7724. <div style="margin: 5px 0">电子白板</div>
  7725. </div>
  7726. <div class="check" @click="addTools2(1)">
  7727. <img
  7728. src="../../assets/icon/checkNo.png"
  7729. alt
  7730. v-if="checktoolArray.indexOf(1) == -1"
  7731. />
  7732. <div class="checkDiv" v-else>
  7733. <img src="../../assets/icon/checkedIs.png" alt /><span
  7734. >已选择</span
  7735. >
  7736. </div>
  7737. </div>
  7738. </div>
  7739. <div class="tool">
  7740. <div class="whiteBIcon" @click="addTools2(52)">
  7741. <img
  7742. src="../../assets/icon/fourthToolList/text.png"
  7743. alt
  7744. />
  7745. <div style="margin: 5px 0">文档</div>
  7746. </div>
  7747. <div class="check" @click="addTools2(52)">
  7748. <img
  7749. src="../../assets/icon/checkNo.png"
  7750. alt
  7751. v-if="checktoolArray.indexOf(52) == -1"
  7752. />
  7753. <div class="checkDiv" v-else>
  7754. <img src="../../assets/icon/checkedIs.png" alt /><span
  7755. >已选择</span
  7756. >
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="tool">
  7761. <div class="whiteBIcon" @click="addTools2(3)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/mindMapping.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">思维导图</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(3)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(3) == -1"
  7773. />
  7774. <div class="checkDiv" v-else>
  7775. <img src="../../assets/icon/checkedIs.png" alt /><span
  7776. >已选择</span
  7777. >
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="tool">
  7782. <div class="whiteBIcon" @click="addTools2(48)">
  7783. <img
  7784. src="../../assets/icon/fourthToolList/table.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">表格</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(48)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(48) == -1"
  7794. />
  7795. <div class="checkDiv" v-else>
  7796. <img src="../../assets/icon/checkedIs.png" alt /><span
  7797. >已选择</span
  7798. >
  7799. </div>
  7800. </div>
  7801. </div>
  7802. </div>
  7803. <div class="toolSort" v-if="toolType == 6">
  7804. <div v-show="tooC == 49">
  7805. <img
  7806. @click="addTools(tooC, toolIndex, taskCount)"
  7807. src="../../assets/icon/fourthToolList/group.png"
  7808. alt
  7809. />
  7810. <div style="margin: 5px 0">学生分组</div>
  7811. </div>
  7812. </div>
  7813. <div class="toolSort" v-if="toolType == 2">
  7814. <div class="tool">
  7815. <div class="whiteBIcon" @click="addTools2(16)">
  7816. <img
  7817. src="../../assets/icon/thirdToolList/work.png"
  7818. alt
  7819. />
  7820. <div style="margin: 5px 0">作业提交</div>
  7821. </div>
  7822. <div class="check" @click="addTools2(16)">
  7823. <img
  7824. src="../../assets/icon/checkNo.png"
  7825. alt
  7826. v-if="checktoolArray.indexOf(16) == -1"
  7827. />
  7828. <div class="checkDiv" v-else>
  7829. <img src="../../assets/icon/checkedIs.png" alt /><span
  7830. >已选择</span
  7831. >
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <div class="tool">
  7836. <div class="whiteBIcon" @click="addTools2(50)">
  7837. <img
  7838. src="../../assets/icon/thirdToolList/plwork.png"
  7839. alt
  7840. />
  7841. <div style="margin: 5px 0">批量上传</div>
  7842. </div>
  7843. <div class="check" @click="addTools2(50)">
  7844. <img
  7845. src="../../assets/icon/checkNo.png"
  7846. alt
  7847. v-if="checktoolArray.indexOf(50) == -1"
  7848. />
  7849. <div class="checkDiv" v-else>
  7850. <img src="../../assets/icon/checkedIs.png" alt /><span
  7851. >已选择</span
  7852. >
  7853. </div>
  7854. </div>
  7855. </div>
  7856. </div>
  7857. <div class="toolSort" v-if="toolType == 3">
  7858. <div class="tool">
  7859. <div class="whiteBIcon" @click="addTools2(18)">
  7860. <img
  7861. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7862. alt
  7863. />
  7864. <div style="margin: 5px 0">训练平台</div>
  7865. </div>
  7866. <div class="check" @click="addTools2(18)">
  7867. <img
  7868. src="../../assets/icon/checkNo.png"
  7869. alt
  7870. v-if="checktoolArray.indexOf(18) == -1"
  7871. />
  7872. <div class="checkDiv" v-else>
  7873. <img src="../../assets/icon/checkedIs.png" alt /><span
  7874. >已选择</span
  7875. >
  7876. </div>
  7877. </div>
  7878. </div>
  7879. <div class="tool">
  7880. <div class="whiteBIcon" @click="addTools2(21)">
  7881. <img
  7882. src="../../assets/icon/fourthToolList/program.png"
  7883. alt
  7884. />
  7885. <div style="margin: 5px 0">AIoT Blockly</div>
  7886. </div>
  7887. <div class="check" @click="addTools2(21)">
  7888. <img
  7889. src="../../assets/icon/checkNo.png"
  7890. alt
  7891. v-if="checktoolArray.indexOf(21) == -1"
  7892. />
  7893. <div class="checkDiv" v-else>
  7894. <img src="../../assets/icon/checkedIs.png" alt /><span
  7895. >已选择</span
  7896. >
  7897. </div>
  7898. </div>
  7899. </div>
  7900. <div class="tool">
  7901. <div class="whiteBIcon" @click="addTools2(23)">
  7902. <img
  7903. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7904. alt
  7905. />
  7906. <div style="margin: 5px 0">AI Python</div>
  7907. </div>
  7908. <div class="check" @click="addTools2(23)">
  7909. <img
  7910. src="../../assets/icon/checkNo.png"
  7911. alt
  7912. v-if="checktoolArray.indexOf(23) == -1"
  7913. />
  7914. <div class="checkDiv" v-else>
  7915. <img src="../../assets/icon/checkedIs.png" alt /><span
  7916. >已选择</span
  7917. >
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="tool">
  7922. <div class="whiteBIcon" @click="addTools2(24)">
  7923. <img
  7924. src="../../assets/icon/fourthToolList/AIprogram.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">AI Blockly</div>
  7928. </div>
  7929. <div class="check" @click="addTools2(24)">
  7930. <img
  7931. src="../../assets/icon/checkNo.png"
  7932. alt
  7933. v-if="checktoolArray.indexOf(24) == -1"
  7934. />
  7935. <div class="checkDiv" v-else>
  7936. <img src="../../assets/icon/checkedIs.png" alt /><span
  7937. >已选择</span
  7938. >
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="tool">
  7943. <div class="whiteBIcon" @click="addTools2(32)">
  7944. <img
  7945. src="../../assets/icon/thirdToolList/code.png"
  7946. alt
  7947. />
  7948. <div style="margin: 5px 0">源码编辑</div>
  7949. </div>
  7950. <div class="check" @click="addTools2(32)">
  7951. <img
  7952. src="../../assets/icon/checkNo.png"
  7953. alt
  7954. v-if="checktoolArray.indexOf(32) == -1"
  7955. />
  7956. <div class="checkDiv" v-else>
  7957. <img src="../../assets/icon/checkedIs.png" alt /><span
  7958. >已选择</span
  7959. >
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div class="tool">
  7964. <div class="whiteBIcon" @click="addTools2(57)">
  7965. <img
  7966. src="../../assets/icon/fourthToolList/cocopi.png"
  7967. alt
  7968. />
  7969. <div style="margin: 5px 0">CocoPi</div>
  7970. </div>
  7971. <div class="check" @click="addTools2(57)">
  7972. <img
  7973. src="../../assets/icon/checkNo.png"
  7974. alt
  7975. v-if="checktoolArray.indexOf(57) == -1"
  7976. />
  7977. <div class="checkDiv" v-else>
  7978. <img src="../../assets/icon/checkedIs.png" alt /><span
  7979. >已选择</span
  7980. >
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div class="tool">
  7985. <div class="whiteBIcon" @click="addTools2(63)">
  7986. <img
  7987. src="../../assets/icon/fourthToolList/Wood.png"
  7988. alt
  7989. />
  7990. <div style="margin: 5px 0">海龟编程</div>
  7991. </div>
  7992. <div class="check" @click="addTools2(63)">
  7993. <img
  7994. src="../../assets/icon/checkNo.png"
  7995. alt
  7996. v-if="checktoolArray.indexOf(63) == -1"
  7997. />
  7998. <div class="checkDiv" v-else>
  7999. <img src="../../assets/icon/checkedIs.png" alt /><span
  8000. >已选择</span
  8001. >
  8002. </div>
  8003. </div>
  8004. </div>
  8005. </div>
  8006. <div class="toolSort" v-if="toolType == 5">
  8007. <div class="tool">
  8008. <div class="whiteBIcon" @click="addTools2(28)">
  8009. <img
  8010. src="../../assets/icon/secondToolList/translation.png"
  8011. alt
  8012. />
  8013. <div style="margin: 5px 0">翻译</div>
  8014. </div>
  8015. <div class="check" @click="addTools2(28)">
  8016. <img
  8017. src="../../assets/icon/checkNo.png"
  8018. alt
  8019. v-if="checktoolArray.indexOf(28) == -1"
  8020. />
  8021. <div class="checkDiv" v-else>
  8022. <img src="../../assets/icon/checkedIs.png" alt /><span
  8023. >已选择</span
  8024. >
  8025. </div>
  8026. </div>
  8027. </div>
  8028. <div class="tool">
  8029. <div class="whiteBIcon" @click="addTools2(31)">
  8030. <img
  8031. src="../../assets/icon/secondToolList/networkPanel.png"
  8032. alt
  8033. />
  8034. <div style="margin: 5px 0">数字画板</div>
  8035. </div>
  8036. <div class="check" @click="addTools2(31)">
  8037. <img
  8038. src="../../assets/icon/checkNo.png"
  8039. alt
  8040. v-if="checktoolArray.indexOf(31) == -1"
  8041. />
  8042. <div class="checkDiv" v-else>
  8043. <img src="../../assets/icon/checkedIs.png" alt /><span
  8044. >已选择</span
  8045. >
  8046. </div>
  8047. </div>
  8048. </div>
  8049. <div class="tool">
  8050. <div class="whiteBIcon" @click="addTools2(39)">
  8051. <img
  8052. src="../../assets/icon/secondToolList/GeoGebra.png"
  8053. alt
  8054. />
  8055. <div style="margin: 5px 0">GeoGebra</div>
  8056. </div>
  8057. <div class="check" @click="addTools2(39)">
  8058. <img
  8059. src="../../assets/icon/checkNo.png"
  8060. alt
  8061. v-if="checktoolArray.indexOf(39) == -1"
  8062. />
  8063. <div class="checkDiv" v-else>
  8064. <img src="../../assets/icon/checkedIs.png" alt /><span
  8065. >已选择</span
  8066. >
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="tool">
  8071. <div class="whiteBIcon" @click="addTools2(66)">
  8072. <img
  8073. src="../../assets/icon/secondToolList/formulaEdi.png"
  8074. alt
  8075. />
  8076. <div style="margin: 5px 0">公式编辑</div>
  8077. </div>
  8078. <div class="check" @click="addTools2(66)">
  8079. <img
  8080. src="../../assets/icon/checkNo.png"
  8081. alt
  8082. v-if="checktoolArray.indexOf(66) == -1"
  8083. />
  8084. <div class="checkDiv" v-else>
  8085. <img src="../../assets/icon/checkedIs.png" alt /><span
  8086. >已选择</span
  8087. >
  8088. </div>
  8089. </div>
  8090. </div>
  8091. <div class="tool">
  8092. <div class="whiteBIcon" @click="addTools2(67)">
  8093. <img
  8094. src="../../assets/icon/secondToolList/molStr.png"
  8095. alt
  8096. />
  8097. <div style="margin: 5px 0">分子结构</div>
  8098. </div>
  8099. <div class="check" @click="addTools2(67)">
  8100. <img
  8101. src="../../assets/icon/checkNo.png"
  8102. alt
  8103. v-if="checktoolArray.indexOf(67) == -1"
  8104. />
  8105. <div class="checkDiv" v-else>
  8106. <img src="../../assets/icon/checkedIs.png" alt /><span
  8107. >已选择</span
  8108. >
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(68)">
  8114. <img
  8115. src="../../assets/icon/secondToolList/timeAxis.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">时间轴</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(68)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(68) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img src="../../assets/icon/checkedIs.png" alt /><span
  8128. >已选择</span
  8129. >
  8130. </div>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <div class="toolSort" v-if="toolType == 7">
  8135. <div class="tool">
  8136. <div class="whiteBIcon" @click="addTools2(40)">
  8137. <img
  8138. src="../../assets/icon/secondToolList/eval.png"
  8139. alt
  8140. />
  8141. <div style="margin: 5px 0">个人评价</div>
  8142. </div>
  8143. <div class="check" @click="addTools2(40)">
  8144. <img
  8145. src="../../assets/icon/checkNo.png"
  8146. alt
  8147. v-if="checktoolArray.indexOf(40) == -1"
  8148. />
  8149. <div class="checkDiv" v-else>
  8150. <img src="../../assets/icon/checkedIs.png" alt /><span
  8151. >已选择</span
  8152. >
  8153. </div>
  8154. </div>
  8155. </div>
  8156. </div>
  8157. <div class="toolSort" v-if="toolType == 4">
  8158. <div class="tool">
  8159. <div class="whiteBIcon" @click="addTools2(26)">
  8160. <img
  8161. src="../../assets/icon/thirdToolList/courseDesign.png"
  8162. alt
  8163. />
  8164. <div style="margin: 5px 0">课程设计</div>
  8165. </div>
  8166. <div class="check" @click="addTools2(26)">
  8167. <img
  8168. src="../../assets/icon/checkNo.png"
  8169. alt
  8170. v-if="checktoolArray.indexOf(26) == -1"
  8171. />
  8172. <div class="checkDiv" v-else>
  8173. <img src="../../assets/icon/checkedIs.png" alt /><span
  8174. >已选择</span
  8175. >
  8176. </div>
  8177. </div>
  8178. </div>
  8179. <div class="tool">
  8180. <div class="whiteBIcon" @click="addTools2(25)">
  8181. <img
  8182. src="../../assets/icon/thirdToolList/evalua.png"
  8183. alt
  8184. />
  8185. <div style="margin: 5px 0">目标管理</div>
  8186. </div>
  8187. <div class="check" @click="addTools2(25)">
  8188. <img
  8189. src="../../assets/icon/checkNo.png"
  8190. alt
  8191. v-if="checktoolArray.indexOf(25) == -1"
  8192. />
  8193. <div class="checkDiv" v-else>
  8194. <img src="../../assets/icon/checkedIs.png" alt /><span
  8195. >已选择</span
  8196. >
  8197. </div>
  8198. </div>
  8199. </div>
  8200. </div>
  8201. </div>
  8202. </div>
  8203. </div>
  8204. </div> -->
  8205. <div
  8206. class="vedioBox"
  8207. style="margin-top: 10px; border-radius: 20px"
  8208. v-if="
  8209. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8210. .eList &&
  8211. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8212. .eList.length &&
  8213. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8214. .eList.length > 0 &&
  8215. tType != 2
  8216. "
  8217. >
  8218. <div
  8219. class="queTop"
  8220. style="
  8221. font-size: 20px;
  8222. padding: 15px 0 15px 37px;
  8223. font-weight: bold;
  8224. "
  8225. >
  8226. <!-- <div class="question" style="width: 30px">
  8227. <img src="../assets/icon/toolIcon.png" alt />
  8228. </div>
  8229. <div class="queTitle">
  8230. <div>工具</div>
  8231. </div>-->
  8232. 评一评
  8233. </div>
  8234. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8235. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8236. <el-table
  8237. :data="
  8238. chapInfoList[courseType].chapterInfo[0].taskJson[
  8239. taskCount
  8240. ].eList
  8241. "
  8242. :header-cell-style="{ background: '#F0F4FA' }"
  8243. :row-class-name="tableRowClassName"
  8244. border
  8245. stripe
  8246. style="width: 100%"
  8247. >
  8248. <el-table-column
  8249. label="评价名称"
  8250. align="center"
  8251. >
  8252. <template slot-scope="scope"
  8253. ><div>{{ scope.row.value }}</div></template
  8254. >
  8255. </el-table-column>
  8256. <el-table-column
  8257. label="评价描述"
  8258. align="center"
  8259. >
  8260. <template slot-scope="scope"
  8261. ><div>
  8262. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8263. </div></template
  8264. >
  8265. </el-table-column>
  8266. <el-table-column label="目标" align="center">
  8267. <template slot-scope="scope"
  8268. ><div>
  8269. {{
  8270. scope.row.target
  8271. ? scope.row.target[scope.row.target.length - 1]
  8272. : "-"
  8273. }}
  8274. </div></template
  8275. ></el-table-column
  8276. >
  8277. </el-table>
  8278. <!-- <div
  8279. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8280. .chapterInfo[0].taskJson[taskCount].eList"
  8281. :key="eIndex"
  8282. class="elist_input_box"
  8283. >
  8284. <div style="width: 95%">
  8285. <div
  8286. style="
  8287. display: flex;
  8288. flex-direction: row;
  8289. flex-wrap: nowrap;
  8290. align-items: center;
  8291. "
  8292. >
  8293. <div style="max-width: calc(100% - 285px)">
  8294. <span>{{ eItem.value }}</span>
  8295. </div>
  8296. <div
  8297. style="
  8298. padding-left: 25px;
  8299. display: flex;
  8300. flex-direction: row;
  8301. align-items: center;
  8302. "
  8303. >
  8304. <el-rate
  8305. v-model="eItem.score"
  8306. :colors="colors"
  8307. disabled
  8308. ></el-rate>
  8309. </div>
  8310. </div>
  8311. <div class="elist_inptu_text" style="padding-left: 10px">
  8312. <span v-if="eItem.detail != ''">{{
  8313. eItem.detail
  8314. }}</span>
  8315. <span v-else style="color: #b2b1b3; font-size: 14px"
  8316. >暂无描述...</span
  8317. >
  8318. </div>
  8319. </div>
  8320. </div> -->
  8321. </div>
  8322. <div
  8323. v-if="evalua"
  8324. style="
  8325. border: 1px solid #e5e5e5;
  8326. max-width: 650px;
  8327. width: 100%;
  8328. margin-top: 20px;
  8329. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8330. "
  8331. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8332. >
  8333. <div class="e_add_top">
  8334. <div class="e_add_title" style="width: 100%">
  8335. <!-- <span>目标管理名称</span> -->
  8336. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8337. <img
  8338. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8339. src="../../assets/line.png"
  8340. class="cru_line"
  8341. style="
  8342. width: 125px;
  8343. height: 20px;
  8344. bottom: -10px;
  8345. left: 5px;
  8346. "
  8347. />
  8348. <!-- <el-input
  8349. v-model="eTitle"
  8350. placeholder="请输入名称"
  8351. @change="setMindData"
  8352. ></el-input>-->
  8353. <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>
  8354. <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>
  8355. </div>
  8356. </div>
  8357. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8358. <div class="e_add_list_pbox">
  8359. <div class="e_add_list_pbox_title">
  8360. <!-- <span class="type_title">切换模式</span> -->
  8361. <div class="type_content">
  8362. <span
  8363. :class="{ active: typeMode == 1 }"
  8364. @click="typeMode = 1"
  8365. >目标树</span
  8366. >
  8367. <span
  8368. :class="{ active: typeMode == 2 }"
  8369. @click="typeMode = 2"
  8370. >目标罗盘</span
  8371. >
  8372. <!-- <span
  8373. :class="{ active: typeMode == 3 }"
  8374. @click="typeMode = 3"
  8375. >目标看板</span
  8376. > -->
  8377. </div>
  8378. </div>
  8379. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8380. <Mind
  8381. :showBar="false"
  8382. :mindData="data"
  8383. style="width: 100%"
  8384. v-show="typeMode == 1"
  8385. ></Mind>
  8386. <Sunburst
  8387. :Josn="eJson"
  8388. :num="eJSONNum"
  8389. style="width: 100%"
  8390. v-if="typeMode == 2"
  8391. ></Sunburst>
  8392. <SeeBoard
  8393. :Josn="eJson"
  8394. :num="eJSONNum"
  8395. :ename="eTitle"
  8396. style="width: 100%"
  8397. v-if="typeMode == 3"
  8398. >
  8399. </SeeBoard>
  8400. </div>
  8401. </div>
  8402. </div>
  8403. </div>
  8404. </div>
  8405. </div>
  8406. <!-- <div
  8407. class="project_box"
  8408. style="margin-top: 15px; padding-bottom: 30px"
  8409. >
  8410. <div
  8411. style="
  8412. display: flex;
  8413. flex-wrap: nowrap;
  8414. flex-direction: column;
  8415. position: relative;
  8416. "
  8417. >
  8418. <div class="queTop">
  8419. <div class="question">
  8420. <img src="../../assets/icon/homeWork.png" alt="" />
  8421. </div>
  8422. <div class="queTitle">
  8423. <div>作业提交<span>(提交图文视频等)</span></div>
  8424. <div>:任务:{{ task.task }}</div>
  8425. </div>
  8426. </div>
  8427. <div class="ediBottom">
  8428. <div
  8429. class="addEditor"
  8430. style="margin-top: 23px"
  8431. @click="openAddWork"
  8432. v-if="!isNoHomeWork"
  8433. >
  8434. 选择文件
  8435. </div>
  8436. <div
  8437. class="addEditor"
  8438. style="margin-top: 23px"
  8439. @click="openAddWork"
  8440. v-else
  8441. >
  8442. 已提交
  8443. </div>
  8444. </div>
  8445. </div>
  8446. </div>-->
  8447. </div>
  8448. </div>
  8449. <el-dialog
  8450. title="作业提交"
  8451. :visible.sync="dialogVisible"
  8452. :append-to-body="true"
  8453. width="500px"
  8454. :before-close="handleClose"
  8455. class="dialog_change"
  8456. >
  8457. <div class="marginT">
  8458. <div>上传文件</div>
  8459. <div
  8460. class="chapter_add"
  8461. @click="addImg($event)"
  8462. v-if="studyJuri[0].cover.length == 0"
  8463. >
  8464. <div class="up_photo">
  8465. <img src="../../assets/icon/uploadImg.png" alt />
  8466. </div>
  8467. <!-- <input
  8468. type="file"
  8469. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8470. style="display: none"
  8471. @change="beforeUpload1($event, 1)"
  8472. /> -->
  8473. <input
  8474. type="file"
  8475. accept="*"
  8476. style="display: none"
  8477. @change="beforeUpload1($event, 1)"
  8478. />
  8479. <!-- <input
  8480. type="file"
  8481. accept="image/*"
  8482. capture="camera"
  8483. style="display: none"
  8484. @change="beforeUpload1($event, 1)"
  8485. /> -->
  8486. </div>
  8487. <div
  8488. class="chapter_add"
  8489. style="
  8490. display: flex;
  8491. width: 100%;
  8492. flex-direction: row;
  8493. flex-wrap: wrap;
  8494. justify-content: flex-start;
  8495. padding: 15px 0;
  8496. "
  8497. v-if="studyJuri[0].cover.length > 0"
  8498. >
  8499. <div class="upCover">
  8500. <img
  8501. :src="studyJuri[0].cover[0].url"
  8502. alt
  8503. v-if="fileType == 0"
  8504. />
  8505. <img :src="word" alt v-else-if="fileType == 1" />
  8506. <img :src="video" alt v-else-if="fileType == 2" />
  8507. <img :src="word2" alt v-else-if="fileType == 3" />
  8508. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8509. <div class="deleteWord" @click="clean(1)">
  8510. <img src="../../assets/icon/deleteWorks.png" alt />
  8511. </div>
  8512. </div>
  8513. </div>
  8514. </div>
  8515. <div
  8516. class="upload_send"
  8517. @click="addCourseWorks(taskCount)"
  8518. v-if="!proVisible"
  8519. >
  8520. 提交
  8521. </div>
  8522. </el-dialog>
  8523. </div>
  8524. </div>
  8525. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8526. <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(
  8527. '/courseDetail?userid=' +
  8528. userid +
  8529. '&oid=' +
  8530. oid +
  8531. '&org=' +
  8532. org +
  8533. '&cid=' +
  8534. classId +
  8535. '&courseId=' +
  8536. id +
  8537. '&tType=' +
  8538. tType +
  8539. '&screenType=' +
  8540. screenType
  8541. )"></classRoomHelper>
  8542. <div
  8543. class="pButton"
  8544. @click="(pzDialog = true), selectPz()"
  8545. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8546. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8547. >
  8548. <!-- 批 -->
  8549. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8550. </div>
  8551. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8552. <div class="pzTop2">
  8553. <!-- <div>评论</div>
  8554. <div @click="pzDialog = false">
  8555. <img src="../../assets/close1.png" alt="" />
  8556. </div> -->
  8557. <div class="checkbox">
  8558. <!-- <div class="check" style="font-size: 25px; position: unset">
  8559. 评论
  8560. </div> -->
  8561. <div class="cb-tabList">
  8562. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8563. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8564. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8565. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8566. </div>
  8567. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8568. <el-option label="时间降序" :value="1"></el-option>
  8569. <el-option label="时间升序" :value="2"></el-option>
  8570. <el-option label="我的评课" :value="3"></el-option>
  8571. </el-select>
  8572. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8573. </div>
  8574. </div>
  8575. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8576. <div class="pzListBox" v-if="pzList && pzList.length">
  8577. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8578. <div class="pzNavTop">
  8579. <div>评</div>
  8580. <div>
  8581. {{
  8582. pz.username && pz.username.length > 5
  8583. ? pz.username.substring(0, 5) + "..."
  8584. : pz.username
  8585. }}的评论
  8586. </div>
  8587. <div
  8588. class="pzDelete"
  8589. v-if="pz.userid == userid"
  8590. @click="deletePz(pz.id)"
  8591. >
  8592. 删除
  8593. </div>
  8594. </div>
  8595. <div
  8596. @click="checkImg(getImgList(pz.content))"
  8597. class="pzContent cont"
  8598. v-html="pz.content"
  8599. v-if="pz.type == '1'"
  8600. ></div>
  8601. <div class="pzContent" v-if="pz.type == '2'">
  8602. <audio :src="pz.content" controls="controls" ref="audio">
  8603. Your browser does not support the audio element.
  8604. </audio>
  8605. </div>
  8606. <div class="pzContent" v-if="pz.type == '3'">
  8607. <img
  8608. :src="pz.content"
  8609. style="width: 90%; margin: 0 auto; display: block"
  8610. @click="previewImg(pz.content)"
  8611. />
  8612. </div>
  8613. <div class="timeAndReply">
  8614. <div class="time">
  8615. {{ pz.time }}
  8616. </div>
  8617. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8618. </div>
  8619. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8620. <div
  8621. v-for="(h, hIndex) in pz.hfList"
  8622. :key="hIndex"
  8623. class="hfItem"
  8624. >
  8625. <div class="whoReplyWho">
  8626. <div class="hfName">{{ h.username }}</div>
  8627. <div class="hfImg">
  8628. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8629. </div>
  8630. <div class="hfName">{{ pz.username }}</div>
  8631. </div>
  8632. <div class="hfContent" v-html="h.content"></div>
  8633. <div class="hfBottom">
  8634. <div class="hfTime">{{ h.time }}</div>
  8635. <div
  8636. class="deleteHfItem"
  8637. @click="deleteReply(h.id)"
  8638. v-if="userid == h.userid"
  8639. >
  8640. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8641. </div>
  8642. </div>
  8643. </div>
  8644. </div>
  8645. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8646. <div class="replyInput">
  8647. <el-input v-model="reply[pzIndex]"></el-input>
  8648. </div>
  8649. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8650. </div> -->
  8651. </div>
  8652. </div>
  8653. <div class="noPz" v-else>
  8654. <img src="../../assets/icon/noPz.png" alt="" />
  8655. </div>
  8656. <div class="addPzButton">
  8657. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8658. 添加评论
  8659. </div>
  8660. <!-- <div class="img1">
  8661. <div @click="(addPzDialog = true), (pzType = 2)">
  8662. <img src="../../assets/audio.png" /><span>音频</span>
  8663. </div>
  8664. </div> -->
  8665. </div>
  8666. </div>
  8667. <div class="scoreList" v-if="commentTagShow==1">
  8668. <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"/>
  8669. </div>
  8670. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8671. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8672. </div>
  8673. </div>
  8674. <div
  8675. v-if="toolDialogVisible == true"
  8676. class="toolMask"
  8677. @click="toolDialogVisible = false"
  8678. ></div>
  8679. <div v-if="toolDialogVisible == true" class="addToolCss">
  8680. <div class="toolTop">
  8681. <div style="font-weight: bold">新增工具</div>
  8682. <div @click="toolDialogVisible = false">
  8683. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8684. </div>
  8685. </div>
  8686. <div class="tool_box">
  8687. <div class="tool_type_box">
  8688. <div class="chooseWho">
  8689. <div
  8690. :class="toolType == 0 ? 'isChooseActive' : ''"
  8691. @click="(toolType = 0), $forceUpdate()"
  8692. >
  8693. 互动类
  8694. </div>
  8695. <div
  8696. :class="toolType == 1 ? 'isChooseActive' : ''"
  8697. @click="(toolType = 1), $forceUpdate()"
  8698. >
  8699. 思维类
  8700. </div>
  8701. <div
  8702. :class="toolType == 2 ? 'isChooseActive' : ''"
  8703. @click="(toolType = 2), $forceUpdate()"
  8704. >
  8705. 测评类
  8706. </div>
  8707. <div
  8708. :class="toolType == 3 ? 'isChooseActive' : ''"
  8709. @click="(toolType = 3), $forceUpdate()"
  8710. >
  8711. 编程类
  8712. </div>
  8713. <div
  8714. :class="toolType == 5 ? 'isChooseActive' : ''"
  8715. @click="(toolType = 5), $forceUpdate()"
  8716. >
  8717. 学科类
  8718. </div>
  8719. </div>
  8720. </div>
  8721. <div>
  8722. <div class="toolSort" v-if="toolType == 0">
  8723. <div
  8724. class="tool"
  8725. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8726. @click="addTools2(10)"
  8727. >
  8728. <div class="whiteBIcon">
  8729. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8730. <div style="margin: 5px 0">倒计时</div>
  8731. </div>
  8732. <div class="check">
  8733. <div
  8734. v-if="checktoolArray.indexOf(10) == -1"
  8735. class="noChoose"
  8736. ></div>
  8737. <div v-else class="isChoose"></div>
  8738. </div>
  8739. </div>
  8740. <div
  8741. class="tool"
  8742. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8743. @click="addTools2(65)"
  8744. >
  8745. <div class="whiteBIcon">
  8746. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8747. <div style="margin: 5px 0">挑人</div>
  8748. </div>
  8749. <div class="check">
  8750. <div
  8751. v-if="checktoolArray.indexOf(65) == -1"
  8752. class="noChoose"
  8753. ></div>
  8754. <div v-else class="isChoose"></div>
  8755. </div>
  8756. </div>
  8757. </div>
  8758. <div class="toolSort" v-if="toolType == 1">
  8759. <div
  8760. class="tool"
  8761. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8762. @click="addTools2(7)"
  8763. >
  8764. <div class="whiteBIcon">
  8765. <img
  8766. src="../../assets/icon/secondToolList/mindNetwork.png"
  8767. alt
  8768. />
  8769. <div style="margin: 5px 0">思维网格</div>
  8770. </div>
  8771. <div class="check">
  8772. <div
  8773. v-if="checktoolArray.indexOf(7) == -1"
  8774. class="noChoose"
  8775. ></div>
  8776. <div v-else class="isChoose"></div>
  8777. </div>
  8778. </div>
  8779. <div
  8780. class="tool"
  8781. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8782. @click="addTools2(1)"
  8783. >
  8784. <div class="whiteBIcon">
  8785. <img
  8786. src="../../assets/icon/secondToolList/whiteBoard.png"
  8787. alt
  8788. />
  8789. <div style="margin: 5px 0">电子白板</div>
  8790. </div>
  8791. <div class="check">
  8792. <div
  8793. v-if="checktoolArray.indexOf(1) == -1"
  8794. class="noChoose"
  8795. ></div>
  8796. <div v-else class="isChoose"></div>
  8797. </div>
  8798. </div>
  8799. <div
  8800. class="tool"
  8801. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8802. @click="addTools2(52)"
  8803. >
  8804. <div class="whiteBIcon">
  8805. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8806. <div style="margin: 5px 0">文档</div>
  8807. </div>
  8808. <div class="check">
  8809. <div
  8810. v-if="checktoolArray.indexOf(52) == -1"
  8811. class="noChoose"
  8812. ></div>
  8813. <div v-else class="isChoose"></div>
  8814. </div>
  8815. </div>
  8816. <div
  8817. class="tool"
  8818. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8819. @click="addTools2(3)"
  8820. >
  8821. <div class="whiteBIcon">
  8822. <img
  8823. src="../../assets/icon/secondToolList/mindMapping.png"
  8824. alt
  8825. />
  8826. <div style="margin: 5px 0">思维导图</div>
  8827. </div>
  8828. <div class="check">
  8829. <div
  8830. v-if="checktoolArray.indexOf(3) == -1"
  8831. class="noChoose"
  8832. ></div>
  8833. <div v-else class="isChoose"></div>
  8834. </div>
  8835. </div>
  8836. <div
  8837. class="tool"
  8838. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8839. @click="addTools2(48)"
  8840. >
  8841. <div class="whiteBIcon">
  8842. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8843. <div style="margin: 5px 0">表格</div>
  8844. </div>
  8845. <div class="check">
  8846. <div
  8847. v-if="checktoolArray.indexOf(48) == -1"
  8848. class="noChoose"
  8849. ></div>
  8850. <div v-else class="isChoose"></div>
  8851. </div>
  8852. </div>
  8853. </div>
  8854. <div class="toolSort" v-if="toolType == 6">
  8855. <div v-show="tooC == 49">
  8856. <img
  8857. @click="addTools(tooC, toolIndex, taskCount)"
  8858. src="../../assets/icon/fourthToolList/group.png"
  8859. alt
  8860. />
  8861. <div style="margin: 5px 0">学生分组</div>
  8862. </div>
  8863. </div>
  8864. <div class="toolSort" v-if="toolType == 2">
  8865. <div
  8866. class="tool"
  8867. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8868. @click="addTools2(16)"
  8869. >
  8870. <div class="whiteBIcon">
  8871. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8872. <div style="margin: 5px 0">作业提交</div>
  8873. </div>
  8874. <div class="check">
  8875. <div
  8876. v-if="checktoolArray.indexOf(16) == -1"
  8877. class="noChoose"
  8878. ></div>
  8879. <div v-else class="isChoose"></div>
  8880. </div>
  8881. </div>
  8882. <div
  8883. class="tool"
  8884. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8885. @click="addTools2(50)"
  8886. >
  8887. <div class="whiteBIcon">
  8888. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8889. <div style="margin: 5px 0">批量上传</div>
  8890. </div>
  8891. <div class="check">
  8892. <div
  8893. v-if="checktoolArray.indexOf(50) == -1"
  8894. class="noChoose"
  8895. ></div>
  8896. <div v-else class="isChoose"></div>
  8897. </div>
  8898. </div>
  8899. </div>
  8900. <div class="toolSort" v-if="toolType == 3">
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8904. @click="addTools2(18)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img
  8908. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8909. alt
  8910. />
  8911. <div style="margin: 5px 0">训练平台</div>
  8912. </div>
  8913. <div class="check">
  8914. <div
  8915. v-if="checktoolArray.indexOf(18) == -1"
  8916. class="noChoose"
  8917. ></div>
  8918. <div v-else class="isChoose"></div>
  8919. </div>
  8920. </div>
  8921. <div
  8922. class="tool"
  8923. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8924. @click="addTools2(21)"
  8925. >
  8926. <div class="whiteBIcon">
  8927. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8928. <div style="margin: 5px 0">AIoT Blockly</div>
  8929. </div>
  8930. <div class="check">
  8931. <div
  8932. v-if="checktoolArray.indexOf(21) == -1"
  8933. class="noChoose"
  8934. ></div>
  8935. <div v-else class="isChoose"></div>
  8936. </div>
  8937. </div>
  8938. <div
  8939. class="tool"
  8940. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8941. @click="addTools2(23)"
  8942. >
  8943. <div class="whiteBIcon">
  8944. <img
  8945. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8946. alt
  8947. />
  8948. <div style="margin: 5px 0">AI Python</div>
  8949. </div>
  8950. <div class="check">
  8951. <div
  8952. v-if="checktoolArray.indexOf(23) == -1"
  8953. class="noChoose"
  8954. ></div>
  8955. <div v-else class="isChoose"></div>
  8956. </div>
  8957. </div>
  8958. <div
  8959. class="tool"
  8960. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8961. @click="addTools2(24)"
  8962. >
  8963. <div class="whiteBIcon">
  8964. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8965. <div style="margin: 5px 0">AI Blockly</div>
  8966. </div>
  8967. <div class="check">
  8968. <div
  8969. v-if="checktoolArray.indexOf(24) == -1"
  8970. class="noChoose"
  8971. ></div>
  8972. <div v-else class="isChoose"></div>
  8973. </div>
  8974. </div>
  8975. <div
  8976. class="tool"
  8977. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8978. @click="addTools2(32)"
  8979. >
  8980. <div class="whiteBIcon">
  8981. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8982. <div style="margin: 5px 0">源码编辑</div>
  8983. </div>
  8984. <div class="check">
  8985. <div
  8986. v-if="checktoolArray.indexOf(32) == -1"
  8987. class="noChoose"
  8988. ></div>
  8989. <div v-else class="isChoose"></div>
  8990. </div>
  8991. </div>
  8992. <div
  8993. class="tool"
  8994. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8995. @click="addTools2(57)"
  8996. >
  8997. <div class="whiteBIcon">
  8998. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8999. <div style="margin: 5px 0">CocoPi</div>
  9000. </div>
  9001. <div class="check">
  9002. <div
  9003. v-if="checktoolArray.indexOf(57) == -1"
  9004. class="noChoose"
  9005. ></div>
  9006. <div v-else class="isChoose"></div>
  9007. </div>
  9008. </div>
  9009. <div
  9010. class="tool"
  9011. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9012. @click="addTools2(63)"
  9013. >
  9014. <div class="whiteBIcon">
  9015. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9016. <div style="margin: 5px 0">海龟编程</div>
  9017. </div>
  9018. <div class="check">
  9019. <div
  9020. v-if="checktoolArray.indexOf(63) == -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(71) != -1 }"
  9029. @click="addTools2(71)"
  9030. >
  9031. <div class="whiteBIcon">
  9032. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9033. <div style="margin: 5px 0">AI智能体</div>
  9034. </div>
  9035. <div class="check">
  9036. <div
  9037. v-if="checktoolArray.indexOf(71) == -1"
  9038. class="noChoose"
  9039. ></div>
  9040. <div v-else class="isChoose"></div>
  9041. </div>
  9042. </div>
  9043. </div>
  9044. <div class="toolSort" v-if="toolType == 7">
  9045. <div
  9046. class="tool"
  9047. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9048. @click="addTools2(40)"
  9049. >
  9050. <div class="whiteBIcon">
  9051. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9052. <div style="margin: 5px 0">个人评价</div>
  9053. </div>
  9054. <div class="check">
  9055. <div
  9056. v-if="checktoolArray.indexOf(40) == -1"
  9057. class="noChoose"
  9058. ></div>
  9059. <div v-else class="isChoose"></div>
  9060. </div>
  9061. </div>
  9062. </div>
  9063. <div class="toolSort" v-if="toolType == 5">
  9064. <div
  9065. class="tool"
  9066. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9067. @click="addTools2(28)"
  9068. >
  9069. <div class="whiteBIcon">
  9070. <img
  9071. src="../../assets/icon/secondToolList/translation.png"
  9072. alt
  9073. />
  9074. <div style="margin: 5px 0">翻译</div>
  9075. </div>
  9076. <div class="check">
  9077. <div
  9078. v-if="checktoolArray.indexOf(28) == -1"
  9079. class="noChoose"
  9080. ></div>
  9081. <div v-else class="isChoose"></div>
  9082. </div>
  9083. </div>
  9084. <div
  9085. class="tool"
  9086. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9087. @click="addTools2(31)"
  9088. >
  9089. <div class="whiteBIcon">
  9090. <img
  9091. src="../../assets/icon/secondToolList/networkPanel.png"
  9092. alt
  9093. />
  9094. <div style="margin: 5px 0">数字画板</div>
  9095. </div>
  9096. <div class="check">
  9097. <div
  9098. v-if="checktoolArray.indexOf(31) == -1"
  9099. class="noChoose"
  9100. ></div>
  9101. <div v-else class="isChoose"></div>
  9102. </div>
  9103. </div>
  9104. <div
  9105. class="tool"
  9106. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9107. @click="addTools2(39)"
  9108. >
  9109. <div class="whiteBIcon">
  9110. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9111. <div style="margin: 5px 0">GeoGebra</div>
  9112. </div>
  9113. <div class="check">
  9114. <div
  9115. v-if="checktoolArray.indexOf(39) == -1"
  9116. class="noChoose"
  9117. ></div>
  9118. <div v-else class="isChoose"></div>
  9119. </div>
  9120. </div>
  9121. <div
  9122. class="tool"
  9123. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9124. @click="addTools2(66)"
  9125. >
  9126. <div class="whiteBIcon">
  9127. <img
  9128. src="../../assets/icon/secondToolList/formulaEdi.png"
  9129. alt
  9130. />
  9131. <div style="margin: 5px 0">公式编辑</div>
  9132. </div>
  9133. <div class="check">
  9134. <div
  9135. v-if="checktoolArray.indexOf(66) == -1"
  9136. class="noChoose"
  9137. ></div>
  9138. <div v-else class="isChoose"></div>
  9139. </div>
  9140. </div>
  9141. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9142. <div class="whiteBIcon" @click="addTools2(67)">
  9143. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9144. <div style="margin: 5px 0">分子结构</div>
  9145. </div>
  9146. <div class="check" @click="addTools2(67)">
  9147. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9148. <div v-else class="isChoose"></div>
  9149. </div>
  9150. </div> -->
  9151. <div
  9152. class="tool"
  9153. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9154. @click="addTools2(68)"
  9155. >
  9156. <div class="whiteBIcon">
  9157. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9158. <div style="margin: 5px 0">时间轴</div>
  9159. </div>
  9160. <div class="check">
  9161. <div
  9162. v-if="checktoolArray.indexOf(68) == -1"
  9163. class="noChoose"
  9164. ></div>
  9165. <div v-else class="isChoose"></div>
  9166. </div>
  9167. </div>
  9168. <!-- <div
  9169. class="tool"
  9170. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9171. @click="addTools2(69)"
  9172. >
  9173. <div class="whiteBIcon">
  9174. <img src="../../assets/icon/secondToolList/english.png" alt />
  9175. <div style="margin: 5px 0">英语写作</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(69) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div> -->
  9185. </div>
  9186. <div class="toolSort" v-if="toolType == 4">
  9187. <div
  9188. class="tool"
  9189. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9190. @click="addTools2(26)"
  9191. >
  9192. <div class="whiteBIcon">
  9193. <img
  9194. src="../../assets/icon/thirdToolList/courseDesign.png"
  9195. alt
  9196. />
  9197. <div style="margin: 5px 0">课程设计</div>
  9198. </div>
  9199. <div class="check">
  9200. <div
  9201. v-if="checktoolArray.indexOf(26) == -1"
  9202. class="noChoose"
  9203. ></div>
  9204. <div v-else class="isChoose"></div>
  9205. </div>
  9206. </div>
  9207. <div
  9208. class="tool"
  9209. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9210. @click="addTools2(25)"
  9211. >
  9212. <div class="whiteBIcon">
  9213. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9214. <div style="margin: 5px 0">目标管理</div>
  9215. </div>
  9216. <div class="check">
  9217. <div
  9218. v-if="checktoolArray.indexOf(25) == -1"
  9219. class="noChoose"
  9220. ></div>
  9221. <div v-else class="isChoose"></div>
  9222. </div>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. </div>
  9227. <span
  9228. slot="footer"
  9229. class="dialog-footer"
  9230. style="display: block; text-align: center; padding: 0 0 10px 0"
  9231. >
  9232. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9233. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9234. </span>
  9235. </div>
  9236. <div
  9237. v-if="replyDialogVisible == true"
  9238. class="addDialogCss"
  9239. v-el-drag-dialog
  9240. >
  9241. <div class="pzTop">
  9242. <div class="teacherPz">
  9243. <div class="teacherPzImg">
  9244. <img src="../../assets/icon/teacherPz.png" alt="" />
  9245. </div>
  9246. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9247. </div>
  9248. <div @click="replyDialogVisible = false">
  9249. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9250. </div>
  9251. </div>
  9252. <div class="addPzBox">
  9253. <!-- <div class="addPzCheck">
  9254. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9255. >文本</span
  9256. >
  9257. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9258. >音频</span
  9259. >
  9260. </div> -->
  9261. <div style="height: calc(100% - 50px)">
  9262. <editor-bar
  9263. class="binfo_input pzConText"
  9264. style="width: 100% !important; margin: 0 auto"
  9265. placeholder="请输入回复描述"
  9266. v-model="reply"
  9267. @change="change"
  9268. ></editor-bar>
  9269. </div>
  9270. <div class="addTextCss" @click="addHf">确定</div>
  9271. </div>
  9272. </div>
  9273. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9274. <div class="pzTop">
  9275. <div class="teacherPz">
  9276. <div class="teacherPzImg">
  9277. <img src="../../assets/icon/teacherPz.png" alt="" />
  9278. </div>
  9279. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9280. </div>
  9281. <div @click="addPzDialog = false">
  9282. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9283. </div>
  9284. </div>
  9285. <div class="addPzBox">
  9286. <div class="addPzCheck">
  9287. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9288. >文本</span
  9289. >
  9290. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9291. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9292. >音频</span
  9293. >
  9294. </div>
  9295. <div style="height: calc(100% - 95px)">
  9296. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9297. v-if="pzType == 1"></textarea> -->
  9298. <editor-bar
  9299. class="binfo_input pzConText"
  9300. style="width: 100% !important"
  9301. placeholder="请输入任务描述"
  9302. v-model="pzConText"
  9303. @change="change"
  9304. v-if="pzType == 1"
  9305. ></editor-bar>
  9306. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9307. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9308. <div @click="addImg($event)">
  9309. <el-button type="primary">上传图片</el-button>
  9310. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9311. @change="beforeUpload1($event, 4)" />
  9312. </div>
  9313. </div> -->
  9314. </div>
  9315. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9316. 确定
  9317. </div>
  9318. </div>
  9319. </div>
  9320. <div v-if="proVisible" class="mask">
  9321. <div class="progressBox">
  9322. <!-- <div id="closePro" class="closeCss">
  9323. <img src="../../assets/icon/close.png" alt />
  9324. </div> -->
  9325. <div class="lbox">
  9326. <img src="../../assets/loading.gif" />上传中,请稍后
  9327. </div>
  9328. <div style="margin-bottom: 10px">
  9329. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9330. </div>
  9331. <el-progress
  9332. :text-inside="true"
  9333. :stroke-width="20"
  9334. :percentage="progress"
  9335. style="width: 80%"
  9336. ></el-progress>
  9337. </div>
  9338. </div>
  9339. <div v-if="proVisible2" class="mask">
  9340. <div class="progressBox">
  9341. <div class="lbox">
  9342. <img src="../../assets/loading.gif" />上传中,请稍后
  9343. </div>
  9344. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9345. </div>
  9346. </div>
  9347. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9348. <img width="100%" :src="dialogImageUrl" alt />
  9349. </el-dialog>
  9350. <el-dialog
  9351. :title="noteName != '' ? noteName : '查看问卷'"
  9352. :visible.sync="dialogVisible5"
  9353. :append-to-body="true"
  9354. width="1000px"
  9355. :before-close="handleClose"
  9356. class="dialog_diy dialog_diy3"
  9357. >
  9358. <div>
  9359. <div
  9360. class="a_add_title"
  9361. style="
  9362. display: flex;
  9363. flex-direction: row;
  9364. align-items: center;
  9365. justify-content: center;
  9366. "
  9367. >
  9368. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9369. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9370. </div>
  9371. <div class="a_addBox">
  9372. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9373. 题目内容
  9374. </div>
  9375. <div
  9376. class="a_add_box"
  9377. v-for="(item1, index1) in askJson.askCount"
  9378. :key="index1"
  9379. >
  9380. <div class="a_add_head">
  9381. <div style="display: flex">
  9382. <span class="askIndex"> {{ index1 + 1 }}</span>
  9383. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9384. </div>
  9385. <img
  9386. v-if="askJson.askJson[index1].img"
  9387. :src="askJson.askJson[index1].img"
  9388. style="height: 300px; margin-top: 10px; max-width: 100%"
  9389. />
  9390. </div>
  9391. <div class="a_add_body">
  9392. <div class="a_add_input">
  9393. <el-radio-group
  9394. v-model="radio[index1]"
  9395. v-if="
  9396. askJson.askJson[index1].type == '1' ||
  9397. !askJson.askJson[index1].type
  9398. "
  9399. >
  9400. <el-radio
  9401. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9402. .checkList"
  9403. :key="checkIndex"
  9404. :label="checkIndex"
  9405. :disabled="isAnswer"
  9406. class="redioStyle"
  9407. ><span v-html="item2"></span
  9408. ></el-radio>
  9409. </el-radio-group>
  9410. <el-checkbox-group
  9411. v-model="radio[index1]"
  9412. v-if="askJson.askJson[index1].type == '2'"
  9413. >
  9414. <el-checkbox
  9415. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9416. .checkList"
  9417. :key="checkIndex1"
  9418. :label="checkIndex1"
  9419. :disabled="isAnswer"
  9420. class="redioStyle"
  9421. ><span v-html="item2"></span>
  9422. </el-checkbox>
  9423. </el-checkbox-group>
  9424. </div>
  9425. </div>
  9426. </div>
  9427. </div>
  9428. </div>
  9429. <span slot="footer" class="dialog-footer">
  9430. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9431. >取 消</el-button
  9432. >
  9433. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9434. >确 定</el-button
  9435. >
  9436. </span>
  9437. </el-dialog>
  9438. <el-dialog
  9439. :title="noteName != '' ? noteName : '查看问卷'"
  9440. :visible.sync="dialogVisible5Teacher"
  9441. :append-to-body="true"
  9442. width="1000px"
  9443. :before-close="handleClose"
  9444. class="dialog_diy dialog_diy3"
  9445. >
  9446. <div>
  9447. <div class="w_name">
  9448. 学生姓名:<span>{{ sStudent.student }}</span>
  9449. </div>
  9450. <div
  9451. class="a_add_title"
  9452. style="
  9453. display: flex;
  9454. flex-direction: row;
  9455. align-items: center;
  9456. justify-content: center;
  9457. "
  9458. >
  9459. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9460. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9461. </div>
  9462. <div class="a_addBox">
  9463. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9464. 题目内容
  9465. </div>
  9466. <div
  9467. class="a_add_box"
  9468. v-for="(item1, index1) in askJson.askCount"
  9469. :key="index1"
  9470. >
  9471. <div class="a_add_head">
  9472. <div style="display: flex">
  9473. <span class="askIndex">{{ index1 + 1 }}</span>
  9474. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9475. </div>
  9476. <img
  9477. v-if="askJson.askJson[index1].img"
  9478. :src="askJson.askJson[index1].img"
  9479. style="height: 300px; margin-top: 10px; max-width: 100%"
  9480. />
  9481. </div>
  9482. <div class="a_add_body">
  9483. <div class="a_add_input">
  9484. <el-radio-group
  9485. v-model="radio[index1]"
  9486. v-if="
  9487. askJson.askJson[index1].type == '1' ||
  9488. !askJson.askJson[index1].type
  9489. "
  9490. >
  9491. <el-radio
  9492. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9493. .checkList"
  9494. :key="checkIndex"
  9495. :label="checkIndex"
  9496. :disabled="isAnswer"
  9497. class="redioStyle"
  9498. ><span v-html="item2"></span
  9499. ></el-radio>
  9500. </el-radio-group>
  9501. <el-checkbox-group
  9502. v-model="radio[index1]"
  9503. v-if="askJson.askJson[index1].type == '2'"
  9504. >
  9505. <el-checkbox
  9506. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9507. .checkList"
  9508. :key="checkIndex1"
  9509. :label="checkIndex1"
  9510. :disabled="isAnswer"
  9511. class="redioStyle"
  9512. ><span v-html="item2"></span>
  9513. </el-checkbox>
  9514. </el-checkbox-group>
  9515. </div>
  9516. </div>
  9517. </div>
  9518. </div>
  9519. </div>
  9520. <span slot="footer" class="dialog-footer">
  9521. <el-button
  9522. @click="dialogVisible5Teacher = false"
  9523. v-show="noteName == ''"
  9524. >取 消</el-button
  9525. >
  9526. <el-button
  9527. type="primary"
  9528. @click="addStudentAskTeacher"
  9529. v-show="noteName == ''"
  9530. >确 定</el-button
  9531. >
  9532. </span>
  9533. </el-dialog>
  9534. <el-dialog
  9535. :title="noteName != '' ? noteName : '查看选择题'"
  9536. :visible.sync="dialogVisibleChoice"
  9537. :append-to-body="true"
  9538. width="1000px"
  9539. :before-close="handleClose"
  9540. class="dialog_diy dialog_diy3"
  9541. >
  9542. <div>
  9543. <!-- <div class="a_add_title" style="
  9544. display: flex;
  9545. flex-direction: row;
  9546. align-items: center;
  9547. justify-content: center;
  9548. ">
  9549. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9550. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9551. </div> -->
  9552. <div class="a_addBox">
  9553. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9554. 题目内容
  9555. </div>
  9556. <div
  9557. class="a_add_box"
  9558. v-for="(item1, index1) in testJson.testCount"
  9559. :key="index1"
  9560. >
  9561. <div class="a_add_head">
  9562. <div style="display: flex">
  9563. <span class="askIndex">{{ index1 + 1 }}</span>
  9564. <div
  9565. v-if="testJson.testJson[index1].type == '1'"
  9566. style="margin-right: 5px; min-width: 70px"
  9567. >
  9568. (单选题)
  9569. </div>
  9570. <div
  9571. v-if="testJson.testJson[index1].type == '2'"
  9572. style="margin-right: 5px; min-width: 70px"
  9573. >
  9574. (多选题)
  9575. </div>
  9576. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9577. </div>
  9578. <img
  9579. v-if="testJson.testJson[index1].img"
  9580. :src="testJson.testJson[index1].img"
  9581. style="height: 300px; margin-top: 10px; max-width: 100%"
  9582. />
  9583. </div>
  9584. <div
  9585. class="timuImgBox"
  9586. v-if="
  9587. testJson.testJson[index1].timuList &&
  9588. testJson.testJson[index1].timuList.length
  9589. "
  9590. >
  9591. <div
  9592. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9593. :key="tIndex"
  9594. class="timuImg"
  9595. @click.stop="previewImg(timg.src)"
  9596. >
  9597. <img :src="timg.src" alt="" />
  9598. </div>
  9599. </div>
  9600. <div class="a_add_body">
  9601. <div class="a_add_input">
  9602. <el-radio-group
  9603. v-model="radio[index1]"
  9604. v-if="testJson.testJson[index1].type == '1'"
  9605. >
  9606. <div class="radioBox">
  9607. <el-radio
  9608. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9609. .checkList"
  9610. :key="checkIndex"
  9611. :label="checkIndex"
  9612. :disabled="isAnswer"
  9613. class="redioStyle"
  9614. >
  9615. <div
  9616. style="margin-right: 10px"
  9617. v-if="item2 && item2.imgType && item2.imgType == 1"
  9618. >
  9619. <div class="inImg" @click.stop="previewImg(item2.src)">
  9620. <img :src="item2.src" alt="" />
  9621. </div>
  9622. </div>
  9623. <span v-else v-html="item2"></span>
  9624. </el-radio>
  9625. </div>
  9626. </el-radio-group>
  9627. <el-checkbox-group
  9628. v-model="radio[index1]"
  9629. v-if="testJson.testJson[index1].type == '2'"
  9630. >
  9631. <div class="radioBox">
  9632. <el-checkbox
  9633. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9634. .checkList"
  9635. :key="checkIndex"
  9636. :label="checkIndex"
  9637. :disabled="isAnswer"
  9638. class="redioStyle"
  9639. >
  9640. <div
  9641. style="margin-right: 10px"
  9642. v-if="item2 && item2.imgType && item2.imgType == 1"
  9643. >
  9644. <div class="inImg" @click.stop="previewImg(item2.src)">
  9645. <img :src="item2.src" alt="" />
  9646. </div>
  9647. </div>
  9648. <span v-else v-html="item2"></span>
  9649. </el-checkbox>
  9650. </div>
  9651. </el-checkbox-group>
  9652. </div>
  9653. </div>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. <span slot="footer" class="dialog-footer">
  9658. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9659. >取 消</el-button
  9660. >
  9661. <el-button
  9662. type="primary"
  9663. @click="addStudentTest"
  9664. v-show="noteName == ''"
  9665. >确 定</el-button
  9666. >
  9667. </span>
  9668. </el-dialog>
  9669. <el-dialog
  9670. :title="noteName != '' ? noteName : '查看选择题'"
  9671. :visible.sync="dialogVisibleChoiceTeacher"
  9672. :append-to-body="true"
  9673. width="1000px"
  9674. :before-close="handleClose"
  9675. class="dialog_diy dialog_diy3"
  9676. >
  9677. <div>
  9678. <div class="w_name">
  9679. 学生姓名:<span>{{ sStudent.student }}</span>
  9680. </div>
  9681. <div class="a_addBox">
  9682. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9683. 题目内容
  9684. </div>
  9685. <div
  9686. class="a_add_box"
  9687. v-for="(item1, index1) in testJson.testCount"
  9688. :key="index1"
  9689. >
  9690. <div class="a_add_head">
  9691. <div style="display: flex">
  9692. <span class="askIndex">{{ index1 + 1 }}</span>
  9693. <div
  9694. v-if="testJson.testJson[index1].type == '1'"
  9695. style="margin-right: 5px; min-width: 70px"
  9696. >
  9697. (单选题)
  9698. </div>
  9699. <div
  9700. v-if="testJson.testJson[index1].type == '2'"
  9701. style="margin-right: 5px; min-width: 70px"
  9702. >
  9703. (多选题)
  9704. </div>
  9705. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9706. </div>
  9707. <img
  9708. v-if="testJson.testJson[index1].img"
  9709. :src="testJson.testJson[index1].img"
  9710. style="height: 300px; margin-top: 10px; max-width: 100%"
  9711. />
  9712. </div>
  9713. <div
  9714. class="timuImgBox"
  9715. v-if="
  9716. testJson.testJson[index1].timuList &&
  9717. testJson.testJson[index1].timuList.length
  9718. "
  9719. >
  9720. <div
  9721. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9722. :key="tIndex"
  9723. class="timuImg"
  9724. @click.stop="previewImg(timg.src)"
  9725. >
  9726. <img :src="timg.src" alt="" />
  9727. </div>
  9728. </div>
  9729. <div class="a_add_body">
  9730. <div class="a_add_input">
  9731. <el-radio-group
  9732. v-model="radio[index1]"
  9733. v-if="testJson.testJson[index1].type == '1'"
  9734. >
  9735. <div class="radioBox">
  9736. <el-radio
  9737. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9738. .checkList"
  9739. :key="checkIndex"
  9740. :label="checkIndex"
  9741. :disabled="isAnswer"
  9742. class="redioStyle"
  9743. >
  9744. <div
  9745. style="margin-right: 10px"
  9746. v-if="item2 && item2.imgType && item2.imgType == 1"
  9747. >
  9748. <div class="inImg" @click.stop="previewImg(item2.src)">
  9749. <img :src="item2.src" alt="" />
  9750. </div>
  9751. </div>
  9752. <span v-else v-html="item2"></span>
  9753. </el-radio>
  9754. </div>
  9755. </el-radio-group>
  9756. <el-checkbox-group
  9757. v-model="radio[index1]"
  9758. v-if="testJson.testJson[index1].type == '2'"
  9759. >
  9760. <div class="radioBox">
  9761. <el-checkbox
  9762. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9763. .checkList"
  9764. :key="checkIndex"
  9765. :label="checkIndex"
  9766. :disabled="isAnswer"
  9767. class="redioStyle"
  9768. >
  9769. <div
  9770. style="margin-right: 10px"
  9771. v-if="item2 && item2.imgType && item2.imgType == 1"
  9772. >
  9773. <div class="inImg" @click.stop="previewImg(item2.src)">
  9774. <img :src="item2.src" alt="" />
  9775. </div>
  9776. </div>
  9777. <span v-else v-html="item2"></span>
  9778. </el-checkbox>
  9779. </div>
  9780. </el-checkbox-group>
  9781. </div>
  9782. </div>
  9783. </div>
  9784. </div>
  9785. </div>
  9786. <span slot="footer" class="dialog-footer">
  9787. <el-button
  9788. @click="dialogVisibleChoiceTeacher = false"
  9789. v-show="noteName == ''"
  9790. >取 消</el-button
  9791. >
  9792. <el-button
  9793. type="primary"
  9794. @click="addStudentTestTeacher"
  9795. v-show="noteName == ''"
  9796. >确 定</el-button
  9797. >
  9798. </span>
  9799. </el-dialog>
  9800. <el-dialog
  9801. title="查看富文本"
  9802. :visible.sync="dialogVisible1"
  9803. :append-to-body="true"
  9804. width="500px"
  9805. :before-close="handleClose"
  9806. class="dialog_diy textCss"
  9807. >
  9808. <el-form style="font-size: 20px">
  9809. <el-form-item label="文本标题" class="textTitle">
  9810. <div style="font-size: 20px">{{ text.name }}</div>
  9811. </el-form-item>
  9812. <div>富文本内容</div>
  9813. <div
  9814. v-html="text.url"
  9815. style="font-size: 18px; padding: 40px 0 0 0"
  9816. ></div>
  9817. </el-form>
  9818. <span slot="footer" class="dialog-footer">
  9819. <el-button type="primary" @click="dialogVisible1 = false"
  9820. >确定</el-button
  9821. >
  9822. </span>
  9823. </el-dialog>
  9824. <el-dialog
  9825. title="文件预览"
  9826. :visible.sync="dialogVisible3"
  9827. width="50%"
  9828. :before-close="handleClose"
  9829. class="dialog_diy"
  9830. :class="{ fullStyle: full }"
  9831. >
  9832. <div slot="title" class="header-title">
  9833. <div style="color: #fff">文件预览</div>
  9834. <div style="position: absolute; top: 19px; right: 50px">
  9835. <img
  9836. src="../../assets/full.png"
  9837. style="height: 16px; cursor: pointer"
  9838. alt=""
  9839. @click="fullTools"
  9840. />
  9841. </div>
  9842. </div>
  9843. <pdf
  9844. v-if="showPDF"
  9845. :pdfUrl="pptImgUrl"
  9846. style="width: 100%; height: 520px; overflow: auto"
  9847. :class="{ fullStyle: full }"
  9848. ></pdf>
  9849. <iframe
  9850. v-else
  9851. :src="pptImgUrl"
  9852. frameborder="0"
  9853. width="100%"
  9854. height="600"
  9855. :class="{ fullStyle: full }"
  9856. ></iframe>
  9857. </el-dialog>
  9858. <el-dialog
  9859. title="文件预览"
  9860. :visible.sync="dialogVisible6"
  9861. width="50%"
  9862. :before-close="handleClose"
  9863. class="dialog_diy"
  9864. >
  9865. <iframe
  9866. :src="pptImgUrl1"
  9867. frameborder="0"
  9868. width="100%"
  9869. height="600"
  9870. ></iframe>
  9871. </el-dialog>
  9872. <el-dialog
  9873. title="提示"
  9874. :visible.sync="dialogVisible4"
  9875. :append-to-body="true"
  9876. width="800px"
  9877. :before-close="handleClose"
  9878. class="dialog_diy notice"
  9879. >
  9880. <div>此功能暂未开放!</div>
  9881. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9882. </el-dialog>
  9883. <el-dialog
  9884. title="问答"
  9885. :visible.sync="answerDialogVisible"
  9886. :append-to-body="true"
  9887. width="800px"
  9888. :before-close="handleClose"
  9889. class="dialog_diy"
  9890. >
  9891. <div>
  9892. <div
  9893. style="
  9894. display: flex;
  9895. flex-wrap: nowrap;
  9896. flex-direction: column;
  9897. position: relative;
  9898. "
  9899. >
  9900. <div class="queTop" style="padding: 20px 0 20px 0">
  9901. <div class="question">
  9902. <img src="../../assets/icon/question.png" alt />
  9903. </div>
  9904. <div class="queTitle">
  9905. <div style="width: 90px; min-width: 90px">提问:</div>
  9906. <div>{{ answerQ }}</div>
  9907. </div>
  9908. </div>
  9909. <div class="ediBottom">
  9910. <textarea
  9911. rows="6"
  9912. class="binfo_input"
  9913. cols
  9914. style="width: 95%; height: 120px"
  9915. v-model="questionAnswer"
  9916. ></textarea>
  9917. </div>
  9918. </div>
  9919. </div>
  9920. <div slot="footer">
  9921. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9922. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9923. </div>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="问答"
  9927. :visible.sync="answerDialogVisibleTeacher"
  9928. :append-to-body="true"
  9929. width="800px"
  9930. :before-close="handleClose"
  9931. class="dialog_diy"
  9932. >
  9933. <div>
  9934. <div class="w_name">
  9935. 学生姓名:<span>{{ sStudent.student }}</span>
  9936. </div>
  9937. <div
  9938. style="
  9939. display: flex;
  9940. flex-wrap: nowrap;
  9941. flex-direction: column;
  9942. position: relative;
  9943. "
  9944. >
  9945. <div class="queTop" style="padding: 20px 0 20px 0">
  9946. <div class="question">
  9947. <img src="../../assets/icon/question.png" alt />
  9948. </div>
  9949. <div class="queTitle">
  9950. <div style="width: 90px; min-width: 90px">提问:</div>
  9951. <div>{{ answerQ }}</div>
  9952. </div>
  9953. </div>
  9954. <div class="ediBottom">
  9955. <textarea
  9956. rows="6"
  9957. class="binfo_input"
  9958. cols
  9959. style="width: 95%; height: 120px"
  9960. v-model="questionAnswer"
  9961. ></textarea>
  9962. </div>
  9963. </div>
  9964. </div>
  9965. <div slot="footer">
  9966. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9967. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9968. </div>
  9969. </el-dialog>
  9970. <el-dialog
  9971. title="倒计时"
  9972. :visible.sync="timeDialogVisible"
  9973. :append-to-body="true"
  9974. width="800px"
  9975. :before-close="handleClose"
  9976. class="dialog_diy"
  9977. >
  9978. <div>
  9979. <div style="margin-bottom: 20px; color: #999">
  9980. 提示:点击“+”或“-”修改倒计时时长。
  9981. </div>
  9982. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9983. </div>
  9984. <div slot="footer">
  9985. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9986. </div>
  9987. </el-dialog>
  9988. <el-dialog
  9989. title="权限设置"
  9990. :visible.sync="juriVisible"
  9991. :append-to-body="true"
  9992. width="400px"
  9993. :before-close="handleClose"
  9994. class="dialog_diy"
  9995. >
  9996. <div>
  9997. <div class="open_box">
  9998. <div class="switch_box">
  9999. <span>允许学生查看所有作业</span>
  10000. <el-switch
  10001. v-model="sIsOpen"
  10002. active-text=""
  10003. class="switchCss"
  10004. @change="updateSLook"
  10005. ></el-switch>
  10006. </div>
  10007. <div
  10008. class="switch_box"
  10009. v-if="
  10010. (courseDetail.userid == userid ||
  10011. (courseDetail.course_teacher &&
  10012. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10013. "
  10014. >
  10015. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10016. <span>禁止学生查看阶段</span>
  10017. <el-switch
  10018. v-model="IsLookOpen"
  10019. active-text=""
  10020. class="switchCss"
  10021. @change="updateLookOpen"
  10022. ></el-switch>
  10023. </div>
  10024. <div class="switch_box" v-if="courseDetail.userid == userid">
  10025. <span>开启跟随模式</span>
  10026. <el-switch
  10027. v-model="IsFollow"
  10028. active-text=""
  10029. class="switchCss"
  10030. @change="updateFollow"
  10031. ></el-switch>
  10032. </div>
  10033. </div>
  10034. </div>
  10035. <div slot="footer">
  10036. <el-button
  10037. style="background: #409efe; color: #fff"
  10038. @click="juriVisible = false"
  10039. >关 闭</el-button
  10040. >
  10041. </div>
  10042. </el-dialog>
  10043. <el-dialog
  10044. title="查看视频"
  10045. :visible.sync="videoVisible"
  10046. :append-to-body="true"
  10047. width="1000px"
  10048. :before-close="handleClose"
  10049. class="dialog_diy1"
  10050. >
  10051. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10052. <video-player
  10053. class="video-player vjs-custom-skin"
  10054. :playsinline="true"
  10055. :options="videoDetail"
  10056. @play="onPlayerPlay($event)"
  10057. style="width: 100%; height: 100%"
  10058. ></video-player>
  10059. </div>
  10060. <div slot="footer">
  10061. <el-button
  10062. style="background: #409efe; color: #fff"
  10063. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10064. >
  10065. 关 闭</el-button
  10066. >
  10067. </div>
  10068. </el-dialog>
  10069. <el-dialog
  10070. title="查看详情"
  10071. :visible.sync="commentDialogVisible"
  10072. :append-to-body="true"
  10073. width="800px"
  10074. :before-close="handleClose"
  10075. class="dialog_diy"
  10076. >
  10077. <div class="commentTop">
  10078. <div class="studentDetail">
  10079. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10080. <div class="nameAndTime">
  10081. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10082. <div>{{ commentDetail.time }}</div>
  10083. </div>
  10084. <div
  10085. class="returnBtn"
  10086. style="margin-left: auto; width: 80px"
  10087. v-if="
  10088. commentDetail.works &&
  10089. commentDetail.type == 0 &&
  10090. (tType == 1 || tType == 4)
  10091. "
  10092. @click="
  10093. showPicturePaint(
  10094. commentDetail.img ? commentDetail.img : commentDetail.works
  10095. )
  10096. "
  10097. >
  10098. 教师批注
  10099. </div>
  10100. </div>
  10101. <div
  10102. class="worksAnswer"
  10103. v-if="commentDetail.works && commentDetail.type == 2"
  10104. >
  10105. {{ JSON.parse(commentDetail.works)[0].answer }}
  10106. </div>
  10107. <div
  10108. class="worksAnswer"
  10109. v-if="commentDetail.works && commentDetail.type == 1"
  10110. >
  10111. <img
  10112. src="../../assets/teacherWork.png"
  10113. v-if="commentDetail.ateacher"
  10114. class="w_teachert"
  10115. />
  10116. <pdf
  10117. v-if="showPDF"
  10118. :pdfUrl="pptImgUrl"
  10119. style="width: 100%; height: 520px; overflow: auto"
  10120. :class="{ fullStyle: full }"
  10121. ></pdf>
  10122. <iframe
  10123. v-else
  10124. :src="pptImgUrl"
  10125. frameborder="0"
  10126. width="100%"
  10127. height="600"
  10128. :class="{ fullStyle: full }"
  10129. ></iframe>
  10130. </div>
  10131. <div
  10132. class="worksAnswer"
  10133. v-if="commentDetail.works && commentDetail.type == 0"
  10134. >
  10135. <img
  10136. src="../../assets/teacherWork.png"
  10137. v-if="commentDetail.ateacher"
  10138. class="w_teachert"
  10139. style="right: 105px"
  10140. />
  10141. <img
  10142. :src="commentDetail.works"
  10143. alt=""
  10144. @click="previewImg(commentDetail.works)"
  10145. />
  10146. </div>
  10147. <div
  10148. class="worksAnswer"
  10149. v-if="commentDetail.works && commentDetail.type == 3"
  10150. >
  10151. <img
  10152. src="../../assets/teacherWork.png"
  10153. v-if="commentDetail.ateacher"
  10154. class="w_teachert"
  10155. />
  10156. <video-player
  10157. class="video-player vjs-custom-skin"
  10158. :playsinline="true"
  10159. :options="videoDetail"
  10160. @play="onPlayerPlay($event)"
  10161. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10162. ></video-player>
  10163. </div>
  10164. <div
  10165. class="worksAnswer"
  10166. v-if="commentDetail.works && commentDetail.type == 10"
  10167. >
  10168. <div class="cont" v-html="commentDetail.works.text"></div>
  10169. </div>
  10170. <div
  10171. class="worksAnswer codeFileBox"
  10172. v-if="commentDetail.works && commentDetail.type == 12"
  10173. @click="downloadFile(commentDetail.works)"
  10174. >
  10175. <img src="../../assets/icon/codeFile.png" />
  10176. <div>点击下载文件</div>
  10177. </div>
  10178. <div
  10179. class="worksAnswer codeFileBox"
  10180. v-if="commentDetail.works && commentDetail.type == 15"
  10181. @click="
  10182. openCocoPi(
  10183. 57,
  10184. commentIndexJson.toolIndex,
  10185. commentDetail.userid,
  10186. commentDetail.sName
  10187. )
  10188. "
  10189. >
  10190. <img src="../../assets/icon/codeFile.png" />
  10191. <div>点击打开CocoPi</div>
  10192. </div>
  10193. <div
  10194. class="worksAnswer"
  10195. v-if="commentDetail.works && commentDetail.type == 13"
  10196. >
  10197. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10198. </div>
  10199. <div
  10200. class="worksAnswer"
  10201. v-if="commentDetail.works && commentDetail.type == 4"
  10202. >
  10203. <div class="evalCss">
  10204. <div class="nav">请选择星星进行评分</div>
  10205. <div class="middleBox" v-if="eScore.eStar">
  10206. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10207. <div class="nameAndrate">
  10208. <div>{{ e.value }}</div>
  10209. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10210. </div>
  10211. <div v-if="e.detail">{{ e.detail }}</div>
  10212. </div>
  10213. <div class="bz">
  10214. <textarea
  10215. disabled
  10216. rows="4"
  10217. class="pj"
  10218. style="
  10219. padding: 10px 5px;
  10220. width: 70%;
  10221. background: #f7f6f9;
  10222. font-size: 14px;
  10223. text-indent: 10px;
  10224. color: #000;
  10225. "
  10226. cols
  10227. v-model="eScore.eBzText"
  10228. placeholder="请输入评价内容..."
  10229. ></textarea>
  10230. </div>
  10231. </div>
  10232. </div>
  10233. </div>
  10234. <div class="comment">
  10235. <div class="commentList">
  10236. <div class="commentImg">
  10237. <img
  10238. @click="
  10239. isLikes(
  10240. commentDetail.wid,
  10241. userid,
  10242. 1,
  10243. null,
  10244. commentDetail.isLikes,
  10245. commentDetail.sName
  10246. )
  10247. "
  10248. :src="commentDetail.isLikes == true ? likes : noLikes"
  10249. alt=""
  10250. />
  10251. </div>
  10252. <div>{{ commentDetail.likesCount }}</div>
  10253. </div>
  10254. <div class="commentList">
  10255. <div class="commentImg">
  10256. <img src="../../assets/icon/comment/comment.png" alt="" />
  10257. </div>
  10258. <div>{{ commentDetail.commentCount }}</div>
  10259. </div>
  10260. </div>
  10261. <div class="drawPBox" v-if="commentDetail.img">
  10262. <span>教师批注</span>
  10263. <img
  10264. :src="commentDetail.img"
  10265. alt=""
  10266. @click="previewImg(commentDetail.img)"
  10267. />
  10268. <span
  10269. class="deleteImg"
  10270. v-if="tType == 1 || tType == 4"
  10271. @click.stop="deletePicturePaint(commentDetail.wid)"
  10272. style="
  10273. font-size: 14px;
  10274. width: auto !important;
  10275. color: #b4b4b4;
  10276. top: unset;
  10277. bottom: 0;
  10278. border: none;
  10279. padding: 0;
  10280. height: auto !important;
  10281. margin: 0;
  10282. "
  10283. >删除</span
  10284. >
  10285. </div>
  10286. </div>
  10287. <div class="commentBox">
  10288. <div class="pl">评论:</div>
  10289. <div style="max-height: 200px; overflow: auto">
  10290. <div
  10291. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10292. style="padding: 10px 0 0 0"
  10293. >
  10294. <div
  10295. class="studentDetail"
  10296. style="padding-top: 10px"
  10297. v-for="(co, coIndex) in commentDetail.commentJson"
  10298. :key="coIndex"
  10299. >
  10300. <div class="tx" style="min-width: 50px">
  10301. <img src="../../assets/avatar.png" alt="" />
  10302. </div>
  10303. <div class="plPerson">
  10304. <div class="plName">
  10305. <div>{{ co.commentPeople }}</div>
  10306. <div style="margin-left: 5px">
  10307. {{ co.commentTime }}
  10308. </div>
  10309. <div
  10310. class="deleteComment"
  10311. v-if="userid == co.userid"
  10312. @click="deleteComment(co.wid)"
  10313. >
  10314. 删除
  10315. </div>
  10316. </div>
  10317. <div class="plContent">{{ co.commentText }}</div>
  10318. </div>
  10319. </div>
  10320. </div>
  10321. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10322. </div>
  10323. </div>
  10324. <div style="margin-top: 10px">
  10325. <div class="displayBox">
  10326. <div
  10327. style="
  10328. color: #556db4;
  10329. font-size: 14px;
  10330. font-weight: bold;
  10331. padding-bottom: 10px;
  10332. "
  10333. >
  10334. 评价
  10335. </div>
  10336. <div class="easy_comment" v-if="false">
  10337. <div
  10338. v-for="(p, pIndex) in PlTextList"
  10339. :key="pIndex"
  10340. @click="fastText(p, 1)"
  10341. >
  10342. {{ p }}
  10343. </div>
  10344. </div>
  10345. </div>
  10346. <div>
  10347. <textarea
  10348. rows="3"
  10349. class="pj"
  10350. style="padding: 10px 5px"
  10351. cols
  10352. v-model="commentText"
  10353. placeholder="请输入评论"
  10354. ></textarea>
  10355. </div>
  10356. </div>
  10357. <div slot="footer">
  10358. <el-button
  10359. @click="
  10360. (commentDialogVisible = false),
  10361. (commentIndexJson = {}),
  10362. videoDetail.sources && videoDetail.sources[0]
  10363. ? (videoDetail.sources[0].src = '')
  10364. : ''
  10365. "
  10366. >取 消</el-button
  10367. >
  10368. <el-button
  10369. type="primary"
  10370. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10371. >确 定</el-button
  10372. >
  10373. </div>
  10374. </el-dialog>
  10375. <el-dialog
  10376. title="查看文档"
  10377. :visible.sync="fullDialogVisible"
  10378. :append-to-body="true"
  10379. width="100%"
  10380. :before-close="handleClose"
  10381. :show-close="false"
  10382. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10383. >
  10384. <div slot="title" class="header-title">
  10385. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10386. <div v-else style="color: #fff">查看文档</div>
  10387. <div
  10388. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10389. style="
  10390. cursor: pointer;
  10391. position: absolute;
  10392. top: 20px;
  10393. right: 20px;
  10394. color: #fff;
  10395. "
  10396. >
  10397. 退出全屏
  10398. </div>
  10399. </div>
  10400. <div style="height: 100%;position: relative;">
  10401. <el-button
  10402. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10403. size="medium"
  10404. type="primary"
  10405. @click="
  10406. () => {
  10407. (fullDialogVisible = false),
  10408. changeSplitScreenBehavior({ code: 99 });
  10409. }
  10410. "
  10411. style="
  10412. cursor: pointer;
  10413. position: absolute;
  10414. top: 10px;
  10415. right: 20px;
  10416. color: #fff;
  10417. "
  10418. >
  10419. 退出全屏
  10420. </el-button>
  10421. <div
  10422. class="wheel"
  10423. v-if="
  10424. (fulltype == 2 || fulltype == 4) &&
  10425. fullUrl.indexOf(
  10426. 'https://view.officeapps.live.com/op/view.aspx?src='
  10427. ) != -1
  10428. "
  10429. style="width: 100%;height:100%; margin: 0 auto"
  10430. >
  10431. <iframe
  10432. style="width: 100%; height: 100%; border: none"
  10433. :src="fullUrl"
  10434. ></iframe>
  10435. </div>
  10436. <iframe
  10437. style="width: 100%; height: 100%; border: none"
  10438. 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"
  10439. :src="fullUrl"
  10440. ></iframe>
  10441. <iframe
  10442. style="width: 100%; height: 100%; border: none"
  10443. security="restricted"
  10444. v-else-if="(fulltype == 2 || fulltype == 4)"
  10445. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10446. :src="fullUrl"
  10447. ></iframe>
  10448. <pdf
  10449. v-else-if="fulltype == 3"
  10450. :pdfUrl="fullUrl"
  10451. style="width: 100%; height: 100%; overflow: auto"
  10452. ></pdf>
  10453. <div
  10454. class="wheel"
  10455. v-if="fulltype == 1"
  10456. style="
  10457. box-shadow: 0 0 6px 1px #f2f2f2;
  10458. height:100%;
  10459. width: 100%;
  10460. background: #f1f1f1;
  10461. "
  10462. >
  10463. <div class="title" style="width: 100%; box-sizing: border-box">
  10464. 查看文档
  10465. </div>
  10466. <el-form class="textBox" style="height: 90%">
  10467. <el-form-item class="textTitle">
  10468. <div style="font-size: 22px">
  10469. {{ fullUrl.name }}
  10470. </div>
  10471. </el-form-item>
  10472. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10473. <div
  10474. v-html="fullUrl.url"
  10475. class="textContent"
  10476. style="height: auto"
  10477. ></div>
  10478. </el-form>
  10479. </div>
  10480. </div>
  10481. <!-- <div slot="footer">
  10482. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10483. </div> -->
  10484. </el-dialog>
  10485. <el-dialog
  10486. title="个人评价"
  10487. :visible.sync="studentEvalDialogVisible"
  10488. :append-to-body="true"
  10489. width="800px"
  10490. :before-close="handleClose"
  10491. class="dialog_diy"
  10492. >
  10493. <div class="evalCss">
  10494. <div class="nav">请选择星星进行评分</div>
  10495. <div class="middleBox" v-if="eScore.eStar">
  10496. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10497. <div class="nameAndrate">
  10498. <div>{{ e.value }}</div>
  10499. <el-rate
  10500. v-model="eScore.eStar[eIndex]"
  10501. :disabled="isStar"
  10502. ></el-rate>
  10503. </div>
  10504. <div v-if="e.detail">{{ e.detail }}</div>
  10505. </div>
  10506. <div class="easy_comment" v-if="false">
  10507. <div
  10508. v-for="(p, pIndex) in PlTextList"
  10509. :key="pIndex"
  10510. @click="fastText(p, 2)"
  10511. >
  10512. {{ p }}
  10513. </div>
  10514. </div>
  10515. <div class="bz">
  10516. <textarea
  10517. :disabled="isStar"
  10518. rows="4"
  10519. class="pj"
  10520. style="
  10521. padding: 10px 5px;
  10522. width: 70%;
  10523. background: #f7f6f9;
  10524. font-size: 14px;
  10525. text-indent: 10px;
  10526. "
  10527. cols
  10528. v-model="eScore.eBzText"
  10529. placeholder="请输入评价内容..."
  10530. ></textarea>
  10531. </div>
  10532. </div>
  10533. </div>
  10534. <div slot="footer">
  10535. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10536. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10537. >确 定</el-button
  10538. >
  10539. </div>
  10540. </el-dialog>
  10541. <el-dialog
  10542. title="个人评价"
  10543. :visible.sync="studentEvalDialogVisibleTeacher"
  10544. :append-to-body="true"
  10545. width="800px"
  10546. :before-close="handleClose"
  10547. class="dialog_diy"
  10548. >
  10549. <div class="w_name">
  10550. 学生姓名:<span>{{ sStudent.student }}</span>
  10551. </div>
  10552. <div class="evalCss">
  10553. <div class="nav">请选择星星进行评分</div>
  10554. <div class="middleBox" v-if="eScore.eStar">
  10555. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10556. <div class="nameAndrate">
  10557. <div>{{ e.value }}</div>
  10558. <el-rate
  10559. v-model="eScore.eStar[eIndex]"
  10560. :disabled="isStar"
  10561. ></el-rate>
  10562. </div>
  10563. <div v-if="e.detail">{{ e.detail }}</div>
  10564. </div>
  10565. <div class="easy_comment" v-if="false">
  10566. <div
  10567. v-for="(p, pIndex) in PlTextList"
  10568. :key="pIndex"
  10569. @click="fastText(p, 2)"
  10570. >
  10571. {{ p }}
  10572. </div>
  10573. </div>
  10574. <div class="bz">
  10575. <textarea
  10576. :disabled="isStar"
  10577. rows="4"
  10578. class="pj"
  10579. style="
  10580. padding: 10px 5px;
  10581. width: 70%;
  10582. background: #f7f6f9;
  10583. font-size: 14px;
  10584. text-indent: 10px;
  10585. "
  10586. cols
  10587. v-model="eScore.eBzText"
  10588. placeholder="请输入评价内容..."
  10589. ></textarea>
  10590. </div>
  10591. </div>
  10592. </div>
  10593. <div slot="footer">
  10594. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10595. >取 消</el-button
  10596. >
  10597. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10598. >确 定</el-button
  10599. >
  10600. </div>
  10601. </el-dialog>
  10602. <el-dialog
  10603. title="选择匹配"
  10604. :visible.sync="dialogVisibleSelect"
  10605. :append-to-body="true"
  10606. width="90%"
  10607. :before-close="handleClose"
  10608. class="dialog_diy dialog_diy3"
  10609. >
  10610. <div v-if="selectJson">
  10611. <div class="select_box2">
  10612. <div class="select_box2_title">
  10613. <div>选择匹配</div>
  10614. <div>请选择对应的答案进行答题!</div>
  10615. </div>
  10616. <div class="select_box2_box">
  10617. <div class="select_box2_img">
  10618. <img
  10619. :src="selectJson.url"
  10620. @click="previewImg(selectJson.url)"
  10621. alt=""
  10622. />
  10623. </div>
  10624. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10625. <div style="padding-top: 15px">
  10626. <div class="select_answer_title" v-if="isSelect">
  10627. {{ selectAnswer.stu }}
  10628. </div>
  10629. <div class="select_answer_title" v-else>
  10630. 根据题目选择对应答案
  10631. </div>
  10632. <div
  10633. class="select_box2_answer_box"
  10634. v-for="(item2, checkIndex) in selectJson.select"
  10635. :key="checkIndex"
  10636. >
  10637. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10638. <el-select
  10639. :disabled="isSelect"
  10640. v-model="selectAnswer.answer[checkIndex]"
  10641. placeholder="请选择正确答案"
  10642. >
  10643. <el-option
  10644. v-for="(e, eIndex) in selectJson.select"
  10645. :key="eIndex"
  10646. :label="e"
  10647. :value="eIndex"
  10648. >
  10649. </el-option>
  10650. </el-select>
  10651. </div>
  10652. </div>
  10653. <div
  10654. class="rightAnswerCss"
  10655. v-if="isSelect && (tType == 1 || tType == 4)"
  10656. >
  10657. <div
  10658. v-for="(a, aIndex) in selectJson.answer"
  10659. :key="aIndex"
  10660. class="rightAnswer"
  10661. >
  10662. <div
  10663. v-if="selectAnswer.answer[aIndex] === a"
  10664. style="color: #767de1"
  10665. >
  10666. 回答正确
  10667. </div>
  10668. <div v-else>回答错误</div>
  10669. <div
  10670. style="margin-left: 10px"
  10671. v-if="selectAnswer.answer[aIndex] !== a"
  10672. >
  10673. 正确答案:
  10674. </div>
  10675. <div
  10676. :class="
  10677. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10678. "
  10679. >
  10680. {{ selectJson.select[a] }}
  10681. </div>
  10682. </div>
  10683. </div>
  10684. </div>
  10685. <div class="upAnswerCss">
  10686. <el-button
  10687. type="primary"
  10688. @click="addSelectAnswer"
  10689. v-if="!isSelect"
  10690. >提交答案</el-button
  10691. >
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. </el-dialog>
  10697. <el-dialog
  10698. title="选择匹配"
  10699. :visible.sync="dialogVisibleSelectTeacher"
  10700. :append-to-body="true"
  10701. width="90%"
  10702. :before-close="handleClose"
  10703. class="dialog_diy dialog_diy3"
  10704. >
  10705. <div v-if="selectJson">
  10706. <div class="w_name">
  10707. 学生姓名:<span>{{ sStudent.student }}</span>
  10708. </div>
  10709. <div class="select_box2">
  10710. <div class="select_box2_title">
  10711. <div>选择匹配</div>
  10712. <div>请选择对应的答案进行答题!</div>
  10713. </div>
  10714. <div class="select_box2_box">
  10715. <div class="select_box2_img">
  10716. <img
  10717. :src="selectJson.url"
  10718. @click="previewImg(selectJson.url)"
  10719. alt=""
  10720. />
  10721. </div>
  10722. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10723. <div style="padding-top: 15px">
  10724. <div class="select_answer_title" v-if="isSelect">
  10725. {{ selectAnswer.stu }}
  10726. </div>
  10727. <div class="select_answer_title" v-else>
  10728. 根据题目选择对应答案
  10729. </div>
  10730. <div
  10731. class="select_box2_answer_box"
  10732. v-for="(item2, checkIndex) in selectJson.select"
  10733. :key="checkIndex"
  10734. >
  10735. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10736. <el-select
  10737. :disabled="isSelect"
  10738. v-model="selectAnswer.answer[checkIndex]"
  10739. placeholder="请选择正确答案"
  10740. >
  10741. <el-option
  10742. v-for="(e, eIndex) in selectJson.select"
  10743. :key="eIndex"
  10744. :label="e"
  10745. :value="eIndex"
  10746. >
  10747. </el-option>
  10748. </el-select>
  10749. </div>
  10750. </div>
  10751. <div
  10752. class="rightAnswerCss"
  10753. v-if="isSelect && (tType == 1 || tType == 4)"
  10754. >
  10755. <div
  10756. v-for="(a, aIndex) in selectJson.answer"
  10757. :key="aIndex"
  10758. class="rightAnswer"
  10759. >
  10760. <div
  10761. v-if="selectAnswer.answer[aIndex] === a"
  10762. style="color: #767de1"
  10763. >
  10764. 回答正确
  10765. </div>
  10766. <div v-else>回答错误</div>
  10767. <div
  10768. style="margin-left: 10px"
  10769. v-if="selectAnswer.answer[aIndex] !== a"
  10770. >
  10771. 正确答案:
  10772. </div>
  10773. <div
  10774. :class="
  10775. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10776. "
  10777. >
  10778. {{ selectJson.select[a] }}
  10779. </div>
  10780. </div>
  10781. </div>
  10782. </div>
  10783. <div class="upAnswerCss">
  10784. <el-button
  10785. type="primary"
  10786. @click="addSelectAnswerTeacher"
  10787. v-if="!isSelect"
  10788. >提交答案</el-button
  10789. >
  10790. </div>
  10791. </div>
  10792. </div>
  10793. </div>
  10794. </el-dialog>
  10795. <el-dialog
  10796. title="教师评分"
  10797. :visible.sync="dialogVisibleScore"
  10798. :append-to-body="true"
  10799. width="800px"
  10800. :before-close="handleClose"
  10801. class="dialog_diy"
  10802. >
  10803. <div>
  10804. <div class="studentDetail">
  10805. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10806. <div class="nameAndTime">
  10807. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10808. <div>{{ commentDetail.time }}</div>
  10809. </div>
  10810. </div>
  10811. <div
  10812. class="worksAnswer"
  10813. v-if="commentDetail.works && commentDetail.type == 2"
  10814. >
  10815. {{ JSON.parse(commentDetail.works)[0].answer }}
  10816. </div>
  10817. <div
  10818. class="worksAnswer"
  10819. v-if="commentDetail.works && commentDetail.type == 1"
  10820. >
  10821. <pdf
  10822. v-if="showPDF"
  10823. :pdfUrl="pptImgUrl"
  10824. style="width: 100%; height: 520px; overflow: auto"
  10825. :class="{ fullStyle: full }"
  10826. ></pdf>
  10827. <iframe
  10828. v-else
  10829. :src="pptImgUrl"
  10830. frameborder="0"
  10831. width="100%"
  10832. height="600"
  10833. :class="{ fullStyle: full }"
  10834. ></iframe>
  10835. </div>
  10836. <div
  10837. class="worksAnswer"
  10838. v-if="commentDetail.works && commentDetail.type == 0"
  10839. >
  10840. <img
  10841. :src="commentDetail.works"
  10842. alt=""
  10843. @click="previewImg(commentDetail.works)"
  10844. />
  10845. </div>
  10846. <div
  10847. class="worksAnswer"
  10848. v-if="commentDetail.works && commentDetail.type == 3"
  10849. >
  10850. <video-player
  10851. class="video-player vjs-custom-skin"
  10852. :playsinline="true"
  10853. :options="videoDetail"
  10854. @play="onPlayerPlay($event)"
  10855. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10856. ></video-player>
  10857. </div>
  10858. <div
  10859. class="worksAnswer codeFileBox"
  10860. v-if="commentDetail.works && commentDetail.type == 12"
  10861. @click="downloadFile(commentDetail.works)"
  10862. >
  10863. <img src="../../assets/icon/codeFile.png" />
  10864. <div>点击下载文件</div>
  10865. </div>
  10866. <div
  10867. class="worksAnswer codeFileBox"
  10868. v-if="commentDetail.works && commentDetail.type == 15"
  10869. @click="
  10870. openCocoPi(
  10871. 57,
  10872. commentIndexJson.toolIndex,
  10873. commentDetail.userid,
  10874. commentDetail.sName
  10875. )
  10876. "
  10877. >
  10878. <img src="../../assets/icon/codeFile.png" />
  10879. <div>点击打开CocoPi</div>
  10880. </div>
  10881. <div
  10882. class="worksAnswer"
  10883. v-if="commentDetail.works && commentDetail.type == 13"
  10884. >
  10885. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10886. </div>
  10887. <div class="scoreBox">
  10888. <span class="t">请输入分数</span>
  10889. <el-input-number
  10890. :disabled="courseDetail.userid != userid"
  10891. v-model="wScore"
  10892. :controls="false"
  10893. :min="0"
  10894. :max="100"
  10895. ></el-input-number>
  10896. </div>
  10897. <div class="scoreDetailBox">
  10898. <span class="t">评分评论</span>
  10899. <el-input
  10900. type="textarea"
  10901. :rows="5"
  10902. :disabled="courseDetail.userid != userid"
  10903. resize="none"
  10904. v-model="scoreDetail"
  10905. placeholder="请输入对学生的评价"
  10906. >
  10907. </el-input>
  10908. </div>
  10909. </div>
  10910. <span slot="footer" class="dialog-footer">
  10911. <el-button
  10912. @click="
  10913. (dialogVisibleScore = false),
  10914. (commentIndexJson = {}),
  10915. videoDetail.sources && videoDetail.sources[0]
  10916. ? (videoDetail.sources[0].src = '')
  10917. : ''
  10918. "
  10919. >取 消</el-button
  10920. >
  10921. <el-button
  10922. type="primary"
  10923. v-if="courseDetail.userid == userid"
  10924. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10925. >确 定
  10926. </el-button>
  10927. </span>
  10928. </el-dialog>
  10929. <el-dialog
  10930. title="排序"
  10931. :visible.sync="dialogVisibleSentence"
  10932. :append-to-body="true"
  10933. width="1000px"
  10934. :before-close="handleClose"
  10935. class="dialog_diy dialog_diy3"
  10936. >
  10937. <div>
  10938. <div class="sentenBox">
  10939. <div
  10940. v-for="(st, stIndex) in sentenceList"
  10941. :key="stIndex"
  10942. style="padding-bottom: 20px"
  10943. >
  10944. <div
  10945. style="padding: 15px 0 10px 20px"
  10946. class="sentenceTitle"
  10947. :index="stIndex + 1"
  10948. >
  10949. 题目{{ stIndex + 1 }}:请选择正确顺序
  10950. </div>
  10951. <div class="cardList" v-if="st.chooseSenList">
  10952. <div class="cardBox">
  10953. <div
  10954. v-for="(r, rIndex) in st.chooseSenList"
  10955. :key="rIndex"
  10956. @click="returnCard(r, stIndex, rIndex)"
  10957. >
  10958. <el-tooltip
  10959. class="item"
  10960. effect="light"
  10961. :content="r"
  10962. placement="top"
  10963. v-if="r != '' && r != undefined"
  10964. >
  10965. <div
  10966. :class="{
  10967. isCard: r,
  10968. isChooseCard: r == '' || r == undefined,
  10969. }"
  10970. >
  10971. <div>{{ r }}</div>
  10972. </div>
  10973. </el-tooltip>
  10974. <div
  10975. :class="{
  10976. isCard: r,
  10977. isChooseCard: r == '' || r == undefined,
  10978. }"
  10979. v-else
  10980. >
  10981. <div>{{ r }}</div>
  10982. </div>
  10983. </div>
  10984. </div>
  10985. </div>
  10986. <div class="cardList" v-if="st.addChangeSen">
  10987. <div class="cardBox">
  10988. <div
  10989. v-for="(s, sIndex) in st.addChangeSen"
  10990. :key="sIndex"
  10991. @click="setRightAnswer(s, stIndex, sIndex)"
  10992. >
  10993. <el-tooltip
  10994. class="item"
  10995. effect="light"
  10996. :content="s"
  10997. placement="top"
  10998. v-if="s != '' && s != undefined"
  10999. >
  11000. <div
  11001. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11002. >
  11003. <div>{{ s }}</div>
  11004. </div>
  11005. </el-tooltip>
  11006. <div
  11007. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11008. v-else
  11009. >
  11010. <div>{{ s }}</div>
  11011. </div>
  11012. </div>
  11013. </div>
  11014. </div>
  11015. </div>
  11016. </div>
  11017. </div>
  11018. <span slot="footer" class="dialog-footer">
  11019. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11020. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11021. </span>
  11022. </el-dialog>
  11023. <el-dialog
  11024. title="排序"
  11025. :visible.sync="dialogVisibleSentenceTeacher"
  11026. :append-to-body="true"
  11027. width="1000px"
  11028. :before-close="handleClose"
  11029. class="dialog_diy dialog_diy3"
  11030. >
  11031. <div>
  11032. <div class="w_name">
  11033. 学生姓名:<span>{{ sStudent.student }}</span>
  11034. </div>
  11035. <div class="sentenBox">
  11036. <div
  11037. v-for="(st, stIndex) in sentenceList"
  11038. :key="stIndex"
  11039. style="padding-bottom: 20px"
  11040. >
  11041. <div
  11042. style="padding: 15px 0 10px 20px"
  11043. class="sentenceTitle"
  11044. :index="stIndex + 1"
  11045. >
  11046. 题目{{ stIndex + 1 }}:请选择正确顺序
  11047. </div>
  11048. <div class="cardList" v-if="st.chooseSenList">
  11049. <div class="cardBox">
  11050. <div
  11051. v-for="(r, rIndex) in st.chooseSenList"
  11052. :key="rIndex"
  11053. @click="returnCard(r, stIndex, rIndex)"
  11054. >
  11055. <el-tooltip
  11056. class="item"
  11057. effect="light"
  11058. :content="r"
  11059. placement="top"
  11060. v-if="r != '' && r != undefined"
  11061. >
  11062. <div
  11063. :class="{
  11064. isCard: r,
  11065. isChooseCard: r == '' || r == undefined,
  11066. }"
  11067. >
  11068. <div>{{ r }}</div>
  11069. </div>
  11070. </el-tooltip>
  11071. <div
  11072. :class="{
  11073. isCard: r,
  11074. isChooseCard: r == '' || r == undefined,
  11075. }"
  11076. v-else
  11077. >
  11078. <div>{{ r }}</div>
  11079. </div>
  11080. </div>
  11081. </div>
  11082. </div>
  11083. <div class="cardList" v-if="st.addChangeSen">
  11084. <div class="cardBox">
  11085. <div
  11086. v-for="(s, sIndex) in st.addChangeSen"
  11087. :key="sIndex"
  11088. @click="setRightAnswer(s, stIndex, sIndex)"
  11089. >
  11090. <el-tooltip
  11091. class="item"
  11092. effect="light"
  11093. :content="s"
  11094. placement="top"
  11095. v-if="s != '' && s != undefined"
  11096. >
  11097. <div
  11098. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11099. >
  11100. <div>{{ s }}</div>
  11101. </div>
  11102. </el-tooltip>
  11103. <div
  11104. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11105. v-else
  11106. >
  11107. <div>{{ s }}</div>
  11108. </div>
  11109. </div>
  11110. </div>
  11111. </div>
  11112. </div>
  11113. </div>
  11114. </div>
  11115. <span slot="footer" class="dialog-footer">
  11116. <el-button @click="dialogVisibleSentenceTeacher = false"
  11117. >取 消</el-button
  11118. >
  11119. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11120. </span>
  11121. </el-dialog>
  11122. <el-dialog
  11123. title="排序"
  11124. :visible.sync="dialogVisibleSentence1"
  11125. :append-to-body="true"
  11126. width="1000px"
  11127. :before-close="handleClose"
  11128. class="dialog_diy dialog_diy3"
  11129. >
  11130. <div>
  11131. <div class="sentenBox">
  11132. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11133. {{ sentenceList1.stuName }}的作业
  11134. </div>
  11135. <div
  11136. v-for="(st, stIndex) in sentenceList1"
  11137. :key="stIndex"
  11138. style="padding-bottom: 20px"
  11139. >
  11140. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11141. 第{{ stIndex + 1 }}题
  11142. </div>
  11143. <div class="isWrong">
  11144. <div class="cardList1" v-if="st.chooseSenList">
  11145. <div class="cardBox">
  11146. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11147. <el-tooltip
  11148. class="item"
  11149. effect="light"
  11150. :content="s"
  11151. placement="top"
  11152. >
  11153. <div class="isCard">
  11154. <div>{{ s }}</div>
  11155. </div>
  11156. </el-tooltip>
  11157. </div>
  11158. </div>
  11159. <div class="cardAnswerBox">
  11160. 组成句子:{{ st.chooseSenList.join(" ") }}
  11161. </div>
  11162. </div>
  11163. <div v-if="tType == 2" class="isTj">
  11164. <div class="isTjImg">
  11165. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11166. </div>
  11167. <div>已提交</div>
  11168. </div>
  11169. <div
  11170. class="answerRight isTj"
  11171. v-if="
  11172. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11173. (tType == 1 || tType == 4)
  11174. "
  11175. >
  11176. <div class="isTjImg">
  11177. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11178. </div>
  11179. <div>回答正确</div>
  11180. </div>
  11181. <div
  11182. class="answerRight isTj"
  11183. v-if="
  11184. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11185. (tType == 1 || tType == 4)
  11186. "
  11187. >
  11188. <div class="isTjImg">
  11189. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11190. </div>
  11191. <div>回答错误</div>
  11192. </div>
  11193. </div>
  11194. <div
  11195. v-if="
  11196. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11197. (tType == 1 || tType == 4)
  11198. "
  11199. >
  11200. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11201. <div
  11202. class="cardList"
  11203. v-if="st.rightAnswer"
  11204. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11205. >
  11206. <div class="cardBox">
  11207. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11208. <el-tooltip
  11209. class="item"
  11210. effect="light"
  11211. :content="r"
  11212. placement="top"
  11213. >
  11214. <div class="isCard1">
  11215. <div>{{ r }}</div>
  11216. </div>
  11217. </el-tooltip>
  11218. </div>
  11219. </div>
  11220. <div class="cardAnswerBox">
  11221. 组成句子:{{ st.rightAnswer.join(" ") }}
  11222. </div>
  11223. </div>
  11224. </div>
  11225. </div>
  11226. </div>
  11227. </div>
  11228. <span slot="footer" class="dialog-footer">
  11229. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11230. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11231. >确 定</el-button
  11232. >
  11233. </span>
  11234. </el-dialog>
  11235. <el-dialog
  11236. title="教师提交作业"
  11237. :visible.sync="dialogVisibleWorks"
  11238. :append-to-body="true"
  11239. width="500px"
  11240. :before-close="handleClose"
  11241. class="dialog_change"
  11242. >
  11243. <div class="marginT">
  11244. <div class="w_name">
  11245. 学生姓名:<span>{{ sStudent.student }}</span>
  11246. </div>
  11247. <div>上传文件</div>
  11248. <div
  11249. class="chapter_add"
  11250. @click="addImg($event)"
  11251. v-if="studyJuri[0].cover.length == 0"
  11252. >
  11253. <div class="up_photo">
  11254. <img src="../../assets/uploadImg2.png" alt />
  11255. </div>
  11256. <!-- <input
  11257. type="file"
  11258. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11259. style="display: none"
  11260. @change="beforeUpload1($event, 1)"
  11261. /> -->
  11262. <input
  11263. type="file"
  11264. accept="*"
  11265. style="display: none"
  11266. @change="beforeUpload1($event, 1)"
  11267. />
  11268. </div>
  11269. <!-- capture="camera" -->
  11270. <div
  11271. class="chapter_add"
  11272. style="
  11273. display: flex;
  11274. width: 100%;
  11275. flex-direction: row;
  11276. flex-wrap: wrap;
  11277. justify-content: flex-start;
  11278. padding: 15px 0;
  11279. "
  11280. v-if="studyJuri[0].cover.length > 0"
  11281. >
  11282. <div class="upCover">
  11283. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11284. <img :src="word" alt v-else-if="fileType == 1" />
  11285. <img :src="video" alt v-else-if="fileType == 2" />
  11286. <img :src="word2" alt v-else-if="fileType == 3" />
  11287. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11288. <div class="deleteWord" @click="clean(1)">
  11289. <img src="../../assets/icon/deleteWorks.png" alt />
  11290. </div>
  11291. </div>
  11292. </div>
  11293. </div>
  11294. <div
  11295. class="upload_send"
  11296. @click="addCourseWorksTeacher(taskCount)"
  11297. v-if="!proVisible"
  11298. >
  11299. 提交
  11300. </div>
  11301. </el-dialog>
  11302. <ImgDraw
  11303. :drawShow="drawShow"
  11304. @closeDraw="closeDraw"
  11305. @addImgDraw="addImgDraw"
  11306. :bg="bg"
  11307. ></ImgDraw>
  11308. <el-dialog
  11309. title="表格"
  11310. :visible.sync="dialogVisibleTable"
  11311. :append-to-body="true"
  11312. width="95%"
  11313. :before-close="handleClose"
  11314. class="dialog_diy"
  11315. >
  11316. <el-form>
  11317. <div
  11318. style="
  11319. display: flex;
  11320. align-items: center;
  11321. justify-content: space-between;
  11322. "
  11323. >
  11324. <span>表格内容</span>
  11325. <el-button type="primary" size="small" @click="returnTableText"
  11326. >还原模板</el-button
  11327. >
  11328. </div>
  11329. <Table
  11330. v-model="tableJson.text"
  11331. @change="change"
  11332. v-if="dialogVisibleTable"
  11333. ></Table>
  11334. </el-form>
  11335. <span slot="footer" class="dialog-footer">
  11336. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11337. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11338. </span>
  11339. </el-dialog>
  11340. <el-dialog
  11341. title="表格"
  11342. :visible.sync="dialogVisibleTableTeacher"
  11343. :append-to-body="true"
  11344. width="95%"
  11345. :before-close="handleClose"
  11346. class="dialog_diy"
  11347. >
  11348. <el-form>
  11349. <div class="w_name">
  11350. 学生姓名:<span>{{ sStudent.student }}</span>
  11351. </div>
  11352. <div>表格内容</div>
  11353. <Table
  11354. v-model="tableJson.text"
  11355. @change="change"
  11356. v-if="dialogVisibleTableTeacher"
  11357. ></Table>
  11358. </el-form>
  11359. <span slot="footer" class="dialog-footer">
  11360. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11361. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11362. </span>
  11363. </el-dialog>
  11364. <el-dialog
  11365. title="文档"
  11366. :visible.sync="dialogVisibleWord"
  11367. :append-to-body="true"
  11368. width="95%"
  11369. :before-close="handleClose"
  11370. class="dialog_diy"
  11371. >
  11372. <el-form>
  11373. <div
  11374. style="
  11375. display: flex;
  11376. align-items: center;
  11377. justify-content: space-between;
  11378. "
  11379. >
  11380. <span>文档内容</span>
  11381. <el-button type="primary" size="small" @click="returnWordText"
  11382. >还原模板</el-button
  11383. >
  11384. </div>
  11385. <editor-bar
  11386. v-model="wordJson.text"
  11387. v-if="dialogVisibleWord"
  11388. ></editor-bar>
  11389. </el-form>
  11390. <span slot="footer" class="dialog-footer">
  11391. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11392. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11393. </span>
  11394. </el-dialog>
  11395. <el-dialog
  11396. title="文档"
  11397. :visible.sync="dialogVisibleWordTeacher"
  11398. :append-to-body="true"
  11399. width="95%"
  11400. :before-close="handleClose"
  11401. class="dialog_diy"
  11402. >
  11403. <el-form>
  11404. <div class="w_name">
  11405. 学生姓名:<span>{{ sStudent.student }}</span>
  11406. </div>
  11407. <div>文档内容</div>
  11408. <editor-bar
  11409. v-model="wordJson.text"
  11410. v-if="dialogVisibleWordTeacher"
  11411. ></editor-bar>
  11412. </el-form>
  11413. <span slot="footer" class="dialog-footer">
  11414. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11415. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11416. </span>
  11417. </el-dialog>
  11418. <el-dialog
  11419. title="表格"
  11420. :visible.sync="dialogVisibleTable2"
  11421. :append-to-body="true"
  11422. width="95%"
  11423. :before-close="handleClose"
  11424. class="dialog_diy"
  11425. >
  11426. <el-form>
  11427. <div class="cont" v-html="tableJson.text"></div>
  11428. </el-form>
  11429. <span slot="footer" class="dialog-footer">
  11430. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11431. </span>
  11432. </el-dialog>
  11433. <el-dialog
  11434. title="文档"
  11435. :visible.sync="dialogVisibleTable3"
  11436. :append-to-body="true"
  11437. width="95%"
  11438. :before-close="handleClose"
  11439. class="dialog_diy"
  11440. >
  11441. <el-form>
  11442. <div class="cont" v-html="tableJson.text"></div>
  11443. </el-form>
  11444. <span slot="footer" class="dialog-footer">
  11445. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11446. </span>
  11447. </el-dialog>
  11448. <el-dialog
  11449. title="分组设置"
  11450. :visible.sync="dialogVisibleGroup"
  11451. :append-to-body="true"
  11452. width="95%"
  11453. :before-close="handleClose"
  11454. class="dialog_diy"
  11455. >
  11456. <div v-if="dialogVisibleGroup">
  11457. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11458. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11459. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11460. </div>
  11461. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11462. @click="lockChair">
  11463. 锁定位置
  11464. </div>
  11465. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11466. 解锁位置
  11467. </div> -->
  11468. <div class="group_switch">
  11469. <span>开放选座</span>
  11470. <el-switch
  11471. v-model="islock"
  11472. active-text=""
  11473. class="switchCss"
  11474. @change="lockChair"
  11475. ></el-switch>
  11476. </div>
  11477. <div
  11478. type="primary"
  11479. @click="updateGroup"
  11480. class="returnBtn"
  11481. style="background-color: #225bc7"
  11482. >
  11483. 分组设置
  11484. </div>
  11485. </div>
  11486. <div>
  11487. <div
  11488. class="g_d_box"
  11489. v-if="groupJson.group && groupStudent[toolindex]"
  11490. >
  11491. <div
  11492. class="g_d_group"
  11493. v-for="(g, gindex) in groupJson.group"
  11494. :key="gindex"
  11495. >
  11496. <div class="g_d_group_chair">
  11497. <div v-if="groupJson.number > 1">
  11498. <span
  11499. :class="{
  11500. isChair:
  11501. groupStudent[toolindex][gindex] &&
  11502. groupStudent[toolindex][gindex][0],
  11503. updateChair:
  11504. courseDetail.userid == userid &&
  11505. groupStudent[toolindex][gindex] &&
  11506. groupStudent[toolindex][gindex][0] &&
  11507. groupJson.islock == 2,
  11508. }"
  11509. ><span
  11510. class="updateChairBtn"
  11511. @click="
  11512. updateGroupChair(
  11513. groupStudent[toolindex][gindex] &&
  11514. groupStudent[toolindex][gindex][0]
  11515. )
  11516. "
  11517. >修改</span
  11518. ></span
  11519. ><span>{{
  11520. groupStudent[toolindex][gindex] &&
  11521. groupStudent[toolindex][gindex][0]
  11522. ? groupStudent[toolindex][gindex] &&
  11523. groupStudent[toolindex][gindex][0].name
  11524. : "空位置"
  11525. }}</span>
  11526. </div>
  11527. <div v-if="groupJson.number > 4">
  11528. <span
  11529. :class="{
  11530. isChair:
  11531. groupStudent[toolindex][gindex] &&
  11532. groupStudent[toolindex][gindex][4],
  11533. updateChair:
  11534. courseDetail.userid == userid &&
  11535. groupStudent[toolindex][gindex] &&
  11536. groupStudent[toolindex][gindex][4] &&
  11537. groupJson.islock == 2,
  11538. }"
  11539. ><span
  11540. class="updateChairBtn"
  11541. @click="
  11542. updateGroupChair(
  11543. groupStudent[toolindex][gindex] &&
  11544. groupStudent[toolindex][gindex][4]
  11545. )
  11546. "
  11547. >修改</span
  11548. ></span
  11549. ><span>{{
  11550. groupStudent[toolindex][gindex] &&
  11551. groupStudent[toolindex][gindex][4]
  11552. ? groupStudent[toolindex][gindex] &&
  11553. groupStudent[toolindex][gindex][4].name
  11554. : "空位置"
  11555. }}</span>
  11556. </div>
  11557. <div v-if="groupJson.number > 8">
  11558. <span
  11559. :class="{
  11560. isChair:
  11561. groupStudent[toolindex][gindex] &&
  11562. groupStudent[toolindex][gindex][8],
  11563. updateChair:
  11564. courseDetail.userid == userid &&
  11565. groupStudent[toolindex][gindex] &&
  11566. groupStudent[toolindex][gindex][8] &&
  11567. groupJson.islock == 2,
  11568. }"
  11569. ><span
  11570. class="updateChairBtn"
  11571. @click="
  11572. updateGroupChair(
  11573. groupStudent[toolindex][gindex] &&
  11574. groupStudent[toolindex][gindex][8]
  11575. )
  11576. "
  11577. >修改</span
  11578. ></span
  11579. ><span>{{
  11580. groupStudent[toolindex][gindex] &&
  11581. groupStudent[toolindex][gindex][8]
  11582. ? groupStudent[toolindex][gindex] &&
  11583. groupStudent[toolindex][gindex][8].name
  11584. : "空位置"
  11585. }}</span>
  11586. </div>
  11587. </div>
  11588. <div class="g_d_group_tableBox">
  11589. <div class="g_d_group_chair2">
  11590. <div v-if="groupJson.number > 2">
  11591. <span
  11592. :class="{
  11593. isChair:
  11594. groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][2],
  11596. updateChair:
  11597. courseDetail.userid == userid &&
  11598. groupStudent[toolindex][gindex] &&
  11599. groupStudent[toolindex][gindex][2] &&
  11600. groupJson.islock == 2,
  11601. }"
  11602. ><span
  11603. class="updateChairBtn"
  11604. @click="
  11605. updateGroupChair(
  11606. groupStudent[toolindex][gindex] &&
  11607. groupStudent[toolindex][gindex][2]
  11608. )
  11609. "
  11610. >修改</span
  11611. ></span
  11612. ><span>{{
  11613. groupStudent[toolindex][gindex] &&
  11614. groupStudent[toolindex][gindex][2]
  11615. ? groupStudent[toolindex][gindex] &&
  11616. groupStudent[toolindex][gindex][2].name
  11617. : "空位置"
  11618. }}</span>
  11619. </div>
  11620. <div v-if="groupJson.number > 6">
  11621. <span
  11622. :class="{
  11623. isChair:
  11624. groupStudent[toolindex][gindex] &&
  11625. groupStudent[toolindex][gindex][6],
  11626. updateChair:
  11627. courseDetail.userid == userid &&
  11628. groupStudent[toolindex][gindex] &&
  11629. groupStudent[toolindex][gindex][6] &&
  11630. groupJson.islock == 2,
  11631. }"
  11632. ><span
  11633. class="updateChairBtn"
  11634. @click="
  11635. updateGroupChair(
  11636. groupStudent[toolindex][gindex] &&
  11637. groupStudent[toolindex][gindex][6]
  11638. )
  11639. "
  11640. >修改</span
  11641. ></span
  11642. ><span>{{
  11643. groupStudent[toolindex][gindex] &&
  11644. groupStudent[toolindex][gindex][6]
  11645. ? groupStudent[toolindex][gindex] &&
  11646. groupStudent[toolindex][gindex][6].name
  11647. : "空位置"
  11648. }}</span>
  11649. </div>
  11650. </div>
  11651. <div class="g_d_group_table">
  11652. <div>
  11653. {{ g.name }}
  11654. </div>
  11655. <div>
  11656. <div
  11657. v-if="
  11658. courseDetail.userid == userid && groupJson.islock == 2
  11659. "
  11660. @click="deleteGroupChair(gindex)"
  11661. >
  11662. 移除组员
  11663. </div>
  11664. <div
  11665. @click="selectGroup(gindex)"
  11666. v-else-if="
  11667. groupStudentUid[toolindex] &&
  11668. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11669. "
  11670. >
  11671. 加入分组
  11672. </div>
  11673. <div
  11674. @click="
  11675. exitGroup(
  11676. groupStudent[toolindex][gindex] &&
  11677. groupStudent[toolindex][gindex][
  11678. groupStudentUid[toolindex][gindex].indexOf(userid)
  11679. ].id
  11680. )
  11681. "
  11682. v-else-if="
  11683. groupStudentUid[toolindex] &&
  11684. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11685. "
  11686. >
  11687. 退出分组
  11688. </div>
  11689. </div>
  11690. </div>
  11691. <div class="g_d_group_chair2">
  11692. <div v-if="groupJson.number > 3">
  11693. <span
  11694. :class="{
  11695. isChair:
  11696. groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][3],
  11698. updateChair:
  11699. courseDetail.userid == userid &&
  11700. groupStudent[toolindex][gindex] &&
  11701. groupStudent[toolindex][gindex][3] &&
  11702. groupJson.islock == 2,
  11703. }"
  11704. ><span
  11705. class="updateChairBtn"
  11706. @click="
  11707. updateGroupChair(
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][3]
  11710. )
  11711. "
  11712. >修改</span
  11713. ></span
  11714. ><span>{{
  11715. groupStudent[toolindex][gindex] &&
  11716. groupStudent[toolindex][gindex][3]
  11717. ? groupStudent[toolindex][gindex] &&
  11718. groupStudent[toolindex][gindex][3].name
  11719. : "空位置"
  11720. }}</span>
  11721. </div>
  11722. <div v-if="groupJson.number > 7">
  11723. <span
  11724. :class="{
  11725. isChair:
  11726. groupStudent[toolindex][gindex] &&
  11727. groupStudent[toolindex][gindex][7],
  11728. updateChair:
  11729. courseDetail.userid == userid &&
  11730. groupStudent[toolindex][gindex] &&
  11731. groupStudent[toolindex][gindex][7] &&
  11732. groupJson.islock == 2,
  11733. }"
  11734. ><span
  11735. class="updateChairBtn"
  11736. @click="
  11737. updateGroupChair(
  11738. groupStudent[toolindex][gindex] &&
  11739. groupStudent[toolindex][gindex][7]
  11740. )
  11741. "
  11742. >修改</span
  11743. ></span
  11744. ><span>{{
  11745. groupStudent[toolindex][gindex] &&
  11746. groupStudent[toolindex][gindex][7]
  11747. ? groupStudent[toolindex][gindex] &&
  11748. groupStudent[toolindex][gindex][7].name
  11749. : "空位置"
  11750. }}</span>
  11751. </div>
  11752. </div>
  11753. </div>
  11754. <div class="g_d_group_chair">
  11755. <div v-if="groupJson.number > 1">
  11756. <span
  11757. :class="{
  11758. isChair:
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][1],
  11761. updateChair:
  11762. courseDetail.userid == userid &&
  11763. groupStudent[toolindex][gindex] &&
  11764. groupStudent[toolindex][gindex][1] &&
  11765. groupJson.islock == 2,
  11766. }"
  11767. ><span
  11768. class="updateChairBtn"
  11769. @click="
  11770. updateGroupChair(
  11771. groupStudent[toolindex][gindex] &&
  11772. groupStudent[toolindex][gindex][1]
  11773. )
  11774. "
  11775. >修改</span
  11776. ></span
  11777. ><span>{{
  11778. groupStudent[toolindex][gindex] &&
  11779. groupStudent[toolindex][gindex][1]
  11780. ? groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][1].name
  11782. : "空位置"
  11783. }}</span>
  11784. </div>
  11785. <div v-if="groupJson.number > 5">
  11786. <span
  11787. :class="{
  11788. isChair:
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][5],
  11791. updateChair:
  11792. courseDetail.userid == userid &&
  11793. groupStudent[toolindex][gindex] &&
  11794. groupStudent[toolindex][gindex][5] &&
  11795. groupJson.islock == 2,
  11796. }"
  11797. ><span
  11798. class="updateChairBtn"
  11799. @click="
  11800. updateGroupChair(
  11801. groupStudent[toolindex][gindex] &&
  11802. groupStudent[toolindex][gindex][5]
  11803. )
  11804. "
  11805. >修改</span
  11806. ></span
  11807. ><span>{{
  11808. groupStudent[toolindex][gindex] &&
  11809. groupStudent[toolindex][gindex][5]
  11810. ? groupStudent[toolindex][gindex] &&
  11811. groupStudent[toolindex][gindex][5].name
  11812. : "空位置"
  11813. }}</span>
  11814. </div>
  11815. <div v-if="groupJson.number > 9">
  11816. <span
  11817. :class="{
  11818. isChair:
  11819. groupStudent[toolindex][gindex] &&
  11820. groupStudent[toolindex][gindex][9],
  11821. updateChair:
  11822. courseDetail.userid == userid &&
  11823. groupStudent[toolindex][gindex] &&
  11824. groupStudent[toolindex][gindex][9] &&
  11825. groupJson.islock == 2,
  11826. }"
  11827. ><span
  11828. class="updateChairBtn"
  11829. @click="
  11830. updateGroupChair(
  11831. groupStudent[toolindex][gindex] &&
  11832. groupStudent[toolindex][gindex][9]
  11833. )
  11834. "
  11835. >修改</span
  11836. ></span
  11837. ><span>{{
  11838. groupStudent[toolindex][gindex] &&
  11839. groupStudent[toolindex][gindex][9]
  11840. ? groupStudent[toolindex][gindex] &&
  11841. groupStudent[toolindex][gindex][9].name
  11842. : "空位置"
  11843. }}</span>
  11844. </div>
  11845. </div>
  11846. </div>
  11847. </div>
  11848. </div>
  11849. </div>
  11850. <span slot="footer" class="dialog-footer">
  11851. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11852. </span>
  11853. </el-dialog>
  11854. <el-dialog
  11855. title="分组设置"
  11856. :visible.sync="dialogVisibleGroup2"
  11857. :append-to-body="true"
  11858. width="650px"
  11859. :before-close="handleClose"
  11860. class="dialog_diy"
  11861. >
  11862. <div class="groupBox">
  11863. <div v-if="groupJson2.group" class="groupContent">
  11864. <div class="groupTitle">请设置小组数量及名称</div>
  11865. <div
  11866. v-for="(item, index) in groupJson2.group"
  11867. :key="index"
  11868. class="groupName"
  11869. >
  11870. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11871. <el-input
  11872. v-model="item.name"
  11873. placeholder="请输入名称..."
  11874. style="width: 250px"
  11875. ></el-input>
  11876. <!-- <div class="groupBtn">
  11877. <el-button type="primary" size="small" @click="addGroup(index)">
  11878. 添加</el-button>
  11879. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11880. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11881. </div> -->
  11882. </div>
  11883. </div>
  11884. <div class="groupContent">
  11885. <div class="groupTitle">请设置每组人数</div>
  11886. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11887. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11888. <el-input
  11889. v-model="groupJson2.number"
  11890. style="width: 150px"
  11891. placeholder="请输入2-10的数字"
  11892. @change="numberPan"
  11893. ></el-input>
  11894. </div>
  11895. </div>
  11896. <span slot="footer" class="dialog-footer">
  11897. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11898. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11899. </span>
  11900. </el-dialog>
  11901. <el-dialog
  11902. title="作业提交"
  11903. :visible.sync="dialogVisibleGroupWork"
  11904. :append-to-body="true"
  11905. width="500px"
  11906. :before-close="handleClose"
  11907. class="dialog_change"
  11908. >
  11909. <div class="marginT">
  11910. <div>上传文件</div>
  11911. <div
  11912. class="chapter_add"
  11913. @click="addImg($event)"
  11914. v-if="studyJuri[0].cover.length == 0"
  11915. >
  11916. <div class="up_photo">
  11917. <img src="../../assets/icon/uploadImg.png" alt />
  11918. </div>
  11919. <!-- <input
  11920. type="file"
  11921. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11922. style="display: none"
  11923. @change="beforeUpload1($event, 1)"
  11924. /> -->
  11925. <input
  11926. type="file"
  11927. accept="*"
  11928. style="display: none"
  11929. @change="beforeUpload1($event, 1)"
  11930. />
  11931. </div>
  11932. <!-- capture="camera" -->
  11933. <div
  11934. class="chapter_add"
  11935. style="
  11936. display: flex;
  11937. width: 100%;
  11938. flex-direction: row;
  11939. flex-wrap: wrap;
  11940. justify-content: flex-start;
  11941. padding: 15px 0;
  11942. "
  11943. v-if="studyJuri[0].cover.length > 0"
  11944. >
  11945. <div class="upCover">
  11946. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11947. <img :src="word" alt v-else-if="fileType == 1" />
  11948. <img :src="video" alt v-else-if="fileType == 2" />
  11949. <img :src="word2" alt v-else-if="fileType == 3" />
  11950. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11951. <div class="deleteWord" @click="clean(1)">
  11952. <img src="../../assets/icon/deleteWorks.png" alt />
  11953. </div>
  11954. </div>
  11955. </div>
  11956. </div>
  11957. <div
  11958. class="upload_send"
  11959. @click="addCourseWorks2(taskCount)"
  11960. v-if="!proVisible"
  11961. >
  11962. 提交
  11963. </div>
  11964. </el-dialog>
  11965. <el-dialog
  11966. title="修改分组"
  11967. :visible.sync="dialogVisibleUpdateGroup"
  11968. :append-to-body="true"
  11969. width="350px"
  11970. :before-close="handleClose"
  11971. class="dialog_diy"
  11972. >
  11973. <div>
  11974. <h2>
  11975. {{ this.updateGroupUser.name }}
  11976. </h2>
  11977. <div style="color: rgb(171 171 171); margin-top: 10px">
  11978. 请选择要进入的分组
  11979. </div>
  11980. <el-radio-group v-model="checkChair">
  11981. <el-radio
  11982. style="display: block; margin-top: 20px"
  11983. v-for="(item, index) in updateGroupArray"
  11984. :label="item.label"
  11985. :key="index"
  11986. >{{ item.name }}</el-radio
  11987. >
  11988. </el-radio-group>
  11989. </div>
  11990. <span slot="footer" class="dialog-footer">
  11991. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11992. <el-button type="primary" @click="updateChair">确定</el-button>
  11993. </span>
  11994. </el-dialog>
  11995. <el-dialog
  11996. title="移除组员"
  11997. :visible.sync="dialogVisibleDeleteGroup"
  11998. :append-to-body="true"
  11999. width="350px"
  12000. :before-close="handleClose"
  12001. class="dialog_diy"
  12002. >
  12003. <div>
  12004. <h2>
  12005. {{ this.deleteGroupArray.name }}
  12006. </h2>
  12007. <div style="color: rgb(171 171 171); margin-top: 10px">
  12008. 请选择要删除的组员
  12009. </div>
  12010. <el-checkbox-group v-model="checkDeleteGroup">
  12011. <el-checkbox
  12012. style="display: flex; margin-top: 20px"
  12013. v-for="(item, index) in deleteGroupUser"
  12014. :label="item.userid"
  12015. :key="index"
  12016. >{{ item.name }}</el-checkbox
  12017. >
  12018. </el-checkbox-group>
  12019. </div>
  12020. <span slot="footer" class="dialog-footer">
  12021. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12022. <el-button type="primary" @click="deleteChair">确定</el-button>
  12023. </span>
  12024. </el-dialog>
  12025. <el-dialog
  12026. title="批量上传"
  12027. :visible.sync="dialogVisiblePl"
  12028. :append-to-body="true"
  12029. width="700px"
  12030. :before-close="handleClose"
  12031. class="dialog_change"
  12032. >
  12033. <div class="marginT">
  12034. <div class="plworkBox">
  12035. <div
  12036. class="chapter_add"
  12037. style="
  12038. display: flex;
  12039. width: 150px;
  12040. flex-direction: row;
  12041. flex-wrap: wrap;
  12042. justify-content: flex-start;
  12043. margin: 0 10px 10px 0;
  12044. "
  12045. v-for="(item, index) in plworkFile"
  12046. :key="index"
  12047. >
  12048. <div class="upCover2">
  12049. <img
  12050. :src="item.url"
  12051. alt
  12052. v-if="item.fileType == 1"
  12053. @click="previewImg(item.url)"
  12054. />
  12055. <img :src="word" alt v-else-if="item.fileType == 4" />
  12056. <img :src="video" alt v-else />
  12057. <!-- <span class="picName">{{ item.name }}</span> -->
  12058. <!-- <el-input
  12059. v-model="item.username"
  12060. placeholder="请输入学生名字"
  12061. style="margin-top: 10px"
  12062. ></el-input> -->
  12063. <div
  12064. class="pl_select_box"
  12065. @click="
  12066. getUpdateMore(true, checkUpload(), item.username, index)
  12067. "
  12068. >
  12069. {{ getSName(item.username) }}
  12070. </div>
  12071. <!-- <el-select
  12072. style="margin-top: 10px"
  12073. v-model="item.username"
  12074. filterable
  12075. allow-create
  12076. placeholder="请选择学生"
  12077. >
  12078. <el-option
  12079. v-for="item1 in checkUpload()"
  12080. :key="item1.userid"
  12081. :label="item1.name ? item1.name : item1.username"
  12082. :value="item1.userid"
  12083. >
  12084. </el-option>
  12085. </el-select> -->
  12086. <div class="deleteWord" @click="clean2(index)">
  12087. <img src="../../assets/icon/deleteWorks.png" alt />
  12088. </div>
  12089. </div>
  12090. </div>
  12091. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12092. <div class="up_photo2">
  12093. <img src="../../assets/icon/plwork.png" alt />
  12094. <span>点击上传文件</span>
  12095. </div>
  12096. <input
  12097. type="file"
  12098. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12099. multiple="multiple"
  12100. style="display: none"
  12101. @change="beforeUpload3($event, 6)"
  12102. />
  12103. </div>
  12104. </div>
  12105. </div>
  12106. <!-- capture="camera" -->
  12107. <div
  12108. class="upload_send"
  12109. @click="addCourseWorksPl(taskCount)"
  12110. v-if="!proVisible2"
  12111. >
  12112. 提交
  12113. </div>
  12114. </el-dialog>
  12115. <el-dialog
  12116. title="修改名称"
  12117. :visible.sync="dialogVisibleSname"
  12118. width="500px"
  12119. :before-close="handleClose"
  12120. class="dialog_diy"
  12121. center
  12122. >
  12123. <div
  12124. style="
  12125. text-align: center;
  12126. display: flex;
  12127. align-items: center;
  12128. justify-content: center;
  12129. "
  12130. >
  12131. <span class="tian1">名称</span>
  12132. <div
  12133. class="pl_select_box"
  12134. style="margin-left: 10px; width: 200px"
  12135. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12136. >
  12137. {{ getSName(worksSName) }}
  12138. </div>
  12139. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12140. placeholder="请选择学生">
  12141. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12142. :value="item.userid">
  12143. </el-option>
  12144. </el-select> -->
  12145. <!-- <el-input
  12146. v-model="worksSName"
  12147. style="width: 250px; margin: 15px 0px"
  12148. ></el-input> -->
  12149. </div>
  12150. <span slot="footer" class="dialog-footer">
  12151. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12152. <el-button type="primary" @click="updateName">确 定</el-button>
  12153. </span>
  12154. </el-dialog>
  12155. <el-dialog
  12156. title="英语写作"
  12157. :visible.sync="engDialogVisible"
  12158. :append-to-body="true"
  12159. width="800px"
  12160. :before-close="handleClose"
  12161. class="dialog_diy"
  12162. >
  12163. <onlineWrite
  12164. v-if="engDialogVisible"
  12165. :englishList="englishList"
  12166. :myAnswerList1="myAnswerList1"
  12167. ref="engJson"
  12168. ></onlineWrite>
  12169. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12170. <el-button @click="engDialogVisible = false">取 消</el-button>
  12171. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12172. </span>
  12173. </el-dialog>
  12174. <el-dialog
  12175. title="英语写作"
  12176. :visible.sync="engUpdateDialogVisible"
  12177. :append-to-body="true"
  12178. width="800px"
  12179. :before-close="handleClose"
  12180. class="dialog_diy fullStyle"
  12181. >
  12182. <div class="engUpBox">
  12183. <div class="engUpTop">
  12184. <div class="engTitle">
  12185. <div>作文题目:</div>
  12186. <div>{{ englishList1.engTitle }}</div>
  12187. </div>
  12188. <div class="engText">
  12189. <div>作文内容:</div>
  12190. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12191. </div>
  12192. </div>
  12193. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12194. <div class="oldBox">
  12195. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12196. <div class="oldText">
  12197. <div class="detailBox">
  12198. <div class="oldDetail">
  12199. <div>标题:</div>
  12200. <div>{{ oldEnglishJson.engTitle }} </div>
  12201. </div>
  12202. <div class="oldDetail1">
  12203. <div>正文:</div>
  12204. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12205. </div>
  12206. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12207. <div>图片:</div>
  12208. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12209. </div>
  12210. </div>
  12211. </div>
  12212. </div>
  12213. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12214. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12215. <div class="oldText">
  12216. <div class="detailBox" style="position: relative;">
  12217. <div class="oldDetail">
  12218. <div>标题:</div>
  12219. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12220. <div v-else v-html="newEnglishList.engTitle"></div>
  12221. </div>
  12222. <div class="oldDetail">
  12223. <div>正文:</div>
  12224. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12225. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12226. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12227. </div>
  12228. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12229. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12230. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12231. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12232. </div>
  12233. </div>
  12234. </div>
  12235. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12236. <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">
  12237. <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>
  12238. <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>
  12239. </div>
  12240. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12241. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12242. <div class="detailBox" style="position: relative;">
  12243. <div class="oldDetail">
  12244. <div>标题:</div>
  12245. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12246. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12247. </div>
  12248. <div class="oldDetail">
  12249. <div>正文:</div>
  12250. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12251. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12252. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12253. </div>
  12254. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12255. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12256. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12257. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12258. </div>
  12259. </div>
  12260. <div class="oldText" v-else-if="newEngIndex == -1">
  12261. <div class="detailBox" style="position: relative;">
  12262. <div class="oldDetail">
  12263. <div>标题:</div>
  12264. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12265. <div v-else v-html="newEnglishList.engTitle"></div>
  12266. </div>
  12267. <div class="oldDetail">
  12268. <div>正文:</div>
  12269. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12270. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12271. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12272. </div>
  12273. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12274. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12275. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12276. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12277. </div>
  12278. </div>
  12279. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12280. <div class="detailBox" style="position: relative;">
  12281. <div class="oldDetail">
  12282. <div>标题:</div>
  12283. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12284. <div v-else>
  12285. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12286. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12287. </div>
  12288. </div>
  12289. <div class="oldDetail">
  12290. <div>正文:</div>
  12291. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12292. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12293. <div v-else>
  12294. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12295. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12296. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12297. </div>
  12298. </div>
  12299. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12300. <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>
  12301. <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>
  12302. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12303. </div>
  12304. </div>
  12305. </div>
  12306. </div>
  12307. </div>
  12308. <span slot="footer" class="dialog-footer">
  12309. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12310. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12311. </span>
  12312. </el-dialog>
  12313. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12314. <interVideo
  12315. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12316. :videoJson="videoJson"
  12317. :userid="userid"
  12318. :id="id"
  12319. :courseType="courseType"
  12320. :taskCount="taskCount"
  12321. :toolindex="toolindex"
  12322. :videoType="videoType"
  12323. ></interVideo>
  12324. <UpdateMore
  12325. :dialogVisibleMember.sync="dialogVisibleMember"
  12326. :cList="uploadStudentJuri"
  12327. :userid="userid"
  12328. :searchTN="worksSName2"
  12329. @setPlname="setPlname"
  12330. ></UpdateMore>
  12331. <!-- <wordCloud
  12332. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12333. :data="wordCloudData"
  12334. ></wordCloud> -->
  12335. <el-dialog
  12336. title="词云"
  12337. :visible.sync="dialogVisibleWordCloud"
  12338. width="30%"
  12339. class="dialog_diy"
  12340. :before-close="handleClose">
  12341. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12342. </el-dialog>
  12343. <el-dialog
  12344. title="挑人"
  12345. :visible.sync="dialogVisiblePickPeople"
  12346. width="650px"
  12347. :before-close="handleClose"
  12348. class="dialog_diy"
  12349. center
  12350. >
  12351. <div class="pick_box">
  12352. <div
  12353. class="noWorksName"
  12354. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12355. v-for="(item, index) in uploadStudentJuri"
  12356. :key="index"
  12357. @click="pickStudent(item)"
  12358. >
  12359. {{ item.name }}
  12360. </div>
  12361. </div>
  12362. </el-dialog>
  12363. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12364. :englishVoiceJson='englishVoiceJson'
  12365. :userid="userid"
  12366. :id="id"
  12367. :courseType="courseType"
  12368. :taskCount="taskCount"
  12369. :toolindex="toolindex"
  12370. @selectSWorks="selectSWorks"
  12371. @selectStudent="selectStudent"
  12372. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12373. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12374. :userid="userid"
  12375. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12376. :commentDetail="commentDetail"
  12377. :courseDetail="courseDetail"
  12378. :wScore="wScore"
  12379. :scoreDetail="scoreDetail"
  12380. @selectSWorks="selectSWorks"
  12381. @selectStudent="selectStudent"></checkEnglishVoice>
  12382. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12383. <choseWorksDetailDialog
  12384. ref="choseWorksDetailDialogRef"
  12385. :worksStudentData="worksStudent"
  12386. :noWorksSData="noWorksS"
  12387. :chapInfoListData="chapInfoList"
  12388. :courseType="courseType"
  12389. :taskCount="taskCount"
  12390. :tType="tType"
  12391. :sIsOpen="sIsOpen"
  12392. :courseDetail="courseDetail"
  12393. :groupStudent2="groupStudent"
  12394. :groupStudentUid2="groupStudentUid"
  12395. :oid="oid"
  12396. :org="org"
  12397. @getCourseDetail="getCourseDetail"
  12398. @selectSLook="selectSLook"
  12399. @selectSWorks="selectSWorks"
  12400. @selectStudent="selectStudent"
  12401. @deleteWorks="deleteWorks"
  12402. @openTools="openTools"
  12403. @openWord="openWord"
  12404. @openScore="openScore"
  12405. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12406. />
  12407. <el-dialog
  12408. :visible.sync="confirmOpenDig"
  12409. width="500px"
  12410. :modal="false"
  12411. class="confirmOpenDigCss dialog_diyCopy"
  12412. :before-close="handleClose">
  12413. <div style="display: flex;align-items: center;">
  12414. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12415. <span>“{{ courseDetail.title }}”开课啦</span>
  12416. </div>
  12417. <div style="margin: 20px 0 35px;">
  12418. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12419. <div>要认真听讲哦~</div>
  12420. </div>
  12421. <div style="text-align: center;">
  12422. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12423. </div>
  12424. </el-dialog>
  12425. <appStoreC ref="appStoreC"
  12426. :sStudent="sStudent"
  12427. :courseType="courseType"
  12428. :taskCount="taskCount"
  12429. :toolindex="toolindex"
  12430. @selectSWorks="selectSWorks"
  12431. @selectStudent="selectStudent"
  12432. ></appStoreC>
  12433. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12434. </div>
  12435. </template>
  12436. <script>
  12437. import "../../common/aws-sdk-2.235.1.min.js";
  12438. // import pdf from "../components/pdf3";
  12439. import pdf from "../components/vpdf";
  12440. import AskStatic from "../components/askStatic";
  12441. import AskStatic2 from "../components/askStatic2";
  12442. import AnswerData2 from "../components/answerData2";
  12443. import AnswerData from "../components/answerData";
  12444. import EditorBar from "../tools/wangEnduit.vue";
  12445. import Table from "../tools/table.vue";
  12446. import Time from "../tools/time.vue";
  12447. import Mind from "../tools/jsmind.vue";
  12448. import Sunburst from "../tools/sunburst";
  12449. import SeeBoard from "../tools/seeBoard";
  12450. import * as imageConversion from "image-conversion";
  12451. import Audio from "../components/audio.vue";
  12452. import ImgDraw from "../tools/imgDraw/imgDraw";
  12453. import { Empty } from "element-ui";
  12454. import RecordRTC from "recordrtc";
  12455. import interVideo from "../interVideo/index.vue";
  12456. import UpdateMore from "../updateMore/updateMore.vue";
  12457. import wordCloud from "../wordCloud/index.vue";
  12458. import axios from "axios";
  12459. import JSZip from "jszip";
  12460. import FileSaver from "file-saver";
  12461. import onlineWrite from "./commpont/onlineWrite";
  12462. import englishEva from "../components/englishEva";
  12463. import * as Diff from 'diff'
  12464. import EnglishVoice from '../EnglishVoice2/index.vue'
  12465. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12466. import correctText from '../components/correctText.vue'
  12467. import scoreItem from '../scoreList/scoreItem.vue'
  12468. import scoreZong from '../scoreZong/index.vue'
  12469. import classRoomHelper from '../classRoomHelper/index.vue'
  12470. import MarkdownIt from "markdown-it";
  12471. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12472. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12473. import { v4 as uuidv4 } from "uuid";
  12474. var OpenCC = require("opencc-js");
  12475. import choseWordCloud from '../components/choseWordCloud.vue'
  12476. import appStoreC from "../components/appStoreC.vue";
  12477. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12478. let converter = OpenCC.Converter({
  12479. from: "hk",
  12480. to: "cn"
  12481. });
  12482. const getFile = (url) => {
  12483. return new Promise((resolve, reject) => {
  12484. var credentials = {
  12485. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12486. secretAccessKey: "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",
  12487. }; //秘钥形式的登录上传
  12488. window.AWS.config.update(credentials);
  12489. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12490. let url2 = url;
  12491. let _url2 = "";
  12492. if (
  12493. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12494. ) {
  12495. _url2 = url2.split(
  12496. "https://view.officeapps.live.com/op/view.aspx?src="
  12497. )[1];
  12498. } else {
  12499. _url2 = url2;
  12500. }
  12501. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12502. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12503. var params = {
  12504. Bucket: "ccrb",
  12505. Key: name
  12506. };
  12507. s3.getObject(params, function (err, data) {
  12508. if (err) {
  12509. console.log(err, err.stack)
  12510. resolve({ data: 1 });
  12511. }else {
  12512. resolve({ data: data.Body });
  12513. console.log(data);
  12514. } // sxuccessful response
  12515. });
  12516. // axios({
  12517. // method: "get",
  12518. // url,
  12519. // responseType: "blob",
  12520. // })
  12521. // .then((data) => {
  12522. // resolve({ data: data.data });
  12523. // })
  12524. // .catch((error) => {
  12525. // resolve({ data: 1 });
  12526. // // reject(error.toString());
  12527. // });
  12528. });
  12529. };
  12530. export default {
  12531. components: {
  12532. choseWordCloud,
  12533. EditorBar,
  12534. Time,
  12535. pdf,
  12536. AskStatic,
  12537. AskStatic2,
  12538. Mind,
  12539. Sunburst,
  12540. SeeBoard,
  12541. AnswerData2,
  12542. AnswerData,
  12543. Audio,
  12544. ImgDraw,
  12545. Table,
  12546. interVideo,
  12547. UpdateMore,
  12548. wordCloud,
  12549. onlineWrite,
  12550. englishEva,
  12551. EnglishVoice,
  12552. checkEnglishVoice,
  12553. correctText,
  12554. scoreItem,
  12555. classRoomHelper,
  12556. scoreZong,
  12557. statisticalAnalysis,
  12558. choseWorksDetailDialog,
  12559. appStoreC,
  12560. cocoFlowDia
  12561. },
  12562. data() {
  12563. return {
  12564. wordCloudKey: 0,
  12565. bg: null,
  12566. drawShow: false,
  12567. dialogVisible: false,
  12568. dialogVisiblePl: false,
  12569. commentDialogVisible: false,
  12570. dialogVisibleMember: false,
  12571. dialogVisibleWordCloud: false,
  12572. videoVisible: false,
  12573. isStar: false,
  12574. studentEvalDialogVisible: false,
  12575. studentEvalDialogVisibleTeacher: false,
  12576. dialogVisibleSelect: false,
  12577. dialogVisibleSelectTeacher: false,
  12578. dialogVisibleScore: false,
  12579. dialogVisibleENScore: false,
  12580. dialogVisibleSentence: false,
  12581. dialogVisibleSentenceTeacher: false,
  12582. dialogVisibleSentence1: false,
  12583. dialogVisibleWorks: false,
  12584. dialogVisibleTable: false,
  12585. dialogVisibleTableTeacher: false,
  12586. dialogVisibleWord: false,
  12587. dialogVisibleWordTeacher: false,
  12588. dialogVisibleTable2: false,
  12589. dialogVisibleTable3: false,
  12590. dialogVisibleGroupWork: false,
  12591. dialogVisibleUpdateGroup: false,
  12592. dialogVisibleDeleteGroup: false,
  12593. dialogVisibleSname: false,
  12594. dialogVisibleVideo: false,
  12595. dialogVisiblePickPeople: false,
  12596. worksSName: "",
  12597. classJuri: [],
  12598. uploadStudentJuri: [],
  12599. uploadCid: "",
  12600. snameWid: "",
  12601. sStudent: {},
  12602. sTool: "",
  12603. bzText: "",
  12604. commentDetail: [],
  12605. selectAnswer: [],
  12606. videoDetail: {},
  12607. selectJson: {},
  12608. eScore: { eBzText: "", eStar: [] },
  12609. id: this.$route.query.courseId,
  12610. userid: this.$route.query.userid,
  12611. classId: this.$route.query.cid,
  12612. // courseTypeLine: this.$route.query.type,
  12613. oid: this.$route.query.oid,
  12614. org: this.$route.query.org,
  12615. tType: this.$route.query.tType,
  12616. courseType: this.$route.query.type,
  12617. screenType: this.$route.query.screenType,
  12618. tcid2: this.$route.query.tcid,
  12619. tcid: "",
  12620. pptImgUrl: "",
  12621. pptImgUrl1: "",
  12622. commentText: "",
  12623. full: false,
  12624. sIsOpen: false,
  12625. IsLookOpen: false,
  12626. IsFollow: false,
  12627. pzDialog: false,
  12628. contentDialog: false,
  12629. mlDialog: false,
  12630. type: 1,
  12631. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12632. sentenceList1: [],
  12633. tableJson: [],
  12634. tableJsonO: [],
  12635. wordJson: [],
  12636. wordJsonO: [],
  12637. vedio: [],
  12638. text: [],
  12639. textList: [],
  12640. line: [],
  12641. lineList: [],
  12642. chapTools: [],
  12643. chapToolList: [],
  12644. file: [],
  12645. fileC: [],
  12646. vedioTime: [],
  12647. upToolImg: "",
  12648. preTime: 0,
  12649. rateList: {
  12650. ca: 0,
  12651. },
  12652. rateParams: [],
  12653. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12654. studyJuri: [
  12655. {
  12656. content: "",
  12657. cover: [],
  12658. upVedio: [],
  12659. upFile: [],
  12660. },
  12661. ],
  12662. isClose: 0,
  12663. plworkFile: [],
  12664. mr: require("../../assets/vedioPic.png"),
  12665. word: require("../../assets/icon/isWord.png"),
  12666. word2: require("../../assets/icon/word2.png"),
  12667. video: require("../../assets/icon/isVideo.png"),
  12668. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12669. likes: require("../../assets/icon/comment/likes.png"),
  12670. scoreImg: require("../../assets/score.png"),
  12671. courseDetail: {},
  12672. reply: "",
  12673. isSelect: false,
  12674. chapInfo: [],
  12675. chapInfoList: [],
  12676. taskCount: 0,
  12677. imgList: [],
  12678. noImgList: [],
  12679. pzList: [],
  12680. timeWorkList: [],
  12681. PlTextList: [
  12682. "Excellent!",
  12683. "nice!",
  12684. "很有创意!",
  12685. "还不错哦~",
  12686. "继续努力哦~",
  12687. ],
  12688. isClickNav: "",
  12689. navId: "",
  12690. playerOptions: {
  12691. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12692. autoplay: false, //如果true,浏览器准备好时开始回放。
  12693. muted: false, // 默认情况下将会消除任何音频。
  12694. loop: false, // 导致视频一结束就重新开始。
  12695. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12696. language: "zh-CN",
  12697. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12698. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12699. sources: [
  12700. {
  12701. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12702. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12703. },
  12704. ],
  12705. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12706. // poster: dataRes.imgUrl, //你的封面地址
  12707. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12708. controlBar: {
  12709. timeDivider: true, //当前时间和持续时间的分隔符
  12710. durationDisplay: true, //显示持续时间
  12711. remainingTimeDisplay: false, //是否显示剩余时间功能
  12712. fullscreenToggle: true, //全屏按钮
  12713. },
  12714. },
  12715. playerOptions1: {
  12716. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12717. autoplay: false, //如果true,浏览器准备好时开始回放。
  12718. muted: false, // 默认情况下将会消除任何音频。
  12719. loop: false, // 导致视频一结束就重新开始。
  12720. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12721. language: "zh-CN",
  12722. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12723. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12724. sources: [
  12725. {
  12726. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12727. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12728. },
  12729. ],
  12730. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12731. // poster: dataRes.imgUrl, //你的封面地址
  12732. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12733. controlBar: {
  12734. timeDivider: true, //当前时间和持续时间的分隔符
  12735. durationDisplay: true, //显示持续时间
  12736. remainingTimeDisplay: false, //是否显示剩余时间功能
  12737. fullscreenToggle: true, //全屏按钮
  12738. },
  12739. },
  12740. playerO: {},
  12741. noneBtnImg: false,
  12742. proVisible: false,
  12743. proVisible2: false,
  12744. progress: 0,
  12745. isFinishSize: 0,
  12746. isAllSize: 0,
  12747. questionAnswer: "",
  12748. answerQ: "", //问答标题
  12749. rateJson: [],
  12750. wbCount: 0,
  12751. wordCount: 0,
  12752. mindCount: 0,
  12753. askCount: 0,
  12754. noteCount: 0,
  12755. mindNetWorkCount: 0,
  12756. libraryCount: 0,
  12757. workCount: 0,
  12758. timeCount: 0,
  12759. answerCount: 0,
  12760. trainCount: 0,
  12761. evalCount: 0,
  12762. dialogImageUrl: "",
  12763. pictureDialog: false,
  12764. toolTypeList: [],
  12765. dialogVisible1: false,
  12766. dialogVisible2: false,
  12767. dialogVisible3: false,
  12768. dialogVisible6: false,
  12769. dialogVisible4: false,
  12770. isNoHomeWork: false,
  12771. dialogVisible5: false,
  12772. dialogVisible5Teacher: false,
  12773. dialogVisibleChoice: false,
  12774. dialogVisibleChoiceTeacher: false,
  12775. answerDialogVisible: false,
  12776. answerDialogVisibleTeacher: false,
  12777. juriVisible: false,
  12778. timeDialogVisible: false,
  12779. replyDialogVisible: false,
  12780. toolDialogVisible: false,
  12781. engDialogVisible: false,
  12782. engUpdateDialogVisible:false,
  12783. engEvaDialogVisible: false,
  12784. evaEngJson: {
  12785. teacherJson: {},
  12786. studentJson: {},
  12787. message: {},
  12788. },
  12789. isNoUserid:false,
  12790. engListLength:0,
  12791. engWid:"",
  12792. newEnglishList:{
  12793. engTitle:"",
  12794. engText:"",
  12795. },
  12796. newEnglishList1:[],
  12797. oldEnglishJson:{},
  12798. oldEnglishJson1:{},
  12799. englishList1:{},
  12800. englishList:{},
  12801. myAnswerList1:{},
  12802. topHeight:0,
  12803. newEngIndex:-1,
  12804. englishToolIndex:0,
  12805. userMes:{},
  12806. englishToolIndex:0,
  12807. replyIndex: 0,
  12808. replyPid: "",
  12809. radio: [],
  12810. isAsk: false,
  12811. askJson: {
  12812. askCount: 1,
  12813. askTitle: "",
  12814. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12815. },
  12816. testJson: {},
  12817. englishList: {},
  12818. topHeight:0,
  12819. checkJson: [],
  12820. askList: [],
  12821. answerList: [],
  12822. navList: [],
  12823. addPzDialog: false,
  12824. pzConText: "",
  12825. worksStudent: [],
  12826. isCloseList: [],
  12827. workStudent: [],
  12828. groupStudent: [],
  12829. groupStudentUid: [],
  12830. noWorksS: [],
  12831. isWorksS: [],
  12832. noWorksStudent: [],
  12833. toolindex: 0,
  12834. toolDetailIndex: null,
  12835. groupIndex: 0,
  12836. workTypeB: false,
  12837. workTypeC: false,
  12838. isAnswer: false,
  12839. isHovered: false,
  12840. isHovered1: false,
  12841. isHovered2: false,
  12842. commentTagShow:0,
  12843. timer: null,
  12844. timer2: null,
  12845. opertimer: null,
  12846. showType: '',
  12847. fileType: 0,
  12848. showPDF: false,
  12849. noteName: "",
  12850. evaJuri: [],
  12851. evalua: "",
  12852. eTitle: "",
  12853. eName: "",
  12854. eJson: {},
  12855. fid: "", //一级
  12856. sid: "", //二级
  12857. tid: "", //二级
  12858. typeMode: 1,
  12859. eJSONNum: 0,
  12860. Etype: 1,
  12861. data: {
  12862. meta: {
  12863. name: "example",
  12864. author: "dd@163.com",
  12865. version: "0.2",
  12866. },
  12867. format: "node_array",
  12868. data: [{ id: "root", isroot: true, topic: "" }],
  12869. },
  12870. fullDialogVisible: false,
  12871. fulltype: "",
  12872. fullUrl: "",
  12873. commentIndexJson: {},
  12874. Stbodywidth: 0,
  12875. ispzType: 0,
  12876. pzType: 1,
  12877. wScore: 0,
  12878. scoreDetail: "",
  12879. videoStart: false,
  12880. recorder: null,
  12881. groupJson: {},
  12882. islock: false,
  12883. groupJson2: {},
  12884. dialogVisibleGroup: false,
  12885. dialogVisibleGroup2: false,
  12886. updateGroupArray: [],
  12887. updateGroupUser: {},
  12888. deleteGroupUser: [],
  12889. deleteGroupArray: {},
  12890. checkChair: "",
  12891. checkDeleteGroup: [],
  12892. inviteCode: "",
  12893. courseGroupStudent: [],
  12894. courseGroupStudentUid: [],
  12895. courseGroup: {},
  12896. isGroup: false,
  12897. toolIndex: null,
  12898. tool: {},
  12899. isWorkTool: [
  12900. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12901. ], //, 40
  12902. videoJson: {},
  12903. videoType:0,
  12904. toolType: 0,
  12905. checktoolArray: [],
  12906. vChapterData: [],
  12907. isUpdateToolDetail: false,
  12908. isUpdateToolDetail1: false,
  12909. updateToolDetailInner: "",
  12910. checkboxList: [],
  12911. plIndex: "",
  12912. worksSName2: "",
  12913. worksSid: "",
  12914. wordCloudData: [],
  12915. isPickStudent: [],
  12916. pzStype: 1,
  12917. myAnList: {},
  12918. downLoading: false,
  12919. greyType: false,
  12920. correctWord: [],
  12921. EnglishVoiceDialog: false,
  12922. englishVoiceJson: {},
  12923. englishVoiceJsonWork:[],
  12924. scoreList:{
  12925. listdata:[],
  12926. isScoreList:[],
  12927. },
  12928. classRoomHelperWidth: '85px',
  12929. orgArray:[],
  12930. oidArray:[],
  12931. splitScreenData:{
  12932. isOpen:false,
  12933. userId:"",
  12934. uid:"",
  12935. myUid:"",
  12936. loading:false,
  12937. behavior:null,
  12938. },
  12939. confirmOpenDig:false,
  12940. confirmOpenDigData:''
  12941. };
  12942. },
  12943. methods: {
  12944. //查看应用中心作业
  12945. openCocoFlow(w){
  12946. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12947. },
  12948. getAIJ(){
  12949. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12950. let oid = res.data[0];
  12951. let org = res.data[1];
  12952. let oidArray = [];
  12953. let orgArray = [];
  12954. oid.forEach(i=>oidArray.push(i.oid))
  12955. org.forEach(i=>orgArray.push(i.oid))
  12956. this.orgArray = orgArray;
  12957. this.oidArray = oidArray;
  12958. })
  12959. },
  12960. insertMemorandum(_html){//保存行为操作
  12961. //variable
  12962. //btn
  12963. let params = [{
  12964. uid:this.userid,
  12965. courseId:this.id+(this.tcid2?this.tcid2:''),
  12966. content:_html
  12967. }]
  12968. console.log(params)
  12969. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12970. if(res.data==1){
  12971. console.log('保存操作成功')
  12972. }else{
  12973. console.log('保存操作失败')
  12974. }
  12975. }).catch(e=>{
  12976. console.log('保存操作失败')
  12977. console.log(e)
  12978. })
  12979. },
  12980. gx(){
  12981. this.$forceUpdate();
  12982. },
  12983. isUpdateCorrect(t,p){
  12984. if(this.greyType == false){
  12985. this.isUpdateText = t;
  12986. this.greyType = true;
  12987. }else{
  12988. if(p == 1){
  12989. this.newEnglishList.engText = this.isUpdateText;
  12990. }else if(p == 2){
  12991. this.oldEnglishJson1.engText = this.isUpdateText;
  12992. }else if(p == 3){
  12993. this.newEnglishList.engText = this.isUpdateText;
  12994. }else{
  12995. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12996. }
  12997. this.greyType = false
  12998. }
  12999. },
  13000. aiCorrect(t,p){
  13001. let aiText = "";
  13002. const loading = this.$loading.service({
  13003. background: "rgba(255, 255, 255)",
  13004. target: document.querySelectorAll(".loadingText")[0],
  13005. });
  13006. let param = {
  13007. model: "gpt-3.5-turbo",
  13008. temperature: 0,
  13009. max_tokens: 2048,
  13010. top_p: 1,
  13011. frequency_penalty: 0,
  13012. presence_penalty: 0,
  13013. messages: [
  13014. {
  13015. role: "user",
  13016. content:
  13017.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13018. },
  13019. ],
  13020. uid: this.userid,
  13021. stream: false,
  13022. };
  13023. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13024. (res) => {
  13025. if (
  13026. res.data.FunctionResponse &&
  13027. res.data.FunctionResponse.result &&
  13028. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13029. ) {
  13030. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13031. return;
  13032. }
  13033. aiText =
  13034. res.data.FunctionResponse.choices[0].message.content;
  13035. aiText = aiText.replace(/%/g,"%25");
  13036. // let w = "";
  13037. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13038. // for(var k = 0;k<a.length;k++){
  13039. // //diffWordsWithSpace
  13040. // if(a.length > 1){
  13041. // if(a[k].added == true){
  13042. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13043. // }else if(a[k].removed == true){
  13044. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13045. // }else{
  13046. // w += '<span>' + a[k].value + '</span>';
  13047. // }
  13048. // }else{
  13049. // if(p == 1){
  13050. // w = this.newEnglishList.engText;
  13051. // }else if(p == 2){
  13052. // w = this.oldEnglishJson1.engText;
  13053. // }else if(p == 3){
  13054. // w = this.newEnglishList.engText;
  13055. // }else{
  13056. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13057. // }
  13058. // }
  13059. // }
  13060. if(p == 1){
  13061. this.newEnglishList.engText = aiText;
  13062. }else if(p == 2){
  13063. this.oldEnglishJson1.engText = aiText;
  13064. }else if(p == 3){
  13065. this.newEnglishList.engText = aiText;
  13066. }else{
  13067. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13068. }
  13069. loading.close();
  13070. },
  13071. (err) => {
  13072. console.log(err);
  13073. loading.close();
  13074. }
  13075. );
  13076. },
  13077. addToolChoose() {
  13078. if (!this.checktoolArray.length) {
  13079. this.$message.error("请选择要添加的任务");
  13080. return;
  13081. }
  13082. if (
  13083. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13084. this.taskCount
  13085. ].toolChoose[0].tool.length
  13086. ) {
  13087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13088. this.taskCount
  13089. ].toolChoose[0].tool = this.checktoolArray;
  13090. } else {
  13091. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13092. this.taskCount
  13093. ].toolChoose.push({
  13094. tool: this.checktoolArray,
  13095. toolDetail: "",
  13096. toolType: 0,
  13097. askCount: 1,
  13098. askTitle: "",
  13099. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13100. });
  13101. }
  13102. let params = [
  13103. {
  13104. cid: this.id,
  13105. chapters: JSON.stringify(this.chapInfoList),
  13106. uid: this.userid,
  13107. unitIndex: this.courseType,
  13108. },
  13109. ];
  13110. this.ajax
  13111. .post(this.$store.state.api + "updateWorkNew4", params)
  13112. .then((res) => {
  13113. this.$message({
  13114. message: "添加成功",
  13115. type: "success",
  13116. });
  13117. this.checktoolArray = [];
  13118. this.getCourseDetail(2);
  13119. this.checkBz(
  13120. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13121. this.taskCount
  13122. ].toolChoose.length - 1
  13123. );
  13124. this.toolDialogVisible = false;
  13125. this.refreshCourse();
  13126. this.$forceUpdate();
  13127. })
  13128. .catch((err) => {
  13129. console.error(err);
  13130. });
  13131. },
  13132. checkBz(index) {
  13133. this.isUpdateToolDetail = false;
  13134. this.$forceUpdate();
  13135. setTimeout(() => {
  13136. document.scrollingElement.scrollTop =
  13137. document.querySelectorAll(".filebox")[index].offsetTop +
  13138. document.querySelector(".student_body").offsetTop;
  13139. }, 500);
  13140. },
  13141. updateToolDetail(i, type) {
  13142. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13143. this.toolDetailIndex = i
  13144. this.isUpdateToolDetail1 = true;
  13145. setTimeout(() => {
  13146. this.updateToolDetailInner = JSON.parse(
  13147. JSON.stringify(
  13148. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13149. this.taskCount
  13150. ].toolChoose[i].toolDetail
  13151. )
  13152. );
  13153. document.querySelector(".checkTextArea").focus();
  13154. }, 0);
  13155. } else if((this.isUpdateToolDetail1 && type != 2)){
  13156. // this.toolDetailIndex = i;
  13157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13158. this.taskCount
  13159. ].toolChoose[i].toolDetail = JSON.parse(
  13160. JSON.stringify(this.updateToolDetailInner)
  13161. );
  13162. let params = [
  13163. {
  13164. cid: this.id,
  13165. chapters: JSON.stringify(this.chapInfoList),
  13166. uid: this.userid,
  13167. unitIndex: this.courseType,
  13168. },
  13169. ];
  13170. this.ajax
  13171. .post(this.$store.state.api + "updateWorkNew4", params)
  13172. .then((res) => {
  13173. this.isUpdateToolDetail1 = false;
  13174. this.$message({
  13175. message: "修改成功",
  13176. type: "success",
  13177. });
  13178. this.toolDetailIndex = null;
  13179. this.updateToolDetailInner = "";
  13180. this.getCourseDetail(2);
  13181. this.$forceUpdate();
  13182. })
  13183. .catch((err) => {
  13184. console.error(err);
  13185. });
  13186. } else if((this.isUpdateToolDetail1 && type == 2)){
  13187. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13188. this.taskCount
  13189. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13190. JSON.stringify(this.updateToolDetailInner)
  13191. );
  13192. let params = [
  13193. {
  13194. cid: this.id,
  13195. chapters: JSON.stringify(this.chapInfoList),
  13196. uid: this.userid,
  13197. unitIndex: this.courseType,
  13198. },
  13199. ];
  13200. this.ajax
  13201. .post(this.$store.state.api + "updateWorkNew4", params)
  13202. .then((res) => {
  13203. this.$message({
  13204. message: "修改成功",
  13205. type: "success",
  13206. });
  13207. this.toolDetailIndex = i;
  13208. this.isUpdateToolDetail1 = true;
  13209. setTimeout(() => {
  13210. this.updateToolDetailInner = JSON.parse(
  13211. JSON.stringify(
  13212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13213. this.taskCount
  13214. ].toolChoose[i].toolDetail
  13215. )
  13216. );
  13217. document.querySelector(".checkTextArea").focus();
  13218. }, 0);
  13219. this.getCourseDetail(2);
  13220. this.$forceUpdate();
  13221. })
  13222. .catch((err) => {
  13223. console.error(err);
  13224. });
  13225. }
  13226. },
  13227. jumpGj(i, j, k, l) {
  13228. for (var z = 0; z < this.navList.length; z++) {
  13229. for (var q = 0; q < this.navList[z].task.length; q++) {
  13230. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13231. this.navList[z].task[q].tool[w].isTool = false;
  13232. }
  13233. }
  13234. }
  13235. console.log(this.navList);
  13236. this.navList[i].task[j].tool[k].isTool =
  13237. !this.navList[i].task[j].tool[k].isTool;
  13238. var a = document.scrollingElement;
  13239. let target = document.querySelector(`#gj${k}`);
  13240. if (target) {
  13241. // target.scrollIntoView(true);
  13242. // setTimeout(() => {
  13243. // a.scrollTop = a.scrollTop - 150;
  13244. // }, 0);
  13245. target.scrollIntoView();
  13246. setTimeout(()=>{
  13247. let scrollBody = document.querySelector('.body_student').parentElement
  13248. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13249. }, 0);
  13250. }
  13251. this.navId = ""
  13252. let flag = this.courseType == i;
  13253. let flag2 = this.taskCount == j
  13254. if (l) {
  13255. this.courseType = i;
  13256. // this.navId = l;
  13257. this.taskCount = j;
  13258. this.selectPz();
  13259. this.getHomeWork();
  13260. this.getCourseDetail(2);
  13261. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13262. if(flag){
  13263. if(flag2){
  13264. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13265. }else{
  13266. 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>`)
  13267. }
  13268. }else{
  13269. 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>`)
  13270. }
  13271. }
  13272. // var b = this.$refs["bz" + k][0];
  13273. // a.scrollTop = b.offsetTop;
  13274. },
  13275. addTools2(i) {
  13276. if (i == 4) {
  13277. // this.openTools2(4);
  13278. this.$message.error("暂未开放");
  13279. return;
  13280. }
  13281. if (i == 45) {
  13282. // this.openTools2(45);
  13283. this.$message.error("暂未开放");
  13284. return;
  13285. }
  13286. if (i == 47) {
  13287. // this.openTools2(47);
  13288. this.$message.error("暂未开放");
  13289. return;
  13290. }
  13291. if (i == 49) {
  13292. // this.openTools2(49);
  13293. this.$message.error("暂未开放");
  13294. return;
  13295. }
  13296. if (i == 62) {
  13297. // this.openTools(itemTaskIndex, 62, toolIndex);
  13298. this.$message.error("暂未开放");
  13299. return;
  13300. }
  13301. if (i == 15) {
  13302. // this.openTools(itemTaskIndex, 15, toolIndex);
  13303. this.$message.error("暂未开放");
  13304. return;
  13305. }
  13306. if (i == 40) {
  13307. // this.openTools(itemTaskIndex, 40, toolIndex);
  13308. this.$message.error("暂未开放");
  13309. return;
  13310. }
  13311. if (i == 41) {
  13312. // this.openTools(itemTaskIndex, 41, toolIndex);
  13313. this.$message.error("暂未开放");
  13314. return;
  13315. }
  13316. if (i == 42) {
  13317. // this.openTools(itemTaskIndex, 42, toolIndex);
  13318. this.$message.error("暂未开放");
  13319. return;
  13320. }
  13321. if (this.checktoolArray.length > 0) {
  13322. if (this.checktoolArray.indexOf(i) != -1) {
  13323. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13324. } else {
  13325. this.checktoolArray = [];
  13326. this.checktoolArray.push(i);
  13327. }
  13328. } else {
  13329. this.checktoolArray.push(i);
  13330. }
  13331. this.$forceUpdate();
  13332. },
  13333. jump() {
  13334. window.topU.postMessage({ tools: "43" }, "*");
  13335. },
  13336. getUpdateMore(f, checkboxList, searchTN, index) {
  13337. this.dialogVisibleMember = f;
  13338. this.checkboxList = checkboxList;
  13339. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13340. this.plIndex = index;
  13341. },
  13342. setPlname(a) {
  13343. if (this.plworkFile.length) {
  13344. this.plworkFile[this.plIndex].username = a;
  13345. } else {
  13346. this.worksSName = a;
  13347. }
  13348. this.dialogVisibleMember = false;
  13349. },
  13350. previewImg(url,w) {
  13351. this.$hevueImgPreview(url);
  13352. if(w){
  13353. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13354. }
  13355. },
  13356. checkImg(list) {
  13357. if (!list.length) {
  13358. return;
  13359. }
  13360. this.$hevueImgPreview({
  13361. multiple: true, // 开启多图预览模式
  13362. imgList: list, // 需要预览的多图数组
  13363. });
  13364. },
  13365. change(val) {
  13366. console.log(val);
  13367. },
  13368. goTo(path) {
  13369. this.$router.push(path);
  13370. },
  13371. handlePictureCardPreview(url) {
  13372. this.dialogImageUrl = url;
  13373. this.pictureDialog = true;
  13374. },
  13375. clean(type) {
  13376. if (type == 1) {
  13377. this.studyJuri[0].cover.splice(0, 1);
  13378. } else if (type == 2) {
  13379. this.studyJuri[0].upVedio.splice(0, 1);
  13380. } else {
  13381. this.studyJuri[0].upFile.splice(0, 1);
  13382. }
  13383. },
  13384. clean2(index) {
  13385. this.plworkFile.splice(index, 1);
  13386. },
  13387. handleClose(done) {
  13388. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13389. this.videoDetail.sources[0].src = "";
  13390. }
  13391. this.commentIndexJson = {};
  13392. this.changeSplitScreenBehavior({code:99})
  13393. done();
  13394. },
  13395. fullTools() {
  13396. this.full = !this.full;
  13397. },
  13398. imgChange(file, fileList, type) {
  13399. if (type == 1) {
  13400. var _tmp = this.studyJuri[0].cover;
  13401. } else if (type == 2) {
  13402. var _tmp = this.studyJuri[0].upVedio;
  13403. } else {
  13404. var _tmp = this.studyJuri[0].upFile;
  13405. }
  13406. this.noneBtnImg = _tmp.length >= 1;
  13407. },
  13408. setContent(bool) {
  13409. this.contentDialog = bool;
  13410. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13411. document.querySelector(".workd_media").style.height = "650px";
  13412. } else if (document.querySelector(".workd_media")) {
  13413. document.querySelector(".workd_media").style.height = "auto";
  13414. }
  13415. },
  13416. setContent2(bool) {
  13417. this.mlDialog = bool;
  13418. if (
  13419. bool &&
  13420. this.contentDialog &&
  13421. document.querySelector(".workd_media")
  13422. ) {
  13423. document.querySelector(".workd_media").style.height = "650px";
  13424. } else if (document.querySelector(".workd_media")) {
  13425. document.querySelector(".workd_media").style.height = "auto";
  13426. }
  13427. },
  13428. openToolAll() {
  13429. this.toolDialogVisible = true;
  13430. },
  13431. addImg(e) {
  13432. var el = e.currentTarget;
  13433. // this.$message.success('触发上传')
  13434. el.getElementsByTagName("input")[0].click();
  13435. e.target.value = "";
  13436. },
  13437. addSelectAnswer() {
  13438. let params = [
  13439. {
  13440. uid: this.userid,
  13441. cid: this.id,
  13442. stage: this.courseType,
  13443. task: this.taskCount,
  13444. tool: this.toolindex,
  13445. content: this.selectAnswer.answer,
  13446. type: 7,
  13447. },
  13448. ];
  13449. this.ajax
  13450. .post(this.$store.state.api + "addCourseWorks", params)
  13451. .then((res) => {
  13452. this.$message({
  13453. message: "提交成功",
  13454. type: "success",
  13455. });
  13456. this.dialogVisibleSelect = false;
  13457. // this.selectAnswer = {};
  13458. this.selectSWorks();
  13459. this.selectStudent();
  13460. })
  13461. .catch((err) => {
  13462. this.$message.error("提交失败");
  13463. console.error(err);
  13464. });
  13465. },
  13466. addSelectAnswerTeacher() {
  13467. let params = [
  13468. {
  13469. uid: this.sStudent.userid,
  13470. cid: this.id,
  13471. stage: this.courseType,
  13472. task: this.taskCount,
  13473. tool: this.toolindex,
  13474. content: this.selectAnswer.answer,
  13475. type: 7,
  13476. },
  13477. ];
  13478. this.ajax
  13479. .post(this.$store.state.api + "addCourseWorks", params)
  13480. .then((res) => {
  13481. this.$message({
  13482. message: "提交成功",
  13483. type: "success",
  13484. });
  13485. this.dialogVisibleSelectTeacher = false;
  13486. // this.selectAnswer = {};
  13487. this.selectSWorks();
  13488. this.selectStudent();
  13489. })
  13490. .catch((err) => {
  13491. this.$message.error("提交失败");
  13492. console.error(err);
  13493. });
  13494. },
  13495. addSenWorks() {
  13496. for (var i = 0; i < this.sentenceList.length; i++) {
  13497. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13498. if (
  13499. this.sentenceList[i].chooseSenList[j] == undefined ||
  13500. this.sentenceList[i].chooseSenList[j] == ""
  13501. ) {
  13502. this.$message.error("请将答案填写完整!");
  13503. return;
  13504. }
  13505. }
  13506. }
  13507. let params = [
  13508. {
  13509. uid: this.userid,
  13510. cid: this.id,
  13511. stage: this.courseType,
  13512. task: this.taskCount,
  13513. tool: this.toolindex,
  13514. content: JSON.stringify(this.sentenceList),
  13515. type: 9,
  13516. },
  13517. ];
  13518. this.ajax
  13519. .post(this.$store.state.api + "addCourseWorks", params)
  13520. .then((res) => {
  13521. this.$message({
  13522. message: "提交成功",
  13523. type: "success",
  13524. });
  13525. this.dialogVisibleSentence = false;
  13526. // this.selectAnswer = {};
  13527. this.selectSWorks();
  13528. this.selectStudent();
  13529. })
  13530. .catch((err) => {
  13531. this.$message.error("提交失败");
  13532. console.error(err);
  13533. });
  13534. },
  13535. addSenWorksTeacher() {
  13536. for (var i = 0; i < this.sentenceList.length; i++) {
  13537. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13538. if (
  13539. this.sentenceList[i].chooseSenList[j] == undefined ||
  13540. this.sentenceList[i].chooseSenList[j] == ""
  13541. ) {
  13542. this.$message.error("请将答案填写完整!");
  13543. return;
  13544. }
  13545. }
  13546. }
  13547. let params = [
  13548. {
  13549. uid: this.sStudent.userid,
  13550. cid: this.id,
  13551. stage: this.courseType,
  13552. task: this.taskCount,
  13553. tool: this.toolindex,
  13554. content: JSON.stringify(this.sentenceList),
  13555. type: 9,
  13556. },
  13557. ];
  13558. this.ajax
  13559. .post(this.$store.state.api + "addCourseWorks", params)
  13560. .then((res) => {
  13561. this.$message({
  13562. message: "提交成功",
  13563. type: "success",
  13564. });
  13565. this.dialogVisibleSentenceTeacher = false;
  13566. // this.selectAnswer = {};
  13567. this.selectSWorks();
  13568. this.selectStudent();
  13569. })
  13570. .catch((err) => {
  13571. this.$message.error("提交失败");
  13572. console.error(err);
  13573. });
  13574. },
  13575. returnTableText() {
  13576. this.$confirm("确定还原此模板吗?", "提示", {
  13577. confirmButtonText: "确定",
  13578. cancelButtonText: "取消",
  13579. type: "warning",
  13580. })
  13581. .then(() => {
  13582. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13583. })
  13584. .catch(() => {});
  13585. },
  13586. addTableWorks() {
  13587. let params = [
  13588. {
  13589. uid: this.userid,
  13590. cid: this.id,
  13591. stage: this.courseType,
  13592. task: this.taskCount,
  13593. tool: this.toolindex,
  13594. content: JSON.stringify(this.tableJson),
  13595. type: 10,
  13596. },
  13597. ];
  13598. this.ajax
  13599. .post(this.$store.state.api + "addCourseWorks", params)
  13600. .then((res) => {
  13601. this.$message({
  13602. message: "提交成功",
  13603. type: "success",
  13604. });
  13605. this.dialogVisibleTable = false;
  13606. // this.selectAnswer = {};
  13607. this.selectSWorks();
  13608. this.selectStudent();
  13609. })
  13610. .catch((err) => {
  13611. this.$message.error("提交失败");
  13612. console.error(err);
  13613. });
  13614. },
  13615. tableRowClassName({ row, rowIndex }) {
  13616. if ((rowIndex + 1) % 2 === 0) {
  13617. return "even_row";
  13618. } else {
  13619. return "";
  13620. }
  13621. },
  13622. addTableWorksTeacher() {
  13623. let params = [
  13624. {
  13625. uid: this.sStudent.userid,
  13626. cid: this.id,
  13627. stage: this.courseType,
  13628. task: this.taskCount,
  13629. tool: this.toolindex,
  13630. content: JSON.stringify(this.tableJson),
  13631. type: 10,
  13632. },
  13633. ];
  13634. this.ajax
  13635. .post(this.$store.state.api + "addCourseWorks", params)
  13636. .then((res) => {
  13637. this.$message({
  13638. message: "提交成功",
  13639. type: "success",
  13640. });
  13641. this.dialogVisibleTableTeacher = false;
  13642. // this.selectAnswer = {};
  13643. this.selectSWorks();
  13644. this.selectStudent();
  13645. })
  13646. .catch((err) => {
  13647. this.$message.error("提交失败");
  13648. console.error(err);
  13649. });
  13650. },
  13651. returnWordText() {
  13652. this.$confirm("确定还原此模板吗?", "提示", {
  13653. confirmButtonText: "确定",
  13654. cancelButtonText: "取消",
  13655. type: "warning",
  13656. })
  13657. .then(() => {
  13658. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13659. })
  13660. .catch(() => {});
  13661. },
  13662. addWordWorks() {
  13663. let params = [
  13664. {
  13665. uid: this.userid,
  13666. cid: this.id,
  13667. stage: this.courseType,
  13668. task: this.taskCount,
  13669. tool: this.toolindex,
  13670. content: JSON.stringify(this.wordJson),
  13671. type: 13,
  13672. atool: 52,
  13673. },
  13674. ];
  13675. this.ajax
  13676. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13677. .then((res) => {
  13678. this.$message({
  13679. message: "提交成功",
  13680. type: "success",
  13681. });
  13682. this.dialogVisibleWord = false;
  13683. // this.selectAnswer = {};
  13684. this.selectSWorks();
  13685. this.selectStudent();
  13686. })
  13687. .catch((err) => {
  13688. this.$message.error("提交失败");
  13689. console.error(err);
  13690. });
  13691. },
  13692. addWordWorksTeacher() {
  13693. let params = [
  13694. {
  13695. uid: this.sStudent.userid,
  13696. cid: this.id,
  13697. stage: this.courseType,
  13698. task: this.taskCount,
  13699. tool: this.toolindex,
  13700. content: JSON.stringify(this.wordJson),
  13701. type: 13,
  13702. atool: 52,
  13703. },
  13704. ];
  13705. this.ajax
  13706. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13707. .then((res) => {
  13708. this.$message({
  13709. message: "提交成功",
  13710. type: "success",
  13711. });
  13712. this.dialogVisibleWordTeacher = false;
  13713. // this.selectAnswer = {};
  13714. this.selectSWorks();
  13715. this.selectStudent();
  13716. })
  13717. .catch((err) => {
  13718. this.$message.error("提交失败");
  13719. console.error(err);
  13720. });
  13721. },
  13722. addCourseWorks(i) {
  13723. var typesql;
  13724. if (this.fileType === 0) {
  13725. typesql = 1;
  13726. } else if (this.fileType === 1) {
  13727. typesql = 4;
  13728. } else if (this.fileType === 2) {
  13729. typesql = 5;
  13730. } else if (this.fileType === 3) {
  13731. typesql = 12;
  13732. }
  13733. if (!this.studyJuri[0].cover[0].url) {
  13734. this.$message.error("请上传文件");
  13735. return;
  13736. }
  13737. let params = [
  13738. {
  13739. uid: this.userid,
  13740. cid: this.id,
  13741. stage: this.courseType,
  13742. task: i,
  13743. tool: this.toolindex,
  13744. content: this.studyJuri[0].cover[0].url,
  13745. type: typesql,
  13746. },
  13747. ];
  13748. this.ajax
  13749. .post(this.$store.state.api + "addCourseWorksR", params)
  13750. .then((res) => {
  13751. this.$message({
  13752. message: "提交成功",
  13753. type: "success",
  13754. });
  13755. this.studyJuri[0].cover = [];
  13756. this.dialogVisible = false;
  13757. this.getCourseDetail(2);
  13758. })
  13759. .catch((err) => {
  13760. this.$message.error("提交失败");
  13761. console.error(err);
  13762. });
  13763. },
  13764. addCourseWorksPl(i) {
  13765. let _files = this.plworkFile;
  13766. var c = 1;
  13767. for (var k = 0; k < _files.length; k++) {
  13768. if (!_files[k].username) {
  13769. c = 2;
  13770. }
  13771. }
  13772. if (c == 2) {
  13773. this.$message.error("请填写学生姓名");
  13774. return;
  13775. }
  13776. let params = [
  13777. {
  13778. ateacher: this.userid,
  13779. cid: this.id,
  13780. stage: this.courseType,
  13781. task: i,
  13782. tool: this.toolindex,
  13783. content: JSON.stringify(_files),
  13784. },
  13785. ];
  13786. this.ajax
  13787. .post(this.$store.state.api + "addCourseWorksPl", params)
  13788. .then((res) => {
  13789. this.$message({
  13790. message: "提交成功",
  13791. type: "success",
  13792. });
  13793. this.plworkFile = [];
  13794. this.dialogVisiblePl = false;
  13795. this.getCourseDetail(2);
  13796. })
  13797. .catch((err) => {
  13798. this.$message.error("提交失败");
  13799. console.error(err);
  13800. });
  13801. },
  13802. addCourseWorks2(i) {
  13803. var typesql;
  13804. if (this.fileType === 0) {
  13805. typesql = 0;
  13806. } else if (this.fileType === 1) {
  13807. typesql = 1;
  13808. } else if (this.fileType === 2) {
  13809. typesql = 3;
  13810. } else if (this.fileType === 3) {
  13811. typesql = 12;
  13812. }
  13813. if (!this.studyJuri[0].cover[0].url) {
  13814. this.$message.error("请上传文件");
  13815. return;
  13816. }
  13817. let params = [
  13818. {
  13819. uid: this.userid,
  13820. cid: this.id,
  13821. stage: this.courseType,
  13822. task: i,
  13823. tool: this.toolindex,
  13824. content: JSON.stringify({
  13825. type: typesql,
  13826. groupIndex: this.groupIndex,
  13827. url: this.studyJuri[0].cover[0].url,
  13828. }),
  13829. type: 11,
  13830. atool: 49,
  13831. text: "",
  13832. },
  13833. ];
  13834. this.ajax
  13835. .post(this.$store.state.api + "addCourseWorks5", params)
  13836. .then((res) => {
  13837. this.$message({
  13838. message: "提交成功",
  13839. type: "success",
  13840. });
  13841. this.studyJuri[0].cover = [];
  13842. this.dialogVisibleGroupWork = false;
  13843. this.getCourseDetail(2);
  13844. })
  13845. .catch((err) => {
  13846. this.$message.error("提交失败");
  13847. console.error(err);
  13848. });
  13849. },
  13850. addEnglishWork() {
  13851. this.myAnList = this.$refs['engJson'].myAnswerList;
  13852. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13853. this.$message.error("请输入作文标题和正文!");
  13854. return;
  13855. }
  13856. let params = [
  13857. {
  13858. uid: this.userid,
  13859. cid: this.id,
  13860. stage: this.courseType,
  13861. task: this.taskCount,
  13862. tool: this.englishToolIndex,
  13863. content: JSON.stringify(this.myAnList),
  13864. type: 16,
  13865. atool: 69,
  13866. text: "",
  13867. },
  13868. ];
  13869. this.ajax
  13870. .post(this.$store.state.api + "addCourseWorks5", params)
  13871. .then((res) => {
  13872. this.$message({
  13873. message: "提交成功",
  13874. type: "success",
  13875. });
  13876. this.myAnList = {};
  13877. this.englishList = {};
  13878. this.englishToolIndex = 0;
  13879. this.engDialogVisible = false;
  13880. this.selectSWorks();
  13881. this.selectStudent();
  13882. })
  13883. .catch((err) => {
  13884. this.$message.error("提交失败");
  13885. console.error(err);
  13886. });
  13887. },
  13888. addCourseWorksGong(i, data, tool) {
  13889. let params = [
  13890. {
  13891. uid: this.userid,
  13892. cid: this.id,
  13893. stage: this.courseType,
  13894. task: this.taskCount,
  13895. tool: i,
  13896. content: data,
  13897. type: 12,
  13898. atool: tool,
  13899. text: "",
  13900. },
  13901. ];
  13902. this.ajax
  13903. .post(this.$store.state.api + "addCourseWorks5", params)
  13904. .then((res) => {
  13905. this.$message({
  13906. message: "提交成功",
  13907. type: "success",
  13908. });
  13909. this.studyJuri[0].cover = [];
  13910. this.selectSWorks();
  13911. this.selectStudent();
  13912. })
  13913. .catch((err) => {
  13914. this.$message.error("提交失败");
  13915. console.error(err);
  13916. });
  13917. },
  13918. addCourseWorksGongTeacher(i, data, tool) {
  13919. let params = [
  13920. {
  13921. uid: this.sStudent.userid,
  13922. cid: this.id,
  13923. stage: this.courseType,
  13924. task: this.taskCount,
  13925. tool: i,
  13926. content: data,
  13927. type: 12,
  13928. atool: tool,
  13929. text: "",
  13930. },
  13931. ];
  13932. this.ajax
  13933. .post(this.$store.state.api + "addCourseWorks5", params)
  13934. .then((res) => {
  13935. this.$message({
  13936. message: "提交成功",
  13937. type: "success",
  13938. });
  13939. this.studyJuri[0].cover = [];
  13940. this.dialogVisibleWorks = false;
  13941. this.selectSWorks();
  13942. this.selectStudent();
  13943. })
  13944. .catch((err) => {
  13945. this.$message.error("提交失败");
  13946. console.error(err);
  13947. });
  13948. },
  13949. addCourseWorksGongPl(i, data, tool, type) {
  13950. let params = [
  13951. {
  13952. uid: this.sStudent.userid,
  13953. cid: this.id,
  13954. stage: this.courseType,
  13955. task: this.taskCount,
  13956. tool: i,
  13957. content: data,
  13958. type: type,
  13959. atool: tool,
  13960. text: "",
  13961. },
  13962. ];
  13963. this.ajax
  13964. .post(this.$store.state.api + "addCourseWorks5", params)
  13965. .then((res) => {
  13966. this.$message({
  13967. message: "提交成功",
  13968. type: "success",
  13969. });
  13970. this.studyJuri[0].cover = [];
  13971. this.dialogVisibleWorks = false;
  13972. this.selectSWorks();
  13973. this.selectStudent();
  13974. })
  13975. .catch((err) => {
  13976. this.$message.error("提交失败");
  13977. console.error(err);
  13978. });
  13979. },
  13980. addCourseWorksTeacher(i) {
  13981. var typesql;
  13982. if (this.sTool == 32) {
  13983. this.addCourseWorksGongTeacher(
  13984. this.toolindex,
  13985. this.studyJuri[0].cover[0].url,
  13986. this.sTool
  13987. );
  13988. return;
  13989. }
  13990. if (this.fileType === 0) {
  13991. typesql = 1;
  13992. } else if (this.fileType === 1) {
  13993. typesql = 4;
  13994. } else if (this.fileType === 2) {
  13995. typesql = 5;
  13996. } else if (this.fileType === 3) {
  13997. typesql = 12;
  13998. }
  13999. if (this.sTool == 50) {
  14000. this.addCourseWorksGongPl(
  14001. this.toolindex,
  14002. this.studyJuri[0].cover[0].url,
  14003. this.sTool,
  14004. typesql
  14005. );
  14006. return;
  14007. }
  14008. if (!this.studyJuri[0].cover[0].url) {
  14009. this.$message.error("请上传文件");
  14010. return;
  14011. }
  14012. let params = [
  14013. {
  14014. uid: this.sStudent.userid,
  14015. cid: this.id,
  14016. stage: this.courseType,
  14017. task: i,
  14018. tool: this.toolindex,
  14019. content: this.studyJuri[0].cover[0].url,
  14020. type: typesql,
  14021. ateacher: this.userid,
  14022. },
  14023. ];
  14024. this.ajax
  14025. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14026. .then((res) => {
  14027. this.$message({
  14028. message: "提交成功",
  14029. type: "success",
  14030. });
  14031. this.studyJuri[0].cover = [];
  14032. this.dialogVisibleWorks = false;
  14033. this.getCourseDetail(2);
  14034. })
  14035. .catch((err) => {
  14036. this.$message.error("提交失败");
  14037. console.error(err);
  14038. });
  14039. },
  14040. selectUploadStudent(type) {
  14041. const loading = this.$loading.service({
  14042. background: "rgba(255, 255, 255, 0.7)",
  14043. target: document.body,
  14044. });
  14045. let params = {
  14046. cid: this.uploadCid,
  14047. oid: this.oid,
  14048. cn: "",
  14049. };
  14050. this.ajax
  14051. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14052. .then((res) => {
  14053. loading.close();
  14054. var studentK = [];
  14055. if (this.isWorksS[this.toolindex].length > 0) {
  14056. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14057. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14058. }
  14059. studentK = studentK.join(",");
  14060. }
  14061. this.uploadStudentJuri = res.data[0].filter((el) => {
  14062. return studentK.indexOf(el.userid) == -1;
  14063. });
  14064. if (this.worksSName && this.worksSid) {
  14065. this.uploadStudentJuri.push({
  14066. userid: this.worksSid,
  14067. name: this.worksSName,
  14068. });
  14069. }
  14070. if (type == 1) {
  14071. this.plworkFile = [];
  14072. this.dialogVisibleSname = true;
  14073. } else if (type == 2) {
  14074. this.dialogVisiblePl = true;
  14075. }
  14076. })
  14077. .catch((err) => {
  14078. loading.close();
  14079. console.error(err);
  14080. });
  14081. },
  14082. selectPickStudent() {
  14083. const loading = this.$loading.service({
  14084. background: "rgba(255, 255, 255, 0.7)",
  14085. target: document.body,
  14086. });
  14087. let params = {
  14088. cid: this.uploadCid,
  14089. oid: this.oid,
  14090. cn: "",
  14091. };
  14092. this.ajax
  14093. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14094. .then((res) => {
  14095. loading.close();
  14096. this.uploadStudentJuri = res.data[0];
  14097. this.dialogVisiblePickPeople = true;
  14098. })
  14099. .catch((err) => {
  14100. loading.close();
  14101. console.error(err);
  14102. });
  14103. },
  14104. arrayToArray(arrayo, arrayt) {
  14105. let array1 = arrayo;
  14106. let array2 = arrayt;
  14107. let commonElements = [];
  14108. for (let i = 0; i < array1.length; i++) {
  14109. for (let j = 0; j < array2.length; j++) {
  14110. if (array1[i] === array2[j]) {
  14111. commonElements.push(array1[i]);
  14112. }
  14113. }
  14114. }
  14115. return commonElements;
  14116. },
  14117. selectWorksStudent() {
  14118. let params = {
  14119. oid: this.oid,
  14120. cid: this.courseDetail.juri,
  14121. };
  14122. this.ajax
  14123. .get(this.$store.state.api + "selectWorksStudent", params)
  14124. .then((res) => {
  14125. var a = res.data[0];
  14126. for (var i = 0; i < this.isWorksS.length; i++) {
  14127. this.noWorksS[i] = [];
  14128. var studentK = [];
  14129. if (this.isWorksS[i].length > 0) {
  14130. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14131. studentK.push(this.isWorksS[i][z].uid);
  14132. }
  14133. studentK = studentK.join(",");
  14134. for (var j = 0; j < a.length; j++) {
  14135. if (studentK.indexOf(a[j].userid) == -1) {
  14136. if (this.tcid) {
  14137. // a[j].classid.indexOf(this.tcid) != -1
  14138. if (
  14139. this.arrayToArray(
  14140. a[j].classid.split(","),
  14141. this.tcid.split(",")
  14142. ).length
  14143. ) {
  14144. this.noWorksS[i].push({
  14145. student: a[j].name,
  14146. userid: a[j].userid,
  14147. });
  14148. }
  14149. } else {
  14150. this.noWorksS[i].push({
  14151. student: a[j].name,
  14152. userid: a[j].userid,
  14153. });
  14154. }
  14155. }
  14156. }
  14157. } else {
  14158. for (var k = 0; k < a.length; k++) {
  14159. if (this.tcid) {
  14160. if (
  14161. this.arrayToArray(
  14162. a[k].classid.split(","),
  14163. this.tcid.split(",")
  14164. ).length
  14165. ) {
  14166. this.noWorksS[i].push({
  14167. student: a[k].name,
  14168. userid: a[k].userid,
  14169. });
  14170. }
  14171. } else {
  14172. this.noWorksS[i].push({
  14173. student: a[k].name,
  14174. userid: a[k].userid,
  14175. });
  14176. }
  14177. }
  14178. }
  14179. }
  14180. this.$forceUpdate();
  14181. if (
  14182. Object.keys(this.commentDetail).length &&
  14183. Object.keys(this.commentIndexJson).length &&
  14184. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14185. ) {
  14186. let a = 1;
  14187. let c = this.commentIndexJson;
  14188. if (
  14189. this.commentIndexJson.gindex ||
  14190. this.commentIndexJson.gindex === 0
  14191. ) {
  14192. for (
  14193. var i = 0;
  14194. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14195. i++
  14196. ) {
  14197. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14198. groupA: for (var k = 0; k < _el.length; k++) {
  14199. let el = _el[k];
  14200. if (el.wid == this.commentDetail.wid) {
  14201. a = 2;
  14202. this.commentOther(
  14203. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14204. this.commentIndexJson.toolIndex,
  14205. k,
  14206. this.commentIndexJson.gindex
  14207. );
  14208. break groupA;
  14209. }
  14210. }
  14211. }
  14212. if (a === 1) {
  14213. this.commentDetail = [];
  14214. this.commentIndexJson = {};
  14215. this.commentDialogVisible = false;
  14216. this.$message("此作业已被删除");
  14217. }
  14218. } else {
  14219. if (this.isGroup && this.commentIndexJson.gid) {
  14220. groupA: for (
  14221. var i = 0;
  14222. i < this.courseGroup.group.length;
  14223. i++
  14224. ) {
  14225. let _group = this.courseGroup.group[i];
  14226. if (_group.id == this.commentIndexJson.gid) {
  14227. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14228. for (var k = 0; k < _el2.length; k++) {
  14229. let el2 = _el2[k];
  14230. if (el2.wid == this.commentDetail.wid) {
  14231. a = 2;
  14232. this.commentOther(
  14233. _el2[k],
  14234. this.commentIndexJson.toolIndex,
  14235. k,
  14236. null,
  14237. this.commentIndexJson.gid
  14238. );
  14239. break groupA;
  14240. }
  14241. }
  14242. }
  14243. }
  14244. }
  14245. if (a == 1) {
  14246. for (
  14247. var i = 0;
  14248. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14249. i++
  14250. ) {
  14251. let el =
  14252. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14253. if (el.wid == this.commentDetail.wid) {
  14254. a = 2;
  14255. this.commentOther(
  14256. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14257. this.commentIndexJson.toolIndex,
  14258. i
  14259. );
  14260. break;
  14261. }
  14262. }
  14263. }
  14264. if (a === 1) {
  14265. this.commentDetail = [];
  14266. this.commentIndexJson = {};
  14267. this.commentDialogVisible = false;
  14268. this.$message("此作业已被删除");
  14269. }
  14270. }
  14271. }
  14272. })
  14273. .catch((err) => {
  14274. console.error(err);
  14275. });
  14276. },
  14277. selectStudent() {
  14278. //学生查看自己作业
  14279. let params = {
  14280. uid: this.userid,
  14281. cid: this.id,
  14282. s: this.courseType,
  14283. t: this.taskCount,
  14284. };
  14285. this.ajax
  14286. .get(this.$store.state.api + "selectStudentWorks", params)
  14287. .then((res) => {
  14288. var a =
  14289. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14290. this.taskCount
  14291. ].toolChoose;
  14292. var b = res.data[0];
  14293. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14294. var y = [
  14295. "AVI",
  14296. "NAVI",
  14297. "MPEG",
  14298. "ASF",
  14299. "MOV",
  14300. "WMV",
  14301. "3GP",
  14302. "RM",
  14303. "RMVB",
  14304. "FLV",
  14305. "F4V",
  14306. "H.264",
  14307. "H.265",
  14308. "REAL VIDEO",
  14309. "MKV",
  14310. "WebM",
  14311. "HDDVD",
  14312. "MP4",
  14313. "MPG",
  14314. "M4V",
  14315. "MGV",
  14316. "OGV",
  14317. "QTM",
  14318. "STR",
  14319. "AMC",
  14320. "DVX",
  14321. "EVO",
  14322. "DAT",
  14323. "OGG",
  14324. "OGM",
  14325. ];
  14326. for (var i = 0; i < a.length; i++) {
  14327. this.workStudent[i] = [];
  14328. for (var j = 0; j < b.length; j++) {
  14329. if (i == b[j].tool) {
  14330. if (
  14331. (b[j].type == 1 ||
  14332. b[j].type == 4 ||
  14333. b[j].type == 5 ||
  14334. b[j].type == 6 ||
  14335. b[j].type == 12 ||
  14336. b[j].type == 7) &&
  14337. a[i].tool[0] != 15 &&
  14338. a[i].tool[0] != 4 &&
  14339. a[i].tool[0] != 45 &&
  14340. a[i].tool[0] != 50 &&
  14341. a[i].tool[0] != 32 &&
  14342. a[i].tool[0] != 57 &&
  14343. a[i].tool[0] != 52 &&
  14344. a[i].tool[0] != 69
  14345. ) {
  14346. if (
  14347. c.indexOf(
  14348. b[j].content
  14349. .split(".")
  14350. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14351. ) != -1 &&
  14352. a[i].tool[0] == 16 &&
  14353. b[j].atool != 50
  14354. ) {
  14355. this.workStudent[i].push({
  14356. works: b[j].content,
  14357. sName: b[j].name,
  14358. score: b[j].score,
  14359. img: b[j].img,
  14360. type: 1,
  14361. time: b[j].time,
  14362. userid: b[j].userid,
  14363. wid: b[j].id,
  14364. });
  14365. } else if (
  14366. y.indexOf(
  14367. b[j].content
  14368. .split(".")
  14369. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14370. ) != -1 &&
  14371. a[i].tool[0] == 16 &&
  14372. b[j].atool != 50
  14373. ) {
  14374. this.workStudent[i].push({
  14375. userid: b[j].userid,
  14376. wid: b[j].id,
  14377. works: b[j].content,
  14378. sName: b[j].name,
  14379. score: b[j].score,
  14380. img: b[j].img,
  14381. type: 3,
  14382. time: b[j].time,
  14383. });
  14384. } else if (b[j].type == 6 && b[j].atool != 50) {
  14385. this.workStudent[i].push({
  14386. userid: b[j].userid,
  14387. wid: b[j].id,
  14388. works: b[j].content,
  14389. sName: b[j].name,
  14390. score: b[j].score,
  14391. img: b[j].img,
  14392. type: 4,
  14393. time: b[j].time,
  14394. });
  14395. } else if (b[j].type == 7 && b[j].atool != 50) {
  14396. this.workStudent[i].push({
  14397. userid: b[j].userid,
  14398. wid: b[j].id,
  14399. works: b[j].content,
  14400. sName: b[j].name,
  14401. score: b[j].score,
  14402. img: b[j].img,
  14403. type: 5,
  14404. time: b[j].time,
  14405. });
  14406. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14407. this.workStudent[i].push({
  14408. works: b[j].content,
  14409. sName: b[j].name,
  14410. score: b[j].score,
  14411. img: b[j].img,
  14412. type: 12,
  14413. time: b[j].time,
  14414. userid: b[j].userid,
  14415. wid: b[j].id,
  14416. });
  14417. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14418. this.workStudent[i].push({
  14419. works: b[j].content,
  14420. sName: b[j].name,
  14421. score: b[j].score,
  14422. img: b[j].img,
  14423. type: 0,
  14424. time: b[j].time,
  14425. userid: b[j].userid,
  14426. wid: b[j].id,
  14427. });
  14428. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14429. this.workStudent[i].push({
  14430. works: b[j].content,
  14431. sName: b[j].name,
  14432. score: b[j].score,
  14433. img: b[j].img,
  14434. type: 0,
  14435. time: b[j].time,
  14436. userid: b[j].userid,
  14437. wid: b[j].id,
  14438. });
  14439. }
  14440. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14441. this.workStudent[i].push({
  14442. works: b[j].content,
  14443. sName: b[j].name,
  14444. score: b[j].score,
  14445. img: b[j].img,
  14446. type: 2,
  14447. time: b[j].time,
  14448. userid: b[j].userid,
  14449. wid: b[j].id,
  14450. });
  14451. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14452. this.workStudent[i].push({
  14453. works: b[j].content,
  14454. sName: b[j].name,
  14455. score: b[j].score,
  14456. img: b[j].img,
  14457. type: 20,
  14458. time: b[j].time,
  14459. userid: b[j].userid,
  14460. wid: b[j].id,
  14461. });
  14462. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14463. //问卷
  14464. this.workStudent[i].push({
  14465. works: b[j].content,
  14466. sName: b[j].name,
  14467. score: b[j].score,
  14468. img: b[j].img,
  14469. type: 2,
  14470. time: b[j].time,
  14471. userid: b[j].userid,
  14472. wid: b[j].id,
  14473. });
  14474. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14475. //选择题
  14476. this.workStudent[i].push({
  14477. works: b[j].content,
  14478. sName: b[j].name,
  14479. score: b[j].score,
  14480. img: b[j].img,
  14481. type: 8,
  14482. time: b[j].time,
  14483. userid: b[j].userid,
  14484. wid: b[j].id,
  14485. });
  14486. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14487. //选择题
  14488. this.workStudent[i].push({
  14489. works: b[j].content,
  14490. sName: b[j].name,
  14491. score: b[j].score,
  14492. img: b[j].img,
  14493. type: 9,
  14494. time: b[j].time,
  14495. userid: b[j].userid,
  14496. wid: b[j].id,
  14497. });
  14498. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14499. //选择题
  14500. this.workStudent[i].push({
  14501. works: b[j].content,
  14502. sName: b[j].name,
  14503. score: b[j].score,
  14504. img: b[j].img,
  14505. type: 10,
  14506. time: b[j].time,
  14507. userid: b[j].userid,
  14508. wid: b[j].id,
  14509. });
  14510. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14511. //选择题
  14512. this.workStudent[i].push({
  14513. works: b[j].content,
  14514. sName: b[j].name,
  14515. score: b[j].score,
  14516. img: b[j].img,
  14517. type: 13,
  14518. time: b[j].time,
  14519. userid: b[j].userid,
  14520. wid: b[j].id,
  14521. });
  14522. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14523. //选择题
  14524. this.workStudent[i].push({
  14525. works: b[j].content,
  14526. sName: b[j].name,
  14527. score: b[j].score,
  14528. img: b[j].img,
  14529. type: 12,
  14530. time: b[j].time,
  14531. userid: b[j].userid,
  14532. wid: b[j].id,
  14533. });
  14534. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14535. //选择题
  14536. this.workStudent[i].push({
  14537. works: b[j].content,
  14538. sName: b[j].name,
  14539. score: b[j].score,
  14540. img: b[j].img,
  14541. type: 12,
  14542. time: b[j].time,
  14543. userid: b[j].userid,
  14544. wid: b[j].id,
  14545. });
  14546. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14547. //选择题
  14548. this.workStudent[i].push({
  14549. works: b[j].content,
  14550. sName: b[j].name,
  14551. score: b[j].score,
  14552. img: b[j].img,
  14553. type: 15,
  14554. time: b[j].time,
  14555. userid: b[j].userid,
  14556. wid: b[j].id,
  14557. });
  14558. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  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: 16,
  14566. time: b[j].time,
  14567. userid: b[j].userid,
  14568. wid: b[j].id,
  14569. aiCode: b[j].aiCode,
  14570. teacherCode: b[j].teacherCode
  14571. });
  14572. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14573. //英语口语
  14574. this.workStudent[i].push({
  14575. works: b[j].content,
  14576. sName: b[j].name,
  14577. score: b[j].score,
  14578. img: b[j].img,
  14579. type: 17,
  14580. time: b[j].time,
  14581. userid: b[j].userid,
  14582. wid: b[j].id,
  14583. });
  14584. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14585. //交互视频
  14586. this.workStudent[i].push({
  14587. works: b[j].content,
  14588. sName: b[j].name,
  14589. score: b[j].score,
  14590. img: b[j].img,
  14591. type: 14,
  14592. time: b[j].time,
  14593. userid: b[j].userid,
  14594. wid: b[j].id,
  14595. });
  14596. }
  14597. }
  14598. }
  14599. }
  14600. })
  14601. .catch((err) => {
  14602. console.error(err);
  14603. });
  14604. },
  14605. openVideo(w) {
  14606. this.videoDetail = {};
  14607. this.playerOptions1.sources[0].src = w.works;
  14608. this.videoDetail = this.playerOptions1;
  14609. this.videoVisible = true;
  14610. },
  14611. isLikes(wid, uid, t, c, isLikes,sName) {
  14612. if (isLikes == false) {
  14613. let params = [
  14614. {
  14615. wid: wid,
  14616. lid: uid,
  14617. t: t,
  14618. c: c,
  14619. },
  14620. ];
  14621. this.ajax
  14622. .post(this.$store.state.api + "insertComment", params)
  14623. .then((res) => {
  14624. this.$message({
  14625. message: "点赞成功",
  14626. type: "success",
  14627. });
  14628. this.selectSWorks();
  14629. this.selectStudent();
  14630. if(this.tType!=2){
  14631. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14632. }
  14633. })
  14634. .catch((err) => {
  14635. this.$message.error("点赞失败");
  14636. console.error(err);
  14637. });
  14638. } else {
  14639. let params = {
  14640. wid: wid,
  14641. lid: uid,
  14642. type: t,
  14643. };
  14644. this.ajax
  14645. .get(this.$store.state.api + "deleteComment", params)
  14646. .then((res) => {
  14647. this.$message({
  14648. message: "取消点赞成功",
  14649. type: "success",
  14650. });
  14651. this.selectSWorks();
  14652. this.selectStudent();
  14653. })
  14654. .catch((err) => {
  14655. console.error(err);
  14656. });
  14657. }
  14658. },
  14659. deleteComment(wid) {
  14660. this.$confirm("确定删除此评论吗?", "提示", {
  14661. confirmButtonText: "确定",
  14662. cancelButtonText: "取消",
  14663. type: "warning",
  14664. })
  14665. .then(() => {
  14666. let params = {
  14667. id: wid,
  14668. };
  14669. this.ajax
  14670. .get(this.$store.state.api + "deleteComment2", params)
  14671. .then((res) => {
  14672. this.$message({
  14673. message: "删除评论成功",
  14674. type: "success",
  14675. });
  14676. this.selectSWorks();
  14677. this.selectStudent();
  14678. })
  14679. .catch((err) => {
  14680. console.error(err);
  14681. });
  14682. })
  14683. .catch(() => {});
  14684. },
  14685. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14686. this.commentIndexJson = {
  14687. toolIndex: toolIndex,
  14688. wIndex: wIndex,
  14689. gindex: gindex,
  14690. gid: gid,
  14691. };
  14692. this.commentDetail = [];
  14693. this.commentDialogVisible = true;
  14694. this.commentDetail = w;
  14695. if (w.works && w.type == 1) {
  14696. // this.pptImgUrl = "";
  14697. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14698. if (
  14699. a.indexOf(
  14700. w.works
  14701. .split(".")
  14702. [w.works.split(".").length - 1].toLocaleUpperCase()
  14703. ) != -1
  14704. ) {
  14705. let _uuurl = await this.checkLink(w.works);
  14706. console.log(_uuurl)
  14707. this.pptImgUrl =
  14708. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14709. this.showPDF = false;
  14710. } else if (
  14711. w.works
  14712. .split(".")
  14713. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14714. ) {
  14715. this.pptImgUrl = w.works;
  14716. this.showPDF = true;
  14717. }
  14718. } else if (w.works && w.type == 3) {
  14719. this.videoDetail = {};
  14720. this.playerOptions1.sources[0].src = w.works;
  14721. this.videoDetail = this.playerOptions1;
  14722. // this.videoVisible = true;
  14723. } else if (w.works && w.type == 4) {
  14724. this.eScore = JSON.parse(w.works);
  14725. this.rateJson =
  14726. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14727. this.taskCount
  14728. ].toolChoose[toolIndex].rateJson;
  14729. } else if (w.works && w.type == 10) {
  14730. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14731. } else if (w.works && w.type == 13) {
  14732. this.wordJson =
  14733. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14734. this.taskCount
  14735. ].toolChoose[toolIndex].wordJson;
  14736. }
  14737. },
  14738. async openScore(w, index) {
  14739. this.wScore = 0;
  14740. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14741. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14742. this.commentDetail = [];
  14743. if(w.type == 17){
  14744. this.dialogVisibleENScore = true;
  14745. }else{
  14746. this.dialogVisibleScore = true;
  14747. }
  14748. this.commentDetail = w;
  14749. if (w.works && w.type == 1) {
  14750. this.pptImgUrl = "";
  14751. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14752. if (
  14753. a.indexOf(
  14754. w.works
  14755. .split(".")
  14756. [w.works.split(".").length - 1].toLocaleUpperCase()
  14757. ) != -1
  14758. ) {
  14759. let _uuurl = await this.checkLink(w.works);
  14760. console.log(_uuurl)
  14761. this.pptImgUrl =
  14762. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14763. this.showPDF = false;
  14764. } else if (
  14765. w.works
  14766. .split(".")
  14767. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14768. ) {
  14769. this.pptImgUrl = w.works;
  14770. this.showPDF = true;
  14771. }
  14772. } else if (w.works && w.type == 3) {
  14773. this.videoDetail = {};
  14774. this.playerOptions1.sources[0].src = w.works;
  14775. this.videoDetail = this.playerOptions1;
  14776. }else if(w.type == 17){
  14777. let englishVoiceJson = {}
  14778. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14779. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14780. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14781. .toolChoose[index].englishVoiceJson
  14782. : {};
  14783. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14784. }
  14785. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14786. },
  14787. addComment(wid, uid, t,detail) {
  14788. if (this.commentText == "") {
  14789. this.$message.error("请输入评论");
  14790. return;
  14791. }
  14792. let params2 = [
  14793. {
  14794. wid: wid,
  14795. lid: uid,
  14796. t: t,
  14797. },
  14798. ];
  14799. this.ajax
  14800. .post(this.$store.state.api + "getComment", params2)
  14801. .then((res) => {
  14802. if (res.data[0].length > 0) {
  14803. this.$message.error("一个作业只能评论一条");
  14804. } else {
  14805. let params = [
  14806. {
  14807. wid: wid,
  14808. lid: uid,
  14809. t: t,
  14810. c: this.commentText,
  14811. },
  14812. ];
  14813. this.ajax
  14814. .post(this.$store.state.api + "insertComment", params)
  14815. .then((res) => {
  14816. this.$message({
  14817. message: "评论成功",
  14818. type: "success",
  14819. });
  14820. this.commentText = "";
  14821. this.selectSWorks();
  14822. this.selectStudent();
  14823. if(this.tType!=2){
  14824. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14825. }
  14826. })
  14827. .catch((err) => {
  14828. this.$message.error("评论失败");
  14829. console.error(err);
  14830. });
  14831. }
  14832. })
  14833. .catch((err) => {
  14834. // this.$message.error("评论失败");
  14835. console.error(err);
  14836. });
  14837. },
  14838. scoreWork(wid,sName) {
  14839. if (this.wScore == 0) {
  14840. this.$message.error("请评分");
  14841. return;
  14842. }
  14843. let params = [
  14844. {
  14845. wid: wid,
  14846. score: JSON.stringify({
  14847. wScore: this.wScore,
  14848. detail: this.scoreDetail,
  14849. }),
  14850. },
  14851. ];
  14852. this.ajax
  14853. .post(this.$store.state.api + "scoreWork", params)
  14854. .then((res) => {
  14855. this.$message({
  14856. message: "评分成功",
  14857. type: "success",
  14858. });
  14859. this.wScore = 0;
  14860. this.scoreDetail = "";
  14861. this.dialogVisibleScore = false;
  14862. this.selectSWorks();
  14863. this.selectStudent();
  14864. if(this.tType!=2){
  14865. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14866. }
  14867. })
  14868. .catch((err) => {
  14869. this.$message.error("评分失败");
  14870. console.error(err);
  14871. });
  14872. },
  14873. openXz(w, i) {
  14874. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14875. .taskJson[this.taskCount].toolChoose[i].selectJson
  14876. ? JSON.parse(
  14877. JSON.stringify(
  14878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14879. this.taskCount
  14880. ].toolChoose[i].selectJson
  14881. )
  14882. )
  14883. : { url: "", select: [], answer: [] };
  14884. var a = w.works.split(",");
  14885. for (var k = 0; k < a.length; k++) {
  14886. a[k] = parseInt(a[k]);
  14887. }
  14888. this.selectAnswer = { answer: a, stu: w.sName };
  14889. this.isSelect = true;
  14890. this.dialogVisibleSelect = true;
  14891. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14892. },
  14893. openSen(w, i) {
  14894. this.sentenceList1 = JSON.parse(w.works);
  14895. this.sentenceList1.stuName = w.sName;
  14896. this.dialogVisibleSentence1 = true;
  14897. },
  14898. openPj(w, toolindex) {
  14899. this.isStar = true;
  14900. this.eScore = JSON.parse(w);
  14901. this.rateJson =
  14902. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14903. this.taskCount
  14904. ].toolChoose[toolindex].rateJson;
  14905. this.studentEvalDialogVisible = true;
  14906. },
  14907. openEnglishEva(id,i){
  14908. let params = {
  14909. wid: id
  14910. };
  14911. this.ajax
  14912. .get(this.$store.state.api + "selectEngWork", params)
  14913. .then((res) => {
  14914. this.evaEngJson.message = res.data[0][0];
  14915. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14916. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14917. .toolChoose[i].englishList;
  14918. this.engEvaDialogVisible = true;
  14919. })
  14920. .catch((err) => {
  14921. console.error(err);
  14922. });
  14923. },
  14924. deleteWorks(id) {
  14925. this.$confirm("确定删除此作业吗?", "提示", {
  14926. confirmButtonText: "确定",
  14927. cancelButtonText: "取消",
  14928. type: "warning",
  14929. })
  14930. .then(() => {
  14931. let params = [
  14932. {
  14933. id: id,
  14934. },
  14935. ];
  14936. this.ajax
  14937. .post(this.$store.state.api + "deleteCourseWork", params)
  14938. .then((res) => {
  14939. this.$message({
  14940. message: "删除成功",
  14941. type: "success",
  14942. });
  14943. this.selectStudent();
  14944. this.selectSWorks();
  14945. this.selectSLook();
  14946. })
  14947. .catch((err) => {
  14948. this.$message.error("网络异常");
  14949. console.error(err);
  14950. });
  14951. })
  14952. .catch(() => {});
  14953. },
  14954. selectSWorks(gindex) {
  14955. //教师查看全部作业
  14956. let params = {
  14957. cid: this.id,
  14958. s: this.courseType,
  14959. t: this.taskCount,
  14960. };
  14961. this.ajax
  14962. .get(this.$store.state.api + "selectSWorks", params)
  14963. .then((res) => {
  14964. var a =
  14965. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14966. this.taskCount
  14967. ].toolChoose;
  14968. var b = res.data[0];
  14969. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14970. var y = [
  14971. "AVI",
  14972. "NAVI",
  14973. "MPEG",
  14974. "ASF",
  14975. "MOV",
  14976. "WMV",
  14977. "3GP",
  14978. "RM",
  14979. "RMVB",
  14980. "FLV",
  14981. "F4V",
  14982. "H.264",
  14983. "H.265",
  14984. "REAL VIDEO",
  14985. "MKV",
  14986. "WebM",
  14987. "HDDVD",
  14988. "MP4",
  14989. "MPG",
  14990. "M4V",
  14991. "MGV",
  14992. "OGV",
  14993. "QTM",
  14994. "STR",
  14995. "AMC",
  14996. "DVX",
  14997. "EVO",
  14998. "DAT",
  14999. "OGG",
  15000. "OGM",
  15001. ];
  15002. var d = res.data[1];
  15003. var e = res.data[2];
  15004. var f = res.data[3];
  15005. let _worksStudent = [];
  15006. var _worksStudent2 = [];
  15007. for (var i = 0; i < a.length; i++) {
  15008. _worksStudent[i] = [];
  15009. _worksStudent2[i] = [];
  15010. if (
  15011. !this.isCloseList[i] ||
  15012. this.isCloseList[i].isClose == undefined
  15013. ) {
  15014. this.isCloseList[i] = { isClose: 0 };
  15015. }
  15016. this.groupStudent[i] = [];
  15017. this.groupStudentUid[i] = [];
  15018. if (this.isGroup) {
  15019. for (
  15020. var groupI = 0;
  15021. groupI < this.courseGroup.group.length;
  15022. groupI++
  15023. ) {
  15024. this.courseGroup.group[groupI].works[i] = [];
  15025. }
  15026. }
  15027. this.isWorksS[i] = [];
  15028. this.checkJson[i] = [];
  15029. if (a[i].tool[0] == 49) {
  15030. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15031. this.groupStudent[i][gA] = [];
  15032. this.groupStudentUid[i][gA] = [];
  15033. _worksStudent[i][gA] = [];
  15034. _worksStudent2[i][gA] = [];
  15035. this.isCloseList[i][gA] = [];
  15036. for (var g = 0; g < f.length; g++) {
  15037. if (
  15038. f[g].ttype == 2 &&
  15039. this.tcid &&
  15040. this.arrayToArray(
  15041. (f[g].classid ? f[g].classid.split(",") : []),
  15042. this.tcid.split(",")
  15043. ).length == 0
  15044. ) {
  15045. continue;
  15046. }
  15047. let _classId = this.arrayToArray(
  15048. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15049. this.classId ? this.classId.split(",") : []
  15050. )
  15051. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15052. (f[g].classid ? f[g].classid.split(",") : []),
  15053. this.tcid.split(",")
  15054. ).length !== 0 || this.arrayToArray(
  15055. (f[g].classid ? f[g].classid.split(",") : []),
  15056. _classId
  15057. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15058. this.groupStudent[i][gA].push(f[g]);
  15059. this.groupStudentUid[i][gA].push(f[g].userid);
  15060. }
  15061. }
  15062. }
  15063. this.$forceUpdate();
  15064. }
  15065. for (var j = 0; j < b.length; j++) {
  15066. if (
  15067. b[j].ttype == 2 &&
  15068. this.tcid &&
  15069. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15070. .length == 0
  15071. ) {
  15072. continue;
  15073. }
  15074. var likesCount = 0;
  15075. var commentCount = 0;
  15076. var isLikes = false;
  15077. var commentJson = [];
  15078. var likeJson = [];
  15079. var data = b[j];
  15080. if (i == b[j].tool) {
  15081. if (data.type == 2 && a[i].tool[0] == 4) {
  15082. // if(JSON.parse(data.content)[0].anwer){
  15083. var checkL =
  15084. JSON.parse(data.content)[0].anwer instanceof Array
  15085. ? JSON.parse(data.content)[0].anwer
  15086. : JSON.parse(data.content)[0].anwer.split(",");
  15087. for (var z = 0; z < checkL.length; z++) {
  15088. if (!this.checkJson[i][z]) {
  15089. this.checkJson[i].push({
  15090. checkCount: [],
  15091. checkPerson: [],
  15092. rightPerson: [],
  15093. });
  15094. }
  15095. if (!this.checkJson[i][z].checkCount.length) {
  15096. this.checkJson[i][z].checkCount = [];
  15097. let _askItemCount = JSON.parse(data.content)[0].askJson
  15098. .askJson[z].askItem;
  15099. for (var aic = 0; aic < _askItemCount; aic++) {
  15100. this.checkJson[i][z].checkCount.push(0);
  15101. }
  15102. }
  15103. if (checkL[z] instanceof Array) {
  15104. if (
  15105. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15106. checkL[z].sort().join(",")
  15107. ) {
  15108. this.checkJson[i][z].rightPerson.push(data.name);
  15109. }
  15110. for (var q = 0; q < checkL[z].length; q++) {
  15111. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15112. ? this.checkJson[i][z].checkPerson[
  15113. parseInt(checkL[z][q])
  15114. ].push(data.name)
  15115. : (this.checkJson[i][z].checkPerson[
  15116. parseInt(checkL[z][q])
  15117. ] = [data.name]);
  15118. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15119. ? this.checkJson[i][z].checkCount[
  15120. parseInt(checkL[z][q])
  15121. ]++
  15122. : (this.checkJson[i][z].checkCount[
  15123. parseInt(checkL[z][q])
  15124. ] = 1);
  15125. }
  15126. } else {
  15127. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15128. this.checkJson[i][z].rightPerson.push(data.name);
  15129. }
  15130. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15131. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15132. ? this.checkJson[i][z].checkPerson[
  15133. parseInt(checkL[z])
  15134. ].push(data.name)
  15135. : (this.checkJson[i][z].checkPerson[
  15136. parseInt(checkL[z])
  15137. ] = [data.name]);
  15138. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15139. ? this.checkJson[i][z].checkCount[
  15140. parseInt(checkL[z])
  15141. ]++
  15142. : (this.checkJson[i][z].checkCount[
  15143. parseInt(checkL[z])
  15144. ] = 1);
  15145. }
  15146. }
  15147. }
  15148. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15149. var checkL = JSON.parse(data.content)[0].anwer;
  15150. for (var z = 0; z < checkL.length; z++) {
  15151. if (!this.checkJson[i][z]) {
  15152. this.checkJson[i].push({
  15153. checkCount: [],
  15154. checkPerson: [],
  15155. rightPerson: [],
  15156. });
  15157. }
  15158. if (!this.checkJson[i][z].checkCount.length) {
  15159. this.checkJson[i][z].checkCount = [];
  15160. let _askItemCount = JSON.parse(data.content)[0].testJson
  15161. .testJson[z].testItem;
  15162. for (var aic = 0; aic < _askItemCount; aic++) {
  15163. this.checkJson[i][z].checkCount.push(0);
  15164. }
  15165. }
  15166. if (checkL[z] instanceof Array) {
  15167. if (
  15168. JSON.parse(data.content)[0]
  15169. .testJson.testJson[z].answer.sort()
  15170. .join(",") == checkL[z].sort().join(",")
  15171. ) {
  15172. this.checkJson[i][z].rightPerson.push(data.name);
  15173. }
  15174. for (var q = 0; q < checkL[z].length; q++) {
  15175. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15176. ? this.checkJson[i][z].checkPerson[
  15177. parseInt(checkL[z][q])
  15178. ].push(data.name)
  15179. : (this.checkJson[i][z].checkPerson[
  15180. parseInt(checkL[z][q])
  15181. ] = [data.name]);
  15182. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15183. ? this.checkJson[i][z].checkCount[
  15184. parseInt(checkL[z][q])
  15185. ]++
  15186. : (this.checkJson[i][z].checkCount[
  15187. parseInt(checkL[z][q])
  15188. ] = 1);
  15189. }
  15190. } else {
  15191. if (
  15192. JSON.parse(data.content)[0].testJson.testJson[z]
  15193. .answer == checkL[z]
  15194. ) {
  15195. this.checkJson[i][z].rightPerson.push(data.name);
  15196. }
  15197. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15198. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15199. ? this.checkJson[i][z].checkPerson[
  15200. parseInt(checkL[z])
  15201. ].push(data.name)
  15202. : (this.checkJson[i][z].checkPerson[
  15203. parseInt(checkL[z])
  15204. ] = [data.name]);
  15205. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15206. ? this.checkJson[i][z].checkCount[
  15207. parseInt(checkL[z])
  15208. ]++
  15209. : (this.checkJson[i][z].checkCount[
  15210. parseInt(checkL[z])
  15211. ] = 1);
  15212. }
  15213. }
  15214. }
  15215. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15216. var checkL = JSON.parse(data.content);
  15217. for (var z = 0; z < checkL.length; z++) {
  15218. if (!this.checkJson[i][z]) {
  15219. this.checkJson[i].push({
  15220. checkCount: [],
  15221. checkPerson: [],
  15222. rightPerson: [],
  15223. });
  15224. }
  15225. this.checkJson[i][z].checkPerson.push(data.name);
  15226. if (
  15227. checkL[z].chooseSenList.toString() ==
  15228. checkL[z].rightAnswer.toString()
  15229. ) {
  15230. this.checkJson[i][z].rightPerson.push(data.name);
  15231. }
  15232. }
  15233. }
  15234. for (var k = 0; k < d.length; k++) {
  15235. //点赞
  15236. if (d[k].workId == b[j].id) {
  15237. likesCount++;
  15238. likeJson.push(d[k])
  15239. if (d[k].likesId == this.userid) {
  15240. isLikes = true;
  15241. }
  15242. }
  15243. }
  15244. for (var l = 0; l < e.length; l++) {
  15245. //评论
  15246. if (e[l].workId == b[j].id) {
  15247. if (e[l].comment != "") {
  15248. commentCount++;
  15249. commentJson.push({
  15250. commentText: e[l].comment,
  15251. commentTime: e[l].commentTime,
  15252. commentPeople: e[l].commentPeople,
  15253. userid: e[l].userid,
  15254. wid: e[l].id,
  15255. });
  15256. }
  15257. }
  15258. }
  15259. if (
  15260. (b[j].type == 1 ||
  15261. b[j].type == 4 ||
  15262. b[j].type == 5 ||
  15263. b[j].type == 6 ||
  15264. b[j].type == 12 ||
  15265. b[j].type == 7) &&
  15266. a[i].tool[0] != 15 &&
  15267. a[i].tool[0] != 4 &&
  15268. a[i].tool[0] != 45 &&
  15269. a[i].tool[0] != 50 &&
  15270. a[i].tool[0] != 32 &&
  15271. a[i].tool[0] != 57 &&
  15272. a[i].tool[0] != 52
  15273. ) {
  15274. if (
  15275. c.indexOf(
  15276. b[j].content
  15277. .split(".")
  15278. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15279. ) != -1 &&
  15280. a[i].tool[0] == 16 &&
  15281. b[j].atool != 50
  15282. ) {
  15283. let _works = {
  15284. userid: b[j].userid,
  15285. ateacher: b[j].ateacher,
  15286. wid: b[j].id,
  15287. works: b[j].content,
  15288. sName: b[j].name,
  15289. type: 1,
  15290. ttype:b[j].ttype,
  15291. time: b[j].time,
  15292. score: b[j].score,
  15293. img: b[j].img,
  15294. likesCount: likesCount,
  15295. commentCount: commentCount,
  15296. isLikes: isLikes,
  15297. commentJson: commentJson,
  15298. likeJson:likeJson
  15299. };
  15300. if (this.isGroup) {
  15301. let isGw = 1;
  15302. for (
  15303. var groupI = 0;
  15304. groupI < this.courseGroup.group.length;
  15305. groupI++
  15306. ) {
  15307. let gid = this.courseGroup.group[groupI].id;
  15308. if (
  15309. this.courseGroupStudentUid[gid].indexOf(
  15310. b[j].userid
  15311. ) != -1
  15312. ) {
  15313. isGw = 2;
  15314. this.courseGroup.group[groupI].works[i].push(_works);
  15315. break;
  15316. }
  15317. }
  15318. if (isGw == 1) {
  15319. _worksStudent[i].push(_works);
  15320. }
  15321. } else {
  15322. _worksStudent[i].push(_works);
  15323. }
  15324. _worksStudent2[i].push(_works);
  15325. this.isWorksS[i].push({
  15326. uid: b[j].userid,
  15327. sName: b[j].name,
  15328. });
  15329. } else if (
  15330. y.indexOf(
  15331. b[j].content
  15332. .split(".")
  15333. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15334. ) != -1 &&
  15335. a[i].tool[0] == 16 &&
  15336. b[j].atool != 50
  15337. ) {
  15338. let _works = {
  15339. userid: b[j].userid,
  15340. ateacher: b[j].ateacher,
  15341. wid: b[j].id,
  15342. works: b[j].content,
  15343. sName: b[j].name,
  15344. type: 3,
  15345. ttype:b[j].ttype,
  15346. time: b[j].time,
  15347. score: b[j].score,
  15348. img: b[j].img,
  15349. likesCount: likesCount,
  15350. commentCount: commentCount,
  15351. isLikes: isLikes,
  15352. commentJson: commentJson,
  15353. likeJson:likeJson
  15354. };
  15355. if (this.isGroup) {
  15356. let isGw = 1;
  15357. for (
  15358. var groupI = 0;
  15359. groupI < this.courseGroup.group.length;
  15360. groupI++
  15361. ) {
  15362. let gid = this.courseGroup.group[groupI].id;
  15363. if (
  15364. this.courseGroupStudentUid[gid].indexOf(
  15365. b[j].userid
  15366. ) != -1
  15367. ) {
  15368. isGw = 2;
  15369. this.courseGroup.group[groupI].works[i].push(_works);
  15370. break;
  15371. }
  15372. }
  15373. if (isGw == 1) {
  15374. _worksStudent[i].push(_works);
  15375. }
  15376. } else {
  15377. _worksStudent[i].push(_works);
  15378. }
  15379. _worksStudent2[i].push(_works);
  15380. this.isWorksS[i].push({
  15381. uid: b[j].userid,
  15382. sName: b[j].name,
  15383. });
  15384. } else if (b[j].type == 6 && b[j].atool != 50) {
  15385. let _works = {
  15386. userid: b[j].userid,
  15387. ateacher: b[j].ateacher,
  15388. wid: b[j].id,
  15389. works: b[j].content,
  15390. sName: b[j].name,
  15391. type: 4,
  15392. ttype:b[j].ttype,
  15393. time: b[j].time,
  15394. score: b[j].score,
  15395. img: b[j].img,
  15396. likesCount: likesCount,
  15397. commentCount: commentCount,
  15398. isLikes: isLikes,
  15399. commentJson: commentJson,
  15400. likeJson:likeJson
  15401. };
  15402. _worksStudent[i].push(_works);
  15403. _worksStudent2[i].push(_works);
  15404. this.isWorksS[i].push({
  15405. uid: b[j].userid,
  15406. sName: b[j].name,
  15407. });
  15408. } else if (b[j].type == 7 && b[j].atool != 50) {
  15409. let _work = {
  15410. userid: b[j].userid,
  15411. ateacher: b[j].ateacher,
  15412. wid: b[j].id,
  15413. works: b[j].content,
  15414. sName: b[j].name,
  15415. type: 5,
  15416. ttype:b[j].ttype,
  15417. time: b[j].time,
  15418. score: b[j].score,
  15419. img: b[j].img,
  15420. likesCount: likesCount,
  15421. commentCount: commentCount,
  15422. isLikes: isLikes,
  15423. commentJson: commentJson,
  15424. likeJson:likeJson
  15425. };
  15426. _worksStudent[i].push(_work);
  15427. _worksStudent2[i].push(_work);
  15428. this.isWorksS[i].push({
  15429. uid: b[j].userid,
  15430. sName: b[j].name,
  15431. });
  15432. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15433. let _works = {
  15434. userid: b[j].userid,
  15435. ateacher: b[j].ateacher,
  15436. wid: b[j].id,
  15437. works: b[j].content,
  15438. sName: b[j].name,
  15439. type: 12,
  15440. ttype:b[j].ttype,
  15441. time: b[j].time,
  15442. score: b[j].score,
  15443. img: b[j].img,
  15444. likesCount: likesCount,
  15445. commentCount: commentCount,
  15446. isLikes: isLikes,
  15447. commentJson: commentJson,
  15448. likeJson:likeJson
  15449. };
  15450. if (this.isGroup) {
  15451. let isGw = 1;
  15452. for (
  15453. var groupI = 0;
  15454. groupI < this.courseGroup.group.length;
  15455. groupI++
  15456. ) {
  15457. let gid = this.courseGroup.group[groupI].id;
  15458. if (
  15459. this.courseGroupStudentUid[gid].indexOf(
  15460. b[j].userid
  15461. ) != -1
  15462. ) {
  15463. isGw = 2;
  15464. this.courseGroup.group[groupI].works[i].push(_works);
  15465. break;
  15466. }
  15467. }
  15468. if (isGw == 1) {
  15469. _worksStudent[i].push(_works);
  15470. }
  15471. } else {
  15472. _worksStudent[i].push(_works);
  15473. }
  15474. _worksStudent2[i].push(_works);
  15475. this.isWorksS[i].push({
  15476. uid: b[j].userid,
  15477. sName: b[j].name,
  15478. });
  15479. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15480. let _works = {
  15481. userid: b[j].userid,
  15482. ateacher: b[j].ateacher,
  15483. wid: b[j].id,
  15484. works: b[j].content,
  15485. sName: b[j].name,
  15486. type: 0,
  15487. ttype:b[j].ttype,
  15488. time: b[j].time,
  15489. score: b[j].score,
  15490. img: b[j].img,
  15491. likesCount: likesCount,
  15492. commentCount: commentCount,
  15493. isLikes: isLikes,
  15494. commentJson: commentJson,
  15495. likeJson:likeJson
  15496. };
  15497. if (this.isGroup) {
  15498. let isGw = 1;
  15499. for (
  15500. var groupI = 0;
  15501. groupI < this.courseGroup.group.length;
  15502. groupI++
  15503. ) {
  15504. let gid = this.courseGroup.group[groupI].id;
  15505. if (
  15506. this.courseGroupStudentUid[gid].indexOf(
  15507. b[j].userid
  15508. ) != -1
  15509. ) {
  15510. isGw = 2;
  15511. this.courseGroup.group[groupI].works[i].push(_works);
  15512. break;
  15513. }
  15514. }
  15515. if (isGw == 1) {
  15516. _worksStudent[i].push(_works);
  15517. }
  15518. } else {
  15519. _worksStudent[i].push(_works);
  15520. }
  15521. _worksStudent2[i].push(_works);
  15522. this.isWorksS[i].push({
  15523. uid: b[j].userid,
  15524. sName: b[j].name,
  15525. });
  15526. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15527. let _works = {
  15528. userid: b[j].userid,
  15529. ateacher: b[j].ateacher,
  15530. wid: b[j].id,
  15531. works: b[j].content,
  15532. sName: b[j].name,
  15533. type: 0,
  15534. ttype:b[j].ttype,
  15535. time: b[j].time,
  15536. score: b[j].score,
  15537. img: b[j].img,
  15538. likesCount: likesCount,
  15539. commentCount: commentCount,
  15540. isLikes: isLikes,
  15541. commentJson: commentJson,
  15542. likeJson:likeJson
  15543. };
  15544. if (this.isGroup) {
  15545. let isGw = 1;
  15546. for (
  15547. var groupI = 0;
  15548. groupI < this.courseGroup.group.length;
  15549. groupI++
  15550. ) {
  15551. let gid = this.courseGroup.group[groupI].id;
  15552. if (
  15553. this.courseGroupStudentUid[gid].indexOf(
  15554. b[j].userid
  15555. ) != -1
  15556. ) {
  15557. isGw = 2;
  15558. this.courseGroup.group[groupI].works[i].push(_works);
  15559. break;
  15560. }
  15561. }
  15562. if (isGw == 1) {
  15563. _worksStudent[i].push(_works);
  15564. }
  15565. } else {
  15566. _worksStudent[i].push(_works);
  15567. }
  15568. _worksStudent2[i].push(_works);
  15569. this.isWorksS[i].push({
  15570. uid: b[j].userid,
  15571. sName: b[j].name,
  15572. });
  15573. }
  15574. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15575. let _works = {
  15576. userid: b[j].userid,
  15577. ateacher: b[j].ateacher,
  15578. wid: b[j].id,
  15579. works: b[j].content,
  15580. sName: b[j].name,
  15581. type: 2,
  15582. ttype:b[j].ttype,
  15583. time: b[j].time,
  15584. score: b[j].score,
  15585. img: b[j].img,
  15586. likesCount: likesCount,
  15587. commentCount: commentCount,
  15588. isLikes: isLikes,
  15589. commentJson: commentJson,
  15590. likeJson:likeJson
  15591. };
  15592. if (this.isGroup) {
  15593. let isGw = 1;
  15594. for (
  15595. var groupI = 0;
  15596. groupI < this.courseGroup.group.length;
  15597. groupI++
  15598. ) {
  15599. let gid = this.courseGroup.group[groupI].id;
  15600. if (
  15601. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15602. -1
  15603. ) {
  15604. isGw = 2;
  15605. this.courseGroup.group[groupI].works[i].push(_works);
  15606. break;
  15607. }
  15608. }
  15609. if (isGw == 1) {
  15610. _worksStudent[i].push(_works);
  15611. }
  15612. } else {
  15613. _worksStudent[i].push(_works);
  15614. }
  15615. _worksStudent2[i].push(_works);
  15616. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15617. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15618. let _works = {
  15619. userid: b[j].userid,
  15620. ateacher: b[j].ateacher,
  15621. wid: b[j].id,
  15622. works: b[j].content,
  15623. sName: b[j].name,
  15624. type: 20,
  15625. ttype:b[j].ttype,
  15626. time: b[j].time,
  15627. score: b[j].score,
  15628. img: b[j].img,
  15629. likesCount: likesCount,
  15630. commentCount: commentCount,
  15631. isLikes: isLikes,
  15632. commentJson: commentJson,
  15633. likeJson:likeJson
  15634. };
  15635. if (this.isGroup) {
  15636. let isGw = 1;
  15637. for (
  15638. var groupI = 0;
  15639. groupI < this.courseGroup.group.length;
  15640. groupI++
  15641. ) {
  15642. let gid = this.courseGroup.group[groupI].id;
  15643. if (
  15644. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15645. -1
  15646. ) {
  15647. isGw = 2;
  15648. this.courseGroup.group[groupI].works[i].push(_works);
  15649. break;
  15650. }
  15651. }
  15652. if (isGw == 1) {
  15653. _worksStudent[i].push(_works);
  15654. }
  15655. } else {
  15656. _worksStudent[i].push(_works);
  15657. }
  15658. _worksStudent2[i].push(_works);
  15659. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15660. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15661. //问卷
  15662. let _work = {
  15663. userid: b[j].userid,
  15664. ateacher: b[j].ateacher,
  15665. wid: b[j].id,
  15666. works: b[j].content,
  15667. sName: b[j].name,
  15668. type: 2,
  15669. ttype:b[j].ttype,
  15670. time: b[j].time,
  15671. score: b[j].score,
  15672. img: b[j].img,
  15673. likesCount: likesCount,
  15674. commentCount: commentCount,
  15675. isLikes: isLikes,
  15676. commentJson: commentJson,
  15677. likeJson:likeJson
  15678. };
  15679. _worksStudent[i].push(_work);
  15680. _worksStudent2[i].push(_work);
  15681. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15682. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15683. //选择题
  15684. let _work = {
  15685. userid: b[j].userid,
  15686. ateacher: b[j].ateacher,
  15687. wid: b[j].id,
  15688. works: b[j].content,
  15689. sName: b[j].name,
  15690. type: 8,
  15691. ttype:b[j].ttype,
  15692. time: b[j].time,
  15693. score: b[j].score,
  15694. img: b[j].img,
  15695. likesCount: likesCount,
  15696. commentCount: commentCount,
  15697. isLikes: isLikes,
  15698. commentJson: commentJson,
  15699. likeJson:likeJson
  15700. };
  15701. _worksStudent[i].push(_work);
  15702. _worksStudent2[i].push(_work);
  15703. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15704. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15705. //选择题
  15706. let _work = {
  15707. userid: b[j].userid,
  15708. ateacher: b[j].ateacher,
  15709. wid: b[j].id,
  15710. works: b[j].content,
  15711. sName: b[j].name,
  15712. type: 9,
  15713. ttype:b[j].ttype,
  15714. time: b[j].time,
  15715. score: b[j].score,
  15716. img: b[j].img,
  15717. likesCount: likesCount,
  15718. commentCount: commentCount,
  15719. isLikes: isLikes,
  15720. commentJson: commentJson,
  15721. likeJson:likeJson
  15722. };
  15723. _worksStudent[i].push(_work);
  15724. _worksStudent2[i].push(_work);
  15725. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15726. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15727. //选择题
  15728. let _work = {
  15729. userid: b[j].userid,
  15730. ateacher: b[j].ateacher,
  15731. wid: b[j].id,
  15732. works: b[j].content,
  15733. sName: b[j].name,
  15734. type: 10,
  15735. ttype:b[j].ttype,
  15736. time: b[j].time,
  15737. score: b[j].score,
  15738. img: b[j].img,
  15739. likesCount: likesCount,
  15740. commentCount: commentCount,
  15741. isLikes: isLikes,
  15742. commentJson: commentJson,
  15743. likeJson:likeJson
  15744. };
  15745. _worksStudent[i].push(_work);
  15746. _worksStudent2[i].push(_work);
  15747. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15748. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15749. //选择题
  15750. let _work = {
  15751. userid: b[j].userid,
  15752. ateacher: b[j].ateacher,
  15753. wid: b[j].id,
  15754. works: b[j].content,
  15755. sName: b[j].name,
  15756. type: 13,
  15757. ttype:b[j].ttype,
  15758. time: b[j].time,
  15759. score: b[j].score,
  15760. img: b[j].img,
  15761. likesCount: likesCount,
  15762. commentCount: commentCount,
  15763. isLikes: isLikes,
  15764. commentJson: commentJson,
  15765. likeJson:likeJson
  15766. };
  15767. _worksStudent[i].push(_work);
  15768. _worksStudent2[i].push(_work);
  15769. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15770. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15771. //选择题
  15772. let _work = {
  15773. userid: b[j].userid,
  15774. ateacher: b[j].ateacher,
  15775. wid: b[j].id,
  15776. works: b[j].content,
  15777. sName: b[j].name,
  15778. type: 16,
  15779. ttype:b[j].ttype,
  15780. time: b[j].time,
  15781. score: b[j].score,
  15782. img: b[j].img,
  15783. likesCount: likesCount,
  15784. commentCount: commentCount,
  15785. isLikes: isLikes,
  15786. commentJson: commentJson,
  15787. aiCode: b[j].aiCode,
  15788. teacherCode: b[j].teacherCode,
  15789. likeJson:likeJson
  15790. };
  15791. _worksStudent[i].push(_work);
  15792. _worksStudent2[i].push(_work);
  15793. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15794. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15795. //英语口语
  15796. let _work = {
  15797. userid: b[j].userid,
  15798. ateacher: b[j].ateacher,
  15799. wid: b[j].id,
  15800. works: b[j].content,
  15801. sName: b[j].name,
  15802. type: 17,
  15803. ttype:b[j].ttype,
  15804. time: b[j].time,
  15805. score: b[j].score,
  15806. img: b[j].img,
  15807. likesCount: likesCount,
  15808. commentCount: commentCount,
  15809. isLikes: isLikes,
  15810. commentJson: commentJson,
  15811. likeJson:likeJson
  15812. };
  15813. _worksStudent[i].push(_work);
  15814. _worksStudent2[i].push(_work);
  15815. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15816. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15817. //交互视频
  15818. let _work = {
  15819. userid: b[j].userid,
  15820. ateacher: b[j].ateacher,
  15821. wid: b[j].id,
  15822. works: b[j].content,
  15823. sName: b[j].name,
  15824. type: 14,
  15825. ttype:b[j].ttype,
  15826. time: b[j].time,
  15827. score: b[j].score,
  15828. img: b[j].img,
  15829. likesCount: likesCount,
  15830. commentCount: commentCount,
  15831. isLikes: isLikes,
  15832. commentJson: commentJson,
  15833. likeJson:likeJson
  15834. };
  15835. _worksStudent[i].push(_work);
  15836. _worksStudent2[i].push(_work);
  15837. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15838. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15839. let _gindex = JSON.parse(b[j].content);
  15840. if (
  15841. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15842. b[j].userid
  15843. ) != -1
  15844. ) {
  15845. let _work = {
  15846. userid: b[j].userid,
  15847. ateacher: b[j].ateacher,
  15848. wid: b[j].id,
  15849. works: _gindex.url,
  15850. sName: b[j].name,
  15851. type: _gindex.type,
  15852. ttype:b[j].ttype,
  15853. time: b[j].time,
  15854. score: b[j].score,
  15855. img: b[j].img,
  15856. likesCount: likesCount,
  15857. commentCount: commentCount,
  15858. isLikes: isLikes,
  15859. commentJson: commentJson,
  15860. likeJson:likeJson
  15861. };
  15862. _worksStudent[i][_gindex.groupIndex].push(_work);
  15863. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15864. }
  15865. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15866. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  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 ? b[j].name : b[j].userid,
  15873. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  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 (a[i].tool[0] == 32 && b[j].atool == 32) {
  15888. let _work = {
  15889. userid: b[j].userid,
  15890. ateacher: b[j].ateacher,
  15891. wid: b[j].id,
  15892. works: b[j].content,
  15893. sName: b[j].name ? b[j].name : b[j].userid,
  15894. type: 12,
  15895. ttype:b[j].ttype,
  15896. time: b[j].time,
  15897. score: b[j].score,
  15898. img: b[j].img,
  15899. likesCount: likesCount,
  15900. commentCount: commentCount,
  15901. isLikes: isLikes,
  15902. commentJson: commentJson,
  15903. likeJson:likeJson
  15904. };
  15905. _worksStudent[i].push(_work);
  15906. _worksStudent2[i].push(_work);
  15907. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15908. } else if (
  15909. a[i].tool[0] == 57 &&
  15910. b[j].atool == 57 &&
  15911. b[j].type == 12
  15912. ) {
  15913. let _work = {
  15914. userid: b[j].userid,
  15915. ateacher: b[j].ateacher,
  15916. wid: b[j].id,
  15917. works: b[j].content,
  15918. sName: b[j].name ? b[j].name : b[j].userid,
  15919. type: 12,
  15920. ttype:b[j].ttype,
  15921. time: b[j].time,
  15922. score: b[j].score,
  15923. img: b[j].img,
  15924. likesCount: likesCount,
  15925. commentCount: commentCount,
  15926. isLikes: isLikes,
  15927. commentJson: commentJson,
  15928. likeJson:likeJson
  15929. };
  15930. _worksStudent[i].push(_work);
  15931. _worksStudent2[i].push(_work);
  15932. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15933. } else if (
  15934. a[i].tool[0] == 57 &&
  15935. b[j].atool == 57 &&
  15936. b[j].type == 15
  15937. ) {
  15938. let _work = {
  15939. userid: b[j].userid,
  15940. ateacher: b[j].ateacher,
  15941. wid: b[j].id,
  15942. works: b[j].content,
  15943. sName: b[j].name ? b[j].name : b[j].userid,
  15944. type: 15,
  15945. ttype:b[j].ttype,
  15946. time: b[j].time,
  15947. score: b[j].score,
  15948. img: b[j].img,
  15949. likesCount: likesCount,
  15950. commentCount: commentCount,
  15951. isLikes: isLikes,
  15952. commentJson: commentJson,
  15953. likeJson:likeJson
  15954. };
  15955. _worksStudent[i].push(_work);
  15956. _worksStudent2[i].push(_work);
  15957. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15958. }
  15959. }
  15960. }
  15961. if (_worksStudent[i] && _worksStudent[i].length) {
  15962. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15963. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15964. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15965. var scoreA = parseFloat(jscoreA);
  15966. var scoreB = parseFloat(jscoreB);
  15967. if (scoreA == scoreB) {
  15968. return b.likesCount - a.likesCount;
  15969. }
  15970. return scoreB - scoreA;
  15971. });
  15972. if (this.isGroup) {
  15973. for (
  15974. var groupI = 0;
  15975. groupI < this.courseGroup.group.length;
  15976. groupI++
  15977. ) {
  15978. this.courseGroup.group[groupI].works[i] =
  15979. this.courseGroup.group[groupI].works[i].sort(function (
  15980. a,
  15981. b
  15982. ) {
  15983. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15984. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15985. var scoreA = parseFloat(jscoreA);
  15986. var scoreB = parseFloat(jscoreB);
  15987. if (scoreA == scoreB) {
  15988. return b.likesCount - a.likesCount;
  15989. }
  15990. return scoreB - scoreA;
  15991. });
  15992. }
  15993. }
  15994. }
  15995. }
  15996. this.timeWorkList = _worksStudent2;
  15997. for (var i = 0; i < a.length; i++) {
  15998. for (var j = 0; j < b.length; j++) {
  15999. var data = b[j];
  16000. if (i == b[j].tool) {
  16001. if (data.type == 2 || data.type == 8) {
  16002. for (var z = 0; z < this.checkJson[i].length; z++) {
  16003. this.checkJson[i][z].checkPerent = [];
  16004. this.checkJson[i][z].right = Math.round(
  16005. (this.checkJson[i][z].rightPerson.length /
  16006. parseInt(_worksStudent[i].length)) *
  16007. 100
  16008. );
  16009. let aaaa = this.checkJson[i][z];
  16010. for (
  16011. var k = 0;
  16012. k < this.checkJson[i][z].checkCount.length;
  16013. k++
  16014. ) {
  16015. this.checkJson[i][z].checkPerent.push(
  16016. Math.round(
  16017. (this.checkJson[i][z].checkCount[k] /
  16018. parseInt(_worksStudent[i].length)) *
  16019. 100
  16020. )
  16021. );
  16022. }
  16023. }
  16024. } else if (data.type == 9) {
  16025. for (var z = 0; z < this.checkJson[i].length; z++) {
  16026. this.checkJson[i][z].checkPerent = [];
  16027. this.checkJson[i][z].right = Math.round(
  16028. (this.checkJson[i][z].rightPerson.length /
  16029. this.checkJson[i][z].checkPerson.length) *
  16030. 100
  16031. );
  16032. }
  16033. }
  16034. }
  16035. }
  16036. }
  16037. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16038. this.joinGroup(gindex);
  16039. }
  16040. this.worksStudent = _worksStudent;
  16041. this.selectWorksStudent();
  16042. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16043. this.$nextTick(()=>{
  16044. setTimeout(()=>{
  16045. setTimeout(()=>{
  16046. this.panToolHeight('tool-'+ci);
  16047. }, 500)
  16048. }, 0)
  16049. })
  16050. }
  16051. })
  16052. .catch((err) => {
  16053. console.error(err);
  16054. });
  16055. },
  16056. pngToWhiteBg(file) {
  16057. const _file = file;
  16058. let read = new FileReader();
  16059. read.readAsDataURL(file); // 文件转base64
  16060. return new Promise((resolve, reject) => {
  16061. read.onload = (e) => {
  16062. let img = new Image();
  16063. img.src = e.target.result;
  16064. img.onload = async () => {
  16065. // 生成canvas
  16066. let canvas = document.createElement("canvas");
  16067. let context = canvas.getContext("2d");
  16068. // 绘制图片到canvas上
  16069. canvas.width = img.width;
  16070. canvas.height = img.height;
  16071. // 在canvas绘制前填充白色背景
  16072. context.fillStyle = "#fff";
  16073. context.fillRect(0, 0, canvas.width, canvas.height);
  16074. context.drawImage(img, 0, 0);
  16075. let base64 = canvas.toDataURL(file["type"], 1);
  16076. let newFile = this.dataUrlToFile(base64, _file);
  16077. resolve(newFile);
  16078. };
  16079. };
  16080. });
  16081. },
  16082. dataUrlToFile(dataurl, file) {
  16083. let arr = dataurl.split(","),
  16084. mime = arr[0].match(/:(.*?);/)[1],
  16085. bstr = atob(arr[1]),
  16086. n = bstr.length,
  16087. u8arr = new Uint8Array(n);
  16088. while (n--) {
  16089. u8arr[n] = bstr.charCodeAt(n);
  16090. }
  16091. // return new Blob([u8arr], { type: mime });
  16092. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16093. type: mime,
  16094. });
  16095. },
  16096. async beforeUpload1(event, type, i) {
  16097. // this.$message.success('进入上传')
  16098. var file = "";
  16099. if (type == 5) {
  16100. file = event;
  16101. } else {
  16102. file = event.target.files[0];
  16103. }
  16104. var credentials = {
  16105. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16106. secretAccessKey: "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",
  16107. }; //秘钥形式的登录上传
  16108. window.AWS.config.update(credentials);
  16109. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16110. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16111. var _this = this;
  16112. _this.progress = 0;
  16113. _this.proVisible = true;
  16114. _this.isFinishSize = 0;
  16115. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16116. var b = [
  16117. "DOC",
  16118. "DOCX",
  16119. "DOCM",
  16120. "DOTM",
  16121. "DOTX",
  16122. "PPTX",
  16123. "PPSX",
  16124. "PPT",
  16125. "PPS",
  16126. "PPTM",
  16127. "POTM",
  16128. "PPAM",
  16129. "POTX",
  16130. "PPSM",
  16131. ];
  16132. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16133. var photoA = [
  16134. "BMP",
  16135. "GIF",
  16136. "PNG",
  16137. "JPEG",
  16138. "JPEG",
  16139. "JPG",
  16140. "TIF",
  16141. "PCX",
  16142. "TGA",
  16143. "EXIF",
  16144. "FPX",
  16145. "SVG",
  16146. "APNG",
  16147. ];
  16148. // if (
  16149. // b.indexOf(
  16150. // file.name
  16151. // .split(".")
  16152. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16153. // ) != -1
  16154. // ) {
  16155. // if (file.size / 1024 / 1024 > 10) {
  16156. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16157. // return;
  16158. // }
  16159. // } else if (
  16160. // excelA.indexOf(
  16161. // file.name
  16162. // .split(".")
  16163. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16164. // ) != "-1"
  16165. // ) {
  16166. // if (file.size / 1024 / 1024 > 5) {
  16167. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16168. // return;
  16169. // }
  16170. // }
  16171. if (
  16172. photoA.indexOf(
  16173. file.name
  16174. .split(".")
  16175. [file.name.split(".").length - 1].toLocaleUpperCase()
  16176. ) != -1 &&
  16177. type != 4
  16178. ) {
  16179. // const blob = await imageConversion.compress(file, 0.8)
  16180. file = await this.pngToWhiteBg(file);
  16181. const blob = await imageConversion.compressAccurately(file, 256);
  16182. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16183. file = new File([blob], file.name, { type: file.type });
  16184. }
  16185. if (file) {
  16186. var params = {
  16187. Key:
  16188. file.name.split(".")[0] +
  16189. new Date().getTime() +
  16190. "." +
  16191. file.name.split(".")[file.name.split(".").length - 1],
  16192. ContentType: file.type,
  16193. Body: file,
  16194. "Access-Control-Allow-Credentials": "*",
  16195. ACL: "public-read",
  16196. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16197. var options = {
  16198. // partSize: 2048 * 1024 * 1024,
  16199. partSize: 1024 * 1024 * 1024,
  16200. queueSize: 2,
  16201. leavePartsOnError: true,
  16202. };
  16203. bucket
  16204. .upload(params, options)
  16205. .on("httpUploadProgress", function (evt) {
  16206. //这里可以写进度条
  16207. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16208. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16209. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16210. })
  16211. .send(function (err, data) {
  16212. _this.progress = 100;
  16213. _this.isFinishSize = _this.isAllSize;
  16214. setTimeout(() => {
  16215. _this.proVisible = false;
  16216. }, 1000);
  16217. if (err) {
  16218. var a = _this.$refs.upload1.uploadFiles;
  16219. a.splice(a.length - 1, a.length);
  16220. _this.$message.error("上传失败");
  16221. } else {
  16222. // _this.$message.success('上传成功')
  16223. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16224. var c = [
  16225. "AVI",
  16226. "NAVI",
  16227. "MPEG",
  16228. "ASF",
  16229. "MOV",
  16230. "WMV",
  16231. "3GP",
  16232. "RM",
  16233. "RMVB",
  16234. "FLV",
  16235. "F4V",
  16236. "H.264",
  16237. "H.265",
  16238. "REAL VIDEO",
  16239. "MKV",
  16240. "WebM",
  16241. "HDDVD",
  16242. "MP4",
  16243. "MPG",
  16244. "M4V",
  16245. "MGV",
  16246. "OGV",
  16247. "QTM",
  16248. "STR",
  16249. "AMC",
  16250. "DVX",
  16251. "EVO",
  16252. "DAT",
  16253. "OGG",
  16254. "OGM",
  16255. ];
  16256. if (type == 1) {
  16257. _this.studyJuri[0].cover.push({
  16258. name: file.name,
  16259. url: data.Location,
  16260. uid: file.uid,
  16261. });
  16262. if (
  16263. c.indexOf(
  16264. _this.studyJuri[0].cover[0].url
  16265. .split(".")
  16266. [
  16267. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16268. ].toLocaleUpperCase()
  16269. ) != -1
  16270. ) {
  16271. _this.fileType = 2;
  16272. } else if (
  16273. b.indexOf(
  16274. _this.studyJuri[0].cover[0].url
  16275. .split(".")
  16276. [
  16277. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16278. ].toLocaleUpperCase()
  16279. ) != -1
  16280. ) {
  16281. _this.fileType = 1;
  16282. } else if (
  16283. photoA.indexOf(
  16284. _this.studyJuri[0].cover[0].url
  16285. .split(".")
  16286. [
  16287. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16288. ].toLocaleUpperCase()
  16289. ) != -1
  16290. ) {
  16291. _this.fileType = 0;
  16292. } else {
  16293. _this.fileType = 3;
  16294. }
  16295. _this.imgChange(null, null, type);
  16296. } else if (type == 2) {
  16297. _this.upToolImg = data.Location;
  16298. _this.imgChange(null, null, type);
  16299. _this.addCourseWorks(i);
  16300. } else if (type == 4) {
  16301. _this.addPz("3", data.Location);
  16302. } else if (type == 5) {
  16303. _this.addImgDrawImG(data.Location);
  16304. } else if (type == 6) {
  16305. var _ftype = 1;
  16306. if (
  16307. c.indexOf(
  16308. data.Location.split(".")[
  16309. data.Location.split(".").length - 1
  16310. ].toLocaleUpperCase()
  16311. ) != -1
  16312. ) {
  16313. _ftype = 5;
  16314. } else if (
  16315. b.indexOf(
  16316. data.Location.split(".")[
  16317. data.Location.split(".").length - 1
  16318. ].toLocaleUpperCase()
  16319. ) != -1
  16320. ) {
  16321. _ftype = 4;
  16322. } else {
  16323. _ftype = 1;
  16324. }
  16325. _this.plworkFile.push({
  16326. name: file.name,
  16327. url: data.Location,
  16328. uid: file.uid,
  16329. fileType: _ftype,
  16330. username:
  16331. _this.plworkFile.length > 10
  16332. ? _this.plworkFile.length + 1
  16333. : "0" + (_this.plworkFile.length + 1),
  16334. });
  16335. } else if (type == 7) {
  16336. _this.addCourseWorksGong(i, data.Location, 32);
  16337. } else if (type == 8) {
  16338. _this.addCourseWorksGong(i, data.Location, 57);
  16339. }
  16340. _this.imgChange(null, null, type);
  16341. console.log(data.Location);
  16342. // _this.$message.success('上传成功'+data.Location)
  16343. }
  16344. });
  16345. }
  16346. },
  16347. async beforeUpload3(event, type, i) {
  16348. // this.$message.success('进入上传')
  16349. let file = "";
  16350. let cfindex2 = 0;
  16351. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16352. file = event.target.files[cfindex];
  16353. var credentials = {
  16354. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16355. secretAccessKey: "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",
  16356. }; //秘钥形式的登录上传
  16357. window.AWS.config.update(credentials);
  16358. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16359. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16360. var _this = this;
  16361. // _this.progress = 0;
  16362. _this.proVisible2 = true;
  16363. var b = [
  16364. "DOC",
  16365. "DOCX",
  16366. "DOCM",
  16367. "DOTM",
  16368. "DOTX",
  16369. "PPTX",
  16370. "PPSX",
  16371. "PPT",
  16372. "PPS",
  16373. "PPTM",
  16374. "POTM",
  16375. "PPAM",
  16376. "POTX",
  16377. "PPSM",
  16378. ];
  16379. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16380. var photoA = [
  16381. "BMP",
  16382. "GIF",
  16383. "PNG",
  16384. "JPEG",
  16385. "JPG",
  16386. "TIF",
  16387. "PCX",
  16388. "TGA",
  16389. "EXIF",
  16390. "FPX",
  16391. "SVG",
  16392. "APNG",
  16393. ];
  16394. if (
  16395. photoA.indexOf(
  16396. file.name
  16397. .split(".")
  16398. [file.name.split(".").length - 1].toLocaleUpperCase()
  16399. ) != -1 &&
  16400. type != 4
  16401. ) {
  16402. // const blob = await imageConversion.compress(file, 0.8)
  16403. file = await this.pngToWhiteBg(file);
  16404. const blob = await imageConversion.compressAccurately(file, 256);
  16405. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16406. file = new File([blob], file.name, { type: file.type });
  16407. }
  16408. if (file) {
  16409. var params = {
  16410. Key:
  16411. file.name.split(".")[0] +
  16412. new Date().getTime() +
  16413. "." +
  16414. file.name.split(".")[file.name.split(".").length - 1],
  16415. ContentType: file.type,
  16416. Body: file,
  16417. "Access-Control-Allow-Credentials": "*",
  16418. ACL: "public-read",
  16419. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16420. var options = {
  16421. // partSize: 2048 * 1024 * 1024,
  16422. partSize: 1024 * 1024 * 1024,
  16423. queueSize: 2,
  16424. leavePartsOnError: true,
  16425. };
  16426. bucket
  16427. .upload(params, options)
  16428. .on("httpUploadProgress", function (evt) {
  16429. //这里可以写进度条
  16430. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16431. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16432. })
  16433. .send(function (err, data) {
  16434. // _this.progress = 100;
  16435. cfindex2++;
  16436. setTimeout(() => {
  16437. if (
  16438. cfindex2 == event.target.files.length - 1 ||
  16439. cfindex2 > event.target.files.length - 1
  16440. ) {
  16441. _this.proVisible2 = false;
  16442. }
  16443. }, 1000);
  16444. if (err) {
  16445. var a = _this.$refs.upload1.uploadFiles;
  16446. a.splice(a.length - 1, a.length);
  16447. _this.$message.error("上传失败");
  16448. } else {
  16449. // _this.$message.success('上传成功')
  16450. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16451. var c = [
  16452. "AVI",
  16453. "NAVI",
  16454. "MPEG",
  16455. "ASF",
  16456. "MOV",
  16457. "WMV",
  16458. "3GP",
  16459. "RM",
  16460. "RMVB",
  16461. "FLV",
  16462. "F4V",
  16463. "H.264",
  16464. "H.265",
  16465. "REAL VIDEO",
  16466. "MKV",
  16467. "WebM",
  16468. "HDDVD",
  16469. "MP4",
  16470. "MPG",
  16471. "M4V",
  16472. "MGV",
  16473. "OGV",
  16474. "QTM",
  16475. "STR",
  16476. "AMC",
  16477. "DVX",
  16478. "EVO",
  16479. "DAT",
  16480. "OGG",
  16481. "OGM",
  16482. ];
  16483. if (type == 1) {
  16484. _this.studyJuri[0].cover.push({
  16485. name: file.name,
  16486. url: data.Location,
  16487. uid: file.uid,
  16488. });
  16489. if (
  16490. c.indexOf(
  16491. _this.studyJuri[0].cover[0].url
  16492. .split(".")
  16493. [
  16494. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16495. ].toLocaleUpperCase()
  16496. ) != -1
  16497. ) {
  16498. _this.fileType = 2;
  16499. } else if (
  16500. b.indexOf(
  16501. _this.studyJuri[0].cover[0].url
  16502. .split(".")
  16503. [
  16504. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16505. ].toLocaleUpperCase()
  16506. ) != -1
  16507. ) {
  16508. _this.fileType = 1;
  16509. } else {
  16510. _this.fileType = 0;
  16511. }
  16512. _this.imgChange(null, null, type);
  16513. } else if (type == 2) {
  16514. _this.upToolImg = data.Location;
  16515. _this.imgChange(null, null, type);
  16516. _this.addCourseWorks(i);
  16517. } else if (type == 4) {
  16518. _this.addPz("3", data.Location);
  16519. } else if (type == 5) {
  16520. _this.addImgDrawImG(data.Location);
  16521. } else if (type == 6) {
  16522. var _ftype = 1;
  16523. if (
  16524. c.indexOf(
  16525. data.Location.split(".")[
  16526. data.Location.split(".").length - 1
  16527. ].toLocaleUpperCase()
  16528. ) != -1
  16529. ) {
  16530. _ftype = 5;
  16531. } else if (
  16532. b.indexOf(
  16533. data.Location.split(".")[
  16534. data.Location.split(".").length - 1
  16535. ].toLocaleUpperCase()
  16536. ) != -1
  16537. ) {
  16538. _ftype = 4;
  16539. } else {
  16540. _ftype = 1;
  16541. }
  16542. _this.plworkFile.push({
  16543. name: file.name,
  16544. url: data.Location,
  16545. uid: file.uid,
  16546. fileType: _ftype,
  16547. username:
  16548. _this.plworkFile.length + 1 > 9
  16549. ? _this.plworkFile.length + 1
  16550. : "0" + (_this.plworkFile.length + 1),
  16551. });
  16552. }
  16553. _this.imgChange(null, null, type);
  16554. console.log(data.Location);
  16555. // _this.$message.success('上传成功'+data.Location)
  16556. }
  16557. });
  16558. }
  16559. }
  16560. },
  16561. beforeUpload2(event, type) {
  16562. var file = event.target.files[0];
  16563. var credentials = {
  16564. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16565. secretAccessKey: "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",
  16566. }; //秘钥形式的登录上传
  16567. window.AWS.config.update(credentials);
  16568. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16569. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16570. var _this = this;
  16571. _this.progress = 0;
  16572. _this.proVisible = true;
  16573. if (file) {
  16574. var params = {
  16575. Key:
  16576. file.name.split(".")[0] +
  16577. new Date().getTime() +
  16578. "." +
  16579. file.name.split(".")[file.name.split(".").length - 1],
  16580. ContentType: file.type,
  16581. Body: file,
  16582. "Access-Control-Allow-Credentials": "*",
  16583. ACL: "public-read",
  16584. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16585. var options = {
  16586. partSize: 2048 * 1024 * 1024,
  16587. queueSize: 2,
  16588. leavePartsOnError: true,
  16589. };
  16590. bucket
  16591. .upload(params, options)
  16592. .on("httpUploadProgress", function (evt) {
  16593. //这里可以写进度条
  16594. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16595. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16596. })
  16597. .send(function (err, data) {
  16598. _this.progress = 100;
  16599. setTimeout(() => {
  16600. _this.proVisible = false;
  16601. }, 1000);
  16602. if (err) {
  16603. var a = _this.$refs.upload1.uploadFiles;
  16604. a.splice(a.length - 1, a.length);
  16605. _this.$message.error("上传失败");
  16606. } else {
  16607. if (type == 2) {
  16608. _this.studyJuri[0].upVedio.push({
  16609. name: file.name,
  16610. url: data.Location,
  16611. uid: file.uid,
  16612. });
  16613. _this.imgChange(null, null, type);
  16614. } else if (type == 3) {
  16615. _this.studyJuri[0].upFile.push({
  16616. name: file.name,
  16617. url: data.Location,
  16618. uid: file.uid,
  16619. });
  16620. _this.imgChange(null, null, type);
  16621. }
  16622. console.log(data.Location);
  16623. }
  16624. });
  16625. }
  16626. },
  16627. allScrell() {
  16628. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16629. },
  16630. nextOrpreSteps(t) {
  16631. if (this.IsFollow && this.tType == 2) {
  16632. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16633. return;
  16634. }
  16635. var b = this.chapInfoList.length - 1;
  16636. if (t == 0) {
  16637. if (this.courseType == 0) {
  16638. if (this.taskCount == 0) {
  16639. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16640. if (this.IsLookOpen) {
  16641. if (
  16642. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16643. ) {
  16644. if (
  16645. this.courseDetail.userid != this.userid &&
  16646. (!this.courseDetail.course_teacher ||
  16647. (this.courseDetail.course_teacher &&
  16648. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16649. ) {
  16650. this.$message.error("任务未解锁");
  16651. } else {
  16652. this.$message.error("上一任务未解锁");
  16653. }
  16654. return;
  16655. }
  16656. }
  16657. this.navList[this.courseType].isOpen = false;
  16658. this.courseType = b;
  16659. this.taskCount =
  16660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16661. .length - 1;
  16662. this.navList[this.courseType].isOpen = true;
  16663. } else {
  16664. this.taskCount--;
  16665. }
  16666. } else {
  16667. if (this.taskCount == 0) {
  16668. this.navList[this.courseType].isOpen = false;
  16669. this.courseType--;
  16670. this.taskCount =
  16671. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16672. .length - 1;
  16673. this.navList[this.courseType].isOpen = true;
  16674. } else {
  16675. this.taskCount--;
  16676. }
  16677. }
  16678. } else {
  16679. if (this.courseType == b) {
  16680. if (
  16681. this.taskCount ==
  16682. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16683. 1
  16684. ) {
  16685. this.navList[this.courseType].isOpen = false;
  16686. this.courseType = 0;
  16687. this.taskCount = 0;
  16688. this.navList[this.courseType].isOpen = true;
  16689. } else {
  16690. var bbb = parseInt(this.taskCount) + 1;
  16691. if (
  16692. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16693. .isLook &&
  16694. this.courseDetail.userid != this.userid &&
  16695. (!this.courseDetail.course_teacher ||
  16696. (this.courseDetail.course_teacher &&
  16697. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16698. this.IsLookOpen
  16699. ) {
  16700. this.$message.error("任务未解锁");
  16701. return;
  16702. }
  16703. this.taskCount++;
  16704. if (this.IsLookOpen) {
  16705. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16706. this.taskCount
  16707. ].isLook = true;
  16708. this.addCourseState(3);
  16709. }
  16710. }
  16711. } else {
  16712. if (
  16713. this.taskCount ==
  16714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16715. 1
  16716. ) {
  16717. var bbb = parseInt(this.courseType) + 1;
  16718. if (
  16719. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16720. this.courseDetail.userid != this.userid &&
  16721. (!this.courseDetail.course_teacher ||
  16722. (this.courseDetail.course_teacher &&
  16723. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16724. this.IsLookOpen
  16725. ) {
  16726. this.$message.error("任务未解锁");
  16727. return;
  16728. }
  16729. this.navList[this.courseType].isOpen = false;
  16730. this.courseType++;
  16731. this.taskCount = 0;
  16732. this.navList[this.courseType].isOpen = true;
  16733. } else {
  16734. var bbb = parseInt(this.taskCount) + 1;
  16735. if (
  16736. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16737. .isLook &&
  16738. this.courseDetail.userid != this.userid &&
  16739. (!this.courseDetail.course_teacher ||
  16740. (this.courseDetail.course_teacher &&
  16741. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16742. this.IsLookOpen
  16743. ) {
  16744. this.$message.error("任务未解锁");
  16745. return;
  16746. }
  16747. this.taskCount++;
  16748. }
  16749. if (this.IsLookOpen) {
  16750. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16751. this.taskCount
  16752. ].isLook = true;
  16753. this.addCourseState(3);
  16754. }
  16755. }
  16756. // if (
  16757. // this.taskCount ==
  16758. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16759. // ) {
  16760. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16761. // } else {
  16762. // this.taskCount++;
  16763. // }
  16764. }
  16765. document.scrollingElement.scrollTop = 0;
  16766. // this.showType = 7;
  16767. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16768. // if (this.vedio[this.taskCount].length > 0) {
  16769. // var a =
  16770. // document.getElementsByClassName("box_course")[this.taskCount]
  16771. // .offsetHeight;
  16772. // document.getElementsByClassName("vedioList")[
  16773. // this.taskCount
  16774. // ].style.height = a + "px";
  16775. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16776. // a - 40 + "px";
  16777. // }
  16778. this.isNoHomeWork = false;
  16779. (this.studyJuri = [
  16780. {
  16781. content: "",
  16782. cover: [],
  16783. upVedio: [],
  16784. upFile: [],
  16785. },
  16786. ]),
  16787. (this.radio = []);
  16788. this.isClickNav = "";
  16789. this.selectPz();
  16790. this.getHomeWork();
  16791. this.getCourseDetail(2);
  16792. this.$forceUpdate();
  16793. },
  16794. openTask(s, n, i) {
  16795. if (this.IsFollow && this.tType == 2) {
  16796. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16797. return;
  16798. }
  16799. if (this.IsLookOpen &&
  16800. this.courseDetail.userid != this.userid &&
  16801. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16802. if (
  16803. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16804. this.courseDetail.userid != this.userid &&
  16805. (!this.courseDetail.course_teacher ||
  16806. (this.courseDetail.course_teacher &&
  16807. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16808. ) {
  16809. this.$message.error("任务未解锁");
  16810. return;
  16811. }
  16812. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16813. if (
  16814. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16815. .isLook
  16816. ) {
  16817. this.$message.error("上一任务未解锁");
  16818. return;
  16819. }
  16820. } else if (s > this.courseType) {
  16821. if (n > 0) {
  16822. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16823. this.$message.error("上一任务未解锁");
  16824. return;
  16825. }
  16826. } else {
  16827. if (
  16828. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16829. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16830. ].isLook
  16831. ) {
  16832. this.$message.error("上一任务未解锁");
  16833. return;
  16834. }
  16835. }
  16836. }
  16837. }
  16838. if (this.navList[s].task[n].isOpen == true) {
  16839. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16840. return;
  16841. }
  16842. let flag = this.courseType==s;
  16843. this.courseType = s;
  16844. this.navId = i;
  16845. this.taskCount = n;
  16846. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16847. this.navList[this.courseType].task[this.taskCount].isOpen =
  16848. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16849. if (this.IsLookOpen) {
  16850. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16851. this.taskCount
  16852. ].isLook = true;
  16853. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16854. this.addCourseState(3,yym);
  16855. }
  16856. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16857. this.isCloseList[ci].isClose = 0;
  16858. this.isCloseList[ci].isCloseBoolean = false;
  16859. this.$nextTick(()=>{
  16860. setTimeout(()=>{
  16861. setTimeout(()=>{
  16862. this.panToolHeight('tool-'+ci);
  16863. }, 0)
  16864. }, 0)
  16865. })
  16866. }
  16867. // this.showType = 7;
  16868. this.isNoHomeWork = false;
  16869. (this.studyJuri = [
  16870. {
  16871. content: "",
  16872. cover: [],
  16873. upVedio: [],
  16874. upFile: [],
  16875. },
  16876. ]),
  16877. (this.radio = []);
  16878. document.scrollingElement.scrollTop = 0;
  16879. // setTimeout(() => {
  16880. // let a = document.getElementById(i);
  16881. // if (a.offsetTop - 110 == 0) {
  16882. // window.scrollTo(0, 0);
  16883. // } else {
  16884. // window.scrollTo(0, a.offsetTop);
  16885. // }
  16886. // }, 0);
  16887. for (var z = 0; z < this.navList.length; z++) {
  16888. for (var q = 0; q < this.navList[z].task.length; q++) {
  16889. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16890. this.navList[z].task[q].tool[w].isTool = false;
  16891. }
  16892. }
  16893. }
  16894. this.selectPz();
  16895. this.getHomeWork();
  16896. this.getCourseDetail(2);
  16897. if(flag){
  16898. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16899. }else{
  16900. 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>`)
  16901. }
  16902. },
  16903. get(i) {
  16904. if (this.IsFollow && this.tType == 2) {
  16905. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16906. return;
  16907. }
  16908. // for(var k=0;k<this.navList.length;k++){
  16909. // this.navList[k].isOpen = false;
  16910. // }
  16911. // this.navList[i].isOpen = true;
  16912. this.navList[i].isOpen = !this.navList[i].isOpen;
  16913. if (this.navList[i].isOpen) {
  16914. this.openTask(i, 0, i + "-0");
  16915. }
  16916. },
  16917. addQuestion() {
  16918. this.answerList.push({
  16919. answerTitle: this.answerQ,
  16920. answer: this.questionAnswer,
  16921. });
  16922. let params = [
  16923. {
  16924. uid: this.userid,
  16925. cid: this.id,
  16926. stage: this.courseType,
  16927. task: this.taskCount,
  16928. tool: this.toolindex,
  16929. content: JSON.stringify(this.answerList),
  16930. type: 3,
  16931. },
  16932. ];
  16933. this.ajax
  16934. .post(this.$store.state.api + "addCourseWorks", params)
  16935. .then((res) => {
  16936. this.$message({
  16937. message: "提交成功",
  16938. type: "success",
  16939. });
  16940. this.answerList = [];
  16941. this.answerDialogVisible = false;
  16942. this.selectStudent();
  16943. this.selectSWorks();
  16944. this.selectSLook();
  16945. })
  16946. .catch((err) => {
  16947. this.$message.error("提交失败");
  16948. console.error(err);
  16949. });
  16950. },
  16951. addQuestionTeacher() {
  16952. this.answerList.push({
  16953. answerTitle: this.answerQ,
  16954. answer: this.questionAnswer,
  16955. });
  16956. let params = [
  16957. {
  16958. uid: this.sStudent.userid,
  16959. cid: this.id,
  16960. stage: this.courseType,
  16961. task: this.taskCount,
  16962. tool: this.toolindex,
  16963. content: JSON.stringify(this.answerList),
  16964. type: 3,
  16965. ateacher: this.userid,
  16966. },
  16967. ];
  16968. this.ajax
  16969. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16970. .then((res) => {
  16971. this.$message({
  16972. message: "提交成功",
  16973. type: "success",
  16974. });
  16975. this.answerList = [];
  16976. this.questionAnswer = "";
  16977. this.answerDialogVisibleTeacher = false;
  16978. this.selectStudent();
  16979. this.selectSWorks();
  16980. this.selectSLook();
  16981. })
  16982. .catch((err) => {
  16983. this.$message.error("提交失败");
  16984. console.error(err);
  16985. });
  16986. },
  16987. refreshCourse() {
  16988. // window.location.reload();
  16989. this.navList = [];
  16990. this.getCourseDetail(1);
  16991. },
  16992. getCourseDetail(type, gindex) {
  16993. let loading;
  16994. if (type != 2) {
  16995. loading = this.$loading.service({
  16996. background: "rgba(255, 255, 255, 0.7)",
  16997. target: document.querySelector(".student_table"),
  16998. });
  16999. }
  17000. this.downLoading = false
  17001. // this.navList[0].isOpen = false;
  17002. // this.navList[this.courseType].isOpen = true;
  17003. // this.courseType = this.courseTypeLine;
  17004. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17005. let params = {
  17006. courseId: this.id,
  17007. };
  17008. this.ajax
  17009. .get(this.$store.state.api + "selectCourseDetail3", params)
  17010. .then((res) => {
  17011. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17012. if (type != 2) {
  17013. loading.close();
  17014. if (
  17015. this.courseType >
  17016. JSON.parse(res.data[0][0].chapters).length - 1
  17017. ) {
  17018. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17019. }
  17020. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17021. .chapterInfo[0].taskJson;
  17022. var b = [
  17023. "AVI",
  17024. "NAVI",
  17025. "MPEG",
  17026. "ASF",
  17027. "MOV",
  17028. "WMV",
  17029. "3GP",
  17030. "RM",
  17031. "RMVB",
  17032. "FLV",
  17033. "F4V",
  17034. "H.264",
  17035. "H.265",
  17036. "REAL VIDEO",
  17037. "MKV",
  17038. "WebM",
  17039. "HDDVD",
  17040. "MP4",
  17041. "MPG",
  17042. "M4V",
  17043. "MGV",
  17044. "OGV",
  17045. "QTM",
  17046. "STR",
  17047. "AMC",
  17048. "DVX",
  17049. "EVO",
  17050. "DAT",
  17051. "OGG",
  17052. "OGM",
  17053. "MP3",
  17054. ];
  17055. let _chapterData = [];
  17056. for (var i = 0; i < a.length; i++) {
  17057. var c = a[i].chapterData;
  17058. this.vedio[i] = [];
  17059. this.textList[i] = [];
  17060. this.lineList[i] = [];
  17061. this.chapToolList[i] = [];
  17062. this.file[i] = [];
  17063. this.fileC[i] = [];
  17064. _chapterData[i] = c.filter((el) => {
  17065. return el.type != 12;
  17066. });
  17067. this.fileC[i] = c.filter((el) => {
  17068. return el.type == 12;
  17069. });
  17070. if (this.tType == 2) {
  17071. if (this.fileC[i].length) {
  17072. let yym1 = this.fileC[i].filter(e=>{
  17073. if(!converter(e.name).includes(converter("教案"))){
  17074. return e
  17075. }
  17076. })
  17077. this.fileC[i] = yym1
  17078. }
  17079. }
  17080. // else if (c[j].type == 12) {
  17081. // this.fileC[i].push(c[j]);
  17082. // }
  17083. for (var j = 0; j < c.length; j++) {
  17084. if (c[j].type == 7) {
  17085. this.chapToolList[i].push(c[j]);
  17086. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17087. this.lineList[i].push(c[j]);
  17088. } else if (c[j].type == 6) {
  17089. this.textList[i].push(c[j]);
  17090. } else {
  17091. if (
  17092. b.indexOf(
  17093. c[j].url
  17094. .split(".")
  17095. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17096. ) != -1
  17097. ) {
  17098. this.vedio[i].push(c[j]);
  17099. } else {
  17100. this.file[i].push(c[j]);
  17101. }
  17102. }
  17103. }
  17104. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17105. d.sources[0].src =
  17106. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17107. this.playerO[i] = d;
  17108. }
  17109. this.courseDetail = res.data[0][0];
  17110. if(this.tType == 2){
  17111. this.tcid = this.arrayToArray(
  17112. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17113. this.classId ? this.classId.split(",") : []
  17114. ).join(",");
  17115. }else{
  17116. this.tcid = this.arrayToArray(
  17117. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17118. this.tcid2 ? this.tcid2.split(",") : []
  17119. ).join(",");
  17120. }
  17121. this.evalua = res.data[0][0].evaId;
  17122. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17123. this.courseType
  17124. ];
  17125. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17126. if (this.tcid && res.data[1].length) {
  17127. let _inviteA = [];
  17128. for (var ik = 0; ik < res.data[1].length; ik++) {
  17129. _inviteA.push({
  17130. cid: res.data[1][ik].classid,
  17131. ic: res.data[1][ik].code,
  17132. });
  17133. }
  17134. for (var ik = 0; ik < _inviteA.length; ik++) {
  17135. if (
  17136. this.arrayToArray(
  17137. _inviteA[ik].cid.split(","),
  17138. this.tcid.split(",")
  17139. ).length
  17140. ) {
  17141. this.inviteCode = _inviteA[ik].ic;
  17142. break;
  17143. }
  17144. }
  17145. }
  17146. for (var l = 0; l < this.chapInfoList.length; l++) {
  17147. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17148. for (var m = 0; m < w.length; m++) {
  17149. w[m].id = l + "-" + m;
  17150. }
  17151. }
  17152. let taskCount = 0;
  17153. if (
  17154. _chapterData[taskCount].length &&
  17155. _chapterData[taskCount][0].type == 2
  17156. ) {
  17157. this.showType = 0;
  17158. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17159. } else {
  17160. if (_chapterData[taskCount].length > 0) {
  17161. let _url = _chapterData[taskCount][0].url;
  17162. if (
  17163. _chapterData[taskCount][0].type == 8 ||
  17164. _chapterData[taskCount][0].type == 14 ||
  17165. _chapterData[taskCount][0].type == 15
  17166. ) {
  17167. this.showType = 2;
  17168. if (
  17169. _url.indexOf("https://") == -1 &&
  17170. _url.indexOf("http://") == -1
  17171. ) {
  17172. _url = "https://" + _url;
  17173. }
  17174. this.pptImgUrl1 = _url;
  17175. } else if (_chapterData[taskCount][0].type == 3) {
  17176. if (
  17177. _url
  17178. .split(".")
  17179. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17180. ) {
  17181. this.showType = 3;
  17182. this.pptImgUrl1 = _url;
  17183. } else if (
  17184. this.isAssetTypeAnImage(
  17185. _url
  17186. .split(".")
  17187. [_url.split(".").length - 1].toLocaleLowerCase()
  17188. )
  17189. ) {
  17190. this.showType = 4;
  17191. this.pptImgUrl1 = _url;
  17192. } else {
  17193. this.showType = 2;
  17194. this.pptImgUrl1 =
  17195. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17196. encodeURIComponent(_url);
  17197. }
  17198. } else if (_chapterData[taskCount][0].type == 13) {
  17199. this.showType = 4;
  17200. this.pptImgUrl1 = _url;
  17201. } else if (_chapterData[taskCount][0].type == 6) {
  17202. this.showType = 1;
  17203. this.text = this.textList[taskCount][0];
  17204. }
  17205. }
  17206. }
  17207. this.isClickNav = 0;
  17208. if (
  17209. !_chapterData[taskCount].length ||
  17210. _chapterData[taskCount][0].type == 12
  17211. ) {
  17212. this.isClickNav = "";
  17213. this.showType = "";
  17214. }
  17215. if (this.tType == 2) {
  17216. _chapterData.forEach((e,i)=>{
  17217. if (e.length) {
  17218. let yym = e.filter(k=>{
  17219. if(!converter(k.name).includes(converter("教案"))){
  17220. return k
  17221. }
  17222. })
  17223. _chapterData[i] = yym
  17224. }
  17225. })
  17226. }
  17227. this.vChapterData = _chapterData;
  17228. } else {
  17229. // this.showType = 0;
  17230. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17231. .chapterInfo[0].taskJson;
  17232. var b = [
  17233. "AVI",
  17234. "NAVI",
  17235. "MPEG",
  17236. "ASF",
  17237. "MOV",
  17238. "WMV",
  17239. "3GP",
  17240. "RM",
  17241. "RMVB",
  17242. "FLV",
  17243. "F4V",
  17244. "H.264",
  17245. "H.265",
  17246. "REAL VIDEO",
  17247. "MKV",
  17248. "WebM",
  17249. "HDDVD",
  17250. "MP4",
  17251. "MPG",
  17252. "M4V",
  17253. "MGV",
  17254. "OGV",
  17255. "QTM",
  17256. "STR",
  17257. "AMC",
  17258. "DVX",
  17259. "EVO",
  17260. "DAT",
  17261. "OGG",
  17262. "OGM",
  17263. "MP3",
  17264. ];
  17265. let _chapterData = [];
  17266. for (var i = 0; i < a.length; i++) {
  17267. var c = a[i].chapterData;
  17268. this.vedio[i] = [];
  17269. this.textList[i] = [];
  17270. this.lineList[i] = [];
  17271. this.chapToolList[i] = [];
  17272. this.file[i] = [];
  17273. this.fileC[i] = [];
  17274. _chapterData[i] = c.filter((el) => {
  17275. return el.type != 12;
  17276. });
  17277. this.fileC[i] = c.filter((el) => {
  17278. return el.type == 12;
  17279. });
  17280. if (this.tType == 2) {
  17281. if (this.fileC[i].length) {
  17282. let yym1 = this.fileC[i].filter(e=>{
  17283. if(!converter(e.name).includes(converter("教案"))){
  17284. return e
  17285. }
  17286. })
  17287. this.fileC[i] = yym1
  17288. }
  17289. }
  17290. for (var j = 0; j < c.length; j++) {
  17291. if (c[j].type == 7) {
  17292. this.chapToolList[i].push(c[j]);
  17293. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17294. this.lineList[i].push(c[j]);
  17295. } else if (c[j].type == 6) {
  17296. this.textList[i].push(c[j]);
  17297. } else {
  17298. if (
  17299. b.indexOf(
  17300. c[j].url
  17301. .split(".")
  17302. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17303. ) != -1
  17304. ) {
  17305. this.vedio[i].push(c[j]);
  17306. } else {
  17307. this.file[i].push(c[j]);
  17308. }
  17309. }
  17310. }
  17311. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17312. d.sources[0].src =
  17313. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17314. this.playerO[i] = d;
  17315. }
  17316. let taskCount = 0;
  17317. if (
  17318. _chapterData[taskCount].length &&
  17319. _chapterData[taskCount][0].type == 2
  17320. ) {
  17321. // this.showType = 0;
  17322. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17323. } else {
  17324. if (_chapterData[taskCount].length > 0) {
  17325. let _url = _chapterData[taskCount][0].url;
  17326. if (
  17327. _chapterData[taskCount][0].type == 8 ||
  17328. _chapterData[taskCount][0].type == 14||
  17329. _chapterData[taskCount][0].type == 15
  17330. ) {
  17331. // this.showType = 2;
  17332. if (
  17333. _url.indexOf("https://") == -1 &&
  17334. _url.indexOf("http://") == -1
  17335. ) {
  17336. _url = "https://" + _url;
  17337. }
  17338. // this.pptImgUrl1 = _url;
  17339. } else if (_chapterData[taskCount][0].type == 3) {
  17340. if (
  17341. _url
  17342. .split(".")
  17343. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17344. ) {
  17345. // this.showType = 3;
  17346. // this.pptImgUrl1 = _url;
  17347. } else if (
  17348. this.isAssetTypeAnImage(
  17349. _url
  17350. .split(".")
  17351. [_url.split(".").length - 1].toLocaleLowerCase()
  17352. )
  17353. ) {
  17354. // this.showType = 4;
  17355. // this.pptImgUrl1 = _url;
  17356. } else {
  17357. // this.showType = 2;
  17358. // this.pptImgUrl1 =
  17359. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17360. // encodeURIComponent(_url);
  17361. }
  17362. } else if (_chapterData[taskCount][0].type == 13) {
  17363. // this.showType = 4;
  17364. // this.pptImgUrl1 = _url;
  17365. } else if (_chapterData[taskCount][0].type == 6) {
  17366. this.showType = 1;
  17367. this.text = this.textList[taskCount][0];
  17368. }
  17369. }
  17370. }
  17371. this.isClickNav = 0;
  17372. if (
  17373. !_chapterData[taskCount].length ||
  17374. _chapterData[taskCount][0].type == 12
  17375. ) {
  17376. this.isClickNav = "";
  17377. // this.showType = "";
  17378. }
  17379. if (this.tType == 2) {
  17380. _chapterData.forEach((e,i)=>{
  17381. if (e.length) {
  17382. let yym = e.filter(k=>{
  17383. if(!converter(k.name).includes(converter("教案"))){
  17384. return k
  17385. }
  17386. })
  17387. _chapterData[i] = yym
  17388. }
  17389. })
  17390. }
  17391. this.vChapterData = _chapterData;
  17392. this.$forceUpdate();
  17393. }
  17394. // else {
  17395. // this.courseDetail = res.data[0][0];
  17396. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17397. // }
  17398. let _this = this;
  17399. if (_this.timer) {
  17400. clearInterval(_this.timer);
  17401. _this.timer = null;
  17402. }
  17403. if (_this.tcid) {
  17404. _this.getCourseGroup(gindex);
  17405. } else {
  17406. _this.selectSWorks(gindex);
  17407. }
  17408. _this.selectStudent();
  17409. _this.selectSLook();
  17410. _this.getPick();
  17411. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17412. _this.setCTask();
  17413. }
  17414. if (_this.dialogVisibleGroup) {
  17415. _this.groupJson =
  17416. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17417. _this.taskCount
  17418. ].toolChoose[_this.toolindex].groupJson;
  17419. }
  17420. _this.$nextTick(() => {
  17421. setTimeout(() => {
  17422. _this.checkEva();
  17423. }, 1000);
  17424. });
  17425. _this.timer = setInterval(function () {
  17426. // _this.getCourseDetail(2);
  17427. if (_this.tcid) {
  17428. _this.getCourseGroup();
  17429. } else {
  17430. _this.selectSWorks();
  17431. }
  17432. _this.selectStudent();
  17433. _this.selectSLook();
  17434. _this.getPick();
  17435. // _this.getSplitScreenData();//获取分屏数据
  17436. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17437. _this.setCTask();
  17438. }
  17439. if (_this.dialogVisibleGroup) {
  17440. _this.groupJson =
  17441. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17442. _this.taskCount
  17443. ].toolChoose[_this.toolindex].groupJson;
  17444. }
  17445. if (_this.tType == 4 || _this.ispzType == 4) {
  17446. _this.selectPz();
  17447. }
  17448. }, 5000);
  17449. if (_this.timer2 == null) {
  17450. _this.timer2 = setInterval(()=> {
  17451. _this.getSplitScreenData();//获取分屏数据
  17452. }, 5000);
  17453. }
  17454. _this.$nextTick(function () {
  17455. setTimeout(() => {
  17456. // var a =
  17457. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17458. // document.getElementsByClassName("vedioList")[0].style.height =
  17459. // a + "px";
  17460. // document.getElementsByClassName("navBox")[0].style.height =
  17461. // a - 40 + "px";
  17462. // if (_this.vedio[_this.taskCount].length > 0) {
  17463. // _this.vedioTime = [];
  17464. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17465. // _this.vedioTime[i] = document.getElementsByClassName(
  17466. // "vjs-duration-display"
  17467. // )[i].textContent;
  17468. // }
  17469. // }
  17470. }, 1000);
  17471. });
  17472. })
  17473. .catch((err) => {
  17474. loading.close();
  17475. console.error(err);
  17476. });
  17477. },
  17478. getCourseGroup(gindex) {
  17479. let params = {
  17480. cid: this.id,
  17481. classid: this.tcid ? this.tcid : "1",
  17482. };
  17483. this.ajax
  17484. .get(this.$store.state.api + "getCourseGroup", params)
  17485. .then((res) => {
  17486. if (res.data && res.data[0].length) {
  17487. if (!this.isGroup) {
  17488. let courseGroup = JSON.parse(res.data[0][0].group);
  17489. courseGroup.group = courseGroup.group.filter((el) => {
  17490. el.works = [];
  17491. return el;
  17492. });
  17493. if (courseGroup.isopen == 2) {
  17494. this.isGroup = false;
  17495. this.selectSWorks(gindex);
  17496. return;
  17497. }
  17498. this.courseGroup = courseGroup;
  17499. let groupPerson = res.data[1];
  17500. let group = JSON.parse(res.data[0][0].group).group;
  17501. let courseGroupStudent = {};
  17502. let courseGroupStudentUid = {};
  17503. for (var i = 0; i < group.length; i++) {
  17504. courseGroupStudent[group[i].id] = [];
  17505. courseGroupStudentUid[group[i].id] = [];
  17506. for (var j = 0; j < groupPerson.length; j++) {
  17507. if (groupPerson[j].groupCid == group[i].id) {
  17508. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17509. courseGroupStudentUid[group[i].id].push(
  17510. groupPerson[j].userid
  17511. );
  17512. }
  17513. }
  17514. }
  17515. this.courseGroupStudent = courseGroupStudent;
  17516. this.courseGroupStudentUid = courseGroupStudentUid;
  17517. }
  17518. if (this.courseGroup.isopen == 2) {
  17519. this.isGroup = false;
  17520. } else {
  17521. this.isGroup = true;
  17522. }
  17523. this.selectSWorks(gindex);
  17524. } else {
  17525. this.selectSWorks(gindex);
  17526. this.isGroup = false;
  17527. }
  17528. })
  17529. .catch((err) => {
  17530. // this.$message.error("网络不佳");
  17531. console.error(err);
  17532. });
  17533. },
  17534. setOperationTime() {
  17535. let _this = this;
  17536. if (_this.opertimer) {
  17537. clearInterval(_this.opertimer);
  17538. _this.opertimer = null;
  17539. }
  17540. _this.opertimer = setInterval(() => {
  17541. _this.setoTime("600");
  17542. }, 600000);
  17543. },
  17544. setoTime(time) {
  17545. let params = [
  17546. {
  17547. uid: this.userid,
  17548. cid: this.id,
  17549. type: "2",
  17550. time: time,
  17551. },
  17552. ];
  17553. this.ajax
  17554. .post(this.$store.state.api + "addOperationTimeT2", params)
  17555. .then((res) => {})
  17556. .catch((err) => {
  17557. console.error(err);
  17558. });
  17559. },
  17560. addPz(type, content) {
  17561. if (type == "1" && this.pzConText == "") {
  17562. this.$message.error("评论不能为空!");
  17563. return;
  17564. }
  17565. let params = [
  17566. {
  17567. cid: this.id,
  17568. uid: this.userid,
  17569. s: this.courseType,
  17570. t: this.taskCount,
  17571. c: type == "1" ? this.pzConText : content,
  17572. type: type,
  17573. },
  17574. ];
  17575. this.ajax
  17576. .post(this.$store.state.api + "addPz2", params)
  17577. .then((res) => {
  17578. this.$message({
  17579. message: "添加成功",
  17580. type: "success",
  17581. });
  17582. this.pzConText = "";
  17583. this.addPzDialog = false;
  17584. this.selectPz();
  17585. if(this.tType!=2){
  17586. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17587. }
  17588. })
  17589. .catch((err) => {
  17590. this.$message.error("添加失败");
  17591. console.error(err);
  17592. });
  17593. },
  17594. setReplyIndex(id, i) {
  17595. this.replyIndex = i;
  17596. this.replyPid = id;
  17597. this.replyDialogVisible = true;
  17598. },
  17599. addHf() {
  17600. if (this.reply == "") {
  17601. this.$message.error("回复不能为空!");
  17602. return;
  17603. }
  17604. let params = [
  17605. {
  17606. cid: this.id,
  17607. uid: this.userid,
  17608. s: this.courseType,
  17609. t: this.taskCount,
  17610. type: "1",
  17611. ct: 2,
  17612. pid: this.replyPid,
  17613. c: this.reply,
  17614. },
  17615. ];
  17616. this.ajax
  17617. .post(this.$store.state.api + "addHf", params)
  17618. .then((res) => {
  17619. this.reply = "";
  17620. this.$message({
  17621. message: "回复成功",
  17622. type: "success",
  17623. });
  17624. this.replyDialogVisible = false;
  17625. this.selectPz();
  17626. })
  17627. .catch((err) => {
  17628. this.$message.error("回复失败");
  17629. console.error(err);
  17630. });
  17631. },
  17632. deletePz(id) {
  17633. this.$confirm("确定删除此评论吗?", "提示", {
  17634. confirmButtonText: "确定",
  17635. cancelButtonText: "取消",
  17636. type: "warning",
  17637. })
  17638. .then(() => {
  17639. let params = [
  17640. {
  17641. id: id,
  17642. },
  17643. ];
  17644. this.ajax
  17645. .post(this.$store.state.api + "deletePz", params)
  17646. .then((res) => {
  17647. this.$message({
  17648. message: "删除成功",
  17649. type: "success",
  17650. });
  17651. this.selectPz();
  17652. })
  17653. .catch((err) => {
  17654. this.$message.error("网络异常");
  17655. console.error(err);
  17656. });
  17657. })
  17658. .catch(() => {});
  17659. },
  17660. deleteReply(id) {
  17661. this.$confirm("确定删除此回复吗?", "提示", {
  17662. confirmButtonText: "确定",
  17663. cancelButtonText: "取消",
  17664. type: "warning",
  17665. })
  17666. .then(() => {
  17667. let params = [
  17668. {
  17669. id: id,
  17670. },
  17671. ];
  17672. this.ajax
  17673. .post(this.$store.state.api + "deleteReply", params)
  17674. .then((res) => {
  17675. this.$message({
  17676. message: "删除成功",
  17677. type: "success",
  17678. });
  17679. this.selectPz();
  17680. })
  17681. .catch((err) => {
  17682. this.$message.error("网络异常");
  17683. console.error(err);
  17684. });
  17685. })
  17686. .catch(() => {});
  17687. },
  17688. setPz() {
  17689. if (this.ispzType == 4) {
  17690. this.ispzType = 0;
  17691. this.pzDialog = false;
  17692. return;
  17693. }
  17694. this.ispzType = 4;
  17695. this.pzDialog = true;
  17696. this.selectPz();
  17697. },
  17698. selectPz() {
  17699. let params = {
  17700. cid: this.id,
  17701. s: this.courseType,
  17702. t: this.taskCount,
  17703. type: this.pzStype,
  17704. uid: this.userid,
  17705. };
  17706. this.ajax
  17707. .get(this.$store.state.api + "selectPzListType", params)
  17708. .then((res) => {
  17709. this.pzList = res.data[0];
  17710. var a = res.data[1];
  17711. for (var i = 0; i < a.length; i++) {
  17712. for (var j = 0; j < this.pzList.length; j++) {
  17713. if (!this.pzList[j].hfList) {
  17714. this.pzList[j].hfList = [];
  17715. }
  17716. if (a[i].pid == this.pzList[j].id) {
  17717. this.pzList[j].hfList.push(a[i]);
  17718. }
  17719. }
  17720. }
  17721. })
  17722. .catch((err) => {
  17723. console.error(err);
  17724. });
  17725. },
  17726. // selectHf() {
  17727. // let params = {
  17728. // cid: this.id,
  17729. // s: this.courseType,
  17730. // t: this.taskCount,
  17731. // };
  17732. // this.ajax
  17733. // .get(this.$store.state.api + "selectHfList", params)
  17734. // .then((res) => {
  17735. // var a = res.data[0];
  17736. // for (var i = 0; i < a.length; i++) {
  17737. // for (var j = 0; j < this.pzList.length; j++) {
  17738. // if (!this.pzList[i].hfList) {
  17739. // this.pzList[i].hfList = [];
  17740. // }
  17741. // if (a[i].pid == this.pzList[j].id) {
  17742. // this.pzList[i].hfList.push(a[i]);
  17743. // }
  17744. // }
  17745. // }
  17746. // })
  17747. // .catch((err) => {
  17748. // console.error(err);
  17749. // });
  17750. // },
  17751. updateSLook() {
  17752. let params = {
  17753. sopen: this.sIsOpen == false ? 1 : 2,
  17754. cid: this.id,
  17755. };
  17756. this.ajax
  17757. .get(this.$store.state.api + "updateCourseSLook", params)
  17758. .then((res) => {
  17759. if (this.sIsOpen == true) {
  17760. this.$message({
  17761. message: "权限设置成功",
  17762. type: "success",
  17763. });
  17764. } else {
  17765. this.$message({
  17766. message: "权限关闭成功",
  17767. type: "success",
  17768. });
  17769. }
  17770. })
  17771. .catch((err) => {
  17772. console.error(err);
  17773. });
  17774. },
  17775. updateFollow() {
  17776. let params = [
  17777. {
  17778. sopen: this.IsFollow == false ? 1 : 2,
  17779. cid: this.id,
  17780. },
  17781. ];
  17782. this.ajax
  17783. .post(this.$store.state.api + "updateCourseFollow", params)
  17784. .then((res) => {
  17785. if (this.IsFollow == true) {
  17786. this.$message({
  17787. message: "开启成功",
  17788. type: "success",
  17789. });
  17790. } else {
  17791. this.$message({
  17792. message: "关闭成功",
  17793. type: "success",
  17794. });
  17795. }
  17796. this.setCTask();
  17797. })
  17798. .catch((err) => {
  17799. console.error(err);
  17800. });
  17801. },
  17802. setCTask() {
  17803. let params = [
  17804. {
  17805. sopen: this.courseType + "-" + this.taskCount,
  17806. cid: this.id,
  17807. },
  17808. ];
  17809. this.ajax
  17810. .post(this.$store.state.api + "updateCourseFollowC", params)
  17811. .then((res) => {})
  17812. .catch((err) => {
  17813. console.error(err);
  17814. });
  17815. },
  17816. updateLookOpen() {
  17817. let params = [
  17818. {
  17819. sopen: this.IsLookOpen == false ? 1 : 2,
  17820. cid: this.id,
  17821. },
  17822. ];
  17823. this.ajax
  17824. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17825. .then((res) => {
  17826. if (this.IsLookOpen == true) {
  17827. // if (this.courseType != 0 && this.taskCount != 0) {
  17828. // this.openTask(0, 0, "0-0");
  17829. // }
  17830. this.$message({
  17831. message: "权限设置成功",
  17832. type: "success",
  17833. });
  17834. } else {
  17835. this.$message({
  17836. message: "权限关闭成功",
  17837. type: "success",
  17838. });
  17839. }
  17840. this.getCourseState(2);
  17841. })
  17842. .catch((err) => {
  17843. console.error(err);
  17844. });
  17845. },
  17846. selectSLook() {
  17847. let params = {
  17848. cid: this.id,
  17849. };
  17850. this.ajax
  17851. .get(this.$store.state.api + "selectCourseSLook", params)
  17852. .then((res) => {
  17853. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17854. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17855. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17856. if (!this.IsLookOpen) {
  17857. this.setNavList();
  17858. }
  17859. this.getCourseState(1);
  17860. if ((this.IsFollow && this.tType == 2)) {
  17861. this.setContent2(false);
  17862. let _followC = res.data[0][0].followC.split("-");
  17863. if (
  17864. this.courseType != _followC[0] ||
  17865. this.taskCount != _followC[1]
  17866. ) {
  17867. this.navList[this.courseType].isOpen = false;
  17868. this.courseType = _followC[0];
  17869. this.navList[this.courseType].isOpen = true;
  17870. this.taskCount = parseInt(_followC[1]);
  17871. this.navId = res.data[0][0].followC;
  17872. document.scrollingElement.scrollTop = 0;
  17873. this.getCourseDetail(2);
  17874. }
  17875. }
  17876. })
  17877. .catch((err) => {
  17878. console.error(err);
  17879. });
  17880. },
  17881. setNavList() {
  17882. if (this.navList.length == 0) {
  17883. this.navList = [];
  17884. var copyList = [];
  17885. for (var l = 0; l < this.chapInfoList.length; l++) {
  17886. var q = this.chapInfoList[l].dyName;
  17887. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17888. var e;
  17889. copyList.push({
  17890. dyName: q,
  17891. isOpen: l === 0 ? true : false,
  17892. task: [],
  17893. });
  17894. for (var r = 0; r < w.length; r++) {
  17895. e = w[r].task;
  17896. if (this.chapInfoList[l].easy == 1) {
  17897. copyList[l].task.push({
  17898. taskName: q,
  17899. id: l + "-" + r,
  17900. isLook: w[r].isLook,
  17901. isOpen: r === 0 ? true : false,
  17902. tool: [],
  17903. });
  17904. } else {
  17905. copyList[l].task.push({
  17906. taskName: e,
  17907. id: l + "-" + r,
  17908. isLook: w[r].isLook,
  17909. isOpen: r === 0 ? true : false,
  17910. tool: [],
  17911. });
  17912. }
  17913. var t = w[r].toolChoose;
  17914. for (var k = 0; k < t.length; k++) {
  17915. var tool = t[k].tool[0];
  17916. copyList[l].task[r].tool.push({
  17917. tool: tool,
  17918. isTool: false,
  17919. });
  17920. }
  17921. // this.navId = this.navId ? this.navId : l + "-" + r;
  17922. // this.navId = l + "-" + r;
  17923. }
  17924. }
  17925. this.navList = copyList;
  17926. this.navList[0].isOpen = false;
  17927. this.navList[this.courseType].isOpen = true;
  17928. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17929. } else {
  17930. this.setNavList2();
  17931. }
  17932. },
  17933. setNavList2() {
  17934. for (var l = 0; l < this.chapInfoList.length; l++) {
  17935. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17936. for (var r = 0; r < w.length; r++) {
  17937. this.navList[l].task[r].isLook = w[r].isLook;
  17938. }
  17939. }
  17940. if (
  17941. this.IsLookOpen &&
  17942. !this.navList[this.courseType].task[this.taskCount].isLook
  17943. ) {
  17944. this.openTask(0, 0, "0-0");
  17945. }
  17946. this.$forceUpdate();
  17947. },
  17948. getCourseState(type) {
  17949. let params = {
  17950. cid: this.id,
  17951. };
  17952. this.ajax
  17953. .get(this.$store.state.api + "getCourseState", params)
  17954. .then((res) => {
  17955. // if (res.data[0].length > 0) {
  17956. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17957. // }
  17958. if (res.data[0].length > 0 && type == 1) {
  17959. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17960. this.setNavList();
  17961. this.$forceUpdate();
  17962. } else if (res.data[0].length > 0 && type == 2) {
  17963. this.addCourseState(2);
  17964. } else {
  17965. // this.addCourseState(1);
  17966. }
  17967. })
  17968. .catch((err) => {
  17969. console.error(err);
  17970. });
  17971. },
  17972. addCourseState(type,val = '') {
  17973. let _state = val ? val : this.chapInfoList;
  17974. // this.courseType this.taskCount
  17975. if (type == 1 || type == 2) {
  17976. for (var i = 0; i < _state.length; i++) {
  17977. let el = _state[i].chapterInfo[0].taskJson;
  17978. for (var j = 0; j < el.length; j++) {
  17979. // if (i == 0 && j == 0) {
  17980. // el[j].isLook = true;
  17981. // } else {
  17982. // el[j].isLook = false;
  17983. // }
  17984. if (
  17985. this.courseType > i ||
  17986. (this.courseType == i && this.taskCount + 1 > j)
  17987. ) {
  17988. el[j].isLook = true;
  17989. } else {
  17990. el[j].isLook = false;
  17991. }
  17992. }
  17993. }
  17994. }
  17995. let params = [
  17996. {
  17997. cid: this.id,
  17998. state: JSON.stringify(_state),
  17999. },
  18000. ];
  18001. this.ajax
  18002. .post(
  18003. this.$store.state.api +
  18004. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18005. params
  18006. )
  18007. .then((res) => {
  18008. if (this.IsLookOpen) {
  18009. this.setNavList();
  18010. }
  18011. if (type == 3 && type == 2) {
  18012. this.getCourseState(1);
  18013. }
  18014. })
  18015. .catch((err) => {
  18016. console.error(err);
  18017. });
  18018. },
  18019. getHomeWork() {
  18020. let params = {
  18021. cid: this.id,
  18022. stage: this.courseType,
  18023. task: this.taskCount,
  18024. uid: this.userid,
  18025. };
  18026. this.ajax
  18027. .get(this.$store.state.api + "selectWork", params)
  18028. .then((res) => {
  18029. if (res.data[0].length > 0) {
  18030. this.studyJuri = JSON.parse(res.data[0][0].content);
  18031. this.isNoHomeWork = true;
  18032. }
  18033. })
  18034. .catch((err) => {
  18035. console.error(err);
  18036. });
  18037. },
  18038. isAssetTypeAnImage(ext) {
  18039. return (
  18040. [
  18041. "png",
  18042. "jpg",
  18043. "jpeg",
  18044. "bmp",
  18045. "gif",
  18046. "webp",
  18047. "psd",
  18048. "svg",
  18049. "tiff",
  18050. ].indexOf(ext) !== -1
  18051. );
  18052. },
  18053. switchVideo(media) {
  18054. this.playerO = {};
  18055. this.playerOptions.poster = "";
  18056. this.playerOptions.sources[0].src = media;
  18057. this.playerO = this.playerOptions;
  18058. },
  18059. onPlayerPlay() {},
  18060. onPlayerTimeupdate(player) {
  18061. let gklog = player.cache_.currentTime; //当前播放的秒数
  18062. let a = player.cache_.duration; //视频的总时长
  18063. let gklog2 = parseInt(gklog);
  18064. // if(gklog2 == '3'){
  18065. // player.pause()
  18066. // setTimeout(()=>{
  18067. // player.currentTime(gklog2+1)
  18068. // player.play()
  18069. // },1000)
  18070. // }
  18071. console.log(" onPlayerTimeupdate!", gklog);
  18072. console.log(" onPlayerTimeupdate!", gklog2);
  18073. },
  18074. lookVedio(u, i) {
  18075. this.isClickNav = "";
  18076. // this.playerOptions.sources[0].src = u;
  18077. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18078. d.sources[0].src = u;
  18079. this.playerO[0] = d;
  18080. this.showType = 0;
  18081. // this.isClickNav = "video" + i;
  18082. this.isClickNav = i;
  18083. this.$forceUpdate();
  18084. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18085. },
  18086. lookText(i, t) {
  18087. this.isClickNav = "";
  18088. // this.text = this.textList[i][t];
  18089. this.text = this.vChapterData[i][t];
  18090. // this.dialogVisible1 = true;
  18091. this.showType = 1;
  18092. // this.isClickNav = "text" + t;
  18093. this.isClickNav = t;
  18094. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18095. },
  18096. lookTools(i, t) {
  18097. this.chapTools = this.chapToolList[i][t];
  18098. this.dialogVisible2 = true;
  18099. },
  18100. async openFile(f) {
  18101. this.pptImgUrl = "";
  18102. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18103. if (
  18104. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18105. -1
  18106. ) {
  18107. let _uuurl = await this.checkLink(f);
  18108. console.log(_uuurl)
  18109. this.pptImgUrl =
  18110. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18111. this.showPDF = false;
  18112. this.dialogVisible3 = true;
  18113. } else if (
  18114. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18115. ) {
  18116. this.pptImgUrl = f;
  18117. this.showPDF = true;
  18118. this.dialogVisible3 = true;
  18119. }
  18120. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18121. },
  18122. openTable(f) {
  18123. this.tableJson = JSON.parse(f.works);
  18124. this.dialogVisibleTable2 = true;
  18125. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18126. },
  18127. openWord(f) {
  18128. this.tableJson = JSON.parse(f.works);
  18129. this.dialogVisibleTable3 = true;
  18130. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18131. },
  18132. doUrl(url, i) {
  18133. this.isClickNav = "";
  18134. this.pptImgUrl1 = "";
  18135. this.showType = 2;
  18136. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18137. url = "https://" + url;
  18138. }
  18139. this.pptImgUrl1 = "";
  18140. setTimeout(() => {
  18141. this.pptImgUrl1 = url;
  18142. }, 500);
  18143. // this.isClickNav = "line" + i;
  18144. this.isClickNav = i;
  18145. this.$forceUpdate();
  18146. },
  18147. checkPhoto(f, i) {
  18148. this.showType = 4;
  18149. this.pptImgUrl1 = f.url;
  18150. this.isClickNav = i;
  18151. this.$forceUpdate();
  18152. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18153. },
  18154. async downFile(f, i) {
  18155. this.isClickNav = "";
  18156. this.pptImgUrl1 = "";
  18157. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18158. if (
  18159. a.indexOf(
  18160. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18161. ) != -1
  18162. ) {
  18163. let _uuurl = await this.checkLink(f.url);
  18164. console.log(_uuurl)
  18165. this.pptImgUrl1 =
  18166. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18167. // this.dialogVisible3 = true;
  18168. this.showType = 2;
  18169. } else if (
  18170. this.isAssetTypeAnImage(
  18171. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18172. )
  18173. ) {
  18174. this.showType = 4;
  18175. this.pptImgUrl1 = f.url;
  18176. } else if (
  18177. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18178. "PDF"
  18179. ) {
  18180. this.pptImgUrl1 = f.url;
  18181. // this.dialogVisible3 = true;
  18182. this.showType = 3;
  18183. } else {
  18184. window.open(this.file[i].url);
  18185. }
  18186. // this.isClickNav = "word" + i;
  18187. this.isClickNav = i;
  18188. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18189. },
  18190. downFileList(i) {
  18191. window.open(this.noImgList[i].url);
  18192. },
  18193. openAddWork() {
  18194. this.dialogVisible = true;
  18195. },
  18196. addBzWorks() {
  18197. let params = [
  18198. {
  18199. uid: this.userid,
  18200. cid: this.id,
  18201. stage: this.courseType,
  18202. task: this.taskCount,
  18203. tool: this.toolindex,
  18204. content: JSON.stringify(this.eScore),
  18205. type: 6,
  18206. },
  18207. ];
  18208. this.ajax
  18209. .post(this.$store.state.api + "addCourseWorks", params)
  18210. .then((res) => {
  18211. this.$message({
  18212. message: "提交成功",
  18213. type: "success",
  18214. });
  18215. this.eScore = { eBzText: "", eStar: [] };
  18216. this.studentEvalDialogVisible = false;
  18217. this.selectSWorks();
  18218. })
  18219. .catch((err) => {
  18220. this.$message.error("提交失败");
  18221. console.error(err);
  18222. });
  18223. },
  18224. addBzWorksTeacher() {
  18225. let params = [
  18226. {
  18227. uid: this.sStudent.userid,
  18228. cid: this.id,
  18229. stage: this.courseType,
  18230. task: this.taskCount,
  18231. tool: this.toolindex,
  18232. content: JSON.stringify(this.eScore),
  18233. type: 6,
  18234. },
  18235. ];
  18236. this.ajax
  18237. .post(this.$store.state.api + "addCourseWorks", params)
  18238. .then((res) => {
  18239. this.$message({
  18240. message: "提交成功",
  18241. type: "success",
  18242. });
  18243. this.eScore = { eBzText: "", eStar: [] };
  18244. this.studentEvalDialogVisibleTeacher = false;
  18245. this.selectSWorks();
  18246. })
  18247. .catch((err) => {
  18248. this.$message.error("提交失败");
  18249. console.error(err);
  18250. });
  18251. },
  18252. addStudentAsk() {
  18253. if (!this.radio.length) {
  18254. this.$message.error("请选择选项");
  18255. return;
  18256. }
  18257. for (var i = 0; i < this.askJson.askCount; i++) {
  18258. if (
  18259. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18260. (this.radio[i] !== 0 && !this.radio[i])
  18261. ) {
  18262. this.$message.error("请选择选项");
  18263. return;
  18264. }
  18265. }
  18266. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18267. let params = [
  18268. {
  18269. uid: this.userid,
  18270. cid: this.id,
  18271. stage: this.courseType,
  18272. task: this.taskCount,
  18273. tool: this.toolindex,
  18274. content: JSON.stringify(this.askList),
  18275. type: 2,
  18276. },
  18277. ];
  18278. this.ajax
  18279. .post(this.$store.state.api + "addCourseWorks", params)
  18280. .then((res) => {
  18281. this.$message({
  18282. message: "提交成功",
  18283. type: "success",
  18284. });
  18285. this.askList = [];
  18286. this.dialogVisible5 = false;
  18287. this.selectStudent();
  18288. this.selectSWorks();
  18289. this.selectSLook();
  18290. })
  18291. .catch((err) => {
  18292. this.$message.error("提交失败");
  18293. console.error(err);
  18294. });
  18295. },
  18296. addStudentAskTeacher() {
  18297. if (!this.radio.length) {
  18298. this.$message.error("请选择选项");
  18299. return;
  18300. }
  18301. for (var i = 0; i < this.askJson.askCount; i++) {
  18302. if (
  18303. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18304. (this.radio[i] !== 0 && !this.radio[i])
  18305. ) {
  18306. this.$message.error("请选择选项");
  18307. return;
  18308. }
  18309. }
  18310. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18311. let params = [
  18312. {
  18313. uid: this.sStudent.userid,
  18314. cid: this.id,
  18315. stage: this.courseType,
  18316. task: this.taskCount,
  18317. tool: this.toolindex,
  18318. content: JSON.stringify(this.askList),
  18319. type: 2,
  18320. },
  18321. ];
  18322. this.ajax
  18323. .post(this.$store.state.api + "addCourseWorks", params)
  18324. .then((res) => {
  18325. this.$message({
  18326. message: "提交成功",
  18327. type: "success",
  18328. });
  18329. this.askList = [];
  18330. this.dialogVisible5Teacher = false;
  18331. this.selectStudent();
  18332. this.selectSWorks();
  18333. this.selectSLook();
  18334. })
  18335. .catch((err) => {
  18336. this.$message.error("提交失败");
  18337. console.error(err);
  18338. });
  18339. },
  18340. addStudentTest() {
  18341. if (!this.radio.length) {
  18342. this.$message.error("请选择选项");
  18343. return;
  18344. }
  18345. for (var i = 0; i < this.testJson.testCount; i++) {
  18346. if (
  18347. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18348. (this.radio[i] !== 0 && !this.radio[i])
  18349. ) {
  18350. this.$message.error("请选择选项");
  18351. return;
  18352. }
  18353. }
  18354. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18355. let params = [
  18356. {
  18357. uid: this.userid,
  18358. cid: this.id,
  18359. stage: this.courseType,
  18360. task: this.taskCount,
  18361. tool: this.toolindex,
  18362. content: JSON.stringify(this.askList),
  18363. type: 8,
  18364. },
  18365. ];
  18366. this.ajax
  18367. .post(this.$store.state.api + "addCourseWorks", params)
  18368. .then((res) => {
  18369. this.$message({
  18370. message: "提交成功",
  18371. type: "success",
  18372. });
  18373. this.askList = [];
  18374. this.dialogVisibleChoice = false;
  18375. this.selectStudent();
  18376. this.selectSWorks();
  18377. this.selectSLook();
  18378. })
  18379. .catch((err) => {
  18380. this.$message.error("提交失败");
  18381. console.error(err);
  18382. });
  18383. },
  18384. addStudentTestTeacher() {
  18385. if (!this.radio.length) {
  18386. this.$message.error("请选择选项");
  18387. return;
  18388. }
  18389. for (var i = 0; i < this.testJson.testCount; i++) {
  18390. if (
  18391. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18392. (this.radio[i] !== 0 && !this.radio[i])
  18393. ) {
  18394. this.$message.error("请选择选项");
  18395. return;
  18396. }
  18397. }
  18398. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18399. let params = [
  18400. {
  18401. uid: this.sStudent.userid,
  18402. cid: this.id,
  18403. stage: this.courseType,
  18404. task: this.taskCount,
  18405. tool: this.toolindex,
  18406. content: JSON.stringify(this.askList),
  18407. type: 8,
  18408. },
  18409. ];
  18410. this.ajax
  18411. .post(this.$store.state.api + "addCourseWorks", params)
  18412. .then((res) => {
  18413. this.$message({
  18414. message: "提交成功",
  18415. type: "success",
  18416. });
  18417. this.askList = [];
  18418. this.dialogVisibleChoiceTeacher = false;
  18419. this.selectStudent();
  18420. this.selectSWorks();
  18421. this.selectSLook();
  18422. })
  18423. .catch((err) => {
  18424. this.$message.error("提交失败");
  18425. console.error(err);
  18426. });
  18427. },
  18428. addWork() {
  18429. if (this.studyJuri[0].content == "") {
  18430. this.$message.error("请将信息填写完整");
  18431. return;
  18432. } else if (this.studyJuri[0].cover.length == 0) {
  18433. this.$message.error("请将信息填写完整");
  18434. return;
  18435. } else if (this.studyJuri[0].upVedio.length == 0) {
  18436. this.$message.error("请将信息填写完整");
  18437. return;
  18438. }
  18439. if (this.isNoHomeWork) {
  18440. this.$confirm(
  18441. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18442. "提示",
  18443. {
  18444. confirmButtonText: "确定",
  18445. cancelButtonText: "取消",
  18446. type: "warning",
  18447. }
  18448. )
  18449. .then(() => {
  18450. let params = [
  18451. {
  18452. uid: this.userid,
  18453. cid: this.id,
  18454. stage: this.courseType,
  18455. task: this.taskCount,
  18456. content: JSON.stringify(this.studyJuri),
  18457. },
  18458. ];
  18459. this.ajax
  18460. .post(this.$store.state.api + "addWorks", params)
  18461. .then((res) => {
  18462. this.$message({
  18463. message: "提交成功",
  18464. type: "success",
  18465. });
  18466. this.isNoHomeWork = true;
  18467. this.dialogVisible = false;
  18468. })
  18469. .catch((err) => {
  18470. this.$message.error("提交失败");
  18471. console.error(err);
  18472. });
  18473. })
  18474. .catch(() => {});
  18475. } else {
  18476. let params = [
  18477. {
  18478. uid: this.userid,
  18479. cid: this.id,
  18480. stage: this.courseType,
  18481. task: this.taskCount,
  18482. content: JSON.stringify(this.studyJuri),
  18483. },
  18484. ];
  18485. this.ajax
  18486. .post(this.$store.state.api + "addWorks", params)
  18487. .then((res) => {
  18488. this.$message({
  18489. message: "提交成功",
  18490. type: "success",
  18491. });
  18492. this.isNoHomeWork = true;
  18493. this.dialogVisible = false;
  18494. })
  18495. .catch((err) => {
  18496. this.$message.error("提交失败");
  18497. console.error(err);
  18498. });
  18499. }
  18500. },
  18501. selectCount() {
  18502. let params = {
  18503. cid: this.id,
  18504. chid: this.courseType,
  18505. uid: this.userid,
  18506. };
  18507. this.ajax
  18508. .get(this.$store.state.api + "selectToolsCount", params)
  18509. .then((res) => {
  18510. for (var i = 0; i < res.data[0].length; i++) {
  18511. if (res.data[0][i].tools == 1) {
  18512. this.wbCount = res.data[0][i].count;
  18513. } else if (res.data[0][i].tools == 2) {
  18514. this.wordCount = res.data[0][i].count;
  18515. } else if (res.data[0][i].tools == 3) {
  18516. this.mindCount = res.data[0][i].count;
  18517. } else if (res.data[0][i].tools == 4) {
  18518. this.askCount = res.data[0][i].count;
  18519. } else if (res.data[0][i].tools == 6) {
  18520. this.noteCount = res.data[0][i].count;
  18521. } else if (res.data[0][i].tools == 7) {
  18522. this.mindNetWorkCount = res.data[0][i].count;
  18523. } else if (res.data[0][i].tools == 8) {
  18524. this.libraryCount = res.data[0][i].count;
  18525. } else if (res.data[0][i].tools == 16) {
  18526. this.workCount = res.data[0][i].count;
  18527. } else if (res.data[0][i].tools == 10) {
  18528. this.timeCount = res.data[0][i].count;
  18529. } else if (res.data[0][i].tools == 15) {
  18530. this.answerCount = res.data[0][i].count;
  18531. } else if (res.data[0][i].tools == 18) {
  18532. this.trainCount = res.data[0][i].count;
  18533. }
  18534. }
  18535. })
  18536. .catch((err) => {
  18537. console.error(err);
  18538. });
  18539. },
  18540. openTools(t, i, index, c, sName,id) {
  18541. var z = JSON.parse(c);
  18542. this.noteName = sName;
  18543. if (t == 4) {
  18544. this.radio = [];
  18545. this.isAnswer = false;
  18546. let b = z[0].anwer;
  18547. this.radio = b;
  18548. this.askJson = z[0].askJson;
  18549. this.isAnswer = true;
  18550. this.dialogVisible5 = true;
  18551. } else if (t == 45) {
  18552. this.radio = [];
  18553. this.isAnswer = false;
  18554. let b = z[0].anwer;
  18555. this.radio = b;
  18556. this.testJson = z[0].testJson;
  18557. this.isAnswer = true;
  18558. this.dialogVisibleChoice = true;
  18559. }else if(t == 69){
  18560. this.oldEnglishJson1 = {}
  18561. this.oldEnglishJson = {}
  18562. this.englishList1 = {}
  18563. this.newEngIndex = -1;
  18564. this.isNoUserid = false;
  18565. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18566. .toolChoose[i].englishList;
  18567. this.oldEnglishJson = z;
  18568. this.engWid = id;
  18569. this.newEnglishList = { engTitle:"",engText:"" }
  18570. this.newEnglishList1 = []
  18571. this.selectEngC(id,z);
  18572. }else if(t == 62){
  18573. this.videoType = 1;
  18574. this.videoJson = {};
  18575. this.videoJson = JSON.parse(c);
  18576. // this.videoJson =
  18577. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18578. // index
  18579. // ].toolChoose[i].videoJson;
  18580. this.dialogVisibleVideo = true;
  18581. }
  18582. // else if (t == 15) {
  18583. // this.answerQ = "";
  18584. // this.questionAnswer = "";
  18585. // this.answerQ = z[0].answerTitle;
  18586. // this.questionAnswer = z[0].answer;
  18587. // this.answerDialogVisible = true;
  18588. // }
  18589. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18590. },
  18591. fastText(p, t) {
  18592. if (t == 1) {
  18593. this.commentText += p;
  18594. } else {
  18595. this.eScore.eBzText += p;
  18596. }
  18597. },
  18598. addTools(t, i, index) {
  18599. var a = 0;
  18600. // this.taskCount = index;
  18601. this.toolindex = i;
  18602. if (t == 1) {
  18603. if (this.wbCount > 0) {
  18604. this.updateCount(this.wbCount, t);
  18605. } else {
  18606. this.wbCount++;
  18607. a = this.wbCount;
  18608. this.toolsCount(a, t);
  18609. }
  18610. window.topU.postMessage(
  18611. {
  18612. tools: "1",
  18613. cid: this.id,
  18614. stage: this.courseType,
  18615. task: this.taskCount,
  18616. tool: i,
  18617. },
  18618. "*"
  18619. );
  18620. } else if (t == 2) {
  18621. if (this.wordCount > 0) {
  18622. this.updateCount(this.wordCount, t);
  18623. } else {
  18624. this.wordCount++;
  18625. a = this.wordCount;
  18626. this.toolsCount(a, t);
  18627. }
  18628. window.topU.postMessage({ tools: "2" }, "*");
  18629. } else if (t == 3) {
  18630. if (this.mindCount > 0) {
  18631. this.updateCount(this.mindCount, t);
  18632. } else {
  18633. this.mindCount++;
  18634. a = this.mindCount;
  18635. this.toolsCount(a, t);
  18636. }
  18637. window.topU.postMessage(
  18638. {
  18639. tools: "3",
  18640. cid: this.id,
  18641. stage: this.courseType,
  18642. task: this.taskCount,
  18643. tool: i,
  18644. },
  18645. "*"
  18646. );
  18647. } else if (t == 4) {
  18648. this.radio = [];
  18649. this.noteName = "";
  18650. this.isAnswer = false;
  18651. if (this.askCount > 0) {
  18652. this.updateCount(this.askCount, t);
  18653. } else {
  18654. this.askCount++;
  18655. a = this.askCount;
  18656. this.toolsCount(a, t);
  18657. }
  18658. if (!this.dialogVisible2) {
  18659. this.askJson.askJson =
  18660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18661. index
  18662. ].toolChoose[i].askJson;
  18663. this.askJson.askTitle =
  18664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18665. index
  18666. ].toolChoose[i].askTitle;
  18667. this.askJson.askCount =
  18668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18669. index
  18670. ].toolChoose[i].askCount;
  18671. } else {
  18672. this.askJson.askJson = this.chapTools.askJson.askJson;
  18673. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18674. this.askJson.askCount = this.chapTools.askJson.askCount;
  18675. }
  18676. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18677. if (this.askJson.askJson[k].type == "2") {
  18678. this.radio.push([]);
  18679. } else {
  18680. this.radio.push("");
  18681. }
  18682. }
  18683. this.dialogVisible5 = true;
  18684. // window.topU.postMessage({ tools: "4" }, "*");
  18685. } else if (t == 45) {
  18686. this.noteName = "";
  18687. this.radio = [];
  18688. this.isAnswer = false;
  18689. if (this.askCount > 0) {
  18690. this.updateCount(this.askCount, t);
  18691. } else {
  18692. this.askCount++;
  18693. a = this.askCount;
  18694. this.toolsCount(a, t);
  18695. }
  18696. this.testJson =
  18697. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18698. index
  18699. ].toolChoose[i].testJson;
  18700. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18701. if (this.testJson.testJson[k].type == "2") {
  18702. this.radio.push([]);
  18703. } else {
  18704. this.radio.push("");
  18705. }
  18706. }
  18707. this.dialogVisibleChoice = true;
  18708. // window.topU.postMessage({ tools: "4" }, "*");
  18709. } else if (t == 5) {
  18710. if (this.scoreCount > 0) {
  18711. this.updateCount(this.scoreCount, t);
  18712. } else {
  18713. this.scoreCount++;
  18714. a = this.scoreCount;
  18715. this.toolsCount(a, t);
  18716. }
  18717. this.dialogVisible4 = true;
  18718. // window.topU.postMessage({ tools: "5" }, "*");
  18719. } else if (t == 6) {
  18720. if (this.noteCount > 0) {
  18721. this.updateCount(this.noteCount, t);
  18722. } else {
  18723. this.noteCount++;
  18724. a = this.noteCount;
  18725. this.toolsCount(a, t);
  18726. }
  18727. window.topU.postMessage(
  18728. {
  18729. tools: "6",
  18730. cid: this.id,
  18731. stage: this.courseType,
  18732. task: this.taskCount,
  18733. tool: i,
  18734. },
  18735. "*"
  18736. );
  18737. } else if (t == 7) {
  18738. if (this.mindNetWorkCount > 0) {
  18739. this.updateCount(this.mindNetWorkCount, t);
  18740. } else {
  18741. this.mindNetWorkCount++;
  18742. a = this.mindNetWorkCount;
  18743. this.toolsCount(a, t);
  18744. }
  18745. window.topU.postMessage(
  18746. {
  18747. tools: "7",
  18748. cid: this.id,
  18749. stage: this.courseType,
  18750. task: this.taskCount,
  18751. tool: i,
  18752. },
  18753. "*"
  18754. );
  18755. } else if (t == 16) {
  18756. if (this.workCount > 0) {
  18757. this.updateCount(this.workCount, t);
  18758. } else {
  18759. this.workCount++;
  18760. a = this.workCount;
  18761. this.toolsCount(a, t);
  18762. }
  18763. this.dialogVisible = true;
  18764. } else if (t == 50) {
  18765. if (this.tType == 2) {
  18766. this.$message.error("不支持学生使用");
  18767. return;
  18768. }
  18769. this.plworkFile = [];
  18770. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18771. if (!this.uploadCid) {
  18772. this.$message.error(
  18773. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18774. );
  18775. return;
  18776. }
  18777. // this.uploadCid =
  18778. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18779. // index
  18780. // ].toolChoose[i].uploadJson[0];
  18781. this.selectUploadStudent(2);
  18782. } else if (t == 8) {
  18783. if (this.libraryCount > 0) {
  18784. this.updateCount(this.libraryCount, t);
  18785. } else {
  18786. this.libraryCount++;
  18787. a = this.libraryCount;
  18788. this.toolsCount(a, t);
  18789. }
  18790. window.topU.postMessage({ tools: "8" }, "*");
  18791. } else if (t == 17) {
  18792. if (this.libraryCount > 0) {
  18793. this.updateCount(this.libraryCount, t);
  18794. } else {
  18795. this.libraryCount++;
  18796. a = this.libraryCount;
  18797. this.toolsCount(a, t);
  18798. }
  18799. window.topU.postMessage({ tools: "17" }, "*");
  18800. } else if (t == 18) {
  18801. if (this.trainCount > 0) {
  18802. this.updateCount(this.trainCount, t);
  18803. } else {
  18804. this.trainCount++;
  18805. a = this.trainCount;
  18806. this.toolsCount(a, t);
  18807. }
  18808. window.topU.postMessage({ tools: "18" }, "*");
  18809. } else if (t == 10) {
  18810. if (this.timeCount > 0) {
  18811. this.updateCount(this.timeCount, t);
  18812. } else {
  18813. this.timeCount++;
  18814. a = this.timeCount;
  18815. this.toolsCount(a, t);
  18816. }
  18817. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18818. .taskJson[index].toolChoose[i].preTime
  18819. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18820. .toolChoose[i].preTime
  18821. : "";
  18822. this.timeDialogVisible = true;
  18823. } else if (t == 15) {
  18824. this.answerQ = "";
  18825. this.questionAnswer = "";
  18826. if (this.answerCount > 0) {
  18827. this.updateCount(this.answerCount, t);
  18828. } else {
  18829. this.answerCount++;
  18830. a = this.answerCount;
  18831. this.toolsCount(a, t);
  18832. }
  18833. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18834. .taskJson[index].toolChoose[i].answerQ
  18835. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18836. .toolChoose[i].answerQ
  18837. : "";
  18838. this.answerDialogVisible = true;
  18839. } else if (t == 21) {
  18840. window.topU.postMessage({ tools: "21" }, "*");
  18841. } else if (t == 22) {
  18842. window.topU.postMessage({ tools: "22" }, "*");
  18843. } else if (t == 23) {
  18844. window.topU.postMessage({ tools: "23" }, "*");
  18845. } else if (t == 24) {
  18846. window.topU.postMessage({ tools: "24" }, "*");
  18847. } else if (t == 25) {
  18848. window.topU.postMessage({ tools: "25" }, "*");
  18849. } else if (t == 31) {
  18850. window.topU.postMessage({ tools: "31" }, "*");
  18851. } else if (t == 28) {
  18852. window.topU.postMessage({ tools: "28" }, "*");
  18853. } else if (t == 37) {
  18854. window.topU.postMessage({ tools: "37" }, "*");
  18855. } else if (t == 38) {
  18856. window.topU.postMessage({ tools: "38" }, "*");
  18857. } else if (t == 39) {
  18858. window.topU.postMessage({ tools: "39" }, "*");
  18859. } else if (t == 32) {
  18860. window.topU.postMessage({ tools: "32" }, "*");
  18861. } else if (t == 66) {
  18862. window.topU.postMessage({ tools: "66" }, "*");
  18863. } else if (t == 67) {
  18864. window.topU.postMessage({ tools: "67" }, "*");
  18865. } else if (t == 68) {
  18866. window.topU.postMessage({ tools: "68" }, "*");
  18867. } else if (t == 57) {
  18868. // window.topU.postMessage({ tools: "57" }, "*");
  18869. window.topU.postMessage(
  18870. {
  18871. tools: "57u",
  18872. cid: this.id,
  18873. stage: this.courseType,
  18874. task: this.taskCount,
  18875. tool: i,
  18876. },
  18877. "*"
  18878. );
  18879. } else if (t == 58) {
  18880. window.topU.postMessage({ tools: "58" }, "*");
  18881. } else if (t == 59) {
  18882. window.topU.postMessage({ tools: "59" }, "*");
  18883. } else if (t == 60) {
  18884. window.topU.postMessage({ tools: "60" }, "*");
  18885. } else if (t == 61) {
  18886. window.topU.postMessage({ tools: "61" }, "*");
  18887. } else if (t == 63) {
  18888. window.topU.postMessage({ tools: "63" }, "*");
  18889. } else if (t == 71) {
  18890. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18891. // this.$message.error("该工具不可使用");
  18892. // return
  18893. // }
  18894. window.topU.postMessage({ tools: "71" }, "*");
  18895. } else if (t == 72) {
  18896. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18897. .taskJson[index].toolChoose[i].appJson
  18898. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18899. .toolChoose[i].appJson
  18900. : "";
  18901. if(!item || !item.url){
  18902. this.$message.error("应用连接为空, 请到课程管理中添加");
  18903. return;
  18904. }
  18905. if (!document.fullscreenElement) {
  18906. this.enterFullScreen();
  18907. }
  18908. this.$refs.appStoreC.getData(item.url,this.userid)
  18909. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18910. // window.open(item.url, "_blank");
  18911. } else if (t == 69) {
  18912. if (this.worksStudent[i].length) {
  18913. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18914. if (this.userid == this.worksStudent[i][k].userid) {
  18915. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18916. break;
  18917. } else {
  18918. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18919. }
  18920. }
  18921. } else {
  18922. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18923. }
  18924. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18925. .taskJson[index].toolChoose[i].englishList
  18926. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18927. .toolChoose[i].englishList
  18928. : {};
  18929. this.englishToolIndex = i;
  18930. this.myAnList = this.myAnswerList1;
  18931. this.engDialogVisible = true;
  18932. } else if (t == 70) {
  18933. if (this.worksStudent[i].length) {
  18934. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18935. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18936. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18937. break;
  18938. } else {
  18939. this.englishVoiceJsonWork = [];
  18940. }
  18941. }
  18942. } else {
  18943. this.englishVoiceJsonWork = [];
  18944. }
  18945. let englishVoiceJson = {}
  18946. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18947. .taskJson[index].toolChoose[i].englishVoiceJson
  18948. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18949. .toolChoose[i].englishVoiceJson
  18950. : {};
  18951. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18952. this.EnglishVoiceDialog = true;
  18953. } else if (t == 65) {
  18954. if (this.tType == 2) {
  18955. this.$message.error("不支持学生使用");
  18956. return;
  18957. }
  18958. this.uploadCid = this.tcid;
  18959. if (!this.uploadCid) {
  18960. this.$message.error(
  18961. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18962. );
  18963. return;
  18964. }
  18965. this.selectPickStudent();
  18966. } else if (t == 26) {
  18967. window.topU.postMessage(
  18968. {
  18969. tools: "26",
  18970. cid: this.id,
  18971. stage: this.courseType,
  18972. task: this.taskCount,
  18973. tool: i,
  18974. },
  18975. "*"
  18976. );
  18977. } else if (t == 40) {
  18978. if (this.evalCount > 0) {
  18979. this.updateCount(this.evalCount, t);
  18980. } else {
  18981. this.evalCount++;
  18982. a = this.evalCount;
  18983. this.toolsCount(a, t);
  18984. }
  18985. this.eScore = { eBzText: "", eStar: [] };
  18986. if (this.worksStudent[i].length) {
  18987. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18988. if (this.userid == this.worksStudent[i][k].userid) {
  18989. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18990. this.rateJson =
  18991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18992. index
  18993. ].toolChoose[i].rateJson;
  18994. break;
  18995. } else {
  18996. this.rateJson =
  18997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18998. index
  18999. ].toolChoose[i].rateJson;
  19000. }
  19001. }
  19002. } else {
  19003. this.rateJson =
  19004. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19005. index
  19006. ].toolChoose[i].rateJson;
  19007. }
  19008. this.isStar = false;
  19009. this.studentEvalDialogVisible = true;
  19010. } else if (t == 41) {
  19011. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19012. .taskJson[index].toolChoose[i].selectJson
  19013. ? JSON.parse(
  19014. JSON.stringify(
  19015. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19016. index
  19017. ].toolChoose[i].selectJson
  19018. )
  19019. )
  19020. : { url: "", select: [], answer: [] };
  19021. if (this.worksStudent[i].length) {
  19022. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19023. if (this.userid == this.worksStudent[i][k].userid) {
  19024. var a = this.worksStudent[i][k].works.split(",");
  19025. for (var ki = 0; ki < a.length; ki++) {
  19026. a[ki] = parseInt(a[ki]);
  19027. }
  19028. this.selectAnswer = {
  19029. answer: a,
  19030. stu: this.worksStudent[i][k].sName,
  19031. };
  19032. break;
  19033. } else {
  19034. this.selectAnswer = { answer: [], stu: "" };
  19035. }
  19036. }
  19037. } else {
  19038. this.selectAnswer = { answer: [], stu: "" };
  19039. }
  19040. this.isSelect = false;
  19041. this.dialogVisibleSelect = true;
  19042. } else if (t == 44) {
  19043. window.topU.postMessage({ tools: "44" }, "*");
  19044. } else if (t == 47) {
  19045. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19046. .taskJson[index].toolChoose[i].sentenceList
  19047. ? JSON.parse(
  19048. JSON.stringify(
  19049. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19050. index
  19051. ].toolChoose[i].sentenceList
  19052. )
  19053. )
  19054. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19055. for (var q = 0; q < this.sentenceList.length; q++) {
  19056. this.sentenceList[q].chooseSenList = [];
  19057. this.sentenceList[q].addChangeSen = [];
  19058. this.sentenceList[q].addChangeSen = JSON.parse(
  19059. JSON.stringify(this.sentenceList[q].addSentence)
  19060. );
  19061. this.sentenceList[q].chooseSenList.length =
  19062. this.sentenceList[q].rightAnswer.length;
  19063. }
  19064. this.dialogVisibleSentence = true;
  19065. } else if (t == 48) {
  19066. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19067. .taskJson[index].toolChoose[i].tableJson
  19068. ? JSON.parse(
  19069. JSON.stringify(
  19070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19071. index
  19072. ].toolChoose[i].tableJson
  19073. )
  19074. )
  19075. : { text: "" };
  19076. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19077. if (this.worksStudent[i].length) {
  19078. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19079. if (this.userid == this.worksStudent[i][k].userid) {
  19080. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19081. break;
  19082. }
  19083. }
  19084. }
  19085. this.dialogVisibleTable = true;
  19086. } else if (t == 52) {
  19087. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19088. .taskJson[index].toolChoose[i].wordJson
  19089. ? JSON.parse(
  19090. JSON.stringify(
  19091. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19092. index
  19093. ].toolChoose[i].wordJson
  19094. )
  19095. )
  19096. : { text: "" };
  19097. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19098. if (this.worksStudent[i].length) {
  19099. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19100. if (this.userid == this.worksStudent[i][k].userid) {
  19101. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19102. break;
  19103. }
  19104. }
  19105. }
  19106. this.dialogVisibleWord = true;
  19107. } else if (t == 49) {
  19108. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19109. return
  19110. }
  19111. this.groupJson =
  19112. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19113. index
  19114. ].toolChoose[i].groupJson;
  19115. this.islock = this.groupJson.islock == 1 ? true : false;
  19116. this.dialogVisibleGroup = true;
  19117. } else if (t == 62) {
  19118. this.videoType = 0;
  19119. this.videoJson = {};
  19120. this.videoJson =
  19121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19122. index
  19123. ].toolChoose[i].videoJson;
  19124. this.dialogVisibleVideo = true;
  19125. }
  19126. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19127. },
  19128. teacherWorkSubmit(t, i, index, s) {
  19129. this.sStudent = s;
  19130. this.toolindex = i;
  19131. this.sTool = t;
  19132. if (this.tType !== "1" && this.tType !== "4") {
  19133. return;
  19134. }
  19135. if (t == 16 || t == 32 || t == 50) {
  19136. this.dialogVisibleWorks = true;
  19137. } else if (t == 15) {
  19138. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19139. .taskJson[index].toolChoose[i].answerQ
  19140. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19141. .toolChoose[i].answerQ
  19142. : "";
  19143. this.questionAnswer = "";
  19144. this.answerDialogVisibleTeacher = true; //问答
  19145. } else if (t == 52) {
  19146. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19147. .taskJson[index].toolChoose[i].wordJson
  19148. ? JSON.parse(
  19149. JSON.stringify(
  19150. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19151. index
  19152. ].toolChoose[i].wordJson
  19153. )
  19154. )
  19155. : { text: "" };
  19156. if (this.worksStudent[i].length) {
  19157. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19158. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19159. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19160. break;
  19161. }
  19162. }
  19163. }
  19164. this.dialogVisibleWordTeacher = true; //文档
  19165. } else if (t == 4) {
  19166. this.radio = [];
  19167. this.noteName = "";
  19168. this.isAnswer = false;
  19169. if (this.askCount > 0) {
  19170. this.updateCount(this.askCount, t);
  19171. } else {
  19172. this.askCount++;
  19173. a = this.askCount;
  19174. this.toolsCount(a, t);
  19175. }
  19176. if (!this.dialogVisible2) {
  19177. this.askJson.askJson =
  19178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19179. index
  19180. ].toolChoose[i].askJson;
  19181. this.askJson.askTitle =
  19182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19183. index
  19184. ].toolChoose[i].askTitle;
  19185. this.askJson.askCount =
  19186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19187. index
  19188. ].toolChoose[i].askCount;
  19189. } else {
  19190. this.askJson.askJson = this.chapTools.askJson.askJson;
  19191. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19192. this.askJson.askCount = this.chapTools.askJson.askCount;
  19193. }
  19194. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19195. if (this.askJson.askJson[k].type == "2") {
  19196. this.radio.push([]);
  19197. } else {
  19198. this.radio.push("");
  19199. }
  19200. }
  19201. this.dialogVisible5Teacher = true;
  19202. } else if (t == 45) {
  19203. this.noteName = "";
  19204. this.radio = [];
  19205. this.isAnswer = false;
  19206. if (this.askCount > 0) {
  19207. this.updateCount(this.askCount, t);
  19208. } else {
  19209. this.askCount++;
  19210. a = this.askCount;
  19211. this.toolsCount(a, t);
  19212. }
  19213. this.testJson =
  19214. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19215. index
  19216. ].toolChoose[i].testJson;
  19217. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19218. if (this.testJson.testJson[k].type == "2") {
  19219. this.radio.push([]);
  19220. } else {
  19221. this.radio.push("");
  19222. }
  19223. }
  19224. this.dialogVisibleChoiceTeacher = true;
  19225. } else if (t == 41) {
  19226. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19227. .taskJson[index].toolChoose[i].selectJson
  19228. ? JSON.parse(
  19229. JSON.stringify(
  19230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19231. index
  19232. ].toolChoose[i].selectJson
  19233. )
  19234. )
  19235. : { url: "", select: [], answer: [] };
  19236. if (this.worksStudent[i].length) {
  19237. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19238. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19239. var a = this.worksStudent[i][k].works.split(",");
  19240. for (var ki = 0; ki < a.length; ki++) {
  19241. a[ki] = parseInt(a[ki]);
  19242. }
  19243. this.selectAnswer = {
  19244. answer: a,
  19245. stu: this.worksStudent[i][k].sName,
  19246. };
  19247. break;
  19248. } else {
  19249. this.selectAnswer = { answer: [], stu: "" };
  19250. }
  19251. }
  19252. } else {
  19253. this.selectAnswer = { answer: [], stu: "" };
  19254. }
  19255. this.isSelect = false;
  19256. this.dialogVisibleSelectTeacher = true;
  19257. } else if (t == 47) {
  19258. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19259. .taskJson[index].toolChoose[i].sentenceList
  19260. ? JSON.parse(
  19261. JSON.stringify(
  19262. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19263. index
  19264. ].toolChoose[i].sentenceList
  19265. )
  19266. )
  19267. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19268. for (var q = 0; q < this.sentenceList.length; q++) {
  19269. this.sentenceList[q].chooseSenList = [];
  19270. this.sentenceList[q].addChangeSen = [];
  19271. this.sentenceList[q].addChangeSen = JSON.parse(
  19272. JSON.stringify(this.sentenceList[q].addSentence)
  19273. );
  19274. this.sentenceList[q].chooseSenList.length =
  19275. this.sentenceList[q].rightAnswer.length;
  19276. }
  19277. this.dialogVisibleSentenceTeacher = true;
  19278. } else if (t == 48) {
  19279. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19280. .taskJson[index].toolChoose[i].tableJson
  19281. ? JSON.parse(
  19282. JSON.stringify(
  19283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19284. index
  19285. ].toolChoose[i].tableJson
  19286. )
  19287. )
  19288. : { text: "" };
  19289. if (this.worksStudent[i].length) {
  19290. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19291. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19292. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19293. break;
  19294. }
  19295. }
  19296. }
  19297. this.dialogVisibleTableTeacher = true;
  19298. } else if (t == 40) {
  19299. if (this.evalCount > 0) {
  19300. this.updateCount(this.evalCount, t);
  19301. } else {
  19302. this.evalCount++;
  19303. a = this.evalCount;
  19304. this.toolsCount(a, t);
  19305. }
  19306. this.eScore = { eBzText: "", eStar: [] };
  19307. if (this.worksStudent[i].length) {
  19308. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19309. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19310. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19311. this.rateJson =
  19312. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19313. index
  19314. ].toolChoose[i].rateJson;
  19315. break;
  19316. } else {
  19317. this.rateJson =
  19318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19319. index
  19320. ].toolChoose[i].rateJson;
  19321. }
  19322. }
  19323. } else {
  19324. this.rateJson =
  19325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19326. index
  19327. ].toolChoose[i].rateJson;
  19328. }
  19329. this.isStar = false;
  19330. this.studentEvalDialogVisibleTeacher = true;
  19331. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19332. window.topU.postMessage(
  19333. {
  19334. tools: t + "teacher",
  19335. cid: this.id,
  19336. stage: this.courseType,
  19337. task: this.taskCount,
  19338. tool: i,
  19339. student: this.sStudent,
  19340. },
  19341. "*"
  19342. );
  19343. }else if (t == 72) {
  19344. if (!document.fullscreenElement) {
  19345. this.enterFullScreen();
  19346. }
  19347. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19348. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19349. }
  19350. },
  19351. openCocoPi(tool, i, uid, uname) {
  19352. let student = {
  19353. userid: uid,
  19354. student: uname,
  19355. };
  19356. if (tool == 57) {
  19357. window.topU.postMessage(
  19358. {
  19359. tools: tool + "teacher",
  19360. cid: this.id,
  19361. stage: this.courseType,
  19362. task: this.taskCount,
  19363. tool: i,
  19364. student: student,
  19365. },
  19366. "*"
  19367. );
  19368. }
  19369. },
  19370. setRightAnswer(s, i, j) {
  19371. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19372. if (
  19373. this.sentenceList[i].chooseSenList[q] == undefined ||
  19374. this.sentenceList[i].chooseSenList[q] == ""
  19375. ) {
  19376. this.sentenceList[i].chooseSenList[q] = s;
  19377. this.sentenceList[i].addChangeSen[j] = "";
  19378. break;
  19379. }
  19380. }
  19381. this.$forceUpdate();
  19382. },
  19383. returnCard(r, i, j) {
  19384. var a = this.sentenceList[i].addSentence.indexOf(r);
  19385. this.sentenceList[i].chooseSenList[j] = "";
  19386. this.sentenceList[i].addChangeSen[a] = r;
  19387. this.$forceUpdate();
  19388. },
  19389. // addSentenceTool() {
  19390. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19391. // this.taskCount
  19392. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19393. // this.sentenceList = [
  19394. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19395. // ];
  19396. // this.dialogVisibleSentence = false;
  19397. // },
  19398. toolsCount(a, t) {
  19399. let params = {
  19400. cid: this.id,
  19401. chid: this.courseType,
  19402. uid: this.userid,
  19403. tid: t,
  19404. count: a,
  19405. };
  19406. this.ajax
  19407. .get(this.$store.state.api + "insertToolsCount", params)
  19408. .then((res) => {
  19409. this.selectCount();
  19410. })
  19411. .catch((err) => {
  19412. console.error(err);
  19413. });
  19414. },
  19415. updateCount(c, t) {
  19416. c++;
  19417. let params = {
  19418. cid: this.id,
  19419. chid: this.courseType,
  19420. uid: this.userid,
  19421. tid: t,
  19422. count: c,
  19423. };
  19424. this.ajax
  19425. .get(this.$store.state.api + "updateToolsCount", params)
  19426. .then((res) => {
  19427. this.selectCount();
  19428. })
  19429. .catch((err) => {
  19430. console.error(err);
  19431. });
  19432. },
  19433. checkEva() {
  19434. if (this.evalua != "") {
  19435. for (var i = 0; i < this.evaJuri.length; i++) {
  19436. if (this.evalua == this.evaJuri[i].id) {
  19437. this.eTitle = this.evaJuri[i].title;
  19438. this.eJson = JSON.parse(this.evaJuri[i].content);
  19439. }
  19440. }
  19441. this.$forceUpdate();
  19442. setTimeout(() => {
  19443. this.setMindData();
  19444. }, 0);
  19445. }
  19446. },
  19447. selectEva() {
  19448. let params = {
  19449. oid: this.oid,
  19450. };
  19451. this.ajax
  19452. .get(this.$store.state.api + "selectAllEvaluation", params)
  19453. .then((res) => {
  19454. this.evaJuri = res.data[0];
  19455. })
  19456. .catch((err) => {
  19457. console.error(err);
  19458. });
  19459. },
  19460. setMindData() {
  19461. this.data.data = [];
  19462. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19463. let _eJson = Object.keys(this.eJson);
  19464. let _e = this.eJson;
  19465. for (let i = 0; i < _eJson.length; i++) {
  19466. let element = _e[_eJson[i]];
  19467. this.data.data.push({
  19468. id: element.id,
  19469. parentid: "root",
  19470. topic: element.name,
  19471. });
  19472. let _eJsonc = Object.keys(element.child);
  19473. let _e2 = element.child;
  19474. for (let j = 0; j < _eJsonc.length; j++) {
  19475. let _ec = _e2[_eJsonc[j]];
  19476. this.data.data.push({
  19477. id: _ec.id,
  19478. parentid: element.id,
  19479. topic: _ec.name,
  19480. });
  19481. let _eJsonz = Object.keys(_ec.child);
  19482. let _e3 = _ec.child;
  19483. for (let z = 0; z < _eJsonz.length; z++) {
  19484. let _ez = _e3[_eJsonz[z]];
  19485. this.data.data.push({
  19486. id: _ez.id,
  19487. parentid: _ec.id,
  19488. topic: _ez.name,
  19489. });
  19490. }
  19491. }
  19492. }
  19493. this.$forceUpdate();
  19494. },
  19495. checkFileFull(type, url) {
  19496. this.fullDialogVisible = true;
  19497. this.fulltype = type;
  19498. this.fullUrl = url;
  19499. },
  19500. async checkFileFull1(t, f) {
  19501. this.fullDialogVisible = true;
  19502. if (t == 6) {
  19503. this.fulltype = 1;
  19504. this.fullUrl = JSON.parse(JSON.stringify(f));
  19505. } else if (t == 8) {
  19506. this.fulltype = 2;
  19507. this.fullUrl = f.url;
  19508. }else if (t == 15) {
  19509. this.fulltype = 4;
  19510. this.fullUrl = f.url;
  19511. } else if (
  19512. t == 3 &&
  19513. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19514. "PDF"
  19515. ) {
  19516. this.fulltype = 3;
  19517. this.fullUrl = f.url;
  19518. } else if (t == 3) {
  19519. this.fulltype = 2;
  19520. let _uuurl = await this.checkLink(f.url);
  19521. console.log(_uuurl)
  19522. this.fullUrl =
  19523. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19524. }
  19525. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19526. },
  19527. openSname(n, id, i, uid) {
  19528. this.snameWid = id;
  19529. this.worksSName = n;
  19530. this.worksSid = uid == n ? "" : uid;
  19531. this.toolindex = i;
  19532. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19533. if (!this.uploadCid) {
  19534. this.$message.error(
  19535. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19536. );
  19537. return;
  19538. }
  19539. this.selectUploadStudent(1);
  19540. },
  19541. updateName() {
  19542. let params = {
  19543. n: this.worksSName,
  19544. cid: this.snameWid,
  19545. };
  19546. this.ajax
  19547. .get(this.$store.state.api + "updateCourseWorksName", params)
  19548. .then((res) => {
  19549. this.$message({
  19550. message: "修改成功",
  19551. type: "success",
  19552. });
  19553. this.dialogVisibleSname = false;
  19554. this.getCourseDetail(2);
  19555. this.snameWid = "";
  19556. this.worksSName = "";
  19557. })
  19558. .catch((err) => {
  19559. console.error(err);
  19560. });
  19561. },
  19562. downloadFile2(f) {
  19563. // const loading = this.$loading.service({
  19564. // background: "rgba(255, 255, 255, 0.7)",
  19565. // target: document.body,
  19566. // text: "文件加载中...",
  19567. // });
  19568. // let url2 = f.url;
  19569. // let _url2 = "";
  19570. // if (
  19571. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19572. // ) {
  19573. // _url2 = url2.split(
  19574. // "https://view.officeapps.live.com/op/view.aspx?src="
  19575. // )[1];
  19576. // } else {
  19577. // _url2 = url2;
  19578. // }
  19579. // let params = {
  19580. // url: _url2,
  19581. // name: f.name,
  19582. // };
  19583. // this.ajax
  19584. // .get(this.$store.state.api + "download", params)
  19585. // .then((res) => {
  19586. // loading.close();
  19587. // let content = res.data.data.data;
  19588. // let ab = new ArrayBuffer(content.length);
  19589. // let view = new Uint8Array(ab);
  19590. // for (var i = 0; i < content.length; ++i) {
  19591. // view[i] = content[i];
  19592. // }
  19593. // let elink = document.createElement("a");
  19594. // elink.download = f.name;
  19595. // elink.style.display = "none";
  19596. // let blob = new Blob([ab], {
  19597. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19598. // });
  19599. // elink.href = URL.createObjectURL(blob);
  19600. // document.body.appendChild(elink);
  19601. // elink.click();
  19602. // document.body.removeChild(elink);
  19603. // })
  19604. // .catch((err) => {
  19605. // loading.close();
  19606. // console.error(err);
  19607. // });
  19608. var credentials = {
  19609. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19610. secretAccessKey: "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",
  19611. }; //秘钥形式的登录上传
  19612. window.AWS.config.update(credentials);
  19613. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19614. let url2 = f.url;
  19615. let _url2 = "";
  19616. if (
  19617. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19618. ) {
  19619. _url2 = url2.split(
  19620. "https://view.officeapps.live.com/op/view.aspx?src="
  19621. )[1];
  19622. } else {
  19623. _url2 = url2;
  19624. }
  19625. let _this = this;
  19626. _this.downLoading = true
  19627. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19628. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19629. var params = {
  19630. Bucket: "ccrb",
  19631. Key: name
  19632. };
  19633. s3.getObject(params, function (err, data) {
  19634. _this.downLoading = false
  19635. if (err) console.log(err, err.stack); // an error occurred
  19636. else {
  19637. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19638. let a = document.createElement("a");
  19639. a.name = f.name;
  19640. a.href = url;
  19641. a.download = f.name;
  19642. a.click();
  19643. console.log(data);
  19644. } // sxuccessful response
  19645. });
  19646. return;
  19647. let url = f.url;
  19648. let _url = "";
  19649. if (
  19650. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19651. ) {
  19652. _url = url.split(
  19653. "https://view.officeapps.live.com/op/view.aspx?src="
  19654. )[1];
  19655. } else {
  19656. _url = url;
  19657. }
  19658. _this.downLoading = true
  19659. // const loading = _this.$loading.service({
  19660. // background: "rgba(255, 255, 255, 0.7)",
  19661. // target: document.body,
  19662. // text: "文件加载中...",
  19663. // });
  19664. let x = new XMLHttpRequest();
  19665. x.open("GET", _url, true);
  19666. x.responseType = "blob";
  19667. x.onload = function () {
  19668. _this.downLoading = false
  19669. // loading.close();
  19670. let url = window.URL.createObjectURL(new Blob([x.response]));
  19671. let a = document.createElement("a");
  19672. a.name = f.name;
  19673. a.href = url;
  19674. a.download = f.name;
  19675. a.click();
  19676. };
  19677. x.send();
  19678. },
  19679. downloadFile(url) {
  19680. var credentials = {
  19681. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19682. secretAccessKey: "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",
  19683. }; //秘钥形式的登录上传
  19684. window.AWS.config.update(credentials);
  19685. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19686. let url2 = url;
  19687. let _url2 = "";
  19688. if (
  19689. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19690. ) {
  19691. _url2 = url2.split(
  19692. "https://view.officeapps.live.com/op/view.aspx?src="
  19693. )[1];
  19694. } else {
  19695. _url2 = url2;
  19696. }
  19697. const loading2 = this.$loading.service({
  19698. background: "rgba(255, 255, 255, 0.7)",
  19699. target: document.body,
  19700. text: "文件加载中...",
  19701. });
  19702. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19703. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19704. var params = {
  19705. Bucket: "ccrb",
  19706. Key: name
  19707. };
  19708. s3.getObject(params, function (err, data) {
  19709. loading2.close();
  19710. if (err) console.log(err, err.stack); // an error occurred
  19711. else {
  19712. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19713. let a = document.createElement("a");
  19714. a.name = name;
  19715. a.href = url;
  19716. a.download = name;
  19717. a.click();
  19718. console.log(data);
  19719. } // sxuccessful response
  19720. });
  19721. return;
  19722. let _this = this;
  19723. let _url = "";
  19724. if (
  19725. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19726. ) {
  19727. _url = url.split(
  19728. "https://view.officeapps.live.com/op/view.aspx?src="
  19729. )[1];
  19730. } else {
  19731. _url = url;
  19732. }
  19733. const x = new XMLHttpRequest();
  19734. x.open("GET", _url, true);
  19735. x.responseType = "blob";
  19736. // this.downLoading = true
  19737. const loading = _this.$loading.service({
  19738. background: "rgba(255, 255, 255, 0.7)",
  19739. target: document.body,
  19740. text: "文件加载中...",
  19741. });
  19742. // _this.$message.success("文件下载中...");
  19743. x.onload = function (e) {
  19744. this.downLoading = false
  19745. loading.close();
  19746. let content = x.response;
  19747. let elink = document.createElement("a");
  19748. elink.download = decodeURI(
  19749. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19750. );
  19751. elink.style.display = "none";
  19752. let blob = new Blob([content]);
  19753. elink.href = URL.createObjectURL(blob);
  19754. document.body.appendChild(elink);
  19755. elink.click();
  19756. document.body.removeChild(elink);
  19757. };
  19758. x.send();
  19759. },
  19760. openLine(url) {
  19761. window.open(url);
  19762. },
  19763. resize() {
  19764. if (document.getElementsByClassName("box_course").length) {
  19765. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19766. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19767. if (this.showType == 2 || this.showType == 3) {
  19768. document.getElementsByClassName("navBox")[0].style.height =
  19769. a - 40 + 0+ "px";
  19770. } else {
  19771. document.getElementsByClassName("navBox")[0].style.height =
  19772. a - 40 + "px";
  19773. }
  19774. }
  19775. this.Stbodywidth =
  19776. document.getElementsByClassName("student_body").length &&
  19777. document.getElementsByClassName("student_body")[0].offsetWidth;
  19778. },
  19779. closeDraw() {
  19780. this.bg = null;
  19781. this.drawShow = false;
  19782. },
  19783. showPicturePaint(url) {
  19784. let params = {
  19785. img: url,
  19786. };
  19787. this.ajax
  19788. .get(this.$store.state.api + "imgToBase64", params)
  19789. .then((res) => {
  19790. this.drawShow = true;
  19791. this.bg = res.data[0].img;
  19792. })
  19793. .catch((err) => {
  19794. console.error(err);
  19795. });
  19796. },
  19797. addImgDraw(base64) {
  19798. let file = { name: "批注图.png" };
  19799. let img = this.dataUrlToFile(base64, file);
  19800. this.beforeUpload1(img, 5);
  19801. },
  19802. addImgDrawImG(url) {
  19803. // console.log(url);
  19804. let params = [
  19805. {
  19806. wid: this.commentDetail.wid,
  19807. img: url,
  19808. },
  19809. ];
  19810. this.ajax
  19811. .post(this.$store.state.api + "updateCourseWorks", params)
  19812. .then((res) => {
  19813. this.$message({
  19814. message: "提交成功",
  19815. type: "success",
  19816. });
  19817. this.drawShow = false;
  19818. this.bg = "";
  19819. this.selectSWorks();
  19820. this.selectStudent();
  19821. })
  19822. .catch((err) => {
  19823. this.$message.error("提交失败");
  19824. console.error(err);
  19825. });
  19826. },
  19827. deletePicturePaint() {
  19828. this.$confirm("确定删除此批注吗?", "提示", {
  19829. confirmButtonText: "确定",
  19830. cancelButtonText: "取消",
  19831. type: "warning",
  19832. })
  19833. .then(() => {
  19834. let params = [
  19835. {
  19836. wid: this.commentDetail.wid,
  19837. img: "",
  19838. },
  19839. ];
  19840. this.ajax
  19841. .post(this.$store.state.api + "updateCourseWorks", params)
  19842. .then((res) => {
  19843. this.$message({
  19844. message: "删除成功",
  19845. type: "success",
  19846. });
  19847. this.selectSWorks();
  19848. this.selectStudent();
  19849. })
  19850. .catch((err) => {
  19851. this.$message.error("删除失败");
  19852. console.error(err);
  19853. });
  19854. })
  19855. .catch(() => {});
  19856. },
  19857. getAudioVideo(constraintsData) {
  19858. if (navigator.mediaDevices === undefined) {
  19859. navigator.mediaDevices = {};
  19860. }
  19861. if (navigator.mediaDevices.getUserMedia === undefined) {
  19862. navigator.mediaDevices.getUserMedia = function (constraints) {
  19863. // 首先,如果有getUserMedia的话,就获得它
  19864. var getUserMedia =
  19865. navigator.getUserMedia ||
  19866. navigator.webkitGetUserMedia ||
  19867. navigator.mozGetUserMedia ||
  19868. navigator.msGetUserMedia;
  19869. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19870. if (!getUserMedia) {
  19871. return Promise.reject({ code: 404 });
  19872. }
  19873. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19874. return new Promise(function (resolve, reject) {
  19875. getUserMedia.call(navigator, constraints, resolve, reject);
  19876. });
  19877. };
  19878. }
  19879. return navigator.mediaDevices.getUserMedia(constraintsData);
  19880. },
  19881. /**
  19882. * 开始录制
  19883. */
  19884. startRecording(callback) {
  19885. let _function = (screenStream) => {
  19886. this.addStreamStopListener(screenStream, () => {
  19887. console.log("流停止监听");
  19888. this.stopRecording();
  19889. this.$emit("streamStop", {});
  19890. // this.stopRecording();
  19891. });
  19892. var options = {
  19893. type: "video",
  19894. mimeType: "video/webm",
  19895. disableLogs: false,
  19896. getNativeBlob: false, // enable it for longer recordings
  19897. ignoreMutedMedia: false,
  19898. };
  19899. // this.video.srcObject = screenStream;
  19900. this.recorder = RecordRTC(screenStream, options);
  19901. this.recorder.startRecording();
  19902. this.recorder.screen = screenStream;
  19903. this.videoStart = true;
  19904. // callback(true);
  19905. };
  19906. this.getAudioVideo({ audio: true })
  19907. .then((res) => {
  19908. this.captureScreen(_function, true);
  19909. console.log("已点击允许,开启成功");
  19910. })
  19911. .catch((err) => {
  19912. // console.log('浏览器不支持,请更换浏览器')
  19913. // } else {
  19914. this.captureScreen(_function, false);
  19915. console.log("请检查是否存在麦克风");
  19916. });
  19917. },
  19918. /**
  19919. * 停止录制
  19920. */
  19921. stopRecording(callback) {
  19922. this.recorder.stopRecording(() => {
  19923. // this.video.src = this.video.srcObject = null;
  19924. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19925. const url = URL.createObjectURL(this.recorder.getBlob());
  19926. const a = document.createElement("a"); //this.fileName+
  19927. let videoFile = new File(
  19928. [this.recorder.getBlob()],
  19929. this.courseDetail.title + "录屏.mp4",
  19930. {
  19931. type: "video/mp4",
  19932. }
  19933. );
  19934. let downloadUrl = URL.createObjectURL(videoFile);
  19935. if(this.$refs.classRoomHelperRef){
  19936. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19937. }
  19938. document.body.appendChild(a);
  19939. a.style.display = "none";
  19940. a.href = url;
  19941. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19942. a.click();
  19943. this.recorder.screen.stop();
  19944. this.recorder.destroy();
  19945. this.recorder = null;
  19946. this.videoStart = false;
  19947. // callback(false);
  19948. });
  19949. },
  19950. //初始化
  19951. captureScreen(callback, type) {
  19952. if (navigator.getDisplayMedia) {
  19953. //录制结束,文件下载
  19954. navigator
  19955. .getDisplayMedia({
  19956. video: true,
  19957. })
  19958. .then((screenStream) => {
  19959. if (type) {
  19960. navigator.mediaDevices
  19961. .getUserMedia({ audio: true })
  19962. .then((mic) => {
  19963. screenStream.addTrack(mic.getTracks()[0]);
  19964. callback(screenStream);
  19965. });
  19966. } else {
  19967. callback(screenStream);
  19968. }
  19969. })
  19970. .catch(function (error) {
  19971. console.log("error", error);
  19972. });
  19973. } else if (navigator.mediaDevices.getDisplayMedia) {
  19974. navigator.mediaDevices
  19975. .getDisplayMedia({
  19976. video: true,
  19977. })
  19978. .then((screenStream) => {
  19979. if (type) {
  19980. navigator.mediaDevices
  19981. .getUserMedia({ audio: true })
  19982. .then((mic) => {
  19983. screenStream.addTrack(mic.getTracks()[0]);
  19984. callback(screenStream);
  19985. });
  19986. } else {
  19987. callback(screenStream);
  19988. }
  19989. })
  19990. .catch(function (error) {
  19991. console.log("error", error);
  19992. });
  19993. } else {
  19994. var error = "getDisplayMedia API are not supported in this browser.";
  19995. console.log("error", error);
  19996. alert(error);
  19997. }
  19998. },
  19999. //流监听
  20000. addStreamStopListener(stream, callback) {
  20001. stream.addEventListener(
  20002. "ended",
  20003. function () {
  20004. callback();
  20005. callback = function () {};
  20006. },
  20007. false
  20008. );
  20009. stream.addEventListener(
  20010. "inactive",
  20011. function () {
  20012. callback();
  20013. callback = function () {};
  20014. },
  20015. false
  20016. );
  20017. stream.getTracks().forEach(function (track) {
  20018. track.addEventListener(
  20019. "ended",
  20020. function () {
  20021. callback();
  20022. callback = function () {};
  20023. },
  20024. false
  20025. );
  20026. track.addEventListener(
  20027. "inactive",
  20028. function () {
  20029. callback();
  20030. callback = function () {};
  20031. },
  20032. false
  20033. );
  20034. });
  20035. },
  20036. updateGroup() {
  20037. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20038. this.dialogVisibleGroup2 = true;
  20039. },
  20040. numberPan() {
  20041. if (
  20042. /[^\d]/.test(this.groupJson.number) ||
  20043. this.groupJson.number < 2 ||
  20044. this.groupJson.number > 10
  20045. ) {
  20046. this.$message.error("请输入2-10的数字");
  20047. this.groupJson.number = "";
  20048. }
  20049. },
  20050. updateGroupJson() {
  20051. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20052. if (
  20053. this.groupStudentUid[this.toolindex][i].length >
  20054. this.groupJson2.number
  20055. ) {
  20056. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20057. return;
  20058. }
  20059. }
  20060. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20061. this.islock = this.groupJson.islock == 1 ? true : false;
  20062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20063. this.taskCount
  20064. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20065. let params = [
  20066. {
  20067. cid: this.id,
  20068. chapters: JSON.stringify(this.chapInfoList),
  20069. uid: this.userid,
  20070. unitIndex: this.courseType,
  20071. },
  20072. ];
  20073. this.ajax
  20074. .post(this.$store.state.api + "updateWorkNew4", params)
  20075. .then((res) => {
  20076. this.$message.success("设置成功");
  20077. this.getCourseDetail(2);
  20078. this.dialogVisibleGroup2 = false;
  20079. this.groupJson2 = {};
  20080. this.$forceUpdate();
  20081. })
  20082. .catch((err) => {
  20083. this.$message.error("网络不佳");
  20084. console.error(err);
  20085. });
  20086. },
  20087. lockChair() {
  20088. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20089. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20090. this.updateGroupJson();
  20091. },
  20092. selectGroup(index) {
  20093. this.getCourseDetail(2, index);
  20094. },
  20095. joinGroup(index) {
  20096. if (this.groupJson.islock == 2) {
  20097. this.$message.error("位置已被锁定,无法加入");
  20098. return;
  20099. }
  20100. if (
  20101. this.groupStudent[this.toolindex][index].length >
  20102. this.groupJson.number ||
  20103. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20104. ) {
  20105. this.$message.error("位置已满,无法加入");
  20106. return;
  20107. }
  20108. let params = [
  20109. {
  20110. cid: this.id,
  20111. stage: this.courseType,
  20112. task: this.taskCount,
  20113. tool: this.toolindex,
  20114. g: index,
  20115. uid: this.userid,
  20116. },
  20117. ];
  20118. this.ajax
  20119. .post(this.$store.state.api + "joinGroup", params)
  20120. .then((res) => {
  20121. this.$message.success("加入成功");
  20122. this.getCourseDetail(2);
  20123. })
  20124. .catch((err) => {
  20125. this.$message.error("网络不佳");
  20126. console.error(err);
  20127. });
  20128. },
  20129. exitGroup(id) {
  20130. if (this.groupJson.islock == 2) {
  20131. this.$message.error("位置已被锁定,无法退出");
  20132. return;
  20133. }
  20134. let params = [
  20135. {
  20136. gid: id,
  20137. },
  20138. ];
  20139. this.ajax
  20140. .post(this.$store.state.api + "exitGroup", params)
  20141. .then((res) => {
  20142. this.$message.success("退出成功");
  20143. this.getCourseDetail(2);
  20144. })
  20145. .catch((err) => {
  20146. this.$message.error("网络不佳");
  20147. console.error(err);
  20148. });
  20149. },
  20150. groupUpload(index, task, gindex) {
  20151. this.taskCount = task;
  20152. this.toolindex = index;
  20153. this.groupIndex = gindex;
  20154. this.dialogVisibleGroupWork = true;
  20155. },
  20156. updateGroupChair(user) {
  20157. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20158. el.label = index;
  20159. return index != user.group;
  20160. });
  20161. this.updateGroupUser = user;
  20162. this.dialogVisibleUpdateGroup = true;
  20163. },
  20164. updateChair() {
  20165. if (
  20166. this.groupStudent[this.toolindex][this.checkChair].length >
  20167. this.groupJson.number ||
  20168. this.groupStudent[this.toolindex][this.checkChair].length ==
  20169. this.groupJson.number
  20170. ) {
  20171. this.$message.error("位置已满,无法加入");
  20172. return;
  20173. }
  20174. let params = [
  20175. {
  20176. cid: this.id,
  20177. stage: this.courseType,
  20178. task: this.taskCount,
  20179. tool: this.toolindex,
  20180. g: this.checkChair,
  20181. uid: this.updateGroupUser.userid,
  20182. },
  20183. ];
  20184. this.ajax
  20185. .post(this.$store.state.api + "joinGroup", params)
  20186. .then((res) => {
  20187. this.$message.success("修改成功");
  20188. this.updateGroupUser = {};
  20189. this.checkChair = "";
  20190. this.updateGroupArray = {};
  20191. this.dialogVisibleUpdateGroup = false;
  20192. this.getCourseDetail(2);
  20193. })
  20194. .catch((err) => {
  20195. this.$message.error("网络不佳");
  20196. console.error(err);
  20197. });
  20198. },
  20199. deleteGroupChair(gindex) {
  20200. this.checkDeleteGroup = [];
  20201. this.deleteGroupUser = JSON.parse(
  20202. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20203. );
  20204. this.deleteGroupArray = this.groupJson.group[gindex];
  20205. this.groupIndex = gindex;
  20206. this.dialogVisibleDeleteGroup = true;
  20207. },
  20208. async deleteChair() {
  20209. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20210. const gid =
  20211. this.groupStudent[this.toolindex][this.groupIndex][
  20212. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20213. this.checkDeleteGroup[i]
  20214. )
  20215. ];
  20216. let params = [
  20217. {
  20218. gid: gid.id,
  20219. },
  20220. ];
  20221. var a = await this.deleteChairA(params);
  20222. if (i == this.checkDeleteGroup.length - 1) {
  20223. this.$message.success("退出成功");
  20224. this.dialogVisibleDeleteGroup = false;
  20225. this.deleteGroupUser = [];
  20226. this.deleteGroupArray = {};
  20227. this.groupIndex = "";
  20228. this.checkDeleteGroup = [];
  20229. this.getCourseDetail(2);
  20230. }
  20231. }
  20232. },
  20233. deleteChairA(params) {
  20234. return new Promise((resolve, reject) => {
  20235. this.ajax
  20236. .post(this.$store.state.api + "exitGroup", params)
  20237. .then((res) => {
  20238. resolve(1);
  20239. })
  20240. .catch((err) => {
  20241. this.$message.error("网络不佳");
  20242. console.error(err);
  20243. });
  20244. });
  20245. },
  20246. contract(i) {
  20247. if (this.isCloseList[i].isClose == 0) {
  20248. this.isCloseList[i].isClose = 1;
  20249. } else {
  20250. this.isCloseList[i].isClose = 0;
  20251. }
  20252. this.$forceUpdate();
  20253. },
  20254. openWordCloud(toolindex) {
  20255. this.wordCloudData = '';
  20256. let array = [];
  20257. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20258. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20259. array.push({ name: works });
  20260. }
  20261. if (this.isGroup) {
  20262. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20263. let works = this.courseGroup.group[i].works[toolindex];
  20264. for (var j = 0; j < works.length; j++) {
  20265. let answer = JSON.parse(works[j].works)[0].answer;
  20266. array.push({ name: answer });
  20267. }
  20268. }
  20269. }
  20270. let _result = ''
  20271. array.forEach(e=>{
  20272. _result +=e.name+','
  20273. })
  20274. this.wordCloudData = _result;
  20275. this.dialogVisibleWordCloud = true;
  20276. this.wordCloudKey += 1;
  20277. },
  20278. uploadWorks(i) {
  20279. this.$confirm("确定导出作业吗?", "提示", {
  20280. confirmButtonText: "确定",
  20281. cancelButtonText: "取消",
  20282. type: "warning",
  20283. })
  20284. .then(() => {
  20285. const loading = this.$loading.service({
  20286. background: "rgba(255, 255, 255, 0.7)",
  20287. target: document.body,
  20288. text: "文件加载中...",
  20289. });
  20290. const _worksStudent = this.worksStudent;
  20291. let url = [];
  20292. var counts = {};
  20293. for (var l = 0; l < _worksStudent[i].length; l++) {
  20294. var item = _worksStudent[i][l];
  20295. var name = item.sName;
  20296. if (!counts.hasOwnProperty(name)) {
  20297. counts[name] = 0;
  20298. } else {
  20299. counts[name]++;
  20300. }
  20301. if (counts[name] > 0) {
  20302. item.sName += " (" + counts[name] + ")";
  20303. }
  20304. }
  20305. for (var l = 0; l < _worksStudent[i].length; l++) {
  20306. var item = _worksStudent[i][l];
  20307. if (
  20308. item.works.indexOf(
  20309. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20310. ) !== -1 &&
  20311. item.works.indexOf("img") === -1
  20312. ) {
  20313. url.push({ name: item.sName, url: item.works });
  20314. }
  20315. }
  20316. // var toolList = [
  20317. // { name: "电子白板", tool: 1 },
  20318. // { name: "思维导图", tool: 3 },
  20319. // { name: "协同文档", tool: 6 },
  20320. // { name: "思维网格", tool: 7 },
  20321. // { name: "素材库", tool: 8 },
  20322. // { name: "学习资料", tool: 17 },
  20323. // { name: "便签", tool: 2 },
  20324. // { name: "问卷调查", tool: 4 },
  20325. // { name: "选择题", tool: 45 },
  20326. // { name: "倒计时", tool: 10 },
  20327. // { name: "问答", tool: 15 },
  20328. // { name: "课程设计", tool: 26 },
  20329. // { name: "训练服务器", tool: 18 },
  20330. // { name: "作业提交", tool: 16 },
  20331. // { name: "批量上传", tool: 50 },
  20332. // { name: "AIoT Blockly", tool: 21 },
  20333. // { name: "AI Python", tool: 23 },
  20334. // { name: "AI Blockly", tool: 24 },
  20335. // { name: "目标管理", tool: 25 },
  20336. // { name: "数学画板", tool: 31 },
  20337. // { name: "翻译", tool: 28 },
  20338. // { name: "魔盒识字", tool: 37 },
  20339. // { name: "数学画板", tool: 31 },
  20340. // { name: "24点", tool: 38 },
  20341. // { name: "GeoGebra", tool: 39 },
  20342. // { name: "源码编辑", tool: 32 },
  20343. // { name: "个人评价", tool: 40 },
  20344. // { name: "选择匹配", tool: 41 },
  20345. // { name: "汉字宫", tool: 44 },
  20346. // { name: "排序", tool: 47 },
  20347. // { name: "表格", tool: 48 },
  20348. // { name: "文档", tool: 52 },
  20349. // { name: "学生分组", tool: 49 },
  20350. // { name: "CocoPi", tool: 57 },
  20351. // { name: "模拟驾驶", tool: 58 },
  20352. // { name: "路径搜索", tool: 59 },
  20353. // { name: "深度学习", tool: 60 },
  20354. // { name: "全历史", tool: 61 },
  20355. // { name: "交互视频", tool: 62 },
  20356. // { name: "海龟编程", tool: 63 },
  20357. // { name: "挑人", tool: 65 },
  20358. // { name: "公式编辑", tool: 66 },
  20359. // { name: "分子结构", tool: 67 },
  20360. // { name: "时间轴", tool: 68 },
  20361. // ];
  20362. // var toolName = "";
  20363. // for(var w = 0;w<toolList.length;w++){
  20364. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20365. // toolName = toolList[w].name;
  20366. // }
  20367. // }
  20368. console.log(url);
  20369. this.downLoadAll(url, loading);
  20370. })
  20371. .catch(() => {});
  20372. },
  20373. downLoadAll(url, loading) {
  20374. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20375. const zip = new JSZip();
  20376. const cache = {};
  20377. const promises = [];
  20378. data.forEach((item) => {
  20379. const promise = getFile(item.url).then((data) => {
  20380. if (data.data != 1) {
  20381. // 下载文件, 并存成ArrayBuffer对象
  20382. const file_name =
  20383. item.name +
  20384. "." +
  20385. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20386. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20387. cache[file_name] = data.data;
  20388. }
  20389. });
  20390. promises.push(promise);
  20391. });
  20392. Promise.all(promises).then(() => {
  20393. zip.generateAsync({ type: "blob" }).then((content) => {
  20394. // 生成二进制流
  20395. FileSaver.saveAs(
  20396. content,
  20397. this.courseDetail.title + "-" + "作业提交工具.zip"
  20398. ); // 利用file-saver保存文件 自定义文件名
  20399. setTimeout(() => {
  20400. loading.close();
  20401. }, 2000);
  20402. });
  20403. });
  20404. },
  20405. pickStudent(stu) {
  20406. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20407. return;
  20408. }
  20409. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20410. confirmButtonText: "确定",
  20411. cancelButtonText: "取消",
  20412. type: "warning",
  20413. })
  20414. .then(() => {
  20415. let params = [
  20416. {
  20417. uid: stu.userid,
  20418. cid: this.id,
  20419. stage: this.courseType,
  20420. task: this.taskCount,
  20421. tool: this.toolindex,
  20422. },
  20423. ];
  20424. this.ajax
  20425. .post(this.$store.state.api + "updateCoursePick", params)
  20426. .then((res) => {
  20427. this.$message.success("操作成功");
  20428. this.getPick();
  20429. })
  20430. .catch((err) => {
  20431. this.$message.error("网络不佳");
  20432. console.error(err);
  20433. });
  20434. })
  20435. .catch(() => {});
  20436. },
  20437. selectUser(){
  20438. let params = {
  20439. userid: this.userid,
  20440. };
  20441. this.ajax
  20442. .get(this.$store.state.api + "selectUser", params)
  20443. .then((res) => {
  20444. this.userMes = res.data[0];
  20445. })
  20446. .catch((err) => {
  20447. console.error(err);
  20448. });
  20449. },
  20450. setEngText(i){
  20451. this.newEngIndex = i;
  20452. this.$forceUpdate();
  20453. },
  20454. addCorrect(){
  20455. this.$confirm("你确定提交批改嘛?", "提示", {
  20456. confirmButtonText: "确定",
  20457. showCancelButton: false,
  20458. closeOnClickModal: false,
  20459. type: "warning",
  20460. })
  20461. .then(() => {
  20462. let params = {
  20463. cid: this.id,
  20464. s: parseInt(this.courseType),
  20465. t: this.taskCount,
  20466. tool: this.toolindex,
  20467. wid: this.engWid,
  20468. c: this.userid,
  20469. 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) : "",
  20470. };
  20471. this.ajax
  20472. .get(this.$store.state.api + "addEngC", params)
  20473. .then((res) => {
  20474. this.$message.success("提交成功");
  20475. this.engUpdateDialogVisible = false;
  20476. })
  20477. .catch((err) => {
  20478. console.error(err);
  20479. });
  20480. })
  20481. .catch(() => {});
  20482. },
  20483. selectEngC(id,z){
  20484. let params = {
  20485. workid: id,
  20486. };
  20487. this.ajax
  20488. .get(this.$store.state.api + "selectEngC", params)
  20489. .then((res) => {
  20490. if(res.data[0].length == 0){
  20491. this.newEnglishList.engTitle = z.engTitle;
  20492. this.newEnglishList.engText = z.engText;
  20493. }else{
  20494. var a = res.data[0];
  20495. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20496. if(this.userMes[0].type == 2){
  20497. var snum = 0;
  20498. for(var i = 0;i<a.length;i++){
  20499. if(this.userMes[0].userid == a[i].correct){
  20500. this.newEnglishList = JSON.parse(a[i].cWork);
  20501. snum = 1;
  20502. }
  20503. }
  20504. if(snum == 0){
  20505. this.newEnglishList = { engTitle:"",engText:"" };
  20506. this.newEnglishList.engTitle = z.engTitle;
  20507. this.newEnglishList.engText = z.engText;
  20508. }
  20509. }else if(this.userMes[0].type == 1){
  20510. var num = 0;
  20511. for(var w= 0;w<a.length;w++){
  20512. if(this.userMes[0].userid == a[w].correct){
  20513. num = 1;
  20514. }
  20515. }
  20516. if(num == 0){
  20517. this.isNoUserid = true;
  20518. var c = JSON.parse(JSON.stringify(z));
  20519. this.oldEnglishJson1 = c;
  20520. }else{
  20521. this.isNoUserid = false;
  20522. }
  20523. var b = a.sort((item, index) => {
  20524. console.log(item)
  20525. if (item.correct === this.userMes[0].userid) {
  20526. return -1; // 将a移到前面
  20527. } else if (index.correct === this.userMes[0].userid) {
  20528. return 1; // 将b移到前面
  20529. } else {
  20530. return 0; // 保持默认顺序
  20531. }
  20532. });
  20533. for(var p = 0;p<b.length;p++){
  20534. for(var y = 0;y<ppp.length;y++){
  20535. if(b[p].id == ppp[y].id){
  20536. b[p].cWork = JSON.parse(ppp[y].cWork);
  20537. break
  20538. }
  20539. }
  20540. }
  20541. this.newEnglishList1 = b;
  20542. }
  20543. }
  20544. this.greyType = false;
  20545. setTimeout(() => {
  20546. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20547. if(this.newEnglishList1.length > 0){
  20548. if(this.isNoUserid == true){
  20549. this.engListLength = this.newEnglishList1.length + 1;
  20550. this.newEngIndex = -1;
  20551. }else{
  20552. this.engListLength = this.newEnglishList1.length;
  20553. this.newEngIndex = 0;
  20554. }
  20555. }
  20556. if(this.userMes[0].type == 2){
  20557. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20558. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20559. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20560. }else if(this.newEngIndex == -1){
  20561. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20562. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20563. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20564. }
  20565. }, 500);
  20566. this.engUpdateDialogVisible = true;
  20567. this.$forceUpdate();
  20568. })
  20569. .catch((err) => {
  20570. console.error(err);
  20571. });
  20572. },
  20573. getPick() {
  20574. let params = {
  20575. cid: this.id,
  20576. };
  20577. this.ajax
  20578. .get(this.$store.state.api + "getPick", params)
  20579. .then((res) => {
  20580. let array = [];
  20581. for (var i = 0; i < res.data[0].length; i++) {
  20582. array.push(res.data[0][i].userid);
  20583. }
  20584. this.isPickStudent = array;
  20585. if (array.indexOf(this.userid) !== -1) {
  20586. this.$confirm("你被老师选到啦!", "提示", {
  20587. confirmButtonText: "确定",
  20588. showCancelButton: false,
  20589. closeOnClickModal: false,
  20590. type: "warning",
  20591. })
  20592. .then(() => {
  20593. let pa = [
  20594. {
  20595. uid: this.userid,
  20596. cid: this.id,
  20597. },
  20598. ];
  20599. this.ajax
  20600. .post(this.$store.state.api + "deletePick", pa)
  20601. .then((res) => {
  20602. this.getPick();
  20603. })
  20604. .catch((err) => {
  20605. this.$message.error("网络不佳");
  20606. console.error(err);
  20607. });
  20608. })
  20609. .catch(() => {});
  20610. }
  20611. })
  20612. .catch((err) => {
  20613. this.$message.error("网络不佳");
  20614. console.error(err);
  20615. });
  20616. },
  20617. foldEva() {
  20618. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20620. } else {
  20621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20622. setTimeout(() => {
  20623. this.checkEva();
  20624. setTimeout(() => {
  20625. this.checkEva();
  20626. }, 500);
  20627. }, 0);
  20628. }
  20629. this.$forceUpdate();
  20630. },
  20631. panToolHeight(tool) {
  20632. var _tool = document.querySelectorAll('#'+tool)[0]
  20633. var _toolA = _tool ? _tool.offsetHeight : 0
  20634. var _toolC = 0
  20635. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20636. let boolean2 = (_toolA > _toolC) ? true : false
  20637. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20638. this.$forceUpdate();
  20639. },
  20640. async checkLink(url) {
  20641. // console.log(url)
  20642. let _url = url
  20643. try {
  20644. const response = await fetch(url);
  20645. if(!response.ok){
  20646. _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]))
  20647. }
  20648. // console.log(response.ok)
  20649. } catch (error) {
  20650. console.error('Error checking link:', error);
  20651. // console.log(false)
  20652. _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]))
  20653. }
  20654. // console.log(_url)
  20655. return _url
  20656. },
  20657. getScoreList(){
  20658. let params = {
  20659. cid: this.id,
  20660. };
  20661. this.ajax
  20662. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20663. .then((res) => {
  20664. let result = res.data;
  20665. this.scoreList.datalist = result[0];
  20666. this.scoreList.isScoreList = result[1];
  20667. })
  20668. .catch((err) => {
  20669. console.error(err);
  20670. });
  20671. },
  20672. setClassRoomHelperWidth(width){
  20673. this.classRoomHelperWidth = width
  20674. },
  20675. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20676. this.$refs.choseWorksDetailDialogRef.open({
  20677. toolType:tooc,
  20678. tType: this.tType,
  20679. toolIndex: toolIndex
  20680. });
  20681. this.changeSplitScreenBehavior({
  20682. code: 1,
  20683. form: {
  20684. toolType:tooc,
  20685. toolIndex: toolIndex,
  20686. courseType: this.courseType,
  20687. taskCount: this.taskCount,
  20688. type: 0
  20689. }
  20690. });
  20691. },
  20692. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20693. this.$refs.statisticalAnalysisRef.open({
  20694. worksStudent: this.worksStudent[toolIndex],
  20695. tType: this.tType,
  20696. toolIndex: toolIndex
  20697. });
  20698. this.changeSplitScreenBehavior({
  20699. code: 2,
  20700. form: {
  20701. toolType:4,
  20702. courseType: this.courseType,
  20703. taskCount: this.taskCount,
  20704. toolIndex: toolIndex,
  20705. type: 0
  20706. }
  20707. });
  20708. },
  20709. statisticalAnalysisRefresh(toolIndex) {
  20710. this.$refs.statisticalAnalysisRef.refreshData({
  20711. worksStudent: this.worksStudent[toolIndex],
  20712. tType: this.tType,
  20713. toolIndex: toolIndex
  20714. });
  20715. },
  20716. async splitScreenBehavior(type = 0) {
  20717. // return;
  20718. if (this.splitScreenData.loading)
  20719. return this.$message.info("操作过快,请稍等");
  20720. if (type == 0) {
  20721. //关闭分屏
  20722. this.splitScreenData.isOpen = false;
  20723. // this.splitScreenData.userId = "";
  20724. // this.splitScreenData.uid = "";
  20725. this.splitScreenData.behavior = null;
  20726. await this.updateSplitScreenData(1);
  20727. this.$message.success("已关闭分屏模式");
  20728. this.studentFreePreview(false);
  20729. this.OpenJobPreview(false);
  20730. // this.followingMode(false);
  20731. } else if (type == 1) {
  20732. //开启分屏
  20733. this.splitScreenData.isOpen = true;
  20734. this.splitScreenData.userId = this.userid;
  20735. this.splitScreenData.uid = this.splitScreenData.myUid;
  20736. this.splitScreenData.behavior = null;
  20737. let status = await this.updateSplitScreenData(0);
  20738. this.changeSplitScreenBehavior({form:{}})
  20739. if (status == 1) {
  20740. this.$message.success("已开启分屏");
  20741. this.studentFreePreview(false);
  20742. this.OpenJobPreview(true);
  20743. // this.followingMode(true);
  20744. } else {
  20745. this.splitScreenData.isOpen = false;
  20746. this.splitScreenData.userId = "";
  20747. this.splitScreenData.uid = "";
  20748. this.splitScreenData.behavior = null;
  20749. this.$message.success("分屏开启失败");
  20750. }
  20751. }
  20752. },
  20753. enterFullScreen() {
  20754. let element = document.documentElement;
  20755. if (element.requestFullscreen) {
  20756. element.requestFullscreen();
  20757. } else if (element.mozRequestFullScreen) { /* Firefox */
  20758. element.mozRequestFullScreen();
  20759. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20760. element.webkitRequestFullscreen();
  20761. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20762. element.msRequestFullscreen();
  20763. }
  20764. },
  20765. exitFullScreen() {
  20766. if (document.exitFullscreen) {
  20767. document.exitFullscreen();
  20768. } else if (document.mozCancelFullScreen) { /* Firefox */
  20769. document.mozCancelFullScreen();
  20770. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20771. document.webkitExitFullscreen();
  20772. } else if (document.msExitFullscreen) { /* IE/Edge */
  20773. document.msExitFullscreen();
  20774. }
  20775. },
  20776. confirmOpen(){
  20777. this.splitScreenData.isOpen = true;
  20778. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20779. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20780. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20781. this.confirmOpenDig = false
  20782. if (!document.fullscreenElement) {
  20783. this.enterFullScreen();
  20784. }
  20785. if (this.timer2) {
  20786. clearInterval(this.timer2);
  20787. this.timer2 = null;
  20788. }
  20789. this.timer2 = setInterval(()=> {
  20790. this.getSplitScreenData();//获取分屏数据
  20791. }, 1000);
  20792. this.$message.success("分屏模式已开启");
  20793. },
  20794. getSplitScreenData() {
  20795. // return;
  20796. // if (this.tType != 1) return;
  20797. let params = {
  20798. cid: this.id
  20799. };
  20800. this.ajax
  20801. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20802. .then(async res => {
  20803. let data = res.data[0][0]["splitScreenData"];
  20804. console.log("获取了分屏数:", data);
  20805. if (data) {
  20806. data = JSON.parse(data);
  20807. if (
  20808. !this.splitScreenData.isOpen &&
  20809. data.isOpen &&
  20810. this.splitScreenData.myUid == data.uid
  20811. ) {
  20812. this.splitScreenData.isOpen = false;
  20813. this.splitScreenData.userId = "";
  20814. this.splitScreenData.uid = "";
  20815. this.splitScreenData.behavior = null;
  20816. await this.updateSplitScreenData(1);
  20817. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20818. this.confirmOpenDig = true
  20819. this.confirmOpenDigData = data
  20820. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20821. this.splitScreenData.isOpen = false;
  20822. this.splitScreenData.userId = "";
  20823. this.splitScreenData.uid = "";
  20824. this.splitScreenData.behavior = null;
  20825. this.$message.error("已结束分屏模式");
  20826. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20827. this.splitScreenData.isOpen = true;
  20828. this.splitScreenData.uid = data.uid;
  20829. this.splitScreenData.userId = data.userId;
  20830. this.splitScreenData.behavior = data.behavior;
  20831. }
  20832. this.doSplitScreenBehavior();
  20833. } else {
  20834. if (this.splitScreenData.isOpen) {
  20835. this.splitScreenData.isOpen = false;
  20836. this.splitScreenData.userId = "";
  20837. this.splitScreenData.uid = "";
  20838. this.splitScreenData.behavior = null;
  20839. this.$message.error("已结束分屏模式");
  20840. if (this.timer2) {
  20841. clearInterval(this.timer2);
  20842. this.timer2 = null;
  20843. }
  20844. this.timer2 = setInterval(()=> {
  20845. this.getSplitScreenData();//获取分屏数据
  20846. }, 5000);
  20847. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20848. confirmButtonText: '确定', //确认按钮的文字
  20849. showCancelButton: false, //是否显示取消按钮
  20850. showClose: false, //是否显示关闭按钮
  20851. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20852. type: "warning",
  20853. })
  20854. .then(() => {
  20855. if (document.fullscreenElement) {
  20856. this.exitFullScreen();
  20857. }
  20858. })
  20859. .catch(() => {});
  20860. }
  20861. }
  20862. })
  20863. .catch(e => {
  20864. console.log("获取分屏数出错:", e);
  20865. });
  20866. },
  20867. doSplitScreenBehavior() {
  20868. if (
  20869. this.splitScreenData.isOpen &&
  20870. this.splitScreenData.uid != this.splitScreenData.myUid
  20871. ) {
  20872. let behavior = this.splitScreenData.behavior;
  20873. if (behavior) {
  20874. if (behavior.code === 99) {
  20875. //初始化
  20876. this.fullDialogVisible = false;
  20877. if(this.$refs.choseWorksDetailDialogRef.show){
  20878. this.$refs.choseWorksDetailDialogRef.close();
  20879. }
  20880. if(this.$refs.statisticalAnalysisRef.show){
  20881. this.$refs.statisticalAnalysisRef.close();
  20882. }
  20883. }
  20884. if (behavior.code === 0) {
  20885. //开启内容列表弹窗
  20886. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20887. }else{
  20888. this.fullDialogVisible = false;
  20889. }
  20890. if (behavior.code === 1) {
  20891. //关于选择题的作业详细的操作
  20892. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20893. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20894. this.courseType = behavior.form.courseType;
  20895. this.taskCount = behavior.form.taskCount;
  20896. }
  20897. this.$nextTick(() => {
  20898. if (this.$refs.choseWorksDetailDialogRef.show) {
  20899. //已经打开了
  20900. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20901. } else {
  20902. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20903. }
  20904. });
  20905. }else{
  20906. this.$refs.choseWorksDetailDialogRef.close()
  20907. }
  20908. if(behavior.code === 2){
  20909. if(this.$refs.statisticalAnalysisRef.show){
  20910. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20911. }else{
  20912. this.$refs.statisticalAnalysisRef.open({
  20913. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20914. tType: this.tType,
  20915. toolIndex: behavior.form.toolIndex
  20916. });
  20917. }
  20918. }else{
  20919. this.$refs.statisticalAnalysisRef.close();
  20920. }
  20921. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20922. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20923. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20924. if (behavior.form.courseType != this.courseType ||
  20925. behavior.form.taskCount != this.taskCount ||
  20926. behavior.form.toolType != this.toolindex
  20927. ) {
  20928. var a = document.scrollingElement;
  20929. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20930. if (target) {
  20931. target.scrollIntoView(true);
  20932. setTimeout(()=>{
  20933. let scrollBody = document.querySelector('.body_student').parentElement
  20934. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20935. }, 0);
  20936. // setTimeout(() => {
  20937. // a.scrollTop = 0
  20938. // }, 0);
  20939. }
  20940. }
  20941. if(this.courseType !=behavior.form.courseType){
  20942. this.courseType = behavior.form.courseType;
  20943. }
  20944. if(this.taskCount !=behavior.form.taskCount){
  20945. this.taskCount = behavior.form.taskCount;
  20946. }
  20947. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20948. this.toolindex = behavior.form.toolType;
  20949. }
  20950. // if(behavior.form.navId){
  20951. // this.navId = behavior.form.navId
  20952. // }
  20953. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20954. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20955. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20956. this.getCourseDetail()
  20957. }
  20958. this.setContent2(false)
  20959. }
  20960. } else {
  20961. }
  20962. }
  20963. },
  20964. updateSplitScreenData(empty = 0) {
  20965. return new Promise(resolve => {
  20966. if(this.userid!==this.courseDetail.userid){
  20967. if(!this.courseDetail.userid){
  20968. return setTimeout(()=>{
  20969. this.updateSplitScreenData(empty)
  20970. },2000)
  20971. }
  20972. return;
  20973. };
  20974. if (
  20975. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20976. this.splitScreenData.userId == this.userid
  20977. ) {
  20978. this.splitScreenData.loading = true;
  20979. let params = [
  20980. {
  20981. cid: this.id,
  20982. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20983. }
  20984. ];
  20985. this.ajax
  20986. .post(
  20987. this.$store.state.api + "update_courseSplitScreenData",
  20988. params
  20989. )
  20990. .then(res => {
  20991. this.splitScreenData.loading = false;
  20992. if (res.data == 1) {
  20993. resolve(1);
  20994. console.log("修改分屏数据成功");
  20995. }
  20996. })
  20997. .catch(e => {
  20998. this.splitScreenData.loading = false;
  20999. console.log("修改分屏数据失败", e);
  21000. resoleve(0);
  21001. });
  21002. } else if (empty == 2 && this.tType == 1) {
  21003. let params = [
  21004. {
  21005. cid: this.id,
  21006. nData: ""
  21007. }
  21008. ];
  21009. return this.ajax
  21010. .post(
  21011. this.$store.state.api + "update_courseSplitScreenData",
  21012. params
  21013. )
  21014. .then(_ => resolve(1))
  21015. .catch(_ => resolve(0));
  21016. } else {
  21017. return resolve(0);
  21018. }
  21019. });
  21020. },
  21021. changeSplitScreenBehavior(newValue) {
  21022. if (
  21023. this.splitScreenData.isOpen &&
  21024. this.splitScreenData.uid == this.splitScreenData.myUid
  21025. ) {
  21026. let _behavior = null;
  21027. if(!newValue){
  21028. _behavior = {}
  21029. }else{
  21030. _behavior = newValue
  21031. }
  21032. if(_behavior.form){
  21033. _behavior.form.taskCount = this.taskCount;
  21034. _behavior.form.courseType = this.courseType
  21035. }else{
  21036. _behavior.form = {
  21037. taskCount:this.taskCount,
  21038. courseType:this.courseType
  21039. }
  21040. }
  21041. this.splitScreenData.behavior = _behavior;
  21042. this.updateSplitScreenData(0);
  21043. }
  21044. },
  21045. studentFreePreview(flag) {
  21046. this.IsLookOpen = flag;
  21047. this.followingMode(flag)
  21048. this.updateLookOpen();
  21049. },
  21050. OpenJobPreview(flag) {
  21051. this.sIsOpen = flag;
  21052. this.updateSLook();
  21053. },
  21054. followingMode(flag) {
  21055. this.IsFollow = flag;
  21056. this.updateFollow();
  21057. }
  21058. },
  21059. directives: {
  21060. // 使用局部注册指令的方式
  21061. resize: {
  21062. // 指令的名称
  21063. bind(el, binding) {
  21064. // el为绑定的元素,binding为绑定给指令的对象
  21065. let width = "",
  21066. height = "";
  21067. function isReize() {
  21068. const style = document.defaultView.getComputedStyle(el);
  21069. if (width !== style.width || height !== style.height) {
  21070. binding.value(); // 关键
  21071. }
  21072. width = style.width;
  21073. height = style.height;
  21074. }
  21075. el.__vueSetInterval__ = setInterval(isReize, 300);
  21076. },
  21077. unbind(el) {
  21078. clearInterval(el.__vueSetInterval__);
  21079. },
  21080. },
  21081. autoHeight: {
  21082. update(el, binding) {
  21083. const { value } = binding
  21084. if (value && typeof value === 'number') {
  21085. el.style.height = `${value}px`
  21086. } else {
  21087. el.style.height = 'auto'
  21088. }
  21089. },
  21090. componentUpdated(el) {
  21091. el.style.height = `${el.scrollHeight + 5}px`
  21092. },
  21093. },
  21094. },
  21095. beforeDestroy() {
  21096. window.onresize = null;
  21097. clearInterval(this.timer);
  21098. this.timer = null;
  21099. clearInterval(this.timer2);
  21100. this.timer2 = null;
  21101. clearInterval(this.opertimer);
  21102. this.opertimer = null;
  21103. this.updateSplitScreenData(1);
  21104. },
  21105. computed: {
  21106. getHeight(){
  21107. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21108. },
  21109. contentConvent() {
  21110. return function (c) {
  21111. return c
  21112. ? c
  21113. .replaceAll(/\r\n/g, "<br/>")
  21114. .replaceAll(/\n/g, "<br/>")
  21115. .replaceAll(/\s/g, " &nbsp")
  21116. : "";
  21117. };
  21118. },
  21119. MarkdownT() {
  21120. return function (c) {
  21121. let md = new MarkdownIt();
  21122. return c
  21123. ? md.render(c) : "";
  21124. };
  21125. },
  21126. commentRight(){
  21127. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21128. return "35px";
  21129. }
  21130. return `calc(${this.classRoomHelperWidth} + 5px)`
  21131. // if(this.$refs["classRoomHelperRef"].type==0){
  21132. // return "100px";
  21133. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21134. // return "502px"
  21135. // }else{
  21136. // return "0px"
  21137. // }
  21138. },
  21139. checkUpload() {
  21140. return function () {
  21141. var studentK = [];
  21142. if (this.plworkFile.length > 0) {
  21143. for (var z = 0; z < this.plworkFile.length; z++) {
  21144. studentK.push(this.plworkFile[z].username);
  21145. }
  21146. studentK = studentK.join(",");
  21147. }
  21148. var a = this.uploadStudentJuri.filter((el) => {
  21149. return studentK.indexOf(el.userid) == -1;
  21150. });
  21151. return a;
  21152. };
  21153. },
  21154. getSName() {
  21155. return function (name) {
  21156. var check = name;
  21157. this.uploadStudentJuri.forEach((el) => {
  21158. if (el.userid == check) {
  21159. check = el.name ? el.name : el.username;
  21160. }
  21161. });
  21162. return check;
  21163. };
  21164. },
  21165. getImgList() {
  21166. return function (val) {
  21167. let srcList = []; // 定义一个数组用来接收后面的img地址
  21168. val.replace(
  21169. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21170. function (match, capture) {
  21171. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21172. srcList.push(capture);
  21173. }
  21174. );
  21175. return srcList;
  21176. };
  21177. },
  21178. retrnToolHeight(){
  21179. return function (tool) {
  21180. var _tool = document.querySelectorAll('#'+tool)[0]
  21181. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21182. };
  21183. },
  21184. Correct() {
  21185. return function (c,d) {
  21186. let w = "";
  21187. let a = this.correctWord;
  21188. for(var k = 0;k<a.length;k++){
  21189. //diffWordsWithSpace
  21190. if(a.length > 1){
  21191. if(a[k].added == true){
  21192. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21193. }else if(a[k].removed == true){
  21194. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21195. }else{
  21196. w += '<span>' + a[k].value + '</span>';
  21197. }
  21198. }else{
  21199. w = c
  21200. }
  21201. console.log("👇👇!+++==")
  21202. console.log(w)
  21203. //diffChars方法
  21204. // if(w == ""){
  21205. // if(a.length > 1){
  21206. // if(a[k].added == true){
  21207. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21208. // }else if(a[k].removed == true){
  21209. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21210. // }
  21211. // }else{
  21212. // w = c
  21213. // }
  21214. // }else{
  21215. // if(k == a.length - 1){
  21216. // if(a[k].added == true){
  21217. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21218. // }else if(a[k].removed == true){
  21219. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21220. // }
  21221. // }else{
  21222. // if(a[k].added == true){
  21223. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21224. // }else if(a[k].removed == true){
  21225. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21226. // }
  21227. // }
  21228. // }
  21229. }
  21230. c = w;
  21231. return c;
  21232. };
  21233. },
  21234. },
  21235. mounted() {
  21236. document.body.addEventListener("click", (e) => {
  21237. if (this.isUpdateToolDetail1) {
  21238. this.updateToolDetail(this.toolDetailIndex);
  21239. }
  21240. });
  21241. try {
  21242. if (this.screenType == 2) {
  21243. window.topU.postMessage({ allScreen: 4 }, "*");
  21244. } else if (this.screenType == 3) {
  21245. window.topU.postMessage({ allScreen: 5 }, "*");
  21246. } else if (this.screenType == 1) {
  21247. window.topU.postMessage({ allScreen: 6 }, "*");
  21248. }
  21249. } catch (error) {
  21250. console.log(error)
  21251. }
  21252. this.setOperationTime();
  21253. this.selectEva();
  21254. this.getCourseDetail();
  21255. this.selectCount();
  21256. this.getHomeWork();
  21257. this.selectUser();
  21258. this.getAIJ();
  21259. this.contentDialog = true;
  21260. this.setContent2(true);
  21261. if (this.tType == 4) {
  21262. this.pzDialog = true;
  21263. this.selectPz();
  21264. }
  21265. // 获取评分列表
  21266. this.getScoreList()
  21267. this.updateSplitScreenData(2);
  21268. this.splitScreenData.myUid = uuidv4();
  21269. document.scrollingElement.scrollTop = 0;
  21270. window.addEventListener("resize", () => {
  21271. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21272. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21273. if (this.showType == 2 || this.showType == 3) {
  21274. document.getElementsByClassName("navBox")[0].style.height =
  21275. a - 40 + 0+ "px";
  21276. } else {
  21277. document.getElementsByClassName("navBox")[0].style.height =
  21278. a - 40 + "px";
  21279. }
  21280. });
  21281. let _this = this;
  21282. setTimeout(() => {
  21283. // _this.vedioTime = [];
  21284. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21285. // _this.vedioTime[i] = document.getElementsByClassName(
  21286. // "vjs-duration-display"
  21287. // )[i].textContent;
  21288. // }
  21289. }, 1000);
  21290. },
  21291. };
  21292. </script>
  21293. <style scoped>
  21294. @media screen and (max-width: 1280px) {
  21295. /* .courseIndex > div:first-child(2) {
  21296. width: 15% !important;
  21297. } */
  21298. /* .navText {
  21299. width: 120px !important;
  21300. } */
  21301. .evaCss {
  21302. flex-direction: column !important;
  21303. align-items: center !important;
  21304. }
  21305. .elist_input {
  21306. width: 90% !important;
  21307. }
  21308. .dialog_diy1 >>> .el-dialog {
  21309. width: 100% !important;
  21310. }
  21311. .rightWidthCss {
  21312. width: 100% !important;
  21313. }
  21314. .dialog_diy3 >>> .el-dialog {
  21315. width: 100% !important;
  21316. }
  21317. .addToolCss {
  21318. right: 0 !important;
  21319. width: 100% !important;
  21320. min-width: unset !important;
  21321. }
  21322. }
  21323. .evaCssMax {
  21324. flex-direction: column !important;
  21325. align-items: center !important;
  21326. }
  21327. .dialog_diy >>> .el-dialog {
  21328. margin-top: 10vh !important;
  21329. }
  21330. .body_student {
  21331. width: 77%;
  21332. height: 100%;
  21333. position: absolute;
  21334. left: 22%;
  21335. top: 0;
  21336. }
  21337. .student_head {
  21338. width: 100%;
  21339. margin: 20px auto 0;
  21340. padding-bottom: 20px;
  21341. display: flex;
  21342. flex-direction: column;
  21343. flex-wrap: nowrap;
  21344. align-items: flex-start;
  21345. justify-content: flex-start;
  21346. }
  21347. .pb_left {
  21348. width: 20%;
  21349. margin-right: 10px;
  21350. background: rgb(255, 255, 255);
  21351. position: fixed;
  21352. height: calc(100% - 40px);
  21353. border-radius: 20px;
  21354. padding-bottom: 15px;
  21355. box-sizing: border-box;
  21356. }
  21357. .wheel > img,
  21358. .project > img,
  21359. .star > img,
  21360. .evaluate > img,
  21361. .up_photo > img,
  21362. .chapter_add > img,
  21363. .deleteWord > img,
  21364. .question > img,
  21365. .homework > img {
  21366. width: 100%;
  21367. height: 100%;
  21368. }
  21369. .upCover > img {
  21370. width: 131px;
  21371. height: 69px;
  21372. object-fit: cover;
  21373. }
  21374. .upCover {
  21375. width: calc(100% / 3.5);
  21376. position: relative;
  21377. margin: 0 15px 10px 0;
  21378. display: flex;
  21379. flex-direction: column;
  21380. flex-wrap: nowrap;
  21381. justify-content: center;
  21382. align-content: center;
  21383. align-items: center;
  21384. height: fit-content;
  21385. }
  21386. .upCover2 {
  21387. width: 100%;
  21388. position: relative;
  21389. margin: 0 15px 10px 0;
  21390. display: flex;
  21391. flex-direction: column;
  21392. flex-wrap: nowrap;
  21393. justify-content: center;
  21394. align-content: center;
  21395. align-items: center;
  21396. }
  21397. .upCover2 > img {
  21398. width: 100%;
  21399. height: 90px;
  21400. object-fit: contain;
  21401. }
  21402. .chapter_add {
  21403. width: 120px;
  21404. position: relative;
  21405. text-align: center;
  21406. }
  21407. .isAddThings {
  21408. margin-top: 20px;
  21409. position: relative;
  21410. text-align: center;
  21411. background: #f7f8fa;
  21412. height: 90px;
  21413. width: 90px;
  21414. display: flex;
  21415. flex-direction: column;
  21416. justify-content: center;
  21417. }
  21418. .deleteWord {
  21419. width: 22px;
  21420. height: 22px;
  21421. position: absolute;
  21422. right: -5px;
  21423. top: -5px;
  21424. cursor: pointer;
  21425. }
  21426. .box_course {
  21427. /* width: 60%; */
  21428. width: calc(100% - 300px);
  21429. }
  21430. .wheel {
  21431. width: 100%;
  21432. /* height: 100%; */
  21433. height: 650px;
  21434. }
  21435. .right_box {
  21436. display: flex;
  21437. flex-direction: column;
  21438. margin-left: 30px;
  21439. justify-content: space-around;
  21440. }
  21441. .right_box_title {
  21442. font-size: 23px;
  21443. }
  21444. .people {
  21445. display: flex;
  21446. }
  21447. .student_body {
  21448. width: 100%;
  21449. margin: 0 auto;
  21450. margin-top: 10px;
  21451. padding: 0 0 20px;
  21452. }
  21453. .study_top {
  21454. margin-top: 100px;
  21455. width: 100%;
  21456. height: auto;
  21457. padding-bottom: 20px;
  21458. margin-left: 2px;
  21459. min-height: 90%;
  21460. }
  21461. .study_top .checkbox {
  21462. display: flex;
  21463. align-items: center;
  21464. padding: 15px 0 15px 30px;
  21465. flex: 0 0 auto;
  21466. font-weight: bold;
  21467. border-bottom: 1px solid #eee;
  21468. }
  21469. .study_top .check {
  21470. padding-bottom: 5px;
  21471. text-align: center;
  21472. cursor: pointer;
  21473. height: 30px;
  21474. box-sizing: border-box;
  21475. display: flex;
  21476. }
  21477. .study_top .checked {
  21478. border-bottom: 4px solid #3fc6a0;
  21479. padding-bottom: 5px;
  21480. color: #3fc6a0;
  21481. display: flex;
  21482. height: 35px;
  21483. }
  21484. .study_top .checked > div,
  21485. .study_top .check > div {
  21486. margin-right: 5px;
  21487. }
  21488. .videoTop {
  21489. display: flex;
  21490. flex-direction: row;
  21491. justify-content: space-between;
  21492. background: #fff;
  21493. align-items: center;
  21494. width: 95%;
  21495. padding: 20px;
  21496. }
  21497. .filebox {
  21498. display: flex;
  21499. flex-wrap: wrap;
  21500. flex-direction: column;
  21501. padding: 0 0 5px;
  21502. position: relative;
  21503. }
  21504. .filebox:before {
  21505. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21506. position: absolute;
  21507. top: 20px;
  21508. left: 13px;
  21509. border-left: 2px dotted #cad1dc;
  21510. height: calc(100% - 15px);
  21511. }
  21512. .toolHeng2 > div:last-child::before {
  21513. height: calc(100% - 43px);
  21514. }
  21515. .filebox .tooldetail {
  21516. width: calc(100%);
  21517. margin: 0px 12px;
  21518. padding: 12px;
  21519. line-height: 30px;
  21520. word-break: break-word;
  21521. background: #ffffff;
  21522. border-radius: 8px 8px 8px 8px;
  21523. opacity: 1;
  21524. border: 1px solid #cad1dc;
  21525. overflow:hidden;
  21526. box-sizing:border-box;
  21527. }
  21528. .file {
  21529. display: flex;
  21530. flex-direction: column;
  21531. align-items: center;
  21532. justify-content: center;
  21533. cursor: pointer;
  21534. width: 200px;
  21535. }
  21536. .file div {
  21537. margin-top: 10px;
  21538. width: 150px;
  21539. text-align: center;
  21540. overflow: hidden;
  21541. white-space: nowrap;
  21542. text-overflow: ellipsis;
  21543. }
  21544. .media {
  21545. display: flex;
  21546. flex-direction: column;
  21547. align-items: center;
  21548. justify-content: center;
  21549. margin: 0 20px 20px 0;
  21550. cursor: pointer;
  21551. margin: 12px 0 5px 15px;
  21552. overflow: hidden;
  21553. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21554. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21555. box-sizing: border-box;
  21556. }
  21557. .media img {
  21558. height: 90px;
  21559. width: 160px;
  21560. object-fit: cover;
  21561. }
  21562. .media .title {
  21563. padding: 5px;
  21564. text-align: left;
  21565. width: 100%;
  21566. box-sizing: border-box;
  21567. }
  21568. .media .btn {
  21569. width: 100%;
  21570. height: 35px;
  21571. line-height: 35px;
  21572. color: #fff;
  21573. background: #606060;
  21574. text-align: center;
  21575. overflow: hidden;
  21576. white-space: nowrap;
  21577. text-overflow: ellipsis;
  21578. }
  21579. .detail_content_top {
  21580. width: 100%;
  21581. padding: 25px 0 25px 0;
  21582. }
  21583. .detail_title {
  21584. text-align: center;
  21585. font-size: 24px;
  21586. }
  21587. .detail_time {
  21588. font-size: 13px;
  21589. padding: 15px 0 0 40px;
  21590. }
  21591. .detail_content {
  21592. line-height: 2pc;
  21593. width: 90%;
  21594. margin: 0 auto;
  21595. padding-top: 30px;
  21596. text-indent: 30px;
  21597. overflow: auto;
  21598. height: 200px;
  21599. }
  21600. .score_box >>> .el-rate {
  21601. margin-left: 10px;
  21602. }
  21603. .dialog_change >>> .el-dialog {
  21604. border-radius: 5px;
  21605. }
  21606. .dialog_change >>> .el-dialog__header {
  21607. background: #f2f2f2;
  21608. text-align: center;
  21609. }
  21610. .dialog_change >>> .el-dialog__title {
  21611. line-height: 5px;
  21612. }
  21613. .dialog_change >>> .el-dialog__body {
  21614. background: #fff;
  21615. padding: 10px 20px;
  21616. }
  21617. .score_box {
  21618. display: flex;
  21619. align-items: center;
  21620. margin-bottom: 18px;
  21621. margin-top: 20px;
  21622. }
  21623. .up_photo {
  21624. width: 120px;
  21625. cursor: pointer;
  21626. margin-top: 10px;
  21627. }
  21628. .up_photo2 {
  21629. width: 180px;
  21630. box-sizing: border-box;
  21631. min-width: 180px;
  21632. height: 180px;
  21633. max-height: 180px;
  21634. min-height: 180px;
  21635. cursor: pointer;
  21636. display: flex;
  21637. flex-direction: column;
  21638. align-items: center;
  21639. justify-content: center;
  21640. background: rgb(242, 246, 255);
  21641. /* padding: 25px; */
  21642. margin-bottom: 10px;
  21643. }
  21644. .up_photo2 img {
  21645. width: 50%;
  21646. height: auto;
  21647. }
  21648. .up_photo2 span {
  21649. color: #898989;
  21650. }
  21651. .plworkBox {
  21652. display: flex;
  21653. align-items: center;
  21654. margin-top: 10px;
  21655. flex-wrap: wrap;
  21656. }
  21657. .upload_send {
  21658. margin: 30px auto 30px;
  21659. width: 60%;
  21660. background: #3681fc;
  21661. text-align: center;
  21662. height: 35px;
  21663. line-height: 35px;
  21664. color: #fff;
  21665. border-radius: 5px;
  21666. cursor: pointer;
  21667. }
  21668. .marginT {
  21669. margin-top: 20px;
  21670. }
  21671. .cd_content_steps {
  21672. display: flex;
  21673. width: 90%;
  21674. justify-content: space-around;
  21675. border-top: 1px solid #eeeeee;
  21676. }
  21677. .cd_steps_box {
  21678. display: flex;
  21679. justify-content: center;
  21680. align-items: center;
  21681. flex-direction: column;
  21682. cursor: pointer;
  21683. }
  21684. .first {
  21685. display: flex;
  21686. align-items: center;
  21687. margin: 15px 0 20px 0;
  21688. font-size: 20px;
  21689. }
  21690. .first > div:nth-child(2) {
  21691. font-size: 16px !important;
  21692. padding-left: 10px;
  21693. line-height: 26px;
  21694. box-sizing: border-box;
  21695. }
  21696. .blue_box_one {
  21697. text-align: center;
  21698. color: #fff;
  21699. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21700. border-radius: 7px;
  21701. margin: 10px;
  21702. cursor: pointer;
  21703. width: 95%;
  21704. height: 45px;
  21705. display: flex;
  21706. flex-direction: row;
  21707. justify-content: flex-start;
  21708. align-items: center;
  21709. }
  21710. .blue_box_one > div:nth-child(1) {
  21711. line-height: 30px;
  21712. margin: 0 5px 0 10px;
  21713. width: 30%;
  21714. min-width: 70px;
  21715. border-radius: 4px;
  21716. }
  21717. .blue_box_one > div:nth-child(2) {
  21718. white-space: nowrap;
  21719. text-overflow: ellipsis;
  21720. overflow: hidden;
  21721. word-break: break-all;
  21722. width: 70%;
  21723. text-align: left;
  21724. margin-right: 10px;
  21725. max-width: calc(100% - 85px);
  21726. }
  21727. .blue_box_one > div:nth-child(2):hover {
  21728. overflow: hidden;
  21729. text-overflow: ellipsis;
  21730. white-space: nowrap;
  21731. cursor: pointer;
  21732. }
  21733. .upFile {
  21734. margin: 0 auto;
  21735. width: 120px;
  21736. background: #3681fc;
  21737. color: #fff;
  21738. height: 30px;
  21739. text-align: center;
  21740. line-height: 30px;
  21741. border-radius: 5px;
  21742. font-size: 14px;
  21743. cursor: pointer;
  21744. }
  21745. .courseTitle {
  21746. width: 85%;
  21747. margin: 10px auto 26px auto;
  21748. display: flex;
  21749. flex-direction: row;
  21750. align-items: center;
  21751. justify-content: space-between;
  21752. text-align: center;
  21753. }
  21754. .courseTitle .ctitle {
  21755. font-size: 20px;
  21756. font-weight: bold;
  21757. color: #0e1e33;
  21758. white-space: nowrap;
  21759. overflow: hidden;
  21760. text-overflow: ellipsis;
  21761. }
  21762. .inviteBox {
  21763. font-size: 14px;
  21764. /* margin-top: 5px; */
  21765. color: #00000099;
  21766. text-align: center;
  21767. }
  21768. .courseTitle >>> .el-tooltip {
  21769. width: 100%;
  21770. white-space: nowrap;
  21771. overflow: hidden;
  21772. text-overflow: ellipsis;
  21773. word-break: break-word;
  21774. }
  21775. .ml {
  21776. margin-left: 20px;
  21777. color: #5b7dba;
  21778. border-left: 3px solid #5b7dba;
  21779. padding-left: 5px;
  21780. font-weight: bold;
  21781. }
  21782. .return {
  21783. width: 2rem;
  21784. height: 2rem;
  21785. cursor: pointer;
  21786. }
  21787. .return > img {
  21788. width: 100%;
  21789. height: 100%;
  21790. }
  21791. .returnBtn {
  21792. width: 86px;
  21793. height: 36px;
  21794. background: #3681fc;
  21795. border-radius: 4px;
  21796. color: #fff;
  21797. text-align: center;
  21798. line-height: 36px;
  21799. margin-right: 20px;
  21800. cursor: pointer;
  21801. font-size: 14px;
  21802. font-weight: 400;
  21803. display: flex;
  21804. flex-direction: row;
  21805. flex-wrap: nowrap;
  21806. align-items: center;
  21807. justify-content: center;
  21808. }
  21809. .reBtnIcon,
  21810. .commentIcon,
  21811. .vedioIcon,
  21812. .vedioIcon1 {
  21813. /* width: 36px; */
  21814. height: 36px;
  21815. border-radius: 4px;
  21816. position: relative;
  21817. /* background: #e0eafb; */
  21818. background: #0061ff;
  21819. cursor: pointer;
  21820. margin-right: 12px;
  21821. display: flex;
  21822. align-items: center;
  21823. padding: 0 10px;
  21824. box-sizing: border-box;
  21825. font-size: 14px;
  21826. color: #fff;
  21827. }
  21828. .reBtnIcon::before,
  21829. .commentIcon::before,
  21830. .vedioIcon::before,
  21831. .vedioIcon1::before {
  21832. content: "";
  21833. display: block;
  21834. background-size: 100% 100%;
  21835. background-repeat: no-repeat;
  21836. width: 20px;
  21837. height: 20px;
  21838. margin-right: 5px;
  21839. /* position: absolute; */
  21840. /* top: 8px;
  21841. left: 8px; */
  21842. }
  21843. .vedioIcon1 {
  21844. background: #f63564;
  21845. }
  21846. .reBtnIcon::before {
  21847. background-image: url("../../assets/icon/newIcons/refresh.png");
  21848. }
  21849. .commentIcon::before {
  21850. background-image: url("../../assets/icon/newIcons/comment.png");
  21851. }
  21852. .vedioIcon::before {
  21853. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21854. }
  21855. .vedioIcon1::before {
  21856. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21857. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21858. }
  21859. .tool {
  21860. display: flex;
  21861. flex-direction: column;
  21862. flex-wrap: nowrap;
  21863. width: 13%;
  21864. margin: 0 30px;
  21865. align-items: center;
  21866. position: relative;
  21867. padding: 10px 25px;
  21868. cursor: pointer;
  21869. }
  21870. .whiteBIcon {
  21871. width: 150px;
  21872. }
  21873. .whiteBIcon > img {
  21874. width: 100%;
  21875. height: 100%;
  21876. }
  21877. .mask {
  21878. background-color: rgba(0, 0, 0, 0);
  21879. position: fixed;
  21880. top: 0;
  21881. left: 0;
  21882. width: 100%;
  21883. height: 100%;
  21884. z-index: 20000;
  21885. display: flex;
  21886. align-items: center;
  21887. justify-content: center;
  21888. }
  21889. .progressBox {
  21890. width: 500px;
  21891. height: 180px;
  21892. background: #fff;
  21893. border-radius: 10px;
  21894. box-shadow: 0 0 6px 1px #bfbfbf;
  21895. display: flex;
  21896. align-items: center;
  21897. justify-content: center;
  21898. flex-direction: column;
  21899. position: relative;
  21900. color: #6c6c6c;
  21901. }
  21902. .progressBox >>> .el-progress-bar__outer {
  21903. background-color: #d1dfff !important;
  21904. }
  21905. .progressBox .lbox {
  21906. height: 50px;
  21907. font-size: 19px;
  21908. display: flex;
  21909. align-items: center;
  21910. color: #747474;
  21911. }
  21912. .progressBox .lbox img {
  21913. width: 40px;
  21914. margin-right: 20px;
  21915. }
  21916. .closeCss {
  21917. position: absolute;
  21918. top: 8px;
  21919. right: 8px;
  21920. cursor: pointer;
  21921. width: 20px;
  21922. height: 20px;
  21923. }
  21924. .closeCss > img {
  21925. width: 100%;
  21926. height: 100%;
  21927. }
  21928. .uploadVedio {
  21929. display: flex;
  21930. flex-direction: column;
  21931. flex-wrap: nowrap;
  21932. justify-content: center;
  21933. align-items: center;
  21934. margin: 0 15px 10px 0;
  21935. }
  21936. .uploadVedio > img {
  21937. width: 30px;
  21938. height: 30px;
  21939. }
  21940. .uploadVedio > span {
  21941. white-space: nowrap;
  21942. overflow: hidden;
  21943. text-overflow: ellipsis;
  21944. width: 75px;
  21945. margin-top: 7px;
  21946. }
  21947. .picName {
  21948. white-space: nowrap;
  21949. overflow: hidden;
  21950. text-overflow: ellipsis;
  21951. width: 75px;
  21952. margin-top: 7px;
  21953. }
  21954. .new_top {
  21955. display: flex;
  21956. background: #fff;
  21957. flex-direction: row;
  21958. justify-content: flex-start;
  21959. align-items: center;
  21960. height: 60px;
  21961. position: fixed;
  21962. top: 20px;
  21963. left: 22%;
  21964. width: 77%;
  21965. z-index: 999;
  21966. border-radius: 12px 12px 0 0;
  21967. border-bottom: 1px solid #cad1dc;
  21968. padding: 10px 0;
  21969. }
  21970. .new_topFixed {
  21971. width: 100%;
  21972. height: 40px;
  21973. position: fixed;
  21974. top: 0px;
  21975. display: block;
  21976. background: #f2f2f2;
  21977. z-index: 998;
  21978. }
  21979. .before {
  21980. position: absolute;
  21981. background: #c3dad4;
  21982. width: 6px;
  21983. height: 100%;
  21984. }
  21985. .courseIndex {
  21986. display: flex;
  21987. flex-direction: row;
  21988. align-items: center;
  21989. width: calc(100% - 745px);
  21990. }
  21991. .courseIndex > div:nth-child(1) {
  21992. margin: 0 0 0 10px;
  21993. font-size: 20px;
  21994. min-width: 100px;
  21995. font-weight: bold;
  21996. border-left: 4px solid #3363b9;
  21997. height: 32px;
  21998. text-align: center;
  21999. line-height: 35px;
  22000. }
  22001. .courseIndex > div:nth-child(2) {
  22002. font-size: 20px;
  22003. /* width: 300px; */
  22004. max-width: calc(100% - 105px);
  22005. white-space: nowrap;
  22006. overflow: hidden;
  22007. text-overflow: ellipsis;
  22008. }
  22009. .courseIndex > div:nth-child(3) {
  22010. border-bottom: 1px solid #d7d7d7;
  22011. padding-bottom: 5px;
  22012. background: #3681fc;
  22013. width: 55px;
  22014. min-width: 55px;
  22015. border-radius: 5px;
  22016. color: #fff;
  22017. text-align: center;
  22018. height: 20px;
  22019. line-height: 26px;
  22020. font-size: 14px;
  22021. margin: 0 0 0 10px;
  22022. }
  22023. .course_text {
  22024. padding: 20px 0 0 15px;
  22025. text-indent: 30px;
  22026. width: 80%;
  22027. min-height: 20px;
  22028. }
  22029. .vedioList {
  22030. background: #f2f2f2;
  22031. border: 1px solid #ececec;
  22032. /* width: 38.8%; */
  22033. /* width: 300px; */
  22034. width: 100%;
  22035. height: 445px;
  22036. border-radius: 10px;
  22037. overflow: hidden;
  22038. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22039. }
  22040. .vedioNav {
  22041. margin: 10px 0 0 15px;
  22042. border-bottom: 1px solid #d7d7d7;
  22043. padding-bottom: 5px;
  22044. background: #3681fc;
  22045. width: 55px;
  22046. min-width: 55px;
  22047. border-radius: 5px;
  22048. color: #fff;
  22049. text-align: center;
  22050. height: 20px;
  22051. line-height: 26px;
  22052. font-size: 14px;
  22053. }
  22054. .queTop {
  22055. display: flex;
  22056. padding: 20px 0 20px 30px;
  22057. width: 100%;
  22058. flex-direction: row;
  22059. justify-content: flex-start;
  22060. align-items: center;
  22061. box-sizing: border-box;
  22062. }
  22063. .queTopTitle {
  22064. display: flex;
  22065. flex-direction: row;
  22066. flex-wrap: nowrap;
  22067. align-items: center;
  22068. font-weight: bold;
  22069. font-size: 20px;
  22070. color: rgb(14, 30, 51);
  22071. }
  22072. .queTopTitle::before {
  22073. content: "";
  22074. width: 2px;
  22075. height: 22px;
  22076. background: #3681fc;
  22077. border-radius: 3px;
  22078. display: block;
  22079. margin: 2px 6px 0 0;
  22080. }
  22081. .queTopRight {
  22082. display: flex;
  22083. flex-direction: row;
  22084. flex-wrap: nowrap;
  22085. align-items: center;
  22086. }
  22087. .queTopClose {
  22088. margin-right: 20px;
  22089. cursor: pointer;
  22090. position: relative;
  22091. display: flex;
  22092. }
  22093. .closeImg,
  22094. .openImg {
  22095. width: 25px;
  22096. height: 25px;
  22097. position: absolute;
  22098. left: -20px;
  22099. top: -1px;
  22100. }
  22101. .closeImg > img,
  22102. .openImg > img {
  22103. width: 100%;
  22104. height: 100%;
  22105. }
  22106. .question {
  22107. width: 40px;
  22108. margin-right: 10px;
  22109. margin-top: 7px;
  22110. }
  22111. .queTitle {
  22112. margin-left: 5px;
  22113. font-size: 25px;
  22114. display: flex;
  22115. align-items: center;
  22116. }
  22117. .addEditor {
  22118. width: 100px;
  22119. height: 30px;
  22120. background: #42cda6;
  22121. color: #fff;
  22122. border-radius: 5px;
  22123. text-align: center;
  22124. line-height: 30px;
  22125. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22126. cursor: pointer;
  22127. }
  22128. /* .vedioName {
  22129. cursor: pointer;
  22130. margin: 0px 0px 10px 5px;
  22131. white-space: nowrap;
  22132. overflow: hidden;
  22133. text-overflow: ellipsis;
  22134. width: 100%;
  22135. } */
  22136. .vedioTime {
  22137. width: 35px;
  22138. position: absolute;
  22139. color: #fff;
  22140. bottom: 0px;
  22141. right: 0px;
  22142. text-align: center;
  22143. background: #46411f;
  22144. height: 20px;
  22145. font-size: 14px;
  22146. line-height: 20px;
  22147. }
  22148. .homework {
  22149. width: 200px;
  22150. display: flex;
  22151. flex-direction: column;
  22152. flex-wrap: nowrap;
  22153. align-items: center;
  22154. cursor: pointer;
  22155. }
  22156. .homebox {
  22157. display: flex;
  22158. flex-wrap: wrap;
  22159. flex-direction: row;
  22160. justify-content: flex-start;
  22161. align-items: center;
  22162. padding: 15px 0;
  22163. }
  22164. .isChooseActive {
  22165. color: #3681fc !important;
  22166. font-weight: bold !important;
  22167. }
  22168. .chooseWho {
  22169. display: flex;
  22170. width: 100%;
  22171. flex-direction: row;
  22172. flex-wrap: nowrap;
  22173. justify-content: flex-start;
  22174. padding-bottom: 10px;
  22175. }
  22176. .chooseWho > div {
  22177. cursor: pointer;
  22178. padding-bottom: 10px;
  22179. margin: 0 30px 0 0;
  22180. font-weight: 400;
  22181. color: #0e1e33;
  22182. }
  22183. .addPoint > div > img {
  22184. cursor: pointer;
  22185. width: 85px;
  22186. border-radius: 15px;
  22187. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22188. }
  22189. .addPoint > div {
  22190. display: flex;
  22191. flex-direction: column;
  22192. flex-wrap: nowrap;
  22193. align-items: center;
  22194. }
  22195. .isBorder > div {
  22196. margin: 0 0 10px 0;
  22197. align-items: flex-start !important;
  22198. }
  22199. .noiframeBox {
  22200. display: flex;
  22201. flex-wrap: wrap;
  22202. }
  22203. .iframeBox iframe {
  22204. width: 100%;
  22205. height: 800px;
  22206. border: none;
  22207. margin-bottom: 20px;
  22208. border: 1px solid #ccc;
  22209. }
  22210. .upload_toolBtn {
  22211. background: #3681fc;
  22212. color: #fff;
  22213. width: 110px;
  22214. text-align: center;
  22215. height: 35px;
  22216. line-height: 35px;
  22217. font-size: 14px;
  22218. border-radius: 5px;
  22219. cursor: pointer;
  22220. position: absolute;
  22221. right: 10px;
  22222. bottom: 0;
  22223. }
  22224. .binfo_input,
  22225. .pj {
  22226. font: inherit;
  22227. color: currentColor;
  22228. width: 100%;
  22229. margin: 0;
  22230. padding: 15px 14px;
  22231. display: block;
  22232. min-width: 0;
  22233. outline: none;
  22234. box-sizing: content-box;
  22235. background: none;
  22236. -webkit-tap-highlight-color: transparent;
  22237. border: 1px solid rgba(0, 0, 0, 0.23);
  22238. border-radius: 4px;
  22239. box-sizing: border-box;
  22240. resize: none;
  22241. }
  22242. .binfo_input:focus-visible {
  22243. border: 1px solid rgba(61, 103, 188);
  22244. }
  22245. .dialog_diy >>> .el-dialog__header,
  22246. .dialog_diy1 >>> .el-dialog__header {
  22247. background: #454545 !important;
  22248. padding: 15px 20px;
  22249. }
  22250. .dialog_diy >>> .el-dialog__title,
  22251. .dialog_diy1 >>> .el-dialog__title {
  22252. color: #fff;
  22253. }
  22254. .dialog_diy >>> .el-dialog__headerbtn,
  22255. .dialog_diy1 >>> .el-dialog__headerbtn {
  22256. top: 19px;
  22257. }
  22258. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22259. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22260. color: #fff;
  22261. }
  22262. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22263. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22264. color: #fff;
  22265. }
  22266. .dialog_diy1 >>> .el-dialog__body {
  22267. padding: 0;
  22268. }
  22269. .dialog_diy >>> .el-dialog__body,
  22270. .dialog_diy >>> .el-dialog__footer,
  22271. .dialog_diy1 >>> .el-dialog__footer {
  22272. background: #fafafa;
  22273. }
  22274. .a_addBox {
  22275. padding: 0 0 0 15px;
  22276. }
  22277. .a_add_box {
  22278. padding: 10px;
  22279. background: #fff;
  22280. margin-bottom: 10px;
  22281. border-radius: 5px;
  22282. box-shadow: 0 0 5px 0 #d5d5d5;
  22283. }
  22284. .a_add_head {
  22285. display: flex;
  22286. align-items: flex-start;
  22287. /* justify-content: space-between; */
  22288. flex-direction: column;
  22289. /* flex-direction: row; */
  22290. margin: 10px 0 20px 0;
  22291. font-size: 18px;
  22292. width: 100%;
  22293. }
  22294. .askIndex {
  22295. background: #3681fc;
  22296. border-radius: 50%;
  22297. color: #fff;
  22298. width: 25px;
  22299. height: 25px;
  22300. min-width: 25px;
  22301. min-height: 25px;
  22302. text-align: center;
  22303. line-height: 25px;
  22304. margin-right: 5px;
  22305. }
  22306. .a_add_head .a_add_head_input {
  22307. width: 300px;
  22308. }
  22309. .a_add_head .a_add_head_div {
  22310. display: flex;
  22311. align-items: center;
  22312. justify-content: space-between;
  22313. }
  22314. .a_add_body {
  22315. display: flex;
  22316. align-items: center;
  22317. }
  22318. .a_add_input {
  22319. display: flex;
  22320. align-items: center;
  22321. flex-wrap: wrap;
  22322. width: 100%;
  22323. }
  22324. .a_add_input >>> .el-radio-group,
  22325. .a_add_input >>> .el-checkbox-group {
  22326. width: 100%;
  22327. }
  22328. .a_add_input >>> .el-radio,
  22329. .a_add_input >>> .el-checkbox {
  22330. display: flex;
  22331. flex-direction: row;
  22332. flex-wrap: nowrap;
  22333. align-items: center;
  22334. padding: 15px 0;
  22335. }
  22336. .a_add_input >>> .el-radio:not(:last-child),
  22337. .a_add_input >>> .el-checkbox:not(:last-child) {
  22338. width: 100%;
  22339. border-bottom: 1px solid #efefef;
  22340. }
  22341. .redioStyle >>> .el-radio__label {
  22342. font-size: 18px;
  22343. }
  22344. .redioStyle >>> .el-radio__label > span,
  22345. .redioStyle >>> .el-checkbox__label > span {
  22346. word-break: break-all;
  22347. white-space: normal;
  22348. }
  22349. .redioStyle >>> .el-checkbox__label {
  22350. font-size: 18px;
  22351. }
  22352. .toolHeng2 {
  22353. width: 100%;
  22354. padding-left: 15px;
  22355. box-sizing: border-box;
  22356. }
  22357. .workNav {
  22358. font-size: 20px;
  22359. font-weight: bold;
  22360. color: #0e1e33;
  22361. display: flex;
  22362. flex-direction: row;
  22363. flex-wrap: nowrap;
  22364. align-items: center;
  22365. padding: 15px 0 15px 0;
  22366. }
  22367. .workNav::before {
  22368. content: "";
  22369. width: 2px;
  22370. height: 22px;
  22371. background: #3681fc;
  22372. border-radius: 3px;
  22373. display: block;
  22374. margin: 2px 6px 0 0;
  22375. }
  22376. .toolHeng {
  22377. display: flex;
  22378. flex-direction: row;
  22379. flex-wrap: wrap;
  22380. justify-content: flex-start;
  22381. align-items: center;
  22382. width: 100%;
  22383. }
  22384. .toolHeng > div {
  22385. padding-left: 20px;
  22386. }
  22387. .isWidth {
  22388. width: 20%;
  22389. }
  22390. .textTitle {
  22391. display: flex;
  22392. flex-direction: row;
  22393. flex-wrap: nowrap;
  22394. align-items: center;
  22395. width: 95%;
  22396. }
  22397. .textTitle >>> .el-form-item__label {
  22398. font-size: 22px;
  22399. color: #918f8f;
  22400. width: 100px;
  22401. }
  22402. .textTitle >>> .el-form-item__content {
  22403. width: calc(100% - 100px);
  22404. }
  22405. .textCss >>> .el-dialog {
  22406. width: 800px !important;
  22407. height: 400px;
  22408. background: #fafafa;
  22409. }
  22410. .textCss >>> .el-dialog__body {
  22411. margin: 55px 8% 0 8%;
  22412. padding: 0 !important;
  22413. }
  22414. .textCss >>> .el-dialog__footer {
  22415. padding-top: 38px;
  22416. }
  22417. .toolsCss >>> .el-dialog__body {
  22418. padding: 20px;
  22419. }
  22420. .lineCss >>> .el-dialog__body {
  22421. display: flex;
  22422. flex-direction: row;
  22423. align-items: center;
  22424. justify-content: center;
  22425. }
  22426. .newNav {
  22427. display: flex;
  22428. flex-direction: row;
  22429. align-items: baseline;
  22430. justify-content: flex-start;
  22431. }
  22432. .navListItem {
  22433. width: calc(100% - 20px);
  22434. height: 50px;
  22435. margin: 0px auto 10px;
  22436. display: flex;
  22437. flex-direction: row;
  22438. flex-wrap: nowrap;
  22439. align-items: center;
  22440. justify-content: space-between;
  22441. background: #f0f4fa;
  22442. border-radius: 6px 6px 6px 6px;
  22443. }
  22444. .navText {
  22445. cursor: pointer;
  22446. white-space: nowrap;
  22447. overflow: hidden;
  22448. text-overflow: ellipsis;
  22449. width: 220px;
  22450. padding: 0 10px;
  22451. font-weight: 400;
  22452. color: #0e1e33;
  22453. }
  22454. .downIcon {
  22455. width: 20px;
  22456. min-width: 20px;
  22457. height: 20px;
  22458. margin-right: 15px;
  22459. cursor: pointer;
  22460. }
  22461. .downIcon > img {
  22462. width: 100%;
  22463. height: 100%;
  22464. }
  22465. .noVedio {
  22466. display: flex;
  22467. flex-direction: row;
  22468. justify-content: center;
  22469. align-content: center;
  22470. }
  22471. .noNavText {
  22472. cursor: pointer;
  22473. margin: 0px 0px 10px 5px;
  22474. width: 112px;
  22475. }
  22476. .listNoVedio {
  22477. margin: 0 0 0 30px;
  22478. width: 97%;
  22479. }
  22480. .video-player >>> .video-js {
  22481. height: 100%;
  22482. }
  22483. .hangVedioList {
  22484. width: 90% !important;
  22485. height: 150px !important;
  22486. margin: 20px 0 0 30px;
  22487. }
  22488. .hangVedio {
  22489. width: 100%;
  22490. height: 170px !important;
  22491. align-items: flex-start !important;
  22492. }
  22493. .hangHand {
  22494. height: 150px !important;
  22495. }
  22496. .twoChild {
  22497. width: 95%;
  22498. margin: 10px;
  22499. border-radius: 5px;
  22500. background: #f2f2f2;
  22501. display: flex;
  22502. flex-direction: column;
  22503. flex-wrap: nowrap;
  22504. justify-content: flex-start;
  22505. align-items: flex-start;
  22506. transition: all 0.5s;
  22507. overflow: hidden;
  22508. height: 0;
  22509. background: #e7f3ff;
  22510. }
  22511. .twoChild > div:nth-child(1) {
  22512. margin-top: 5px;
  22513. }
  22514. .navChild {
  22515. width: 100%;
  22516. cursor: pointer;
  22517. margin-bottom: 10px;
  22518. position: relative;
  22519. }
  22520. .navChild img {
  22521. position: absolute;
  22522. right: 11px;
  22523. width: 15px;
  22524. top: 50%;
  22525. transform: translateY(-50%);
  22526. }
  22527. .navActive,
  22528. .toolActive {
  22529. height: auto !important;
  22530. overflow: auto !important;
  22531. /* padding-bottom: 16px; */
  22532. }
  22533. .toolActive {
  22534. padding: 0;
  22535. }
  22536. .navTask {
  22537. display: flex;
  22538. flex-direction: row;
  22539. flex-wrap: nowrap;
  22540. align-items: center;
  22541. align-content: flex-start;
  22542. height: 40px;
  22543. justify-content: flex-start;
  22544. padding: 0 10px;
  22545. width: 100%;
  22546. box-sizing: border-box;
  22547. }
  22548. .navTaskname {
  22549. white-space: nowrap;
  22550. text-overflow: ellipsis;
  22551. overflow: hidden;
  22552. word-break: break-all;
  22553. padding-left: 5px;
  22554. }
  22555. .openTaskActive {
  22556. /* background-color: #e0eafb !important;
  22557. color: #0061ff; */
  22558. color:#fff;
  22559. background: rgb(55, 129, 252) !important;
  22560. }
  22561. .iframeName {
  22562. margin: 5px 0;
  22563. border-left: 4px solid #41c4a4;
  22564. padding-left: 4px;
  22565. }
  22566. .toolTitle {
  22567. margin: 0px 0px 20px;
  22568. font-size: 20px;
  22569. font-weight: 500;
  22570. border-left: 4px solid #41c4a4;
  22571. padding-left: 4px;
  22572. }
  22573. .cru_selectBox {
  22574. overflow: auto;
  22575. width: 95%;
  22576. margin: 17px auto 0;
  22577. height: calc(100% - 40px - 21px - 20px - 17px);
  22578. background: #fff;
  22579. border-radius: 8px;
  22580. }
  22581. .cru_selectBox::-webkit-scrollbar,
  22582. .study_top::-webkit-scrollbar,
  22583. .textContent::-webkit-scrollbar {
  22584. /*滚动条整体样式*/
  22585. width: 6px;
  22586. /*高宽分别对应横竖滚动条的尺寸*/
  22587. height: 6px;
  22588. }
  22589. /*定义滚动条轨道 内阴影+圆角*/
  22590. .cru_selectBox::-webkit-scrollbar-track,
  22591. .study_top::-webkit-scrollbar-track,
  22592. .textContent::-webkit-scrollbar {
  22593. border-radius: 10px;
  22594. background-color: #b8bdc9;
  22595. }
  22596. /*定义滑块 内阴影+圆角*/
  22597. .cru_selectBox::-webkit-scrollbar-thumb,
  22598. .study_top::-webkit-scrollbar-thumb,
  22599. .textContent::-webkit-scrollbar-thumb {
  22600. border-radius: 10px;
  22601. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22602. background-color: #2c5ab3;
  22603. }
  22604. .vedioBox {
  22605. border-radius: 0 0 20px 20px;
  22606. background: #fff;
  22607. overflow: auto;
  22608. }
  22609. .taskBox {
  22610. width: 98%;
  22611. background: #f0f4fa;
  22612. margin: 10px auto;
  22613. padding: 0 10px;
  22614. border-radius: 4px;
  22615. box-sizing: border-box;
  22616. }
  22617. .vedioTaskBox {
  22618. width: 100%;
  22619. display: flex;
  22620. flex-direction: row;
  22621. flex-wrap: nowrap;
  22622. align-items: flex-start;
  22623. position: relative;
  22624. }
  22625. .toolBox {
  22626. margin: 15px 0 0 25px;
  22627. display: flex;
  22628. position: relative;
  22629. padding: 18px 20px;
  22630. border-top-left-radius: 5px;
  22631. border-top-right-radius: 5px;
  22632. width: 90%;
  22633. }
  22634. .btnAll {
  22635. position: absolute;
  22636. right: 0;
  22637. display: flex;
  22638. flex-direction: row;
  22639. flex-wrap: nowrap;
  22640. align-items: center;
  22641. }
  22642. .btnLeft,
  22643. .btnRight {
  22644. display: flex;
  22645. flex-direction: row;
  22646. flex-wrap: nowrap;
  22647. align-items: center;
  22648. padding: 5px 0;
  22649. }
  22650. .btnLeft {
  22651. border-right: 1px solid #cad1dc;
  22652. }
  22653. .btnLeft > .custom-tooltip {
  22654. background: #3681fc;
  22655. color: #fff;
  22656. }
  22657. .last:hover {
  22658. background: #3383fa !important;
  22659. color: #fff;
  22660. border: 1px solid #3383fa !important;
  22661. }
  22662. .last,
  22663. .returnBtn1 {
  22664. width: 90px;
  22665. height: 36px;
  22666. background: #ffffff;
  22667. border-radius: 4px;
  22668. border: 1px solid #0061ff;
  22669. color: #0061ff;
  22670. cursor: pointer;
  22671. display: flex;
  22672. flex-direction: row;
  22673. flex-wrap: nowrap;
  22674. align-items: center;
  22675. justify-content: center;
  22676. margin-left: 12px;
  22677. }
  22678. .returnBtn1 {
  22679. background: #f0f4fa;
  22680. border-radius: 4px;
  22681. border: 1px solid #cad1dc;
  22682. margin: 0 12px;
  22683. }
  22684. .lastImg {
  22685. min-width: 15px;
  22686. width: 15px;
  22687. height: 15px;
  22688. display: flex;
  22689. }
  22690. .lastText {
  22691. padding: 0 5px 0 5px;
  22692. box-sizing: border-box;
  22693. font-size: 14px;
  22694. }
  22695. .lastImg > img {
  22696. width: 100%;
  22697. height: 100%;
  22698. }
  22699. /* .vedioTimeBox {
  22700. display: flex;
  22701. flex-direction: row;
  22702. align-items: center;
  22703. flex-wrap: nowrap;
  22704. position: relative;
  22705. } */
  22706. .navBox {
  22707. background: #fff;
  22708. height: calc(100% - 40px);
  22709. overflow-y: auto;
  22710. overflow-x: hidden;
  22711. }
  22712. .worksBox {
  22713. margin: 0 0 10px 25px;
  22714. border-bottom: 1px solid #eeeeee;
  22715. padding: 18px 20px;
  22716. border-radius: 4px;
  22717. width: 90%;
  22718. }
  22719. .worksBTitle {
  22720. font-size: 20px;
  22721. padding-bottom: 15px;
  22722. border-bottom: 1px solid #eeeeee;
  22723. display: flex;
  22724. align-items: center;
  22725. }
  22726. .greenBox {
  22727. width: 5px;
  22728. height: 30px;
  22729. background: #63b6fa;
  22730. margin-right: 5px;
  22731. }
  22732. .worksDetailBox {
  22733. display: flex;
  22734. width: 100%;
  22735. flex-direction: row;
  22736. flex-wrap: wrap;
  22737. align-items: flex-end;
  22738. justify-content: flex-start;
  22739. padding: 15px 5px;
  22740. box-sizing: border-box;
  22741. }
  22742. .works {
  22743. display: flex;
  22744. flex-direction: column;
  22745. flex-wrap: nowrap;
  22746. align-items: flex-start;
  22747. justify-content: flex-start;
  22748. align-content: center;
  22749. max-width: 240px;
  22750. width: calc(100% / 3 - 10px);
  22751. height: auto;
  22752. margin-right: 10px;
  22753. margin-bottom: 10px;
  22754. overflow: hidden;
  22755. height: 140px;
  22756. box-shadow: 0 0 6px 1px #dfdada;
  22757. border-radius: 15px;
  22758. }
  22759. .workImg {
  22760. width: 100%;
  22761. /* height: calc(100% - 40px); */
  22762. height: 105px;
  22763. position: relative;
  22764. }
  22765. .workImg > img {
  22766. width: 100%;
  22767. height: 100%;
  22768. object-fit: contain;
  22769. cursor: pointer;
  22770. }
  22771. .worksName {
  22772. height: 40px;
  22773. line-height: 40px;
  22774. display: flex;
  22775. width: 100%;
  22776. flex-direction: row;
  22777. flex-wrap: nowrap;
  22778. justify-content: space-between;
  22779. align-items: center;
  22780. margin: 0 0 0 10px;
  22781. }
  22782. .worksName > div:nth-child(1) {
  22783. width: 110px;
  22784. white-space: nowrap;
  22785. overflow: hidden;
  22786. text-overflow: ellipsis;
  22787. }
  22788. .worksName > div:nth-child(2) {
  22789. color: #b7b4b5;
  22790. }
  22791. .noWorksS {
  22792. padding: 15px 0;
  22793. display: flex;
  22794. flex-direction: row;
  22795. flex-wrap: wrap;
  22796. align-items: center;
  22797. justify-content: flex-start;
  22798. }
  22799. .noWorksName,
  22800. .isWorksName,
  22801. .isWorksName2 {
  22802. background: #ddebf8;
  22803. color: #000;
  22804. width: 90px;
  22805. height: 25px;
  22806. text-align: center;
  22807. line-height: 25px;
  22808. border-radius: 4px;
  22809. margin: 10px 15px 10px 0;
  22810. white-space: nowrap;
  22811. overflow: hidden;
  22812. padding: 5px;
  22813. text-overflow: ellipsis;
  22814. cursor: pointer;
  22815. border: 1px solid #ddebf8;
  22816. }
  22817. .noWorksName {
  22818. background: #fff;
  22819. color: #0061ff;
  22820. border: 1px solid #0061ff;
  22821. }
  22822. .noWorksName > span{
  22823. max-width: 100%;
  22824. display: block;
  22825. overflow: hidden;
  22826. text-overflow: ellipsis;
  22827. white-space: nowrap;
  22828. }
  22829. .isWorksName2 {
  22830. width: 100px;
  22831. height: 40px;
  22832. line-height: 40px;
  22833. position: relative;
  22834. background: #dae6f9;
  22835. }
  22836. .isWorksName {
  22837. background: #e7ebf1 !important;
  22838. width: 100px;
  22839. height: 40px;
  22840. line-height: 40px;
  22841. position: relative;
  22842. color: #acb4bf;
  22843. border: 1px solid #cad1dc !important;
  22844. }
  22845. .isSelectName,
  22846. .noWorksName:hover {
  22847. background: #3383fa !important;
  22848. color: #fff !important;
  22849. border: 1px solid #3383fa !important;
  22850. }
  22851. .title {
  22852. background: #1e5cc9;
  22853. /* width: 98%; */
  22854. height: 45px;
  22855. color: #fff;
  22856. line-height: 45px;
  22857. padding-left: 20px;
  22858. box-sizing: border-box;
  22859. }
  22860. .textBox {
  22861. font-size: 20px;
  22862. width: 90%;
  22863. display: flex;
  22864. flex-direction: column;
  22865. align-items: center;
  22866. margin: 20px auto 0;
  22867. max-height: calc(100% - 75px);
  22868. overflow: auto;
  22869. }
  22870. .textContent {
  22871. font-size: 18px;
  22872. width: 95%;
  22873. max-width: 95%;
  22874. }
  22875. .answerBg {
  22876. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22877. background-size: 100% 100%;
  22878. width: 100%;
  22879. height: 100%;
  22880. color: #fff;
  22881. text-align: center;
  22882. display: flex;
  22883. flex-direction: column;
  22884. flex-wrap: nowrap;
  22885. align-items: center;
  22886. position: relative;
  22887. justify-content: center;
  22888. }
  22889. .answerBg > div:nth-child(1) {
  22890. /* font-size: 22px;
  22891. padding: 25px 0 10px; */
  22892. }
  22893. .answerContent {
  22894. width: 215px;
  22895. max-height: 60px;
  22896. word-break: break-all;
  22897. text-align: center;
  22898. /* white-space: nowrap; */
  22899. overflow: hidden;
  22900. text-overflow: ellipsis;
  22901. /* padding: 23px 0 0; */
  22902. -webkit-line-clamp: 3;
  22903. -webkit-box-orient: vertical;
  22904. display: -webkit-box;
  22905. font-size: 15px;
  22906. cursor: pointer;
  22907. }
  22908. .elist_input_box {
  22909. display: flex;
  22910. align-items: flex-start;
  22911. flex-wrap: nowrap;
  22912. padding: 10px 0 15px 30px;
  22913. flex-direction: column;
  22914. }
  22915. .elist_input {
  22916. /* width: 40%; */
  22917. width: 45%;
  22918. margin: 20px;
  22919. }
  22920. .elist_input .elist_input_box input {
  22921. font: inherit;
  22922. color: currentColor;
  22923. width: 200px;
  22924. padding: 8px 14px;
  22925. display: block;
  22926. min-width: 0;
  22927. outline: none;
  22928. border: 1px solid rgba(0, 0, 0, 0.23);
  22929. border-radius: 4px;
  22930. box-sizing: border-box;
  22931. background: #fff;
  22932. margin: 0 20px 0 0;
  22933. }
  22934. .elist_input .elist_input_box span {
  22935. height: 36px;
  22936. line-height: 36px;
  22937. color: rgb(82, 82, 82);
  22938. }
  22939. .elist_input .elist_input_box .remove {
  22940. height: 20px;
  22941. width: 20px;
  22942. background-size: 100% 100%;
  22943. background-position: unset;
  22944. margin-left: 5px;
  22945. }
  22946. .elist_input_box >>> .el-rate {
  22947. display: flex;
  22948. height: 36px;
  22949. align-items: center;
  22950. }
  22951. .elist_input_box .elist_inptu_text {
  22952. min-height: 50px;
  22953. /* width: 500px;
  22954. max-height: 150px; */
  22955. width: 100%;
  22956. line-height: 50px;
  22957. color: rgb(82, 82, 82);
  22958. overflow: auto;
  22959. text-indent: 5px;
  22960. background: #f7f6f9;
  22961. border-radius: 10px;
  22962. }
  22963. .elist_input_box .elist_inptu_text input {
  22964. width: 500px;
  22965. }
  22966. .elist_input_box >>> .el-rate__icon {
  22967. font-size: 24px;
  22968. }
  22969. .isClick {
  22970. background: #4d9def;
  22971. }
  22972. .bzBox {
  22973. display: flex;
  22974. flex-direction: row;
  22975. align-items: center;
  22976. }
  22977. .bzBox .yCss {
  22978. width: 7px;
  22979. height: 7px;
  22980. background: #fff;
  22981. margin: 0 16px 0 6px;
  22982. border-radius: 50%;
  22983. border: 5px solid #3681fc;
  22984. z-index: 99;
  22985. }
  22986. .bzBox > div:nth-child(2) {
  22987. font-size: 18px;
  22988. font-weight: bold;
  22989. color: #0e1e33;
  22990. }
  22991. .navTitile {
  22992. padding: 0 0px 0 15px;
  22993. font-size: 16px;
  22994. font-weight: bold;
  22995. color: #0e1e33;
  22996. height: 40px;
  22997. line-height: 40px;
  22998. }
  22999. .isTypeOne {
  23000. width: 240px;
  23001. height: 170px;
  23002. /* border: 1px solid #f8f8f8; */
  23003. border-radius: 10px;
  23004. box-shadow: 0 0 6px 1px #dfdada;
  23005. }
  23006. .e_add_top {
  23007. display: flex;
  23008. justify-content: space-between;
  23009. padding: 10px 20px;
  23010. border-radius: 3px;
  23011. background: #fff;
  23012. }
  23013. .e_add_title2 {
  23014. display: flex;
  23015. align-items: center;
  23016. }
  23017. .e_add_title2 span {
  23018. width: 40px;
  23019. }
  23020. .e_add_title {
  23021. display: flex;
  23022. align-items: center;
  23023. color: #b8b8b8;
  23024. font-size: 18px;
  23025. position: relative;
  23026. height: 40px;
  23027. }
  23028. .e_add_title span {
  23029. margin-right: 10px;
  23030. }
  23031. .e_add_title .el_input {
  23032. width: 300px;
  23033. }
  23034. .e_add_title >>> .el-input__inner {
  23035. width: 400px;
  23036. }
  23037. .e_add_btn {
  23038. }
  23039. .e_add_content {
  23040. display: flex;
  23041. width: 100%;
  23042. max-width: 650px;
  23043. height: 550px;
  23044. }
  23045. .e_add_list {
  23046. background: #fff;
  23047. height: 500px;
  23048. width: 210px;
  23049. position: relative;
  23050. margin: 15px 5px 0 0;
  23051. flex-shrink: 0;
  23052. display: flex;
  23053. flex-direction: column;
  23054. }
  23055. .e_add_list_title {
  23056. font-size: 20px;
  23057. width: 100%;
  23058. box-sizing: border-box;
  23059. padding: 15px 40px;
  23060. text-align: center;
  23061. border-bottom: 1px solid #eaeaea;
  23062. position: relative;
  23063. display: flex;
  23064. align-items: center;
  23065. justify-content: center;
  23066. height: 57px;
  23067. background: #f6f6f6;
  23068. }
  23069. .e_add_list_title span {
  23070. overflow: hidden;
  23071. white-space: nowrap;
  23072. text-overflow: ellipsis;
  23073. }
  23074. .e_add_list_title img {
  23075. position: absolute;
  23076. right: 15px;
  23077. width: 25px;
  23078. cursor: pointer;
  23079. top: 50%;
  23080. transform: translateY(-50%);
  23081. }
  23082. .e_add_list_body {
  23083. height: calc(100% - 187px);
  23084. overflow: auto;
  23085. }
  23086. .e_add_list_child {
  23087. width: 100%;
  23088. display: flex;
  23089. align-items: center;
  23090. justify-content: center;
  23091. position: relative;
  23092. box-sizing: border-box;
  23093. padding: 15px 40px;
  23094. text-align: center;
  23095. }
  23096. .e_add_list_child span {
  23097. overflow: hidden;
  23098. white-space: nowrap;
  23099. text-overflow: ellipsis;
  23100. cursor: pointer;
  23101. }
  23102. .e_add_list_child img {
  23103. position: absolute;
  23104. right: 10px;
  23105. width: 21px;
  23106. cursor: pointer;
  23107. top: 50%;
  23108. transform: translateY(-50%);
  23109. }
  23110. .e_add_list_child + .e_add_list_child {
  23111. border-top: 1px solid #eaeaea;
  23112. }
  23113. .e_add_list_child .active {
  23114. color: #409eff;
  23115. }
  23116. .e_add_list_btn {
  23117. position: absolute;
  23118. bottom: 0;
  23119. height: 50px;
  23120. background: rgb(120, 120, 254);
  23121. width: 100%;
  23122. color: #fff;
  23123. font-size: 16px;
  23124. text-align: center;
  23125. line-height: 50px;
  23126. cursor: pointer;
  23127. }
  23128. .e_add_list_detail {
  23129. position: absolute;
  23130. bottom: 0;
  23131. height: 130px;
  23132. background: rgb(120, 120, 254);
  23133. width: 100%;
  23134. color: #fff;
  23135. font-size: 16px;
  23136. display: flex;
  23137. align-items: center;
  23138. justify-content: center;
  23139. }
  23140. .e_add_list_detail textarea {
  23141. height: 90%;
  23142. width: 95%;
  23143. border: none;
  23144. resize: none;
  23145. outline: none;
  23146. padding: 5px;
  23147. box-sizing: border-box;
  23148. }
  23149. .e_add_list_pbox {
  23150. width: 100%;
  23151. max-width: 650px;
  23152. /* height: 600px; */
  23153. }
  23154. .e_add_list_pbox_title {
  23155. height: 50px;
  23156. background: #fff;
  23157. display: flex;
  23158. align-items: center;
  23159. width: 100%;
  23160. box-sizing: border-box;
  23161. padding: 0 20px;
  23162. }
  23163. .type_title {
  23164. font-size: 18px;
  23165. font-weight: 700;
  23166. }
  23167. .type_content {
  23168. font-size: 16px;
  23169. /* margin-left: 30px; */
  23170. }
  23171. .type_content span + span {
  23172. margin-left: 20px;
  23173. }
  23174. .type_content span {
  23175. cursor: pointer;
  23176. padding-bottom: 5px;
  23177. box-sizing: border-box;
  23178. }
  23179. .type_content .active {
  23180. color: #409eff;
  23181. border-bottom: 2px solid #409eff;
  23182. }
  23183. .e_add_list_pbox_content {
  23184. height: calc(100% - 50px);
  23185. display: flex;
  23186. align-items: center;
  23187. width: 100%;
  23188. background: #fff;
  23189. }
  23190. .evaCss {
  23191. display: flex;
  23192. flex-direction: row;
  23193. flex-wrap: nowrap;
  23194. align-items: flex-start;
  23195. padding: 0 0 20px;
  23196. }
  23197. .cru_line {
  23198. position: absolute;
  23199. bottom: 0px;
  23200. transition: all 0.5s;
  23201. left: 0px;
  23202. width: 125px;
  23203. margin-left: -25px;
  23204. }
  23205. .isNoMessage {
  23206. width: 20%;
  23207. margin: 25% auto 0;
  23208. }
  23209. .isNoMessage > img {
  23210. width: 100%;
  23211. height: 100%;
  23212. }
  23213. .fullStyle >>> .el-dialog__body {
  23214. height: 100% !important;
  23215. }
  23216. .fullStyle >>> .el-dialog,
  23217. .fullStyle {
  23218. width: 100% !important;
  23219. max-width: 100% !important;
  23220. height: 100% !important;
  23221. margin: 0 !important;
  23222. }
  23223. .full_diy >>> .el-dialog {
  23224. margin: 0 !important;
  23225. height: 100%;
  23226. padding: 4px;
  23227. }
  23228. .full_diy >>> .el-dialog__body {
  23229. height: calc(100% - 100px);
  23230. }
  23231. .full_diy2 >>> .el-dialog__body {
  23232. height: calc(100% - 50px);
  23233. padding: 0;
  23234. }
  23235. .switchCss {
  23236. /* width: 100%; */
  23237. display: flex;
  23238. flex-direction: row;
  23239. flex-wrap: nowrap;
  23240. align-items: center;
  23241. /* justify-content: center; */
  23242. }
  23243. .isClickNav {
  23244. /* color: #499eef; */
  23245. color: #000;
  23246. }
  23247. .commentImg {
  23248. width: 25px;
  23249. height: 25px;
  23250. cursor: pointer;
  23251. }
  23252. .commentImg > img {
  23253. width: 100%;
  23254. height: 100%;
  23255. }
  23256. .comment {
  23257. background: #f9f9f9;
  23258. border-radius: 0 0 4px 4px;
  23259. display: flex;
  23260. flex-direction: row;
  23261. flex-wrap: nowrap;
  23262. align-items: center;
  23263. justify-content: flex-end;
  23264. height: 35px;
  23265. }
  23266. .commentList {
  23267. display: flex;
  23268. flex-direction: row;
  23269. flex-wrap: nowrap;
  23270. align-items: center;
  23271. justify-content: center;
  23272. align-content: center;
  23273. /* margin-left: 15px; */
  23274. /* margin-left: 8px; */
  23275. }
  23276. .scoreImg {
  23277. width: 17px;
  23278. height: 17px;
  23279. }
  23280. .studentDetail {
  23281. display: flex;
  23282. flex-direction: row;
  23283. flex-wrap: nowrap;
  23284. /* align-items: center; */
  23285. align-items: flex-start;
  23286. }
  23287. .tx {
  23288. width: 50px;
  23289. }
  23290. .tx > img {
  23291. width: 100%;
  23292. height: 100%;
  23293. }
  23294. .nameAndTime {
  23295. display: flex;
  23296. flex-direction: column;
  23297. flex-wrap: nowrap;
  23298. align-items: flex-start;
  23299. margin-left: 10px;
  23300. }
  23301. .worksAnswer {
  23302. color: #4078dd;
  23303. margin: 10px 0;
  23304. font-size: 16px;
  23305. position: relative;
  23306. }
  23307. .worksAnswer > img {
  23308. width: 500px;
  23309. height: 300px;
  23310. object-fit: contain;
  23311. margin: 0 auto;
  23312. display: block;
  23313. }
  23314. .commentTop {
  23315. border-bottom: 1px solid #eaeaea;
  23316. padding-bottom: 10px;
  23317. }
  23318. .commentBox {
  23319. padding-top: 15px;
  23320. }
  23321. .pl {
  23322. font-size: 18px;
  23323. }
  23324. .plPerson {
  23325. width: 100%;
  23326. }
  23327. .plName {
  23328. display: flex;
  23329. flex-direction: row;
  23330. flex-wrap: nowrap;
  23331. align-items: baseline;
  23332. color: #78787a;
  23333. width: 100%;
  23334. }
  23335. .deleteComment {
  23336. cursor: pointer;
  23337. margin-left: auto;
  23338. color: #237ade;
  23339. }
  23340. .plContent {
  23341. margin-top: 5px;
  23342. }
  23343. .evalCss {
  23344. background: #fff;
  23345. font-size: 18px;
  23346. }
  23347. .nav {
  23348. color: #9d9d9d;
  23349. padding: 5px 0 15px 20px;
  23350. }
  23351. .middleBox {
  23352. padding: 5px 0 15px 20px;
  23353. }
  23354. .pfBox {
  23355. padding-bottom: 30px;
  23356. }
  23357. .nameAndrate {
  23358. display: flex;
  23359. flex-direction: row;
  23360. flex-wrap: nowrap;
  23361. align-items: center;
  23362. padding-bottom: 10px;
  23363. height: 30px;
  23364. line-height: 30px;
  23365. }
  23366. .nameAndrate > div {
  23367. margin-left: 10px;
  23368. color: #000;
  23369. height: 30px;
  23370. }
  23371. .nameAndrate >>> .el-rate__icon {
  23372. font-size: 28px !important;
  23373. }
  23374. .pfBox > div:nth-child(2) {
  23375. background: #f7f6f9;
  23376. width: 400px;
  23377. min-height: 45px;
  23378. border-radius: 10px;
  23379. font-size: 16px;
  23380. display: flex;
  23381. flex-wrap: wrap;
  23382. align-items: center;
  23383. padding: 10px 20px;
  23384. box-sizing: border-box;
  23385. color: #000;
  23386. }
  23387. .bz {
  23388. display: flex;
  23389. flex-direction: row;
  23390. flex-wrap: nowrap;
  23391. align-items: flex-start;
  23392. }
  23393. .bz > div {
  23394. padding: 0 10px;
  23395. }
  23396. .select_box2_title {
  23397. background: #fff;
  23398. border-radius: 5px;
  23399. padding: 15px 10px;
  23400. box-sizing: border-box;
  23401. margin-bottom: 10px;
  23402. display: flex;
  23403. flex-direction: row;
  23404. flex-wrap: nowrap;
  23405. align-items: center;
  23406. }
  23407. .select_box2_title > div:nth-child(2) {
  23408. margin-left: 10px;
  23409. color: #c4c4c4;
  23410. }
  23411. .select_box2_box {
  23412. display: flex;
  23413. height: 500px;
  23414. }
  23415. .select_box2_img {
  23416. width: calc(100% - 310px);
  23417. height: 100%;
  23418. overflow: auto;
  23419. background: #fff;
  23420. border-radius: 5px;
  23421. }
  23422. .select_box2_img img {
  23423. width: 100%;
  23424. }
  23425. .select_box2_answer {
  23426. background: #fff;
  23427. margin-left: 10px;
  23428. border-radius: 5px;
  23429. width: 300px;
  23430. overflow: auto;
  23431. height: 90%;
  23432. display: flex;
  23433. flex-direction: column;
  23434. align-items: flex-start;
  23435. padding-top: 10px;
  23436. box-sizing: border-box;
  23437. position: relative;
  23438. }
  23439. .select_answer_title {
  23440. padding: 0 0 15px 20px;
  23441. color: #c4c4c4;
  23442. }
  23443. .select_box2_answer_box {
  23444. margin: 0 0 10px 20px;
  23445. width: 85%;
  23446. display: flex;
  23447. flex-direction: row;
  23448. flex-wrap: nowrap;
  23449. align-items: center;
  23450. }
  23451. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23452. color: #000;
  23453. }
  23454. .upAnswerCss {
  23455. position: absolute;
  23456. bottom: 15px;
  23457. right: 15px;
  23458. }
  23459. .upAnswerCss >>> .el-button {
  23460. width: 95px;
  23461. height: 35px;
  23462. line-height: 35px;
  23463. padding: 0;
  23464. }
  23465. .rightWidthCss {
  23466. width: 60%;
  23467. display: flex;
  23468. flex-direction: row;
  23469. align-items: flex-start;
  23470. }
  23471. .rightAnswer {
  23472. display: flex;
  23473. flex-direction: row;
  23474. flex-wrap: nowrap;
  23475. align-items: center;
  23476. color: red;
  23477. margin-bottom: 31px;
  23478. }
  23479. .rightAnswerCss {
  23480. display: flex;
  23481. flex-direction: column;
  23482. flex-wrap: nowrap;
  23483. padding-top: 60px;
  23484. }
  23485. .blueCss {
  23486. color: #767de1;
  23487. margin-left: 10px;
  23488. }
  23489. .redCss {
  23490. color: red;
  23491. }
  23492. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23493. color: rgb(0 123 255) !important;
  23494. }
  23495. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23496. color: rgb(0 123 255) !important;
  23497. }
  23498. .zuoyeYulan {
  23499. padding-top: 0;
  23500. font-size: 18px;
  23501. display: flex;
  23502. align-items: flex-end;
  23503. }
  23504. .buttonA {
  23505. margin-left: 10px;
  23506. padding: 0;
  23507. }
  23508. .displayBox {
  23509. margin-bottom: 10px;
  23510. display: block;
  23511. border-bottom: 3px solid #eee;
  23512. display: flex;
  23513. align-items: center;
  23514. }
  23515. .easy_comment {
  23516. width: calc(100% - 90px);
  23517. margin-left: 10px;
  23518. display: flex;
  23519. flex-wrap: wrap;
  23520. }
  23521. .easy_comment > div {
  23522. border: 1px solid #4a4a4a;
  23523. color: #666;
  23524. border-radius: 15px;
  23525. padding: 5px 10px;
  23526. font-size: 16px;
  23527. margin-bottom: 10px;
  23528. margin-right: 5px;
  23529. cursor: pointer;
  23530. }
  23531. .easy_comment div:hover {
  23532. border: 1px solid #f7ba2a;
  23533. color: #c69217;
  23534. }
  23535. .xuan_right_box {
  23536. padding: 10px 0;
  23537. background: #f0f4fa;
  23538. margin: 0 15px 0 25px;
  23539. border-bottom-left-radius: 5px;
  23540. border-bottom-right-radius: 5px;
  23541. width: 91.5%;
  23542. }
  23543. .tool_right_box {
  23544. display: flex;
  23545. align-items: center;
  23546. }
  23547. .tool_right_box + .tool_right_box {
  23548. margin-top: 10px;
  23549. }
  23550. .right_box_xuan {
  23551. border-radius: 5px;
  23552. padding: 5px;
  23553. margin-left: 10px;
  23554. min-width: 85px;
  23555. background: #fff;
  23556. color: #0061ff;
  23557. border: 1px solid #0061ff;
  23558. font-size: 14px;
  23559. }
  23560. .pButton:hover {
  23561. opacity: 1 !important;
  23562. }
  23563. .pButton {
  23564. position: fixed;
  23565. text-align: center;
  23566. cursor: pointer;
  23567. z-index: 999;
  23568. right: 20px;
  23569. top: 110px;
  23570. width: 50px;
  23571. height: 50px;
  23572. display: flex;
  23573. align-items: center;
  23574. justify-content: center;
  23575. border-radius: 5px;
  23576. }
  23577. .pzClass {
  23578. width: calc(100% - 340px);
  23579. }
  23580. .newDialogCss {
  23581. /* position: fixed;
  23582. right: 5%;
  23583. top: 50%;
  23584. width: 340px;
  23585. transform: translateY(-50%);
  23586. height: 60%;
  23587. box-shadow: 0px 0 8px 0px #555555;
  23588. border-radius: 15px;
  23589. z-index: 999; */
  23590. position: fixed;
  23591. right: 20px;
  23592. top: 101px;
  23593. width: 330px;
  23594. height: calc(100% - 80px);
  23595. z-index: 999;
  23596. background: #fff;
  23597. border-top-right-radius: 0px;
  23598. border-bottom-right-radius: 0px;
  23599. overflow: hidden;
  23600. }
  23601. .newDialogCss>.scoreList{
  23602. width:100%;
  23603. height:100%;
  23604. box-sizing:border-box;
  23605. padding:10px 15px;
  23606. overflow:auto;
  23607. padding-bottom:80px;
  23608. }
  23609. .pzTop {
  23610. color: #fff;
  23611. background: #000;
  23612. display: flex;
  23613. flex-direction: row;
  23614. flex-wrap: nowrap;
  23615. align-items: center;
  23616. justify-content: space-between;
  23617. height: 40px;
  23618. border-radius: 15px 15px 0 0;
  23619. user-select: none;
  23620. }
  23621. .pzTop2 .checkbox {
  23622. display: flex;
  23623. align-items: center;
  23624. padding: 5px 10px;
  23625. flex: 0 0 auto;
  23626. font-weight: bold;
  23627. border-bottom: 1px solid #eee;
  23628. justify-content: space-between;
  23629. }
  23630. .checkbox>.cb-tabList{
  23631. display:flex;
  23632. align-items:center;
  23633. }
  23634. .cb-tabList>div{
  23635. margin-right:20px;
  23636. font-weight:400;
  23637. cursor:pointer;
  23638. }
  23639. .cb-tabList>.cb-tabItem{
  23640. color:#1684FC;
  23641. position:relative;
  23642. }
  23643. .cb-tabItem::after{
  23644. content:"";
  23645. width:100%;
  23646. height:2px;
  23647. background:#1684FC;
  23648. position:absolute;
  23649. bottom:-5px;
  23650. left:0
  23651. }
  23652. .pzTop2 .check {
  23653. text-align: center;
  23654. cursor: pointer;
  23655. box-sizing: border-box;
  23656. display: flex;
  23657. }
  23658. .pzTop2 img {
  23659. width: 25px;
  23660. cursor: pointer;
  23661. }
  23662. .pzTop > div:nth-child(1) {
  23663. padding-left: 10px;
  23664. }
  23665. .pzTop > div:nth-child(2) {
  23666. width: 15px;
  23667. height: 15px;
  23668. padding-right: 10px;
  23669. cursor: pointer;
  23670. }
  23671. .pzTop > div:nth-child(2) > img {
  23672. width: 100%;
  23673. height: 100%;
  23674. }
  23675. .pzBox,
  23676. .noPzBox {
  23677. height: calc(100% - 60px);
  23678. /* background: #ededed; */
  23679. background: #fff;
  23680. /* border-radius: 0 0 15px 15px; */
  23681. }
  23682. .noPzBox {
  23683. display: flex;
  23684. flex-direction: column;
  23685. flex-wrap: nowrap;
  23686. justify-content: center;
  23687. align-items: center;
  23688. }
  23689. .pzList {
  23690. background: #f7f7f7;
  23691. width: 90%;
  23692. margin: 0 auto 15px;
  23693. border-radius: 5px;
  23694. }
  23695. .pzNavTop {
  23696. display: flex;
  23697. flex-direction: row;
  23698. flex-wrap: nowrap;
  23699. padding: 10px 10px 0 10px;
  23700. align-items: center;
  23701. }
  23702. .pzDelete {
  23703. cursor: pointer;
  23704. margin-left: auto;
  23705. font-size: 14px;
  23706. color: #afafaf;
  23707. }
  23708. .pzNavTop > div:nth-child(1) {
  23709. background: #3760af;
  23710. width: 35px;
  23711. height: 35px;
  23712. color: #fff;
  23713. text-align: center;
  23714. line-height: 35px;
  23715. border-radius: 50%;
  23716. font-size: 14px;
  23717. }
  23718. .pzNavTop > div:nth-child(2) {
  23719. font-size: 18px;
  23720. color: #959595;
  23721. margin-left: 5px;
  23722. }
  23723. .pzContent {
  23724. padding: 10px;
  23725. word-break: break-word;
  23726. }
  23727. .pzContent audio {
  23728. width: 100%;
  23729. }
  23730. .pzContent audio::-webkit-media-controls-panel {
  23731. background: #fff;
  23732. }
  23733. .pzContent >>> img {
  23734. max-width: 100%;
  23735. }
  23736. .pzListBox {
  23737. padding-top: 15px;
  23738. height: calc(100% - 110px);
  23739. overflow: auto;
  23740. }
  23741. .addPzButton {
  23742. position: relative;
  23743. margin-top: 3px;
  23744. width: 100%;
  23745. }
  23746. .addPzButton .img1 {
  23747. position: absolute;
  23748. top: 50%;
  23749. right: 25px;
  23750. transform: translateY(-50%);
  23751. height: 100%;
  23752. display: flex;
  23753. align-items: center;
  23754. }
  23755. .addPzButton .img1 div {
  23756. display: flex;
  23757. }
  23758. .addPzButton .img1 div img {
  23759. width: 28px;
  23760. margin-left: 10px;
  23761. cursor: pointer;
  23762. }
  23763. .addPzButton .img1 div span {
  23764. font-size: 14px;
  23765. margin: 4px 0 0 3px;
  23766. color: #afafaf;
  23767. }
  23768. .addPz {
  23769. background: #4b79ce;
  23770. width: 100px;
  23771. color: #fff;
  23772. font-size: 12px;
  23773. height: 30px;
  23774. margin: 0 auto;
  23775. text-align: center;
  23776. line-height: 30px;
  23777. border-radius: 10px;
  23778. cursor: pointer;
  23779. }
  23780. .addDialogCss {
  23781. position: fixed;
  23782. width: 600px;
  23783. height: 70%;
  23784. min-height: 450px;
  23785. box-shadow: 0px 0 8px 0px #555555;
  23786. border-radius: 15px;
  23787. z-index: 999;
  23788. left: 50%;
  23789. top: 50%;
  23790. margin: -18% 0 0 -300px;
  23791. }
  23792. .teacherPz {
  23793. display: flex;
  23794. flex-direction: row;
  23795. align-items: center;
  23796. flex-wrap: nowrap;
  23797. }
  23798. .teacherPzImg {
  23799. width: 30px;
  23800. height: 30px;
  23801. }
  23802. .teacherPzImg > img {
  23803. width: 100%;
  23804. height: 100%;
  23805. }
  23806. .addPzBox {
  23807. height: calc(100% - 40px);
  23808. background: #ededed;
  23809. border-bottom-left-radius: 15px;
  23810. border-bottom-right-radius: 15px;
  23811. }
  23812. .pzAudioClass {
  23813. margin: 15px 14px;
  23814. background: #fff;
  23815. height: 100%;
  23816. display: flex;
  23817. justify-content: center;
  23818. align-items: center;
  23819. }
  23820. .pzConText {
  23821. width: 95%;
  23822. height: 100%;
  23823. margin: 10px auto 0;
  23824. border: none;
  23825. background: #fff;
  23826. border-radius: 0px;
  23827. }
  23828. .pzConText >>> .text {
  23829. height: calc(100% - 82px);
  23830. }
  23831. .addTextCss {
  23832. background: #4b79ce;
  23833. width: 80px;
  23834. height: 30px;
  23835. text-align: center;
  23836. color: #fff;
  23837. line-height: 30px;
  23838. border-radius: 10px;
  23839. margin: 10px auto 0;
  23840. cursor: pointer;
  23841. }
  23842. .pzConText:focus-visible {
  23843. border: none !important;
  23844. }
  23845. .maxWidth {
  23846. width: 1000px;
  23847. }
  23848. .noPz {
  23849. width: 150px;
  23850. margin: 0 auto 20%;
  23851. }
  23852. .noPz > img {
  23853. width: 100%;
  23854. height: 100%;
  23855. }
  23856. .timeAndReply {
  23857. display: flex;
  23858. flex-direction: row;
  23859. flex-wrap: nowrap;
  23860. justify-content: space-between;
  23861. align-items: center;
  23862. font-size: 14px;
  23863. box-sizing: border-box;
  23864. padding: 0 10px 10px 0px;
  23865. }
  23866. .timeAndReply .time {
  23867. color: #bfbfbf;
  23868. padding: 0 0 0 10px;
  23869. box-sizing: border-box;
  23870. }
  23871. .timeAndReply > div:last-child {
  23872. cursor: pointer;
  23873. color: #777;
  23874. }
  23875. /* table 样式 */
  23876. .cont >>> table {
  23877. border-top: 1px solid #ccc;
  23878. border-left: 1px solid #ccc;
  23879. }
  23880. .cont >>> table td,
  23881. .cont >>> table th {
  23882. border-bottom: 1px solid #ccc;
  23883. border-right: 1px solid #ccc;
  23884. /* padding: 20px 5px; */
  23885. padding: 5px 10px;
  23886. max-width: 0px;
  23887. height: 30px;
  23888. vertical-align: baseline;
  23889. box-sizing: border-box;
  23890. }
  23891. .cont >>> table th {
  23892. border-bottom: 2px solid #ccc;
  23893. text-align: center;
  23894. }
  23895. /* blockquote 样式 */
  23896. .cont >>> blockquote {
  23897. display: block;
  23898. border-left: 8px solid #d0e5f2;
  23899. padding: 5px 10px;
  23900. margin: 10px 0;
  23901. line-height: 1.4;
  23902. font-size: 100%;
  23903. background-color: #f1f1f1;
  23904. }
  23905. /* code 样式 */
  23906. .cont >>> code {
  23907. display: inline-block;
  23908. /* *display: inline; */
  23909. zoom: 1;
  23910. background-color: #f1f1f1;
  23911. border-radius: 3px;
  23912. padding: 3px 5px;
  23913. margin: 0 3px;
  23914. }
  23915. .cont >>> pre code {
  23916. display: block;
  23917. }
  23918. /* ul ol 样式 */
  23919. .cont >>> ul,
  23920. ol {
  23921. margin: 10px 0 10px 20px;
  23922. }
  23923. .addPzCheck {
  23924. display: flex;
  23925. flex-direction: row;
  23926. flex-wrap: nowrap;
  23927. padding: 10px 15px 0;
  23928. }
  23929. .addPzCheck span {
  23930. cursor: pointer;
  23931. padding-bottom: 5px;
  23932. font-weight: bold;
  23933. }
  23934. .addPzCheck span + span {
  23935. margin-left: 10px;
  23936. }
  23937. .addPzCheck .isChooseActive {
  23938. color: #3e88f4;
  23939. border-bottom: 2px solid #2f80f3;
  23940. }
  23941. /* code 样式 */
  23942. .cont {
  23943. /* -webkit-user-modify: read-write; */
  23944. overflow-wrap: break-word;
  23945. -webkit-line-break: after-white-space;
  23946. word-break: break-word;
  23947. white-space: pre-line;
  23948. }
  23949. .scoreBox,
  23950. .scoreDetailBox {
  23951. display: flex;
  23952. align-items: center;
  23953. justify-content: flex-start;
  23954. margin-top: 20px;
  23955. font-size: 18px;
  23956. width: 100%;
  23957. }
  23958. .scoreBox .t,
  23959. .scoreDetailBox .t {
  23960. margin-right: 10px;
  23961. width: 100px;
  23962. text-align: right;
  23963. }
  23964. .scoreDetailBox {
  23965. align-items: flex-start;
  23966. }
  23967. .scoreDetailBox >>> .el-textarea {
  23968. width: calc(100% - 200px);
  23969. }
  23970. .scoreBox >>> .el-input {
  23971. width: 130px;
  23972. font-size: 38px;
  23973. }
  23974. .scoreBox >>> .el-input__inner {
  23975. height: 60px;
  23976. }
  23977. .answerScore {
  23978. position: absolute;
  23979. top: 10px;
  23980. right: 10px;
  23981. background: #0000008f;
  23982. border-radius: 5px;
  23983. padding: 3px 5px;
  23984. font-size: 14px;
  23985. color: #fff;
  23986. cursor: pointer;
  23987. }
  23988. .open_box .switch_box {
  23989. width: 100%;
  23990. margin: 0 auto;
  23991. display: flex;
  23992. justify-content: space-between;
  23993. }
  23994. .open_box .switch_box + .switch_box {
  23995. margin-top: 10px;
  23996. }
  23997. .deleteImg,.deleteImg1 {
  23998. width: 25px !important;
  23999. height: 25px !important;
  24000. cursor: pointer;
  24001. position: absolute;
  24002. top: 10px;
  24003. right: 10px;
  24004. }
  24005. .deleteImg2 {
  24006. width: 23px !important;
  24007. height: 23px !important;
  24008. top: 5px;
  24009. right: 5px;
  24010. }
  24011. .deleteImg1{
  24012. width: 23px !important;
  24013. height: 23px !important;
  24014. top: 5px !important;
  24015. right: 30px !important;
  24016. }
  24017. .rightW {
  24018. right: 40px;
  24019. }
  24020. .drawPBox {
  24021. display: flex;
  24022. flex-direction: column;
  24023. position: relative;
  24024. }
  24025. .drawPBox span {
  24026. font-size: 18px;
  24027. color: #606266;
  24028. padding-bottom: 10px;
  24029. margin: 10px 0;
  24030. border-bottom: 1px solid #eaeaea;
  24031. }
  24032. .drawPBox img {
  24033. width: 500px;
  24034. height: 300px;
  24035. object-fit: contain;
  24036. cursor: pointer;
  24037. margin: 0 auto;
  24038. }
  24039. .sentenBox {
  24040. background: #fff;
  24041. height: 450px;
  24042. overflow: auto;
  24043. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24044. background-position: 102%;
  24045. background-repeat: no-repeat;
  24046. background-size: 60%;
  24047. }
  24048. .addSen {
  24049. background: #409efe;
  24050. width: 90px;
  24051. color: #fff;
  24052. height: 35px;
  24053. text-align: center;
  24054. line-height: 35px;
  24055. border-radius: 5px;
  24056. float: right;
  24057. margin: 10px 20px 0 0;
  24058. cursor: pointer;
  24059. }
  24060. .sentenTop {
  24061. display: flex;
  24062. flex-direction: row;
  24063. flex-wrap: nowrap;
  24064. align-items: center;
  24065. padding: 55px 0 0 20px;
  24066. box-sizing: border-box;
  24067. }
  24068. .sentenTop > div:nth-child(2) {
  24069. width: 300px;
  24070. margin: 0 15px;
  24071. }
  24072. .sentenTop > div:nth-child(3) {
  24073. background: #409efe;
  24074. color: #fff;
  24075. width: 65px;
  24076. height: 35px;
  24077. text-align: center;
  24078. line-height: 35px;
  24079. border-radius: 5px;
  24080. cursor: pointer;
  24081. }
  24082. .cardList,
  24083. .cardList1 {
  24084. padding: 10px 0 10px 0;
  24085. display: flex;
  24086. flex-direction: row;
  24087. flex-wrap: wrap;
  24088. align-items: center;
  24089. box-sizing: border-box;
  24090. border-bottom: 1px solid #f4f4f4;
  24091. width: 98%;
  24092. margin: 0 auto;
  24093. min-width: 60%;
  24094. max-width: 85%;
  24095. }
  24096. .cardList1 {
  24097. padding: 10px 0 10px 10px !important;
  24098. margin: 0 !important;
  24099. }
  24100. .cardBox {
  24101. display: flex;
  24102. flex-direction: row;
  24103. flex-wrap: wrap;
  24104. align-items: center;
  24105. align-content: center;
  24106. }
  24107. .cardBox > div {
  24108. margin-bottom: 10px;
  24109. }
  24110. .isCard,
  24111. .isChooseCard,
  24112. .noCard,
  24113. .isCard1 {
  24114. min-width: 130px;
  24115. width: auto;
  24116. height: 60px;
  24117. text-align: center;
  24118. line-height: 60px;
  24119. font-size: 20px;
  24120. cursor: pointer;
  24121. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24122. background-size: cover;
  24123. transition: all 2s;
  24124. margin-right: 20px;
  24125. background-size: 100% 100%;
  24126. padding: 0 20px;
  24127. box-sizing: border-box;
  24128. }
  24129. .isCard > div,
  24130. .noCard > div,
  24131. .isCard1 > div {
  24132. white-space: nowrap;
  24133. overflow: hidden;
  24134. text-overflow: ellipsis;
  24135. width: 100%;
  24136. margin: 0 auto;
  24137. }
  24138. .noCard {
  24139. background-image: none;
  24140. }
  24141. .isCard1 {
  24142. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24143. }
  24144. .isChooseCard {
  24145. background-image: none;
  24146. border: 1px dashed #b9b9b9;
  24147. border-radius: 10px;
  24148. }
  24149. .card {
  24150. width: 130px;
  24151. height: 60px;
  24152. }
  24153. .card > img {
  24154. width: 100%;
  24155. height: 100%;
  24156. }
  24157. .rightCardBox {
  24158. margin: 10px 0 0 10px;
  24159. }
  24160. .rightCardBox > div:nth-child(1) {
  24161. margin-bottom: 10px;
  24162. }
  24163. .cardCss {
  24164. display: flex;
  24165. flex-direction: column;
  24166. flex-wrap: nowrap;
  24167. align-items: center;
  24168. border-bottom: 3px solid #b4c3d3;
  24169. padding: 0 0 5px 0;
  24170. margin-right: 10px;
  24171. }
  24172. .cardCss > div:nth-child(2) {
  24173. background: #5b7b9d;
  24174. color: #fff;
  24175. width: 20px;
  24176. height: 20px;
  24177. border-radius: 50%;
  24178. text-align: center;
  24179. line-height: 20px;
  24180. }
  24181. .isWrong {
  24182. display: flex;
  24183. flex-direction: row;
  24184. flex-wrap: nowrap;
  24185. align-content: center;
  24186. align-items: center;
  24187. }
  24188. .answerRight {
  24189. width: 25%;
  24190. }
  24191. .isTj {
  24192. display: flex;
  24193. flex-direction: row;
  24194. flex-wrap: nowrap;
  24195. align-items: center;
  24196. }
  24197. .isTj > div:nth-child(2) {
  24198. color: #727070;
  24199. margin-left: 10px;
  24200. }
  24201. .isTjImg {
  24202. width: 30px;
  24203. height: 30px;
  24204. }
  24205. .isTjImg > img {
  24206. width: 100%;
  24207. height: 100%;
  24208. }
  24209. .cardAnswerBox {
  24210. font-size: 18px;
  24211. width: 97%;
  24212. border: 5px;
  24213. padding: 0;
  24214. border-radius: 5px;
  24215. margin: 10px auto;
  24216. word-break: break-word;
  24217. }
  24218. .w_name {
  24219. margin-bottom: 10px;
  24220. }
  24221. .w_name span {
  24222. font-size: 16px;
  24223. }
  24224. .w_teachert {
  24225. width: 50px !important;
  24226. position: absolute;
  24227. height: auto !important;
  24228. z-index: 10;
  24229. right: 25px;
  24230. top: -25px;
  24231. }
  24232. .group_workBox {
  24233. }
  24234. .group_workBox + .group_workBox {
  24235. margin-top: 20px;
  24236. }
  24237. .group_box {
  24238. padding-bottom: 20px;
  24239. border-bottom: 2px solid #f0f0f0;
  24240. margin-top: 10px;
  24241. }
  24242. .group_title {
  24243. display: flex;
  24244. align-items: center;
  24245. justify-content: space-between;
  24246. width: 95%;
  24247. }
  24248. .group_name {
  24249. background-image: url(../../assets/icon/groupN.png);
  24250. width: 220px;
  24251. background-size: 100% 100%;
  24252. height: 67px;
  24253. padding: 0 20px 0 43px;
  24254. box-sizing: border-box;
  24255. line-height: 63px;
  24256. color: #fff;
  24257. overflow: hidden;
  24258. white-space: nowrap;
  24259. text-overflow: ellipsis;
  24260. }
  24261. .group_work {
  24262. width: 100%;
  24263. padding: 0 10px;
  24264. box-sizing: border-box;
  24265. display: flex;
  24266. flex-wrap: wrap;
  24267. }
  24268. .g_d_box {
  24269. display: flex;
  24270. flex-flow: wrap;
  24271. justify-content: space-around;
  24272. }
  24273. .g_d_box .isChair {
  24274. background-image: url(../../assets/avatar.png) !important;
  24275. }
  24276. .g_d_group {
  24277. width: 500px;
  24278. margin-bottom: 80px;
  24279. }
  24280. .g_d_group_chair {
  24281. display: flex;
  24282. align-items: center;
  24283. justify-content: center;
  24284. }
  24285. .g_d_group_chair > div + div {
  24286. margin-left: 30px;
  24287. }
  24288. .g_d_group_chair > div,
  24289. .g_d_group_chair2 > div {
  24290. display: flex;
  24291. flex-direction: column;
  24292. align-items: center;
  24293. }
  24294. .g_d_group_chair > div > span:nth-child(1),
  24295. .g_d_group_chair2 > div > span:nth-child(1) {
  24296. background-image: url(../../assets/icon/chair.png);
  24297. width: 50px;
  24298. height: 50px;
  24299. display: block;
  24300. background-size: 100% 100%;
  24301. }
  24302. .g_d_group_tableBox {
  24303. display: flex;
  24304. align-items: center;
  24305. justify-content: center;
  24306. }
  24307. .g_d_group_chair2 {
  24308. display: flex;
  24309. flex-direction: column;
  24310. align-items: center;
  24311. justify-content: center;
  24312. }
  24313. .g_d_group_chair2 > div + div {
  24314. margin-top: 10px;
  24315. }
  24316. .g_d_group_table {
  24317. background-image: url(../../assets/icon/groupBg.png);
  24318. width: 354px;
  24319. height: 196px;
  24320. background-size: 100% 100%;
  24321. display: flex;
  24322. align-items: center;
  24323. justify-content: center;
  24324. flex-direction: column;
  24325. color: #fff;
  24326. }
  24327. .g_d_group_table > div:nth-child(1) {
  24328. font-size: 24px;
  24329. margin-bottom: 5px;
  24330. }
  24331. .g_d_group_table > div:nth-child(2) div {
  24332. cursor: pointer;
  24333. background: #2e77bf;
  24334. padding: 4px 10px;
  24335. border-radius: 5px;
  24336. }
  24337. .groupBox {
  24338. }
  24339. .groupContent + .groupContent {
  24340. margin-top: 30px;
  24341. }
  24342. .groupTitle {
  24343. font-size: 24px;
  24344. color: rgb(80, 80, 80);
  24345. margin-bottom: 20px;
  24346. }
  24347. .groupName {
  24348. display: flex;
  24349. align-items: center;
  24350. }
  24351. .groupn {
  24352. font-size: 15px;
  24353. margin-right: 10px;
  24354. }
  24355. .groupName + .groupName {
  24356. margin-top: 15px;
  24357. }
  24358. .groupBtn {
  24359. margin-left: 10px;
  24360. }
  24361. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24362. text-align: left;
  24363. }
  24364. .g_d_btnBox {
  24365. display: flex;
  24366. justify-content: flex-end;
  24367. align-items: center;
  24368. margin-bottom: 20px;
  24369. }
  24370. .updateChair {
  24371. position: relative;
  24372. }
  24373. .updateChairBtn {
  24374. position: absolute;
  24375. width: 50px;
  24376. height: 50px;
  24377. overflow: hidden;
  24378. /* display: flex; */
  24379. align-items: center;
  24380. justify-content: center;
  24381. background: #00000087;
  24382. color: #fff;
  24383. border-radius: 50px;
  24384. display: none;
  24385. cursor: pointer;
  24386. }
  24387. .updateChair:hover .updateChairBtn {
  24388. display: flex;
  24389. }
  24390. .group_staic_box {
  24391. display: flex;
  24392. padding: 30px 40px 10px;
  24393. flex-wrap: wrap;
  24394. }
  24395. .group_staic {
  24396. /* width: 50%; */
  24397. margin-bottom: 20px;
  24398. display: flex;
  24399. align-items: center;
  24400. }
  24401. .group_staic span:nth-child(1) {
  24402. width: 150px;
  24403. text-align: right;
  24404. margin-right: 15px;
  24405. }
  24406. .group_staic span:nth-child(2) {
  24407. background: rgb(0 123 255);
  24408. color: #fff;
  24409. border-radius: 5px;
  24410. padding: 5px;
  24411. }
  24412. .codeFileBox {
  24413. height: 300px;
  24414. background: #fff;
  24415. display: flex;
  24416. align-items: center;
  24417. justify-content: center;
  24418. }
  24419. .codeFileBox img {
  24420. width: 200px;
  24421. margin: 0;
  24422. height: auto;
  24423. }
  24424. .codeFileBox div {
  24425. background: rgb(80, 142, 226);
  24426. color: #fff;
  24427. padding: 10px 20px;
  24428. border-radius: 25px;
  24429. cursor: pointer;
  24430. margin-left: 15px;
  24431. }
  24432. .radioBox {
  24433. display: flex;
  24434. flex-direction: column;
  24435. flex-wrap: nowrap;
  24436. align-items: flex-start;
  24437. }
  24438. .radioBox > div {
  24439. margin: 10px 0 0 10px;
  24440. }
  24441. /* .radioBox >>> .el-radio__input,
  24442. .radioBox >>> .el-checkbox__inner {
  24443. margin-left: 10px;
  24444. } */
  24445. .radioBox >>> .el-radio__label,
  24446. .radioBox >>> .el-checkbox__label {
  24447. display: flex;
  24448. align-items: center;
  24449. width: 100%;
  24450. }
  24451. .radioBox >>> .el-radio__label > span {
  24452. width: 100%;
  24453. display: -webkit-box;
  24454. overflow: hidden;
  24455. white-space: normal !important;
  24456. text-overflow: ellipsis;
  24457. word-wrap: break-word;
  24458. }
  24459. .inImg {
  24460. width: 100px;
  24461. cursor: pointer;
  24462. }
  24463. .inImg > img {
  24464. width: 100%;
  24465. height: 100%;
  24466. object-fit: cover;
  24467. }
  24468. .timuImgBox {
  24469. margin: 10px 0;
  24470. display: flex;
  24471. flex-direction: column;
  24472. flex-wrap: wrap;
  24473. align-items: flex-start;
  24474. }
  24475. .timuImg {
  24476. width: 150px;
  24477. margin: 5px 0;
  24478. cursor: pointer;
  24479. }
  24480. .timuImg > img {
  24481. width: 100%;
  24482. height: 100%;
  24483. object-fit: cover;
  24484. }
  24485. .worksTop {
  24486. display: flex;
  24487. flex-direction: row;
  24488. align-items: flex-end;
  24489. }
  24490. .worksTitle {
  24491. display: flex;
  24492. flex-direction: row;
  24493. flex-wrap: nowrap;
  24494. align-items: center;
  24495. }
  24496. .worksTitle::before,
  24497. .worksTop::before {
  24498. content: "";
  24499. display: block;
  24500. width: 3px;
  24501. height: 20px;
  24502. background: #0061ff;
  24503. border-radius: 3px;
  24504. margin: 0 5px 0 0;
  24505. }
  24506. .corOpen {
  24507. margin: 0 0 0 10px;
  24508. font-size: 14px;
  24509. cursor: pointer;
  24510. color: #505050;
  24511. }
  24512. .corOpen:hover {
  24513. color: #499eef;
  24514. }
  24515. .navCorOpenBox {
  24516. display: flex;
  24517. flex-direction: row;
  24518. align-items: center;
  24519. justify-content: space-between;
  24520. height: 55px;
  24521. background: #ffffff;
  24522. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24523. border-radius: 8px 8px 0px 0px;
  24524. z-index: 9;
  24525. position: relative;
  24526. }
  24527. .navCorOpen {
  24528. padding-right: 15px;
  24529. cursor: pointer;
  24530. width: 45px;
  24531. display: flex;
  24532. }
  24533. .navCorOpen > img {
  24534. width: 100%;
  24535. height: 100%;
  24536. }
  24537. .mlImg {
  24538. width: 40px !important;
  24539. min-width: 40px;
  24540. cursor: pointer;
  24541. transform: rotate(180deg);
  24542. }
  24543. .mlImg > img {
  24544. width: 100%;
  24545. height: 100%;
  24546. }
  24547. .navLeftCss {
  24548. width: 100% !important;
  24549. left: 0 !important;
  24550. }
  24551. .isContentCss {
  24552. width: 100% !important;
  24553. }
  24554. .isAllWidth {
  24555. width: 100% !important;
  24556. }
  24557. .group_switch {
  24558. margin-right: 10px;
  24559. height: 30px;
  24560. display: flex;
  24561. align-items: center;
  24562. }
  24563. .group_switch > span {
  24564. margin-right: 5px;
  24565. }
  24566. .fileC_box {
  24567. padding-top: 15px;
  24568. }
  24569. .fileC_box > .fileC_title {
  24570. padding: 10px 5px 14px 10px;
  24571. border-top: 1px solid #cad1dc;
  24572. font-size: 14px;
  24573. font-weight: 400;
  24574. color: #cad1dc;
  24575. width: calc(100% - 20px);
  24576. margin: 0 auto;
  24577. box-sizing: border-box;
  24578. }
  24579. .pl_select_box {
  24580. height: 40px;
  24581. line-height: 40px;
  24582. width: 100%;
  24583. cursor: pointer;
  24584. padding: 0 20px;
  24585. box-sizing: border-box;
  24586. border-radius: 5px;
  24587. border: 1px solid #d6d6d6;
  24588. white-space: nowrap;
  24589. overflow: hidden;
  24590. text-overflow: ellipsis;
  24591. background: #fff;
  24592. text-align: left;
  24593. }
  24594. .newButton {
  24595. width: 102px;
  24596. height: 36px;
  24597. background: #e7ebf1;
  24598. border-radius: 4px;
  24599. color: #0e1e33;
  24600. font-weight: 400;
  24601. font-size: 14px;
  24602. border: none;
  24603. float: right;
  24604. margin-left: 10px;
  24605. }
  24606. .el-table >>> .even_row {
  24607. background-color: #f0f4fa;
  24608. }
  24609. .stageBoxCss,
  24610. .stageBoxIsCss {
  24611. display: flex;
  24612. flex-direction: row;
  24613. flex-wrap: nowrap;
  24614. align-items: center;
  24615. height: 50px;
  24616. border-bottom: 1px solid #e2f5fc;
  24617. cursor: pointer;
  24618. width: 100%;
  24619. }
  24620. .stageBoxIsCss {
  24621. background: #0061ff;
  24622. color: #fff;
  24623. border-radius: 8px;
  24624. }
  24625. .closeTri,
  24626. .closeTri1 {
  24627. min-width: 15px;
  24628. width: 15px;
  24629. height: 15px;
  24630. }
  24631. .closeTri1 {
  24632. padding-left: 10px;
  24633. cursor: pointer;
  24634. }
  24635. .closeTri > img,
  24636. .closeTri1 > img {
  24637. width: 100%;
  24638. height: 100%;
  24639. /* transition: all .5s; */
  24640. }
  24641. .noToolBlue {
  24642. min-width: 10px;
  24643. width: 10px;
  24644. height: 10px;
  24645. background: #0061ff;
  24646. border-radius: 50%;
  24647. margin-left: 13px;
  24648. }
  24649. .stageChild,
  24650. .toolChild {
  24651. height: 0;
  24652. overflow: hidden;
  24653. transition: all 0.5s;
  24654. }
  24655. .toolChild {
  24656. /* margin: 0 0 0 17px;
  24657. padding: 0 0 0 20px;
  24658. border-left: 1px solid #d7d7d7; */
  24659. }
  24660. .toolChild > div + div{
  24661. margin-top:5px;
  24662. }
  24663. .gjCss {
  24664. display: flex;
  24665. flex-direction: row;
  24666. flex-wrap: nowrap;
  24667. align-items: center;
  24668. padding: 10px 0 10px 40px;
  24669. box-sizing: border-box;
  24670. font-size: 14px;
  24671. cursor: pointer;
  24672. border-radius:5px;
  24673. }
  24674. .toolChild > div {
  24675. position: relative;
  24676. width: 100%;
  24677. }
  24678. .toolChild > div::before {
  24679. /* content: "";
  24680. width: 15px;
  24681. height: 1px;
  24682. background: #cad1dc;
  24683. position: absolute;
  24684. top: 24px;
  24685. left: -20px;
  24686. display: block; */
  24687. }
  24688. .isGjCss {
  24689. /* color: #0061ff; */
  24690. color:#fff;
  24691. background: rgb(55, 129, 252);
  24692. /* background-color: #e0eafb !important;
  24693. color: #0061ff !important; */
  24694. }
  24695. .navItem {
  24696. background: #ffffff;
  24697. border-radius: 4px;
  24698. width: 100%;
  24699. margin: 10px auto;
  24700. position: relative;
  24701. height: 40px;
  24702. display: flex;
  24703. flex-direction: row;
  24704. flex-wrap: nowrap;
  24705. align-items: center;
  24706. }
  24707. .navItemList {
  24708. display: flex;
  24709. flex-direction: row;
  24710. flex-wrap: nowrap;
  24711. align-items: center;
  24712. padding: 0 13px;
  24713. cursor: pointer;
  24714. width: calc(100% - 60px);
  24715. height: 100%;
  24716. }
  24717. .navItemList > div:first-child {
  24718. min-width: 60px;
  24719. }
  24720. .navItemList > div:last-child {
  24721. width: calc(100% - 80px);
  24722. white-space: nowrap;
  24723. overflow: hidden;
  24724. text-overflow: ellipsis;
  24725. word-break: break-word;
  24726. }
  24727. /* .isItemList > div {
  24728. color: #fff !important;
  24729. } */
  24730. .tool_work_box {
  24731. width: 100%;
  24732. padding: 0 37px 0;
  24733. box-sizing: border-box;
  24734. }
  24735. .tool_box {
  24736. width: 100%;
  24737. padding: 0 0 0 20px;
  24738. }
  24739. .tool_type_box {
  24740. display: flex;
  24741. flex-direction: row;
  24742. align-items: baseline;
  24743. flex-wrap: nowrap;
  24744. justify-content: flex-start;
  24745. position: relative;
  24746. }
  24747. .toolSort {
  24748. display: flex;
  24749. flex-direction: row;
  24750. flex-wrap: wrap;
  24751. justify-content: flex-start;
  24752. align-items: flex-start;
  24753. padding: 0 0 15px 0;
  24754. }
  24755. .toolSort > div {
  24756. margin: 0 10px 0 0;
  24757. width: 135px;
  24758. box-sizing: border-box;
  24759. border: 2px solid transparent;
  24760. }
  24761. .tools {
  24762. width: 100%;
  24763. display: flex;
  24764. flex-direction: column;
  24765. flex-wrap: nowrap;
  24766. align-items: flex-start;
  24767. }
  24768. .whiteBIcon {
  24769. width: fit-content;
  24770. cursor: pointer;
  24771. display: flex;
  24772. flex-direction: column;
  24773. flex-wrap: nowrap;
  24774. align-items: center;
  24775. font-size: 14px;
  24776. }
  24777. .tool:hover {
  24778. border: 2px solid #a5c7ff;
  24779. border-radius: 5px;
  24780. }
  24781. .whiteBIcon > img {
  24782. width: 65px;
  24783. height: 100%;
  24784. }
  24785. .whiteBIcon > img {
  24786. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24787. border-radius: 15px;
  24788. }
  24789. .check {
  24790. /* width: 20px;
  24791. height: 20px; */
  24792. cursor: pointer;
  24793. margin: 10px 0;
  24794. position: absolute;
  24795. right: 2px;
  24796. top: -5px;
  24797. }
  24798. .noChoose,
  24799. .isChoose {
  24800. width: 15px;
  24801. height: 15px;
  24802. border-radius: 50%;
  24803. border: 1px solid #adadad;
  24804. }
  24805. .isChoose {
  24806. border: 4px solid #0363ff !important;
  24807. width: 10px;
  24808. height: 10px;
  24809. }
  24810. .isToolChoose {
  24811. border: 2px solid #5394ff !important;
  24812. border-radius: 5px;
  24813. box-shadow: 0 0 6px 0px #5394ff;
  24814. }
  24815. .checkDiv {
  24816. display: flex;
  24817. align-items: center;
  24818. }
  24819. .checkDiv span {
  24820. margin-left: 5px;
  24821. color: #858585;
  24822. }
  24823. .check img {
  24824. width: 20px;
  24825. height: 20px;
  24826. }
  24827. .lockTaskIcon {
  24828. width: 20px;
  24829. height: 20px;
  24830. position: absolute;
  24831. right: 10px;
  24832. top: 10px;
  24833. }
  24834. .lockTaskIcon > img {
  24835. width: 100%;
  24836. height: 100%;
  24837. }
  24838. .pick_box {
  24839. display: flex;
  24840. align-items: flex-start;
  24841. flex-wrap: wrap;
  24842. }
  24843. .selectBox {
  24844. width: 110px;
  24845. margin-left: 10px;
  24846. margin: 0 10px 0 auto;
  24847. }
  24848. .selectBox >>> .el-input__inner {
  24849. height: 30px;
  24850. line-height: 30px;
  24851. }
  24852. .selectBox >>> .el-input__icon {
  24853. line-height: 30px;
  24854. }
  24855. .sentenceTitle {
  24856. display: flex;
  24857. flex-direction: row;
  24858. flex-wrap: nowrap;
  24859. align-items: center;
  24860. }
  24861. .sentenceTitle::before {
  24862. content: attr(index);
  24863. background: #3681fc;
  24864. border-radius: 50%;
  24865. color: #fff;
  24866. width: 25px;
  24867. height: 25px;
  24868. min-width: 25px;
  24869. min-height: 25px;
  24870. text-align: center;
  24871. line-height: 25px;
  24872. margin-right: 5px;
  24873. }
  24874. .hfBox {
  24875. padding: 10px;
  24876. box-sizing: border-box;
  24877. }
  24878. .whoReplyWho {
  24879. display: flex;
  24880. flex-direction: row;
  24881. flex-wrap: nowrap;
  24882. align-items: baseline;
  24883. justify-content: flex-start;
  24884. }
  24885. .hfBottom {
  24886. display: flex;
  24887. flex-direction: row;
  24888. flex-wrap: nowrap;
  24889. align-items: center;
  24890. justify-content: space-between;
  24891. font-size: 14px;
  24892. }
  24893. .deleteHfItem {
  24894. cursor: pointer;
  24895. width: 20px;
  24896. height: 20px;
  24897. }
  24898. .deleteHfItem > img {
  24899. width: 100%;
  24900. height: 100%;
  24901. }
  24902. .whoReplyWho > .hfImg {
  24903. width: 12px;
  24904. height: 12px;
  24905. margin: 0 5px;
  24906. }
  24907. .whoReplyWho > .hfImg > img {
  24908. width: 100%;
  24909. height: 100%;
  24910. }
  24911. .hfContent {
  24912. padding-top: 10px;
  24913. box-sizing: border-box;
  24914. display: -webkit-box;
  24915. overflow: hidden;
  24916. white-space: normal !important;
  24917. text-overflow: ellipsis;
  24918. word-wrap: break-word;
  24919. -webkit-box-orient: vertical;
  24920. }
  24921. .hfTime {
  24922. text-align: left;
  24923. box-sizing: border-box;
  24924. padding: 10px 0 10px 0px;
  24925. color: #bfbfbf;
  24926. font-size: 14px;
  24927. }
  24928. .btnAllNT {
  24929. position: fixed;
  24930. bottom: 100px;
  24931. right: 40px;
  24932. z-index: 999;
  24933. display: flex;
  24934. flex-direction: row;
  24935. }
  24936. .btnAllNT > img {
  24937. cursor: pointer;
  24938. width: 80px;
  24939. }
  24940. .toolMask {
  24941. position: fixed;
  24942. width: 100%;
  24943. height: 100%;
  24944. background: #3f3c3c;
  24945. opacity: 0.5;
  24946. top: 0;
  24947. left: 0;
  24948. z-index: 999;
  24949. }
  24950. .addToolCss {
  24951. position: fixed;
  24952. z-index: 999;
  24953. background: #fff;
  24954. right: 5%;
  24955. bottom: 18%;
  24956. min-width: 1035px;
  24957. min-height: 300px;
  24958. border-radius: 10px;
  24959. box-shadow: 0 0 8px 1px #b2b2b2;
  24960. }
  24961. .toolTop {
  24962. display: flex;
  24963. flex-direction: row;
  24964. flex-wrap: nowrap;
  24965. justify-content: space-between;
  24966. align-items: center;
  24967. padding: 20px;
  24968. }
  24969. .toolTop > div:nth-child(2) {
  24970. width: 15px;
  24971. height: 15px;
  24972. padding-right: 10px;
  24973. cursor: pointer;
  24974. }
  24975. .toolTop > div:nth-child(2) > img {
  24976. width: 100%;
  24977. height: 100%;
  24978. }
  24979. .fullStyle>>>.el-dialog__body {
  24980. height: calc(100% - 125px) !important;
  24981. box-sizing: border-box;
  24982. padding: 30px 0 !important;
  24983. background: #fff !important;
  24984. }
  24985. .fullStyle>>>.el-dialog {
  24986. width: 100% !important;
  24987. max-width: 100% !important;
  24988. height: 100% !important;
  24989. margin: 0 !important;
  24990. }
  24991. .fullStyle {
  24992. width: 100% !important;
  24993. max-width: 100% !important;
  24994. height: 100% !important;
  24995. margin: 0 auto !important;
  24996. }
  24997. .fullStyle>>>.el-dialog__footer{
  24998. background: #fff !important;
  24999. }
  25000. .engUpBox {
  25001. width: 100%;
  25002. height: 100%;
  25003. }
  25004. .engTitle,
  25005. .engText {
  25006. display: flex;
  25007. flex-direction: row;
  25008. flex-wrap: nowrap;
  25009. align-items: flex-start;
  25010. padding: 0 20px 20px 20px;
  25011. box-sizing: border-box;
  25012. }
  25013. .engTitle > .div:first-child,
  25014. .engText > div:first-child {
  25015. min-width: 75px;
  25016. }
  25017. .correctBox{
  25018. width: 100%;
  25019. display: flex;
  25020. flex-direction: row;
  25021. flex-wrap: nowrap;
  25022. align-items: flex-start;
  25023. }
  25024. .oldBox{
  25025. width: 50%;
  25026. height: 100%;
  25027. display: flex;
  25028. flex-direction: column;
  25029. flex-wrap: nowrap;
  25030. align-items: center;
  25031. border-top: 1px solid #d9d9d9;
  25032. border-left: 1px solid #d9d9d9;
  25033. border-right: 1px solid #d9d9d9;
  25034. }
  25035. .oldBox>div:first-child{
  25036. width: 100%;
  25037. text-align: center;
  25038. background: #d9d9d9;
  25039. height: 35px;
  25040. line-height: 35px;
  25041. font-weight: bold;
  25042. }
  25043. .oldText{
  25044. width: 100%;
  25045. height: calc(100% - 35px);
  25046. overflow: auto;
  25047. margin: 10px 0;
  25048. display: flex;
  25049. flex-direction: column;
  25050. flex-wrap: nowrap;
  25051. align-content: center;
  25052. align-items: center;
  25053. }
  25054. .detailBox{
  25055. width: 50%;
  25056. padding: 10px;
  25057. background: #f6f6f6;
  25058. border-radius: 5px;
  25059. }
  25060. .oldDetail,.oldDetail1{
  25061. padding-bottom: 30px;
  25062. }
  25063. .oldImg{
  25064. width:30px;
  25065. height: 30px;
  25066. }
  25067. .oldImg>img{
  25068. width: 100%;
  25069. height: 100%;
  25070. }
  25071. .allName{
  25072. min-width: 200px;
  25073. white-space: nowrap;
  25074. overflow: hidden;
  25075. text-overflow: ellipsis;
  25076. word-break: break-word;
  25077. cursor: pointer;
  25078. text-align: center;
  25079. border: 1px solid #bcc2cc;
  25080. box-sizing: border-box;
  25081. }
  25082. .engUpTop{
  25083. max-height: 300px;
  25084. overflow: auto;
  25085. }
  25086. .isUpdateToolDetailClass{
  25087. padding: 0 !important;
  25088. }
  25089. .isUpdateToolDetailClass textarea{
  25090. padding:12px;
  25091. font-size: 16px;
  25092. min-height:100%;
  25093. width: 100%;
  25094. box-sizing:border-box;
  25095. outline: none;
  25096. border:none;
  25097. line-height: 30px;
  25098. resize: none;
  25099. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25100. color: #838383;
  25101. }
  25102. .show_taskD {
  25103. min-width: fit-content;
  25104. margin-left: 10px;
  25105. display: flex;
  25106. align-items: center;
  25107. font-size: 14px;
  25108. cursor: pointer;
  25109. color: #717c8d;
  25110. }
  25111. .show_taskD > img {
  25112. width: 15px;
  25113. margin-right: 5px;
  25114. transition: 0.2s all;
  25115. transform: rotate(-90deg);
  25116. }
  25117. .show_taskD.show > img {
  25118. transform: rotate(0deg);
  25119. }
  25120. .dialog_diyCopy >>> .el-dialog__header {
  25121. display: none !important;
  25122. }
  25123. .dialog_diyCopy >>> .el-dialog__body {
  25124. padding: 0 !important;
  25125. height: 100% !important;
  25126. }
  25127. .confirmOpenDigCss > div{
  25128. font-size: 14px;
  25129. color: rgba(0, 0, 0, 0.6);
  25130. }
  25131. .confirmOpenDigCss >>> .el-dialog{
  25132. border-radius: 6px;
  25133. }
  25134. .confirmOpenDigCss >>> .el-dialog__body{
  25135. padding: 25px !important;
  25136. }
  25137. .confirmOpenDigCss > span{
  25138. font-size: 16px;
  25139. font-weight: 600;
  25140. color: rgba(0, 0, 0, 0.8);
  25141. }
  25142. .correctCss{
  25143. position: absolute;
  25144. bottom: -70px;
  25145. background: #409eff;
  25146. color: #fff;
  25147. }
  25148. div::-webkit-scrollbar {
  25149. width: 10px;
  25150. height: 6px;
  25151. }
  25152. .Ovh{
  25153. margin: 5px 0;
  25154. width: 4em;
  25155. -webkit-line-clamp: 2;
  25156. display: -webkit-box;
  25157. -webkit-box-orient: vertical;
  25158. overflow: hidden;
  25159. text-overflow: ellipsis;
  25160. }
  25161. </style>