studyStudent.vue 870 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945
  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" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <span>随机码:{{ inviteCode }}</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="cru_selectBox">
  83. <div
  84. style="background: #fff; margin: 0 10px; border-radius: 8px"
  85. v-for="(item, stageIndex) in navList"
  86. :key="stageIndex"
  87. >
  88. <div
  89. class="stageBoxCss"
  90. @click="get(stageIndex)"
  91. :class="{
  92. // stageBoxIsCss: stageIndex == courseType,
  93. }"
  94. >
  95. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  96. <div>阶段{{ stageIndex + 1 }}</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="item.dyName"
  100. placement="top"
  101. >
  102. <div>
  103. {{ item.dyName }}
  104. </div>
  105. </el-tooltip>
  106. </div>
  107. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  108. <img src="../assets/icon/newIcons/downC.png" alt />
  109. </div> -->
  110. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  111. <img src="../assets/icon/newIcons/right.png" alt />
  112. </div>
  113. </div>
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType,
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  132. </div>
  133. <div
  134. class="closeTri1"
  135. v-else
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. >
  138. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  139. </div>
  140. </div>
  141. <div v-else class="noToolBlue"></div>
  142. <div
  143. @click="openTask(stageIndex, navIndex, nav.id)"
  144. class="navItemList"
  145. :class="{
  146. isItemList:
  147. navIndex == taskCount &&
  148. nav.id == navId &&
  149. stageIndex == courseType,
  150. }"
  151. >
  152. <div>任务{{ navIndex + 1 }}:</div>
  153. <el-tooltip
  154. effect="light"
  155. :content="nav.taskName"
  156. placement="top"
  157. >
  158. <div
  159. :style="{
  160. width:
  161. IsLookOpen &&
  162. !(
  163. navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType
  166. )
  167. ? 'calc(100% - 75px)'
  168. : 'auto',
  169. }"
  170. >
  171. {{ nav.taskName }}
  172. </div>
  173. </el-tooltip>
  174. </div>
  175. <div class="lockTaskIcon">
  176. <img
  177. src="../assets/lock.png"
  178. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  179. courseDetail.course_teacher.indexOf(userid) ==-1"
  180. alt=""
  181. />
  182. </div>
  183. </div>
  184. <div
  185. v-if="nav.tool[0].tool != undefined"
  186. class="toolChild"
  187. :class="{ toolActive: nav.isOpen }"
  188. >
  189. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  190. <div
  191. class="gjCss"
  192. :class="{ isGjCss: t.isTool }"
  193. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  194. >
  195. <div>工具{{ toolIndex + 1 }}:</div>
  196. <div v-if="t.tool == 58">模拟驾驶</div>
  197. <div v-if="t.tool == 59">路径搜索</div>
  198. <div v-if="t.tool == 60">深度学习</div>
  199. <div v-if="t.tool == 10">倒计时</div>
  200. <div v-if="t.tool == 65">挑人</div>
  201. <div v-if="t.tool == 7">思维网格</div>
  202. <div v-if="t.tool == 1">电子白板</div>
  203. <div v-if="t.tool == 52">文档</div>
  204. <div v-if="t.tool == 3">思维导图</div>
  205. <div v-if="t.tool == 48">表格</div>
  206. <div v-if="t.tool == 49">学生分组</div>
  207. <div v-if="t.tool == 4">问卷调查</div>
  208. <div v-if="t.tool == 45">选择题</div>
  209. <div v-if="t.tool == 15">问答</div>
  210. <div v-if="t.tool == 16">作业提交</div>
  211. <div v-if="t.tool == 50">批量上传</div>
  212. <div v-if="t.tool == 41">选择匹配</div>
  213. <div v-if="t.tool == 47">排序</div>
  214. <div v-if="t.tool == 40">个人评价</div>
  215. <div v-if="t.tool == 18">训练平台</div>
  216. <div v-if="t.tool == 21">AIoT Blockly</div>
  217. <div v-if="t.tool == 23">AI Python</div>
  218. <div v-if="t.tool == 24">AI Blockly</div>
  219. <div v-if="t.tool == 32">源码编辑</div>
  220. <div v-if="t.tool == 57">CocoPi</div>
  221. <div v-if="t.tool == 63">海龟编程</div>
  222. <div v-if="t.tool == 28">翻译</div>
  223. <div v-if="t.tool == 31">数字画板</div>
  224. <div v-if="t.tool == 39">GeoGebra</div>
  225. <div v-if="t.tool == 66">公式编辑</div>
  226. <div v-if="t.tool == 67">分子结构</div>
  227. <div v-if="t.tool == 68">时间轴</div>
  228. <div v-if="t.tool == 69">英语写作</div>
  229. <div v-if="t.tool == 70">英语口语</div>
  230. <div v-if="t.tool == 25">目标管理</div>
  231. <div v-if="t.tool == 26">课程设计</div>
  232. <div v-if="t.tool == 62">交互视频</div>
  233. <div v-if="t.tool == 71">AI智能体</div>
  234. <div v-if="t.tool == 72">应用中心</div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- :class="{ navLeftCss: !mlDialog }" -->
  244. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  245. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  246. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  247. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && (!['2'].includes(tType) || canUseCourseId.includes(id)) ? '100%' : 'calc(100% - 745px)'}">
  248. <div>任务{{ taskCount + 1 }}</div>
  249. <el-tooltip
  250. effect="light"
  251. :content="
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  253. "
  254. placement="top"
  255. >
  256. <div>
  257. {{
  258. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  259. .task
  260. }}
  261. </div>
  262. </el-tooltip>
  263. </div>
  264. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || (['2'].includes(tType) && !canUseCourseId.includes(id))"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  265. <div class="btnLeft">
  266. <el-tooltip effect="light" content="刷新" placement="top">
  267. <div class="reBtnIcon" @click="refreshCourse">
  268. <span>刷新</span>
  269. </div>
  270. </el-tooltip>
  271. <el-tooltip effect="light" content="评论" placement="top">
  272. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  273. <span>评论</span>
  274. </div>
  275. </el-tooltip>
  276. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  277. <el-tooltip effect="light" content="录制" placement="top">
  278. <div class="vedioIcon" @click="startRecording">
  279. <span>录制</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. <div v-else-if="tType == 1 || tType == 4">
  284. <el-tooltip effect="light" content="下载" placement="top">
  285. <div class="vedioIcon1" @click="stopRecording">
  286. <span>下载</span>
  287. </div>
  288. </el-tooltip>
  289. </div>
  290. </div>
  291. <div class="btnRight">
  292. <div
  293. class="last"
  294. @click="nextOrpreSteps(0)"
  295. v-if="!(IsFollow && tType == 2)"
  296. @mouseover="isHovered = true"
  297. @mouseout="isHovered = false"
  298. >
  299. <div class="lastImg">
  300. <img
  301. :src="
  302. isHovered
  303. ? require('../assets/icon/newIcons/whiteLast.png')
  304. : require('../assets/icon/newIcons/last.png')
  305. "
  306. alt=""
  307. />
  308. </div>
  309. <div class="lastText">上一步</div>
  310. </div>
  311. <div
  312. class="last"
  313. @click="nextOrpreSteps(1)"
  314. v-if="!(IsFollow && tType == 2)"
  315. @mouseover="isHovered1 = true"
  316. @mouseout="isHovered1 = false"
  317. >
  318. <div class="lastText">下一步</div>
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered1
  323. ? require('../assets/icon/newIcons/whiteNext.png')
  324. : require('../assets/icon/newIcons/next.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. </div>
  330. <div
  331. class="last"
  332. @click="juriVisible = true"
  333. v-if="tType == 1"
  334. @mouseover="isHovered2 = true"
  335. @mouseout="isHovered2 = false"
  336. >
  337. <div class="lastImg">
  338. <img
  339. :src="
  340. isHovered2
  341. ? require('../assets/icon/newIcons/whiteLock.png')
  342. : require('../assets/icon/newIcons/lock.png')
  343. "
  344. alt=""
  345. />
  346. </div>
  347. <div class="lastText">权限</div>
  348. </div>
  349. <div
  350. class="returnBtn1 returnIcon"
  351. @click.stop="
  352. goTo(
  353. '/courseDetail?userid=' +
  354. userid +
  355. '&oid=' +
  356. oid +
  357. '&org=' +
  358. org +
  359. '&cid=' +
  360. classId +
  361. '&courseId=' +
  362. id +
  363. '&tType=' +
  364. tType +
  365. '&screenType=' +
  366. screenType
  367. )
  368. "
  369. >
  370. <div class="lastImg">
  371. <img src="../assets/icon/newIcon/return.png" alt="" />
  372. </div>
  373. <div class="lastText" style="color: #000">返回</div>
  374. </div>
  375. </div>
  376. <!-- <div
  377. class="returnBtn lockIcon"
  378. @click="juriVisible = true"
  379. v-if="tType == 1"
  380. >
  381. 权限
  382. </div>
  383. <div
  384. class="returnBtn vedioIcon"
  385. @click="startRecording"
  386. v-if="!videoStart && (tType == 1 || tType == 4)"
  387. >
  388. 录制
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="stopRecording"
  393. v-else-if="tType == 1 || tType == 4"
  394. style="background: #ee5255"
  395. >
  396. 下载
  397. </div>
  398. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  399. 评论
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(0)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 上一步
  407. </div>
  408. <div
  409. class="returnBtn"
  410. @click="nextOrpreSteps(1)"
  411. v-if="!(IsFollow && tType == 2)"
  412. >
  413. 下一步
  414. </div>
  415. <div class="returnBtn" @click="refreshCourse">刷新</div>
  416. <div
  417. class="returnBtn returnIcon"
  418. @click.stop="
  419. goTo(
  420. '/courseDetail?userid=' +
  421. userid +
  422. '&oid=' +
  423. oid +
  424. '&org=' +
  425. org +
  426. '&cid=' +
  427. classId +
  428. '&courseId=' +
  429. id +
  430. '&tType=' +
  431. tType +
  432. '&screenType=' +
  433. screenType
  434. )
  435. "
  436. >
  437. 返回
  438. </div> -->
  439. </div>
  440. </div>
  441. <div
  442. class="isNoMessage"
  443. v-if="
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .chapterData.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .toolChoose[0].tool.length == 0 &&
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail == '' &&
  450. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .eList &&
  452. !(
  453. courseDetail.userid == userid ||
  454. (courseDetail.course_teacher &&
  455. courseDetail.course_teacher.indexOf(userid) != -1)
  456. )
  457. "
  458. >
  459. <img src="../assets/icon/isNoMessage.png" alt />
  460. </div>
  461. <div class="study_top" :class="{ pzClass: pzDialog }">
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[taskCount].length > 0 ||
  468. fileC[taskCount].length > 0
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail != ''
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail
  502. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div>
  510. <div
  511. class="student_head"
  512. v-if="
  513. vChapterData[taskCount].length > 0 ||
  514. fileC[taskCount].length > 0
  515. "
  516. >
  517. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  518. <div
  519. :class="
  520. contentDialog == false
  521. ? 'box_course isContentCss'
  522. : 'box_course'
  523. "
  524. v-if="
  525. vChapterData.length > 0 &&
  526. vChapterData[taskCount] &&
  527. showType !== ''
  528. "
  529. >
  530. <div class="wheel" style="height: auto" v-if="showType === 0">
  531. <div
  532. class="workd_media"
  533. style="height: 650px; width: calc(100% - 50px)"
  534. >
  535. <video-player
  536. class="video-player vjs-custom-skin"
  537. :class="contentDialog == false ? 'isAllWidth' : ''"
  538. :playsinline="true"
  539. :options="playerO[taskCount]"
  540. @play="onPlayerPlay($event)"
  541. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  542. ></video-player>
  543. </div>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="showType == 1"
  548. style="
  549. box-shadow: 0 0 6px 1px #f2f2f2;
  550. width: 95%;
  551. margin: 0 auto;
  552. background: #f1f1f1;
  553. "
  554. >
  555. <div class="title">查看文档</div>
  556. <el-form class="textBox">
  557. <el-form-item class="textTitle">
  558. <div style="font-size: 22px">
  559. {{ text.name }}
  560. </div>
  561. </el-form-item>
  562. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  563. <div v-html="text.url" class="textContent cont"></div>
  564. </el-form>
  565. </div>
  566. <div
  567. class="wheel"
  568. v-if="
  569. pptImgUrl1.indexOf(
  570. 'https://view.officeapps.live.com/op/view.aspx?src='
  571. ) != -1 && showType == 2
  572. "
  573. style="width: 95%; margin: 0 auto"
  574. >
  575. <iframe
  576. style="width: 100%; height: 100%; border: none"
  577. :src="pptImgUrl1"
  578. ></iframe>
  579. </div>
  580. <div
  581. class="wheel"
  582. v-else-if="showType == 2"
  583. style="width: 95%; margin: 0 auto"
  584. >
  585. <iframe
  586. style="width: 100%; height: 100%; border: none"
  587. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  588. :src="pptImgUrl1"
  589. ></iframe>
  590. <iframe
  591. style="width: 100%; height: 100%; border: none"
  592. security="restricted"
  593. v-else
  594. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  595. :src="pptImgUrl1"
  596. ></iframe>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 3"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <pdf
  604. :pdfUrl="pptImgUrl1"
  605. style="width: 100%; height: 100%; overflow: auto"
  606. ></pdf>
  607. </div>
  608. <div
  609. class="wheel"
  610. v-if="showType == 4"
  611. style="width: 95%; margin: 0 auto"
  612. >
  613. <el-image
  614. :src="pptImgUrl1"
  615. fit="contain"
  616. style="width: 100%; height: 100%; cursor: pointer"
  617. @click="previewImg(pptImgUrl1)"
  618. ></el-image>
  619. </div>
  620. </div>
  621. <div
  622. class="pButton"
  623. style="position: absolute; right: 20px; top: 0; z-index: 998"
  624. v-if="!contentDialog"
  625. @click="setContent(true)"
  626. >
  627. <!-- 批 -->
  628. <img
  629. src="../assets/icon/newIcons/isLeft.png"
  630. style="width: 45px"
  631. alt=""
  632. />
  633. </div>
  634. <div
  635. v-if="contentDialog == true"
  636. :style="{
  637. width:
  638. (vChapterData[taskCount].length > 0 ||
  639. fileC[taskCount].length > 0) &&
  640. showType === ''
  641. ? 'calc(100%)'
  642. : '300px',
  643. margin:
  644. (vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0) &&
  646. showType === ''
  647. ? '0 15px'
  648. : '0 15px 0 0',
  649. }"
  650. >
  651. <div
  652. class="vedioList"
  653. v-if="
  654. vChapterData[taskCount].length > 0 ||
  655. fileC[taskCount].length > 0
  656. "
  657. style="height: 650px"
  658. >
  659. <div class="navCorOpenBox">
  660. <div class="navTitile">内容列表:</div>
  661. <div class="navCorOpen" @click="setContent(false)">
  662. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  663. </div>
  664. </div>
  665. <div class="navBox">
  666. <div
  667. v-show="
  668. vChapterData[taskCount].length > 0 ||
  669. fileC[taskCount].length > 0
  670. "
  671. style="padding: 10px 0 25px 0"
  672. >
  673. <div
  674. class="vedioTimeBox"
  675. v-for="(vitem, vindex) in vChapterData[taskCount]"
  676. :key="vindex + '1'"
  677. >
  678. <div class="navListItem" v-if="vitem.type == 2">
  679. <div
  680. @click="lookVedio(vitem.url, vindex)"
  681. class="navText"
  682. :class="isClickNav == vindex ? 'isClickNav' : ''"
  683. >
  684. <span v-if="vitem.text">{{ vitem.text }}-</span
  685. >{{ vitem.name }}
  686. </div>
  687. <div class="downIcon" @click="downloadFile2(vitem)">
  688. <img src="../assets/icon/newIcon/down.png" alt />
  689. </div>
  690. </div>
  691. <div class="navListItem" v-if="vitem.type == 6">
  692. <div
  693. @click="lookText(taskCount, vindex)"
  694. class="navText"
  695. :class="isClickNav == vindex ? 'isClickNav' : ''"
  696. >
  697. {{ vitem.name }}.doc
  698. </div>
  699. <div
  700. class="downIcon"
  701. @click="checkFileFull1(vitem.type, vitem)"
  702. >
  703. <img
  704. src="../assets/icon/newIcon/allScreen.png"
  705. alt
  706. />
  707. </div>
  708. </div>
  709. <div
  710. class="navListItem"
  711. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  712. >
  713. <div
  714. @click="doUrl(vitem.url, vindex)"
  715. class="navText"
  716. :class="isClickNav == vindex ? 'isClickNav' : ''"
  717. >
  718. {{ vitem.title ? vitem.title : vitem.url }}
  719. </div>
  720. <div
  721. class="downIcon"
  722. @click="checkFileFull1(vitem.type, vitem)"
  723. >
  724. <img
  725. src="../assets/icon/newIcon/allScreen.png"
  726. alt
  727. />
  728. </div>
  729. </div>
  730. <div class="navListItem" v-if="vitem.type == 3">
  731. <div
  732. @click="downFile(vitem, vindex)"
  733. class="navText"
  734. :class="isClickNav == vindex ? 'isClickNav' : ''"
  735. >
  736. <span v-if="vitem.text">{{ vitem.text }}-</span
  737. >{{ vitem.name }}
  738. </div>
  739. <div
  740. class="downIcon"
  741. @click="checkFileFull1(vitem.type, vitem)"
  742. >
  743. <img
  744. src="../assets/icon/newIcon/allScreen.png"
  745. alt
  746. />
  747. </div>
  748. <div class="downIcon" @click="downloadFile2(vitem)">
  749. <img src="../assets/icon/newIcon/down.png" alt />
  750. </div>
  751. </div>
  752. <div class="navListItem" v-if="vitem.type == 12">
  753. <div class="navText" @click="downloadFile2(vitem)">
  754. <span v-if="vitem.text">{{ vitem.text }}-</span
  755. >{{ vitem.name }}
  756. </div>
  757. <div
  758. class="downIcon"
  759. @click="checkFileFull1(vitem.type, vitem)"
  760. >
  761. <img
  762. src="../assets/icon/newIcon/allScreen.png"
  763. alt
  764. />
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img src="../assets/icon/newIcon/down.png" alt />
  768. </div>
  769. </div>
  770. <div class="navListItem" v-if="vitem.type == 13">
  771. <div
  772. class="navText"
  773. @click="checkPhoto(vitem, vindex)"
  774. :class="isClickNav == vindex ? 'isClickNav' : ''"
  775. >
  776. {{ vitem.name }}
  777. </div>
  778. <div class="downIcon" @click="downloadFile2(vitem)">
  779. <img src="../assets/icon/newIcon/down.png" alt />
  780. </div>
  781. </div>
  782. </div>
  783. <div
  784. class="fileC_box"
  785. v-if="fileC[taskCount].length > 0"
  786. >
  787. <div class="fileC_title">以下文件不支持预览</div>
  788. <div
  789. class="vedioTimeBox"
  790. v-for="(vitem, vindex) in fileC[taskCount]"
  791. :key="vindex + '1'"
  792. >
  793. <div class="navListItem" v-if="vitem.type == 12">
  794. <div class="navText" style="color: #acb4bf">
  795. <span v-if="vitem.text">{{ vitem.text }}-</span
  796. >{{ vitem.name }}
  797. </div>
  798. <div
  799. class="downIcon"
  800. @click="downloadFile2(vitem)"
  801. >
  802. <img
  803. src="../assets/icon/newIcon/down.png"
  804. alt
  805. />
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. </div>
  811. </div>
  812. </div>
  813. </div>
  814. </div>
  815. <div style="width: calc(100% - 315px)">
  816. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  817. <!-- <el-button
  818. type="primary"
  819. class="newButton"
  820. @click="checkFileFull(showType, pptImgUrl1)"
  821. >全屏查看</el-button
  822. >
  823. <el-button
  824. type="primary"
  825. class="newButton"
  826. @click="downloadFile(pptImgUrl1)"
  827. v-if="showType != 2"
  828. >文件下载</el-button
  829. > -->
  830. <el-button
  831. class="newButton"
  832. v-if="
  833. showType == 2 &&
  834. pptImgUrl1.indexOf(
  835. 'https://view.officeapps.live.com/op/view.aspx?src='
  836. ) == -1
  837. "
  838. type="primary"
  839. @click="openLine(pptImgUrl1)"
  840. >打开链接
  841. </el-button>
  842. </div>
  843. <!-- <div
  844. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  845. v-if="showType == 1"
  846. >
  847. <el-button
  848. type="primary"
  849. class="newButton"
  850. @click="checkFileFull(showType, text)"
  851. >全屏查看</el-button
  852. >
  853. </div> -->
  854. </div>
  855. </div>
  856. </div>
  857. <div class="student_body" v-resize="resize">
  858. <div
  859. class="vedioBox"
  860. :style="{
  861. borderRadius:
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .taskDetail == '' &&
  864. vChapterData[taskCount].length == 0 &&
  865. fileC[taskCount].length == 0
  866. ? '0 0 20px 20px'
  867. : '20px',
  868. }"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length > 0
  874. "
  875. >
  876. <div
  877. class="toolHeng2"
  878. style="position: relative"
  879. v-if="
  880. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  881. .toolChoose[0].tool &&
  882. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  883. .toolChoose[0].tool.length &&
  884. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  885. .toolChoose[0].tool.length > 0
  886. "
  887. >
  888. <div class="workNav">工作区</div>
  889. <div
  890. class="filebox"
  891. style="flex-wrap: nowrap"
  892. v-for="(tool, toolIndex) in chapInfoList[courseType]
  893. .chapterInfo[0].taskJson[taskCount].toolChoose"
  894. :key="toolIndex"
  895. >
  896. <div class="bzBox">
  897. <div class="yCss"></div>
  898. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  899. 工具{{ toolIndex + 1 }}
  900. </div>
  901. <div
  902. v-if="timeWorkList[toolIndex].length > 0"
  903. style="margin: 0 0 0 10px"
  904. >
  905. {{
  906. timeWorkList[toolIndex][0].time
  907. ? "时间:" + timeWorkList[toolIndex][0].time
  908. : ""
  909. }}
  910. </div>
  911. </div>
  912. <div class="toolBox">
  913. <div>
  914. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  915. :key="indexTool"-->
  916. <!-- <div class="iframeBox">
  917. <div
  918. class="addPoint isBorder"
  919. v-for="(tooC, toolCIndex) in tool.tool"
  920. :key="toolCIndex"
  921. >
  922. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  923. <div
  924. class="iframeName"
  925. >
  926. 电子白板
  927. </div>
  928. <iframe
  929. src="https://iwb.cocorobo.cn/"
  930. ref="whiteBoard"
  931. ></iframe>
  932. </div>
  933. </div>
  934. </div>-->
  935. <div class="noiframeBox">
  936. <div
  937. class="addPoint"
  938. v-for="(tooC, toolCIndex) in tool.tool"
  939. :key="toolCIndex"
  940. >
  941. <div v-if="tooC == 1">
  942. <img
  943. src="../assets/icon/secondToolList/whiteBoard.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">电子白板</div>
  948. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  949. style="position: absolute;right: 33px;top: -30px;">
  950. 分析
  951. </div>
  952. </div>
  953. <div v-if="tooC == 3">
  954. <img
  955. src="../assets/icon/secondToolList/mindMapping.png"
  956. alt
  957. @click="addTools(tooC, toolIndex, taskCount)"
  958. />
  959. <div style="margin: 5px 0">思维导图</div>
  960. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  961. style="position: absolute;right: 33px;top: -30px;">
  962. 分析
  963. </div>
  964. </div>
  965. <div v-if="tooC == 6">
  966. <img
  967. src="../assets/icon/secondToolList/doc.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">协同文档</div>
  972. </div>
  973. <div v-if="tooC == 7">
  974. <img
  975. src="../assets/icon/secondToolList/mindNetwork.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">思维网格</div>
  980. <!-- && worksStudent[toolIndex].length>0 -->
  981. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  982. style="position: absolute;right: 33px;top: -30px;">
  983. 分析
  984. </div>
  985. </div>
  986. <div v-if="tooC == 8">
  987. <img
  988. src="../assets/icon/secondToolList/library.png"
  989. alt
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. />
  992. <div style="margin: 5px 0">素材库</div>
  993. </div>
  994. <div v-if="tooC == 17">
  995. <img
  996. src="../assets/icon/secondToolList/library.png"
  997. alt
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. />
  1000. <div style="margin: 5px 0">学习资料</div>
  1001. </div>
  1002. <div v-if="tooC == 2">
  1003. <img
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. src="../assets/icon/secondToolList/note.png"
  1006. alt
  1007. />
  1008. <div style="margin: 5px 0">便签</div>
  1009. </div>
  1010. <div v-if="tooC == 4">
  1011. <img
  1012. @click="addTools(tooC, toolIndex, taskCount)"
  1013. src="../assets/icon/thirdToolList/ask.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">问卷调查</div>
  1017. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1018. style="position: absolute;right: 153px;top: -30px;">
  1019. 分析
  1020. </div>
  1021. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1022. style="position: absolute;right: 33px;top: -30px;">
  1023. 统计分析
  1024. </div>
  1025. </div>
  1026. <div v-if="tooC == 45">
  1027. <img
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. src="../assets/icon/thirdToolList/choose.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">选择题</div>
  1033. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1034. style="position: absolute;right: 33px;top: -30px;">
  1035. 分析
  1036. </div>
  1037. </div>
  1038. <!-- <div v-if="tooC == 5">
  1039. <img
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. src="../assets/icon/thirdToolList/score.png"
  1042. alt
  1043. />
  1044. <div style="margin: 5px 0">量规评分</div>
  1045. </div> -->
  1046. <div v-if="tooC == 10">
  1047. <img
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. src="../assets/icon/thirdToolList/time.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">倒计时</div>
  1053. </div>
  1054. <div v-if="tooC == 15">
  1055. <img
  1056. @click="addTools(tooC, toolIndex, taskCount)"
  1057. src="../assets/icon/thirdToolList/answer.png"
  1058. alt
  1059. />
  1060. <div style="margin: 5px 0">问答</div>
  1061. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1062. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1063. 分析
  1064. </div>
  1065. </div>
  1066. <div v-if="tooC == 26">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../assets/icon/thirdToolList/courseDesign.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">课程设计</div>
  1073. </div>
  1074. <div v-if="tooC == 18">
  1075. <img
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. src="../assets/icon/thirdToolList/trainPlatform.png"
  1078. alt
  1079. />
  1080. <div style="margin: 5px 0">训练服务器</div>
  1081. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1082. style="position: absolute;right: 33px;top: -30px;">
  1083. 分析
  1084. </div>
  1085. </div>
  1086. <div v-if="tooC == 16">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../assets/icon/thirdToolList/work.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">作业提交</div>
  1093. </div>
  1094. <div v-if="tooC == 50">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../assets/icon/thirdToolList/plwork.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">批量上传</div>
  1101. </div>
  1102. <div v-if="tooC == 21">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../assets/icon/fourthToolList/program.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">AIoT Blockly</div>
  1109. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1110. style="position: absolute;right: 33px;top: -30px;">
  1111. 分析
  1112. </div>
  1113. </div>
  1114. <!-- <div v-if="tooC == 22">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../assets/icon/fourthToolList/program.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">AI体验</div>
  1121. </div> -->
  1122. <div v-if="tooC == 23">
  1123. <img
  1124. @click="addTools(tooC, toolIndex, taskCount)"
  1125. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1126. alt
  1127. />
  1128. <div style="margin: 5px 0">AI Python</div>
  1129. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1130. style="position: absolute;right: 33px;top: -30px;">
  1131. 分析
  1132. </div>
  1133. </div>
  1134. <div v-if="tooC == 24">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../assets/icon/fourthToolList/AIprogram.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">AI Blockly</div>
  1141. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1142. style="position: absolute;right: 33px;top: -30px;">
  1143. 分析
  1144. </div>
  1145. </div>
  1146. <div v-if="tooC == 25">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../assets/icon/thirdToolList/evalua.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">目标管理</div>
  1153. </div>
  1154. <div v-if="tooC == 31">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../assets/icon/secondToolList/networkPanel.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">数学画板</div>
  1161. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1162. style="position: absolute;right: 33px;top: -30px;">
  1163. 分析
  1164. </div>
  1165. </div>
  1166. <div v-if="tooC == 28">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/secondToolList/translation.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">翻译</div>
  1173. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1174. style="position: absolute;right: 33px;top: -30px;">
  1175. 分析
  1176. </div>
  1177. </div>
  1178. <div v-if="tooC == 37">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../assets/icon/secondToolList/mohe.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">魔盒识字</div>
  1185. </div>
  1186. <div v-if="tooC == 38">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../assets/icon/secondToolList/24game.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">24点</div>
  1193. </div>
  1194. <div v-if="tooC == 39">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../assets/icon/secondToolList/GeoGebra.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">GeoGebra</div>
  1201. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1202. style="position: absolute;right: 33px;top: -30px;">
  1203. 分析
  1204. </div>
  1205. </div>
  1206. <div v-if="tooC == 32">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../assets/icon/thirdToolList/code.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">源码编辑</div>
  1213. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1214. style="position: absolute;right: 153px;top: -42px;">
  1215. 分析
  1216. </div>
  1217. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1218. style="position: absolute;left: 110px;bottom: 30px;">
  1219. 上传文件
  1220. <input type="file" accept="*" style="display: none"
  1221. @change="beforeUpload1($event, 7, toolIndex)" />
  1222. </div> -->
  1223. </div>
  1224. <div v-if="tooC == 40">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../assets/icon/secondToolList/eval.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">个人评价</div>
  1231. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 41">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/thirdToolList/select.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">选择匹配</div>
  1243. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1244. style="position: absolute;right: 33px;top: -30px;">
  1245. 分析
  1246. </div>
  1247. </div>
  1248. <div v-if="tooC == 44">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../assets/icon/thirdToolList/hanClass.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">汉字宫</div>
  1255. </div>
  1256. <div v-if="tooC == 47">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../assets/icon/fourthToolList/conSentences.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">排序</div>
  1263. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1264. style="position: absolute;right: 33px;top: -30px;">
  1265. 分析
  1266. </div>
  1267. </div>
  1268. <div v-if="tooC == 48">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../assets/icon/fourthToolList/table.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">表格</div>
  1275. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1276. style="position: absolute;right: 33px;top: -30px;">
  1277. 分析
  1278. </div>
  1279. </div>
  1280. <div v-if="tooC == 52">
  1281. <img
  1282. @click="addTools(tooC, toolIndex, taskCount)"
  1283. src="../assets/icon/fourthToolList/text.png"
  1284. alt
  1285. />
  1286. <div style="margin: 5px 0">文档</div>
  1287. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1288. style="position: absolute;right: 33px;top: -30px;">
  1289. 分析
  1290. </div>
  1291. </div>
  1292. <div v-if="tooC == 49">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../assets/icon/fourthToolList/group.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">学生分组</div>
  1299. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1300. style="position: absolute;right: 33px;top: -30px;">
  1301. 分析
  1302. </div>
  1303. </div>
  1304. <div v-if="tooC == 57">
  1305. <img
  1306. @click="addTools(tooC, toolIndex, taskCount)"
  1307. src="../assets/icon/fourthToolList/cocopi.png"
  1308. alt
  1309. />
  1310. <div style="margin: 5px 0">CocoPi</div>
  1311. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1312. style="position: absolute;right: 33px;top: -30px;">
  1313. 分析
  1314. </div>
  1315. </div>
  1316. <div v-if="tooC == 58">
  1317. <img
  1318. @click="addTools(tooC, toolIndex, taskCount)"
  1319. src="../assets/icon/fourthToolList/car.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">模拟驾驶</div>
  1323. </div>
  1324. <div v-if="tooC == 59">
  1325. <img
  1326. @click="addTools(tooC, toolIndex, taskCount)"
  1327. src="../assets/icon/fourthToolList/lineSearch.png"
  1328. alt
  1329. />
  1330. <div style="margin: 5px 0">路径搜索</div>
  1331. </div>
  1332. <div v-if="tooC == 60">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../assets/icon/fourthToolList/deepLearning.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">深度学习</div>
  1339. </div>
  1340. <div v-if="tooC == 61">
  1341. <img
  1342. @click="addTools(tooC, toolIndex, taskCount)"
  1343. src="../assets/icon/fourthToolList/allHistory.png"
  1344. alt
  1345. />
  1346. <div style="margin: 5px 0">全历史</div>
  1347. </div>
  1348. <div v-if="tooC == 62">
  1349. <img
  1350. @click="addTools(tooC, toolIndex, taskCount)"
  1351. src="../assets/icon/fourthToolList/interVideo.png"
  1352. alt
  1353. />
  1354. <div style="margin: 5px 0">交互视频</div>
  1355. </div>
  1356. <div v-if="tooC == 63">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../assets/icon/fourthToolList/Wood.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">海龟编程</div>
  1363. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1364. style="position: absolute;right: 33px;top: -30px;">
  1365. 分析
  1366. </div>
  1367. </div>
  1368. <div v-if="tooC == 71">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../assets/icon/fourthToolList/chatgpt.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">AI智能体</div>
  1375. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1376. style="position: absolute;right: 33px;top: -30px;">
  1377. 分析
  1378. </div>
  1379. </div>
  1380. <div v-if="tooC == 72">
  1381. <img
  1382. style="height: 85px;object-fit: cover;"
  1383. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. :src="tool.appJson.json.icon"
  1386. alt
  1387. />
  1388. <img
  1389. v-else
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../assets/icon/firstToolList/appStore.png"
  1392. alt
  1393. />
  1394. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1395. <!-- content to trigger tooltip here -->
  1396. <div class="Ovh">
  1397. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1398. </div>
  1399. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1400. style="position: absolute;right: 33px;top: -30px;">
  1401. 分析
  1402. </div>
  1403. </el-tooltip>
  1404. </div>
  1405. <div v-if="tooC == 65">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../assets/icon/firstToolList/pickPeople.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">挑人</div>
  1412. </div>
  1413. <div v-if="tooC == 66">
  1414. <img
  1415. @click="addTools(tooC, toolIndex, taskCount)"
  1416. src="../assets/icon/secondToolList/formulaEdi.png"
  1417. alt
  1418. />
  1419. <div style="margin: 5px 0">公式编辑</div>
  1420. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1421. style="position: absolute;right: 33px;top: -30px;">
  1422. 分析
  1423. </div>
  1424. </div>
  1425. <div v-if="tooC == 67">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../assets/icon/secondToolList/molStr.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">分子结构</div>
  1432. </div>
  1433. <div v-if="tooC == 68">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../assets/icon/secondToolList/timeAxis.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">时间轴</div>
  1440. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1441. style="position: absolute;right: 33px;top: -30px;">
  1442. 分析
  1443. </div> -->
  1444. </div>
  1445. <div v-if="tooC == 69">
  1446. <img
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. src="../assets/icon/secondToolList/english.png"
  1449. alt
  1450. />
  1451. <div style="margin: 5px 0">英语写作</div>
  1452. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1453. style="position: absolute;right: 33px;top: -30px;">
  1454. 分析
  1455. </div>
  1456. </div>
  1457. <div v-if="tooC == 70">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../assets/icon/thirdToolList/englishVoice.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">英语口语</div>
  1464. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1465. style="position: absolute;right: 33px;top: -30px;">
  1466. 分析
  1467. </div>
  1468. </div>
  1469. </div>
  1470. </div>
  1471. </div>
  1472. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1473. <!-- <div class="toolTitle">工具描述</div> -->
  1474. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1475. <div style="height:100%;"
  1476. v-html="contentConvent(tool.toolDetail)"
  1477. v-if="toolDetailIndex != toolIndex"
  1478. ></div>
  1479. <div v-else @click.stop="" style="height:100%;">
  1480. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1481. </div>
  1482. </div>
  1483. <el-button
  1484. type="primary"
  1485. v-if="tool.tool[0] == 32"
  1486. style="position: absolute; right: 30px; top: -45px"
  1487. @click="addImg($event)"
  1488. >上传作业<input
  1489. type="file"
  1490. accept="*"
  1491. style="display: none"
  1492. @change="beforeUpload1($event, 7, toolIndex)"
  1493. /></el-button>
  1494. <el-button
  1495. type="primary"
  1496. v-if="tool.tool[0] == 15"
  1497. style="position: absolute; right: 30px; top: -45px"
  1498. @click="openWordCloud(toolIndex)"
  1499. >生成词云</el-button
  1500. >
  1501. <el-button
  1502. type="primary"
  1503. v-if="
  1504. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1505. "
  1506. style="position: absolute; right: 30px; top: -45px"
  1507. @click="uploadWorks(toolIndex)"
  1508. >导出作业</el-button
  1509. >
  1510. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1511. position: absolute;
  1512. right: 30px;
  1513. transform: translateY(-130%);
  1514. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1515. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1516. </div>
  1517. <div
  1518. v-if="
  1519. tType &&
  1520. tType == 2 &&
  1521. !sIsOpen &&
  1522. tool.tool.indexOf(16) != -1
  1523. "
  1524. class="worksBox"
  1525. >
  1526. <div
  1527. class="zuoyeYulan"
  1528. v-if="workStudent[toolIndex].length > 0"
  1529. >
  1530. <span class="worksTitle">作业预览</span>
  1531. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1532. </div>
  1533. <div
  1534. class="worksDetailBox"
  1535. v-if="workStudent[toolIndex].length > 0"
  1536. >
  1537. <div
  1538. class="works"
  1539. style="
  1540. width: 200px;
  1541. height: 140px;
  1542. margin: 10px 10px 10px 0;
  1543. box-shadow: 0 0 6px 1px #dfdada;
  1544. "
  1545. v-for="(w, wIndex) in workStudent[toolIndex]"
  1546. :key="wIndex"
  1547. >
  1548. <div class="workImg" v-if="w.type == 0">
  1549. <img
  1550. :src="w.works"
  1551. @click="previewImg(w.works,w)"
  1552. alt
  1553. />
  1554. <div
  1555. class="answerScore"
  1556. v-if="w.score"
  1557. @click.stop="openScore(w)"
  1558. :class="{
  1559. rightW:
  1560. w.userid == userid || tType == 1 || tType == 4,
  1561. }"
  1562. >
  1563. {{ JSON.parse(w.score).wScore }}分
  1564. </div>
  1565. <div
  1566. class="answerScore"
  1567. @click.stop="openScore(w)"
  1568. v-else-if="courseDetail.userid == userid"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid || tType == 1 || tType == 4,
  1572. }"
  1573. >
  1574. 评分
  1575. </div>
  1576. <img
  1577. class="deleteImg"
  1578. src="../assets/deleteworks.png"
  1579. v-if="
  1580. w.userid == userid || tType == 1 || tType == 4
  1581. "
  1582. @click.stop="deleteWorks(w.wid)"
  1583. alt
  1584. />
  1585. </div>
  1586. <div class="workImg" v-if="w.type == 1">
  1587. <img :src="word" @click="openFile(w.works,w)" alt />
  1588. <div
  1589. class="answerScore"
  1590. v-if="w.score"
  1591. @click.stop="openScore(w)"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. {{ JSON.parse(w.score).wScore }}分
  1598. </div>
  1599. <div
  1600. class="answerScore"
  1601. @click.stop="openScore(w)"
  1602. v-else-if="courseDetail.userid == userid"
  1603. :class="{
  1604. rightW:
  1605. w.userid == userid || tType == 1 || tType == 4,
  1606. }"
  1607. >
  1608. 评分
  1609. </div>
  1610. <img
  1611. class="deleteImg"
  1612. src="../assets/deleteworks.png"
  1613. v-if="
  1614. w.userid == userid || tType == 1 || tType == 4
  1615. "
  1616. @click.stop="deleteWorks(w.wid)"
  1617. alt
  1618. />
  1619. </div>
  1620. <div class="workImg" v-if="w.type == 3">
  1621. <img
  1622. style="cursor: pointer"
  1623. :src="video"
  1624. @click="openVideo(w)"
  1625. alt
  1626. />
  1627. <div
  1628. class="answerScore"
  1629. v-if="w.score"
  1630. @click.stop="openScore(w)"
  1631. :class="{
  1632. rightW:
  1633. w.userid == userid || tType == 1 || tType == 4,
  1634. }"
  1635. >
  1636. {{ JSON.parse(w.score).wScore }}分
  1637. </div>
  1638. <div
  1639. class="answerScore"
  1640. @click.stop="openScore(w)"
  1641. v-else-if="courseDetail.userid == userid"
  1642. :class="{
  1643. rightW:
  1644. w.userid == userid || tType == 1 || tType == 4,
  1645. }"
  1646. >
  1647. 评分
  1648. </div>
  1649. <img
  1650. class="deleteImg"
  1651. src="../assets/deleteworks.png"
  1652. v-if="
  1653. w.userid == userid || tType == 1 || tType == 4
  1654. "
  1655. @click.stop="deleteWorks(w.wid)"
  1656. alt
  1657. />
  1658. </div>
  1659. <div class="workImg" v-if="w.type == 12">
  1660. <img
  1661. style="cursor: pointer"
  1662. :src="word2"
  1663. @click="downloadFile(w.works)"
  1664. alt
  1665. />
  1666. <div
  1667. class="answerScore"
  1668. v-if="w.score"
  1669. @click.stop="openScore(w)"
  1670. :class="{
  1671. rightW:
  1672. w.userid == userid || tType == 1 || tType == 4,
  1673. }"
  1674. >
  1675. {{ JSON.parse(w.score).wScore }}分
  1676. </div>
  1677. <div
  1678. class="answerScore"
  1679. @click.stop="openScore(w)"
  1680. v-else-if="courseDetail.userid == userid"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. 评分
  1687. </div>
  1688. <img
  1689. class="deleteImg"
  1690. src="../assets/deleteworks.png"
  1691. v-if="
  1692. w.userid == userid || tType == 1 || tType == 4
  1693. "
  1694. @click.stop="deleteWorks(w.wid)"
  1695. alt
  1696. />
  1697. </div>
  1698. <div class="worksName">
  1699. <div>{{ w.sName }}</div>
  1700. </div>
  1701. </div>
  1702. </div>
  1703. </div>
  1704. <div
  1705. v-if="
  1706. tType &&
  1707. tType == 2 &&
  1708. !sIsOpen &&
  1709. tool.tool.indexOf(32) != -1
  1710. "
  1711. class="worksBox"
  1712. >
  1713. <div
  1714. class="zuoyeYulan"
  1715. v-if="workStudent[toolIndex].length > 0"
  1716. >
  1717. <span class="worksTitle">作业预览</span>
  1718. </div>
  1719. <div
  1720. class="worksDetailBox"
  1721. v-if="workStudent[toolIndex].length > 0"
  1722. >
  1723. <div
  1724. class="works"
  1725. style="
  1726. width: 200px;
  1727. height: 140px;
  1728. margin: 10px 10px 10px 0;
  1729. box-shadow: 0 0 6px 1px #dfdada;
  1730. "
  1731. v-for="(w, wIndex) in workStudent[toolIndex]"
  1732. :key="wIndex"
  1733. >
  1734. <div class="workImg">
  1735. <img
  1736. :src="word2"
  1737. @click="downloadFile(w.works)"
  1738. alt
  1739. />
  1740. <div
  1741. class="answerScore"
  1742. v-if="w.score"
  1743. @click.stop="openScore(w)"
  1744. :class="{
  1745. rightW:
  1746. w.userid == userid || tType == 1 || tType == 4,
  1747. }"
  1748. >
  1749. {{ JSON.parse(w.score).wScore }}分
  1750. </div>
  1751. <div
  1752. class="answerScore"
  1753. @click.stop="openScore(w)"
  1754. v-else-if="courseDetail.userid == userid"
  1755. :class="{
  1756. rightW:
  1757. w.userid == userid || tType == 1 || tType == 4,
  1758. }"
  1759. >
  1760. 评分
  1761. </div>
  1762. <img
  1763. class="deleteImg"
  1764. src="../assets/deleteworks.png"
  1765. v-if="
  1766. w.userid == userid || tType == 1 || tType == 4
  1767. "
  1768. @click.stop="deleteWorks(w.wid)"
  1769. alt
  1770. />
  1771. </div>
  1772. <div class="worksName">
  1773. <div>{{ w.sName }}</div>
  1774. </div>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. <div
  1779. v-if="
  1780. tType &&
  1781. tType == 2 &&
  1782. !sIsOpen &&
  1783. tool.tool.indexOf(57) != -1
  1784. "
  1785. class="worksBox"
  1786. >
  1787. <div
  1788. class="zuoyeYulan"
  1789. v-if="workStudent[toolIndex].length > 0"
  1790. >
  1791. <span class="worksTitle">作业预览</span>
  1792. </div>
  1793. <div
  1794. class="worksDetailBox"
  1795. v-if="workStudent[toolIndex].length > 0"
  1796. >
  1797. <div
  1798. class="works"
  1799. style="
  1800. width: 200px;
  1801. height: 140px;
  1802. margin: 10px 10px 10px 0;
  1803. box-shadow: 0 0 6px 1px #dfdada;
  1804. "
  1805. v-for="(w, wIndex) in workStudent[toolIndex]"
  1806. :key="wIndex"
  1807. >
  1808. <div class="workImg">
  1809. <img
  1810. :src="word2"
  1811. @click="downloadFile(w.works)"
  1812. v-if="w.type == 12"
  1813. alt
  1814. />
  1815. <img
  1816. :src="word2"
  1817. @click="
  1818. openCocoPi(57, toolIndex, w.userid, w.sName)
  1819. "
  1820. v-else-if="w.type == 15"
  1821. alt
  1822. />
  1823. <div
  1824. class="answerScore"
  1825. v-if="w.score"
  1826. @click.stop="openScore(w)"
  1827. :class="{
  1828. rightW:
  1829. w.userid == userid || tType == 1 || tType == 4,
  1830. }"
  1831. >
  1832. {{ JSON.parse(w.score).wScore }}分
  1833. </div>
  1834. <div
  1835. class="answerScore"
  1836. @click.stop="openScore(w)"
  1837. v-else-if="courseDetail.userid == userid"
  1838. :class="{
  1839. rightW:
  1840. w.userid == userid || tType == 1 || tType == 4,
  1841. }"
  1842. >
  1843. 评分
  1844. </div>
  1845. <img
  1846. class="deleteImg"
  1847. src="../assets/deleteworks.png"
  1848. v-if="
  1849. w.userid == userid || tType == 1 || tType == 4
  1850. "
  1851. @click.stop="deleteWorks(w.wid)"
  1852. alt
  1853. />
  1854. </div>
  1855. <div class="worksName">
  1856. <div>{{ w.sName }}</div>
  1857. </div>
  1858. </div>
  1859. </div>
  1860. </div>
  1861. <div
  1862. v-if="
  1863. tType &&
  1864. tType == 2 &&
  1865. !sIsOpen &&
  1866. tool.tool.indexOf(4) != -1
  1867. "
  1868. class="worksBox"
  1869. >
  1870. <div
  1871. class="zuoyeYulan"
  1872. v-if="workStudent[toolIndex].length > 0"
  1873. >
  1874. <span class="worksTitle">作业预览</span>
  1875. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1876. </div>
  1877. <div
  1878. class="worksDetailBox"
  1879. v-if="workStudent[toolIndex].length > 0"
  1880. >
  1881. <div
  1882. class="isWorksName2"
  1883. v-for="(w, wIndex) in workStudent[toolIndex]"
  1884. :key="wIndex"
  1885. @click="
  1886. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1887. "
  1888. >
  1889. {{ w.sName }}
  1890. <img
  1891. class="deleteImg deleteImg2"
  1892. src="../assets/deleteworks.png"
  1893. v-if="w.userid == userid || tType == 1 || tType == 4"
  1894. @click.stop="deleteWorks(w.wid)"
  1895. alt
  1896. />
  1897. </div>
  1898. <!-- <div
  1899. class="works"
  1900. style="
  1901. width: 200px;
  1902. height: 140px;
  1903. border-radius: 10px;
  1904. box-shadow: 0 0 6px 1px #dfdada;
  1905. overflow: hidden;
  1906. "
  1907. v-for="(w, wIndex) in workStudent[toolIndex]"
  1908. :key="wIndex"
  1909. >
  1910. <div class="workImg">
  1911. <img
  1912. src="../assets/icon/works/noImg.png"
  1913. @click="
  1914. openTools(
  1915. 4,
  1916. toolIndex,
  1917. taskCount,
  1918. w.works,
  1919. w.sName
  1920. )
  1921. "
  1922. alt
  1923. />
  1924. </div>
  1925. <div class="worksName">
  1926. <div>{{ w.sName }}</div>
  1927. <div>{{ w.time }}</div>
  1928. </div>
  1929. </div> -->
  1930. </div>
  1931. </div>
  1932. <div
  1933. v-if="
  1934. tType &&
  1935. ((tType == 2 && sIsOpen == true) ||
  1936. tType == 1 ||
  1937. tType == 4) &&
  1938. tool.tool.indexOf(62) != -1
  1939. "
  1940. class="worksBox"
  1941. >
  1942. <div
  1943. class="zuoyeYulan"
  1944. v-if="
  1945. worksStudent.length &&
  1946. worksStudent[toolIndex].length > 0
  1947. "
  1948. >
  1949. <div class="worksTop">
  1950. <div>作业预览</div>
  1951. <div
  1952. class="corOpen"
  1953. @click="contract(toolIndex)"
  1954. v-if="
  1955. (isCloseList[toolIndex].isCloseBoolean) &&
  1956. isCloseList[toolIndex].isClose == 0
  1957. "
  1958. >
  1959. 折叠
  1960. </div>
  1961. <div
  1962. class="corOpen"
  1963. @click="contract(toolIndex)"
  1964. v-if="isCloseList[toolIndex].isClose == 1"
  1965. >
  1966. 展开
  1967. </div>
  1968. </div>
  1969. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1970. </div>
  1971. <div>
  1972. <div
  1973. :id="'tool-' + toolIndex"
  1974. :style="{
  1975. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1976. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1977. }"
  1978. class="worksDetailBox"
  1979. v-if="
  1980. worksStudent.length &&
  1981. worksStudent[toolIndex].length > 0
  1982. "
  1983. >
  1984. <div
  1985. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1986. :key="wIndex"
  1987. class="isWorksName2"
  1988. @click="
  1989. openTools(
  1990. 62,
  1991. toolIndex,
  1992. taskCount,
  1993. w.works,
  1994. w.sName
  1995. )
  1996. "
  1997. >
  1998. {{ w.sName }}
  1999. <img
  2000. class="deleteImg deleteImg2"
  2001. src="../assets/deleteworks.png"
  2002. v-if="
  2003. w.userid == userid || tType == 1 || tType == 4
  2004. "
  2005. @click.stop="deleteWorks(w.wid)"
  2006. alt
  2007. />
  2008. </div>
  2009. </div>
  2010. </div>
  2011. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2012. 未提交
  2013. </div>
  2014. <div
  2015. class="noWorksS"
  2016. v-if="noWorksS && noWorksS[toolIndex].length"
  2017. >
  2018. <div
  2019. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2020. :key="sIndex"
  2021. class="noWorksName"
  2022. >
  2023. <el-tooltip effect="dark" :content="s.student" placement="top">
  2024. <span>{{ s.student }}</span>
  2025. </el-tooltip>
  2026. </div>
  2027. </div>
  2028. </div>
  2029. <div
  2030. v-if="
  2031. tType &&
  2032. tType == 2 &&
  2033. !sIsOpen &&
  2034. tool.tool.indexOf(62) != -1
  2035. "
  2036. class="worksBox"
  2037. >
  2038. <div
  2039. class="zuoyeYulan"
  2040. v-if="workStudent[toolIndex].length > 0"
  2041. >
  2042. <span class="worksTitle">作业预览</span>
  2043. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2044. </div>
  2045. <div
  2046. class="worksDetailBox"
  2047. v-if="workStudent[toolIndex].length > 0"
  2048. >
  2049. <div
  2050. class="isWorksName2"
  2051. v-for="(w, wIndex) in workStudent[toolIndex]"
  2052. :key="wIndex"
  2053. @click="
  2054. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2055. "
  2056. >
  2057. {{ w.sName }}
  2058. <img
  2059. class="deleteImg deleteImg2"
  2060. src="../assets/deleteworks.png"
  2061. v-if="w.userid == userid || tType == 1 || tType == 4"
  2062. @click.stop="deleteWorks(w.wid)"
  2063. alt
  2064. />
  2065. </div>
  2066. </div>
  2067. </div>
  2068. <div
  2069. v-if="
  2070. tType &&
  2071. tType == 2 &&
  2072. !sIsOpen &&
  2073. tool.tool.indexOf(45) != -1
  2074. "
  2075. class="worksBox"
  2076. >
  2077. <div
  2078. class="zuoyeYulan"
  2079. v-if="workStudent[toolIndex].length > 0"
  2080. >
  2081. <span class="worksTitle">作业预览</span>
  2082. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2083. </div>
  2084. <div
  2085. class="worksDetailBox"
  2086. v-if="workStudent[toolIndex].length > 0"
  2087. >
  2088. <div
  2089. class="isWorksName2"
  2090. v-for="(w, wIndex) in workStudent[toolIndex]"
  2091. :key="wIndex"
  2092. @click="
  2093. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2094. "
  2095. >
  2096. {{ w.sName }}
  2097. <img
  2098. class="deleteImg deleteImg2"
  2099. src="../assets/deleteworks.png"
  2100. v-if="w.userid == userid || tType == 1 || tType == 4"
  2101. @click.stop="deleteWorks(w.wid)"
  2102. alt
  2103. />
  2104. </div>
  2105. </div>
  2106. </div>
  2107. <div
  2108. v-if="
  2109. tType &&
  2110. tType == 2 &&
  2111. !sIsOpen &&
  2112. tool.tool.indexOf(69) != -1
  2113. "
  2114. class="worksBox"
  2115. >
  2116. <div
  2117. class="zuoyeYulan"
  2118. v-if="workStudent[toolIndex].length > 0"
  2119. >
  2120. <span class="worksTitle">作业预览</span>
  2121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2122. </div>
  2123. <div
  2124. class="worksDetailBox"
  2125. v-if="workStudent[toolIndex].length > 0"
  2126. >
  2127. <div
  2128. class="isWorksName2"
  2129. v-for="(w, wIndex) in workStudent[toolIndex]"
  2130. :key="wIndex"
  2131. @click="
  2132. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2133. "
  2134. >
  2135. {{ w.sName }}
  2136. <img
  2137. class="deleteImg deleteImg2"
  2138. src="../assets/deleteworks.png"
  2139. v-if="w.userid == userid || tType == 1 || tType == 4"
  2140. @click.stop="deleteWorks(w.wid)"
  2141. alt
  2142. />
  2143. </div>
  2144. </div>
  2145. </div>
  2146. <div
  2147. v-if="
  2148. tType &&
  2149. tType == 2 &&
  2150. !sIsOpen &&
  2151. tool.tool.indexOf(15) != -1
  2152. "
  2153. class="worksBox"
  2154. >
  2155. <div
  2156. class="zuoyeYulan"
  2157. v-if="workStudent[toolIndex].length > 0"
  2158. >
  2159. <span class="worksTitle">作业预览</span>
  2160. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2161. </div>
  2162. <div
  2163. class="worksDetailBox"
  2164. v-if="workStudent[toolIndex].length > 0"
  2165. >
  2166. <div
  2167. class="works"
  2168. v-for="(w, wIndex) in workStudent[toolIndex]"
  2169. :key="wIndex"
  2170. >
  2171. <div class="workImg">
  2172. <!-- <img
  2173. src="../assets/icon/works/noImg.png"
  2174. @click="openTools(15, toolIndex, taskCount, w.works)"
  2175. alt=""
  2176. />-->
  2177. <div class="answerBg">
  2178. <!-- <div>{{ w.sName }}</div> -->
  2179. <el-tooltip
  2180. class="item"
  2181. effect="light"
  2182. :content="JSON.parse(w.works)[0].answer"
  2183. placement="top"
  2184. >
  2185. <div class="answerContent">
  2186. {{ JSON.parse(w.works)[0].answer }}
  2187. </div>
  2188. </el-tooltip>
  2189. <div
  2190. class="answerScore"
  2191. v-if="w.score"
  2192. @click.stop="openScore(w)"
  2193. :class="{
  2194. rightW:
  2195. w.userid == userid ||
  2196. tType == 1 ||
  2197. tType == 4,
  2198. }"
  2199. >
  2200. {{ JSON.parse(w.score).wScore }}分
  2201. </div>
  2202. <div
  2203. class="answerScore"
  2204. @click.stop="openScore(w)"
  2205. v-else-if="courseDetail.userid == userid"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid ||
  2209. tType == 1 ||
  2210. tType == 4,
  2211. }"
  2212. >
  2213. 评分
  2214. </div>
  2215. <img
  2216. class="deleteImg"
  2217. src="../assets/deleteworks.png"
  2218. v-if="
  2219. w.userid == userid || tType == 1 || tType == 4
  2220. "
  2221. @click.stop="deleteWorks(w.wid)"
  2222. alt
  2223. />
  2224. </div>
  2225. <div class="comment">
  2226. <div class="worksName">
  2227. <div>{{ w.sName }}</div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. <div
  2235. v-if="
  2236. tType &&
  2237. tType == 2 &&
  2238. !sIsOpen &&
  2239. tool.tool.indexOf(1) != -1
  2240. "
  2241. class="worksBox"
  2242. >
  2243. <div
  2244. class="zuoyeYulan"
  2245. v-if="workStudent[toolIndex].length > 0"
  2246. >
  2247. <span class="worksTitle">作业预览</span>
  2248. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2249. </div>
  2250. <div
  2251. class="worksDetailBox"
  2252. v-if="workStudent[toolIndex].length > 0"
  2253. >
  2254. <div
  2255. class="works"
  2256. style="
  2257. width: 200px;
  2258. height: 140px;
  2259. margin: 10px 10px 10px 0;
  2260. box-shadow: 0 0 6px 1px #dfdada;
  2261. "
  2262. v-for="(w, wIndex) in workStudent[toolIndex]"
  2263. :key="wIndex"
  2264. >
  2265. <div class="workImg">
  2266. <img
  2267. :src="w.works"
  2268. @click="previewImg(w.works,w)"
  2269. alt
  2270. />
  2271. <div
  2272. class="answerScore"
  2273. v-if="w.score"
  2274. @click.stop="openScore(w)"
  2275. :class="{
  2276. rightW:
  2277. w.userid == userid || tType == 1 || tType == 4,
  2278. }"
  2279. >
  2280. {{ JSON.parse(w.score).wScore }}分
  2281. </div>
  2282. <div
  2283. class="answerScore"
  2284. @click.stop="openScore(w)"
  2285. v-else-if="courseDetail.userid == userid"
  2286. :class="{
  2287. rightW:
  2288. w.userid == userid || tType == 1 || tType == 4,
  2289. }"
  2290. >
  2291. 评分
  2292. </div>
  2293. <img
  2294. class="deleteImg"
  2295. src="../assets/deleteworks.png"
  2296. v-if="
  2297. w.userid == userid || tType == 1 || tType == 4
  2298. "
  2299. @click.stop="deleteWorks(w.wid)"
  2300. alt
  2301. />
  2302. </div>
  2303. <div class="worksName">
  2304. <div>{{ w.sName }}</div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. <div
  2310. v-if="
  2311. tType &&
  2312. tType == 2 &&
  2313. !sIsOpen &&
  2314. tool.tool.indexOf(3) != -1
  2315. "
  2316. class="worksBox"
  2317. >
  2318. <div
  2319. class="zuoyeYulan"
  2320. v-if="workStudent[toolIndex].length > 0"
  2321. >
  2322. <span class="worksTitle">作业预览</span>
  2323. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2324. </div>
  2325. <div
  2326. class="worksDetailBox"
  2327. v-if="workStudent[toolIndex].length > 0"
  2328. >
  2329. <div
  2330. class="works"
  2331. style="
  2332. width: 200px;
  2333. height: 140px;
  2334. margin: 10px 10px 10px 0;
  2335. box-shadow: 0 0 6px 1px #dfdada;
  2336. "
  2337. v-for="(w, wIndex) in workStudent[toolIndex]"
  2338. :key="wIndex"
  2339. >
  2340. <div class="workImg">
  2341. <img
  2342. :src="w.works"
  2343. @click="previewImg(w.works,w)"
  2344. alt
  2345. />
  2346. <div
  2347. class="answerScore"
  2348. v-if="w.score"
  2349. @click.stop="openScore(w)"
  2350. :class="{
  2351. rightW:
  2352. w.userid == userid || tType == 1 || tType == 4,
  2353. }"
  2354. >
  2355. {{ JSON.parse(w.score).wScore }}分
  2356. </div>
  2357. <div
  2358. class="answerScore"
  2359. @click.stop="openScore(w)"
  2360. v-else-if="courseDetail.userid == userid"
  2361. :class="{
  2362. rightW:
  2363. w.userid == userid || tType == 1 || tType == 4,
  2364. }"
  2365. >
  2366. 评分
  2367. </div>
  2368. <img
  2369. class="deleteImg"
  2370. src="../assets/deleteworks.png"
  2371. v-if="
  2372. w.userid == userid || tType == 1 || tType == 4
  2373. "
  2374. @click.stop="deleteWorks(w.wid)"
  2375. alt
  2376. />
  2377. </div>
  2378. <div class="worksName">
  2379. <div>{{ w.sName }}</div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <div
  2385. v-if="
  2386. tType &&
  2387. tType == 2 &&
  2388. !sIsOpen &&
  2389. tool.tool.indexOf(6) != -1
  2390. "
  2391. class="worksBox"
  2392. >
  2393. <div
  2394. class="zuoyeYulan"
  2395. v-if="workStudent[toolIndex].length > 0"
  2396. >
  2397. <span class="worksTitle">作业预览</span>
  2398. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2399. </div>
  2400. <div
  2401. class="worksDetailBox"
  2402. v-if="workStudent[toolIndex].length > 0"
  2403. >
  2404. <div
  2405. class="works"
  2406. style="
  2407. width: 200px;
  2408. height: 140px;
  2409. margin: 10px 10px 10px 0;
  2410. box-shadow: 0 0 6px 1px #dfdada;
  2411. "
  2412. v-for="(w, wIndex) in workStudent[toolIndex]"
  2413. :key="wIndex"
  2414. >
  2415. <div class="workImg">
  2416. <img
  2417. :src="w.works"
  2418. @click="previewImg(w.works,w)"
  2419. alt
  2420. />
  2421. <div
  2422. class="answerScore"
  2423. v-if="w.score"
  2424. @click.stop="openScore(w)"
  2425. :class="{
  2426. rightW:
  2427. w.userid == userid || tType == 1 || tType == 4,
  2428. }"
  2429. >
  2430. {{ JSON.parse(w.score).wScore }}分
  2431. </div>
  2432. <div
  2433. class="answerScore"
  2434. @click.stop="openScore(w)"
  2435. v-else-if="courseDetail.userid == userid"
  2436. :class="{
  2437. rightW:
  2438. w.userid == userid || tType == 1 || tType == 4,
  2439. }"
  2440. >
  2441. 评分
  2442. </div>
  2443. <img
  2444. class="deleteImg"
  2445. src="../assets/deleteworks.png"
  2446. v-if="
  2447. w.userid == userid || tType == 1 || tType == 4
  2448. "
  2449. @click.stop="deleteWorks(w.wid)"
  2450. alt
  2451. />
  2452. </div>
  2453. <div class="worksName">
  2454. <div>{{ w.sName }}</div>
  2455. </div>
  2456. </div>
  2457. </div>
  2458. </div>
  2459. <div
  2460. v-if="
  2461. tType &&
  2462. tType == 2 &&
  2463. !sIsOpen &&
  2464. tool.tool.indexOf(7) != -1
  2465. "
  2466. class="worksBox"
  2467. >
  2468. <div
  2469. class="zuoyeYulan"
  2470. v-if="workStudent[toolIndex].length > 0"
  2471. >
  2472. <span class="worksTitle">作业预览</span>
  2473. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2474. </div>
  2475. <div
  2476. class="worksDetailBox"
  2477. v-if="workStudent[toolIndex].length > 0"
  2478. >
  2479. <div
  2480. class="works"
  2481. style="
  2482. width: 200px;
  2483. height: 140px;
  2484. margin: 10px 10px 10px 0;
  2485. box-shadow: 0 0 6px 1px #dfdada;
  2486. "
  2487. v-for="(w, wIndex) in workStudent[toolIndex]"
  2488. :key="wIndex"
  2489. >
  2490. <div class="workImg">
  2491. <img
  2492. :src="w.works"
  2493. @click="previewImg(w.works,w)"
  2494. alt
  2495. />
  2496. <div
  2497. class="answerScore"
  2498. v-if="w.score"
  2499. @click.stop="openScore(w)"
  2500. :class="{
  2501. rightW:
  2502. w.userid == userid || tType == 1 || tType == 4,
  2503. }"
  2504. >
  2505. {{ JSON.parse(w.score).wScore }}分
  2506. </div>
  2507. <div
  2508. class="answerScore"
  2509. @click.stop="openScore(w)"
  2510. v-else-if="courseDetail.userid == userid"
  2511. :class="{
  2512. rightW:
  2513. w.userid == userid || tType == 1 || tType == 4,
  2514. }"
  2515. >
  2516. 评分
  2517. </div>
  2518. <img
  2519. class="deleteImg"
  2520. src="../assets/deleteworks.png"
  2521. v-if="
  2522. w.userid == userid || tType == 1 || tType == 4
  2523. "
  2524. @click.stop="deleteWorks(w.wid)"
  2525. alt
  2526. />
  2527. </div>
  2528. <div class="worksName">
  2529. <div>{{ w.sName }}</div>
  2530. </div>
  2531. </div>
  2532. </div>
  2533. </div>
  2534. <div
  2535. v-if="
  2536. tType &&
  2537. tType == 2 &&
  2538. !sIsOpen &&
  2539. tool.tool.indexOf(26) != -1
  2540. "
  2541. class="worksBox"
  2542. >
  2543. <div
  2544. class="zuoyeYulan"
  2545. v-if="workStudent[toolIndex].length > 0"
  2546. >
  2547. <span class="worksTitle">作业预览</span>
  2548. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2549. </div>
  2550. <div
  2551. class="worksDetailBox"
  2552. v-if="workStudent[toolIndex].length > 0"
  2553. >
  2554. <div
  2555. class="works"
  2556. style="
  2557. width: 200px;
  2558. height: 140px;
  2559. margin: 10px 10px 10px 0;
  2560. box-shadow: 0 0 6px 1px #dfdada;
  2561. "
  2562. v-for="(w, wIndex) in workStudent[toolIndex]"
  2563. :key="wIndex"
  2564. >
  2565. <div class="workImg">
  2566. <img
  2567. :src="w.works"
  2568. @click="previewImg(w.works,w)"
  2569. alt
  2570. />
  2571. <img
  2572. class="deleteImg"
  2573. src="../assets/deleteworks.png"
  2574. v-if="
  2575. w.userid == userid || tType == 1 || tType == 4
  2576. "
  2577. @click.stop="deleteWorks(w.wid)"
  2578. alt
  2579. />
  2580. </div>
  2581. <div class="worksName">
  2582. <div>{{ w.sName }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. <div
  2588. v-if="
  2589. tType &&
  2590. ((tType == 2 && sIsOpen == true) ||
  2591. tType == 1 ||
  2592. tType == 4) &&
  2593. tool.tool.indexOf(16) != -1
  2594. "
  2595. class="worksBox"
  2596. >
  2597. <div
  2598. class="zuoyeYulan"
  2599. v-if="
  2600. (worksStudent.length &&
  2601. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2602. "
  2603. >
  2604. <div class="worksTop">
  2605. <div>作业预览</div>
  2606. <div
  2607. class="corOpen"
  2608. @click="contract(toolIndex)"
  2609. v-if="
  2610. (isCloseList[toolIndex].isCloseBoolean) &&
  2611. isCloseList[toolIndex].isClose == 0
  2612. "
  2613. >
  2614. 折叠
  2615. </div>
  2616. <div
  2617. class="corOpen"
  2618. @click="contract(toolIndex)"
  2619. v-if="isCloseList[toolIndex].isClose == 1"
  2620. >
  2621. 展开
  2622. </div>
  2623. </div>
  2624. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2625. </div>
  2626. <div
  2627. class="group_workBox"
  2628. v-for="(g, gindex) in courseGroup.group"
  2629. :key="gindex"
  2630. >
  2631. <div class="group_box">
  2632. <div class="group_title">
  2633. <el-tooltip
  2634. class="item"
  2635. effect="light"
  2636. :content="g.name"
  2637. placement="top"
  2638. >
  2639. <div class="group_name">{{ g.name }}</div>
  2640. </el-tooltip>
  2641. </div>
  2642. <div
  2643. class="group_work"
  2644. v-if="
  2645. g.works &&
  2646. g.works.length &&
  2647. g.works[toolIndex].length
  2648. "
  2649. >
  2650. <div
  2651. class="works"
  2652. style="
  2653. width: 200px;
  2654. height: 140px;
  2655. margin: 10px 10px 10px 0;
  2656. border-radius: 15px;
  2657. box-shadow: 0 0 6px 1px #dfdada;
  2658. "
  2659. v-for="(w, wIndex) in g.works[toolIndex]"
  2660. :key="wIndex"
  2661. :class="w.type == 1 ? 'isTypeOne' : ''"
  2662. >
  2663. <div class="workImg" v-if="w.type == 0">
  2664. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2665. <img
  2666. :src="w.works"
  2667. @click="previewImg(w.works,w)"
  2668. alt
  2669. />
  2670. <div
  2671. class="answerScore"
  2672. v-if="w.score"
  2673. @click.stop="openScore(w)"
  2674. :class="{
  2675. rightW:
  2676. w.userid == userid ||
  2677. tType == 1 ||
  2678. tType == 4 ||
  2679. w.ateacher == userid,
  2680. }"
  2681. >
  2682. {{ JSON.parse(w.score).wScore }}分
  2683. </div>
  2684. <div
  2685. class="answerScore"
  2686. @click.stop="openScore(w)"
  2687. v-else-if="courseDetail.userid == userid"
  2688. :class="{
  2689. rightW:
  2690. w.userid == userid ||
  2691. tType == 1 ||
  2692. tType == 4 ||
  2693. w.ateacher == userid,
  2694. }"
  2695. >
  2696. 评分
  2697. </div>
  2698. <img
  2699. class="deleteImg"
  2700. src="../assets/deleteworks.png"
  2701. v-if="
  2702. w.userid == userid || tType == 1 || tType == 4
  2703. "
  2704. @click.stop="deleteWorks(w.wid)"
  2705. alt
  2706. />
  2707. </div>
  2708. <div class="workImg" v-if="w.type == 1">
  2709. <img :src="word" @click="openFile(w.works,w)" alt />
  2710. <!-- @click="openFile(w.works)" -->
  2711. <div
  2712. class="answerScore"
  2713. v-if="w.score"
  2714. @click.stop="openScore(w)"
  2715. :class="{
  2716. rightW:
  2717. w.userid == userid ||
  2718. tType == 1 ||
  2719. tType == 4 ||
  2720. w.ateacher == userid,
  2721. }"
  2722. >
  2723. {{ JSON.parse(w.score).wScore }}分
  2724. </div>
  2725. <div
  2726. class="answerScore"
  2727. @click.stop="openScore(w)"
  2728. v-else-if="courseDetail.userid == userid"
  2729. :class="{
  2730. rightW:
  2731. w.userid == userid ||
  2732. tType == 1 ||
  2733. tType == 4 ||
  2734. w.ateacher == userid,
  2735. }"
  2736. >
  2737. 评分
  2738. </div>
  2739. <img
  2740. class="deleteImg"
  2741. src="../assets/deleteworks.png"
  2742. v-if="
  2743. w.userid == userid || tType == 1 || tType == 4
  2744. "
  2745. @click.stop="deleteWorks(w.wid)"
  2746. alt
  2747. />
  2748. </div>
  2749. <div class="workImg" v-if="w.type == 3">
  2750. <img
  2751. style="cursor: pointer"
  2752. :src="video"
  2753. @click="openVideo(w)"
  2754. alt
  2755. />
  2756. <!-- @click="openVideo(w.works)" -->
  2757. <div
  2758. class="answerScore"
  2759. v-if="w.score"
  2760. @click.stop="openScore(w)"
  2761. :class="{
  2762. rightW:
  2763. w.userid == userid ||
  2764. tType == 1 ||
  2765. tType == 4 ||
  2766. w.ateacher == userid,
  2767. }"
  2768. >
  2769. {{ JSON.parse(w.score).wScore }}分
  2770. </div>
  2771. <div
  2772. class="answerScore"
  2773. @click.stop="openScore(w)"
  2774. v-else-if="courseDetail.userid == userid"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid ||
  2778. tType == 1 ||
  2779. tType == 4 ||
  2780. w.ateacher == userid,
  2781. }"
  2782. >
  2783. 评分
  2784. </div>
  2785. <img
  2786. class="deleteImg"
  2787. src="../assets/deleteworks.png"
  2788. v-if="
  2789. w.userid == userid || tType == 1 || tType == 4
  2790. "
  2791. @click.stop="deleteWorks(w.wid)"
  2792. alt
  2793. />
  2794. </div>
  2795. <div class="workImg" v-if="w.type == 12">
  2796. <img
  2797. style="cursor: pointer"
  2798. :src="word2"
  2799. @click="downloadFile(w.works)"
  2800. alt
  2801. />
  2802. <!-- @click="openVideo(w.works)" -->
  2803. <div
  2804. class="answerScore"
  2805. v-if="w.score"
  2806. @click.stop="openScore(w)"
  2807. :class="{
  2808. rightW:
  2809. w.userid == userid ||
  2810. tType == 1 ||
  2811. tType == 4 ||
  2812. w.ateacher == userid,
  2813. }"
  2814. >
  2815. {{ JSON.parse(w.score).wScore }}分
  2816. </div>
  2817. <div
  2818. class="answerScore"
  2819. @click.stop="openScore(w)"
  2820. v-else-if="courseDetail.userid == userid"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. 评分
  2830. </div>
  2831. <img
  2832. class="deleteImg"
  2833. src="../assets/deleteworks.png"
  2834. v-if="
  2835. w.userid == userid || tType == 1 || tType == 4
  2836. "
  2837. @click.stop="deleteWorks(w.wid)"
  2838. alt
  2839. />
  2840. </div>
  2841. <div class="comment" style="min-width: 200px">
  2842. <div class="worksName">
  2843. <div>{{ w.sName }}</div>
  2844. </div>
  2845. <div class="commentList">
  2846. <div class="commentList">
  2847. <div
  2848. class="commentImg"
  2849. @click="
  2850. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2851. "
  2852. >
  2853. <img
  2854. :src="w.isLikes == true ? likes : noLikes"
  2855. alt=""
  2856. />
  2857. </div>
  2858. <div>{{ w.likesCount }}</div>
  2859. </div>
  2860. <div
  2861. class="commentList"
  2862. style="margin-right: 15px"
  2863. >
  2864. <div
  2865. class="commentImg"
  2866. @click="
  2867. commentOther(
  2868. w,
  2869. toolIndex,
  2870. wIndex,
  2871. null,
  2872. g.id
  2873. )
  2874. "
  2875. >
  2876. <img
  2877. src="../assets/icon/comment/comment.png"
  2878. alt=""
  2879. />
  2880. </div>
  2881. <div>{{ w.commentCount }}</div>
  2882. </div>
  2883. </div>
  2884. </div>
  2885. </div>
  2886. </div>
  2887. <div class="group_work" v-else>暂无提交作业</div>
  2888. </div>
  2889. </div>
  2890. <div
  2891. :id="'tool-' + toolIndex"
  2892. :style="{
  2893. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2894. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2895. }"
  2896. class="worksDetailBox"
  2897. v-if="
  2898. worksStudent.length &&
  2899. worksStudent[toolIndex].length > 0
  2900. "
  2901. >
  2902. <div
  2903. class="works"
  2904. style="
  2905. width: 200px;
  2906. height: 140px;
  2907. margin: 10px 10px 10px 0;
  2908. border-radius: 15px;
  2909. box-shadow: 0 0 6px 1px #dfdada;
  2910. "
  2911. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2912. :key="wIndex"
  2913. :class="w.type == 1 ? 'isTypeOne' : ''"
  2914. >
  2915. <div class="workImg" v-if="w.type == 0">
  2916. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2917. <img
  2918. :src="w.works"
  2919. @click="previewImg(w.works,w)"
  2920. alt
  2921. />
  2922. <div
  2923. class="answerScore"
  2924. v-if="w.score"
  2925. @click.stop="openScore(w)"
  2926. :class="{
  2927. rightW:
  2928. w.userid == userid ||
  2929. tType == 1 ||
  2930. tType == 4 ||
  2931. w.ateacher == userid,
  2932. }"
  2933. >
  2934. {{ JSON.parse(w.score).wScore }}分
  2935. </div>
  2936. <div
  2937. class="answerScore"
  2938. @click.stop="openScore(w)"
  2939. v-else-if="courseDetail.userid == userid"
  2940. :class="{
  2941. rightW:
  2942. w.userid == userid ||
  2943. tType == 1 ||
  2944. tType == 4 ||
  2945. w.ateacher == userid,
  2946. }"
  2947. >
  2948. 评分
  2949. </div>
  2950. <img
  2951. class="deleteImg"
  2952. src="../assets/deleteworks.png"
  2953. v-if="
  2954. w.userid == userid || tType == 1 || tType == 4
  2955. "
  2956. @click.stop="deleteWorks(w.wid)"
  2957. alt
  2958. />
  2959. </div>
  2960. <div class="workImg" v-if="w.type == 1">
  2961. <img :src="word" @click="openFile(w.works,w)" alt />
  2962. <!-- @click="openFile(w.works)" -->
  2963. <div
  2964. class="answerScore"
  2965. v-if="w.score"
  2966. @click.stop="openScore(w)"
  2967. :class="{
  2968. rightW:
  2969. w.userid == userid ||
  2970. tType == 1 ||
  2971. tType == 4 ||
  2972. w.ateacher == userid,
  2973. }"
  2974. >
  2975. {{ JSON.parse(w.score).wScore }}分
  2976. </div>
  2977. <div
  2978. class="answerScore"
  2979. @click.stop="openScore(w)"
  2980. v-else-if="courseDetail.userid == userid"
  2981. :class="{
  2982. rightW:
  2983. w.userid == userid ||
  2984. tType == 1 ||
  2985. tType == 4 ||
  2986. w.ateacher == userid,
  2987. }"
  2988. >
  2989. 评分
  2990. </div>
  2991. <img
  2992. class="deleteImg"
  2993. src="../assets/deleteworks.png"
  2994. v-if="
  2995. w.userid == userid || tType == 1 || tType == 4
  2996. "
  2997. @click.stop="deleteWorks(w.wid)"
  2998. alt
  2999. />
  3000. </div>
  3001. <div class="workImg" v-if="w.type == 3">
  3002. <img
  3003. style="cursor: pointer"
  3004. :src="video"
  3005. @click="openVideo(w)"
  3006. alt
  3007. />
  3008. <!-- @click="openVideo(w.works)" -->
  3009. <div
  3010. class="answerScore"
  3011. v-if="w.score"
  3012. @click.stop="openScore(w)"
  3013. :class="{
  3014. rightW:
  3015. w.userid == userid ||
  3016. tType == 1 ||
  3017. tType == 4 ||
  3018. w.ateacher == userid,
  3019. }"
  3020. >
  3021. {{ JSON.parse(w.score).wScore }}分
  3022. </div>
  3023. <div
  3024. class="answerScore"
  3025. @click.stop="openScore(w)"
  3026. v-else-if="courseDetail.userid == userid"
  3027. :class="{
  3028. rightW:
  3029. w.userid == userid ||
  3030. tType == 1 ||
  3031. tType == 4 ||
  3032. w.ateacher == userid,
  3033. }"
  3034. >
  3035. 评分
  3036. </div>
  3037. <img
  3038. class="deleteImg"
  3039. src="../assets/deleteworks.png"
  3040. v-if="
  3041. w.userid == userid || tType == 1 || tType == 4
  3042. "
  3043. @click.stop="deleteWorks(w.wid)"
  3044. alt
  3045. />
  3046. </div>
  3047. <div class="workImg" v-if="w.type == 12">
  3048. <img
  3049. style="cursor: pointer"
  3050. :src="word2"
  3051. @click="downloadFile(w.works)"
  3052. alt
  3053. />
  3054. <!-- @click="openVideo(w.works)" -->
  3055. <div
  3056. class="answerScore"
  3057. v-if="w.score"
  3058. @click.stop="openScore(w)"
  3059. :class="{
  3060. rightW:
  3061. w.userid == userid ||
  3062. tType == 1 ||
  3063. tType == 4 ||
  3064. w.ateacher == userid,
  3065. }"
  3066. >
  3067. {{ JSON.parse(w.score).wScore }}分
  3068. </div>
  3069. <div
  3070. class="answerScore"
  3071. @click.stop="openScore(w)"
  3072. v-else-if="courseDetail.userid == userid"
  3073. :class="{
  3074. rightW:
  3075. w.userid == userid ||
  3076. tType == 1 ||
  3077. tType == 4 ||
  3078. w.ateacher == userid,
  3079. }"
  3080. >
  3081. 评分
  3082. </div>
  3083. <img
  3084. class="deleteImg"
  3085. src="../assets/deleteworks.png"
  3086. v-if="
  3087. w.userid == userid || tType == 1 || tType == 4
  3088. "
  3089. @click.stop="deleteWorks(w.wid)"
  3090. alt
  3091. />
  3092. </div>
  3093. <div class="comment" style="min-width: 200px">
  3094. <div class="worksName">
  3095. <div>{{ w.sName }}</div>
  3096. </div>
  3097. <div class="commentList">
  3098. <div class="commentList">
  3099. <div
  3100. class="commentImg"
  3101. @click="
  3102. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3103. "
  3104. >
  3105. <img
  3106. :src="w.isLikes == true ? likes : noLikes"
  3107. alt=""
  3108. />
  3109. </div>
  3110. <div>{{ w.likesCount }}</div>
  3111. </div>
  3112. <div class="commentList" style="margin-right: 15px">
  3113. <div
  3114. class="commentImg"
  3115. @click="commentOther(w, toolIndex, wIndex)"
  3116. >
  3117. <img
  3118. src="../assets/icon/comment/comment.png"
  3119. alt=""
  3120. />
  3121. </div>
  3122. <div>{{ w.commentCount }}</div>
  3123. </div>
  3124. </div>
  3125. </div>
  3126. </div>
  3127. </div>
  3128. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3129. 未提交
  3130. </div>
  3131. <div
  3132. class="noWorksS"
  3133. v-if="noWorksS && noWorksS[toolIndex].length"
  3134. >
  3135. <div
  3136. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3137. :key="sIndex"
  3138. class="noWorksName"
  3139. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3140. >
  3141. <el-tooltip effect="dark" :content="s.student" placement="top">
  3142. <span>{{ s.student }}</span>
  3143. </el-tooltip>
  3144. </div>
  3145. </div>
  3146. </div>
  3147. <div
  3148. v-if="
  3149. tType &&
  3150. ((tType == 2 && sIsOpen == true) ||
  3151. tType == 1 ||
  3152. tType == 4) &&
  3153. tool.tool.indexOf(70) != -1
  3154. "
  3155. class="worksBox"
  3156. >
  3157. <div
  3158. class="zuoyeYulan"
  3159. v-if="
  3160. (worksStudent.length &&
  3161. worksStudent[toolIndex].length > 0)
  3162. "
  3163. >
  3164. <div class="worksTop">
  3165. <div>作业预览</div>
  3166. <div
  3167. class="corOpen"
  3168. @click="contract(toolIndex)"
  3169. v-if="
  3170. (isCloseList[toolIndex].isCloseBoolean) &&
  3171. isCloseList[toolIndex].isClose == 0
  3172. "
  3173. >
  3174. 折叠
  3175. </div>
  3176. <div
  3177. class="corOpen"
  3178. @click="contract(toolIndex)"
  3179. v-if="isCloseList[toolIndex].isClose == 1"
  3180. >
  3181. 展开
  3182. </div>
  3183. </div>
  3184. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3185. </div>
  3186. <div
  3187. :id="'tool-' + toolIndex"
  3188. :style="{
  3189. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3190. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3191. }"
  3192. class="worksDetailBox"
  3193. v-if="
  3194. worksStudent.length &&
  3195. worksStudent[toolIndex].length > 0
  3196. "
  3197. >
  3198. <div
  3199. class="works"
  3200. style="
  3201. width: 200px;
  3202. height: 140px;
  3203. margin: 10px 10px 10px 0;
  3204. border-radius: 15px;
  3205. box-shadow: 0 0 6px 1px #dfdada;
  3206. "
  3207. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3208. :key="wIndex"
  3209. :class="w.type == 1 ? 'isTypeOne' : ''"
  3210. >
  3211. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3212. <img :src="word" alt />
  3213. <img
  3214. class="deleteImg"
  3215. src="../assets/deleteworks.png"
  3216. v-if="
  3217. w.userid == userid || tType == 1 || tType == 4
  3218. "
  3219. @click.stop="deleteWorks(w.wid)"
  3220. alt
  3221. />
  3222. </div>
  3223. <div class="comment" style="min-width: 200px">
  3224. <div class="worksName">
  3225. <div>{{ w.sName }}</div>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. </div>
  3230. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3231. 未提交
  3232. </div>
  3233. <div
  3234. class="noWorksS"
  3235. v-if="noWorksS && noWorksS[toolIndex].length"
  3236. >
  3237. <div
  3238. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3239. :key="sIndex"
  3240. class="noWorksName"
  3241. >
  3242. <el-tooltip effect="dark" :content="s.student" placement="top">
  3243. <span>{{ s.student }}</span>
  3244. </el-tooltip>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. tType &&
  3251. tType == 2 &&
  3252. !sIsOpen &&
  3253. tool.tool.indexOf(70) != -1
  3254. "
  3255. class="worksBox"
  3256. >
  3257. <div
  3258. class="zuoyeYulan"
  3259. v-if="workStudent[toolIndex].length > 0"
  3260. >
  3261. <span class="worksTitle">作业预览</span>
  3262. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3263. </div>
  3264. <div
  3265. class="worksDetailBox"
  3266. v-if="workStudent[toolIndex].length > 0"
  3267. >
  3268. <div
  3269. class="works"
  3270. style="
  3271. width: 200px;
  3272. height: 140px;
  3273. margin: 10px 10px 10px 0;
  3274. box-shadow: 0 0 6px 1px #dfdada;
  3275. "
  3276. v-for="(w, wIndex) in workStudent[toolIndex]"
  3277. :key="wIndex"
  3278. >
  3279. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3280. <img :src="word" alt />
  3281. <img
  3282. class="deleteImg"
  3283. src="../assets/deleteworks.png"
  3284. v-if="
  3285. w.userid == userid || tType == 1 || tType == 4
  3286. "
  3287. @click.stop="deleteWorks(w.wid)"
  3288. alt
  3289. />
  3290. </div>
  3291. <div class="worksName">
  3292. <div>{{ w.sName }}</div>
  3293. </div>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. <div
  3298. v-if="
  3299. tType &&
  3300. ((tType == 2 && sIsOpen == true) ||
  3301. tType == 1 ||
  3302. tType == 4) &&
  3303. tool.tool.indexOf(32) != -1
  3304. "
  3305. class="worksBox"
  3306. >
  3307. <div
  3308. class="zuoyeYulan"
  3309. v-if="
  3310. worksStudent.length &&
  3311. worksStudent[toolIndex].length > 0
  3312. "
  3313. >
  3314. <div class="worksTop">
  3315. <div>作业预览</div>
  3316. <div
  3317. class="corOpen"
  3318. @click="contract(toolIndex)"
  3319. v-if="
  3320. (isCloseList[toolIndex].isCloseBoolean) &&
  3321. isCloseList[toolIndex].isClose == 0
  3322. "
  3323. >
  3324. 折叠
  3325. </div>
  3326. <div
  3327. class="corOpen"
  3328. @click="contract(toolIndex)"
  3329. v-if="isCloseList[toolIndex].isClose == 1"
  3330. >
  3331. 展开
  3332. </div>
  3333. </div>
  3334. </div>
  3335. <div
  3336. :id="'tool-' + toolIndex"
  3337. class="worksDetailBox"
  3338. :style="{
  3339. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3340. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3341. }"
  3342. v-if="
  3343. worksStudent.length &&
  3344. worksStudent[toolIndex].length > 0
  3345. "
  3346. >
  3347. <div
  3348. class="works"
  3349. style="
  3350. width: 200px;
  3351. height: 140px;
  3352. margin: 10px 10px 10px 0;
  3353. border-radius: 15px;
  3354. box-shadow: 0 0 6px 1px #dfdada;
  3355. "
  3356. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3357. :key="wIndex"
  3358. :class="w.type == 1 ? 'isTypeOne' : ''"
  3359. >
  3360. <div class="workImg">
  3361. <img
  3362. :src="word2"
  3363. @click="downloadFile(w.works)"
  3364. alt
  3365. />
  3366. <div
  3367. class="answerScore"
  3368. v-if="w.score"
  3369. @click.stop="openScore(w)"
  3370. :class="{
  3371. rightW:
  3372. w.userid == userid ||
  3373. tType == 1 ||
  3374. tType == 4 ||
  3375. w.ateacher == userid,
  3376. }"
  3377. >
  3378. {{ JSON.parse(w.score).wScore }}分
  3379. </div>
  3380. <div
  3381. class="answerScore"
  3382. @click.stop="openScore(w)"
  3383. v-else-if="courseDetail.userid == userid"
  3384. :class="{
  3385. rightW:
  3386. w.userid == userid ||
  3387. tType == 1 ||
  3388. tType == 4 ||
  3389. w.ateacher == userid,
  3390. }"
  3391. >
  3392. 评分
  3393. </div>
  3394. <img
  3395. class="deleteImg"
  3396. src="../assets/deleteworks.png"
  3397. v-if="
  3398. w.userid == userid || tType == 1 || tType == 4
  3399. "
  3400. @click.stop="deleteWorks(w.wid)"
  3401. alt
  3402. />
  3403. </div>
  3404. <div class="comment" style="min-width: 200px">
  3405. <div class="worksName">
  3406. <div>{{ w.sName }}</div>
  3407. </div>
  3408. <div class="commentList">
  3409. <div class="commentList">
  3410. <div
  3411. class="commentImg"
  3412. @click="
  3413. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3414. "
  3415. >
  3416. <img
  3417. :src="w.isLikes == true ? likes : noLikes"
  3418. alt=""
  3419. />
  3420. </div>
  3421. <div>{{ w.likesCount }}</div>
  3422. </div>
  3423. <div class="commentList" style="margin-right: 15px">
  3424. <div
  3425. class="commentImg"
  3426. @click="commentOther(w, toolIndex, wIndex)"
  3427. >
  3428. <img
  3429. src="../assets/icon/comment/comment.png"
  3430. alt=""
  3431. />
  3432. </div>
  3433. <div>{{ w.commentCount }}</div>
  3434. </div>
  3435. </div>
  3436. </div>
  3437. </div>
  3438. </div>
  3439. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3440. 未提交
  3441. </div>
  3442. <div
  3443. class="noWorksS"
  3444. v-if="noWorksS && noWorksS[toolIndex].length"
  3445. >
  3446. <div
  3447. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3448. :key="sIndex"
  3449. class="noWorksName"
  3450. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3451. >
  3452. <el-tooltip effect="dark" :content="s.student" placement="top">
  3453. <span>{{ s.student }}</span>
  3454. </el-tooltip>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <div
  3459. v-if="
  3460. tType &&
  3461. ((tType == 2 && sIsOpen == true) ||
  3462. tType == 1 ||
  3463. tType == 4) &&
  3464. tool.tool.indexOf(57) != -1
  3465. "
  3466. class="worksBox"
  3467. >
  3468. <div
  3469. class="zuoyeYulan"
  3470. v-if="
  3471. worksStudent.length &&
  3472. worksStudent[toolIndex].length > 0
  3473. "
  3474. >
  3475. <div class="worksTop">
  3476. <div>作业预览</div>
  3477. <div
  3478. class="corOpen"
  3479. @click="contract(toolIndex)"
  3480. v-if="
  3481. (isCloseList[toolIndex].isCloseBoolean) &&
  3482. isCloseList[toolIndex].isClose == 0
  3483. "
  3484. >
  3485. 折叠
  3486. </div>
  3487. <div
  3488. class="corOpen"
  3489. @click="contract(toolIndex)"
  3490. v-if="isCloseList[toolIndex].isClose == 1"
  3491. >
  3492. 展开
  3493. </div>
  3494. </div>
  3495. </div>
  3496. <div
  3497. :id="'tool-' + toolIndex"
  3498. class="worksDetailBox"
  3499. :style="{
  3500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3502. }"
  3503. v-if="
  3504. worksStudent.length &&
  3505. worksStudent[toolIndex].length > 0
  3506. "
  3507. >
  3508. <div
  3509. class="works"
  3510. style="
  3511. width: 200px;
  3512. height: 140px;
  3513. margin: 10px 10px 10px 0;
  3514. border-radius: 15px;
  3515. box-shadow: 0 0 6px 1px #dfdada;
  3516. "
  3517. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3518. :key="wIndex"
  3519. :class="w.type == 1 ? 'isTypeOne' : ''"
  3520. >
  3521. <div class="workImg">
  3522. <img
  3523. :src="word2"
  3524. @click="downloadFile(w.works)"
  3525. v-if="w.type == 12"
  3526. alt
  3527. />
  3528. <img
  3529. :src="word2"
  3530. @click="
  3531. openCocoPi(57, toolIndex, w.userid, w.sName)
  3532. "
  3533. v-else-if="w.type == 15"
  3534. alt
  3535. />
  3536. <div
  3537. class="answerScore"
  3538. v-if="w.score"
  3539. @click.stop="openScore(w)"
  3540. :class="{
  3541. rightW:
  3542. w.userid == userid ||
  3543. tType == 1 ||
  3544. tType == 4 ||
  3545. w.ateacher == userid,
  3546. }"
  3547. >
  3548. {{ JSON.parse(w.score).wScore }}分
  3549. </div>
  3550. <div
  3551. class="answerScore"
  3552. @click.stop="openScore(w)"
  3553. v-else-if="courseDetail.userid == userid"
  3554. :class="{
  3555. rightW:
  3556. w.userid == userid ||
  3557. tType == 1 ||
  3558. tType == 4 ||
  3559. w.ateacher == userid,
  3560. }"
  3561. >
  3562. 评分
  3563. </div>
  3564. <img
  3565. class="deleteImg"
  3566. src="../assets/deleteworks.png"
  3567. v-if="
  3568. w.userid == userid || tType == 1 || tType == 4
  3569. "
  3570. @click.stop="deleteWorks(w.wid)"
  3571. alt
  3572. />
  3573. </div>
  3574. <div class="comment" style="min-width: 200px">
  3575. <div class="worksName">
  3576. <div>{{ w.sName }}</div>
  3577. </div>
  3578. <div class="commentList">
  3579. <div class="commentList">
  3580. <div
  3581. class="commentImg"
  3582. @click="
  3583. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3584. "
  3585. >
  3586. <img
  3587. :src="w.isLikes == true ? likes : noLikes"
  3588. alt=""
  3589. />
  3590. </div>
  3591. <div>{{ w.likesCount }}</div>
  3592. </div>
  3593. <div class="commentList" style="margin-right: 15px">
  3594. <div
  3595. class="commentImg"
  3596. @click="commentOther(w, toolIndex, wIndex)"
  3597. >
  3598. <img
  3599. src="../assets/icon/comment/comment.png"
  3600. alt=""
  3601. />
  3602. </div>
  3603. <div>{{ w.commentCount }}</div>
  3604. </div>
  3605. </div>
  3606. </div>
  3607. </div>
  3608. </div>
  3609. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3610. 未提交
  3611. </div>
  3612. <div
  3613. class="noWorksS"
  3614. v-if="noWorksS && noWorksS[toolIndex].length"
  3615. >
  3616. <div
  3617. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3618. :key="sIndex"
  3619. class="noWorksName"
  3620. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3621. >
  3622. <el-tooltip effect="dark" :content="s.student" placement="top">
  3623. <span>{{ s.student }}</span>
  3624. </el-tooltip>
  3625. </div>
  3626. </div>
  3627. </div>
  3628. <div
  3629. v-if="
  3630. tType &&
  3631. ((tType == 2 && sIsOpen == true) ||
  3632. tType == 1 ||
  3633. tType == 4) &&
  3634. tool.tool.indexOf(72) != -1
  3635. "
  3636. class="worksBox"
  3637. >
  3638. <div
  3639. class="zuoyeYulan"
  3640. v-if="
  3641. worksStudent.length &&
  3642. worksStudent[toolIndex].length > 0
  3643. "
  3644. >
  3645. <div class="worksTop">
  3646. <div>作业预览</div>
  3647. <div
  3648. class="corOpen"
  3649. @click="contract(toolIndex)"
  3650. v-if="
  3651. isCloseList[toolIndex].isCloseBoolean &&
  3652. isCloseList[toolIndex].isClose == 0
  3653. "
  3654. >
  3655. 折叠
  3656. </div>
  3657. <div
  3658. class="corOpen"
  3659. @click="contract(toolIndex)"
  3660. v-if="isCloseList[toolIndex].isClose == 1"
  3661. >
  3662. 展开
  3663. </div>
  3664. </div>
  3665. </div>
  3666. <div
  3667. :id="'tool-' + toolIndex"
  3668. :style="{
  3669. height:
  3670. isCloseList[toolIndex].isClose == 1
  3671. ? retrnToolHeight('tool-' + toolIndex)
  3672. : 'auto',
  3673. overflow:
  3674. isCloseList[toolIndex].isClose == 1
  3675. ? 'hidden'
  3676. : 'unset'
  3677. }"
  3678. class="worksDetailBox"
  3679. v-if="
  3680. worksStudent.length &&
  3681. worksStudent[toolIndex].length > 0
  3682. "
  3683. >
  3684. <div
  3685. class="works"
  3686. style="
  3687. width: 200px;
  3688. height: 140px;
  3689. margin: 10px 10px 10px 0;
  3690. border-radius: 15px;
  3691. box-shadow: 0 0 6px 1px #dfdada;
  3692. "
  3693. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3694. :key="wIndex"
  3695. :class="w.type == 1 ? 'isTypeOne' : ''"
  3696. >
  3697. <div class="workImg">
  3698. <!-- <img
  3699. :src="word2"
  3700. @click="downloadFile(w.works)"
  3701. v-if="w.type == 12"
  3702. alt
  3703. /> -->
  3704. <img
  3705. :src="word2"
  3706. @click="
  3707. openCocoFlow(w)
  3708. "
  3709. alt
  3710. />
  3711. <div
  3712. class="answerScore"
  3713. v-if="w.score"
  3714. @click.stop="openScore(w)"
  3715. :class="{
  3716. rightW:
  3717. w.userid == userid ||
  3718. tType == 1 ||
  3719. tType == 4 ||
  3720. w.ateacher == userid
  3721. }"
  3722. >
  3723. {{ JSON.parse(w.score).wScore }}分
  3724. </div>
  3725. <div
  3726. class="answerScore"
  3727. @click.stop="openScore(w)"
  3728. v-else-if="
  3729. courseDetail.userid == userid &&
  3730. courseDetail.state != 5 &&
  3731. chapInfoList[courseType].chapterInfo[0]
  3732. .taskJson[taskCount].eList &&
  3733. chapInfoList[courseType].chapterInfo[0]
  3734. .taskJson[taskCount].eList.length
  3735. "
  3736. :class="{
  3737. rightW:
  3738. w.userid == userid ||
  3739. tType == 1 ||
  3740. tType == 4 ||
  3741. w.ateacher == userid
  3742. }"
  3743. >
  3744. 评分
  3745. </div>
  3746. <img
  3747. class="deleteImg"
  3748. src="../assets/deleteworks.png"
  3749. v-if="
  3750. w.userid == userid || tType == 1 || tType == 4
  3751. "
  3752. @click.stop="deleteWorks(w.wid)"
  3753. alt
  3754. />
  3755. </div>
  3756. <div class="comment" style="min-width: 200px">
  3757. <div class="worksName">
  3758. <div>{{ w.sName }}</div>
  3759. </div>
  3760. <div class="commentList">
  3761. <div class="commentList">
  3762. <div
  3763. class="commentImg"
  3764. @click="
  3765. isLikes(
  3766. w.wid,
  3767. userid,
  3768. 1,
  3769. null,
  3770. w.isLikes,
  3771. w.sName
  3772. )
  3773. "
  3774. >
  3775. <img
  3776. :src="w.isLikes == true ? likes : noLikes"
  3777. alt=""
  3778. />
  3779. </div>
  3780. <div>{{ w.likesCount }}</div>
  3781. </div>
  3782. <div class="commentList" style="margin-right: 15px">
  3783. <div
  3784. class="commentImg"
  3785. @click="commentOther(w, toolIndex, wIndex)"
  3786. >
  3787. <img
  3788. src="../assets/icon/comment/comment.png"
  3789. alt=""
  3790. />
  3791. </div>
  3792. <div>{{ w.commentCount }}</div>
  3793. </div>
  3794. </div>
  3795. </div>
  3796. </div>
  3797. </div>
  3798. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3799. 未提交
  3800. </div>
  3801. <div
  3802. class="noWorksS"
  3803. v-if="noWorksS && noWorksS[toolIndex].length"
  3804. >
  3805. <div
  3806. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3807. :key="sIndex"
  3808. class="noWorksName"
  3809. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3810. >
  3811. <el-tooltip
  3812. effect="dark"
  3813. :content="s.student"
  3814. placement="top"
  3815. >
  3816. <span>{{ s.student }}</span>
  3817. </el-tooltip>
  3818. </div>
  3819. </div>
  3820. </div>
  3821. <div
  3822. v-if="
  3823. tType &&
  3824. tType == 2 &&
  3825. !sIsOpen &&
  3826. tool.tool.indexOf(72) != -1
  3827. "
  3828. class="worksBox"
  3829. >
  3830. <div
  3831. class="zuoyeYulan"
  3832. v-if="workStudent[toolIndex].length > 0"
  3833. >
  3834. <span class="worksTitle">作业预览</span>
  3835. </div>
  3836. <div
  3837. class="worksDetailBox"
  3838. v-if="workStudent[toolIndex].length > 0"
  3839. >
  3840. <div
  3841. class="works"
  3842. style="
  3843. width: 200px;
  3844. height: 140px;
  3845. margin: 10px 10px 10px 0;
  3846. box-shadow: 0 0 6px 1px #dfdada;
  3847. "
  3848. v-for="(w, wIndex) in workStudent[toolIndex]"
  3849. :key="wIndex"
  3850. >
  3851. <div class="workImg">
  3852. <!-- <img
  3853. :src="word2"
  3854. @click="downloadFile(w.works)"
  3855. v-if="w.type == 12"
  3856. alt
  3857. /> -->
  3858. <img
  3859. :src="word2"
  3860. @click="
  3861. openCocoFlow(w)
  3862. "
  3863. alt
  3864. />
  3865. <div
  3866. class="answerScore"
  3867. v-if="w.score"
  3868. @click.stop="openScore(w)"
  3869. :class="{
  3870. rightW:
  3871. w.userid == userid || tType == 1 || tType == 4
  3872. }"
  3873. >
  3874. {{ JSON.parse(w.score).wScore }}分
  3875. </div>
  3876. <div
  3877. class="answerScore"
  3878. @click.stop="openScore(w)"
  3879. v-else-if="courseDetail.userid == userid"
  3880. :class="{
  3881. rightW:
  3882. w.userid == userid || tType == 1 || tType == 4
  3883. }"
  3884. >
  3885. 评分
  3886. </div>
  3887. <img
  3888. class="deleteImg"
  3889. src="../assets/deleteworks.png"
  3890. v-if="
  3891. w.userid == userid || tType == 1 || tType == 4
  3892. "
  3893. @click.stop="deleteWorks(w.wid)"
  3894. alt
  3895. />
  3896. </div>
  3897. <div class="worksName">
  3898. <div>{{ w.sName }}</div>
  3899. </div>
  3900. </div>
  3901. </div>
  3902. </div>
  3903. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3904. <div
  3905. class="zuoyeYulan"
  3906. v-if="
  3907. worksStudent.length &&
  3908. worksStudent[toolIndex].length > 0
  3909. "
  3910. >
  3911. <span class="worksTitle">作业预览</span>
  3912. <div
  3913. class="corOpen"
  3914. @click="contract(toolIndex)"
  3915. v-if="
  3916. (isCloseList[toolIndex].isCloseBoolean) &&
  3917. isCloseList[toolIndex].isClose == 0
  3918. "
  3919. >
  3920. 折叠
  3921. </div>
  3922. <div
  3923. class="corOpen"
  3924. @click="contract(toolIndex)"
  3925. v-if="isCloseList[toolIndex].isClose == 1"
  3926. >
  3927. 展开
  3928. </div>
  3929. </div>
  3930. <div
  3931. :id="'tool-' + toolIndex"
  3932. :style="{
  3933. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3934. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3935. }"
  3936. class="worksDetailBox"
  3937. v-if="
  3938. worksStudent.length &&
  3939. worksStudent[toolIndex].length > 0
  3940. "
  3941. >
  3942. <div
  3943. class="works"
  3944. style="
  3945. width: 200px;
  3946. height: 140px;
  3947. margin: 10px 10px 10px 0;
  3948. border-radius: 15px;
  3949. box-shadow: 0 0 6px 1px #dfdada;
  3950. "
  3951. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3952. :key="wIndex"
  3953. :class="w.type == 1 ? 'isTypeOne' : ''"
  3954. >
  3955. <div class="workImg" v-if="w.type == 0">
  3956. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3957. <img
  3958. :src="w.works"
  3959. @click="previewImg(w.works,w)"
  3960. alt
  3961. />
  3962. <div
  3963. class="answerScore"
  3964. v-if="w.score"
  3965. @click.stop="openScore(w)"
  3966. :class="{
  3967. rightW:
  3968. w.userid == userid ||
  3969. tType == 1 ||
  3970. tType == 4 ||
  3971. w.ateacher == userid,
  3972. }"
  3973. >
  3974. {{ JSON.parse(w.score).wScore }}分
  3975. </div>
  3976. <div
  3977. class="answerScore"
  3978. @click.stop="openScore(w)"
  3979. v-else-if="courseDetail.userid == userid"
  3980. :class="{
  3981. rightW:
  3982. w.userid == userid ||
  3983. tType == 1 ||
  3984. tType == 4 ||
  3985. w.ateacher == userid,
  3986. }"
  3987. >
  3988. 评分
  3989. </div>
  3990. <img
  3991. class="deleteImg"
  3992. src="../assets/deleteworks.png"
  3993. v-if="
  3994. w.userid == userid || tType == 1 || tType == 4
  3995. "
  3996. @click.stop="deleteWorks(w.wid)"
  3997. alt
  3998. />
  3999. </div>
  4000. <div
  4001. class="workImg"
  4002. style="cursor: pointer"
  4003. v-if="w.type == 1"
  4004. >
  4005. <img :src="word" @click="openFile(w.works,w)" alt />
  4006. <!-- @click="openFile(w.works)" -->
  4007. <div
  4008. class="answerScore"
  4009. v-if="w.score"
  4010. @click.stop="openScore(w)"
  4011. :class="{
  4012. rightW:
  4013. w.userid == userid ||
  4014. tType == 1 ||
  4015. tType == 4 ||
  4016. w.ateacher == userid,
  4017. }"
  4018. >
  4019. {{ JSON.parse(w.score).wScore }}分
  4020. </div>
  4021. <div
  4022. class="answerScore"
  4023. @click.stop="openScore(w)"
  4024. v-else-if="courseDetail.userid == userid"
  4025. :class="{
  4026. rightW:
  4027. w.userid == userid ||
  4028. tType == 1 ||
  4029. tType == 4 ||
  4030. w.ateacher == userid,
  4031. }"
  4032. >
  4033. 评分
  4034. </div>
  4035. <img
  4036. class="deleteImg"
  4037. src="../assets/deleteworks.png"
  4038. v-if="
  4039. w.userid == userid || tType == 1 || tType == 4
  4040. "
  4041. @click.stop="deleteWorks(w.wid)"
  4042. alt
  4043. />
  4044. </div>
  4045. <div class="workImg" v-if="w.type == 3">
  4046. <img
  4047. style="cursor: pointer"
  4048. :src="video"
  4049. @click="openVideo(w)"
  4050. alt
  4051. />
  4052. <!-- @click="openVideo(w.works)" -->
  4053. <div
  4054. class="answerScore"
  4055. v-if="w.score"
  4056. @click.stop="openScore(w)"
  4057. :class="{
  4058. rightW:
  4059. w.userid == userid ||
  4060. tType == 1 ||
  4061. tType == 4 ||
  4062. w.ateacher == userid,
  4063. }"
  4064. >
  4065. {{ JSON.parse(w.score).wScore }}分
  4066. </div>
  4067. <div
  4068. class="answerScore"
  4069. @click.stop="openScore(w)"
  4070. v-else-if="courseDetail.userid == userid"
  4071. :class="{
  4072. rightW:
  4073. w.userid == userid ||
  4074. tType == 1 ||
  4075. tType == 4 ||
  4076. w.ateacher == userid,
  4077. }"
  4078. >
  4079. 评分
  4080. </div>
  4081. <img
  4082. class="deleteImg"
  4083. src="../assets/deleteworks.png"
  4084. v-if="
  4085. w.userid == userid || tType == 1 || tType == 4
  4086. "
  4087. @click.stop="deleteWorks(w.wid)"
  4088. alt
  4089. />
  4090. </div>
  4091. <div class="comment" style="min-width: 200px">
  4092. <div class="worksName">
  4093. <div
  4094. style="cursor: pointer"
  4095. @click="
  4096. openSname(w.sName, w.wid, toolIndex, w.userid)
  4097. "
  4098. >
  4099. {{ w.sName }}
  4100. </div>
  4101. </div>
  4102. <div class="commentList">
  4103. <div class="commentList">
  4104. <div
  4105. class="commentImg"
  4106. @click="
  4107. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4108. "
  4109. >
  4110. <img
  4111. :src="w.isLikes == true ? likes : noLikes"
  4112. alt=""
  4113. />
  4114. </div>
  4115. <div>{{ w.likesCount }}</div>
  4116. </div>
  4117. <div class="commentList" style="margin-right: 15px">
  4118. <div
  4119. class="commentImg"
  4120. @click="commentOther(w, toolIndex, wIndex)"
  4121. >
  4122. <img
  4123. src="../assets/icon/comment/comment.png"
  4124. alt=""
  4125. />
  4126. </div>
  4127. <div>{{ w.commentCount }}</div>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. </div>
  4132. </div>
  4133. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4134. 未提交
  4135. </div>
  4136. <div
  4137. class="noWorksS"
  4138. v-if="noWorksS && noWorksS[toolIndex].length"
  4139. >
  4140. <div
  4141. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4142. :key="sIndex"
  4143. class="noWorksName"
  4144. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4145. >
  4146. <el-tooltip effect="dark" :content="s.student" placement="top">
  4147. <span>{{ s.student }}</span>
  4148. </el-tooltip>
  4149. </div>
  4150. </div>
  4151. </div>
  4152. <div
  4153. v-if="
  4154. tType &&
  4155. ((tType == 2 && sIsOpen == true) ||
  4156. tType == 1 ||
  4157. tType == 4) &&
  4158. tool.tool.indexOf(4) != -1 &&
  4159. (tool.askJson[0].answer ||
  4160. tool.askJson[0].answer === 0) &&
  4161. checkJson[toolIndex].length
  4162. "
  4163. class="xuan_right_box"
  4164. >
  4165. <div
  4166. class="tool_right_box"
  4167. v-for="(item, index) in tool.askJson"
  4168. :key="index"
  4169. >
  4170. <div style="width: calc(100% - 30px);">
  4171. <el-tooltip
  4172. effect="light"
  4173. :content="index + 1 + '、' + item.askstitle"
  4174. placement="top"
  4175. popper-class="text_tooltip"
  4176. >
  4177. <div
  4178. style="
  4179. width: calc(100% - 130px);
  4180. display: block;
  4181. white-space: nowrap;
  4182. overflow: hidden;
  4183. text-overflow: ellipsis;
  4184. word-break: break-word;
  4185. cursor: pointer;
  4186. "
  4187. >
  4188. {{ index + 1 + "、" + item.askstitle }}
  4189. </div>
  4190. </el-tooltip>
  4191. </div>
  4192. <div class="right_box_xuan">
  4193. <span>正确率</span>
  4194. <span>{{
  4195. (checkJson[toolIndex][index].right
  4196. ? checkJson[toolIndex][index].right
  4197. : 0) + "%"
  4198. }}</span>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. <div
  4203. class="xuan_right_box"
  4204. style="background: unset; padding: 0 10px"
  4205. v-if="
  4206. tType &&
  4207. ((tType == 2 && sIsOpen == true) ||
  4208. tType == 1 ||
  4209. tType == 4) &&
  4210. tool.tool.indexOf(4) != -1
  4211. "
  4212. >
  4213. <AskStatic
  4214. v-if="
  4215. worksStudent.length &&
  4216. worksStudent[toolIndex].length > 0
  4217. "
  4218. :askJSON="tool"
  4219. :checkJson="checkJson[toolIndex]"
  4220. ></AskStatic>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(4) != -1
  4229. "
  4230. class="worksBox"
  4231. >
  4232. <div
  4233. class="zuoyeYulan"
  4234. v-if="
  4235. worksStudent.length &&
  4236. worksStudent[toolIndex].length > 0
  4237. "
  4238. >
  4239. <div class="worksTop">
  4240. <div>作业预览</div>
  4241. <div
  4242. class="corOpen"
  4243. @click="contract(toolIndex)"
  4244. v-if="
  4245. (isCloseList[toolIndex].isCloseBoolean) &&
  4246. isCloseList[toolIndex].isClose == 0
  4247. "
  4248. >
  4249. 折叠
  4250. </div>
  4251. <div
  4252. class="corOpen"
  4253. @click="contract(toolIndex)"
  4254. v-if="isCloseList[toolIndex].isClose == 1"
  4255. >
  4256. 展开
  4257. </div>
  4258. </div>
  4259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4260. </div>
  4261. <div>
  4262. <div
  4263. :id="'tool-' + toolIndex"
  4264. :style="{
  4265. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4266. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4267. }"
  4268. class="worksDetailBox"
  4269. v-if="
  4270. worksStudent.length &&
  4271. worksStudent[toolIndex].length > 0
  4272. "
  4273. >
  4274. <div
  4275. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4276. :key="wIndex"
  4277. class="isWorksName2"
  4278. @click="
  4279. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4280. "
  4281. >
  4282. {{ w.sName }}
  4283. <img
  4284. class="deleteImg deleteImg2"
  4285. src="../assets/deleteworks.png"
  4286. v-if="
  4287. w.userid == userid || tType == 1 || tType == 4
  4288. "
  4289. @click.stop="deleteWorks(w.wid)"
  4290. alt
  4291. />
  4292. </div>
  4293. <!-- <div class="works" style="
  4294. width: 200px;
  4295. height: 140px;
  4296. border-radius: 10px;
  4297. box-shadow: 0 0 6px 1px #dfdada;
  4298. overflow: hidden;
  4299. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4300. <div class="workImg">
  4301. <img src="../assets/icon/works/noImg.png" @click="
  4302. openTools(
  4303. 4,
  4304. toolIndex,
  4305. taskCount,
  4306. w.works,
  4307. w.sName
  4308. )
  4309. " alt />
  4310. </div>
  4311. <div class="worksName">
  4312. <div>{{ w.sName }}</div>
  4313. <div>{{ w.time }}</div>
  4314. </div>
  4315. </div> -->
  4316. </div>
  4317. </div>
  4318. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4319. 未提交
  4320. </div>
  4321. <div
  4322. class="noWorksS"
  4323. v-if="noWorksS && noWorksS[toolIndex].length"
  4324. >
  4325. <div
  4326. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4327. :key="sIndex"
  4328. class="noWorksName"
  4329. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4330. >
  4331. <el-tooltip effect="dark" :content="s.student" placement="top">
  4332. <span>{{ s.student }}</span>
  4333. </el-tooltip>
  4334. </div>
  4335. </div>
  4336. </div>
  4337. <div
  4338. v-if="
  4339. tType &&
  4340. ((tType == 2 && sIsOpen == true) ||
  4341. tType == 1 ||
  4342. tType == 4) &&
  4343. tool.tool.indexOf(45) != -1 &&
  4344. (tool.testJson.testJson[0].answer ||
  4345. tool.testJson.testJson[0].answer === 0) &&
  4346. checkJson[toolIndex].length
  4347. "
  4348. class="xuan_right_box"
  4349. >
  4350. <div
  4351. class="tool_right_box"
  4352. v-for="(item, index) in tool.testJson.testJson"
  4353. :key="index"
  4354. >
  4355. <div class="right_box_xuan" style="margin-right: 10px">
  4356. <span>正确率</span>
  4357. <span>{{
  4358. (checkJson[toolIndex][index].right
  4359. ? checkJson[toolIndex][index].right
  4360. : 0) + "%"
  4361. }}</span>
  4362. </div>
  4363. <div style="width: calc(100% - 30px);">
  4364. <el-tooltip
  4365. effect="light"
  4366. :content="index + 1 + '、' + item.teststitle"
  4367. placement="top"
  4368. popper-class="text_tooltip"
  4369. >
  4370. <div
  4371. style="
  4372. width: calc(100% - 130px);
  4373. display: block;
  4374. white-space: nowrap;
  4375. overflow: hidden;
  4376. text-overflow: ellipsis;
  4377. word-break: break-word;
  4378. cursor: pointer;
  4379. "
  4380. >
  4381. {{ index + 1 + "、" + item.teststitle }}
  4382. </div>
  4383. </el-tooltip>
  4384. </div>
  4385. </div>
  4386. </div>
  4387. <div
  4388. class="xuan_right_box"
  4389. style="background: unset; padding: 0 10px; width: 91.5%"
  4390. v-if="
  4391. tType &&
  4392. ((tType == 2 && sIsOpen == true) ||
  4393. tType == 1 ||
  4394. tType == 4) &&
  4395. tool.tool.indexOf(45) != -1
  4396. "
  4397. >
  4398. <AskStatic2
  4399. v-if="
  4400. worksStudent.length &&
  4401. worksStudent[toolIndex].length > 0
  4402. "
  4403. :askJSON="tool"
  4404. :checkJson="checkJson[toolIndex]"
  4405. ></AskStatic2>
  4406. </div>
  4407. <div
  4408. v-if="
  4409. tType &&
  4410. ((tType == 2 && sIsOpen == true) ||
  4411. tType == 1 ||
  4412. tType == 4) &&
  4413. tool.tool.indexOf(45) != -1
  4414. "
  4415. class="worksBox"
  4416. >
  4417. <div
  4418. class="zuoyeYulan"
  4419. v-if="
  4420. worksStudent.length &&
  4421. worksStudent[toolIndex].length > 0
  4422. "
  4423. >
  4424. <div class="worksTop">
  4425. <div>作业预览</div>
  4426. <div
  4427. class="corOpen"
  4428. @click="contract(toolIndex)"
  4429. v-if="
  4430. (isCloseList[toolIndex].isCloseBoolean) &&
  4431. isCloseList[toolIndex].isClose == 0
  4432. "
  4433. >
  4434. 折叠
  4435. </div>
  4436. <div
  4437. class="corOpen"
  4438. @click="contract(toolIndex)"
  4439. v-if="isCloseList[toolIndex].isClose == 1"
  4440. >
  4441. 展开
  4442. </div>
  4443. </div>
  4444. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4445. </div>
  4446. <div>
  4447. <div
  4448. :id="'tool-' + toolIndex"
  4449. :style="{
  4450. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4451. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4452. }"
  4453. class="worksDetailBox"
  4454. v-if="
  4455. worksStudent.length &&
  4456. worksStudent[toolIndex].length > 0
  4457. "
  4458. >
  4459. <div
  4460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4461. :key="wIndex"
  4462. class="isWorksName2"
  4463. @click="
  4464. openTools(
  4465. 45,
  4466. toolIndex,
  4467. taskCount,
  4468. w.works,
  4469. w.sName
  4470. )
  4471. "
  4472. >
  4473. {{ w.sName }}
  4474. <img
  4475. class="deleteImg deleteImg2"
  4476. src="../assets/deleteworks.png"
  4477. v-if="
  4478. w.userid == userid || tType == 1 || tType == 4
  4479. "
  4480. @click.stop="deleteWorks(w.wid)"
  4481. alt
  4482. />
  4483. </div>
  4484. </div>
  4485. </div>
  4486. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4487. 未提交
  4488. </div>
  4489. <div
  4490. class="noWorksS"
  4491. v-if="noWorksS && noWorksS[toolIndex].length"
  4492. >
  4493. <div
  4494. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4495. :key="sIndex"
  4496. class="noWorksName"
  4497. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4498. >
  4499. <el-tooltip effect="dark" :content="s.student" placement="top">
  4500. <span>{{ s.student }}</span>
  4501. </el-tooltip>
  4502. </div>
  4503. </div>
  4504. </div>
  4505. <div
  4506. v-if="
  4507. tType &&
  4508. ((tType == 2 && sIsOpen == true) ||
  4509. tType == 1 ||
  4510. tType == 4) &&
  4511. tool.tool.indexOf(69) != -1
  4512. "
  4513. class="worksBox"
  4514. >
  4515. <div
  4516. class="zuoyeYulan"
  4517. v-if="
  4518. worksStudent.length &&
  4519. worksStudent[toolIndex].length > 0
  4520. "
  4521. >
  4522. <div class="worksTop">
  4523. <div>作业预览</div>
  4524. <div
  4525. class="corOpen"
  4526. @click="contract(toolIndex)"
  4527. v-if="
  4528. (isCloseList[toolIndex].isCloseBoolean) &&
  4529. isCloseList[toolIndex].isClose == 0
  4530. "
  4531. >
  4532. 折叠
  4533. </div>
  4534. <div
  4535. class="corOpen"
  4536. @click="contract(toolIndex)"
  4537. v-if="isCloseList[toolIndex].isClose == 1"
  4538. >
  4539. 展开
  4540. </div>
  4541. </div>
  4542. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4543. </div>
  4544. <div>
  4545. <div
  4546. :id="'tool-' + toolIndex"
  4547. :style="{
  4548. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4549. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4550. }"
  4551. class="worksDetailBox"
  4552. v-if="
  4553. worksStudent.length &&
  4554. worksStudent[toolIndex].length > 0
  4555. "
  4556. >
  4557. <div
  4558. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4559. :key="wIndex"
  4560. class="isWorksName2"
  4561. style="width: 160px;height: 65px;line-height: 65px;"
  4562. @click="
  4563. openTools(
  4564. 69,
  4565. toolIndex,
  4566. taskCount,
  4567. w.works,
  4568. w.sName,
  4569. w.wid
  4570. )
  4571. "
  4572. >
  4573. {{ w.sName }}
  4574. <img
  4575. class="deleteImg1"
  4576. src="../assets/evaEnglish.png"
  4577. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4578. alt
  4579. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4580. />
  4581. <img
  4582. class="deleteImg deleteImg2"
  4583. src="../assets/deleteworks.png"
  4584. v-if="
  4585. w.userid == userid || tType == 1 || tType == 4
  4586. "
  4587. @click.stop="deleteWorks(w.wid)"
  4588. alt
  4589. />
  4590. </div>
  4591. </div>
  4592. </div>
  4593. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4594. 未提交
  4595. </div>
  4596. <div
  4597. class="noWorksS"
  4598. v-if="noWorksS && noWorksS[toolIndex].length"
  4599. >
  4600. <div
  4601. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4602. :key="sIndex"
  4603. class="noWorksName"
  4604. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4605. >
  4606. <el-tooltip effect="dark" :content="s.student" placement="top">
  4607. <span>{{ s.student }}</span>
  4608. </el-tooltip>
  4609. </div>
  4610. </div>
  4611. </div>
  4612. <div
  4613. v-if="
  4614. tType &&
  4615. ((tType == 2 && sIsOpen == true) ||
  4616. tType == 1 ||
  4617. tType == 4) &&
  4618. tool.tool.indexOf(15) != -1
  4619. "
  4620. class="worksBox"
  4621. >
  4622. <div
  4623. class="zuoyeYulan"
  4624. v-if="
  4625. (worksStudent.length &&
  4626. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4627. "
  4628. >
  4629. <div class="worksTop">
  4630. <div>作业预览</div>
  4631. <div
  4632. class="corOpen"
  4633. @click="contract(toolIndex)"
  4634. v-if="
  4635. (isCloseList[toolIndex].isCloseBoolean) &&
  4636. isCloseList[toolIndex].isClose == 0
  4637. "
  4638. >
  4639. 折叠
  4640. </div>
  4641. <div
  4642. class="corOpen"
  4643. @click="contract(toolIndex)"
  4644. v-if="isCloseList[toolIndex].isClose == 1"
  4645. >
  4646. 展开
  4647. </div>
  4648. </div>
  4649. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4650. </div>
  4651. <div
  4652. class="group_workBox"
  4653. v-for="(g, gindex) in courseGroup.group"
  4654. :key="gindex"
  4655. >
  4656. <div class="group_box">
  4657. <div class="group_title">
  4658. <el-tooltip
  4659. class="item"
  4660. effect="light"
  4661. :content="g.name"
  4662. placement="top"
  4663. >
  4664. <div class="group_name">{{ g.name }}</div>
  4665. </el-tooltip>
  4666. </div>
  4667. <div
  4668. class="group_work"
  4669. v-if="
  4670. g.works &&
  4671. g.works.length &&
  4672. g.works[toolIndex].length
  4673. "
  4674. >
  4675. <div
  4676. class="works"
  4677. v-for="(w, wIndex) in g.works[toolIndex]"
  4678. :key="wIndex"
  4679. >
  4680. <div
  4681. class="workImg"
  4682. style="
  4683. border-radius: 15px;
  4684. box-shadow: 0px 0px 5px 5px #eee;
  4685. "
  4686. >
  4687. <div
  4688. class="answerBg"
  4689. style="border-radius: 15px 15px 0 0"
  4690. @click="
  4691. commentOther(w, toolIndex, wIndex, null, g.id)
  4692. "
  4693. >
  4694. <div class="answerContent">
  4695. {{ JSON.parse(w.works)[0].answer }}
  4696. </div>
  4697. <div
  4698. class="answerScore"
  4699. v-if="w.score"
  4700. @click.stop="openScore(w)"
  4701. :class="{
  4702. rightW:
  4703. w.userid == userid ||
  4704. tType == 1 ||
  4705. tType == 4,
  4706. }"
  4707. >
  4708. {{ JSON.parse(w.score).wScore }}分
  4709. </div>
  4710. <div
  4711. class="answerScore"
  4712. @click.stop="openScore(w)"
  4713. v-else-if="courseDetail.userid == userid"
  4714. :class="{
  4715. rightW:
  4716. w.userid == userid ||
  4717. tType == 1 ||
  4718. tType == 4,
  4719. }"
  4720. >
  4721. 评分
  4722. </div>
  4723. <img
  4724. class="deleteImg"
  4725. src="../assets/deleteworks.png"
  4726. v-if="
  4727. w.userid == userid ||
  4728. tType == 1 ||
  4729. tType == 4
  4730. "
  4731. @click.stop="deleteWorks(w.wid)"
  4732. alt
  4733. />
  4734. </div>
  4735. <div class="comment">
  4736. <div class="worksName">
  4737. <div>{{ w.sName }}</div>
  4738. </div>
  4739. <div class="commentList">
  4740. <div
  4741. class="commentImg"
  4742. @click="
  4743. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4744. "
  4745. >
  4746. <img
  4747. :src="w.isLikes == true ? likes : noLikes"
  4748. alt=""
  4749. />
  4750. </div>
  4751. <div>{{ w.likesCount }}</div>
  4752. </div>
  4753. <div
  4754. class="commentList"
  4755. style="margin-right: 15px"
  4756. >
  4757. <div
  4758. class="commentImg"
  4759. @click="
  4760. commentOther(
  4761. w,
  4762. toolIndex,
  4763. wIndex,
  4764. null,
  4765. g.id
  4766. )
  4767. "
  4768. >
  4769. <img
  4770. src="../assets/icon/comment/comment.png"
  4771. alt=""
  4772. />
  4773. </div>
  4774. <div>{{ w.commentCount }}</div>
  4775. </div>
  4776. </div>
  4777. </div>
  4778. </div>
  4779. </div>
  4780. <div class="group_work" v-else>暂无提交作业</div>
  4781. </div>
  4782. </div>
  4783. <div
  4784. :id="'tool-' + toolIndex"
  4785. :style="{
  4786. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4787. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4788. }"
  4789. class="worksDetailBox"
  4790. v-if="
  4791. worksStudent.length &&
  4792. worksStudent[toolIndex].length > 0
  4793. "
  4794. >
  4795. <div
  4796. class="works"
  4797. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4798. :key="wIndex"
  4799. >
  4800. <div
  4801. class="workImg"
  4802. style="
  4803. border-radius: 15px;
  4804. box-shadow: 0px 0px 5px 5px #eee;
  4805. "
  4806. >
  4807. <!-- <img
  4808. src="../assets/icon/works/noImg.png"
  4809. @click="openTools(15, toolIndex, taskCount, w.works)"
  4810. alt=""
  4811. />-->
  4812. <div
  4813. class="answerBg"
  4814. style="border-radius: 15px 15px 0 0"
  4815. @click="commentOther(w, toolIndex, wIndex)"
  4816. >
  4817. <!-- <div>{{ w.sName }}</div> -->
  4818. <div class="answerContent">
  4819. {{ JSON.parse(w.works)[0].answer }}
  4820. </div>
  4821. <div
  4822. class="answerScore"
  4823. v-if="w.score"
  4824. @click.stop="openScore(w)"
  4825. :class="{
  4826. rightW:
  4827. w.userid == userid ||
  4828. tType == 1 ||
  4829. tType == 4,
  4830. }"
  4831. >
  4832. {{ JSON.parse(w.score).wScore }}分
  4833. </div>
  4834. <div
  4835. class="answerScore"
  4836. @click.stop="openScore(w)"
  4837. v-else-if="courseDetail.userid == userid"
  4838. :class="{
  4839. rightW:
  4840. w.userid == userid ||
  4841. tType == 1 ||
  4842. tType == 4,
  4843. }"
  4844. >
  4845. 评分
  4846. </div>
  4847. <img
  4848. class="deleteImg"
  4849. src="../assets/deleteworks.png"
  4850. v-if="
  4851. w.userid == userid || tType == 1 || tType == 4
  4852. "
  4853. @click.stop="deleteWorks(w.wid)"
  4854. alt
  4855. />
  4856. </div>
  4857. <div class="comment">
  4858. <div class="worksName">
  4859. <div>{{ w.sName }}</div>
  4860. </div>
  4861. <div class="commentList">
  4862. <div
  4863. class="commentImg"
  4864. @click="
  4865. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4866. "
  4867. >
  4868. <img
  4869. :src="w.isLikes == true ? likes : noLikes"
  4870. alt=""
  4871. />
  4872. </div>
  4873. <div>{{ w.likesCount }}</div>
  4874. </div>
  4875. <div class="commentList" style="margin-right: 15px">
  4876. <div
  4877. class="commentImg"
  4878. @click="commentOther(w, toolIndex, wIndex)"
  4879. >
  4880. <img
  4881. src="../assets/icon/comment/comment.png"
  4882. alt=""
  4883. />
  4884. </div>
  4885. <div>{{ w.commentCount }}</div>
  4886. </div>
  4887. </div>
  4888. </div>
  4889. </div>
  4890. </div>
  4891. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4892. 未提交
  4893. </div>
  4894. <div
  4895. class="noWorksS"
  4896. v-if="noWorksS && noWorksS[toolIndex].length"
  4897. >
  4898. <div
  4899. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4900. :key="sIndex"
  4901. class="noWorksName"
  4902. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4903. >
  4904. <el-tooltip effect="dark" :content="s.student" placement="top">
  4905. <span>{{ s.student }}</span>
  4906. </el-tooltip>
  4907. </div>
  4908. </div>
  4909. </div>
  4910. <div
  4911. v-if="
  4912. tType &&
  4913. ((tType == 2 && sIsOpen == true) ||
  4914. tType == 1 ||
  4915. tType == 4) &&
  4916. tool.tool.indexOf(1) != -1
  4917. "
  4918. class="worksBox"
  4919. >
  4920. <div
  4921. class="zuoyeYulan"
  4922. v-if="
  4923. (worksStudent.length &&
  4924. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4925. "
  4926. >
  4927. <div class="worksTop">
  4928. <div>作业预览</div>
  4929. <div
  4930. class="corOpen"
  4931. @click="contract(toolIndex)"
  4932. v-if="
  4933. (isCloseList[toolIndex].isCloseBoolean) &&
  4934. isCloseList[toolIndex].isClose == 0
  4935. "
  4936. >
  4937. 折叠
  4938. </div>
  4939. <div
  4940. class="corOpen"
  4941. @click="contract(toolIndex)"
  4942. v-if="isCloseList[toolIndex].isClose == 1"
  4943. >
  4944. 展开
  4945. </div>
  4946. </div>
  4947. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4948. </div>
  4949. <div
  4950. class="group_workBox"
  4951. v-for="(g, gindex) in courseGroup.group"
  4952. :key="gindex"
  4953. >
  4954. <div class="group_box">
  4955. <div class="group_title">
  4956. <el-tooltip
  4957. class="item"
  4958. effect="light"
  4959. :content="g.name"
  4960. placement="top"
  4961. >
  4962. <div class="group_name">{{ g.name }}</div>
  4963. </el-tooltip>
  4964. </div>
  4965. <div
  4966. class="group_work"
  4967. v-if="
  4968. g.works &&
  4969. g.works.length &&
  4970. g.works[toolIndex].length
  4971. "
  4972. >
  4973. <div
  4974. class="works"
  4975. style="
  4976. width: 200px;
  4977. height: 140px;
  4978. margin: 10px 10px 10px 0;
  4979. border-radius: 15px;
  4980. box-shadow: 0 0 6px 1px #dfdada;
  4981. "
  4982. v-for="(w, wIndex) in g.works[toolIndex]"
  4983. :key="wIndex"
  4984. :class="w.type == 1 ? 'isTypeOne' : ''"
  4985. >
  4986. <div class="workImg">
  4987. <img
  4988. :src="w.works"
  4989. @click="previewImg(w.works,w)"
  4990. alt
  4991. />
  4992. <div
  4993. class="answerScore"
  4994. v-if="w.score"
  4995. @click.stop="openScore(w)"
  4996. :class="{
  4997. rightW:
  4998. w.userid == userid ||
  4999. tType == 1 ||
  5000. tType == 4,
  5001. }"
  5002. >
  5003. {{ JSON.parse(w.score).wScore }}分
  5004. </div>
  5005. <div
  5006. class="answerScore"
  5007. @click.stop="openScore(w)"
  5008. v-else-if="courseDetail.userid == userid"
  5009. :class="{
  5010. rightW:
  5011. w.userid == userid ||
  5012. tType == 1 ||
  5013. tType == 4,
  5014. }"
  5015. >
  5016. 评分
  5017. </div>
  5018. <img
  5019. class="deleteImg"
  5020. src="../assets/deleteworks.png"
  5021. v-if="
  5022. w.userid == userid || tType == 1 || tType == 4
  5023. "
  5024. @click.stop="deleteWorks(w.wid)"
  5025. alt
  5026. />
  5027. </div>
  5028. <div class="comment" style="min-width: 200px">
  5029. <div class="worksName">
  5030. <div>{{ w.sName }}</div>
  5031. </div>
  5032. <div class="commentList">
  5033. <div class="commentList">
  5034. <div
  5035. class="commentImg"
  5036. @click="
  5037. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5038. "
  5039. >
  5040. <img
  5041. :src="w.isLikes == true ? likes : noLikes"
  5042. alt=""
  5043. />
  5044. </div>
  5045. <div>{{ w.likesCount }}</div>
  5046. </div>
  5047. <div
  5048. class="commentList"
  5049. style="margin-right: 15px"
  5050. >
  5051. <div
  5052. class="commentImg"
  5053. @click="
  5054. commentOther(
  5055. w,
  5056. toolIndex,
  5057. wIndex,
  5058. null,
  5059. g.id
  5060. )
  5061. "
  5062. >
  5063. <img
  5064. src="../assets/icon/comment/comment.png"
  5065. alt=""
  5066. />
  5067. </div>
  5068. <div>{{ w.commentCount }}</div>
  5069. </div>
  5070. </div>
  5071. </div>
  5072. </div>
  5073. </div>
  5074. <div class="group_work" v-else>暂无提交作业</div>
  5075. </div>
  5076. </div>
  5077. <div
  5078. :id="'tool-' + toolIndex"
  5079. :style="{
  5080. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5081. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5082. }"
  5083. class="worksDetailBox"
  5084. v-if="
  5085. worksStudent.length &&
  5086. worksStudent[toolIndex].length > 0
  5087. "
  5088. >
  5089. <div
  5090. class="works"
  5091. style="
  5092. width: 200px;
  5093. height: 140px;
  5094. margin: 10px 10px 10px 0;
  5095. border-radius: 15px;
  5096. box-shadow: 0 0 6px 1px #dfdada;
  5097. "
  5098. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5099. :key="wIndex"
  5100. >
  5101. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5102. <div class="workImg">
  5103. <img
  5104. :src="w.works"
  5105. @click="previewImg(w.works,w)"
  5106. alt
  5107. />
  5108. <div
  5109. class="answerScore"
  5110. v-if="w.score"
  5111. @click.stop="openScore(w)"
  5112. :class="{
  5113. rightW:
  5114. w.userid == userid || tType == 1 || tType == 4,
  5115. }"
  5116. >
  5117. {{ JSON.parse(w.score).wScore }}分
  5118. </div>
  5119. <div
  5120. class="answerScore"
  5121. @click.stop="openScore(w)"
  5122. v-else-if="courseDetail.userid == userid"
  5123. :class="{
  5124. rightW:
  5125. w.userid == userid || tType == 1 || tType == 4,
  5126. }"
  5127. >
  5128. 评分
  5129. </div>
  5130. <img
  5131. class="deleteImg"
  5132. src="../assets/deleteworks.png"
  5133. v-if="
  5134. w.userid == userid || tType == 1 || tType == 4
  5135. "
  5136. @click.stop="deleteWorks(w.wid)"
  5137. alt
  5138. />
  5139. </div>
  5140. <div class="comment" style="min-width: 200px">
  5141. <div class="worksName">
  5142. <div>{{ w.sName }}</div>
  5143. </div>
  5144. <div class="commentList">
  5145. <div class="commentList">
  5146. <div
  5147. class="commentImg"
  5148. @click="
  5149. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5150. "
  5151. >
  5152. <img
  5153. :src="w.isLikes == true ? likes : noLikes"
  5154. alt=""
  5155. />
  5156. </div>
  5157. <div>{{ w.likesCount }}</div>
  5158. </div>
  5159. <div class="commentList" style="margin-right: 15px">
  5160. <div
  5161. class="commentImg"
  5162. @click="commentOther(w, toolIndex, wIndex)"
  5163. >
  5164. <img
  5165. src="../assets/icon/comment/comment.png"
  5166. alt=""
  5167. />
  5168. </div>
  5169. <div>{{ w.commentCount }}</div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5176. 未提交
  5177. </div>
  5178. <div
  5179. class="noWorksS"
  5180. v-if="noWorksS && noWorksS[toolIndex].length"
  5181. >
  5182. <div
  5183. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5184. :key="sIndex"
  5185. class="noWorksName"
  5186. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5187. >
  5188. <el-tooltip effect="dark" :content="s.student" placement="top">
  5189. <span>{{ s.student }}</span>
  5190. </el-tooltip>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. <div
  5195. v-if="
  5196. tType &&
  5197. ((tType == 2 && sIsOpen == true) ||
  5198. tType == 1 ||
  5199. tType == 4) &&
  5200. tool.tool.indexOf(3) != -1
  5201. "
  5202. class="worksBox"
  5203. >
  5204. <div
  5205. class="zuoyeYulan"
  5206. v-if="
  5207. (worksStudent.length &&
  5208. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5209. "
  5210. >
  5211. <div class="worksTop">
  5212. <div>作业预览</div>
  5213. <div
  5214. class="corOpen"
  5215. @click="contract(toolIndex)"
  5216. v-if="
  5217. (isCloseList[toolIndex].isCloseBoolean) &&
  5218. isCloseList[toolIndex].isClose == 0
  5219. "
  5220. >
  5221. 折叠
  5222. </div>
  5223. <div
  5224. class="corOpen"
  5225. @click="contract(toolIndex)"
  5226. v-if="isCloseList[toolIndex].isClose == 1"
  5227. >
  5228. 展开
  5229. </div>
  5230. </div>
  5231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5232. </div>
  5233. <div
  5234. class="group_workBox"
  5235. v-for="(g, gindex) in courseGroup.group"
  5236. :key="gindex"
  5237. >
  5238. <div class="group_box">
  5239. <div class="group_title">
  5240. <el-tooltip
  5241. class="item"
  5242. effect="light"
  5243. :content="g.name"
  5244. placement="top"
  5245. >
  5246. <div class="group_name">{{ g.name }}</div>
  5247. </el-tooltip>
  5248. </div>
  5249. <div
  5250. class="group_work"
  5251. v-if="
  5252. g.works &&
  5253. g.works.length &&
  5254. g.works[toolIndex].length
  5255. "
  5256. >
  5257. <div
  5258. class="works"
  5259. style="
  5260. width: 200px;
  5261. height: 140px;
  5262. margin: 10px 10px 10px 0;
  5263. border-radius: 15px;
  5264. box-shadow: 0 0 6px 1px #dfdada;
  5265. "
  5266. v-for="(w, wIndex) in g.works[toolIndex]"
  5267. :key="wIndex"
  5268. :class="w.type == 1 ? 'isTypeOne' : ''"
  5269. >
  5270. <div class="workImg">
  5271. <img
  5272. :src="w.works"
  5273. @click="previewImg(w.works,w)"
  5274. alt
  5275. />
  5276. <div
  5277. class="answerScore"
  5278. v-if="w.score"
  5279. @click.stop="openScore(w)"
  5280. :class="{
  5281. rightW:
  5282. w.userid == userid ||
  5283. tType == 1 ||
  5284. tType == 4,
  5285. }"
  5286. >
  5287. {{ JSON.parse(w.score).wScore }}分
  5288. </div>
  5289. <div
  5290. class="answerScore"
  5291. @click.stop="openScore(w)"
  5292. v-else-if="courseDetail.userid == userid"
  5293. :class="{
  5294. rightW:
  5295. w.userid == userid ||
  5296. tType == 1 ||
  5297. tType == 4,
  5298. }"
  5299. >
  5300. 评分
  5301. </div>
  5302. <img
  5303. class="deleteImg"
  5304. src="../assets/deleteworks.png"
  5305. v-if="
  5306. w.userid == userid || tType == 1 || tType == 4
  5307. "
  5308. @click.stop="deleteWorks(w.wid)"
  5309. alt
  5310. />
  5311. </div>
  5312. <div class="comment" style="min-width: 200px">
  5313. <div class="worksName">
  5314. <div>{{ w.sName }}</div>
  5315. </div>
  5316. <div class="commentList">
  5317. <div class="commentList">
  5318. <div
  5319. class="commentImg"
  5320. @click="
  5321. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5322. "
  5323. >
  5324. <img
  5325. :src="w.isLikes == true ? likes : noLikes"
  5326. alt=""
  5327. />
  5328. </div>
  5329. <div>{{ w.likesCount }}</div>
  5330. </div>
  5331. <div
  5332. class="commentList"
  5333. style="margin-right: 15px"
  5334. >
  5335. <div
  5336. class="commentImg"
  5337. @click="
  5338. commentOther(
  5339. w,
  5340. toolIndex,
  5341. wIndex,
  5342. null,
  5343. g.id
  5344. )
  5345. "
  5346. >
  5347. <img
  5348. src="../assets/icon/comment/comment.png"
  5349. alt=""
  5350. />
  5351. </div>
  5352. <div>{{ w.commentCount }}</div>
  5353. </div>
  5354. </div>
  5355. </div>
  5356. </div>
  5357. </div>
  5358. <div class="group_work" v-else>暂无提交作业</div>
  5359. </div>
  5360. </div>
  5361. <div
  5362. :id="'tool-' + toolIndex"
  5363. :style="{
  5364. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5365. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5366. }"
  5367. class="worksDetailBox"
  5368. v-if="
  5369. worksStudent.length &&
  5370. worksStudent[toolIndex].length > 0
  5371. "
  5372. >
  5373. <div
  5374. class="works"
  5375. style="
  5376. width: 200px;
  5377. height: 140px;
  5378. margin: 10px 10px 10px 0;
  5379. border-radius: 15px;
  5380. box-shadow: 0 0 6px 1px #dfdada;
  5381. "
  5382. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5383. :key="wIndex"
  5384. >
  5385. <!-- @click="previewImg(w.works)" -->
  5386. <div class="workImg">
  5387. <img
  5388. :src="w.works"
  5389. @click="previewImg(w.works,w)"
  5390. alt
  5391. />
  5392. <div
  5393. class="answerScore"
  5394. v-if="w.score"
  5395. @click.stop="openScore(w)"
  5396. :class="{
  5397. rightW:
  5398. w.userid == userid || tType == 1 || tType == 4,
  5399. }"
  5400. >
  5401. {{ JSON.parse(w.score).wScore }}分
  5402. </div>
  5403. <div
  5404. class="answerScore"
  5405. @click.stop="openScore(w)"
  5406. v-else-if="courseDetail.userid == userid"
  5407. :class="{
  5408. rightW:
  5409. w.userid == userid || tType == 1 || tType == 4,
  5410. }"
  5411. >
  5412. 评分
  5413. </div>
  5414. <img
  5415. class="deleteImg"
  5416. src="../assets/deleteworks.png"
  5417. v-if="
  5418. w.userid == userid || tType == 1 || tType == 4
  5419. "
  5420. @click.stop="deleteWorks(w.wid)"
  5421. alt
  5422. />
  5423. </div>
  5424. <div class="comment" style="min-width: 200px">
  5425. <div class="worksName">
  5426. <div>{{ w.sName }}</div>
  5427. </div>
  5428. <div class="commentList">
  5429. <div class="commentList">
  5430. <div
  5431. class="commentImg"
  5432. @click="
  5433. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5434. "
  5435. >
  5436. <img
  5437. :src="w.isLikes == true ? likes : noLikes"
  5438. alt=""
  5439. />
  5440. </div>
  5441. <div>{{ w.likesCount }}</div>
  5442. </div>
  5443. <div class="commentList" style="margin-right: 15px">
  5444. <div
  5445. class="commentImg"
  5446. @click="commentOther(w, toolIndex, wIndex)"
  5447. >
  5448. <img
  5449. src="../assets/icon/comment/comment.png"
  5450. alt=""
  5451. />
  5452. </div>
  5453. <div>{{ w.commentCount }}</div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. </div>
  5459. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5460. 未提交
  5461. </div>
  5462. <div
  5463. class="noWorksS"
  5464. v-if="noWorksS && noWorksS[toolIndex].length"
  5465. >
  5466. <div
  5467. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5468. :key="sIndex"
  5469. class="noWorksName"
  5470. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5471. >
  5472. <el-tooltip effect="dark" :content="s.student" placement="top">
  5473. <span>{{ s.student }}</span>
  5474. </el-tooltip>
  5475. </div>
  5476. </div>
  5477. </div>
  5478. <div
  5479. v-if="
  5480. tType &&
  5481. ((tType == 2 && sIsOpen == true) ||
  5482. tType == 1 ||
  5483. tType == 4) &&
  5484. tool.tool.indexOf(6) != -1
  5485. "
  5486. class="worksBox"
  5487. >
  5488. <div
  5489. class="zuoyeYulan"
  5490. v-if="
  5491. (worksStudent.length &&
  5492. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5493. "
  5494. >
  5495. <div class="worksTop">
  5496. <div>作业预览</div>
  5497. <div
  5498. class="corOpen"
  5499. @click="contract(toolIndex)"
  5500. v-if="
  5501. (isCloseList[toolIndex].isCloseBoolean) &&
  5502. isCloseList[toolIndex].isClose == 0
  5503. "
  5504. >
  5505. 折叠
  5506. </div>
  5507. <div
  5508. class="corOpen"
  5509. @click="contract(toolIndex)"
  5510. v-if="isCloseList[toolIndex].isClose == 1"
  5511. >
  5512. 展开
  5513. </div>
  5514. </div>
  5515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5516. </div>
  5517. <div
  5518. class="group_workBox"
  5519. v-for="(g, gindex) in courseGroup.group"
  5520. :key="gindex"
  5521. >
  5522. <div class="group_box">
  5523. <div class="group_title">
  5524. <el-tooltip
  5525. class="item"
  5526. effect="light"
  5527. :content="g.name"
  5528. placement="top"
  5529. >
  5530. <div class="group_name">{{ g.name }}</div>
  5531. </el-tooltip>
  5532. </div>
  5533. <div
  5534. class="group_work"
  5535. v-if="
  5536. g.works &&
  5537. g.works.length &&
  5538. g.works[toolIndex].length
  5539. "
  5540. >
  5541. <div
  5542. class="works"
  5543. style="
  5544. width: 200px;
  5545. height: 140px;
  5546. margin: 10px 10px 10px 0;
  5547. border-radius: 15px;
  5548. box-shadow: 0 0 6px 1px #dfdada;
  5549. "
  5550. v-for="(w, wIndex) in g.works[toolIndex]"
  5551. :key="wIndex"
  5552. :class="w.type == 1 ? 'isTypeOne' : ''"
  5553. >
  5554. <div class="workImg">
  5555. <img
  5556. :src="w.works"
  5557. @click="previewImg(w.works,w)"
  5558. alt
  5559. />
  5560. <div
  5561. class="answerScore"
  5562. v-if="w.score"
  5563. @click.stop="openScore(w)"
  5564. :class="{
  5565. rightW:
  5566. w.userid == userid ||
  5567. tType == 1 ||
  5568. tType == 4,
  5569. }"
  5570. >
  5571. {{ JSON.parse(w.score).wScore }}分
  5572. </div>
  5573. <div
  5574. class="answerScore"
  5575. @click.stop="openScore(w)"
  5576. v-else-if="courseDetail.userid == userid"
  5577. :class="{
  5578. rightW:
  5579. w.userid == userid ||
  5580. tType == 1 ||
  5581. tType == 4,
  5582. }"
  5583. >
  5584. 评分
  5585. </div>
  5586. <img
  5587. class="deleteImg"
  5588. src="../assets/deleteworks.png"
  5589. v-if="
  5590. w.userid == userid || tType == 1 || tType == 4
  5591. "
  5592. @click.stop="deleteWorks(w.wid)"
  5593. alt
  5594. />
  5595. </div>
  5596. <div class="comment" style="min-width: 200px">
  5597. <div class="worksName">
  5598. <div>{{ w.sName }}</div>
  5599. </div>
  5600. <div class="commentList">
  5601. <div class="commentList">
  5602. <div
  5603. class="commentImg"
  5604. @click="
  5605. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5606. "
  5607. >
  5608. <img
  5609. :src="w.isLikes == true ? likes : noLikes"
  5610. alt=""
  5611. />
  5612. </div>
  5613. <div>{{ w.likesCount }}</div>
  5614. </div>
  5615. <div
  5616. class="commentList"
  5617. style="margin-right: 15px"
  5618. >
  5619. <div
  5620. class="commentImg"
  5621. @click="
  5622. commentOther(
  5623. w,
  5624. toolIndex,
  5625. wIndex,
  5626. null,
  5627. g.id
  5628. )
  5629. "
  5630. >
  5631. <img
  5632. src="../assets/icon/comment/comment.png"
  5633. alt=""
  5634. />
  5635. </div>
  5636. <div>{{ w.commentCount }}</div>
  5637. </div>
  5638. </div>
  5639. </div>
  5640. </div>
  5641. </div>
  5642. <div class="group_work" v-else>暂无提交作业</div>
  5643. </div>
  5644. </div>
  5645. <div
  5646. :id="'tool-' + toolIndex"
  5647. :style="{
  5648. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5649. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5650. }"
  5651. class="worksDetailBox"
  5652. v-if="
  5653. worksStudent.length &&
  5654. worksStudent[toolIndex].length > 0
  5655. "
  5656. >
  5657. <div
  5658. class="works"
  5659. style="
  5660. width: 200px;
  5661. height: 140px;
  5662. margin: 10px 10px 10px 0;
  5663. border-radius: 15px;
  5664. box-shadow: 0 0 6px 1px #dfdada;
  5665. "
  5666. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5667. :key="wIndex"
  5668. >
  5669. <!-- @click="previewImg(w.works)" -->
  5670. <div class="workImg">
  5671. <img
  5672. :src="w.works"
  5673. @click="previewImg(w.works,w)"
  5674. alt
  5675. />
  5676. <div
  5677. class="answerScore"
  5678. v-if="w.score"
  5679. @click.stop="openScore(w)"
  5680. :class="{
  5681. rightW:
  5682. w.userid == userid || tType == 1 || tType == 4,
  5683. }"
  5684. >
  5685. {{ JSON.parse(w.score).wScore }}分
  5686. </div>
  5687. <div
  5688. class="answerScore"
  5689. @click.stop="openScore(w)"
  5690. v-else-if="courseDetail.userid == userid"
  5691. :class="{
  5692. rightW:
  5693. w.userid == userid || tType == 1 || tType == 4,
  5694. }"
  5695. >
  5696. 评分
  5697. </div>
  5698. <img
  5699. class="deleteImg"
  5700. src="../assets/deleteworks.png"
  5701. v-if="
  5702. w.userid == userid || tType == 1 || tType == 4
  5703. "
  5704. @click.stop="deleteWorks(w.wid)"
  5705. alt
  5706. />
  5707. </div>
  5708. <div class="comment" style="min-width: 200px">
  5709. <div class="worksName">
  5710. <div>{{ w.sName }}</div>
  5711. </div>
  5712. <div class="commentList">
  5713. <div class="commentList">
  5714. <div
  5715. class="commentImg"
  5716. @click="
  5717. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5718. "
  5719. >
  5720. <img
  5721. :src="w.isLikes == true ? likes : noLikes"
  5722. alt=""
  5723. />
  5724. </div>
  5725. <div>{{ w.likesCount }}</div>
  5726. </div>
  5727. <div class="commentList" style="margin-right: 15px">
  5728. <div
  5729. class="commentImg"
  5730. @click="commentOther(w, toolIndex, wIndex)"
  5731. >
  5732. <img
  5733. src="../assets/icon/comment/comment.png"
  5734. alt=""
  5735. />
  5736. </div>
  5737. <div>{{ w.commentCount }}</div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. </div>
  5742. </div>
  5743. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5744. 未提交
  5745. </div>
  5746. <div
  5747. class="noWorksS"
  5748. v-if="noWorksS && noWorksS[toolIndex].length"
  5749. >
  5750. <div
  5751. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5752. :key="sIndex"
  5753. class="noWorksName"
  5754. >
  5755. <el-tooltip effect="dark" :content="s.student" placement="top">
  5756. <span>{{ s.student }}</span>
  5757. </el-tooltip>
  5758. </div>
  5759. </div>
  5760. </div>
  5761. <div
  5762. v-if="
  5763. tType &&
  5764. ((tType == 2 && sIsOpen == true) ||
  5765. tType == 1 ||
  5766. tType == 4) &&
  5767. tool.tool.indexOf(7) != -1
  5768. "
  5769. class="worksBox"
  5770. >
  5771. <div
  5772. class="zuoyeYulan"
  5773. v-if="
  5774. (worksStudent.length &&
  5775. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5776. "
  5777. >
  5778. <div class="worksTop">
  5779. <div>作业预览</div>
  5780. <div
  5781. class="corOpen"
  5782. @click="contract(toolIndex)"
  5783. v-if="
  5784. (isCloseList[toolIndex].isCloseBoolean) &&
  5785. isCloseList[toolIndex].isClose == 0
  5786. "
  5787. >
  5788. 折叠
  5789. </div>
  5790. <div
  5791. class="corOpen"
  5792. @click="contract(toolIndex)"
  5793. v-if="isCloseList[toolIndex].isClose == 1"
  5794. >
  5795. 展开
  5796. </div>
  5797. </div>
  5798. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5799. </div>
  5800. <div
  5801. class="group_workBox"
  5802. v-for="(g, gindex) in courseGroup.group"
  5803. :key="gindex"
  5804. >
  5805. <div class="group_box">
  5806. <div class="group_title">
  5807. <el-tooltip
  5808. class="item"
  5809. effect="light"
  5810. :content="g.name"
  5811. placement="top"
  5812. >
  5813. <div class="group_name">{{ g.name }}</div>
  5814. </el-tooltip>
  5815. </div>
  5816. <div
  5817. class="group_work"
  5818. v-if="
  5819. g.works &&
  5820. g.works.length &&
  5821. g.works[toolIndex].length
  5822. "
  5823. >
  5824. <div
  5825. class="works"
  5826. style="
  5827. width: 200px;
  5828. height: 140px;
  5829. margin: 10px 10px 10px 0;
  5830. border-radius: 15px;
  5831. box-shadow: 0 0 6px 1px #dfdada;
  5832. "
  5833. v-for="(w, wIndex) in g.works[toolIndex]"
  5834. :key="wIndex"
  5835. :class="w.type == 1 ? 'isTypeOne' : ''"
  5836. >
  5837. <div class="workImg">
  5838. <img
  5839. :src="w.works"
  5840. @click="previewImg(w.works,w)"
  5841. alt
  5842. />
  5843. <div
  5844. class="answerScore"
  5845. v-if="w.score"
  5846. @click.stop="openScore(w)"
  5847. :class="{
  5848. rightW:
  5849. w.userid == userid ||
  5850. tType == 1 ||
  5851. tType == 4,
  5852. }"
  5853. >
  5854. {{ JSON.parse(w.score).wScore }}分
  5855. </div>
  5856. <div
  5857. class="answerScore"
  5858. @click.stop="openScore(w)"
  5859. v-else-if="courseDetail.userid == userid"
  5860. :class="{
  5861. rightW:
  5862. w.userid == userid ||
  5863. tType == 1 ||
  5864. tType == 4,
  5865. }"
  5866. >
  5867. 评分
  5868. </div>
  5869. <img
  5870. class="deleteImg"
  5871. src="../assets/deleteworks.png"
  5872. v-if="
  5873. w.userid == userid || tType == 1 || tType == 4
  5874. "
  5875. @click.stop="deleteWorks(w.wid)"
  5876. alt
  5877. />
  5878. </div>
  5879. <div class="comment" style="min-width: 200px">
  5880. <div class="worksName">
  5881. <div>{{ w.sName }}</div>
  5882. </div>
  5883. <div class="commentList">
  5884. <div class="commentList">
  5885. <div
  5886. class="commentImg"
  5887. @click="
  5888. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5889. "
  5890. >
  5891. <img
  5892. :src="w.isLikes == true ? likes : noLikes"
  5893. alt=""
  5894. />
  5895. </div>
  5896. <div>{{ w.likesCount }}</div>
  5897. </div>
  5898. <div
  5899. class="commentList"
  5900. style="margin-right: 15px"
  5901. >
  5902. <div
  5903. class="commentImg"
  5904. @click="
  5905. commentOther(
  5906. w,
  5907. toolIndex,
  5908. wIndex,
  5909. null,
  5910. g.id
  5911. )
  5912. "
  5913. >
  5914. <img
  5915. src="../assets/icon/comment/comment.png"
  5916. alt=""
  5917. />
  5918. </div>
  5919. <div>{{ w.commentCount }}</div>
  5920. </div>
  5921. </div>
  5922. </div>
  5923. </div>
  5924. </div>
  5925. <div class="group_work" v-else>暂无提交作业</div>
  5926. </div>
  5927. </div>
  5928. <div
  5929. :id="'tool-' + toolIndex"
  5930. :style="{
  5931. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5932. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5933. }"
  5934. class="worksDetailBox"
  5935. v-if="
  5936. worksStudent.length &&
  5937. worksStudent[toolIndex].length > 0
  5938. "
  5939. >
  5940. <div
  5941. class="works"
  5942. style="
  5943. width: 200px;
  5944. height: 140px;
  5945. margin: 10px 10px 10px 0;
  5946. border-radius: 15px;
  5947. box-shadow: 0 0 6px 1px #dfdada;
  5948. "
  5949. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5950. :key="wIndex"
  5951. >
  5952. <!-- @click="previewImg(w.works)" -->
  5953. <div class="workImg">
  5954. <img
  5955. :src="w.works"
  5956. @click="previewImg(w.works,w)"
  5957. alt
  5958. />
  5959. <div
  5960. class="answerScore"
  5961. v-if="w.score"
  5962. @click.stop="openScore(w)"
  5963. :class="{
  5964. rightW:
  5965. w.userid == userid || tType == 1 || tType == 4,
  5966. }"
  5967. >
  5968. {{ JSON.parse(w.score).wScore }}分
  5969. </div>
  5970. <div
  5971. class="answerScore"
  5972. @click.stop="openScore(w)"
  5973. v-else-if="courseDetail.userid == userid"
  5974. :class="{
  5975. rightW:
  5976. w.userid == userid || tType == 1 || tType == 4,
  5977. }"
  5978. >
  5979. 评分
  5980. </div>
  5981. <img
  5982. class="deleteImg"
  5983. src="../assets/deleteworks.png"
  5984. v-if="
  5985. w.userid == userid || tType == 1 || tType == 4
  5986. "
  5987. @click.stop="deleteWorks(w.wid)"
  5988. alt
  5989. />
  5990. </div>
  5991. <div class="comment" style="min-width: 200px">
  5992. <div class="worksName">
  5993. <div>{{ w.sName }}</div>
  5994. </div>
  5995. <div class="commentList">
  5996. <div class="commentList">
  5997. <div
  5998. class="commentImg"
  5999. @click="
  6000. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6001. "
  6002. >
  6003. <img
  6004. :src="w.isLikes == true ? likes : noLikes"
  6005. alt=""
  6006. />
  6007. </div>
  6008. <div>{{ w.likesCount }}</div>
  6009. </div>
  6010. <div class="commentList" style="margin-right: 15px">
  6011. <div
  6012. class="commentImg"
  6013. @click="commentOther(w, toolIndex, wIndex)"
  6014. >
  6015. <img
  6016. src="../assets/icon/comment/comment.png"
  6017. alt=""
  6018. />
  6019. </div>
  6020. <div>{{ w.commentCount }}</div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. </div>
  6026. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6027. 未提交
  6028. </div>
  6029. <div
  6030. class="noWorksS"
  6031. v-if="noWorksS && noWorksS[toolIndex].length"
  6032. >
  6033. <div
  6034. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6035. :key="sIndex"
  6036. class="noWorksName"
  6037. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6038. >
  6039. <el-tooltip effect="dark" :content="s.student" placement="top">
  6040. <span>{{ s.student }}</span>
  6041. </el-tooltip>
  6042. </div>
  6043. </div>
  6044. </div>
  6045. <div
  6046. v-if="
  6047. tType &&
  6048. ((tType == 2 && sIsOpen == true) ||
  6049. tType == 1 ||
  6050. tType == 4) &&
  6051. tool.tool.indexOf(26) != -1
  6052. "
  6053. class="worksBox"
  6054. >
  6055. <div
  6056. class="zuoyeYulan"
  6057. v-if="
  6058. worksStudent.length &&
  6059. worksStudent[toolIndex].length > 0
  6060. "
  6061. >
  6062. <div class="worksTop">
  6063. <div>作业预览</div>
  6064. <div
  6065. class="corOpen"
  6066. @click="contract(toolIndex)"
  6067. v-if="
  6068. (isCloseList[toolIndex].isCloseBoolean) &&
  6069. isCloseList[toolIndex].isClose == 0
  6070. "
  6071. >
  6072. 折叠
  6073. </div>
  6074. <div
  6075. class="corOpen"
  6076. @click="contract(toolIndex)"
  6077. v-if="isCloseList[toolIndex].isClose == 1"
  6078. >
  6079. 展开
  6080. </div>
  6081. </div>
  6082. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6083. </div>
  6084. <div
  6085. :id="'tool-' + toolIndex"
  6086. :style="{
  6087. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6088. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6089. }"
  6090. class="worksDetailBox"
  6091. v-if="
  6092. worksStudent.length &&
  6093. worksStudent[toolIndex].length > 0
  6094. "
  6095. >
  6096. <div
  6097. class="works"
  6098. style="width: 240px; height: 140px; overflow: hidden"
  6099. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6100. :key="wIndex"
  6101. :class="w.type == 1 ? 'isTypeOne' : ''"
  6102. >
  6103. <div class="workImg" v-if="w.type == 0">
  6104. <img
  6105. :src="w.works"
  6106. @click="previewImg(w.works,w)"
  6107. alt
  6108. />
  6109. <img
  6110. class="deleteImg"
  6111. src="../assets/deleteworks.png"
  6112. v-if="
  6113. w.userid == userid || tType == 1 || tType == 4
  6114. "
  6115. @click.stop="deleteWorks(w.wid)"
  6116. alt
  6117. />
  6118. </div>
  6119. <div class="workImg" v-if="w.type == 1">
  6120. <img :src="word" @click="openFile(w.works,w)" alt />
  6121. <img
  6122. class="deleteImg"
  6123. src="../assets/deleteworks.png"
  6124. v-if="
  6125. w.userid == userid || tType == 1 || tType == 4
  6126. "
  6127. @click.stop="deleteWorks(w.wid)"
  6128. alt
  6129. />
  6130. </div>
  6131. <div class="worksName">
  6132. <div>{{ w.sName }}</div>
  6133. </div>
  6134. </div>
  6135. </div>
  6136. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6137. 未提交
  6138. </div>
  6139. <div
  6140. class="noWorksS"
  6141. v-if="noWorksS && noWorksS[toolIndex].length"
  6142. >
  6143. <div
  6144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6145. :key="sIndex"
  6146. class="noWorksName"
  6147. >
  6148. <el-tooltip effect="dark" :content="s.student" placement="top">
  6149. <span>{{ s.student }}</span>
  6150. </el-tooltip>
  6151. </div>
  6152. </div>
  6153. </div>
  6154. <div
  6155. v-if="
  6156. tType &&
  6157. ((tType == 2 && sIsOpen == true) ||
  6158. tType == 1 ||
  6159. tType == 4) &&
  6160. tool.tool.indexOf(40) != -1
  6161. "
  6162. class="worksBox"
  6163. >
  6164. <div
  6165. class="zuoyeYulan"
  6166. v-if="
  6167. worksStudent.length &&
  6168. worksStudent[toolIndex].length > 0
  6169. "
  6170. >
  6171. <div class="worksTop">
  6172. <div>作业预览</div>
  6173. <div
  6174. class="corOpen"
  6175. @click="contract(toolIndex)"
  6176. v-if="
  6177. (isCloseList[toolIndex].isCloseBoolean) &&
  6178. isCloseList[toolIndex].isClose == 0
  6179. "
  6180. >
  6181. 折叠
  6182. </div>
  6183. <div
  6184. class="corOpen"
  6185. @click="contract(toolIndex)"
  6186. v-if="isCloseList[toolIndex].isClose == 1"
  6187. >
  6188. 展开
  6189. </div>
  6190. </div>
  6191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6192. </div>
  6193. <div
  6194. :id="'tool-' + toolIndex"
  6195. :style="{
  6196. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6197. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6198. }"
  6199. class="worksDetailBox"
  6200. v-if="
  6201. worksStudent.length &&
  6202. worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div
  6206. class="works"
  6207. style="
  6208. width: 200px;
  6209. height: 140px;
  6210. margin: 10px 10px 10px 0;
  6211. border-radius: 15px;
  6212. box-shadow: 0 0 6px 1px #dfdada;
  6213. "
  6214. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6215. :key="wIndex"
  6216. :class="w.type == 1 ? 'isTypeOne' : ''"
  6217. >
  6218. <div class="workImg">
  6219. <img
  6220. src="../assets/icon/works/noImg.png"
  6221. @click="openPj(w.works, toolIndex)"
  6222. alt
  6223. />
  6224. <img
  6225. class="deleteImg"
  6226. src="../assets/deleteworks.png"
  6227. v-if="
  6228. w.userid == userid || tType == 1 || tType == 4
  6229. "
  6230. @click.stop="deleteWorks(w.wid)"
  6231. alt
  6232. />
  6233. </div>
  6234. <div class="comment" style="min-width: 200px">
  6235. <div class="worksName">
  6236. <div>{{ w.sName }}</div>
  6237. </div>
  6238. <div class="commentList">
  6239. <div class="commentList">
  6240. <div
  6241. class="commentImg"
  6242. @click="
  6243. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6244. "
  6245. >
  6246. <img
  6247. :src="w.isLikes == true ? likes : noLikes"
  6248. alt=""
  6249. />
  6250. </div>
  6251. <div>{{ w.likesCount }}</div>
  6252. </div>
  6253. <div class="commentList" style="margin-right: 15px">
  6254. <div
  6255. class="commentImg"
  6256. @click="commentOther(w, toolIndex, wIndex)"
  6257. >
  6258. <img
  6259. src="../assets/icon/comment/comment.png"
  6260. alt=""
  6261. />
  6262. </div>
  6263. <div>{{ w.commentCount }}</div>
  6264. </div>
  6265. </div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6270. 未提交
  6271. </div>
  6272. <div
  6273. class="noWorksS"
  6274. v-if="noWorksS && noWorksS[toolIndex].length"
  6275. >
  6276. <div
  6277. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6278. :key="sIndex"
  6279. class="noWorksName"
  6280. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6281. >
  6282. <el-tooltip effect="dark" :content="s.student" placement="top">
  6283. <span>{{ s.student }}</span>
  6284. </el-tooltip>
  6285. </div>
  6286. </div>
  6287. </div>
  6288. <div
  6289. v-if="
  6290. tType &&
  6291. tType == 2 &&
  6292. !sIsOpen &&
  6293. tool.tool.indexOf(40) != -1
  6294. "
  6295. class="worksBox"
  6296. >
  6297. <div
  6298. class="zuoyeYulan"
  6299. v-if="workStudent[toolIndex].length > 0"
  6300. >
  6301. <span class="worksTitle">作业预览</span>
  6302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6303. </div>
  6304. <div
  6305. class="worksDetailBox"
  6306. v-if="workStudent[toolIndex].length > 0"
  6307. >
  6308. <div
  6309. class="works"
  6310. style="
  6311. width: 200px;
  6312. height: 140px;
  6313. margin: 10px 10px 10px 0;
  6314. "
  6315. v-for="(w, wIndex) in workStudent[toolIndex]"
  6316. :key="wIndex"
  6317. >
  6318. <div class="workImg">
  6319. <img
  6320. src="../assets/icon/works/noImg.png"
  6321. @click="openPj(w.works, toolIndex)"
  6322. alt
  6323. />
  6324. <img
  6325. class="deleteImg"
  6326. src="../assets/deleteworks.png"
  6327. v-if="
  6328. w.userid == userid || tType == 1 || tType == 4
  6329. "
  6330. @click.stop="deleteWorks(w.wid)"
  6331. alt
  6332. />
  6333. </div>
  6334. <div class="worksName">
  6335. <div>{{ w.sName }}</div>
  6336. </div>
  6337. </div>
  6338. </div>
  6339. </div>
  6340. <div
  6341. v-if="
  6342. tType &&
  6343. ((tType == 2 && sIsOpen == true) ||
  6344. tType == 1 ||
  6345. tType == 4) &&
  6346. tool.tool.indexOf(41) != -1
  6347. "
  6348. >
  6349. <AnswerData2
  6350. v-if="
  6351. worksStudent.length &&
  6352. worksStudent[toolIndex].length > 0
  6353. "
  6354. :problemJson="tool.selectJson.answer"
  6355. :people="worksStudent[toolIndex]"
  6356. ></AnswerData2>
  6357. </div>
  6358. <div
  6359. v-if="
  6360. tType &&
  6361. ((tType == 2 && sIsOpen == true) ||
  6362. tType == 1 ||
  6363. tType == 4) &&
  6364. tool.tool.indexOf(41) != -1
  6365. "
  6366. class="worksBox"
  6367. >
  6368. <div
  6369. class="zuoyeYulan"
  6370. v-if="
  6371. worksStudent.length &&
  6372. worksStudent[toolIndex].length > 0
  6373. "
  6374. >
  6375. <div class="worksTop">
  6376. <div>作业预览</div>
  6377. <div
  6378. class="corOpen"
  6379. @click="contract(toolIndex)"
  6380. v-if="
  6381. (isCloseList[toolIndex].isCloseBoolean) &&
  6382. isCloseList[toolIndex].isClose == 0
  6383. "
  6384. >
  6385. 折叠
  6386. </div>
  6387. <div
  6388. class="corOpen"
  6389. @click="contract(toolIndex)"
  6390. v-if="isCloseList[toolIndex].isClose == 1"
  6391. >
  6392. 展开
  6393. </div>
  6394. </div>
  6395. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6396. </div>
  6397. <div
  6398. :id="'tool-' + toolIndex"
  6399. :style="{
  6400. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6401. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6402. }"
  6403. class="worksDetailBox"
  6404. v-if="
  6405. worksStudent.length &&
  6406. worksStudent[toolIndex].length > 0
  6407. "
  6408. >
  6409. <div
  6410. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6411. :key="wIndex"
  6412. class="isWorksName2"
  6413. @click="openXz(w, toolIndex)"
  6414. >
  6415. {{ w.sName }}
  6416. <img
  6417. class="deleteImg deleteImg2"
  6418. src="../assets/deleteworks.png"
  6419. v-if="w.userid == userid || tType == 1 || tType == 4"
  6420. @click.stop="deleteWorks(w.wid)"
  6421. alt
  6422. />
  6423. </div>
  6424. <!-- <div
  6425. class="works"
  6426. style="
  6427. width: 200px;
  6428. height: 140px;
  6429. margin: 10px 10px 10px 0;
  6430. border-radius: 15px;
  6431. box-shadow: 0 0 6px 1px #dfdada;
  6432. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6433. :class="w.type == 5 ? 'isTypeOne' : ''">
  6434. <div class="workImg">
  6435. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6436. </div>
  6437. <div class="worksName">
  6438. <div>{{ w.sName }}</div>
  6439. </div>
  6440. </div> -->
  6441. </div>
  6442. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6443. 未提交
  6444. </div>
  6445. <div
  6446. class="noWorksS"
  6447. v-if="noWorksS && noWorksS[toolIndex].length"
  6448. >
  6449. <div
  6450. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6451. :key="sIndex"
  6452. class="noWorksName"
  6453. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6454. >
  6455. <el-tooltip effect="dark" :content="s.student" placement="top">
  6456. <span>{{ s.student }}</span>
  6457. </el-tooltip>
  6458. </div>
  6459. </div>
  6460. </div>
  6461. <div
  6462. v-if="
  6463. tType &&
  6464. tType == 2 &&
  6465. !sIsOpen &&
  6466. tool.tool.indexOf(41) != -1
  6467. "
  6468. class="worksBox"
  6469. >
  6470. <div
  6471. class="zuoyeYulan"
  6472. v-if="workStudent[toolIndex].length > 0"
  6473. >
  6474. <span class="worksTitle">作业预览</span>
  6475. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6476. </div>
  6477. <div
  6478. class="worksDetailBox"
  6479. v-if="workStudent[toolIndex].length > 0"
  6480. >
  6481. <div
  6482. class="works"
  6483. style="
  6484. width: 200px;
  6485. height: 140px;
  6486. margin: 10px 10px 10px 0;
  6487. "
  6488. v-for="(w, wIndex) in workStudent[toolIndex]"
  6489. :key="wIndex"
  6490. >
  6491. <div class="workImg">
  6492. <img
  6493. src="../assets/icon/works/noImg.png"
  6494. @click="openXz(w, toolIndex)"
  6495. alt
  6496. />
  6497. <img
  6498. class="deleteImg"
  6499. src="../assets/deleteworks.png"
  6500. v-if="
  6501. w.userid == userid || tType == 1 || tType == 4
  6502. "
  6503. @click.stop="deleteWorks(w.wid)"
  6504. alt
  6505. />
  6506. </div>
  6507. <div class="worksName">
  6508. <div>{{ w.sName }}</div>
  6509. </div>
  6510. </div>
  6511. </div>
  6512. </div>
  6513. <div v-if="false" class="xuan_right_box">
  6514. <div
  6515. class="tool_right_box"
  6516. v-for="(item, index) in tool.sentenceList"
  6517. :key="index"
  6518. >
  6519. <div>
  6520. <span
  6521. style="word-break: break-all; white-space: normal"
  6522. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6523. >
  6524. </div>
  6525. <div class="right_box_xuan">
  6526. <span>正确率</span>
  6527. <span>{{
  6528. (checkJson[toolIndex][index].right
  6529. ? checkJson[toolIndex][index].right
  6530. : 0) + "%"
  6531. }}</span>
  6532. </div>
  6533. <div class="right_box_xuan">
  6534. <span>答对人数</span>
  6535. <span>{{
  6536. checkJson[toolIndex][index].rightPerson.length
  6537. }}</span>
  6538. </div>
  6539. </div>
  6540. </div>
  6541. <div
  6542. v-if="
  6543. tType &&
  6544. ((tType == 2 && sIsOpen == true) ||
  6545. tType == 1 ||
  6546. tType == 4) &&
  6547. tool.tool.indexOf(47) != -1
  6548. "
  6549. >
  6550. <AnswerData
  6551. v-if="
  6552. checkJson[toolIndex].length &&
  6553. (tool.sentenceList || tool.sentenceList.length > 0)
  6554. "
  6555. :people="checkJson[toolIndex]"
  6556. ></AnswerData>
  6557. </div>
  6558. <div
  6559. v-if="
  6560. tType &&
  6561. tType == 2 &&
  6562. !sIsOpen &&
  6563. tool.tool.indexOf(47) != -1
  6564. "
  6565. class="worksBox"
  6566. >
  6567. <div
  6568. class="zuoyeYulan"
  6569. v-if="workStudent[toolIndex].length > 0"
  6570. >
  6571. <span class="worksTitle">作业预览</span>
  6572. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6573. </div>
  6574. <div
  6575. class="worksDetailBox"
  6576. v-if="workStudent[toolIndex].length > 0"
  6577. >
  6578. <div
  6579. class="works"
  6580. style="
  6581. width: 200px;
  6582. height: 140px;
  6583. margin: 10px 10px 10px 0;
  6584. "
  6585. v-for="(w, wIndex) in workStudent[toolIndex]"
  6586. :key="wIndex"
  6587. >
  6588. <!-- @click="openXz(w, toolIndex)" -->
  6589. <div class="workImg" @click="openSen(w, toolIndex)">
  6590. <img src="../assets/icon/works/noImg.png" alt />
  6591. <img
  6592. class="deleteImg"
  6593. src="../assets/deleteworks.png"
  6594. v-if="
  6595. w.userid == userid || tType == 1 || tType == 4
  6596. "
  6597. @click.stop="deleteWorks(w.wid)"
  6598. alt
  6599. />
  6600. </div>
  6601. <div class="worksName">
  6602. <div>
  6603. {{ w.sName }}
  6604. </div>
  6605. </div>
  6606. </div>
  6607. </div>
  6608. </div>
  6609. <div
  6610. v-if="
  6611. tType &&
  6612. ((tType == 2 && sIsOpen == true) ||
  6613. tType == 1 ||
  6614. tType == 4) &&
  6615. tool.tool.indexOf(47) != -1
  6616. "
  6617. class="worksBox"
  6618. >
  6619. <div
  6620. class="zuoyeYulan"
  6621. v-if="
  6622. worksStudent.length &&
  6623. worksStudent[toolIndex].length > 0
  6624. "
  6625. >
  6626. <div class="worksTop">
  6627. <div>作业预览</div>
  6628. <div
  6629. class="corOpen"
  6630. @click="contract(toolIndex)"
  6631. v-if="
  6632. (isCloseList[toolIndex].isCloseBoolean) &&
  6633. isCloseList[toolIndex].isClose == 0
  6634. "
  6635. >
  6636. 折叠
  6637. </div>
  6638. <div
  6639. class="corOpen"
  6640. @click="contract(toolIndex)"
  6641. v-if="isCloseList[toolIndex].isClose == 1"
  6642. >
  6643. 展开
  6644. </div>
  6645. </div>
  6646. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6647. </div>
  6648. <div
  6649. :id="'tool-' + toolIndex"
  6650. :style="{
  6651. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6652. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6653. }"
  6654. class="worksDetailBox"
  6655. v-if="
  6656. worksStudent.length &&
  6657. worksStudent[toolIndex].length > 0
  6658. "
  6659. >
  6660. <!-- @click="openXz(w, toolIndex)" -->
  6661. <div
  6662. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6663. :key="wIndex"
  6664. class="isWorksName2"
  6665. @click="openSen(w, toolIndex)"
  6666. >
  6667. {{ w.sName }}
  6668. <img
  6669. class="deleteImg deleteImg2"
  6670. src="../assets/deleteworks.png"
  6671. v-if="w.userid == userid || tType == 1 || tType == 4"
  6672. @click.stop="deleteWorks(w.wid)"
  6673. alt
  6674. />
  6675. </div>
  6676. </div>
  6677. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6678. 未提交
  6679. </div>
  6680. <div
  6681. class="noWorksS"
  6682. v-if="noWorksS && noWorksS[toolIndex].length"
  6683. >
  6684. <div
  6685. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6686. :key="sIndex"
  6687. class="noWorksName"
  6688. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6689. >
  6690. <el-tooltip effect="dark" :content="s.student" placement="top">
  6691. <span>{{ s.student }}</span>
  6692. </el-tooltip>
  6693. </div>
  6694. </div>
  6695. </div>
  6696. <div
  6697. v-if="
  6698. tType &&
  6699. ((tType == 2 && sIsOpen == true) ||
  6700. tType == 1 ||
  6701. tType == 4) &&
  6702. tool.tool.indexOf(48) != -1
  6703. "
  6704. class="worksBox"
  6705. >
  6706. <div
  6707. class="zuoyeYulan"
  6708. v-if="
  6709. worksStudent.length &&
  6710. worksStudent[toolIndex].length > 0
  6711. "
  6712. >
  6713. <div class="worksTop">
  6714. <div>作业预览</div>
  6715. <div
  6716. class="corOpen"
  6717. @click="contract(toolIndex)"
  6718. v-if="
  6719. (isCloseList[toolIndex].isCloseBoolean) &&
  6720. isCloseList[toolIndex].isClose == 0
  6721. "
  6722. >
  6723. 折叠
  6724. </div>
  6725. <div
  6726. class="corOpen"
  6727. @click="contract(toolIndex)"
  6728. v-if="isCloseList[toolIndex].isClose == 1"
  6729. >
  6730. 展开
  6731. </div>
  6732. </div>
  6733. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6734. </div>
  6735. <div
  6736. :id="'tool-' + toolIndex"
  6737. :style="{
  6738. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6739. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6740. }"
  6741. class="worksDetailBox"
  6742. v-if="
  6743. worksStudent.length &&
  6744. worksStudent[toolIndex].length > 0
  6745. "
  6746. >
  6747. <div
  6748. class="works"
  6749. style="
  6750. width: 200px;
  6751. height: 140px;
  6752. margin: 10px 10px 10px 0;
  6753. border-radius: 15px;
  6754. box-shadow: 0 0 6px 1px #dfdada;
  6755. "
  6756. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6757. :key="wIndex"
  6758. :class="w.type == 1 ? 'isTypeOne' : ''"
  6759. >
  6760. <div class="workImg">
  6761. <img :src="word" @click="openTable(w)" alt />
  6762. <!-- @click="openFile(w.works)" -->
  6763. <div
  6764. class="answerScore"
  6765. v-if="w.score"
  6766. @click.stop="openScore(w)"
  6767. :class="{
  6768. rightW:
  6769. w.userid == userid ||
  6770. tType == 1 ||
  6771. tType == 4 ||
  6772. w.ateacher == userid,
  6773. }"
  6774. >
  6775. {{ JSON.parse(w.score).wScore }}分
  6776. </div>
  6777. <div
  6778. class="answerScore"
  6779. @click.stop="openScore(w)"
  6780. v-else-if="courseDetail.userid == userid"
  6781. :class="{
  6782. rightW:
  6783. w.userid == userid ||
  6784. tType == 1 ||
  6785. tType == 4 ||
  6786. w.ateacher == userid,
  6787. }"
  6788. >
  6789. 评分
  6790. </div>
  6791. <img
  6792. class="deleteImg"
  6793. src="../assets/deleteworks.png"
  6794. v-if="
  6795. w.userid == userid || tType == 1 || tType == 4
  6796. "
  6797. @click.stop="deleteWorks(w.wid)"
  6798. alt
  6799. />
  6800. </div>
  6801. <div class="comment" style="min-width: 200px">
  6802. <div class="worksName">
  6803. <div>{{ w.sName }}</div>
  6804. </div>
  6805. <div class="commentList">
  6806. <div class="commentList">
  6807. <div
  6808. class="commentImg"
  6809. @click="
  6810. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6811. "
  6812. >
  6813. <img
  6814. :src="w.isLikes == true ? likes : noLikes"
  6815. alt=""
  6816. />
  6817. </div>
  6818. <div>{{ w.likesCount }}</div>
  6819. </div>
  6820. <div class="commentList" style="margin-right: 15px">
  6821. <div
  6822. class="commentImg"
  6823. @click="commentOther(w, toolIndex, wIndex)"
  6824. >
  6825. <img
  6826. src="../assets/icon/comment/comment.png"
  6827. alt=""
  6828. />
  6829. </div>
  6830. <div>{{ w.commentCount }}</div>
  6831. </div>
  6832. </div>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6837. 未提交
  6838. </div>
  6839. <div
  6840. class="noWorksS"
  6841. v-if="noWorksS && noWorksS[toolIndex].length"
  6842. >
  6843. <div
  6844. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6845. :key="sIndex"
  6846. class="noWorksName"
  6847. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6848. >
  6849. <el-tooltip effect="dark" :content="s.student" placement="top">
  6850. <span>{{ s.student }}</span>
  6851. </el-tooltip>
  6852. </div>
  6853. </div>
  6854. </div>
  6855. <div
  6856. v-if="
  6857. tType &&
  6858. tType == 2 &&
  6859. !sIsOpen &&
  6860. tool.tool.indexOf(48) != -1
  6861. "
  6862. class="worksBox"
  6863. >
  6864. <div
  6865. class="zuoyeYulan"
  6866. v-if="workStudent[toolIndex].length > 0"
  6867. >
  6868. <span class="worksTitle">作业预览</span>
  6869. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6870. </div>
  6871. <div
  6872. class="worksDetailBox"
  6873. v-if="workStudent[toolIndex].length > 0"
  6874. >
  6875. <div
  6876. class="works"
  6877. style="
  6878. width: 200px;
  6879. height: 140px;
  6880. margin: 10px 10px 10px 0;
  6881. box-shadow: 0 0 6px 1px #dfdada;
  6882. "
  6883. v-for="(w, wIndex) in workStudent[toolIndex]"
  6884. :key="wIndex"
  6885. >
  6886. <div class="workImg">
  6887. <img :src="word" @click="openTable(w)" alt />
  6888. <div
  6889. class="answerScore"
  6890. v-if="w.score"
  6891. @click.stop="openScore(w)"
  6892. :class="{
  6893. rightW:
  6894. w.userid == userid || tType == 1 || tType == 4,
  6895. }"
  6896. >
  6897. {{ JSON.parse(w.score).wScore }}分
  6898. </div>
  6899. <div
  6900. class="answerScore"
  6901. @click.stop="openScore(w)"
  6902. v-else-if="courseDetail.userid == userid"
  6903. :class="{
  6904. rightW:
  6905. w.userid == userid || tType == 1 || tType == 4,
  6906. }"
  6907. >
  6908. 评分
  6909. </div>
  6910. <img
  6911. class="deleteImg"
  6912. src="../assets/deleteworks.png"
  6913. v-if="
  6914. w.userid == userid || tType == 1 || tType == 4
  6915. "
  6916. @click.stop="deleteWorks(w.wid)"
  6917. alt
  6918. />
  6919. </div>
  6920. <div class="worksName">
  6921. <div>{{ w.sName }}</div>
  6922. </div>
  6923. </div>
  6924. </div>
  6925. </div>
  6926. <div
  6927. v-if="
  6928. tType &&
  6929. ((tType == 2 && sIsOpen == true) ||
  6930. tType == 1 ||
  6931. tType == 4) &&
  6932. tool.tool.indexOf(52) != -1
  6933. "
  6934. class="worksBox"
  6935. >
  6936. <div
  6937. class="zuoyeYulan"
  6938. v-if="
  6939. worksStudent.length &&
  6940. worksStudent[toolIndex].length > 0
  6941. "
  6942. >
  6943. <div class="worksTop">
  6944. <div>作业预览</div>
  6945. <div
  6946. class="corOpen"
  6947. @click="contract(toolIndex)"
  6948. v-if="
  6949. (isCloseList[toolIndex].isCloseBoolean) &&
  6950. isCloseList[toolIndex].isClose == 0
  6951. "
  6952. >
  6953. 折叠
  6954. </div>
  6955. <div
  6956. class="corOpen"
  6957. @click="contract(toolIndex)"
  6958. v-if="isCloseList[toolIndex].isClose == 1"
  6959. >
  6960. 展开
  6961. </div>
  6962. </div>
  6963. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6964. </div>
  6965. <div
  6966. :id="'tool-' + toolIndex"
  6967. :style="{
  6968. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6969. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6970. }"
  6971. class="worksDetailBox"
  6972. v-if="
  6973. worksStudent.length &&
  6974. worksStudent[toolIndex].length > 0
  6975. "
  6976. >
  6977. <div
  6978. class="works"
  6979. style="
  6980. width: 200px;
  6981. height: 140px;
  6982. margin: 10px 10px 10px 0;
  6983. border-radius: 15px;
  6984. box-shadow: 0 0 6px 1px #dfdada;
  6985. "
  6986. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6987. :key="wIndex"
  6988. :class="w.type == 1 ? 'isTypeOne' : ''"
  6989. >
  6990. <div class="workImg">
  6991. <img :src="word" @click="openWord(w)" alt />
  6992. <!-- @click="openFile(w.works)" -->
  6993. <div
  6994. class="answerScore"
  6995. v-if="w.score"
  6996. @click.stop="openScore(w)"
  6997. :class="{
  6998. rightW:
  6999. w.userid == userid ||
  7000. tType == 1 ||
  7001. tType == 4 ||
  7002. w.ateacher == userid,
  7003. }"
  7004. >
  7005. {{ JSON.parse(w.score).wScore }}分
  7006. </div>
  7007. <div
  7008. class="answerScore"
  7009. @click.stop="openScore(w)"
  7010. v-else-if="courseDetail.userid == userid"
  7011. :class="{
  7012. rightW:
  7013. w.userid == userid ||
  7014. tType == 1 ||
  7015. tType == 4 ||
  7016. w.ateacher == userid,
  7017. }"
  7018. >
  7019. 评分
  7020. </div>
  7021. <img
  7022. class="deleteImg"
  7023. src="../assets/deleteworks.png"
  7024. v-if="
  7025. w.userid == userid || tType == 1 || tType == 4
  7026. "
  7027. @click.stop="deleteWorks(w.wid)"
  7028. alt
  7029. />
  7030. </div>
  7031. <div class="comment" style="min-width: 200px">
  7032. <div class="worksName">
  7033. <div>{{ w.sName }}</div>
  7034. </div>
  7035. <div class="commentList">
  7036. <div class="commentList">
  7037. <div
  7038. class="commentImg"
  7039. @click="
  7040. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7041. "
  7042. >
  7043. <img
  7044. :src="w.isLikes == true ? likes : noLikes"
  7045. alt=""
  7046. />
  7047. </div>
  7048. <div>{{ w.likesCount }}</div>
  7049. </div>
  7050. <div class="commentList" style="margin-right: 15px">
  7051. <div
  7052. class="commentImg"
  7053. @click="commentOther(w, toolIndex, wIndex)"
  7054. >
  7055. <img
  7056. src="../assets/icon/comment/comment.png"
  7057. alt=""
  7058. />
  7059. </div>
  7060. <div>{{ w.commentCount }}</div>
  7061. </div>
  7062. </div>
  7063. </div>
  7064. </div>
  7065. </div>
  7066. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7067. 未提交
  7068. </div>
  7069. <div
  7070. class="noWorksS"
  7071. v-if="noWorksS && noWorksS[toolIndex].length"
  7072. >
  7073. <div
  7074. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7075. :key="sIndex"
  7076. class="noWorksName"
  7077. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7078. >
  7079. <el-tooltip effect="dark" :content="s.student" placement="top">
  7080. <span>{{ s.student }}</span>
  7081. </el-tooltip>
  7082. </div>
  7083. </div>
  7084. </div>
  7085. <div
  7086. v-if="
  7087. tType &&
  7088. tType == 2 &&
  7089. !sIsOpen &&
  7090. tool.tool.indexOf(52) != -1
  7091. "
  7092. class="worksBox"
  7093. >
  7094. <div
  7095. class="zuoyeYulan"
  7096. v-if="workStudent[toolIndex].length > 0"
  7097. >
  7098. <span class="worksTitle">作业预览</span>
  7099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7100. </div>
  7101. <div
  7102. class="worksDetailBox"
  7103. v-if="workStudent[toolIndex].length > 0"
  7104. >
  7105. <div
  7106. class="works"
  7107. style="
  7108. width: 200px;
  7109. height: 140px;
  7110. margin: 10px 10px 10px 0;
  7111. box-shadow: 0 0 6px 1px #dfdada;
  7112. "
  7113. v-for="(w, wIndex) in workStudent[toolIndex]"
  7114. :key="wIndex"
  7115. >
  7116. <div class="workImg">
  7117. <img :src="word" @click="openWord(w)" alt />
  7118. <div
  7119. class="answerScore"
  7120. v-if="w.score"
  7121. @click.stop="openScore(w)"
  7122. :class="{
  7123. rightW:
  7124. w.userid == userid || tType == 1 || tType == 4,
  7125. }"
  7126. >
  7127. {{ JSON.parse(w.score).wScore }}分
  7128. </div>
  7129. <div
  7130. class="answerScore"
  7131. @click.stop="openScore(w)"
  7132. v-else-if="courseDetail.userid == userid"
  7133. :class="{
  7134. rightW:
  7135. w.userid == userid || tType == 1 || tType == 4,
  7136. }"
  7137. >
  7138. 评分
  7139. </div>
  7140. <img
  7141. class="deleteImg"
  7142. src="../assets/deleteworks.png"
  7143. v-if="
  7144. w.userid == userid || tType == 1 || tType == 4
  7145. "
  7146. @click.stop="deleteWorks(w.wid)"
  7147. alt
  7148. />
  7149. </div>
  7150. <div class="worksName">
  7151. <div>{{ w.sName }}</div>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. </div>
  7156. <div
  7157. v-if="tool.tool.indexOf(49) != -1"
  7158. class="xuan_right_box"
  7159. style="margin: 0 15px 0 25px; width: 93%"
  7160. >
  7161. <div
  7162. v-if="courseDetail.userid == userid"
  7163. style="
  7164. display: flex;
  7165. justify-content: flex-end;
  7166. margin-right: 10px;
  7167. "
  7168. >
  7169. <el-button
  7170. type="primary"
  7171. size="small"
  7172. @click="addTools(49, toolIndex, taskCount)"
  7173. >分组设置</el-button
  7174. >
  7175. </div>
  7176. <div
  7177. v-if="groupStudentUid[toolIndex]"
  7178. class="group_staic_box"
  7179. >
  7180. <div
  7181. v-for="(gp, gd) in tool.groupJson.group"
  7182. :key="gd"
  7183. class="group_staic"
  7184. >
  7185. <span> {{ gp.name }}</span>
  7186. <span>
  7187. 目前人数{{
  7188. groupStudentUid[toolIndex][gd].length
  7189. }}人</span
  7190. >
  7191. </div>
  7192. </div>
  7193. </div>
  7194. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7195. <div
  7196. class="zuoyeYulan"
  7197. v-if="
  7198. worksStudent.length &&
  7199. worksStudent[toolIndex].length > 0
  7200. "
  7201. >
  7202. <span class="worksTitle">作业预览</span>
  7203. </div>
  7204. <div>
  7205. <div
  7206. class="group_workBox"
  7207. v-for="(g, gindex) in tool.groupJson.group"
  7208. :key="gindex"
  7209. >
  7210. <div
  7211. class="group_box"
  7212. v-if="
  7213. groupStudentUid[toolIndex] &&
  7214. worksStudent[toolIndex] &&
  7215. (worksStudent[toolIndex][gindex].length ||
  7216. groupStudentUid[toolIndex][gindex].indexOf(
  7217. userid
  7218. ) != -1)
  7219. "
  7220. >
  7221. <div class="group_title">
  7222. <el-tooltip
  7223. class="item"
  7224. effect="light"
  7225. :content="g.name"
  7226. placement="top"
  7227. >
  7228. <div class="group_name">{{ g.name }}</div>
  7229. </el-tooltip>
  7230. <el-button
  7231. type="primary"
  7232. v-if="
  7233. groupStudentUid[toolIndex][gindex].indexOf(
  7234. userid
  7235. ) != -1
  7236. "
  7237. @click="groupUpload(toolIndex, taskCount, gindex)"
  7238. >上传作业</el-button
  7239. >
  7240. </div>
  7241. <div class="group_work">
  7242. <div
  7243. class="works"
  7244. style="
  7245. width: 200px;
  7246. height: 140px;
  7247. margin: 10px 10px 10px 0;
  7248. border-radius: 15px;
  7249. box-shadow: 0 0 6px 1px #dfdada;
  7250. "
  7251. v-for="(w, wIndex) in worksStudent[toolIndex][
  7252. gindex
  7253. ]"
  7254. :key="wIndex"
  7255. :class="w.type == 1 ? 'isTypeOne' : ''"
  7256. >
  7257. <div class="workImg" v-if="w.type == 0">
  7258. <img
  7259. :src="w.works"
  7260. @click="previewImg(w.works,w)"
  7261. alt
  7262. />
  7263. <div
  7264. class="answerScore"
  7265. v-if="w.score"
  7266. @click.stop="openScore(w)"
  7267. :class="{
  7268. rightW:
  7269. w.userid == userid ||
  7270. tType == 1 ||
  7271. tType == 4 ||
  7272. w.ateacher == userid,
  7273. }"
  7274. >
  7275. {{ JSON.parse(w.score).wScore }}分
  7276. </div>
  7277. <div
  7278. class="answerScore"
  7279. @click.stop="openScore(w)"
  7280. v-else-if="courseDetail.userid == userid"
  7281. :class="{
  7282. rightW:
  7283. w.userid == userid ||
  7284. tType == 1 ||
  7285. tType == 4 ||
  7286. w.ateacher == userid,
  7287. }"
  7288. >
  7289. 评分
  7290. </div>
  7291. <img
  7292. class="deleteImg"
  7293. src="../assets/deleteworks.png"
  7294. v-if="
  7295. w.userid == userid ||
  7296. tType == 1 ||
  7297. tType == 4
  7298. "
  7299. @click.stop="deleteWorks(w.wid)"
  7300. alt
  7301. />
  7302. </div>
  7303. <div class="workImg" v-if="w.type == 1">
  7304. <img
  7305. :src="word"
  7306. @click="openFile(w.works,w)"
  7307. alt
  7308. />
  7309. <!-- @click="openFile(w.works)" -->
  7310. <div
  7311. class="answerScore"
  7312. v-if="w.score"
  7313. @click.stop="openScore(w)"
  7314. :class="{
  7315. rightW:
  7316. w.userid == userid ||
  7317. tType == 1 ||
  7318. tType == 4 ||
  7319. w.ateacher == userid,
  7320. }"
  7321. >
  7322. {{ JSON.parse(w.score).wScore }}分
  7323. </div>
  7324. <div
  7325. class="answerScore"
  7326. @click.stop="openScore(w)"
  7327. v-else-if="courseDetail.userid == userid"
  7328. :class="{
  7329. rightW:
  7330. w.userid == userid ||
  7331. tType == 1 ||
  7332. tType == 4 ||
  7333. w.ateacher == userid,
  7334. }"
  7335. >
  7336. 评分
  7337. </div>
  7338. <img
  7339. class="deleteImg"
  7340. src="../assets/deleteworks.png"
  7341. v-if="
  7342. w.userid == userid ||
  7343. tType == 1 ||
  7344. tType == 4
  7345. "
  7346. @click.stop="deleteWorks(w.wid)"
  7347. alt
  7348. />
  7349. </div>
  7350. <div class="workImg" v-if="w.type == 3">
  7351. <img
  7352. style="cursor: pointer"
  7353. :src="video"
  7354. @click="openVideo(w)"
  7355. alt
  7356. />
  7357. <!-- @click="openVideo(w.works)" -->
  7358. <div
  7359. class="answerScore"
  7360. v-if="w.score"
  7361. @click.stop="openScore(w)"
  7362. :class="{
  7363. rightW:
  7364. w.userid == userid ||
  7365. tType == 1 ||
  7366. tType == 4 ||
  7367. w.ateacher == userid,
  7368. }"
  7369. >
  7370. {{ JSON.parse(w.score).wScore }}分
  7371. </div>
  7372. <div
  7373. class="answerScore"
  7374. @click.stop="openScore(w)"
  7375. v-else-if="courseDetail.userid == userid"
  7376. :class="{
  7377. rightW:
  7378. w.userid == userid ||
  7379. tType == 1 ||
  7380. tType == 4 ||
  7381. w.ateacher == userid,
  7382. }"
  7383. >
  7384. 评分
  7385. </div>
  7386. <img
  7387. class="deleteImg"
  7388. src="../assets/deleteworks.png"
  7389. v-if="
  7390. w.userid == userid ||
  7391. tType == 1 ||
  7392. tType == 4
  7393. "
  7394. @click.stop="deleteWorks(w.wid)"
  7395. alt
  7396. />
  7397. </div>
  7398. <div class="workImg" v-if="w.type == 12">
  7399. <img
  7400. style="cursor: pointer"
  7401. :src="word2"
  7402. @click="downloadFile(w.works)"
  7403. alt
  7404. />
  7405. <!-- @click="openVideo(w.works)" -->
  7406. <div
  7407. class="answerScore"
  7408. v-if="w.score"
  7409. @click.stop="openScore(w)"
  7410. :class="{
  7411. rightW:
  7412. w.userid == userid ||
  7413. tType == 1 ||
  7414. tType == 4 ||
  7415. w.ateacher == userid,
  7416. }"
  7417. >
  7418. {{ JSON.parse(w.score).wScore }}分
  7419. </div>
  7420. <div
  7421. class="answerScore"
  7422. @click.stop="openScore(w)"
  7423. v-else-if="courseDetail.userid == userid"
  7424. :class="{
  7425. rightW:
  7426. w.userid == userid ||
  7427. tType == 1 ||
  7428. tType == 4 ||
  7429. w.ateacher == userid,
  7430. }"
  7431. >
  7432. 评分
  7433. </div>
  7434. <img
  7435. class="deleteImg"
  7436. src="../assets/deleteworks.png"
  7437. v-if="
  7438. w.userid == userid ||
  7439. tType == 1 ||
  7440. tType == 4
  7441. "
  7442. @click.stop="deleteWorks(w.wid)"
  7443. alt
  7444. />
  7445. </div>
  7446. <div class="comment" style="min-width: 200px">
  7447. <div class="worksName">
  7448. <div>{{ w.sName }}</div>
  7449. </div>
  7450. <div class="commentList">
  7451. <div class="commentList">
  7452. <div
  7453. class="commentImg"
  7454. @click="
  7455. isLikes(
  7456. w.wid,
  7457. userid,
  7458. 1,
  7459. null,
  7460. w.isLikes,
  7461. w.sName
  7462. )
  7463. "
  7464. >
  7465. <img
  7466. :src="
  7467. w.isLikes == true ? likes : noLikes
  7468. "
  7469. alt=""
  7470. />
  7471. </div>
  7472. <div>{{ w.likesCount }}</div>
  7473. </div>
  7474. <div
  7475. class="commentList"
  7476. style="margin-right: 15px"
  7477. >
  7478. <div
  7479. class="commentImg"
  7480. @click="
  7481. commentOther(
  7482. w,
  7483. toolIndex,
  7484. wIndex,
  7485. gindex
  7486. )
  7487. "
  7488. >
  7489. <img
  7490. src="../assets/icon/comment/comment.png"
  7491. alt=""
  7492. />
  7493. </div>
  7494. <div>{{ w.commentCount }}</div>
  7495. </div>
  7496. </div>
  7497. </div>
  7498. </div>
  7499. </div>
  7500. </div>
  7501. </div>
  7502. </div>
  7503. </div>
  7504. </div>
  7505. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7506. 上传文件
  7507. <input
  7508. type="file"
  7509. accept="image/png, image/gif, image/jpeg"
  7510. style="display: none"
  7511. @change="beforeUpload1($event, 2, index)"
  7512. />
  7513. </div>-->
  7514. </div>
  7515. </div>
  7516. <!-- <div
  7517. class="vedioBox"
  7518. style="margin-top: 10px"
  7519. v-if="
  7520. courseDetail.userid == userid ||
  7521. (courseDetail.course_teacher &&
  7522. courseDetail.course_teacher.indexOf(userid) != -1)
  7523. "
  7524. :style="{
  7525. borderRadius:
  7526. !(
  7527. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7528. .toolChoose[0].tool &&
  7529. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7530. .toolChoose[0].tool.length > 0
  7531. ) &&
  7532. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7533. .taskDetail == '' &&
  7534. vChapterData[taskCount].length == 0 &&
  7535. fileC[taskCount].length == 0
  7536. ? '0 0 20px 20px'
  7537. : '20px',
  7538. }"
  7539. >
  7540. <div
  7541. class="queTop"
  7542. @click="isClose = !isClose"
  7543. style="
  7544. padding: 15px 0 15px 37px;
  7545. justify-content: space-between;
  7546. "
  7547. >
  7548. <div class="queTopTitle">新增工具</div>
  7549. <div class="queTopRight">
  7550. <div class="queTopClose" v-if="isClose == 0">
  7551. 展开
  7552. <div class="closeImg">
  7553. <img src="../assets/icon/newIcon/close.png" alt="" />
  7554. </div>
  7555. </div>
  7556. <div class="queTopClose" v-if="isClose == 1">
  7557. 折叠
  7558. <div class="openImg">
  7559. <img src="../assets/icon/newIcon/open.png" alt="" />
  7560. </div>
  7561. </div>
  7562. <el-button
  7563. style="margin: 0 30px 0 auto"
  7564. type="primary"
  7565. size="small"
  7566. v-if="isClose == 1 && checktoolArray.length > 0"
  7567. @click.stop="addToolChoose"
  7568. >确定</el-button
  7569. >
  7570. </div>
  7571. </div>
  7572. <div
  7573. class="tool_work_box"
  7574. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7575. >
  7576. <div class="tool_box">
  7577. <div class="tool_type_box">
  7578. <div class="chooseWho">
  7579. <div
  7580. :class="toolType == 0 ? 'isChooseActive' : ''"
  7581. @click="(toolType = 0), $forceUpdate()"
  7582. >
  7583. 互动类
  7584. </div>
  7585. <div
  7586. :class="toolType == 1 ? 'isChooseActive' : ''"
  7587. @click="(toolType = 1), $forceUpdate()"
  7588. >
  7589. 思维类
  7590. </div>
  7591. <div
  7592. :class="toolType == 2 ? 'isChooseActive' : ''"
  7593. @click="(toolType = 2), $forceUpdate()"
  7594. >
  7595. 测评类
  7596. </div>
  7597. <div
  7598. :class="toolType == 3 ? 'isChooseActive' : ''"
  7599. @click="(toolType = 3), $forceUpdate()"
  7600. >
  7601. 编程类
  7602. </div>
  7603. <div
  7604. :class="toolType == 5 ? 'isChooseActive' : ''"
  7605. @click="(toolType = 5), $forceUpdate()"
  7606. >
  7607. 学科类
  7608. </div>
  7609. </div>
  7610. </div>
  7611. <div>
  7612. <div class="toolSort" v-if="toolType == 0">
  7613. <div class="tool">
  7614. <div class="whiteBIcon" @click="addTools2(10)">
  7615. <img
  7616. src="../assets/icon/thirdToolList/time.png"
  7617. alt
  7618. />
  7619. <div style="margin: 5px 0">倒计时</div>
  7620. </div>
  7621. <div class="check" @click="addTools2(10)">
  7622. <img
  7623. src="../assets/icon/checkNo.png"
  7624. alt
  7625. v-if="checktoolArray.indexOf(10) == -1"
  7626. />
  7627. <div class="checkDiv" v-else>
  7628. <img src="../assets/icon/checkedIs.png" alt /><span
  7629. >已选择</span
  7630. >
  7631. </div>
  7632. </div>
  7633. </div>
  7634. <div class="tool">
  7635. <div class="whiteBIcon" @click="addTools2(65)">
  7636. <img
  7637. src="../assets/icon/firstToolList/pickPeople.png"
  7638. alt
  7639. />
  7640. <div style="margin: 5px 0">挑人</div>
  7641. </div>
  7642. <div class="check" @click="addTools2(65)">
  7643. <img
  7644. src="../assets/icon/checkNo.png"
  7645. alt
  7646. v-if="checktoolArray.indexOf(65) == -1"
  7647. />
  7648. <div class="checkDiv" v-else>
  7649. <img src="../assets/icon/checkedIs.png" alt /><span
  7650. >已选择</span
  7651. >
  7652. </div>
  7653. </div>
  7654. </div>
  7655. </div>
  7656. <div class="toolSort" v-if="toolType == 1">
  7657. <div class="tool">
  7658. <div class="whiteBIcon" @click="addTools2(7)">
  7659. <img
  7660. src="../assets/icon/secondToolList/mindNetwork.png"
  7661. alt
  7662. />
  7663. <div style="margin: 5px 0">思维网格</div>
  7664. </div>
  7665. <div class="check" @click="addTools2(7)">
  7666. <img
  7667. src="../assets/icon/checkNo.png"
  7668. alt
  7669. v-if="checktoolArray.indexOf(7) == -1"
  7670. />
  7671. <div class="checkDiv" v-else>
  7672. <img src="../assets/icon/checkedIs.png" alt /><span
  7673. >已选择</span
  7674. >
  7675. </div>
  7676. </div>
  7677. </div>
  7678. <div class="tool">
  7679. <div class="whiteBIcon" @click="addTools2(1)">
  7680. <img
  7681. src="../assets/icon/secondToolList/whiteBoard.png"
  7682. alt
  7683. />
  7684. <div style="margin: 5px 0">电子白板</div>
  7685. </div>
  7686. <div class="check" @click="addTools2(1)">
  7687. <img
  7688. src="../assets/icon/checkNo.png"
  7689. alt
  7690. v-if="checktoolArray.indexOf(1) == -1"
  7691. />
  7692. <div class="checkDiv" v-else>
  7693. <img src="../assets/icon/checkedIs.png" alt /><span
  7694. >已选择</span
  7695. >
  7696. </div>
  7697. </div>
  7698. </div>
  7699. <div class="tool">
  7700. <div class="whiteBIcon" @click="addTools2(52)">
  7701. <img
  7702. src="../assets/icon/fourthToolList/text.png"
  7703. alt
  7704. />
  7705. <div style="margin: 5px 0">文档</div>
  7706. </div>
  7707. <div class="check" @click="addTools2(52)">
  7708. <img
  7709. src="../assets/icon/checkNo.png"
  7710. alt
  7711. v-if="checktoolArray.indexOf(52) == -1"
  7712. />
  7713. <div class="checkDiv" v-else>
  7714. <img src="../assets/icon/checkedIs.png" alt /><span
  7715. >已选择</span
  7716. >
  7717. </div>
  7718. </div>
  7719. </div>
  7720. <div class="tool">
  7721. <div class="whiteBIcon" @click="addTools2(3)">
  7722. <img
  7723. src="../assets/icon/secondToolList/mindMapping.png"
  7724. alt
  7725. />
  7726. <div style="margin: 5px 0">思维导图</div>
  7727. </div>
  7728. <div class="check" @click="addTools2(3)">
  7729. <img
  7730. src="../assets/icon/checkNo.png"
  7731. alt
  7732. v-if="checktoolArray.indexOf(3) == -1"
  7733. />
  7734. <div class="checkDiv" v-else>
  7735. <img src="../assets/icon/checkedIs.png" alt /><span
  7736. >已选择</span
  7737. >
  7738. </div>
  7739. </div>
  7740. </div>
  7741. <div class="tool">
  7742. <div class="whiteBIcon" @click="addTools2(48)">
  7743. <img
  7744. src="../assets/icon/fourthToolList/table.png"
  7745. alt
  7746. />
  7747. <div style="margin: 5px 0">表格</div>
  7748. </div>
  7749. <div class="check" @click="addTools2(48)">
  7750. <img
  7751. src="../assets/icon/checkNo.png"
  7752. alt
  7753. v-if="checktoolArray.indexOf(48) == -1"
  7754. />
  7755. <div class="checkDiv" v-else>
  7756. <img src="../assets/icon/checkedIs.png" alt /><span
  7757. >已选择</span
  7758. >
  7759. </div>
  7760. </div>
  7761. </div>
  7762. </div>
  7763. <div class="toolSort" v-if="toolType == 6">
  7764. <div v-show="tooC == 49">
  7765. <img
  7766. @click="addTools(tooC, toolIndex, taskCount)"
  7767. src="../assets/icon/fourthToolList/group.png"
  7768. alt
  7769. />
  7770. <div style="margin: 5px 0">学生分组</div>
  7771. </div>
  7772. </div>
  7773. <div class="toolSort" v-if="toolType == 2">
  7774. <div class="tool">
  7775. <div class="whiteBIcon" @click="addTools2(16)">
  7776. <img
  7777. src="../assets/icon/thirdToolList/work.png"
  7778. alt
  7779. />
  7780. <div style="margin: 5px 0">作业提交</div>
  7781. </div>
  7782. <div class="check" @click="addTools2(16)">
  7783. <img
  7784. src="../assets/icon/checkNo.png"
  7785. alt
  7786. v-if="checktoolArray.indexOf(16) == -1"
  7787. />
  7788. <div class="checkDiv" v-else>
  7789. <img src="../assets/icon/checkedIs.png" alt /><span
  7790. >已选择</span
  7791. >
  7792. </div>
  7793. </div>
  7794. </div>
  7795. <div class="tool">
  7796. <div class="whiteBIcon" @click="addTools2(50)">
  7797. <img
  7798. src="../assets/icon/thirdToolList/plwork.png"
  7799. alt
  7800. />
  7801. <div style="margin: 5px 0">批量上传</div>
  7802. </div>
  7803. <div class="check" @click="addTools2(50)">
  7804. <img
  7805. src="../assets/icon/checkNo.png"
  7806. alt
  7807. v-if="checktoolArray.indexOf(50) == -1"
  7808. />
  7809. <div class="checkDiv" v-else>
  7810. <img src="../assets/icon/checkedIs.png" alt /><span
  7811. >已选择</span
  7812. >
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <div class="toolSort" v-if="toolType == 3">
  7818. <div class="tool">
  7819. <div class="whiteBIcon" @click="addTools2(18)">
  7820. <img
  7821. src="../assets/icon/thirdToolList/trainPlatform.png"
  7822. alt
  7823. />
  7824. <div style="margin: 5px 0">训练平台</div>
  7825. </div>
  7826. <div class="check" @click="addTools2(18)">
  7827. <img
  7828. src="../assets/icon/checkNo.png"
  7829. alt
  7830. v-if="checktoolArray.indexOf(18) == -1"
  7831. />
  7832. <div class="checkDiv" v-else>
  7833. <img src="../assets/icon/checkedIs.png" alt /><span
  7834. >已选择</span
  7835. >
  7836. </div>
  7837. </div>
  7838. </div>
  7839. <div class="tool">
  7840. <div class="whiteBIcon" @click="addTools2(21)">
  7841. <img
  7842. src="../assets/icon/fourthToolList/program.png"
  7843. alt
  7844. />
  7845. <div style="margin: 5px 0">AIoT Blockly</div>
  7846. </div>
  7847. <div class="check" @click="addTools2(21)">
  7848. <img
  7849. src="../assets/icon/checkNo.png"
  7850. alt
  7851. v-if="checktoolArray.indexOf(21) == -1"
  7852. />
  7853. <div class="checkDiv" v-else>
  7854. <img src="../assets/icon/checkedIs.png" alt /><span
  7855. >已选择</span
  7856. >
  7857. </div>
  7858. </div>
  7859. </div>
  7860. <div class="tool">
  7861. <div class="whiteBIcon" @click="addTools2(23)">
  7862. <img
  7863. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7864. alt
  7865. />
  7866. <div style="margin: 5px 0">AI Python</div>
  7867. </div>
  7868. <div class="check" @click="addTools2(23)">
  7869. <img
  7870. src="../assets/icon/checkNo.png"
  7871. alt
  7872. v-if="checktoolArray.indexOf(23) == -1"
  7873. />
  7874. <div class="checkDiv" v-else>
  7875. <img src="../assets/icon/checkedIs.png" alt /><span
  7876. >已选择</span
  7877. >
  7878. </div>
  7879. </div>
  7880. </div>
  7881. <div class="tool">
  7882. <div class="whiteBIcon" @click="addTools2(24)">
  7883. <img
  7884. src="../assets/icon/fourthToolList/AIprogram.png"
  7885. alt
  7886. />
  7887. <div style="margin: 5px 0">AI Blockly</div>
  7888. </div>
  7889. <div class="check" @click="addTools2(24)">
  7890. <img
  7891. src="../assets/icon/checkNo.png"
  7892. alt
  7893. v-if="checktoolArray.indexOf(24) == -1"
  7894. />
  7895. <div class="checkDiv" v-else>
  7896. <img src="../assets/icon/checkedIs.png" alt /><span
  7897. >已选择</span
  7898. >
  7899. </div>
  7900. </div>
  7901. </div>
  7902. <div class="tool">
  7903. <div class="whiteBIcon" @click="addTools2(32)">
  7904. <img
  7905. src="../assets/icon/thirdToolList/code.png"
  7906. alt
  7907. />
  7908. <div style="margin: 5px 0">源码编辑</div>
  7909. </div>
  7910. <div class="check" @click="addTools2(32)">
  7911. <img
  7912. src="../assets/icon/checkNo.png"
  7913. alt
  7914. v-if="checktoolArray.indexOf(32) == -1"
  7915. />
  7916. <div class="checkDiv" v-else>
  7917. <img src="../assets/icon/checkedIs.png" alt /><span
  7918. >已选择</span
  7919. >
  7920. </div>
  7921. </div>
  7922. </div>
  7923. <div class="tool">
  7924. <div class="whiteBIcon" @click="addTools2(57)">
  7925. <img
  7926. src="../assets/icon/fourthToolList/cocopi.png"
  7927. alt
  7928. />
  7929. <div style="margin: 5px 0">CocoPi</div>
  7930. </div>
  7931. <div class="check" @click="addTools2(57)">
  7932. <img
  7933. src="../assets/icon/checkNo.png"
  7934. alt
  7935. v-if="checktoolArray.indexOf(57) == -1"
  7936. />
  7937. <div class="checkDiv" v-else>
  7938. <img src="../assets/icon/checkedIs.png" alt /><span
  7939. >已选择</span
  7940. >
  7941. </div>
  7942. </div>
  7943. </div>
  7944. <div class="tool">
  7945. <div class="whiteBIcon" @click="addTools2(63)">
  7946. <img
  7947. src="../assets/icon/fourthToolList/Wood.png"
  7948. alt
  7949. />
  7950. <div style="margin: 5px 0">海龟编程</div>
  7951. </div>
  7952. <div class="check" @click="addTools2(63)">
  7953. <img
  7954. src="../assets/icon/checkNo.png"
  7955. alt
  7956. v-if="checktoolArray.indexOf(63) == -1"
  7957. />
  7958. <div class="checkDiv" v-else>
  7959. <img src="../assets/icon/checkedIs.png" alt /><span
  7960. >已选择</span
  7961. >
  7962. </div>
  7963. </div>
  7964. </div>
  7965. </div>
  7966. <div class="toolSort" v-if="toolType == 5">
  7967. <div class="tool">
  7968. <div class="whiteBIcon" @click="addTools2(28)">
  7969. <img
  7970. src="../assets/icon/secondToolList/translation.png"
  7971. alt
  7972. />
  7973. <div style="margin: 5px 0">翻译</div>
  7974. </div>
  7975. <div class="check" @click="addTools2(28)">
  7976. <img
  7977. src="../assets/icon/checkNo.png"
  7978. alt
  7979. v-if="checktoolArray.indexOf(28) == -1"
  7980. />
  7981. <div class="checkDiv" v-else>
  7982. <img src="../assets/icon/checkedIs.png" alt /><span
  7983. >已选择</span
  7984. >
  7985. </div>
  7986. </div>
  7987. </div>
  7988. <div class="tool">
  7989. <div class="whiteBIcon" @click="addTools2(31)">
  7990. <img
  7991. src="../assets/icon/secondToolList/networkPanel.png"
  7992. alt
  7993. />
  7994. <div style="margin: 5px 0">数字画板</div>
  7995. </div>
  7996. <div class="check" @click="addTools2(31)">
  7997. <img
  7998. src="../assets/icon/checkNo.png"
  7999. alt
  8000. v-if="checktoolArray.indexOf(31) == -1"
  8001. />
  8002. <div class="checkDiv" v-else>
  8003. <img src="../assets/icon/checkedIs.png" alt /><span
  8004. >已选择</span
  8005. >
  8006. </div>
  8007. </div>
  8008. </div>
  8009. <div class="tool">
  8010. <div class="whiteBIcon" @click="addTools2(39)">
  8011. <img
  8012. src="../assets/icon/secondToolList/GeoGebra.png"
  8013. alt
  8014. />
  8015. <div style="margin: 5px 0">GeoGebra</div>
  8016. </div>
  8017. <div class="check" @click="addTools2(39)">
  8018. <img
  8019. src="../assets/icon/checkNo.png"
  8020. alt
  8021. v-if="checktoolArray.indexOf(39) == -1"
  8022. />
  8023. <div class="checkDiv" v-else>
  8024. <img src="../assets/icon/checkedIs.png" alt /><span
  8025. >已选择</span
  8026. >
  8027. </div>
  8028. </div>
  8029. </div>
  8030. <div class="tool">
  8031. <div class="whiteBIcon" @click="addTools2(66)">
  8032. <img
  8033. src="../assets/icon/secondToolList/formulaEdi.png"
  8034. alt
  8035. />
  8036. <div style="margin: 5px 0">公式编辑</div>
  8037. </div>
  8038. <div class="check" @click="addTools2(66)">
  8039. <img
  8040. src="../assets/icon/checkNo.png"
  8041. alt
  8042. v-if="checktoolArray.indexOf(66) == -1"
  8043. />
  8044. <div class="checkDiv" v-else>
  8045. <img src="../assets/icon/checkedIs.png" alt /><span
  8046. >已选择</span
  8047. >
  8048. </div>
  8049. </div>
  8050. </div>
  8051. <div class="tool">
  8052. <div class="whiteBIcon" @click="addTools2(67)">
  8053. <img
  8054. src="../assets/icon/secondToolList/molStr.png"
  8055. alt
  8056. />
  8057. <div style="margin: 5px 0">分子结构</div>
  8058. </div>
  8059. <div class="check" @click="addTools2(67)">
  8060. <img
  8061. src="../assets/icon/checkNo.png"
  8062. alt
  8063. v-if="checktoolArray.indexOf(67) == -1"
  8064. />
  8065. <div class="checkDiv" v-else>
  8066. <img src="../assets/icon/checkedIs.png" alt /><span
  8067. >已选择</span
  8068. >
  8069. </div>
  8070. </div>
  8071. </div>
  8072. <div class="tool">
  8073. <div class="whiteBIcon" @click="addTools2(68)">
  8074. <img
  8075. src="../assets/icon/secondToolList/timeAxis.png"
  8076. alt
  8077. />
  8078. <div style="margin: 5px 0">时间轴</div>
  8079. </div>
  8080. <div class="check" @click="addTools2(68)">
  8081. <img
  8082. src="../assets/icon/checkNo.png"
  8083. alt
  8084. v-if="checktoolArray.indexOf(68) == -1"
  8085. />
  8086. <div class="checkDiv" v-else>
  8087. <img src="../assets/icon/checkedIs.png" alt /><span
  8088. >已选择</span
  8089. >
  8090. </div>
  8091. </div>
  8092. </div>
  8093. </div>
  8094. <div class="toolSort" v-if="toolType == 7">
  8095. <div class="tool">
  8096. <div class="whiteBIcon" @click="addTools2(40)">
  8097. <img
  8098. src="../assets/icon/secondToolList/eval.png"
  8099. alt
  8100. />
  8101. <div style="margin: 5px 0">个人评价</div>
  8102. </div>
  8103. <div class="check" @click="addTools2(40)">
  8104. <img
  8105. src="../assets/icon/checkNo.png"
  8106. alt
  8107. v-if="checktoolArray.indexOf(40) == -1"
  8108. />
  8109. <div class="checkDiv" v-else>
  8110. <img src="../assets/icon/checkedIs.png" alt /><span
  8111. >已选择</span
  8112. >
  8113. </div>
  8114. </div>
  8115. </div>
  8116. </div>
  8117. <div class="toolSort" v-if="toolType == 4">
  8118. <div class="tool">
  8119. <div class="whiteBIcon" @click="addTools2(26)">
  8120. <img
  8121. src="../assets/icon/thirdToolList/courseDesign.png"
  8122. alt
  8123. />
  8124. <div style="margin: 5px 0">课程设计</div>
  8125. </div>
  8126. <div class="check" @click="addTools2(26)">
  8127. <img
  8128. src="../assets/icon/checkNo.png"
  8129. alt
  8130. v-if="checktoolArray.indexOf(26) == -1"
  8131. />
  8132. <div class="checkDiv" v-else>
  8133. <img src="../assets/icon/checkedIs.png" alt /><span
  8134. >已选择</span
  8135. >
  8136. </div>
  8137. </div>
  8138. </div>
  8139. <div class="tool">
  8140. <div class="whiteBIcon" @click="addTools2(25)">
  8141. <img
  8142. src="../assets/icon/thirdToolList/evalua.png"
  8143. alt
  8144. />
  8145. <div style="margin: 5px 0">目标管理</div>
  8146. </div>
  8147. <div class="check" @click="addTools2(25)">
  8148. <img
  8149. src="../assets/icon/checkNo.png"
  8150. alt
  8151. v-if="checktoolArray.indexOf(25) == -1"
  8152. />
  8153. <div class="checkDiv" v-else>
  8154. <img src="../assets/icon/checkedIs.png" alt /><span
  8155. >已选择</span
  8156. >
  8157. </div>
  8158. </div>
  8159. </div>
  8160. </div>
  8161. </div>
  8162. </div>
  8163. </div>
  8164. </div> -->
  8165. <div
  8166. class="vedioBox"
  8167. style="margin-top: 10px; border-radius: 20px"
  8168. v-if="
  8169. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8170. .eList &&
  8171. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8172. .eList.length &&
  8173. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8174. .eList.length > 0 &&
  8175. tType != 2
  8176. "
  8177. >
  8178. <div
  8179. class="queTop"
  8180. style="
  8181. font-size: 20px;
  8182. padding: 15px 0 15px 37px;
  8183. font-weight: bold;
  8184. "
  8185. >
  8186. <!-- <div class="question" style="width: 30px">
  8187. <img src="../assets/icon/toolIcon.png" alt />
  8188. </div>
  8189. <div class="queTitle">
  8190. <div>工具</div>
  8191. </div>-->
  8192. 评一评
  8193. </div>
  8194. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8195. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8196. <el-table
  8197. :data="
  8198. chapInfoList[courseType].chapterInfo[0].taskJson[
  8199. taskCount
  8200. ].eList
  8201. "
  8202. :header-cell-style="{ background: '#F0F4FA' }"
  8203. :row-class-name="tableRowClassName"
  8204. border
  8205. stripe
  8206. style="width: 100%"
  8207. >
  8208. <el-table-column
  8209. label="评价名称"
  8210. align="center"
  8211. >
  8212. <template slot-scope="scope"
  8213. ><div>{{ scope.row.value }}</div></template
  8214. >
  8215. </el-table-column>
  8216. <el-table-column
  8217. label="评价描述"
  8218. align="center"
  8219. >
  8220. <template slot-scope="scope"
  8221. ><div>
  8222. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8223. </div></template
  8224. >
  8225. </el-table-column>
  8226. <el-table-column label="目标" align="center">
  8227. <template slot-scope="scope"
  8228. ><div>
  8229. {{
  8230. scope.row.target
  8231. ? scope.row.target[scope.row.target.length - 1]
  8232. : "-"
  8233. }}
  8234. </div></template
  8235. ></el-table-column
  8236. >
  8237. </el-table>
  8238. <!-- <div
  8239. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8240. .chapterInfo[0].taskJson[taskCount].eList"
  8241. :key="eIndex"
  8242. class="elist_input_box"
  8243. >
  8244. <div style="width: 95%">
  8245. <div
  8246. style="
  8247. display: flex;
  8248. flex-direction: row;
  8249. flex-wrap: nowrap;
  8250. align-items: center;
  8251. "
  8252. >
  8253. <div style="max-width: calc(100% - 285px)">
  8254. <span>{{ eItem.value }}</span>
  8255. </div>
  8256. <div
  8257. style="
  8258. padding-left: 25px;
  8259. display: flex;
  8260. flex-direction: row;
  8261. align-items: center;
  8262. "
  8263. >
  8264. <el-rate
  8265. v-model="eItem.score"
  8266. :colors="colors"
  8267. disabled
  8268. ></el-rate>
  8269. </div>
  8270. </div>
  8271. <div class="elist_inptu_text" style="padding-left: 10px">
  8272. <span v-if="eItem.detail != ''">{{
  8273. eItem.detail
  8274. }}</span>
  8275. <span v-else style="color: #b2b1b3; font-size: 14px"
  8276. >暂无描述...</span
  8277. >
  8278. </div>
  8279. </div>
  8280. </div> -->
  8281. </div>
  8282. <div
  8283. v-if="evalua"
  8284. style="
  8285. border: 1px solid #e5e5e5;
  8286. max-width: 650px;
  8287. width: 100%;
  8288. margin-top: 20px;
  8289. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8290. "
  8291. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8292. >
  8293. <div class="e_add_top">
  8294. <div class="e_add_title" style="width: 100%">
  8295. <!-- <span>目标管理名称</span> -->
  8296. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8297. <img
  8298. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8299. src="../assets/line.png"
  8300. class="cru_line"
  8301. style="
  8302. width: 125px;
  8303. height: 20px;
  8304. bottom: -10px;
  8305. left: 5px;
  8306. "
  8307. />
  8308. <!-- <el-input
  8309. v-model="eTitle"
  8310. placeholder="请输入名称"
  8311. @change="setMindData"
  8312. ></el-input>-->
  8313. <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>
  8314. <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>
  8315. </div>
  8316. </div>
  8317. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8318. <div class="e_add_list_pbox">
  8319. <div class="e_add_list_pbox_title">
  8320. <!-- <span class="type_title">切换模式</span> -->
  8321. <div class="type_content">
  8322. <span
  8323. :class="{ active: typeMode == 1 }"
  8324. @click="typeMode = 1"
  8325. >目标树</span
  8326. >
  8327. <span
  8328. :class="{ active: typeMode == 2 }"
  8329. @click="typeMode = 2"
  8330. >目标罗盘</span
  8331. >
  8332. <!-- <span
  8333. :class="{ active: typeMode == 3 }"
  8334. @click="typeMode = 3"
  8335. >目标看板</span
  8336. > -->
  8337. </div>
  8338. </div>
  8339. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8340. <Mind
  8341. :showBar="false"
  8342. :mindData="data"
  8343. style="width: 100%"
  8344. v-show="typeMode == 1"
  8345. ></Mind>
  8346. <Sunburst
  8347. :Josn="eJson"
  8348. :num="eJSONNum"
  8349. style="width: 100%"
  8350. v-if="typeMode == 2"
  8351. ></Sunburst>
  8352. <SeeBoard
  8353. :Josn="eJson"
  8354. :num="eJSONNum"
  8355. :ename="eTitle"
  8356. style="width: 100%"
  8357. v-if="typeMode == 3"
  8358. >
  8359. </SeeBoard>
  8360. </div>
  8361. </div>
  8362. </div>
  8363. </div>
  8364. </div>
  8365. </div>
  8366. <!-- <div
  8367. class="project_box"
  8368. style="margin-top: 15px; padding-bottom: 30px"
  8369. >
  8370. <div
  8371. style="
  8372. display: flex;
  8373. flex-wrap: nowrap;
  8374. flex-direction: column;
  8375. position: relative;
  8376. "
  8377. >
  8378. <div class="queTop">
  8379. <div class="question">
  8380. <img src="../assets/icon/homeWork.png" alt="" />
  8381. </div>
  8382. <div class="queTitle">
  8383. <div>作业提交<span>(提交图文视频等)</span></div>
  8384. <div>:任务:{{ task.task }}</div>
  8385. </div>
  8386. </div>
  8387. <div class="ediBottom">
  8388. <div
  8389. class="addEditor"
  8390. style="margin-top: 23px"
  8391. @click="openAddWork"
  8392. v-if="!isNoHomeWork"
  8393. >
  8394. 选择文件
  8395. </div>
  8396. <div
  8397. class="addEditor"
  8398. style="margin-top: 23px"
  8399. @click="openAddWork"
  8400. v-else
  8401. >
  8402. 已提交
  8403. </div>
  8404. </div>
  8405. </div>
  8406. </div>-->
  8407. </div>
  8408. </div>
  8409. <el-dialog
  8410. title="作业提交"
  8411. :visible.sync="dialogVisible"
  8412. :append-to-body="true"
  8413. width="500px"
  8414. :before-close="handleClose"
  8415. class="dialog_change"
  8416. >
  8417. <div class="marginT">
  8418. <div>上传文件</div>
  8419. <div
  8420. class="chapter_add"
  8421. @click="addImg($event)"
  8422. v-if="studyJuri[0].cover.length == 0"
  8423. >
  8424. <div class="up_photo">
  8425. <img src="../assets/icon/uploadImg.png" alt />
  8426. </div>
  8427. <!-- <input
  8428. type="file"
  8429. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8430. style="display: none"
  8431. @change="beforeUpload1($event, 1)"
  8432. /> -->
  8433. <input
  8434. type="file"
  8435. accept="*"
  8436. style="display: none"
  8437. @change="beforeUpload1($event, 1)"
  8438. />
  8439. <!-- <input
  8440. type="file"
  8441. accept="image/*"
  8442. capture="camera"
  8443. style="display: none"
  8444. @change="beforeUpload1($event, 1)"
  8445. /> -->
  8446. </div>
  8447. <div
  8448. class="chapter_add"
  8449. style="
  8450. display: flex;
  8451. width: 100%;
  8452. flex-direction: row;
  8453. flex-wrap: wrap;
  8454. justify-content: flex-start;
  8455. padding: 15px 0;
  8456. "
  8457. v-if="studyJuri[0].cover.length > 0"
  8458. >
  8459. <div class="upCover">
  8460. <img
  8461. :src="studyJuri[0].cover[0].url"
  8462. alt
  8463. v-if="fileType == 0"
  8464. />
  8465. <img :src="word" alt v-else-if="fileType == 1" />
  8466. <img :src="video" alt v-else-if="fileType == 2" />
  8467. <img :src="word2" alt v-else-if="fileType == 3" />
  8468. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8469. <div class="deleteWord" @click="clean(1)">
  8470. <img src="../assets/icon/deleteWorks.png" alt />
  8471. </div>
  8472. </div>
  8473. </div>
  8474. </div>
  8475. <div
  8476. class="upload_send"
  8477. @click="addCourseWorks(taskCount)"
  8478. v-if="!proVisible"
  8479. >
  8480. 提交
  8481. </div>
  8482. </el-dialog>
  8483. </div>
  8484. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8485. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @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(
  8486. '/courseDetail?userid=' +
  8487. userid +
  8488. '&oid=' +
  8489. oid +
  8490. '&org=' +
  8491. org +
  8492. '&cid=' +
  8493. classId +
  8494. '&courseId=' +
  8495. id +
  8496. '&tType=' +
  8497. tType +
  8498. '&screenType=' +
  8499. screenType
  8500. )"></classRoomHelper>
  8501. </div>
  8502. <div
  8503. class="pButton"
  8504. @click="(pzDialog = true), selectPz()"
  8505. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8506. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8507. >
  8508. <!-- 批 -->
  8509. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8510. </div>
  8511. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8512. <div class="pzTop2">
  8513. <!-- <div>评论</div>
  8514. <div @click="pzDialog = false">
  8515. <img src="../assets/close1.png" alt="" />
  8516. </div> -->
  8517. <div class="checkbox">
  8518. <!-- <div class="check" style="font-size: 25px; position: unset">
  8519. 评论
  8520. </div> -->
  8521. <div class="cb-tabList">
  8522. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8523. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8524. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8525. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8526. </div>
  8527. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8528. <el-option label="时间降序" :value="1"></el-option>
  8529. <el-option label="时间升序" :value="2"></el-option>
  8530. <el-option label="我的评课" :value="3"></el-option>
  8531. </el-select>
  8532. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8533. </div>
  8534. </div>
  8535. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8536. <div class="pzListBox" v-if="pzList && pzList.length">
  8537. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8538. <div class="pzNavTop">
  8539. <div>评</div>
  8540. <div>
  8541. {{
  8542. pz.username && pz.username.length > 5
  8543. ? pz.username.substring(0, 5) + "..."
  8544. : pz.username
  8545. }}的评论
  8546. </div>
  8547. <div
  8548. class="pzDelete"
  8549. v-if="pz.userid == userid"
  8550. @click="deletePz(pz.id)"
  8551. >
  8552. 删除
  8553. </div>
  8554. </div>
  8555. <div
  8556. @click="checkImg(getImgList(pz.content))"
  8557. class="pzContent cont"
  8558. v-html="pz.content"
  8559. v-if="pz.type == '1'"
  8560. ></div>
  8561. <div class="pzContent" v-if="pz.type == '2'">
  8562. <audio :src="pz.content" controls="controls" ref="audio">
  8563. Your browser does not support the audio element.
  8564. </audio>
  8565. </div>
  8566. <div class="pzContent" v-if="pz.type == '3'">
  8567. <img
  8568. :src="pz.content"
  8569. style="width: 90%; margin: 0 auto; display: block"
  8570. @click="previewImg(pz.content)"
  8571. />
  8572. </div>
  8573. <div class="timeAndReply">
  8574. <div class="time">
  8575. {{ pz.time }}
  8576. </div>
  8577. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8578. </div>
  8579. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8580. <div
  8581. v-for="(h, hIndex) in pz.hfList"
  8582. :key="hIndex"
  8583. class="hfItem"
  8584. >
  8585. <div class="whoReplyWho">
  8586. <div class="hfName">{{ h.username }}</div>
  8587. <div class="hfImg">
  8588. <img src="../assets/icon/newIcons/right.png" alt="" />
  8589. </div>
  8590. <div class="hfName">{{ pz.username }}</div>
  8591. </div>
  8592. <div class="hfContent" v-html="h.content"></div>
  8593. <div class="hfBottom">
  8594. <div class="hfTime">{{ h.time }}</div>
  8595. <div
  8596. class="deleteHfItem"
  8597. @click="deleteReply(h.id)"
  8598. v-if="userid == h.userid"
  8599. >
  8600. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8601. </div>
  8602. </div>
  8603. </div>
  8604. </div>
  8605. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8606. <div class="replyInput">
  8607. <el-input v-model="reply[pzIndex]"></el-input>
  8608. </div>
  8609. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8610. </div> -->
  8611. </div>
  8612. </div>
  8613. <div class="noPz" v-else>
  8614. <img src="../assets/icon/noPz.png" alt="" />
  8615. </div>
  8616. <div class="addPzButton">
  8617. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8618. 添加评论
  8619. </div>
  8620. <!-- <div class="img1">
  8621. <div @click="(addPzDialog = true), (pzType = 2)">
  8622. <img src="../assets/audio.png" /><span>音频</span>
  8623. </div>
  8624. </div> -->
  8625. </div>
  8626. </div>
  8627. <div class="scoreList" v-if="commentTagShow==1">
  8628. <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"/>
  8629. </div>
  8630. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8631. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8632. </div>
  8633. </div>
  8634. <div
  8635. v-if="toolDialogVisible == true"
  8636. class="toolMask"
  8637. @click="toolDialogVisible = false"
  8638. ></div>
  8639. <div v-if="toolDialogVisible == true" class="addToolCss">
  8640. <div class="toolTop">
  8641. <div style="font-weight: bold">新增工具</div>
  8642. <div @click="toolDialogVisible = false">
  8643. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8644. </div>
  8645. </div>
  8646. <div class="tool_box">
  8647. <div class="tool_type_box">
  8648. <div class="chooseWho">
  8649. <div
  8650. :class="toolType == 0 ? 'isChooseActive' : ''"
  8651. @click="(toolType = 0), $forceUpdate()"
  8652. >
  8653. 互动类
  8654. </div>
  8655. <div
  8656. :class="toolType == 1 ? 'isChooseActive' : ''"
  8657. @click="(toolType = 1), $forceUpdate()"
  8658. >
  8659. 思维类
  8660. </div>
  8661. <div
  8662. :class="toolType == 2 ? 'isChooseActive' : ''"
  8663. @click="(toolType = 2), $forceUpdate()"
  8664. >
  8665. 测评类
  8666. </div>
  8667. <div
  8668. :class="toolType == 3 ? 'isChooseActive' : ''"
  8669. @click="(toolType = 3), $forceUpdate()"
  8670. >
  8671. 编程类
  8672. </div>
  8673. <div
  8674. :class="toolType == 5 ? 'isChooseActive' : ''"
  8675. @click="(toolType = 5), $forceUpdate()"
  8676. >
  8677. 学科类
  8678. </div>
  8679. </div>
  8680. </div>
  8681. <div>
  8682. <div class="toolSort" v-if="toolType == 0">
  8683. <div
  8684. class="tool"
  8685. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8686. @click="addTools2(10)"
  8687. >
  8688. <div class="whiteBIcon">
  8689. <img src="../assets/icon/thirdToolList/time.png" alt />
  8690. <div style="margin: 5px 0">倒计时</div>
  8691. </div>
  8692. <div class="check">
  8693. <div
  8694. v-if="checktoolArray.indexOf(10) == -1"
  8695. class="noChoose"
  8696. ></div>
  8697. <div v-else class="isChoose"></div>
  8698. </div>
  8699. </div>
  8700. <div
  8701. class="tool"
  8702. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8703. @click="addTools2(65)"
  8704. >
  8705. <div class="whiteBIcon">
  8706. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8707. <div style="margin: 5px 0">挑人</div>
  8708. </div>
  8709. <div class="check">
  8710. <div
  8711. v-if="checktoolArray.indexOf(65) == -1"
  8712. class="noChoose"
  8713. ></div>
  8714. <div v-else class="isChoose"></div>
  8715. </div>
  8716. </div>
  8717. </div>
  8718. <div class="toolSort" v-if="toolType == 1">
  8719. <div
  8720. class="tool"
  8721. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8722. @click="addTools2(7)"
  8723. >
  8724. <div class="whiteBIcon">
  8725. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8726. <div style="margin: 5px 0">思维网格</div>
  8727. </div>
  8728. <div class="check">
  8729. <div
  8730. v-if="checktoolArray.indexOf(7) == -1"
  8731. class="noChoose"
  8732. ></div>
  8733. <div v-else class="isChoose"></div>
  8734. </div>
  8735. </div>
  8736. <div
  8737. class="tool"
  8738. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8739. @click="addTools2(1)"
  8740. >
  8741. <div class="whiteBIcon">
  8742. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8743. <div style="margin: 5px 0">电子白板</div>
  8744. </div>
  8745. <div class="check">
  8746. <div
  8747. v-if="checktoolArray.indexOf(1) == -1"
  8748. class="noChoose"
  8749. ></div>
  8750. <div v-else class="isChoose"></div>
  8751. </div>
  8752. </div>
  8753. <div
  8754. class="tool"
  8755. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8756. @click="addTools2(52)"
  8757. >
  8758. <div class="whiteBIcon">
  8759. <img src="../assets/icon/fourthToolList/text.png" alt />
  8760. <div style="margin: 5px 0">文档</div>
  8761. </div>
  8762. <div class="check">
  8763. <div
  8764. v-if="checktoolArray.indexOf(52) == -1"
  8765. class="noChoose"
  8766. ></div>
  8767. <div v-else class="isChoose"></div>
  8768. </div>
  8769. </div>
  8770. <div
  8771. class="tool"
  8772. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8773. @click="addTools2(3)"
  8774. >
  8775. <div class="whiteBIcon">
  8776. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8777. <div style="margin: 5px 0">思维导图</div>
  8778. </div>
  8779. <div class="check">
  8780. <div
  8781. v-if="checktoolArray.indexOf(3) == -1"
  8782. class="noChoose"
  8783. ></div>
  8784. <div v-else class="isChoose"></div>
  8785. </div>
  8786. </div>
  8787. <div
  8788. class="tool"
  8789. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8790. @click="addTools2(48)"
  8791. >
  8792. <div class="whiteBIcon">
  8793. <img src="../assets/icon/fourthToolList/table.png" alt />
  8794. <div style="margin: 5px 0">表格</div>
  8795. </div>
  8796. <div class="check">
  8797. <div
  8798. v-if="checktoolArray.indexOf(48) == -1"
  8799. class="noChoose"
  8800. ></div>
  8801. <div v-else class="isChoose"></div>
  8802. </div>
  8803. </div>
  8804. </div>
  8805. <div class="toolSort" v-if="toolType == 6">
  8806. <div v-show="tooC == 49">
  8807. <img
  8808. @click="addTools(tooC, toolIndex, taskCount)"
  8809. src="../assets/icon/fourthToolList/group.png"
  8810. alt
  8811. />
  8812. <div style="margin: 5px 0">学生分组</div>
  8813. </div>
  8814. </div>
  8815. <div class="toolSort" v-if="toolType == 2">
  8816. <div
  8817. class="tool"
  8818. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8819. @click="addTools2(16)"
  8820. >
  8821. <div class="whiteBIcon">
  8822. <img src="../assets/icon/thirdToolList/work.png" alt />
  8823. <div style="margin: 5px 0">作业提交</div>
  8824. </div>
  8825. <div class="check">
  8826. <div
  8827. v-if="checktoolArray.indexOf(16) == -1"
  8828. class="noChoose"
  8829. ></div>
  8830. <div v-else class="isChoose"></div>
  8831. </div>
  8832. </div>
  8833. <div
  8834. class="tool"
  8835. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8836. @click="addTools2(50)"
  8837. >
  8838. <div class="whiteBIcon">
  8839. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8840. <div style="margin: 5px 0">批量上传</div>
  8841. </div>
  8842. <div class="check">
  8843. <div
  8844. v-if="checktoolArray.indexOf(50) == -1"
  8845. class="noChoose"
  8846. ></div>
  8847. <div v-else class="isChoose"></div>
  8848. </div>
  8849. </div>
  8850. </div>
  8851. <div class="toolSort" v-if="toolType == 3">
  8852. <div
  8853. class="tool"
  8854. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8855. @click="addTools2(18)"
  8856. >
  8857. <div class="whiteBIcon">
  8858. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8859. <div style="margin: 5px 0">训练平台</div>
  8860. </div>
  8861. <div class="check">
  8862. <div
  8863. v-if="checktoolArray.indexOf(18) == -1"
  8864. class="noChoose"
  8865. ></div>
  8866. <div v-else class="isChoose"></div>
  8867. </div>
  8868. </div>
  8869. <div
  8870. class="tool"
  8871. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8872. @click="addTools2(21)"
  8873. >
  8874. <div class="whiteBIcon">
  8875. <img src="../assets/icon/fourthToolList/program.png" alt />
  8876. <div style="margin: 5px 0">AIoT Blockly</div>
  8877. </div>
  8878. <div class="check">
  8879. <div
  8880. v-if="checktoolArray.indexOf(21) == -1"
  8881. class="noChoose"
  8882. ></div>
  8883. <div v-else class="isChoose"></div>
  8884. </div>
  8885. </div>
  8886. <div
  8887. class="tool"
  8888. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8889. @click="addTools2(23)"
  8890. >
  8891. <div class="whiteBIcon">
  8892. <img
  8893. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8894. alt
  8895. />
  8896. <div style="margin: 5px 0">AI Python</div>
  8897. </div>
  8898. <div class="check">
  8899. <div
  8900. v-if="checktoolArray.indexOf(23) == -1"
  8901. class="noChoose"
  8902. ></div>
  8903. <div v-else class="isChoose"></div>
  8904. </div>
  8905. </div>
  8906. <div
  8907. class="tool"
  8908. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8909. @click="addTools2(24)"
  8910. >
  8911. <div class="whiteBIcon">
  8912. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8913. <div style="margin: 5px 0">AI Blockly</div>
  8914. </div>
  8915. <div class="check">
  8916. <div
  8917. v-if="checktoolArray.indexOf(24) == -1"
  8918. class="noChoose"
  8919. ></div>
  8920. <div v-else class="isChoose"></div>
  8921. </div>
  8922. </div>
  8923. <div
  8924. class="tool"
  8925. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8926. @click="addTools2(32)"
  8927. >
  8928. <div class="whiteBIcon">
  8929. <img src="../assets/icon/thirdToolList/code.png" alt />
  8930. <div style="margin: 5px 0">源码编辑</div>
  8931. </div>
  8932. <div class="check">
  8933. <div
  8934. v-if="checktoolArray.indexOf(32) == -1"
  8935. class="noChoose"
  8936. ></div>
  8937. <div v-else class="isChoose"></div>
  8938. </div>
  8939. </div>
  8940. <div
  8941. class="tool"
  8942. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8943. @click="addTools2(57)"
  8944. >
  8945. <div class="whiteBIcon">
  8946. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8947. <div style="margin: 5px 0">CocoPi</div>
  8948. </div>
  8949. <div class="check">
  8950. <div
  8951. v-if="checktoolArray.indexOf(57) == -1"
  8952. class="noChoose"
  8953. ></div>
  8954. <div v-else class="isChoose"></div>
  8955. </div>
  8956. </div>
  8957. <div
  8958. class="tool"
  8959. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8960. @click="addTools2(63)"
  8961. >
  8962. <div class="whiteBIcon">
  8963. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8964. <div style="margin: 5px 0">海龟编程</div>
  8965. </div>
  8966. <div class="check">
  8967. <div
  8968. v-if="checktoolArray.indexOf(63) == -1"
  8969. class="noChoose"
  8970. ></div>
  8971. <div v-else class="isChoose"></div>
  8972. </div>
  8973. </div>
  8974. <div
  8975. class="tool"
  8976. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8977. @click="addTools2(71)"
  8978. >
  8979. <div class="whiteBIcon">
  8980. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8981. <div style="margin: 5px 0">AI智能体</div>
  8982. </div>
  8983. <div class="check">
  8984. <div
  8985. v-if="checktoolArray.indexOf(71) == -1"
  8986. class="noChoose"
  8987. ></div>
  8988. <div v-else class="isChoose"></div>
  8989. </div>
  8990. </div>
  8991. </div>
  8992. <div class="toolSort" v-if="toolType == 7">
  8993. <div
  8994. class="tool"
  8995. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8996. @click="addTools2(40)"
  8997. >
  8998. <div class="whiteBIcon">
  8999. <img src="../assets/icon/secondToolList/eval.png" alt />
  9000. <div style="margin: 5px 0">个人评价</div>
  9001. </div>
  9002. <div class="check">
  9003. <div
  9004. v-if="checktoolArray.indexOf(40) == -1"
  9005. class="noChoose"
  9006. ></div>
  9007. <div v-else class="isChoose"></div>
  9008. </div>
  9009. </div>
  9010. </div>
  9011. <div class="toolSort" v-if="toolType == 5">
  9012. <div
  9013. class="tool"
  9014. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9015. @click="addTools2(28)"
  9016. >
  9017. <div class="whiteBIcon">
  9018. <img src="../assets/icon/secondToolList/translation.png" alt />
  9019. <div style="margin: 5px 0">翻译</div>
  9020. </div>
  9021. <div class="check">
  9022. <div
  9023. v-if="checktoolArray.indexOf(28) == -1"
  9024. class="noChoose"
  9025. ></div>
  9026. <div v-else class="isChoose"></div>
  9027. </div>
  9028. </div>
  9029. <div
  9030. class="tool"
  9031. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9032. @click="addTools2(31)"
  9033. >
  9034. <div class="whiteBIcon">
  9035. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9036. <div style="margin: 5px 0">数字画板</div>
  9037. </div>
  9038. <div class="check">
  9039. <div
  9040. v-if="checktoolArray.indexOf(31) == -1"
  9041. class="noChoose"
  9042. ></div>
  9043. <div v-else class="isChoose"></div>
  9044. </div>
  9045. </div>
  9046. <div
  9047. class="tool"
  9048. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9049. @click="addTools2(39)"
  9050. >
  9051. <div class="whiteBIcon">
  9052. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9053. <div style="margin: 5px 0">GeoGebra</div>
  9054. </div>
  9055. <div class="check">
  9056. <div
  9057. v-if="checktoolArray.indexOf(39) == -1"
  9058. class="noChoose"
  9059. ></div>
  9060. <div v-else class="isChoose"></div>
  9061. </div>
  9062. </div>
  9063. <div
  9064. class="tool"
  9065. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9066. @click="addTools2(66)"
  9067. >
  9068. <div class="whiteBIcon">
  9069. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9070. <div style="margin: 5px 0">公式编辑</div>
  9071. </div>
  9072. <div class="check">
  9073. <div
  9074. v-if="checktoolArray.indexOf(66) == -1"
  9075. class="noChoose"
  9076. ></div>
  9077. <div v-else class="isChoose"></div>
  9078. </div>
  9079. </div>
  9080. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9081. <div class="whiteBIcon" @click="addTools2(67)">
  9082. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9083. <div style="margin: 5px 0">分子结构</div>
  9084. </div>
  9085. <div class="check" @click="addTools2(67)">
  9086. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9087. <div v-else class="isChoose"></div>
  9088. </div>
  9089. </div> -->
  9090. <div
  9091. class="tool"
  9092. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9093. @click="addTools2(68)"
  9094. >
  9095. <div class="whiteBIcon">
  9096. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9097. <div style="margin: 5px 0">时间轴</div>
  9098. </div>
  9099. <div class="check">
  9100. <div
  9101. v-if="checktoolArray.indexOf(68) == -1"
  9102. class="noChoose"
  9103. ></div>
  9104. <div v-else class="isChoose"></div>
  9105. </div>
  9106. </div>
  9107. <!-- <div
  9108. class="tool"
  9109. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9110. @click="addTools2(69)"
  9111. >
  9112. <div class="whiteBIcon">
  9113. <img src="../assets/icon/secondToolList/english.png" alt />
  9114. <div style="margin: 5px 0">英语写作</div>
  9115. </div>
  9116. <div class="check">
  9117. <div
  9118. v-if="checktoolArray.indexOf(69) == -1"
  9119. class="noChoose"
  9120. ></div>
  9121. <div v-else class="isChoose"></div>
  9122. </div>
  9123. </div> -->
  9124. </div>
  9125. <div class="toolSort" v-if="toolType == 4">
  9126. <div
  9127. class="tool"
  9128. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9129. @click="addTools2(26)"
  9130. >
  9131. <div class="whiteBIcon">
  9132. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9133. <div style="margin: 5px 0">课程设计</div>
  9134. </div>
  9135. <div class="check">
  9136. <div
  9137. v-if="checktoolArray.indexOf(26) == -1"
  9138. class="noChoose"
  9139. ></div>
  9140. <div v-else class="isChoose"></div>
  9141. </div>
  9142. </div>
  9143. <div
  9144. class="tool"
  9145. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9146. @click="addTools2(25)"
  9147. >
  9148. <div class="whiteBIcon">
  9149. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9150. <div style="margin: 5px 0">目标管理</div>
  9151. </div>
  9152. <div class="check">
  9153. <div
  9154. v-if="checktoolArray.indexOf(25) == -1"
  9155. class="noChoose"
  9156. ></div>
  9157. <div v-else class="isChoose"></div>
  9158. </div>
  9159. </div>
  9160. </div>
  9161. </div>
  9162. </div>
  9163. <span
  9164. slot="footer"
  9165. class="dialog-footer"
  9166. style="display: block; text-align: center; padding: 0 0 10px 0"
  9167. >
  9168. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9169. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9170. </span>
  9171. </div>
  9172. <div
  9173. v-if="replyDialogVisible == true"
  9174. class="addDialogCss"
  9175. v-el-drag-dialog
  9176. >
  9177. <div class="pzTop">
  9178. <div class="teacherPz">
  9179. <div class="teacherPzImg">
  9180. <img src="../assets/icon/teacherPz.png" alt="" />
  9181. </div>
  9182. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9183. </div>
  9184. <div @click="replyDialogVisible = false">
  9185. <img src="../assets/close1.png" class="pzClose" alt="" />
  9186. </div>
  9187. </div>
  9188. <div class="addPzBox">
  9189. <!-- <div class="addPzCheck">
  9190. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9191. >文本</span
  9192. >
  9193. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9194. >音频</span
  9195. >
  9196. </div> -->
  9197. <div style="height: calc(100% - 50px)">
  9198. <editor-bar
  9199. class="binfo_input pzConText"
  9200. style="width: 100% !important; margin: 0 auto"
  9201. placeholder="请输入回复描述"
  9202. v-model="reply"
  9203. @change="change"
  9204. ></editor-bar>
  9205. </div>
  9206. <div class="addTextCss" @click="addHf">确定</div>
  9207. </div>
  9208. </div>
  9209. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9210. <div class="pzTop">
  9211. <div class="teacherPz">
  9212. <div class="teacherPzImg">
  9213. <img src="../assets/icon/teacherPz.png" alt="" />
  9214. </div>
  9215. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9216. </div>
  9217. <div @click="addPzDialog = false">
  9218. <img src="../assets/close1.png" class="pzClose" alt="" />
  9219. </div>
  9220. </div>
  9221. <div class="addPzBox">
  9222. <div class="addPzCheck">
  9223. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9224. >文本</span
  9225. >
  9226. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9227. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9228. >音频</span
  9229. >
  9230. </div>
  9231. <div style="height: calc(100% - 95px)">
  9232. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9233. v-if="pzType == 1"></textarea> -->
  9234. <editor-bar
  9235. class="binfo_input pzConText"
  9236. style="width: 100% !important"
  9237. placeholder="请输入任务描述"
  9238. v-model="pzConText"
  9239. @change="change"
  9240. v-if="pzType == 1"
  9241. ></editor-bar>
  9242. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9243. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9244. <div @click="addImg($event)">
  9245. <el-button type="primary">上传图片</el-button>
  9246. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9247. @change="beforeUpload1($event, 4)" />
  9248. </div>
  9249. </div> -->
  9250. </div>
  9251. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9252. 确定
  9253. </div>
  9254. </div>
  9255. </div>
  9256. <div v-if="proVisible" class="mask">
  9257. <div class="progressBox">
  9258. <!-- <div id="closePro" class="closeCss">
  9259. <img src="../assets/icon/close.png" alt />
  9260. </div> -->
  9261. <div class="lbox">
  9262. <img src="../assets/loading.gif" />上传中,请稍后
  9263. </div>
  9264. <div style="margin-bottom: 10px">
  9265. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9266. </div>
  9267. <el-progress
  9268. :text-inside="true"
  9269. :stroke-width="20"
  9270. :percentage="progress"
  9271. style="width: 80%"
  9272. ></el-progress>
  9273. </div>
  9274. </div>
  9275. <div v-if="proVisible2" class="mask">
  9276. <div class="progressBox">
  9277. <div class="lbox">
  9278. <img src="../assets/loading.gif" />上传中,请稍后
  9279. </div>
  9280. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9281. </div>
  9282. </div>
  9283. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9284. <img width="100%" :src="dialogImageUrl" alt />
  9285. </el-dialog>
  9286. <el-dialog
  9287. :title="noteName != '' ? noteName : '查看问卷'"
  9288. :visible.sync="dialogVisible5"
  9289. :append-to-body="true"
  9290. width="1000px"
  9291. :before-close="handleClose"
  9292. class="dialog_diy dialog_diy3"
  9293. >
  9294. <div>
  9295. <div
  9296. class="a_add_title"
  9297. style="
  9298. display: flex;
  9299. flex-direction: row;
  9300. align-items: center;
  9301. justify-content: center;
  9302. "
  9303. >
  9304. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9305. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9306. </div>
  9307. <div class="a_addBox">
  9308. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9309. 题目内容
  9310. </div>
  9311. <div
  9312. class="a_add_box"
  9313. v-for="(item1, index1) in askJson.askCount"
  9314. :key="index1"
  9315. >
  9316. <div class="a_add_head">
  9317. <div style="display: flex">
  9318. <span class="askIndex"> {{ index1 + 1 }}</span>
  9319. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9320. </div>
  9321. <img
  9322. v-if="askJson.askJson[index1].img"
  9323. :src="askJson.askJson[index1].img"
  9324. style="height: 300px; margin-top: 10px; max-width: 100%"
  9325. />
  9326. </div>
  9327. <div class="a_add_body">
  9328. <div class="a_add_input">
  9329. <el-radio-group
  9330. v-model="radio[index1]"
  9331. v-if="
  9332. askJson.askJson[index1].type == '1' ||
  9333. !askJson.askJson[index1].type
  9334. "
  9335. >
  9336. <el-radio
  9337. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9338. .checkList"
  9339. :key="checkIndex"
  9340. :label="checkIndex"
  9341. :disabled="isAnswer"
  9342. class="redioStyle"
  9343. ><span v-html="item2"></span
  9344. ></el-radio>
  9345. </el-radio-group>
  9346. <el-checkbox-group
  9347. v-model="radio[index1]"
  9348. v-if="askJson.askJson[index1].type == '2'"
  9349. >
  9350. <el-checkbox
  9351. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9352. .checkList"
  9353. :key="checkIndex1"
  9354. :label="checkIndex1"
  9355. :disabled="isAnswer"
  9356. class="redioStyle"
  9357. ><span v-html="item2"></span>
  9358. </el-checkbox>
  9359. </el-checkbox-group>
  9360. </div>
  9361. </div>
  9362. </div>
  9363. </div>
  9364. </div>
  9365. <span slot="footer" class="dialog-footer">
  9366. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9367. >取 消</el-button
  9368. >
  9369. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9370. >确 定</el-button
  9371. >
  9372. </span>
  9373. </el-dialog>
  9374. <el-dialog
  9375. :title="noteName != '' ? noteName : '查看问卷'"
  9376. :visible.sync="dialogVisible5Teacher"
  9377. :append-to-body="true"
  9378. width="1000px"
  9379. :before-close="handleClose"
  9380. class="dialog_diy dialog_diy3"
  9381. >
  9382. <div>
  9383. <div class="w_name">
  9384. 学生姓名:<span>{{ sStudent.student }}</span>
  9385. </div>
  9386. <div
  9387. class="a_add_title"
  9388. style="
  9389. display: flex;
  9390. flex-direction: row;
  9391. align-items: center;
  9392. justify-content: center;
  9393. "
  9394. >
  9395. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9396. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9397. </div>
  9398. <div class="a_addBox">
  9399. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9400. 题目内容
  9401. </div>
  9402. <div
  9403. class="a_add_box"
  9404. v-for="(item1, index1) in askJson.askCount"
  9405. :key="index1"
  9406. >
  9407. <div class="a_add_head">
  9408. <div style="display: flex">
  9409. <span class="askIndex">{{ index1 + 1 }}</span>
  9410. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9411. </div>
  9412. <img
  9413. v-if="askJson.askJson[index1].img"
  9414. :src="askJson.askJson[index1].img"
  9415. style="height: 300px; margin-top: 10px; max-width: 100%"
  9416. />
  9417. </div>
  9418. <div class="a_add_body">
  9419. <div class="a_add_input">
  9420. <el-radio-group
  9421. v-model="radio[index1]"
  9422. v-if="
  9423. askJson.askJson[index1].type == '1' ||
  9424. !askJson.askJson[index1].type
  9425. "
  9426. >
  9427. <el-radio
  9428. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9429. .checkList"
  9430. :key="checkIndex"
  9431. :label="checkIndex"
  9432. :disabled="isAnswer"
  9433. class="redioStyle"
  9434. ><span v-html="item2"></span
  9435. ></el-radio>
  9436. </el-radio-group>
  9437. <el-checkbox-group
  9438. v-model="radio[index1]"
  9439. v-if="askJson.askJson[index1].type == '2'"
  9440. >
  9441. <el-checkbox
  9442. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9443. .checkList"
  9444. :key="checkIndex1"
  9445. :label="checkIndex1"
  9446. :disabled="isAnswer"
  9447. class="redioStyle"
  9448. ><span v-html="item2"></span>
  9449. </el-checkbox>
  9450. </el-checkbox-group>
  9451. </div>
  9452. </div>
  9453. </div>
  9454. </div>
  9455. </div>
  9456. <span slot="footer" class="dialog-footer">
  9457. <el-button
  9458. @click="dialogVisible5Teacher = false"
  9459. v-show="noteName == ''"
  9460. >取 消</el-button
  9461. >
  9462. <el-button
  9463. type="primary"
  9464. @click="addStudentAskTeacher"
  9465. v-show="noteName == ''"
  9466. >确 定</el-button
  9467. >
  9468. </span>
  9469. </el-dialog>
  9470. <el-dialog
  9471. :title="noteName != '' ? noteName : '查看选择题'"
  9472. :visible.sync="dialogVisibleChoice"
  9473. :append-to-body="true"
  9474. width="1000px"
  9475. :before-close="handleClose"
  9476. class="dialog_diy dialog_diy3"
  9477. >
  9478. <div>
  9479. <!-- <div class="a_add_title" style="
  9480. display: flex;
  9481. flex-direction: row;
  9482. align-items: center;
  9483. justify-content: center;
  9484. ">
  9485. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9486. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9487. </div> -->
  9488. <div class="a_addBox">
  9489. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9490. 题目内容
  9491. </div>
  9492. <div
  9493. class="a_add_box"
  9494. v-for="(item1, index1) in testJson.testCount"
  9495. :key="index1"
  9496. >
  9497. <div class="a_add_head">
  9498. <div style="display: flex">
  9499. <span class="askIndex">{{ index1 + 1 }}</span>
  9500. <div
  9501. v-if="testJson.testJson[index1].type == '1'"
  9502. style="margin-right: 5px; min-width: 70px"
  9503. >
  9504. (单选题)
  9505. </div>
  9506. <div
  9507. v-if="testJson.testJson[index1].type == '2'"
  9508. style="margin-right: 5px; min-width: 70px"
  9509. >
  9510. (多选题)
  9511. </div>
  9512. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9513. </div>
  9514. <img
  9515. v-if="testJson.testJson[index1].img"
  9516. :src="testJson.testJson[index1].img"
  9517. style="height: 300px; margin-top: 10px; max-width: 100%"
  9518. />
  9519. </div>
  9520. <div
  9521. class="timuImgBox"
  9522. v-if="
  9523. testJson.testJson[index1].timuList &&
  9524. testJson.testJson[index1].timuList.length
  9525. "
  9526. >
  9527. <div
  9528. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9529. :key="tIndex"
  9530. class="timuImg"
  9531. @click.stop="previewImg(timg.src)"
  9532. >
  9533. <img :src="timg.src" alt="" />
  9534. </div>
  9535. </div>
  9536. <div class="a_add_body">
  9537. <div class="a_add_input">
  9538. <el-radio-group
  9539. v-model="radio[index1]"
  9540. v-if="testJson.testJson[index1].type == '1'"
  9541. >
  9542. <div class="radioBox">
  9543. <el-radio
  9544. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9545. .checkList"
  9546. :key="checkIndex"
  9547. :label="checkIndex"
  9548. :disabled="isAnswer"
  9549. class="redioStyle"
  9550. >
  9551. <div
  9552. style="margin-right: 10px"
  9553. v-if="item2 && item2.imgType && item2.imgType == 1"
  9554. >
  9555. <div class="inImg" @click.stop="previewImg(item2.src)">
  9556. <img :src="item2.src" alt="" />
  9557. </div>
  9558. </div>
  9559. <span v-else v-html="item2"></span>
  9560. </el-radio>
  9561. </div>
  9562. </el-radio-group>
  9563. <el-checkbox-group
  9564. v-model="radio[index1]"
  9565. v-if="testJson.testJson[index1].type == '2'"
  9566. >
  9567. <div class="radioBox">
  9568. <el-checkbox
  9569. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9570. .checkList"
  9571. :key="checkIndex"
  9572. :label="checkIndex"
  9573. :disabled="isAnswer"
  9574. class="redioStyle"
  9575. >
  9576. <div
  9577. style="margin-right: 10px"
  9578. v-if="item2 && item2.imgType && item2.imgType == 1"
  9579. >
  9580. <div class="inImg" @click.stop="previewImg(item2.src)">
  9581. <img :src="item2.src" alt="" />
  9582. </div>
  9583. </div>
  9584. <span v-else v-html="item2"></span>
  9585. </el-checkbox>
  9586. </div>
  9587. </el-checkbox-group>
  9588. </div>
  9589. </div>
  9590. </div>
  9591. </div>
  9592. </div>
  9593. <span slot="footer" class="dialog-footer">
  9594. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9595. >取 消</el-button
  9596. >
  9597. <el-button
  9598. type="primary"
  9599. @click="addStudentTest"
  9600. v-show="noteName == ''"
  9601. >确 定</el-button
  9602. >
  9603. </span>
  9604. </el-dialog>
  9605. <el-dialog
  9606. :title="noteName != '' ? noteName : '查看选择题'"
  9607. :visible.sync="dialogVisibleChoiceTeacher"
  9608. :append-to-body="true"
  9609. width="1000px"
  9610. :before-close="handleClose"
  9611. class="dialog_diy dialog_diy3"
  9612. >
  9613. <div>
  9614. <div class="w_name">
  9615. 学生姓名:<span>{{ sStudent.student }}</span>
  9616. </div>
  9617. <div class="a_addBox">
  9618. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9619. 题目内容
  9620. </div>
  9621. <div
  9622. class="a_add_box"
  9623. v-for="(item1, index1) in testJson.testCount"
  9624. :key="index1"
  9625. >
  9626. <div class="a_add_head">
  9627. <div style="display: flex">
  9628. <span class="askIndex">{{ index1 + 1 }}</span>
  9629. <div
  9630. v-if="testJson.testJson[index1].type == '1'"
  9631. style="margin-right: 5px; min-width: 70px"
  9632. >
  9633. (单选题)
  9634. </div>
  9635. <div
  9636. v-if="testJson.testJson[index1].type == '2'"
  9637. style="margin-right: 5px; min-width: 70px"
  9638. >
  9639. (多选题)
  9640. </div>
  9641. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9642. </div>
  9643. <img
  9644. v-if="testJson.testJson[index1].img"
  9645. :src="testJson.testJson[index1].img"
  9646. style="height: 300px; margin-top: 10px; max-width: 100%"
  9647. />
  9648. </div>
  9649. <div
  9650. class="timuImgBox"
  9651. v-if="
  9652. testJson.testJson[index1].timuList &&
  9653. testJson.testJson[index1].timuList.length
  9654. "
  9655. >
  9656. <div
  9657. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9658. :key="tIndex"
  9659. class="timuImg"
  9660. @click.stop="previewImg(timg.src)"
  9661. >
  9662. <img :src="timg.src" alt="" />
  9663. </div>
  9664. </div>
  9665. <div class="a_add_body">
  9666. <div class="a_add_input">
  9667. <el-radio-group
  9668. v-model="radio[index1]"
  9669. v-if="testJson.testJson[index1].type == '1'"
  9670. >
  9671. <div class="radioBox">
  9672. <el-radio
  9673. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9674. .checkList"
  9675. :key="checkIndex"
  9676. :label="checkIndex"
  9677. :disabled="isAnswer"
  9678. class="redioStyle"
  9679. >
  9680. <div
  9681. style="margin-right: 10px"
  9682. v-if="item2 && item2.imgType && item2.imgType == 1"
  9683. >
  9684. <div class="inImg" @click.stop="previewImg(item2.src)">
  9685. <img :src="item2.src" alt="" />
  9686. </div>
  9687. </div>
  9688. <span v-else v-html="item2"></span>
  9689. </el-radio>
  9690. </div>
  9691. </el-radio-group>
  9692. <el-checkbox-group
  9693. v-model="radio[index1]"
  9694. v-if="testJson.testJson[index1].type == '2'"
  9695. >
  9696. <div class="radioBox">
  9697. <el-checkbox
  9698. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9699. .checkList"
  9700. :key="checkIndex"
  9701. :label="checkIndex"
  9702. :disabled="isAnswer"
  9703. class="redioStyle"
  9704. >
  9705. <div
  9706. style="margin-right: 10px"
  9707. v-if="item2 && item2.imgType && item2.imgType == 1"
  9708. >
  9709. <div class="inImg" @click.stop="previewImg(item2.src)">
  9710. <img :src="item2.src" alt="" />
  9711. </div>
  9712. </div>
  9713. <span v-else v-html="item2"></span>
  9714. </el-checkbox>
  9715. </div>
  9716. </el-checkbox-group>
  9717. </div>
  9718. </div>
  9719. </div>
  9720. </div>
  9721. </div>
  9722. <span slot="footer" class="dialog-footer">
  9723. <el-button
  9724. @click="dialogVisibleChoiceTeacher = false"
  9725. v-show="noteName == ''"
  9726. >取 消</el-button
  9727. >
  9728. <el-button
  9729. type="primary"
  9730. @click="addStudentTestTeacher"
  9731. v-show="noteName == ''"
  9732. >确 定</el-button
  9733. >
  9734. </span>
  9735. </el-dialog>
  9736. <el-dialog
  9737. title="查看富文本"
  9738. :visible.sync="dialogVisible1"
  9739. :append-to-body="true"
  9740. width="500px"
  9741. :before-close="handleClose"
  9742. class="dialog_diy textCss"
  9743. >
  9744. <el-form style="font-size: 20px">
  9745. <el-form-item label="文本标题" class="textTitle">
  9746. <div style="font-size: 20px">{{ text.name }}</div>
  9747. </el-form-item>
  9748. <div>富文本内容</div>
  9749. <div
  9750. v-html="text.url"
  9751. style="font-size: 18px; padding: 40px 0 0 0"
  9752. ></div>
  9753. </el-form>
  9754. <span slot="footer" class="dialog-footer">
  9755. <el-button type="primary" @click="dialogVisible1 = false"
  9756. >确定</el-button
  9757. >
  9758. </span>
  9759. </el-dialog>
  9760. <el-dialog
  9761. title="文件预览"
  9762. :visible.sync="dialogVisible3"
  9763. width="50%"
  9764. :before-close="handleClose"
  9765. class="dialog_diy"
  9766. :class="{ fullStyle: full }"
  9767. >
  9768. <div slot="title" class="header-title">
  9769. <div style="color: #fff">文件预览</div>
  9770. <div style="position: absolute; top: 19px; right: 50px">
  9771. <img
  9772. src="../assets/full.png"
  9773. style="height: 16px; cursor: pointer"
  9774. alt=""
  9775. @click="fullTools"
  9776. />
  9777. </div>
  9778. </div>
  9779. <pdf
  9780. v-if="showPDF"
  9781. :pdfUrl="pptImgUrl"
  9782. style="width: 100%; height: 520px; overflow: auto"
  9783. :class="{ fullStyle: full }"
  9784. ></pdf>
  9785. <iframe
  9786. v-else
  9787. :src="pptImgUrl"
  9788. frameborder="0"
  9789. width="100%"
  9790. height="600"
  9791. :class="{ fullStyle: full }"
  9792. ></iframe>
  9793. </el-dialog>
  9794. <el-dialog
  9795. title="文件预览"
  9796. :visible.sync="dialogVisible6"
  9797. width="50%"
  9798. :before-close="handleClose"
  9799. class="dialog_diy"
  9800. >
  9801. <iframe
  9802. :src="pptImgUrl1"
  9803. frameborder="0"
  9804. width="100%"
  9805. height="600"
  9806. ></iframe>
  9807. </el-dialog>
  9808. <el-dialog
  9809. title="提示"
  9810. :visible.sync="dialogVisible4"
  9811. :append-to-body="true"
  9812. width="800px"
  9813. :before-close="handleClose"
  9814. class="dialog_diy notice"
  9815. >
  9816. <div>此功能暂未开放!</div>
  9817. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9818. </el-dialog>
  9819. <el-dialog
  9820. title="问答"
  9821. :visible.sync="answerDialogVisible"
  9822. :append-to-body="true"
  9823. width="800px"
  9824. :before-close="handleClose"
  9825. class="dialog_diy"
  9826. >
  9827. <div>
  9828. <div
  9829. style="
  9830. display: flex;
  9831. flex-wrap: nowrap;
  9832. flex-direction: column;
  9833. position: relative;
  9834. "
  9835. >
  9836. <div class="queTop" style="padding: 20px 0 20px 0">
  9837. <div class="question">
  9838. <img src="../assets/icon/question.png" alt />
  9839. </div>
  9840. <div class="queTitle">
  9841. <div style="width: 90px; min-width: 90px">提问:</div>
  9842. <div>{{ answerQ }}</div>
  9843. </div>
  9844. </div>
  9845. <div class="ediBottom">
  9846. <textarea
  9847. rows="6"
  9848. class="binfo_input"
  9849. cols
  9850. style="width: 95%; height: 120px"
  9851. v-model="questionAnswer"
  9852. ></textarea>
  9853. </div>
  9854. </div>
  9855. </div>
  9856. <div slot="footer">
  9857. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9858. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9859. </div>
  9860. </el-dialog>
  9861. <el-dialog
  9862. title="问答"
  9863. :visible.sync="answerDialogVisibleTeacher"
  9864. :append-to-body="true"
  9865. width="800px"
  9866. :before-close="handleClose"
  9867. class="dialog_diy"
  9868. >
  9869. <div>
  9870. <div class="w_name">
  9871. 学生姓名:<span>{{ sStudent.student }}</span>
  9872. </div>
  9873. <div
  9874. style="
  9875. display: flex;
  9876. flex-wrap: nowrap;
  9877. flex-direction: column;
  9878. position: relative;
  9879. "
  9880. >
  9881. <div class="queTop" style="padding: 20px 0 20px 0">
  9882. <div class="question">
  9883. <img src="../assets/icon/question.png" alt />
  9884. </div>
  9885. <div class="queTitle">
  9886. <div style="width: 90px; min-width: 90px">提问:</div>
  9887. <div>{{ answerQ }}</div>
  9888. </div>
  9889. </div>
  9890. <div class="ediBottom">
  9891. <textarea
  9892. rows="6"
  9893. class="binfo_input"
  9894. cols
  9895. style="width: 95%; height: 120px"
  9896. v-model="questionAnswer"
  9897. ></textarea>
  9898. </div>
  9899. </div>
  9900. </div>
  9901. <div slot="footer">
  9902. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9903. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9904. </div>
  9905. </el-dialog>
  9906. <el-dialog
  9907. title="倒计时"
  9908. :visible.sync="timeDialogVisible"
  9909. :append-to-body="true"
  9910. width="800px"
  9911. :before-close="handleClose"
  9912. class="dialog_diy"
  9913. >
  9914. <div>
  9915. <div style="margin-bottom: 20px; color: #999">
  9916. 提示:点击“+”或“-”修改倒计时时长。
  9917. </div>
  9918. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9919. </div>
  9920. <div slot="footer">
  9921. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9922. </div>
  9923. </el-dialog>
  9924. <el-dialog
  9925. title="权限设置"
  9926. :visible.sync="juriVisible"
  9927. :append-to-body="true"
  9928. width="400px"
  9929. :before-close="handleClose"
  9930. class="dialog_diy"
  9931. >
  9932. <div>
  9933. <div class="open_box">
  9934. <div class="switch_box">
  9935. <span>允许学生查看所有作业</span>
  9936. <el-switch
  9937. v-model="sIsOpen"
  9938. active-text=""
  9939. class="switchCss"
  9940. @change="updateSLook"
  9941. ></el-switch>
  9942. </div>
  9943. <div
  9944. class="switch_box"
  9945. v-if="
  9946. (courseDetail.userid == userid ||
  9947. (courseDetail.course_teacher &&
  9948. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9949. "
  9950. >
  9951. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9952. <span>禁止学生查看阶段</span>
  9953. <el-switch
  9954. v-model="IsLookOpen"
  9955. active-text=""
  9956. class="switchCss"
  9957. @change="updateLookOpen"
  9958. ></el-switch>
  9959. </div>
  9960. <div class="switch_box" v-if="courseDetail.userid == userid">
  9961. <span>开启跟随模式</span>
  9962. <el-switch
  9963. v-model="IsFollow"
  9964. active-text=""
  9965. class="switchCss"
  9966. @change="updateFollow"
  9967. ></el-switch>
  9968. </div>
  9969. </div>
  9970. </div>
  9971. <div slot="footer">
  9972. <el-button
  9973. style="background: #409efe; color: #fff"
  9974. @click="juriVisible = false"
  9975. >关 闭</el-button
  9976. >
  9977. </div>
  9978. </el-dialog>
  9979. <el-dialog
  9980. title="查看视频"
  9981. :visible.sync="videoVisible"
  9982. :append-to-body="true"
  9983. width="1000px"
  9984. :before-close="handleClose"
  9985. class="dialog_diy1"
  9986. >
  9987. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9988. <video-player
  9989. class="video-player vjs-custom-skin"
  9990. :playsinline="true"
  9991. :options="videoDetail"
  9992. @play="onPlayerPlay($event)"
  9993. style="width: 100%; height: 100%"
  9994. ></video-player>
  9995. </div>
  9996. <div slot="footer">
  9997. <el-button
  9998. style="background: #409efe; color: #fff"
  9999. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10000. >
  10001. 关 闭</el-button
  10002. >
  10003. </div>
  10004. </el-dialog>
  10005. <el-dialog
  10006. title="查看详情"
  10007. :visible.sync="commentDialogVisible"
  10008. :append-to-body="true"
  10009. width="800px"
  10010. :before-close="handleClose"
  10011. class="dialog_diy"
  10012. >
  10013. <div class="commentTop">
  10014. <div class="studentDetail">
  10015. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10016. <div class="nameAndTime">
  10017. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10018. <div>{{ commentDetail.time }}</div>
  10019. </div>
  10020. <div
  10021. class="returnBtn"
  10022. style="margin-left: auto; width: 80px"
  10023. v-if="
  10024. commentDetail.works &&
  10025. commentDetail.type == 0 &&
  10026. (tType == 1 || tType == 4)
  10027. "
  10028. @click="
  10029. showPicturePaint(
  10030. commentDetail.img ? commentDetail.img : commentDetail.works
  10031. )
  10032. "
  10033. >
  10034. 教师批注
  10035. </div>
  10036. </div>
  10037. <div
  10038. class="worksAnswer"
  10039. v-if="commentDetail.works && commentDetail.type == 2"
  10040. >
  10041. {{ JSON.parse(commentDetail.works)[0].answer }}
  10042. </div>
  10043. <div
  10044. class="worksAnswer"
  10045. v-if="commentDetail.works && commentDetail.type == 1"
  10046. >
  10047. <img
  10048. src="../assets/teacherWork.png"
  10049. v-if="commentDetail.ateacher"
  10050. class="w_teachert"
  10051. />
  10052. <pdf
  10053. v-if="showPDF"
  10054. :pdfUrl="pptImgUrl"
  10055. style="width: 100%; height: 520px; overflow: auto"
  10056. :class="{ fullStyle: full }"
  10057. ></pdf>
  10058. <iframe
  10059. v-else
  10060. :src="pptImgUrl"
  10061. frameborder="0"
  10062. width="100%"
  10063. height="600"
  10064. :class="{ fullStyle: full }"
  10065. ></iframe>
  10066. </div>
  10067. <div
  10068. class="worksAnswer"
  10069. v-if="commentDetail.works && commentDetail.type == 0"
  10070. >
  10071. <img
  10072. src="../assets/teacherWork.png"
  10073. v-if="commentDetail.ateacher"
  10074. class="w_teachert"
  10075. style="right: 105px"
  10076. />
  10077. <img
  10078. :src="commentDetail.works"
  10079. alt=""
  10080. @click="previewImg(commentDetail.works)"
  10081. />
  10082. </div>
  10083. <div
  10084. class="worksAnswer"
  10085. v-if="commentDetail.works && commentDetail.type == 3"
  10086. >
  10087. <img
  10088. src="../assets/teacherWork.png"
  10089. v-if="commentDetail.ateacher"
  10090. class="w_teachert"
  10091. />
  10092. <video-player
  10093. class="video-player vjs-custom-skin"
  10094. :playsinline="true"
  10095. :options="videoDetail"
  10096. @play="onPlayerPlay($event)"
  10097. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10098. ></video-player>
  10099. </div>
  10100. <div
  10101. class="worksAnswer"
  10102. v-if="commentDetail.works && commentDetail.type == 10"
  10103. >
  10104. <div class="cont" v-html="commentDetail.works.text"></div>
  10105. </div>
  10106. <div
  10107. class="worksAnswer codeFileBox"
  10108. v-if="commentDetail.works && commentDetail.type == 12"
  10109. @click="downloadFile(commentDetail.works)"
  10110. >
  10111. <img src="../assets/icon/codeFile.png" />
  10112. <div>点击下载文件</div>
  10113. </div>
  10114. <div
  10115. class="worksAnswer codeFileBox"
  10116. v-if="commentDetail.works && commentDetail.type == 15"
  10117. @click="
  10118. openCocoPi(
  10119. 57,
  10120. commentIndexJson.toolIndex,
  10121. commentDetail.userid,
  10122. commentDetail.sName
  10123. )
  10124. "
  10125. >
  10126. <img src="../assets/icon/codeFile.png" />
  10127. <div>点击打开CocoPi</div>
  10128. </div>
  10129. <div
  10130. class="worksAnswer"
  10131. v-if="commentDetail.works && commentDetail.type == 13"
  10132. >
  10133. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10134. </div>
  10135. <div
  10136. class="worksAnswer"
  10137. v-if="commentDetail.works && commentDetail.type == 4"
  10138. >
  10139. <div class="evalCss">
  10140. <div class="nav">请选择星星进行评分</div>
  10141. <div class="middleBox" v-if="eScore.eStar">
  10142. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10143. <div class="nameAndrate">
  10144. <div>{{ e.value }}</div>
  10145. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10146. </div>
  10147. <div v-if="e.detail">{{ e.detail }}</div>
  10148. </div>
  10149. <div class="bz">
  10150. <textarea
  10151. disabled
  10152. rows="4"
  10153. class="pj"
  10154. style="
  10155. padding: 10px 5px;
  10156. width: 70%;
  10157. background: #f7f6f9;
  10158. font-size: 14px;
  10159. text-indent: 10px;
  10160. color: #000;
  10161. "
  10162. cols
  10163. v-model="eScore.eBzText"
  10164. placeholder="请输入评价内容..."
  10165. ></textarea>
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. <div class="comment">
  10171. <div class="commentList">
  10172. <div class="commentImg">
  10173. <img
  10174. @click="
  10175. isLikes(
  10176. commentDetail.wid,
  10177. userid,
  10178. 1,
  10179. null,
  10180. commentDetail.isLikes,
  10181. commentDetail.sName
  10182. )
  10183. "
  10184. :src="commentDetail.isLikes == true ? likes : noLikes"
  10185. alt=""
  10186. />
  10187. </div>
  10188. <div>{{ commentDetail.likesCount }}</div>
  10189. </div>
  10190. <div class="commentList">
  10191. <div class="commentImg">
  10192. <img src="../assets/icon/comment/comment.png" alt="" />
  10193. </div>
  10194. <div>{{ commentDetail.commentCount }}</div>
  10195. </div>
  10196. </div>
  10197. <div class="drawPBox" v-if="commentDetail.img">
  10198. <span>教师批注</span>
  10199. <img
  10200. :src="commentDetail.img"
  10201. alt=""
  10202. @click="previewImg(commentDetail.img)"
  10203. />
  10204. <span
  10205. class="deleteImg"
  10206. v-if="tType == 1 || tType == 4"
  10207. @click.stop="deletePicturePaint(commentDetail.wid)"
  10208. style="
  10209. font-size: 14px;
  10210. width: auto !important;
  10211. color: #b4b4b4;
  10212. top: unset;
  10213. bottom: 0;
  10214. border: none;
  10215. padding: 0;
  10216. height: auto !important;
  10217. margin: 0;
  10218. "
  10219. >删除</span
  10220. >
  10221. </div>
  10222. </div>
  10223. <div class="commentBox">
  10224. <div class="pl">评论:</div>
  10225. <div style="max-height: 200px; overflow: auto">
  10226. <div
  10227. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10228. style="padding: 10px 0 0 0"
  10229. >
  10230. <div
  10231. class="studentDetail"
  10232. style="padding-top: 10px"
  10233. v-for="(co, coIndex) in commentDetail.commentJson"
  10234. :key="coIndex"
  10235. >
  10236. <div class="tx" style="min-width: 50px">
  10237. <img src="../assets/avatar.png" alt="" />
  10238. </div>
  10239. <div class="plPerson">
  10240. <div class="plName">
  10241. <div>{{ co.commentPeople }}</div>
  10242. <div style="margin-left: 5px">
  10243. {{ co.commentTime }}
  10244. </div>
  10245. <div
  10246. class="deleteComment"
  10247. v-if="userid == co.userid"
  10248. @click="deleteComment(co.wid)"
  10249. >
  10250. 删除
  10251. </div>
  10252. </div>
  10253. <div class="plContent">{{ co.commentText }}</div>
  10254. </div>
  10255. </div>
  10256. </div>
  10257. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10258. </div>
  10259. </div>
  10260. <div style="margin-top: 10px">
  10261. <div class="displayBox">
  10262. <div
  10263. style="
  10264. color: #556db4;
  10265. font-size: 14px;
  10266. font-weight: bold;
  10267. padding-bottom: 10px;
  10268. "
  10269. >
  10270. 评价
  10271. </div>
  10272. <div class="easy_comment" v-if="false">
  10273. <div
  10274. v-for="(p, pIndex) in PlTextList"
  10275. :key="pIndex"
  10276. @click="fastText(p, 1)"
  10277. >
  10278. {{ p }}
  10279. </div>
  10280. </div>
  10281. </div>
  10282. <div>
  10283. <textarea
  10284. rows="3"
  10285. class="pj"
  10286. style="padding: 10px 5px"
  10287. cols
  10288. v-model="commentText"
  10289. placeholder="请输入评论"
  10290. ></textarea>
  10291. </div>
  10292. </div>
  10293. <div slot="footer">
  10294. <el-button
  10295. @click="
  10296. (commentDialogVisible = false),
  10297. (commentIndexJson = {}),
  10298. videoDetail.sources && videoDetail.sources[0]
  10299. ? (videoDetail.sources[0].src = '')
  10300. : ''
  10301. "
  10302. >取 消</el-button
  10303. >
  10304. <el-button
  10305. type="primary"
  10306. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10307. >确 定</el-button
  10308. >
  10309. </div>
  10310. </el-dialog>
  10311. <el-dialog
  10312. title="查看文档"
  10313. :visible.sync="fullDialogVisible"
  10314. :append-to-body="true"
  10315. width="100%"
  10316. :before-close="handleClose"
  10317. :show-close="false"
  10318. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10319. >
  10320. <div slot="title" class="header-title">
  10321. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10322. <div v-else style="color: #fff">查看文档</div>
  10323. <div
  10324. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10325. style="
  10326. cursor: pointer;
  10327. position: absolute;
  10328. top: 20px;
  10329. right: 20px;
  10330. color: #fff;
  10331. "
  10332. >
  10333. 退出全屏
  10334. </div>
  10335. </div>
  10336. <div style="height: 100%;position: relative;">
  10337. <el-button
  10338. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10339. size="medium"
  10340. type="primary"
  10341. @click="
  10342. () => {
  10343. (fullDialogVisible = false),
  10344. changeSplitScreenBehavior({ code: 99 });
  10345. }
  10346. "
  10347. style="
  10348. cursor: pointer;
  10349. position: absolute;
  10350. top: 10px;
  10351. right: 20px;
  10352. color: #fff;
  10353. "
  10354. >
  10355. 退出全屏
  10356. </el-button>
  10357. <div
  10358. class="wheel"
  10359. v-if="
  10360. (fulltype == 2 || fulltype == 4) &&
  10361. fullUrl.indexOf(
  10362. 'https://view.officeapps.live.com/op/view.aspx?src='
  10363. ) != -1
  10364. "
  10365. style="width: 100%;height:100%; margin: 0 auto"
  10366. >
  10367. <iframe
  10368. style="width: 100%; height: 100%; border: none"
  10369. :src="fullUrl"
  10370. ></iframe>
  10371. </div>
  10372. <!-- <iframe
  10373. v-else-if="fulltype == 2"
  10374. style="width: 100%; height: 100%; border: none"
  10375. :src="fullUrl"
  10376. security="restricted"
  10377. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10378. ></iframe> -->
  10379. <iframe
  10380. style="width: 100%; height: 100%; border: none"
  10381. 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"
  10382. :src="fullUrl"
  10383. ></iframe>
  10384. <iframe
  10385. style="width: 100%; height: 100%; border: none"
  10386. security="restricted"
  10387. v-else-if="(fulltype == 2 || fulltype == 4)"
  10388. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10389. :src="fullUrl"
  10390. ></iframe>
  10391. <pdf
  10392. v-else-if="fulltype == 3"
  10393. :pdfUrl="fullUrl"
  10394. style="width: 100%; height: 100%; overflow: auto"
  10395. ></pdf>
  10396. <div
  10397. class="wheel"
  10398. v-if="fulltype == 1"
  10399. style="
  10400. box-shadow: 0 0 6px 1px #f2f2f2;
  10401. width: 100%;
  10402. height:100%;
  10403. background: #f1f1f1;
  10404. "
  10405. >
  10406. <div class="title" style="width: 100%; box-sizing: border-box">
  10407. 查看文档
  10408. </div>
  10409. <el-form class="textBox" style="height: 90%">
  10410. <el-form-item class="textTitle">
  10411. <div style="font-size: 22px">
  10412. {{ fullUrl.name }}
  10413. </div>
  10414. </el-form-item>
  10415. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10416. <div
  10417. v-html="fullUrl.url"
  10418. class="textContent"
  10419. style="height: auto"
  10420. ></div>
  10421. </el-form>
  10422. </div>
  10423. </div>
  10424. <!-- <div slot="footer">
  10425. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10426. </div> -->
  10427. </el-dialog>
  10428. <el-dialog
  10429. title="个人评价"
  10430. :visible.sync="studentEvalDialogVisible"
  10431. :append-to-body="true"
  10432. width="800px"
  10433. :before-close="handleClose"
  10434. class="dialog_diy"
  10435. >
  10436. <div class="evalCss">
  10437. <div class="nav">请选择星星进行评分</div>
  10438. <div class="middleBox" v-if="eScore.eStar">
  10439. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10440. <div class="nameAndrate">
  10441. <div>{{ e.value }}</div>
  10442. <el-rate
  10443. v-model="eScore.eStar[eIndex]"
  10444. :disabled="isStar"
  10445. ></el-rate>
  10446. </div>
  10447. <div v-if="e.detail">{{ e.detail }}</div>
  10448. </div>
  10449. <div class="easy_comment" v-if="false">
  10450. <div
  10451. v-for="(p, pIndex) in PlTextList"
  10452. :key="pIndex"
  10453. @click="fastText(p, 2)"
  10454. >
  10455. {{ p }}
  10456. </div>
  10457. </div>
  10458. <div class="bz">
  10459. <textarea
  10460. :disabled="isStar"
  10461. rows="4"
  10462. class="pj"
  10463. style="
  10464. padding: 10px 5px;
  10465. width: 70%;
  10466. background: #f7f6f9;
  10467. font-size: 14px;
  10468. text-indent: 10px;
  10469. "
  10470. cols
  10471. v-model="eScore.eBzText"
  10472. placeholder="请输入评价内容..."
  10473. ></textarea>
  10474. </div>
  10475. </div>
  10476. </div>
  10477. <div slot="footer">
  10478. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10479. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10480. >确 定</el-button
  10481. >
  10482. </div>
  10483. </el-dialog>
  10484. <el-dialog
  10485. title="个人评价"
  10486. :visible.sync="studentEvalDialogVisibleTeacher"
  10487. :append-to-body="true"
  10488. width="800px"
  10489. :before-close="handleClose"
  10490. class="dialog_diy"
  10491. >
  10492. <div class="w_name">
  10493. 学生姓名:<span>{{ sStudent.student }}</span>
  10494. </div>
  10495. <div class="evalCss">
  10496. <div class="nav">请选择星星进行评分</div>
  10497. <div class="middleBox" v-if="eScore.eStar">
  10498. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10499. <div class="nameAndrate">
  10500. <div>{{ e.value }}</div>
  10501. <el-rate
  10502. v-model="eScore.eStar[eIndex]"
  10503. :disabled="isStar"
  10504. ></el-rate>
  10505. </div>
  10506. <div v-if="e.detail">{{ e.detail }}</div>
  10507. </div>
  10508. <div class="easy_comment" v-if="false">
  10509. <div
  10510. v-for="(p, pIndex) in PlTextList"
  10511. :key="pIndex"
  10512. @click="fastText(p, 2)"
  10513. >
  10514. {{ p }}
  10515. </div>
  10516. </div>
  10517. <div class="bz">
  10518. <textarea
  10519. :disabled="isStar"
  10520. rows="4"
  10521. class="pj"
  10522. style="
  10523. padding: 10px 5px;
  10524. width: 70%;
  10525. background: #f7f6f9;
  10526. font-size: 14px;
  10527. text-indent: 10px;
  10528. "
  10529. cols
  10530. v-model="eScore.eBzText"
  10531. placeholder="请输入评价内容..."
  10532. ></textarea>
  10533. </div>
  10534. </div>
  10535. </div>
  10536. <div slot="footer">
  10537. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10538. >取 消</el-button
  10539. >
  10540. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10541. >确 定</el-button
  10542. >
  10543. </div>
  10544. </el-dialog>
  10545. <el-dialog
  10546. title="选择匹配"
  10547. :visible.sync="dialogVisibleSelect"
  10548. :append-to-body="true"
  10549. width="90%"
  10550. :before-close="handleClose"
  10551. class="dialog_diy dialog_diy3"
  10552. >
  10553. <div v-if="selectJson">
  10554. <div class="select_box2">
  10555. <div class="select_box2_title">
  10556. <div>选择匹配</div>
  10557. <div>请选择对应的答案进行答题!</div>
  10558. </div>
  10559. <div class="select_box2_box">
  10560. <div class="select_box2_img">
  10561. <img
  10562. :src="selectJson.url"
  10563. @click="previewImg(selectJson.url)"
  10564. alt=""
  10565. />
  10566. </div>
  10567. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10568. <div style="padding-top: 15px">
  10569. <div class="select_answer_title" v-if="isSelect">
  10570. {{ selectAnswer.stu }}
  10571. </div>
  10572. <div class="select_answer_title" v-else>
  10573. 根据题目选择对应答案
  10574. </div>
  10575. <div
  10576. class="select_box2_answer_box"
  10577. v-for="(item2, checkIndex) in selectJson.select"
  10578. :key="checkIndex"
  10579. >
  10580. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10581. <el-select
  10582. :disabled="isSelect"
  10583. v-model="selectAnswer.answer[checkIndex]"
  10584. placeholder="请选择正确答案"
  10585. >
  10586. <el-option
  10587. v-for="(e, eIndex) in selectJson.select"
  10588. :key="eIndex"
  10589. :label="e"
  10590. :value="eIndex"
  10591. >
  10592. </el-option>
  10593. </el-select>
  10594. </div>
  10595. </div>
  10596. <div
  10597. class="rightAnswerCss"
  10598. v-if="isSelect && (tType == 1 || tType == 4)"
  10599. >
  10600. <div
  10601. v-for="(a, aIndex) in selectJson.answer"
  10602. :key="aIndex"
  10603. class="rightAnswer"
  10604. >
  10605. <div
  10606. v-if="selectAnswer.answer[aIndex] === a"
  10607. style="color: #767de1"
  10608. >
  10609. 回答正确
  10610. </div>
  10611. <div v-else>回答错误</div>
  10612. <div
  10613. style="margin-left: 10px"
  10614. v-if="selectAnswer.answer[aIndex] !== a"
  10615. >
  10616. 正确答案:
  10617. </div>
  10618. <div
  10619. :class="
  10620. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10621. "
  10622. >
  10623. {{ selectJson.select[a] }}
  10624. </div>
  10625. </div>
  10626. </div>
  10627. </div>
  10628. <div class="upAnswerCss">
  10629. <el-button
  10630. type="primary"
  10631. @click="addSelectAnswer"
  10632. v-if="!isSelect"
  10633. >提交答案</el-button
  10634. >
  10635. </div>
  10636. </div>
  10637. </div>
  10638. </div>
  10639. </el-dialog>
  10640. <el-dialog
  10641. title="选择匹配"
  10642. :visible.sync="dialogVisibleSelectTeacher"
  10643. :append-to-body="true"
  10644. width="90%"
  10645. :before-close="handleClose"
  10646. class="dialog_diy dialog_diy3"
  10647. >
  10648. <div v-if="selectJson">
  10649. <div class="w_name">
  10650. 学生姓名:<span>{{ sStudent.student }}</span>
  10651. </div>
  10652. <div class="select_box2">
  10653. <div class="select_box2_title">
  10654. <div>选择匹配</div>
  10655. <div>请选择对应的答案进行答题!</div>
  10656. </div>
  10657. <div class="select_box2_box">
  10658. <div class="select_box2_img">
  10659. <img
  10660. :src="selectJson.url"
  10661. @click="previewImg(selectJson.url)"
  10662. alt=""
  10663. />
  10664. </div>
  10665. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10666. <div style="padding-top: 15px">
  10667. <div class="select_answer_title" v-if="isSelect">
  10668. {{ selectAnswer.stu }}
  10669. </div>
  10670. <div class="select_answer_title" v-else>
  10671. 根据题目选择对应答案
  10672. </div>
  10673. <div
  10674. class="select_box2_answer_box"
  10675. v-for="(item2, checkIndex) in selectJson.select"
  10676. :key="checkIndex"
  10677. >
  10678. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10679. <el-select
  10680. :disabled="isSelect"
  10681. v-model="selectAnswer.answer[checkIndex]"
  10682. placeholder="请选择正确答案"
  10683. >
  10684. <el-option
  10685. v-for="(e, eIndex) in selectJson.select"
  10686. :key="eIndex"
  10687. :label="e"
  10688. :value="eIndex"
  10689. >
  10690. </el-option>
  10691. </el-select>
  10692. </div>
  10693. </div>
  10694. <div
  10695. class="rightAnswerCss"
  10696. v-if="isSelect && (tType == 1 || tType == 4)"
  10697. >
  10698. <div
  10699. v-for="(a, aIndex) in selectJson.answer"
  10700. :key="aIndex"
  10701. class="rightAnswer"
  10702. >
  10703. <div
  10704. v-if="selectAnswer.answer[aIndex] === a"
  10705. style="color: #767de1"
  10706. >
  10707. 回答正确
  10708. </div>
  10709. <div v-else>回答错误</div>
  10710. <div
  10711. style="margin-left: 10px"
  10712. v-if="selectAnswer.answer[aIndex] !== a"
  10713. >
  10714. 正确答案:
  10715. </div>
  10716. <div
  10717. :class="
  10718. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10719. "
  10720. >
  10721. {{ selectJson.select[a] }}
  10722. </div>
  10723. </div>
  10724. </div>
  10725. </div>
  10726. <div class="upAnswerCss">
  10727. <el-button
  10728. type="primary"
  10729. @click="addSelectAnswerTeacher"
  10730. v-if="!isSelect"
  10731. >提交答案</el-button
  10732. >
  10733. </div>
  10734. </div>
  10735. </div>
  10736. </div>
  10737. </el-dialog>
  10738. <el-dialog
  10739. title="教师评分"
  10740. :visible.sync="dialogVisibleScore"
  10741. :append-to-body="true"
  10742. width="800px"
  10743. :before-close="handleClose"
  10744. class="dialog_diy"
  10745. >
  10746. <div>
  10747. <div class="studentDetail">
  10748. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10749. <div class="nameAndTime">
  10750. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10751. <div>{{ commentDetail.time }}</div>
  10752. </div>
  10753. </div>
  10754. <div
  10755. class="worksAnswer"
  10756. v-if="commentDetail.works && commentDetail.type == 2"
  10757. >
  10758. {{ JSON.parse(commentDetail.works)[0].answer }}
  10759. </div>
  10760. <div
  10761. class="worksAnswer"
  10762. v-if="commentDetail.works && commentDetail.type == 1"
  10763. >
  10764. <pdf
  10765. v-if="showPDF"
  10766. :pdfUrl="pptImgUrl"
  10767. style="width: 100%; height: 520px; overflow: auto"
  10768. :class="{ fullStyle: full }"
  10769. ></pdf>
  10770. <iframe
  10771. v-else
  10772. :src="pptImgUrl"
  10773. frameborder="0"
  10774. width="100%"
  10775. height="600"
  10776. :class="{ fullStyle: full }"
  10777. ></iframe>
  10778. </div>
  10779. <div
  10780. class="worksAnswer"
  10781. v-if="commentDetail.works && commentDetail.type == 0"
  10782. >
  10783. <img
  10784. :src="commentDetail.works"
  10785. alt=""
  10786. @click="previewImg(commentDetail.works)"
  10787. />
  10788. </div>
  10789. <div
  10790. class="worksAnswer"
  10791. v-if="commentDetail.works && commentDetail.type == 3"
  10792. >
  10793. <video-player
  10794. class="video-player vjs-custom-skin"
  10795. :playsinline="true"
  10796. :options="videoDetail"
  10797. @play="onPlayerPlay($event)"
  10798. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10799. ></video-player>
  10800. </div>
  10801. <div
  10802. class="worksAnswer codeFileBox"
  10803. v-if="commentDetail.works && commentDetail.type == 12"
  10804. @click="downloadFile(commentDetail.works)"
  10805. >
  10806. <img src="../assets/icon/codeFile.png" />
  10807. <div>点击下载文件</div>
  10808. </div>
  10809. <div
  10810. class="worksAnswer codeFileBox"
  10811. v-if="commentDetail.works && commentDetail.type == 15"
  10812. @click="
  10813. openCocoPi(
  10814. 57,
  10815. commentIndexJson.toolIndex,
  10816. commentDetail.userid,
  10817. commentDetail.sName
  10818. )
  10819. "
  10820. >
  10821. <img src="../assets/icon/codeFile.png" />
  10822. <div>点击打开CocoPi</div>
  10823. </div>
  10824. <div
  10825. class="worksAnswer"
  10826. v-if="commentDetail.works && commentDetail.type == 13"
  10827. >
  10828. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10829. </div>
  10830. <div class="scoreBox">
  10831. <span class="t">请输入分数</span>
  10832. <el-input-number
  10833. :disabled="courseDetail.userid != userid"
  10834. v-model="wScore"
  10835. :controls="false"
  10836. :min="0"
  10837. :max="100"
  10838. ></el-input-number>
  10839. </div>
  10840. <div class="scoreDetailBox">
  10841. <span class="t">评分评论</span>
  10842. <el-input
  10843. type="textarea"
  10844. :rows="5"
  10845. :disabled="courseDetail.userid != userid"
  10846. resize="none"
  10847. v-model="scoreDetail"
  10848. placeholder="请输入对学生的评价"
  10849. >
  10850. </el-input>
  10851. </div>
  10852. </div>
  10853. <span slot="footer" class="dialog-footer">
  10854. <el-button
  10855. @click="
  10856. (dialogVisibleScore = false),
  10857. (commentIndexJson = {}),
  10858. videoDetail.sources && videoDetail.sources[0]
  10859. ? (videoDetail.sources[0].src = '')
  10860. : ''
  10861. "
  10862. >取 消</el-button
  10863. >
  10864. <el-button
  10865. type="primary"
  10866. v-if="courseDetail.userid == userid"
  10867. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10868. >确 定
  10869. </el-button>
  10870. </span>
  10871. </el-dialog>
  10872. <el-dialog
  10873. title="排序"
  10874. :visible.sync="dialogVisibleSentence"
  10875. :append-to-body="true"
  10876. width="1000px"
  10877. :before-close="handleClose"
  10878. class="dialog_diy dialog_diy3"
  10879. >
  10880. <div>
  10881. <div class="sentenBox">
  10882. <div
  10883. v-for="(st, stIndex) in sentenceList"
  10884. :key="stIndex"
  10885. style="padding-bottom: 20px"
  10886. >
  10887. <div
  10888. style="padding: 15px 0 10px 20px"
  10889. class="sentenceTitle"
  10890. :index="stIndex + 1"
  10891. >
  10892. 题目{{ stIndex + 1 }}:请选择正确顺序
  10893. </div>
  10894. <div class="cardList" v-if="st.chooseSenList">
  10895. <div class="cardBox">
  10896. <div
  10897. v-for="(r, rIndex) in st.chooseSenList"
  10898. :key="rIndex"
  10899. @click="returnCard(r, stIndex, rIndex)"
  10900. >
  10901. <el-tooltip
  10902. class="item"
  10903. effect="light"
  10904. :content="r"
  10905. placement="top"
  10906. v-if="r != '' && r != undefined"
  10907. >
  10908. <div
  10909. :class="{
  10910. isCard: r,
  10911. isChooseCard: r == '' || r == undefined,
  10912. }"
  10913. >
  10914. <div>{{ r }}</div>
  10915. </div>
  10916. </el-tooltip>
  10917. <div
  10918. :class="{
  10919. isCard: r,
  10920. isChooseCard: r == '' || r == undefined,
  10921. }"
  10922. v-else
  10923. >
  10924. <div>{{ r }}</div>
  10925. </div>
  10926. </div>
  10927. </div>
  10928. </div>
  10929. <div class="cardList" v-if="st.addChangeSen">
  10930. <div class="cardBox">
  10931. <div
  10932. v-for="(s, sIndex) in st.addChangeSen"
  10933. :key="sIndex"
  10934. @click="setRightAnswer(s, stIndex, sIndex)"
  10935. >
  10936. <el-tooltip
  10937. class="item"
  10938. effect="light"
  10939. :content="s"
  10940. placement="top"
  10941. v-if="s != '' && s != undefined"
  10942. >
  10943. <div
  10944. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10945. >
  10946. <div>{{ s }}</div>
  10947. </div>
  10948. </el-tooltip>
  10949. <div
  10950. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10951. v-else
  10952. >
  10953. <div>{{ s }}</div>
  10954. </div>
  10955. </div>
  10956. </div>
  10957. </div>
  10958. </div>
  10959. </div>
  10960. </div>
  10961. <span slot="footer" class="dialog-footer">
  10962. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10963. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10964. </span>
  10965. </el-dialog>
  10966. <el-dialog
  10967. title="排序"
  10968. :visible.sync="dialogVisibleSentenceTeacher"
  10969. :append-to-body="true"
  10970. width="1000px"
  10971. :before-close="handleClose"
  10972. class="dialog_diy dialog_diy3"
  10973. >
  10974. <div>
  10975. <div class="w_name">
  10976. 学生姓名:<span>{{ sStudent.student }}</span>
  10977. </div>
  10978. <div class="sentenBox">
  10979. <div
  10980. v-for="(st, stIndex) in sentenceList"
  10981. :key="stIndex"
  10982. style="padding-bottom: 20px"
  10983. >
  10984. <div
  10985. style="padding: 15px 0 10px 20px"
  10986. class="sentenceTitle"
  10987. :index="stIndex + 1"
  10988. >
  10989. 题目{{ stIndex + 1 }}:请选择正确顺序
  10990. </div>
  10991. <div class="cardList" v-if="st.chooseSenList">
  10992. <div class="cardBox">
  10993. <div
  10994. v-for="(r, rIndex) in st.chooseSenList"
  10995. :key="rIndex"
  10996. @click="returnCard(r, stIndex, rIndex)"
  10997. >
  10998. <el-tooltip
  10999. class="item"
  11000. effect="light"
  11001. :content="r"
  11002. placement="top"
  11003. v-if="r != '' && r != undefined"
  11004. >
  11005. <div
  11006. :class="{
  11007. isCard: r,
  11008. isChooseCard: r == '' || r == undefined,
  11009. }"
  11010. >
  11011. <div>{{ r }}</div>
  11012. </div>
  11013. </el-tooltip>
  11014. <div
  11015. :class="{
  11016. isCard: r,
  11017. isChooseCard: r == '' || r == undefined,
  11018. }"
  11019. v-else
  11020. >
  11021. <div>{{ r }}</div>
  11022. </div>
  11023. </div>
  11024. </div>
  11025. </div>
  11026. <div class="cardList" v-if="st.addChangeSen">
  11027. <div class="cardBox">
  11028. <div
  11029. v-for="(s, sIndex) in st.addChangeSen"
  11030. :key="sIndex"
  11031. @click="setRightAnswer(s, stIndex, sIndex)"
  11032. >
  11033. <el-tooltip
  11034. class="item"
  11035. effect="light"
  11036. :content="s"
  11037. placement="top"
  11038. v-if="s != '' && s != undefined"
  11039. >
  11040. <div
  11041. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11042. >
  11043. <div>{{ s }}</div>
  11044. </div>
  11045. </el-tooltip>
  11046. <div
  11047. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11048. v-else
  11049. >
  11050. <div>{{ s }}</div>
  11051. </div>
  11052. </div>
  11053. </div>
  11054. </div>
  11055. </div>
  11056. </div>
  11057. </div>
  11058. <span slot="footer" class="dialog-footer">
  11059. <el-button @click="dialogVisibleSentenceTeacher = false"
  11060. >取 消</el-button
  11061. >
  11062. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11063. </span>
  11064. </el-dialog>
  11065. <el-dialog
  11066. title="排序"
  11067. :visible.sync="dialogVisibleSentence1"
  11068. :append-to-body="true"
  11069. width="1000px"
  11070. :before-close="handleClose"
  11071. class="dialog_diy dialog_diy3"
  11072. >
  11073. <div>
  11074. <div class="sentenBox">
  11075. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11076. {{ sentenceList1.stuName }}的作业
  11077. </div>
  11078. <div
  11079. v-for="(st, stIndex) in sentenceList1"
  11080. :key="stIndex"
  11081. style="padding-bottom: 20px"
  11082. >
  11083. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11084. 第{{ stIndex + 1 }}题
  11085. </div>
  11086. <div class="isWrong">
  11087. <div class="cardList1" v-if="st.chooseSenList">
  11088. <div class="cardBox">
  11089. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11090. <el-tooltip
  11091. class="item"
  11092. effect="light"
  11093. :content="s"
  11094. placement="top"
  11095. >
  11096. <div class="isCard">
  11097. <div>{{ s }}</div>
  11098. </div>
  11099. </el-tooltip>
  11100. </div>
  11101. </div>
  11102. <div class="cardAnswerBox">
  11103. 组成句子:{{ st.chooseSenList.join(" ") }}
  11104. </div>
  11105. </div>
  11106. <div v-if="tType == 2" class="isTj">
  11107. <div class="isTjImg">
  11108. <img src="../assets/icon/conSentences/right.png" alt="" />
  11109. </div>
  11110. <div>已提交</div>
  11111. </div>
  11112. <div
  11113. class="answerRight isTj"
  11114. v-if="
  11115. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11116. (tType == 1 || tType == 4)
  11117. "
  11118. >
  11119. <div class="isTjImg">
  11120. <img src="../assets/icon/conSentences/right.png" alt="" />
  11121. </div>
  11122. <div>回答正确</div>
  11123. </div>
  11124. <div
  11125. class="answerRight isTj"
  11126. v-if="
  11127. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11128. (tType == 1 || tType == 4)
  11129. "
  11130. >
  11131. <div class="isTjImg">
  11132. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11133. </div>
  11134. <div>回答错误</div>
  11135. </div>
  11136. </div>
  11137. <div
  11138. v-if="
  11139. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11140. (tType == 1 || tType == 4)
  11141. "
  11142. >
  11143. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11144. <div
  11145. class="cardList"
  11146. v-if="st.rightAnswer"
  11147. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11148. >
  11149. <div class="cardBox">
  11150. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11151. <el-tooltip
  11152. class="item"
  11153. effect="light"
  11154. :content="r"
  11155. placement="top"
  11156. >
  11157. <div class="isCard1">
  11158. <div>{{ r }}</div>
  11159. </div>
  11160. </el-tooltip>
  11161. </div>
  11162. </div>
  11163. <div class="cardAnswerBox">
  11164. 组成句子:{{ st.rightAnswer.join(" ") }}
  11165. </div>
  11166. </div>
  11167. </div>
  11168. </div>
  11169. </div>
  11170. </div>
  11171. <span slot="footer" class="dialog-footer">
  11172. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11173. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11174. >确 定</el-button
  11175. >
  11176. </span>
  11177. </el-dialog>
  11178. <el-dialog
  11179. title="教师提交作业"
  11180. :visible.sync="dialogVisibleWorks"
  11181. :append-to-body="true"
  11182. width="500px"
  11183. :before-close="handleClose"
  11184. class="dialog_change"
  11185. >
  11186. <div class="marginT">
  11187. <div class="w_name">
  11188. 学生姓名:<span>{{ sStudent.student }}</span>
  11189. </div>
  11190. <div>上传文件</div>
  11191. <div
  11192. class="chapter_add"
  11193. @click="addImg($event)"
  11194. v-if="studyJuri[0].cover.length == 0"
  11195. >
  11196. <div class="up_photo">
  11197. <img src="../assets/uploadImg2.png" alt />
  11198. </div>
  11199. <!-- <input
  11200. type="file"
  11201. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11202. style="display: none"
  11203. @change="beforeUpload1($event, 1)"
  11204. /> -->
  11205. <input
  11206. type="file"
  11207. accept="*"
  11208. style="display: none"
  11209. @change="beforeUpload1($event, 1)"
  11210. />
  11211. </div>
  11212. <!-- capture="camera" -->
  11213. <div
  11214. class="chapter_add"
  11215. style="
  11216. display: flex;
  11217. width: 100%;
  11218. flex-direction: row;
  11219. flex-wrap: wrap;
  11220. justify-content: flex-start;
  11221. padding: 15px 0;
  11222. "
  11223. v-if="studyJuri[0].cover.length > 0"
  11224. >
  11225. <div class="upCover">
  11226. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11227. <img :src="word" alt v-else-if="fileType == 1" />
  11228. <img :src="video" alt v-else-if="fileType == 2" />
  11229. <img :src="word2" alt v-else-if="fileType == 3" />
  11230. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11231. <div class="deleteWord" @click="clean(1)">
  11232. <img src="../assets/icon/deleteWorks.png" alt />
  11233. </div>
  11234. </div>
  11235. </div>
  11236. </div>
  11237. <div
  11238. class="upload_send"
  11239. @click="addCourseWorksTeacher(taskCount)"
  11240. v-if="!proVisible"
  11241. >
  11242. 提交
  11243. </div>
  11244. </el-dialog>
  11245. <ImgDraw
  11246. :drawShow="drawShow"
  11247. @closeDraw="closeDraw"
  11248. @addImgDraw="addImgDraw"
  11249. :bg="bg"
  11250. ></ImgDraw>
  11251. <el-dialog
  11252. title="表格"
  11253. :visible.sync="dialogVisibleTable"
  11254. :append-to-body="true"
  11255. width="95%"
  11256. :before-close="handleClose"
  11257. class="dialog_diy"
  11258. >
  11259. <el-form>
  11260. <div
  11261. style="
  11262. display: flex;
  11263. align-items: center;
  11264. justify-content: space-between;
  11265. "
  11266. >
  11267. <span>表格内容</span>
  11268. <el-button type="primary" size="small" @click="returnTableText"
  11269. >还原模板</el-button
  11270. >
  11271. </div>
  11272. <Table
  11273. v-model="tableJson.text"
  11274. @change="change"
  11275. v-if="dialogVisibleTable"
  11276. ></Table>
  11277. </el-form>
  11278. <span slot="footer" class="dialog-footer">
  11279. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11280. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11281. </span>
  11282. </el-dialog>
  11283. <el-dialog
  11284. title="表格"
  11285. :visible.sync="dialogVisibleTableTeacher"
  11286. :append-to-body="true"
  11287. width="95%"
  11288. :before-close="handleClose"
  11289. class="dialog_diy"
  11290. >
  11291. <el-form>
  11292. <div class="w_name">
  11293. 学生姓名:<span>{{ sStudent.student }}</span>
  11294. </div>
  11295. <div>表格内容</div>
  11296. <Table
  11297. v-model="tableJson.text"
  11298. @change="change"
  11299. v-if="dialogVisibleTableTeacher"
  11300. ></Table>
  11301. </el-form>
  11302. <span slot="footer" class="dialog-footer">
  11303. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11304. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11305. </span>
  11306. </el-dialog>
  11307. <el-dialog
  11308. title="文档"
  11309. :visible.sync="dialogVisibleWord"
  11310. :append-to-body="true"
  11311. width="95%"
  11312. :before-close="handleClose"
  11313. class="dialog_diy"
  11314. >
  11315. <el-form>
  11316. <div
  11317. style="
  11318. display: flex;
  11319. align-items: center;
  11320. justify-content: space-between;
  11321. "
  11322. >
  11323. <span>文档内容</span>
  11324. <el-button type="primary" size="small" @click="returnWordText"
  11325. >还原模板</el-button
  11326. >
  11327. </div>
  11328. <editor-bar
  11329. v-model="wordJson.text"
  11330. v-if="dialogVisibleWord"
  11331. ></editor-bar>
  11332. </el-form>
  11333. <span slot="footer" class="dialog-footer">
  11334. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11335. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11336. </span>
  11337. </el-dialog>
  11338. <el-dialog
  11339. title="文档"
  11340. :visible.sync="dialogVisibleWordTeacher"
  11341. :append-to-body="true"
  11342. width="95%"
  11343. :before-close="handleClose"
  11344. class="dialog_diy"
  11345. >
  11346. <el-form>
  11347. <div class="w_name">
  11348. 学生姓名:<span>{{ sStudent.student }}</span>
  11349. </div>
  11350. <div>文档内容</div>
  11351. <editor-bar
  11352. v-model="wordJson.text"
  11353. v-if="dialogVisibleWordTeacher"
  11354. ></editor-bar>
  11355. </el-form>
  11356. <span slot="footer" class="dialog-footer">
  11357. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11358. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11359. </span>
  11360. </el-dialog>
  11361. <el-dialog
  11362. title="表格"
  11363. :visible.sync="dialogVisibleTable2"
  11364. :append-to-body="true"
  11365. width="95%"
  11366. :before-close="handleClose"
  11367. class="dialog_diy"
  11368. >
  11369. <el-form>
  11370. <div class="cont" v-html="tableJson.text"></div>
  11371. </el-form>
  11372. <span slot="footer" class="dialog-footer">
  11373. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11374. </span>
  11375. </el-dialog>
  11376. <el-dialog
  11377. title="文档"
  11378. :visible.sync="dialogVisibleTable3"
  11379. :append-to-body="true"
  11380. width="95%"
  11381. :before-close="handleClose"
  11382. class="dialog_diy"
  11383. >
  11384. <el-form>
  11385. <div class="cont" v-html="tableJson.text"></div>
  11386. </el-form>
  11387. <span slot="footer" class="dialog-footer">
  11388. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11389. </span>
  11390. </el-dialog>
  11391. <el-dialog
  11392. title="分组设置"
  11393. :visible.sync="dialogVisibleGroup"
  11394. :append-to-body="true"
  11395. width="95%"
  11396. :before-close="handleClose"
  11397. class="dialog_diy"
  11398. >
  11399. <div v-if="dialogVisibleGroup">
  11400. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11401. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11402. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11403. </div>
  11404. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11405. @click="lockChair">
  11406. 锁定位置
  11407. </div>
  11408. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11409. 解锁位置
  11410. </div> -->
  11411. <div class="group_switch">
  11412. <span>开放选座</span>
  11413. <el-switch
  11414. v-model="islock"
  11415. active-text=""
  11416. class="switchCss"
  11417. @change="lockChair"
  11418. ></el-switch>
  11419. </div>
  11420. <div
  11421. type="primary"
  11422. @click="updateGroup"
  11423. class="returnBtn"
  11424. style="background-color: #225bc7"
  11425. >
  11426. 分组设置
  11427. </div>
  11428. </div>
  11429. <div>
  11430. <div
  11431. class="g_d_box"
  11432. v-if="groupJson.group && groupStudent[toolindex]"
  11433. >
  11434. <div
  11435. class="g_d_group"
  11436. v-for="(g, gindex) in groupJson.group"
  11437. :key="gindex"
  11438. >
  11439. <div class="g_d_group_chair">
  11440. <div v-if="groupJson.number > 1">
  11441. <span
  11442. :class="{
  11443. isChair:
  11444. groupStudent[toolindex][gindex] &&
  11445. groupStudent[toolindex][gindex][0],
  11446. updateChair:
  11447. courseDetail.userid == userid &&
  11448. groupStudent[toolindex][gindex] &&
  11449. groupStudent[toolindex][gindex][0] &&
  11450. groupJson.islock == 2,
  11451. }"
  11452. ><span
  11453. class="updateChairBtn"
  11454. @click="
  11455. updateGroupChair(
  11456. groupStudent[toolindex][gindex] &&
  11457. groupStudent[toolindex][gindex][0]
  11458. )
  11459. "
  11460. >修改</span
  11461. ></span
  11462. ><span>{{
  11463. groupStudent[toolindex][gindex] &&
  11464. groupStudent[toolindex][gindex][0]
  11465. ? groupStudent[toolindex][gindex] &&
  11466. groupStudent[toolindex][gindex][0].name
  11467. : "空位置"
  11468. }}</span>
  11469. </div>
  11470. <div v-if="groupJson.number > 4">
  11471. <span
  11472. :class="{
  11473. isChair:
  11474. groupStudent[toolindex][gindex] &&
  11475. groupStudent[toolindex][gindex][4],
  11476. updateChair:
  11477. courseDetail.userid == userid &&
  11478. groupStudent[toolindex][gindex] &&
  11479. groupStudent[toolindex][gindex][4] &&
  11480. groupJson.islock == 2,
  11481. }"
  11482. ><span
  11483. class="updateChairBtn"
  11484. @click="
  11485. updateGroupChair(
  11486. groupStudent[toolindex][gindex] &&
  11487. groupStudent[toolindex][gindex][4]
  11488. )
  11489. "
  11490. >修改</span
  11491. ></span
  11492. ><span>{{
  11493. groupStudent[toolindex][gindex] &&
  11494. groupStudent[toolindex][gindex][4]
  11495. ? groupStudent[toolindex][gindex] &&
  11496. groupStudent[toolindex][gindex][4].name
  11497. : "空位置"
  11498. }}</span>
  11499. </div>
  11500. <div v-if="groupJson.number > 8">
  11501. <span
  11502. :class="{
  11503. isChair:
  11504. groupStudent[toolindex][gindex] &&
  11505. groupStudent[toolindex][gindex][8],
  11506. updateChair:
  11507. courseDetail.userid == userid &&
  11508. groupStudent[toolindex][gindex] &&
  11509. groupStudent[toolindex][gindex][8] &&
  11510. groupJson.islock == 2,
  11511. }"
  11512. ><span
  11513. class="updateChairBtn"
  11514. @click="
  11515. updateGroupChair(
  11516. groupStudent[toolindex][gindex] &&
  11517. groupStudent[toolindex][gindex][8]
  11518. )
  11519. "
  11520. >修改</span
  11521. ></span
  11522. ><span>{{
  11523. groupStudent[toolindex][gindex] &&
  11524. groupStudent[toolindex][gindex][8]
  11525. ? groupStudent[toolindex][gindex] &&
  11526. groupStudent[toolindex][gindex][8].name
  11527. : "空位置"
  11528. }}</span>
  11529. </div>
  11530. </div>
  11531. <div class="g_d_group_tableBox">
  11532. <div class="g_d_group_chair2">
  11533. <div v-if="groupJson.number > 2">
  11534. <span
  11535. :class="{
  11536. isChair:
  11537. groupStudent[toolindex][gindex] &&
  11538. groupStudent[toolindex][gindex][2],
  11539. updateChair:
  11540. courseDetail.userid == userid &&
  11541. groupStudent[toolindex][gindex] &&
  11542. groupStudent[toolindex][gindex][2] &&
  11543. groupJson.islock == 2,
  11544. }"
  11545. ><span
  11546. class="updateChairBtn"
  11547. @click="
  11548. updateGroupChair(
  11549. groupStudent[toolindex][gindex] &&
  11550. groupStudent[toolindex][gindex][2]
  11551. )
  11552. "
  11553. >修改</span
  11554. ></span
  11555. ><span>{{
  11556. groupStudent[toolindex][gindex] &&
  11557. groupStudent[toolindex][gindex][2]
  11558. ? groupStudent[toolindex][gindex] &&
  11559. groupStudent[toolindex][gindex][2].name
  11560. : "空位置"
  11561. }}</span>
  11562. </div>
  11563. <div v-if="groupJson.number > 6">
  11564. <span
  11565. :class="{
  11566. isChair:
  11567. groupStudent[toolindex][gindex] &&
  11568. groupStudent[toolindex][gindex][6],
  11569. updateChair:
  11570. courseDetail.userid == userid &&
  11571. groupStudent[toolindex][gindex] &&
  11572. groupStudent[toolindex][gindex][6] &&
  11573. groupJson.islock == 2,
  11574. }"
  11575. ><span
  11576. class="updateChairBtn"
  11577. @click="
  11578. updateGroupChair(
  11579. groupStudent[toolindex][gindex] &&
  11580. groupStudent[toolindex][gindex][6]
  11581. )
  11582. "
  11583. >修改</span
  11584. ></span
  11585. ><span>{{
  11586. groupStudent[toolindex][gindex] &&
  11587. groupStudent[toolindex][gindex][6]
  11588. ? groupStudent[toolindex][gindex] &&
  11589. groupStudent[toolindex][gindex][6].name
  11590. : "空位置"
  11591. }}</span>
  11592. </div>
  11593. </div>
  11594. <div class="g_d_group_table">
  11595. <div>
  11596. {{ g.name }}
  11597. </div>
  11598. <div>
  11599. <div
  11600. v-if="
  11601. courseDetail.userid == userid && groupJson.islock == 2
  11602. "
  11603. @click="deleteGroupChair(gindex)"
  11604. >
  11605. 移除组员
  11606. </div>
  11607. <div
  11608. @click="selectGroup(gindex)"
  11609. v-else-if="
  11610. groupStudentUid[toolindex] &&
  11611. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11612. "
  11613. >
  11614. 加入分组
  11615. </div>
  11616. <div
  11617. @click="
  11618. exitGroup(
  11619. groupStudent[toolindex][gindex] &&
  11620. groupStudent[toolindex][gindex][
  11621. groupStudentUid[toolindex][gindex].indexOf(userid)
  11622. ].id
  11623. )
  11624. "
  11625. v-else-if="
  11626. groupStudentUid[toolindex] &&
  11627. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11628. "
  11629. >
  11630. 退出分组
  11631. </div>
  11632. </div>
  11633. </div>
  11634. <div class="g_d_group_chair2">
  11635. <div v-if="groupJson.number > 3">
  11636. <span
  11637. :class="{
  11638. isChair:
  11639. groupStudent[toolindex][gindex] &&
  11640. groupStudent[toolindex][gindex][3],
  11641. updateChair:
  11642. courseDetail.userid == userid &&
  11643. groupStudent[toolindex][gindex] &&
  11644. groupStudent[toolindex][gindex][3] &&
  11645. groupJson.islock == 2,
  11646. }"
  11647. ><span
  11648. class="updateChairBtn"
  11649. @click="
  11650. updateGroupChair(
  11651. groupStudent[toolindex][gindex] &&
  11652. groupStudent[toolindex][gindex][3]
  11653. )
  11654. "
  11655. >修改</span
  11656. ></span
  11657. ><span>{{
  11658. groupStudent[toolindex][gindex] &&
  11659. groupStudent[toolindex][gindex][3]
  11660. ? groupStudent[toolindex][gindex] &&
  11661. groupStudent[toolindex][gindex][3].name
  11662. : "空位置"
  11663. }}</span>
  11664. </div>
  11665. <div v-if="groupJson.number > 7">
  11666. <span
  11667. :class="{
  11668. isChair:
  11669. groupStudent[toolindex][gindex] &&
  11670. groupStudent[toolindex][gindex][7],
  11671. updateChair:
  11672. courseDetail.userid == userid &&
  11673. groupStudent[toolindex][gindex] &&
  11674. groupStudent[toolindex][gindex][7] &&
  11675. groupJson.islock == 2,
  11676. }"
  11677. ><span
  11678. class="updateChairBtn"
  11679. @click="
  11680. updateGroupChair(
  11681. groupStudent[toolindex][gindex] &&
  11682. groupStudent[toolindex][gindex][7]
  11683. )
  11684. "
  11685. >修改</span
  11686. ></span
  11687. ><span>{{
  11688. groupStudent[toolindex][gindex] &&
  11689. groupStudent[toolindex][gindex][7]
  11690. ? groupStudent[toolindex][gindex] &&
  11691. groupStudent[toolindex][gindex][7].name
  11692. : "空位置"
  11693. }}</span>
  11694. </div>
  11695. </div>
  11696. </div>
  11697. <div class="g_d_group_chair">
  11698. <div v-if="groupJson.number > 1">
  11699. <span
  11700. :class="{
  11701. isChair:
  11702. groupStudent[toolindex][gindex] &&
  11703. groupStudent[toolindex][gindex][1],
  11704. updateChair:
  11705. courseDetail.userid == userid &&
  11706. groupStudent[toolindex][gindex] &&
  11707. groupStudent[toolindex][gindex][1] &&
  11708. groupJson.islock == 2,
  11709. }"
  11710. ><span
  11711. class="updateChairBtn"
  11712. @click="
  11713. updateGroupChair(
  11714. groupStudent[toolindex][gindex] &&
  11715. groupStudent[toolindex][gindex][1]
  11716. )
  11717. "
  11718. >修改</span
  11719. ></span
  11720. ><span>{{
  11721. groupStudent[toolindex][gindex] &&
  11722. groupStudent[toolindex][gindex][1]
  11723. ? groupStudent[toolindex][gindex] &&
  11724. groupStudent[toolindex][gindex][1].name
  11725. : "空位置"
  11726. }}</span>
  11727. </div>
  11728. <div v-if="groupJson.number > 5">
  11729. <span
  11730. :class="{
  11731. isChair:
  11732. groupStudent[toolindex][gindex] &&
  11733. groupStudent[toolindex][gindex][5],
  11734. updateChair:
  11735. courseDetail.userid == userid &&
  11736. groupStudent[toolindex][gindex] &&
  11737. groupStudent[toolindex][gindex][5] &&
  11738. groupJson.islock == 2,
  11739. }"
  11740. ><span
  11741. class="updateChairBtn"
  11742. @click="
  11743. updateGroupChair(
  11744. groupStudent[toolindex][gindex] &&
  11745. groupStudent[toolindex][gindex][5]
  11746. )
  11747. "
  11748. >修改</span
  11749. ></span
  11750. ><span>{{
  11751. groupStudent[toolindex][gindex] &&
  11752. groupStudent[toolindex][gindex][5]
  11753. ? groupStudent[toolindex][gindex] &&
  11754. groupStudent[toolindex][gindex][5].name
  11755. : "空位置"
  11756. }}</span>
  11757. </div>
  11758. <div v-if="groupJson.number > 9">
  11759. <span
  11760. :class="{
  11761. isChair:
  11762. groupStudent[toolindex][gindex] &&
  11763. groupStudent[toolindex][gindex][9],
  11764. updateChair:
  11765. courseDetail.userid == userid &&
  11766. groupStudent[toolindex][gindex] &&
  11767. groupStudent[toolindex][gindex][9] &&
  11768. groupJson.islock == 2,
  11769. }"
  11770. ><span
  11771. class="updateChairBtn"
  11772. @click="
  11773. updateGroupChair(
  11774. groupStudent[toolindex][gindex] &&
  11775. groupStudent[toolindex][gindex][9]
  11776. )
  11777. "
  11778. >修改</span
  11779. ></span
  11780. ><span>{{
  11781. groupStudent[toolindex][gindex] &&
  11782. groupStudent[toolindex][gindex][9]
  11783. ? groupStudent[toolindex][gindex] &&
  11784. groupStudent[toolindex][gindex][9].name
  11785. : "空位置"
  11786. }}</span>
  11787. </div>
  11788. </div>
  11789. </div>
  11790. </div>
  11791. </div>
  11792. </div>
  11793. <span slot="footer" class="dialog-footer">
  11794. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11795. </span>
  11796. </el-dialog>
  11797. <el-dialog
  11798. title="分组设置"
  11799. :visible.sync="dialogVisibleGroup2"
  11800. :append-to-body="true"
  11801. width="650px"
  11802. :before-close="handleClose"
  11803. class="dialog_diy"
  11804. >
  11805. <div class="groupBox">
  11806. <div v-if="groupJson2.group" class="groupContent">
  11807. <div class="groupTitle">请设置小组数量及名称</div>
  11808. <div
  11809. v-for="(item, index) in groupJson2.group"
  11810. :key="index"
  11811. class="groupName"
  11812. >
  11813. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11814. <el-input
  11815. v-model="item.name"
  11816. placeholder="请输入名称..."
  11817. style="width: 250px"
  11818. ></el-input>
  11819. <!-- <div class="groupBtn">
  11820. <el-button type="primary" size="small" @click="addGroup(index)">
  11821. 添加</el-button>
  11822. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11823. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11824. </div> -->
  11825. </div>
  11826. </div>
  11827. <div class="groupContent">
  11828. <div class="groupTitle">请设置每组人数</div>
  11829. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11830. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11831. <el-input
  11832. v-model="groupJson2.number"
  11833. style="width: 150px"
  11834. placeholder="请输入2-10的数字"
  11835. @change="numberPan"
  11836. ></el-input>
  11837. </div>
  11838. </div>
  11839. <span slot="footer" class="dialog-footer">
  11840. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11841. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11842. </span>
  11843. </el-dialog>
  11844. <el-dialog
  11845. title="作业提交"
  11846. :visible.sync="dialogVisibleGroupWork"
  11847. :append-to-body="true"
  11848. width="500px"
  11849. :before-close="handleClose"
  11850. class="dialog_change"
  11851. >
  11852. <div class="marginT">
  11853. <div>上传文件</div>
  11854. <div
  11855. class="chapter_add"
  11856. @click="addImg($event)"
  11857. v-if="studyJuri[0].cover.length == 0"
  11858. >
  11859. <div class="up_photo">
  11860. <img src="../assets/icon/uploadImg.png" alt />
  11861. </div>
  11862. <!-- <input
  11863. type="file"
  11864. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11865. style="display: none"
  11866. @change="beforeUpload1($event, 1)"
  11867. /> -->
  11868. <input
  11869. type="file"
  11870. accept="*"
  11871. style="display: none"
  11872. @change="beforeUpload1($event, 1)"
  11873. />
  11874. </div>
  11875. <!-- capture="camera" -->
  11876. <div
  11877. class="chapter_add"
  11878. style="
  11879. display: flex;
  11880. width: 100%;
  11881. flex-direction: row;
  11882. flex-wrap: wrap;
  11883. justify-content: flex-start;
  11884. padding: 15px 0;
  11885. "
  11886. v-if="studyJuri[0].cover.length > 0"
  11887. >
  11888. <div class="upCover">
  11889. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11890. <img :src="word" alt v-else-if="fileType == 1" />
  11891. <img :src="video" alt v-else-if="fileType == 2" />
  11892. <img :src="word2" alt v-else-if="fileType == 3" />
  11893. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11894. <div class="deleteWord" @click="clean(1)">
  11895. <img src="../assets/icon/deleteWorks.png" alt />
  11896. </div>
  11897. </div>
  11898. </div>
  11899. </div>
  11900. <div
  11901. class="upload_send"
  11902. @click="addCourseWorks2(taskCount)"
  11903. v-if="!proVisible"
  11904. >
  11905. 提交
  11906. </div>
  11907. </el-dialog>
  11908. <el-dialog
  11909. title="修改分组"
  11910. :visible.sync="dialogVisibleUpdateGroup"
  11911. :append-to-body="true"
  11912. width="350px"
  11913. :before-close="handleClose"
  11914. class="dialog_diy"
  11915. >
  11916. <div>
  11917. <h2>
  11918. {{ this.updateGroupUser.name }}
  11919. </h2>
  11920. <div style="color: rgb(171 171 171); margin-top: 10px">
  11921. 请选择要进入的分组
  11922. </div>
  11923. <el-radio-group v-model="checkChair">
  11924. <el-radio
  11925. style="display: block; margin-top: 20px"
  11926. v-for="(item, index) in updateGroupArray"
  11927. :label="item.label"
  11928. :key="index"
  11929. >{{ item.name }}</el-radio
  11930. >
  11931. </el-radio-group>
  11932. </div>
  11933. <span slot="footer" class="dialog-footer">
  11934. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11935. <el-button type="primary" @click="updateChair">确定</el-button>
  11936. </span>
  11937. </el-dialog>
  11938. <el-dialog
  11939. title="移除组员"
  11940. :visible.sync="dialogVisibleDeleteGroup"
  11941. :append-to-body="true"
  11942. width="350px"
  11943. :before-close="handleClose"
  11944. class="dialog_diy"
  11945. >
  11946. <div>
  11947. <h2>
  11948. {{ this.deleteGroupArray.name }}
  11949. </h2>
  11950. <div style="color: rgb(171 171 171); margin-top: 10px">
  11951. 请选择要删除的组员
  11952. </div>
  11953. <el-checkbox-group v-model="checkDeleteGroup">
  11954. <el-checkbox
  11955. style="display: flex; margin-top: 20px"
  11956. v-for="(item, index) in deleteGroupUser"
  11957. :label="item.userid"
  11958. :key="index"
  11959. >{{ item.name }}</el-checkbox
  11960. >
  11961. </el-checkbox-group>
  11962. </div>
  11963. <span slot="footer" class="dialog-footer">
  11964. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11965. <el-button type="primary" @click="deleteChair">确定</el-button>
  11966. </span>
  11967. </el-dialog>
  11968. <el-dialog
  11969. title="批量上传"
  11970. :visible.sync="dialogVisiblePl"
  11971. :append-to-body="true"
  11972. width="700px"
  11973. :before-close="handleClose"
  11974. class="dialog_change"
  11975. >
  11976. <div class="marginT">
  11977. <div class="plworkBox">
  11978. <div
  11979. class="chapter_add"
  11980. style="
  11981. display: flex;
  11982. width: 150px;
  11983. flex-direction: row;
  11984. flex-wrap: wrap;
  11985. justify-content: flex-start;
  11986. margin: 0 10px 10px 0;
  11987. "
  11988. v-for="(item, index) in plworkFile"
  11989. :key="index"
  11990. >
  11991. <div class="upCover2">
  11992. <img
  11993. :src="item.url"
  11994. alt
  11995. v-if="item.fileType == 1"
  11996. @click="previewImg(item.url)"
  11997. />
  11998. <img :src="word" alt v-else-if="item.fileType == 4" />
  11999. <img :src="video" alt v-else />
  12000. <!-- <span class="picName">{{ item.name }}</span> -->
  12001. <!-- <el-input
  12002. v-model="item.username"
  12003. placeholder="请输入学生名字"
  12004. style="margin-top: 10px"
  12005. ></el-input> -->
  12006. <div
  12007. class="pl_select_box"
  12008. @click="
  12009. getUpdateMore(true, checkUpload(), item.username, index)
  12010. "
  12011. >
  12012. {{ getSName(item.username) }}
  12013. </div>
  12014. <!-- <el-select
  12015. style="margin-top: 10px"
  12016. v-model="item.username"
  12017. filterable
  12018. allow-create
  12019. placeholder="请选择学生"
  12020. >
  12021. <el-option
  12022. v-for="item1 in checkUpload()"
  12023. :key="item1.userid"
  12024. :label="item1.name ? item1.name : item1.username"
  12025. :value="item1.userid"
  12026. >
  12027. </el-option>
  12028. </el-select> -->
  12029. <div class="deleteWord" @click="clean2(index)">
  12030. <img src="../assets/icon/deleteWorks.png" alt />
  12031. </div>
  12032. </div>
  12033. </div>
  12034. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12035. <div class="up_photo2">
  12036. <img src="../assets/icon/plwork.png" alt />
  12037. <span>点击上传文件</span>
  12038. </div>
  12039. <input
  12040. type="file"
  12041. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12042. multiple="multiple"
  12043. style="display: none"
  12044. @change="beforeUpload3($event, 6)"
  12045. />
  12046. </div>
  12047. </div>
  12048. </div>
  12049. <!-- capture="camera" -->
  12050. <div
  12051. class="upload_send"
  12052. @click="addCourseWorksPl(taskCount)"
  12053. v-if="!proVisible2"
  12054. >
  12055. 提交
  12056. </div>
  12057. </el-dialog>
  12058. <el-dialog
  12059. title="修改名称"
  12060. :visible.sync="dialogVisibleSname"
  12061. width="500px"
  12062. :before-close="handleClose"
  12063. class="dialog_diy"
  12064. center
  12065. >
  12066. <div
  12067. style="
  12068. text-align: center;
  12069. display: flex;
  12070. align-items: center;
  12071. justify-content: center;
  12072. "
  12073. >
  12074. <span class="tian1">名称</span>
  12075. <div
  12076. class="pl_select_box"
  12077. style="margin-left: 10px; width: 200px"
  12078. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12079. >
  12080. {{ getSName(worksSName) }}
  12081. </div>
  12082. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12083. placeholder="请选择学生">
  12084. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12085. :value="item.userid">
  12086. </el-option>
  12087. </el-select> -->
  12088. <!-- <el-input
  12089. v-model="worksSName"
  12090. style="width: 250px; margin: 15px 0px"
  12091. ></el-input> -->
  12092. </div>
  12093. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12094. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12095. <el-button type="primary" @click="updateName">确 定</el-button>
  12096. </span>
  12097. </el-dialog>
  12098. <el-dialog
  12099. title="英语写作"
  12100. :visible.sync="engDialogVisible"
  12101. :append-to-body="true"
  12102. width="800px"
  12103. :before-close="handleClose"
  12104. class="dialog_diy"
  12105. >
  12106. <onlineWrite
  12107. v-if="engDialogVisible"
  12108. :englishList="englishList"
  12109. :myAnswerList1="myAnswerList1"
  12110. :userid="userid"
  12111. ref="engJson"
  12112. ></onlineWrite>
  12113. <span slot="footer" class="dialog-footer">
  12114. <el-button @click="engDialogVisible = false">取 消</el-button>
  12115. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12116. </span>
  12117. </el-dialog>
  12118. <el-dialog
  12119. title="英语写作"
  12120. :visible.sync="engUpdateDialogVisible"
  12121. :append-to-body="true"
  12122. width="800px"
  12123. :before-close="handleClose"
  12124. class="dialog_diy fullStyle"
  12125. >
  12126. <div class="engUpBox">
  12127. <div class="engUpTop">
  12128. <div class="engTitle">
  12129. <div>作文题目:</div>
  12130. <div>{{ englishList1.engTitle }}</div>
  12131. </div>
  12132. <div class="engText">
  12133. <div>作文内容:</div>
  12134. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12135. </div>
  12136. </div>
  12137. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12138. <div class="oldBox">
  12139. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12140. <div class="oldText">
  12141. <div class="detailBox">
  12142. <div class="oldDetail">
  12143. <div>标题:</div>
  12144. <div>{{ oldEnglishJson.engTitle }} </div>
  12145. </div>
  12146. <div class="oldDetail1">
  12147. <div>正文:</div>
  12148. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12149. </div>
  12150. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12151. <div>图片:</div>
  12152. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12153. </div>
  12154. </div>
  12155. </div>
  12156. </div>
  12157. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12158. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12159. <div class="oldText">
  12160. <div class="detailBox" style="position: relative;">
  12161. <div class="oldDetail">
  12162. <div>标题:</div>
  12163. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12164. <div v-else v-html="newEnglishList.engTitle"></div>
  12165. </div>
  12166. <div class="oldDetail">
  12167. <div>正文:</div>
  12168. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12169. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12170. </div>
  12171. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12172. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12173. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12174. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12175. </div>
  12176. </div>
  12177. </div>
  12178. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12179. <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">
  12180. <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>
  12181. <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>
  12182. </div>
  12183. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12184. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12185. <div class="detailBox" style="position: relative;">
  12186. <div class="oldDetail">
  12187. <div>标题:</div>
  12188. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12189. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12190. </div>
  12191. <div class="oldDetail">
  12192. <div>正文:</div>
  12193. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12194. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12195. </div>
  12196. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12197. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12198. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12199. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12200. </div>
  12201. </div>
  12202. <div class="oldText" v-else-if="newEngIndex == -1">
  12203. <div class="detailBox" style="position: relative;">
  12204. <div class="oldDetail">
  12205. <div>标题:</div>
  12206. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12207. <div v-else v-html="newEnglishList.engTitle"></div>
  12208. </div>
  12209. <div class="oldDetail">
  12210. <div>正文:</div>
  12211. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12212. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12213. </div>
  12214. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12215. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12216. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12217. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12218. </div>
  12219. </div>
  12220. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12221. <div class="detailBox" style="position: relative;">
  12222. <div class="oldDetail">
  12223. <div>标题:</div>
  12224. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12225. <div v-else>
  12226. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12227. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12228. </div>
  12229. </div>
  12230. <div class="oldDetail">
  12231. <div>正文:</div>
  12232. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12233. <div v-else>
  12234. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12235. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12236. </div>
  12237. </div>
  12238. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12239. <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>
  12240. <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>
  12241. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12242. </div>
  12243. </div>
  12244. </div>
  12245. </div>
  12246. </div>
  12247. <span slot="footer" class="dialog-footer">
  12248. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12249. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12250. </span>
  12251. </el-dialog>
  12252. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12253. <interVideo
  12254. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12255. :videoJson="videoJson"
  12256. :userid="userid"
  12257. :id="id"
  12258. :courseType="courseType"
  12259. :taskCount="taskCount"
  12260. :toolindex="toolindex"
  12261. :videoType="videoType"
  12262. ></interVideo>
  12263. <UpdateMore
  12264. :dialogVisibleMember.sync="dialogVisibleMember"
  12265. :cList="uploadStudentJuri"
  12266. :userid="userid"
  12267. :searchTN="worksSName2"
  12268. @setPlname="setPlname"
  12269. ></UpdateMore>
  12270. <!-- <wordCloud
  12271. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12272. :data="wordCloudData"
  12273. ></wordCloud> -->
  12274. <el-dialog
  12275. title="词云"
  12276. :visible.sync="dialogVisibleWordCloud"
  12277. width="30%"
  12278. class="dialog_diy"
  12279. :before-close="handleClose">
  12280. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12281. </el-dialog>
  12282. <el-dialog
  12283. title="挑人"
  12284. :visible.sync="dialogVisiblePickPeople"
  12285. width="650px"
  12286. :before-close="handleClose"
  12287. class="dialog_diy"
  12288. center
  12289. >
  12290. <div class="pick_box">
  12291. <div
  12292. class="noWorksName"
  12293. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12294. v-for="(item, index) in uploadStudentJuri"
  12295. :key="index"
  12296. @click="pickStudent(item)"
  12297. >
  12298. {{ item.name }}
  12299. </div>
  12300. </div>
  12301. </el-dialog>
  12302. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12303. :englishVoiceJson='englishVoiceJson'
  12304. :userid="userid"
  12305. :id="id"
  12306. :courseType="courseType"
  12307. :taskCount="taskCount"
  12308. :toolindex="toolindex"
  12309. @selectSWorks="selectSWorks"
  12310. @selectStudent="selectStudent"
  12311. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12312. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12313. :userid="userid"
  12314. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12315. :commentDetail="commentDetail"
  12316. :courseDetail="courseDetail"
  12317. :wScore="wScore"
  12318. :scoreDetail="scoreDetail"
  12319. @selectSWorks="selectSWorks"
  12320. @selectStudent="selectStudent"></checkEnglishVoice>
  12321. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12322. <choseWorksDetailDialog
  12323. ref="choseWorksDetailDialogRef"
  12324. :worksStudentData="worksStudent"
  12325. :noWorksSData="noWorksS"
  12326. :chapInfoListData="chapInfoList"
  12327. :courseType="courseType"
  12328. :taskCount="taskCount"
  12329. :tType="tType"
  12330. :sIsOpen="sIsOpen"
  12331. :courseDetail="courseDetail"
  12332. :groupStudent2="groupStudent"
  12333. :groupStudentUid2="groupStudentUid"
  12334. :oid="oid"
  12335. :org="org"
  12336. @getCourseDetail="getCourseDetail"
  12337. @selectSLook="selectSLook"
  12338. @selectSWorks="selectSWorks"
  12339. @selectStudent="selectStudent"
  12340. @deleteWorks="deleteWorks"
  12341. @openTools="openTools"
  12342. @openWord="openWord"
  12343. @openScore="openScore"
  12344. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12345. />
  12346. <el-dialog
  12347. :visible.sync="confirmOpenDig"
  12348. width="500px"
  12349. :modal="false"
  12350. class="confirmOpenDigCss dialog_diyCopy"
  12351. :before-close="handleClose">
  12352. <div style="display: flex;align-items: center;">
  12353. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12354. <span>“{{ courseDetail.title }}”开课啦</span>
  12355. </div>
  12356. <div style="margin: 20px 0 35px;">
  12357. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12358. <div>要认真听讲哦~</div>
  12359. </div>
  12360. <div style="text-align: center;">
  12361. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12362. </div>
  12363. </el-dialog>
  12364. <appStoreC ref="appStoreC"
  12365. :sStudent="sStudent"
  12366. :courseType="courseType"
  12367. :taskCount="taskCount"
  12368. :toolindex="toolindex"
  12369. @selectSWorks="selectSWorks"
  12370. @selectStudent="selectStudent"
  12371. ></appStoreC>
  12372. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12373. </div>
  12374. </template>
  12375. <script>
  12376. import "../common/aws-sdk-2.235.1.min.js";
  12377. // import pdf from "./components/pdf3";
  12378. import pdf from "./components/vpdf";
  12379. import AskStatic from "./components/askStatic";
  12380. import AskStatic2 from "./components/askStatic2";
  12381. import AnswerData2 from "./components/answerData2";
  12382. import AnswerData from "./components/answerData";
  12383. import EditorBar from "./tools/wangEnduit.vue";
  12384. import Table from "./tools/table.vue";
  12385. import Time from "./tools/time.vue";
  12386. import Mind from "./tools/jsmind.vue";
  12387. import Sunburst from "./tools/sunburst";
  12388. import SeeBoard from "./tools/seeBoard";
  12389. import * as imageConversion from "image-conversion";
  12390. import Audio from "./components/audio.vue";
  12391. import ImgDraw from "./tools/imgDraw/imgDraw";
  12392. import { Empty } from "element-ui";
  12393. import RecordRTC from "recordrtc";
  12394. import interVideo from "./interVideo/index.vue";
  12395. import UpdateMore from "./updateMore/updateMore.vue";
  12396. import wordCloud from "./wordCloud/index.vue";
  12397. import axios from "axios";
  12398. import JSZip from "jszip";
  12399. import FileSaver from "file-saver";
  12400. import onlineWrite from "./components/onlineWrite";
  12401. import englishEva from "./components/englishEva";
  12402. import * as Diff from 'diff'
  12403. import EnglishVoice from './EnglishVoice2/index.vue'
  12404. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12405. import correctText from './components/correctText.vue'
  12406. import scoreItem from './scoreList/scoreItem.vue'
  12407. import scoreZong from './scoreZong/index.vue'
  12408. import classRoomHelper from './classRoomHelper/index.vue'
  12409. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12410. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12411. import { v4 as uuidv4 } from "uuid";
  12412. var OpenCC = require("opencc-js");
  12413. import choseWordCloud from './components/choseWordCloud.vue'
  12414. import appStoreC from "./components/appStoreC.vue";
  12415. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12416. import { myMixin } from "@/mixins/mixin.js"
  12417. let converter = OpenCC.Converter({
  12418. from: "hk",
  12419. to: "cn"
  12420. });
  12421. const getFile = (url) => {
  12422. return new Promise((resolve, reject) => {
  12423. var credentials = {
  12424. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12425. secretAccessKey: "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",
  12426. }; //秘钥形式的登录上传
  12427. window.AWS.config.update(credentials);
  12428. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12429. let url2 = url;
  12430. let _url2 = "";
  12431. if (
  12432. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12433. ) {
  12434. _url2 = url2.split(
  12435. "https://view.officeapps.live.com/op/view.aspx?src="
  12436. )[1];
  12437. } else {
  12438. _url2 = url2;
  12439. }
  12440. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12441. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12442. var params = {
  12443. Bucket: "ccrb",
  12444. Key: name
  12445. };
  12446. s3.getObject(params, function (err, data) {
  12447. if (err) {
  12448. console.log(err, err.stack)
  12449. resolve({ data: 1 });
  12450. }else {
  12451. resolve({ data: data.Body });
  12452. console.log(data);
  12453. } // sxuccessful response
  12454. });
  12455. // axios({
  12456. // method: "get",
  12457. // url,
  12458. // responseType: "blob",
  12459. // })
  12460. // .then((data) => {
  12461. // resolve({ data: data.data });
  12462. // })
  12463. // .catch((error) => {
  12464. // resolve({ data: 1 });
  12465. // // reject(error.toString());
  12466. // });
  12467. });
  12468. };
  12469. export default {
  12470. mixins: [ myMixin ],
  12471. components: {
  12472. choseWordCloud,
  12473. EditorBar,
  12474. Time,
  12475. pdf,
  12476. AskStatic,
  12477. AskStatic2,
  12478. Mind,
  12479. Sunburst,
  12480. SeeBoard,
  12481. AnswerData2,
  12482. AnswerData,
  12483. Audio,
  12484. ImgDraw,
  12485. Table,
  12486. interVideo,
  12487. UpdateMore,
  12488. wordCloud,
  12489. onlineWrite,
  12490. englishEva,
  12491. EnglishVoice,
  12492. checkEnglishVoice,
  12493. correctText,
  12494. scoreItem,
  12495. classRoomHelper,
  12496. scoreZong,
  12497. statisticalAnalysis,
  12498. choseWorksDetailDialog,
  12499. appStoreC,
  12500. cocoFlowDia
  12501. },
  12502. data() {
  12503. return {
  12504. wordCloudKey: 0,
  12505. bg: null,
  12506. drawShow: false,
  12507. dialogVisible: false,
  12508. dialogVisiblePl: false,
  12509. commentDialogVisible: false,
  12510. dialogVisibleMember: false,
  12511. dialogVisibleWordCloud: false,
  12512. videoVisible: false,
  12513. isStar: false,
  12514. studentEvalDialogVisible: false,
  12515. studentEvalDialogVisibleTeacher: false,
  12516. dialogVisibleSelect: false,
  12517. dialogVisibleSelectTeacher: false,
  12518. dialogVisibleScore: false,
  12519. dialogVisibleENScore: false,
  12520. dialogVisibleSentence: false,
  12521. dialogVisibleSentenceTeacher: false,
  12522. dialogVisibleSentence1: false,
  12523. dialogVisibleWorks: false,
  12524. dialogVisibleTable: false,
  12525. dialogVisibleTableTeacher: false,
  12526. dialogVisibleWord: false,
  12527. dialogVisibleWordTeacher: false,
  12528. dialogVisibleTable2: false,
  12529. dialogVisibleTable3: false,
  12530. dialogVisibleGroupWork: false,
  12531. dialogVisibleUpdateGroup: false,
  12532. dialogVisibleDeleteGroup: false,
  12533. dialogVisibleSname: false,
  12534. dialogVisibleVideo: false,
  12535. dialogVisiblePickPeople: false,
  12536. engDialogVisible: false,
  12537. engUpdateDialogVisible: false,
  12538. engEvaDialogVisible: false,
  12539. evaEngJson: {
  12540. teacherJson: {},
  12541. studentJson: {},
  12542. message: {},
  12543. },
  12544. isNoUserid:false,
  12545. engListLength:0,
  12546. engWid:"",
  12547. newEnglishList:{
  12548. engTitle:"",
  12549. engText:"",
  12550. },
  12551. newEnglishList1:[],
  12552. oldEnglishJson:{},
  12553. oldEnglishJson1:{},
  12554. englishList1:{},
  12555. englishList:{},
  12556. myAnswerList1:{},
  12557. topHeight:0,
  12558. newEngIndex:-1,
  12559. englishToolIndex:0,
  12560. worksSName: "",
  12561. classJuri: [],
  12562. uploadStudentJuri: [],
  12563. uploadCid: "",
  12564. snameWid: "",
  12565. sStudent: {},
  12566. sTool: "",
  12567. bzText: "",
  12568. commentDetail: [],
  12569. selectAnswer: [],
  12570. videoDetail: {},
  12571. selectJson: {},
  12572. eScore: { eBzText: "", eStar: [] },
  12573. id: this.$route.query.courseId,
  12574. userid: this.$route.query.userid,
  12575. classId: this.$route.query.cid,
  12576. // courseTypeLine: this.$route.query.type,
  12577. oid: this.$route.query.oid,
  12578. org: this.$route.query.org,
  12579. tType: this.$route.query.tType,
  12580. courseType: this.$route.query.type,
  12581. screenType: this.$route.query.screenType,
  12582. tcid2: this.$route.query.tcid,
  12583. tcid: "",
  12584. pptImgUrl: "",
  12585. pptImgUrl1: "",
  12586. commentText: "",
  12587. full: false,
  12588. sIsOpen: false,
  12589. IsLookOpen: false,
  12590. IsFollow: false,
  12591. pzDialog: false,
  12592. contentDialog: false,
  12593. mlDialog: false,
  12594. type: 1,
  12595. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12596. sentenceList1: [],
  12597. tableJson: [],
  12598. tableJsonO: [],
  12599. wordJson: [],
  12600. wordJsonO: [],
  12601. vedio: [],
  12602. text: [],
  12603. textList: [],
  12604. line: [],
  12605. lineList: [],
  12606. chapTools: [],
  12607. chapToolList: [],
  12608. file: [],
  12609. fileC: [],
  12610. vedioTime: [],
  12611. upToolImg: "",
  12612. preTime: 0,
  12613. rateList: {
  12614. ca: 0,
  12615. },
  12616. rateParams: [],
  12617. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12618. studyJuri: [
  12619. {
  12620. content: "",
  12621. cover: [],
  12622. upVedio: [],
  12623. upFile: [],
  12624. },
  12625. ],
  12626. isClose: 0,
  12627. plworkFile: [],
  12628. mr: require("../assets/vedioPic.png"),
  12629. word: require("../assets/icon/isWord.png"),
  12630. word2: require("../assets/icon/word2.png"),
  12631. video: require("../assets/icon/isVideo.png"),
  12632. noLikes: require("../assets/icon/comment/noLikes.png"),
  12633. likes: require("../assets/icon/comment/likes.png"),
  12634. scoreImg: require("../assets/score.png"),
  12635. courseDetail: {},
  12636. reply: "",
  12637. isSelect: false,
  12638. chapInfo: [],
  12639. chapInfoList: [],
  12640. taskCount: 0,
  12641. imgList: [],
  12642. noImgList: [],
  12643. pzList: [],
  12644. timeWorkList: [],
  12645. PlTextList: [
  12646. "Excellent!",
  12647. "nice!",
  12648. "很有创意!",
  12649. "还不错哦~",
  12650. "继续努力哦~",
  12651. ],
  12652. isClickNav: "",
  12653. navId: "",
  12654. playerOptions: {
  12655. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12656. autoplay: false, //如果true,浏览器准备好时开始回放。
  12657. muted: false, // 默认情况下将会消除任何音频。
  12658. loop: false, // 导致视频一结束就重新开始。
  12659. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12660. language: "zh-CN",
  12661. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12662. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12663. sources: [
  12664. {
  12665. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12666. src: "", //url地址require("../../assets/media/aaa.mp4")
  12667. },
  12668. ],
  12669. // poster: require("../../assets/tu31.png"), //你的封面地址
  12670. // poster: dataRes.imgUrl, //你的封面地址
  12671. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12672. controlBar: {
  12673. timeDivider: true, //当前时间和持续时间的分隔符
  12674. durationDisplay: true, //显示持续时间
  12675. remainingTimeDisplay: false, //是否显示剩余时间功能
  12676. fullscreenToggle: true, //全屏按钮
  12677. },
  12678. },
  12679. playerOptions1: {
  12680. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12681. autoplay: false, //如果true,浏览器准备好时开始回放。
  12682. muted: false, // 默认情况下将会消除任何音频。
  12683. loop: false, // 导致视频一结束就重新开始。
  12684. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12685. language: "zh-CN",
  12686. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12687. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12688. sources: [
  12689. {
  12690. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12691. src: "", //url地址require("../../assets/media/aaa.mp4")
  12692. },
  12693. ],
  12694. // poster: require("../../assets/tu31.png"), //你的封面地址
  12695. // poster: dataRes.imgUrl, //你的封面地址
  12696. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12697. controlBar: {
  12698. timeDivider: true, //当前时间和持续时间的分隔符
  12699. durationDisplay: true, //显示持续时间
  12700. remainingTimeDisplay: false, //是否显示剩余时间功能
  12701. fullscreenToggle: true, //全屏按钮
  12702. },
  12703. },
  12704. playerO: {},
  12705. noneBtnImg: false,
  12706. proVisible: false,
  12707. proVisible2: false,
  12708. progress: 0,
  12709. isFinishSize: 0,
  12710. isAllSize: 0,
  12711. questionAnswer: "",
  12712. answerQ: "", //问答标题
  12713. rateJson: [],
  12714. wbCount: 0,
  12715. wordCount: 0,
  12716. mindCount: 0,
  12717. askCount: 0,
  12718. noteCount: 0,
  12719. mindNetWorkCount: 0,
  12720. libraryCount: 0,
  12721. workCount: 0,
  12722. timeCount: 0,
  12723. answerCount: 0,
  12724. trainCount: 0,
  12725. evalCount: 0,
  12726. dialogImageUrl: "",
  12727. pictureDialog: false,
  12728. toolTypeList: [],
  12729. dialogVisible1: false,
  12730. dialogVisible2: false,
  12731. dialogVisible3: false,
  12732. dialogVisible6: false,
  12733. dialogVisible4: false,
  12734. isNoHomeWork: false,
  12735. dialogVisible5: false,
  12736. dialogVisible5Teacher: false,
  12737. dialogVisibleChoice: false,
  12738. dialogVisibleChoiceTeacher: false,
  12739. answerDialogVisible: false,
  12740. answerDialogVisibleTeacher: false,
  12741. juriVisible: false,
  12742. timeDialogVisible: false,
  12743. replyDialogVisible: false,
  12744. toolDialogVisible: false,
  12745. replyIndex: 0,
  12746. replyPid: "",
  12747. radio: [],
  12748. isAsk: false,
  12749. askJson: {
  12750. askCount: 1,
  12751. askTitle: "",
  12752. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12753. },
  12754. testJson: {},
  12755. videoType:0,
  12756. checkJson: [],
  12757. askList: [],
  12758. answerList: [],
  12759. navList: [],
  12760. addPzDialog: false,
  12761. pzConText: "",
  12762. worksStudent: [],
  12763. isCloseList: [],
  12764. workStudent: [],
  12765. groupStudent: [],
  12766. groupStudentUid: [],
  12767. noWorksS: [],
  12768. isWorksS: [],
  12769. noWorksStudent: [],
  12770. toolindex: 0,
  12771. toolDetailIndex: null,
  12772. groupIndex: 0,
  12773. workTypeB: false,
  12774. workTypeC: false,
  12775. isAnswer: false,
  12776. isHovered: false,
  12777. isHovered1: false,
  12778. isHovered2: false,
  12779. commentTagShow:0,
  12780. timer: null,
  12781. timer2: null,
  12782. opertimer: null,
  12783. showType: 0,
  12784. fileType: 0,
  12785. showPDF: false,
  12786. noteName: "",
  12787. evaJuri: [],
  12788. evalua: "",
  12789. eTitle: "",
  12790. eName: "",
  12791. eJson: {},
  12792. fid: "", //一级
  12793. sid: "", //二级
  12794. tid: "", //二级
  12795. typeMode: 1,
  12796. eJSONNum: 0,
  12797. Etype: 1,
  12798. data: {
  12799. meta: {
  12800. name: "example",
  12801. author: "dd@163.com",
  12802. version: "0.2",
  12803. },
  12804. format: "node_array",
  12805. data: [{ id: "root", isroot: true, topic: "" }],
  12806. },
  12807. fullDialogVisible: false,
  12808. fulltype: "",
  12809. fullUrl: "",
  12810. commentIndexJson: {},
  12811. Stbodywidth: 0,
  12812. ispzType: 0,
  12813. pzType: 1,
  12814. wScore: 0,
  12815. scoreDetail: "",
  12816. videoStart: false,
  12817. recorder: null,
  12818. groupJson: {},
  12819. islock: false,
  12820. groupJson2: {},
  12821. dialogVisibleGroup: false,
  12822. dialogVisibleGroup2: false,
  12823. updateGroupArray: [],
  12824. updateGroupUser: {},
  12825. deleteGroupUser: [],
  12826. deleteGroupArray: {},
  12827. checkChair: "",
  12828. checkDeleteGroup: [],
  12829. inviteCode: "",
  12830. courseGroupStudent: [],
  12831. courseGroupStudentUid: [],
  12832. courseGroup: {},
  12833. isGroup: false,
  12834. // toolIndex: null,
  12835. tool: {},
  12836. isWorkTool: [
  12837. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12838. ], //, 40
  12839. videoJson: {},
  12840. toolType: 0,
  12841. checktoolArray: [],
  12842. vChapterData: [],
  12843. isUpdateToolDetail: false,
  12844. isUpdateToolDetail1: false,
  12845. updateToolDetailInner: "",
  12846. checkboxList: [],
  12847. plIndex: "",
  12848. worksSName2: "",
  12849. worksSid: "",
  12850. wordCloudData: [],
  12851. isPickStudent: [],
  12852. pzStype: 1,
  12853. myAnList: {},
  12854. userMes:{},
  12855. downLoading: false,
  12856. greyType: false,
  12857. correctWord: [],
  12858. isUpdateText: "",
  12859. EnglishVoiceDialog: false,
  12860. englishVoiceJson: {},
  12861. englishVoiceJsonWork:[],
  12862. scoreList:{
  12863. listdata:[],
  12864. isScoreList:[],
  12865. },
  12866. classRoomHelperWidth: '85px',
  12867. orgArray:[],
  12868. oidArray:[],
  12869. toolsList:{
  12870. 58: "模拟驾驶",
  12871. 59: "路径搜索",
  12872. 60: "深度学习",
  12873. 10: "倒计时",
  12874. 65: "挑人",
  12875. 7: "思维网格",
  12876. 1: "电子白板",
  12877. 52: "文档",
  12878. 3: "思维导图",
  12879. 48: "表格",
  12880. 49: "学生分组",
  12881. 4: "卷调查",
  12882. 45: "选择题",
  12883. 15: "问答",
  12884. 16: "作业提交",
  12885. 50: "批量上传",
  12886. 41: "选择匹配",
  12887. 47: "排序",
  12888. 40: "个人评价",
  12889. 18: "训练平台",
  12890. 21: "AIoT Blockly",
  12891. 23: "AI Python",
  12892. 24: "AI Blockly",
  12893. 32: "源码编辑",
  12894. 57: "CocoPi",
  12895. 63: "海龟编程",
  12896. 28: "翻译",
  12897. 31: "数字画板",
  12898. 39: "GeoGebra",
  12899. 66: "公式编辑",
  12900. 67: "分子结构",
  12901. 68: "时间轴",
  12902. 69: "英语写作",
  12903. 70: "英语口语",
  12904. 25: "目标管理",
  12905. 26: "课程设计",
  12906. 62: "交互视频",
  12907. 71: "AI智能体"
  12908. },
  12909. splitScreenData:{
  12910. isOpen:false,
  12911. userId:"",
  12912. uid:"",
  12913. myUid:"",
  12914. loading:false,
  12915. behavior:null,
  12916. },
  12917. confirmOpenDig:false,
  12918. confirmOpenDigData:'',
  12919. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5']
  12920. };
  12921. },
  12922. methods: {
  12923. //查看应用中心作业
  12924. openCocoFlow(w){
  12925. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12926. },
  12927. getAIJ(){
  12928. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12929. let oid = res.data[0];
  12930. let org = res.data[1];
  12931. let oidArray = [];
  12932. let orgArray = [];
  12933. oid.forEach(i=>oidArray.push(i.oid))
  12934. org.forEach(i=>orgArray.push(i.oid))
  12935. this.orgArray = orgArray;
  12936. this.oidArray = oidArray;
  12937. })
  12938. },
  12939. insertMemorandum(_html){//保存行为操作
  12940. //variable
  12941. //btn
  12942. let params = [{
  12943. uid:this.userid,
  12944. courseId:this.id+(this.tcid2?this.tcid2:''),
  12945. content:_html
  12946. }]
  12947. console.log("👇👇")
  12948. console.log(params)
  12949. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12950. if(res.data==1){
  12951. console.log('保存操作成功')
  12952. }else{
  12953. console.log('保存操作失败')
  12954. }
  12955. }).catch(e=>{
  12956. console.log('保存操作失败')
  12957. console.log(e)
  12958. })
  12959. },
  12960. gx(){
  12961. this.$forceUpdate();
  12962. },
  12963. isUpdateCorrect(t,p){
  12964. if(this.greyType == false){
  12965. this.isUpdateText = t;
  12966. this.greyType = true;
  12967. }else{
  12968. if(p == 1){
  12969. this.newEnglishList.engText = this.isUpdateText;
  12970. }else if(p == 2){
  12971. this.oldEnglishJson1.engText = this.isUpdateText;
  12972. }else if(p == 3){
  12973. this.newEnglishList.engText = this.isUpdateText;
  12974. }else{
  12975. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12976. }
  12977. this.greyType = false
  12978. }
  12979. },
  12980. aiCorrect(t,p){
  12981. let aiText = "";
  12982. const loading = this.$loading.service({
  12983. background: "rgba(255, 255, 255)",
  12984. target: document.querySelectorAll(".loadingText")[0],
  12985. });
  12986. let param = {
  12987. model: "gpt-3.5-turbo",
  12988. temperature: 0,
  12989. max_tokens: 2048,
  12990. top_p: 1,
  12991. frequency_penalty: 0,
  12992. presence_penalty: 0,
  12993. messages: [
  12994. {
  12995. role: "user",
  12996. content:
  12997.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12998. },
  12999. ],
  13000. uid: this.userid,
  13001. stream: false,
  13002. };
  13003. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13004. (res) => {
  13005. if (
  13006. res.data.FunctionResponse &&
  13007. res.data.FunctionResponse.result &&
  13008. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13009. ) {
  13010. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13011. return;
  13012. }
  13013. aiText =
  13014. res.data.FunctionResponse.choices[0].message.content;
  13015. aiText = aiText.replace(/%/g,"%25");
  13016. // let w = "";
  13017. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13018. // for(var k = 0;k<a.length;k++){
  13019. // //diffWordsWithSpace
  13020. // if(a.length > 1){
  13021. // if(a[k].added == true){
  13022. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13023. // }else if(a[k].removed == true){
  13024. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13025. // }else{
  13026. // w += '<span>' + a[k].value + '</span>';
  13027. // }
  13028. // }else{
  13029. // if(p == 1){
  13030. // w = this.newEnglishList.engText;
  13031. // }else if(p == 2){
  13032. // w = this.oldEnglishJson1.engText;
  13033. // }else if(p == 3){
  13034. // w = this.newEnglishList.engText;
  13035. // }else{
  13036. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13037. // }
  13038. // }
  13039. // }
  13040. if(p == 1){
  13041. this.newEnglishList.engText = aiText;
  13042. }else if(p == 2){
  13043. this.oldEnglishJson1.engText = aiText;
  13044. }else if(p == 3){
  13045. this.newEnglishList.engText = aiText;
  13046. }else{
  13047. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13048. }
  13049. loading.close();
  13050. },
  13051. (err) => {
  13052. console.log(err);
  13053. loading.close();
  13054. }
  13055. );
  13056. },
  13057. addToolChoose() {
  13058. if (!this.checktoolArray.length) {
  13059. this.$message.error("请选择要添加的任务");
  13060. return;
  13061. }
  13062. if (
  13063. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13064. this.taskCount
  13065. ].toolChoose[0].tool.length
  13066. ) {
  13067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13068. this.taskCount
  13069. ].toolChoose[0].tool = this.checktoolArray;
  13070. } else {
  13071. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13072. this.taskCount
  13073. ].toolChoose.push({
  13074. tool: this.checktoolArray,
  13075. toolDetail: "",
  13076. toolType: 0,
  13077. askCount: 1,
  13078. askTitle: "",
  13079. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13080. });
  13081. }
  13082. let params = [
  13083. {
  13084. cid: this.id,
  13085. chapters: JSON.stringify(this.chapInfoList),
  13086. uid: this.userid,
  13087. unitIndex: this.courseType,
  13088. },
  13089. ];
  13090. this.ajax
  13091. .post(this.$store.state.api + "updateWorkNew4", params)
  13092. .then((res) => {
  13093. this.$message({
  13094. message: "添加成功",
  13095. type: "success",
  13096. });
  13097. this.checktoolArray = [];
  13098. this.getCourseDetail(2);
  13099. this.checkBz(
  13100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13101. this.taskCount
  13102. ].toolChoose.length - 1
  13103. );
  13104. this.toolDialogVisible = false;
  13105. this.refreshCourse();
  13106. this.$forceUpdate();
  13107. })
  13108. .catch((err) => {
  13109. console.error(err);
  13110. });
  13111. },
  13112. checkBz(index) {
  13113. this.isUpdateToolDetail = false;
  13114. this.$forceUpdate();
  13115. setTimeout(() => {
  13116. document.scrollingElement.scrollTop =
  13117. document.querySelectorAll(".filebox")[index].offsetTop +
  13118. document.querySelector(".student_body").offsetTop;
  13119. }, 500);
  13120. },
  13121. updateToolDetail(i, type) {
  13122. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13123. this.toolDetailIndex = i
  13124. this.isUpdateToolDetail1 = true;
  13125. setTimeout(() => {
  13126. this.updateToolDetailInner = JSON.parse(
  13127. JSON.stringify(
  13128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13129. this.taskCount
  13130. ].toolChoose[i].toolDetail
  13131. )
  13132. );
  13133. document.querySelector(".checkTextArea").focus();
  13134. }, 0);
  13135. } else if((this.isUpdateToolDetail1 && type != 2)){
  13136. // this.toolDetailIndex = i;
  13137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13138. this.taskCount
  13139. ].toolChoose[i].toolDetail = JSON.parse(
  13140. JSON.stringify(this.updateToolDetailInner)
  13141. );
  13142. let params = [
  13143. {
  13144. cid: this.id,
  13145. chapters: JSON.stringify(this.chapInfoList),
  13146. uid: this.userid,
  13147. unitIndex: this.courseType,
  13148. },
  13149. ];
  13150. this.ajax
  13151. .post(this.$store.state.api + "updateWorkNew4", params)
  13152. .then((res) => {
  13153. this.isUpdateToolDetail1 = false;
  13154. this.$message({
  13155. message: "修改成功",
  13156. type: "success",
  13157. });
  13158. this.toolDetailIndex = null;
  13159. this.updateToolDetailInner = "";
  13160. this.getCourseDetail(2);
  13161. this.$forceUpdate();
  13162. })
  13163. .catch((err) => {
  13164. console.error(err);
  13165. });
  13166. } else if((this.isUpdateToolDetail1 && type == 2)){
  13167. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13168. this.taskCount
  13169. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13170. JSON.stringify(this.updateToolDetailInner)
  13171. );
  13172. let params = [
  13173. {
  13174. cid: this.id,
  13175. chapters: JSON.stringify(this.chapInfoList),
  13176. uid: this.userid,
  13177. unitIndex: this.courseType,
  13178. },
  13179. ];
  13180. this.ajax
  13181. .post(this.$store.state.api + "updateWorkNew4", params)
  13182. .then((res) => {
  13183. this.$message({
  13184. message: "修改成功",
  13185. type: "success",
  13186. });
  13187. this.toolDetailIndex = i;
  13188. this.isUpdateToolDetail1 = true;
  13189. setTimeout(() => {
  13190. this.updateToolDetailInner = JSON.parse(
  13191. JSON.stringify(
  13192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13193. this.taskCount
  13194. ].toolChoose[i].toolDetail
  13195. )
  13196. );
  13197. document.querySelector(".checkTextArea").focus();
  13198. }, 0);
  13199. this.getCourseDetail(2);
  13200. this.$forceUpdate();
  13201. })
  13202. .catch((err) => {
  13203. console.error(err);
  13204. });
  13205. }
  13206. },
  13207. jumpGj(i, j, k, l) {
  13208. for (var z = 0; z < this.navList.length; z++) {
  13209. for (var q = 0; q < this.navList[z].task.length; q++) {
  13210. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13211. this.navList[z].task[q].tool[w].isTool = false;
  13212. }
  13213. }
  13214. }
  13215. this.navList[i].task[j].tool[k].isTool =
  13216. !this.navList[i].task[j].tool[k].isTool;
  13217. var a = document.scrollingElement;
  13218. this.navId = ""
  13219. let target = document.querySelector(`#gj${k}`);
  13220. if (target) {
  13221. // target.scrollIntoView(true);
  13222. // setTimeout(() => {
  13223. // a.scrollTop = a.scrollTop - 150;
  13224. // }, 0);
  13225. target.scrollIntoView();
  13226. setTimeout(()=>{
  13227. let scrollBody = document.querySelector('.body_student').parentElement
  13228. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13229. }, 0);
  13230. }
  13231. let flag = this.courseType == i;
  13232. let flag2 = this.taskCount == j
  13233. if (l) {
  13234. this.courseType = i;
  13235. // this.navId = l;
  13236. this.taskCount = j;
  13237. this.selectPz();
  13238. this.getHomeWork();
  13239. this.getCourseDetail(2);
  13240. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13241. if(flag){
  13242. if(flag2){
  13243. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13244. }else{
  13245. 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>`)
  13246. }
  13247. }else{
  13248. 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>`)
  13249. }
  13250. }
  13251. // var b = this.$refs["bz" + k][0];
  13252. // a.scrollTop = b.offsetTop;
  13253. },
  13254. addTools2(i) {
  13255. if (i == 4) {
  13256. // this.openTools2(4);
  13257. this.$message.error("暂未开放");
  13258. return;
  13259. }
  13260. if (i == 45) {
  13261. // this.openTools2(45);
  13262. this.$message.error("暂未开放");
  13263. return;
  13264. }
  13265. if (i == 47) {
  13266. // this.openTools2(47);
  13267. this.$message.error("暂未开放");
  13268. return;
  13269. }
  13270. if (i == 49) {
  13271. // this.openTools2(49);
  13272. this.$message.error("暂未开放");
  13273. return;
  13274. }
  13275. if (i == 62) {
  13276. // this.openTools(itemTaskIndex, 62, toolIndex);
  13277. this.$message.error("暂未开放");
  13278. return;
  13279. }
  13280. if (i == 15) {
  13281. // this.openTools(itemTaskIndex, 15, toolIndex);
  13282. this.$message.error("暂未开放");
  13283. return;
  13284. }
  13285. if (i == 40) {
  13286. // this.openTools(itemTaskIndex, 40, toolIndex);
  13287. this.$message.error("暂未开放");
  13288. return;
  13289. }
  13290. if (i == 41) {
  13291. // this.openTools(itemTaskIndex, 41, toolIndex);
  13292. this.$message.error("暂未开放");
  13293. return;
  13294. }
  13295. if (i == 42) {
  13296. // this.openTools(itemTaskIndex, 42, toolIndex);
  13297. this.$message.error("暂未开放");
  13298. return;
  13299. }
  13300. if (this.checktoolArray.length > 0) {
  13301. if (this.checktoolArray.indexOf(i) != -1) {
  13302. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13303. } else {
  13304. this.checktoolArray = [];
  13305. this.checktoolArray.push(i);
  13306. }
  13307. } else {
  13308. this.checktoolArray.push(i);
  13309. }
  13310. this.$forceUpdate();
  13311. },
  13312. jump() {
  13313. window.topU.postMessage({ tools: "43" }, "*");
  13314. },
  13315. getUpdateMore(f, checkboxList, searchTN, index) {
  13316. this.dialogVisibleMember = f;
  13317. this.checkboxList = checkboxList;
  13318. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13319. this.plIndex = index;
  13320. },
  13321. setPlname(a) {
  13322. if (this.plworkFile.length) {
  13323. this.plworkFile[this.plIndex].username = a;
  13324. } else {
  13325. this.worksSName = a;
  13326. }
  13327. this.dialogVisibleMember = false;
  13328. },
  13329. previewImg(url,w=null) {
  13330. this.$hevueImgPreview(url);
  13331. if(w){
  13332. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13333. }
  13334. },
  13335. checkImg(list) {
  13336. if (!list.length) {
  13337. return;
  13338. }
  13339. this.$hevueImgPreview({
  13340. multiple: true, // 开启多图预览模式
  13341. imgList: list, // 需要预览的多图数组
  13342. });
  13343. },
  13344. change(val) {
  13345. console.log(val);
  13346. },
  13347. goTo(path) {
  13348. this.$router.push(path);
  13349. },
  13350. handlePictureCardPreview(url) {
  13351. this.dialogImageUrl = url;
  13352. this.pictureDialog = true;
  13353. },
  13354. clean(type) {
  13355. if (type == 1) {
  13356. this.studyJuri[0].cover.splice(0, 1);
  13357. } else if (type == 2) {
  13358. this.studyJuri[0].upVedio.splice(0, 1);
  13359. } else {
  13360. this.studyJuri[0].upFile.splice(0, 1);
  13361. }
  13362. },
  13363. clean2(index) {
  13364. this.plworkFile.splice(index, 1);
  13365. },
  13366. handleClose(done) {
  13367. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13368. this.videoDetail.sources[0].src = "";
  13369. }
  13370. this.commentIndexJson = {};
  13371. done();
  13372. },
  13373. fullTools() {
  13374. this.full = !this.full;
  13375. },
  13376. imgChange(file, fileList, type) {
  13377. if (type == 1) {
  13378. var _tmp = this.studyJuri[0].cover;
  13379. } else if (type == 2) {
  13380. var _tmp = this.studyJuri[0].upVedio;
  13381. } else {
  13382. var _tmp = this.studyJuri[0].upFile;
  13383. }
  13384. this.noneBtnImg = _tmp.length >= 1;
  13385. },
  13386. setContent(bool) {
  13387. this.contentDialog = bool;
  13388. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13389. document.querySelector(".workd_media").style.height = "650px";
  13390. } else if (document.querySelector(".workd_media")) {
  13391. document.querySelector(".workd_media").style.height = "auto";
  13392. }
  13393. },
  13394. setContent2(bool) {
  13395. this.mlDialog = bool;
  13396. if (
  13397. bool &&
  13398. this.contentDialog &&
  13399. document.querySelector(".workd_media")
  13400. ) {
  13401. document.querySelector(".workd_media").style.height = "650px";
  13402. } else if (document.querySelector(".workd_media")) {
  13403. document.querySelector(".workd_media").style.height = "auto";
  13404. }
  13405. this.$forceUpdate();
  13406. },
  13407. openToolAll() {
  13408. this.toolDialogVisible = true;
  13409. },
  13410. addImg(e) {
  13411. var el = e.currentTarget;
  13412. // this.$message.success('触发上传')
  13413. el.getElementsByTagName("input")[0].click();
  13414. e.target.value = "";
  13415. },
  13416. addSelectAnswer() {
  13417. let params = [
  13418. {
  13419. uid: this.userid,
  13420. cid: this.id,
  13421. stage: this.courseType,
  13422. task: this.taskCount,
  13423. tool: this.toolindex,
  13424. content: this.selectAnswer.answer,
  13425. type: 7,
  13426. },
  13427. ];
  13428. this.ajax
  13429. .post(this.$store.state.api + "addCourseWorks", params)
  13430. .then((res) => {
  13431. this.$message({
  13432. message: "提交成功",
  13433. type: "success",
  13434. });
  13435. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13436. this.dialogVisibleSelect = false;
  13437. // this.selectAnswer = {};
  13438. this.selectSWorks();
  13439. this.selectStudent();
  13440. })
  13441. .catch((err) => {
  13442. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13443. this.$message.error("提交失败");
  13444. console.error(err);
  13445. });
  13446. },
  13447. addSelectAnswerTeacher() {
  13448. let params = [
  13449. {
  13450. uid: this.sStudent.userid,
  13451. cid: this.id,
  13452. stage: this.courseType,
  13453. task: this.taskCount,
  13454. tool: this.toolindex,
  13455. content: this.selectAnswer.answer,
  13456. type: 7,
  13457. },
  13458. ];
  13459. this.ajax
  13460. .post(this.$store.state.api + "addCourseWorks", params)
  13461. .then((res) => {
  13462. this.$message({
  13463. message: "提交成功",
  13464. type: "success",
  13465. });
  13466. this.dialogVisibleSelectTeacher = false;
  13467. // this.selectAnswer = {};
  13468. this.selectSWorks();
  13469. this.selectStudent();
  13470. })
  13471. .catch((err) => {
  13472. this.$message.error("提交失败");
  13473. console.error(err);
  13474. });
  13475. },
  13476. addSenWorks() {
  13477. for (var i = 0; i < this.sentenceList.length; i++) {
  13478. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13479. if (
  13480. this.sentenceList[i].chooseSenList[j] == undefined ||
  13481. this.sentenceList[i].chooseSenList[j] == ""
  13482. ) {
  13483. this.$message.error("请将答案填写完整!");
  13484. return;
  13485. }
  13486. }
  13487. }
  13488. let params = [
  13489. {
  13490. uid: this.userid,
  13491. cid: this.id,
  13492. stage: this.courseType,
  13493. task: this.taskCount,
  13494. tool: this.toolindex,
  13495. content: JSON.stringify(this.sentenceList),
  13496. type: 9,
  13497. },
  13498. ];
  13499. this.ajax
  13500. .post(this.$store.state.api + "addCourseWorks", params)
  13501. .then((res) => {
  13502. this.$message({
  13503. message: "提交成功",
  13504. type: "success",
  13505. });
  13506. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13507. this.dialogVisibleSentence = false;
  13508. // this.selectAnswer = {};
  13509. this.selectSWorks();
  13510. this.selectStudent();
  13511. })
  13512. .catch((err) => {
  13513. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13514. this.$message.error("提交失败");
  13515. console.error(err);
  13516. });
  13517. },
  13518. addSenWorksTeacher() {
  13519. for (var i = 0; i < this.sentenceList.length; i++) {
  13520. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13521. if (
  13522. this.sentenceList[i].chooseSenList[j] == undefined ||
  13523. this.sentenceList[i].chooseSenList[j] == ""
  13524. ) {
  13525. this.$message.error("请将答案填写完整!");
  13526. return;
  13527. }
  13528. }
  13529. }
  13530. let params = [
  13531. {
  13532. uid: this.sStudent.userid,
  13533. cid: this.id,
  13534. stage: this.courseType,
  13535. task: this.taskCount,
  13536. tool: this.toolindex,
  13537. content: JSON.stringify(this.sentenceList),
  13538. type: 9,
  13539. },
  13540. ];
  13541. this.ajax
  13542. .post(this.$store.state.api + "addCourseWorks", params)
  13543. .then((res) => {
  13544. this.$message({
  13545. message: "提交成功",
  13546. type: "success",
  13547. });
  13548. this.dialogVisibleSentenceTeacher = false;
  13549. // this.selectAnswer = {};
  13550. this.selectSWorks();
  13551. this.selectStudent();
  13552. })
  13553. .catch((err) => {
  13554. this.$message.error("提交失败");
  13555. console.error(err);
  13556. });
  13557. },
  13558. returnTableText() {
  13559. this.$confirm("确定还原此模板吗?", "提示", {
  13560. confirmButtonText: "确定",
  13561. cancelButtonText: "取消",
  13562. type: "warning",
  13563. })
  13564. .then(() => {
  13565. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13566. })
  13567. .catch(() => {});
  13568. },
  13569. addTableWorks() {
  13570. let params = [
  13571. {
  13572. uid: this.userid,
  13573. cid: this.id,
  13574. stage: this.courseType,
  13575. task: this.taskCount,
  13576. tool: this.toolindex,
  13577. content: JSON.stringify(this.tableJson),
  13578. type: 10,
  13579. },
  13580. ];
  13581. this.ajax
  13582. .post(this.$store.state.api + "addCourseWorks", params)
  13583. .then((res) => {
  13584. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13585. this.$message({
  13586. message: "提交成功",
  13587. type: "success",
  13588. });
  13589. this.dialogVisibleTable = false;
  13590. // this.selectAnswer = {};
  13591. this.selectSWorks();
  13592. this.selectStudent();
  13593. })
  13594. .catch((err) => {
  13595. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13596. this.$message.error("提交失败");
  13597. console.error(err);
  13598. });
  13599. },
  13600. tableRowClassName({ row, rowIndex }) {
  13601. if ((rowIndex + 1) % 2 === 0) {
  13602. return "even_row";
  13603. } else {
  13604. return "";
  13605. }
  13606. },
  13607. addTableWorksTeacher() {
  13608. let params = [
  13609. {
  13610. uid: this.sStudent.userid,
  13611. cid: this.id,
  13612. stage: this.courseType,
  13613. task: this.taskCount,
  13614. tool: this.toolindex,
  13615. content: JSON.stringify(this.tableJson),
  13616. type: 10,
  13617. },
  13618. ];
  13619. this.ajax
  13620. .post(this.$store.state.api + "addCourseWorks", params)
  13621. .then((res) => {
  13622. this.$message({
  13623. message: "提交成功",
  13624. type: "success",
  13625. });
  13626. this.dialogVisibleTableTeacher = false;
  13627. // this.selectAnswer = {};
  13628. this.selectSWorks();
  13629. this.selectStudent();
  13630. })
  13631. .catch((err) => {
  13632. this.$message.error("提交失败");
  13633. console.error(err);
  13634. });
  13635. },
  13636. returnWordText() {
  13637. this.$confirm("确定还原此模板吗?", "提示", {
  13638. confirmButtonText: "确定",
  13639. cancelButtonText: "取消",
  13640. type: "warning",
  13641. })
  13642. .then(() => {
  13643. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13644. })
  13645. .catch(() => {});
  13646. },
  13647. addWordWorks() {
  13648. let params = [
  13649. {
  13650. uid: this.userid,
  13651. cid: this.id,
  13652. stage: this.courseType,
  13653. task: this.taskCount,
  13654. tool: this.toolindex,
  13655. content: JSON.stringify(this.wordJson),
  13656. type: 13,
  13657. atool: 52,
  13658. },
  13659. ];
  13660. this.ajax
  13661. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13662. .then((res) => {
  13663. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13664. this.$message({
  13665. message: "提交成功",
  13666. type: "success",
  13667. });
  13668. this.dialogVisibleWord = false;
  13669. // this.selectAnswer = {};
  13670. this.selectSWorks();
  13671. this.selectStudent();
  13672. })
  13673. .catch((err) => {
  13674. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13675. this.$message.error("提交失败");
  13676. console.error(err);
  13677. });
  13678. },
  13679. addWordWorksTeacher() {
  13680. let params = [
  13681. {
  13682. uid: this.sStudent.userid,
  13683. cid: this.id,
  13684. stage: this.courseType,
  13685. task: this.taskCount,
  13686. tool: this.toolindex,
  13687. content: JSON.stringify(this.wordJson),
  13688. type: 13,
  13689. atool: 52,
  13690. },
  13691. ];
  13692. this.ajax
  13693. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13694. .then((res) => {
  13695. this.$message({
  13696. message: "提交成功",
  13697. type: "success",
  13698. });
  13699. this.dialogVisibleWordTeacher = false;
  13700. // this.selectAnswer = {};
  13701. this.selectSWorks();
  13702. this.selectStudent();
  13703. })
  13704. .catch((err) => {
  13705. this.$message.error("提交失败");
  13706. console.error(err);
  13707. });
  13708. },
  13709. addCourseWorks(i) {
  13710. var typesql;
  13711. if (this.fileType === 0) {
  13712. typesql = 1;
  13713. } else if (this.fileType === 1) {
  13714. typesql = 4;
  13715. } else if (this.fileType === 2) {
  13716. typesql = 5;
  13717. } else if (this.fileType === 3) {
  13718. typesql = 12;
  13719. }
  13720. if (!this.studyJuri[0].cover[0].url) {
  13721. this.$message.error("请上传文件");
  13722. return;
  13723. }
  13724. let params = [
  13725. {
  13726. uid: this.userid,
  13727. cid: this.id,
  13728. stage: this.courseType,
  13729. task: i,
  13730. tool: this.toolindex,
  13731. content: this.studyJuri[0].cover[0].url,
  13732. type: typesql,
  13733. },
  13734. ];
  13735. this.ajax
  13736. .post(this.$store.state.api + "addCourseWorksR", params)
  13737. .then((res) => {
  13738. this.$message({
  13739. message: "提交成功",
  13740. type: "success",
  13741. });
  13742. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13743. this.studyJuri[0].cover = [];
  13744. this.dialogVisible = false;
  13745. this.getCourseDetail(2);
  13746. })
  13747. .catch((err) => {
  13748. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13749. this.$message.error("提交失败");
  13750. console.error(err);
  13751. });
  13752. },
  13753. addCourseWorksPl(i) {
  13754. let _files = this.plworkFile;
  13755. var c = 1;
  13756. for (var k = 0; k < _files.length; k++) {
  13757. if (!_files[k].username) {
  13758. c = 2;
  13759. }
  13760. }
  13761. if (c == 2) {
  13762. this.$message.error("请填写学生姓名");
  13763. return;
  13764. }
  13765. let params = [
  13766. {
  13767. ateacher: this.userid,
  13768. cid: this.id,
  13769. stage: this.courseType,
  13770. task: i,
  13771. tool: this.toolindex,
  13772. content: JSON.stringify(_files),
  13773. },
  13774. ];
  13775. this.ajax
  13776. .post(this.$store.state.api + "addCourseWorksPl", params)
  13777. .then((res) => {
  13778. this.$message({
  13779. message: "提交成功",
  13780. type: "success",
  13781. });
  13782. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13783. this.plworkFile = [];
  13784. this.dialogVisiblePl = false;
  13785. this.getCourseDetail(2);
  13786. })
  13787. .catch((err) => {
  13788. this.$message.error("提交失败");
  13789. console.error(err);
  13790. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13791. });
  13792. },
  13793. addCourseWorks2(i) {
  13794. var typesql;
  13795. if (this.fileType === 0) {
  13796. typesql = 0;
  13797. } else if (this.fileType === 1) {
  13798. typesql = 1;
  13799. } else if (this.fileType === 2) {
  13800. typesql = 3;
  13801. } else if (this.fileType === 3) {
  13802. typesql = 12;
  13803. }
  13804. if (!this.studyJuri[0].cover[0].url) {
  13805. this.$message.error("请上传文件");
  13806. return;
  13807. }
  13808. let params = [
  13809. {
  13810. uid: this.userid,
  13811. cid: this.id,
  13812. stage: this.courseType,
  13813. task: i,
  13814. tool: this.toolindex,
  13815. content: JSON.stringify({
  13816. type: typesql,
  13817. groupIndex: this.groupIndex,
  13818. url: this.studyJuri[0].cover[0].url,
  13819. }),
  13820. type: 11,
  13821. atool: 49,
  13822. text: "",
  13823. },
  13824. ];
  13825. this.ajax
  13826. .post(this.$store.state.api + "addCourseWorks5", params)
  13827. .then((res) => {
  13828. this.$message({
  13829. message: "提交成功",
  13830. type: "success",
  13831. });
  13832. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13833. type: typesql,
  13834. groupIndex: this.groupIndex,
  13835. url: this.studyJuri[0].cover[0].url,
  13836. }),type: "course_tool_sub" }, "success")
  13837. this.studyJuri[0].cover = [];
  13838. this.dialogVisibleGroupWork = false;
  13839. this.getCourseDetail(2);
  13840. })
  13841. .catch((err) => {
  13842. this.$message.error("提交失败");
  13843. console.error(err);
  13844. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13845. type: typesql,
  13846. groupIndex: this.groupIndex,
  13847. url: this.studyJuri[0].cover[0].url,
  13848. }),type: "course_tool_sub" }, err)
  13849. });
  13850. },
  13851. addEnglishWork() {
  13852. this.myAnList = this.$refs['engJson'].myAnswerList;
  13853. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13854. this.$message.error("请输入作文标题和正文!");
  13855. return;
  13856. }
  13857. let params = [
  13858. {
  13859. uid: this.userid,
  13860. cid: this.id,
  13861. stage: this.courseType,
  13862. task: this.taskCount,
  13863. tool: this.englishToolIndex,
  13864. content: JSON.stringify(this.myAnList),
  13865. type: 16,
  13866. atool: 69,
  13867. text: "",
  13868. },
  13869. ];
  13870. this.ajax
  13871. .post(this.$store.state.api + "addCourseWorks5", params)
  13872. .then((res) => {
  13873. this.$message({
  13874. message: "提交成功",
  13875. type: "success",
  13876. });
  13877. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13878. data: JSON.stringify(this.myAnList),
  13879. type: "course_tool_sub" }, "success")
  13880. this.myAnList = {};
  13881. this.englishList = {};
  13882. this.englishToolIndex = 0;
  13883. this.engDialogVisible = false;
  13884. this.selectSWorks();
  13885. this.selectStudent();
  13886. })
  13887. .catch((err) => {
  13888. this.$message.error("提交失败");
  13889. console.error(err);
  13890. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13891. data: JSON.stringify(this.myAnList),
  13892. type: "course_tool_sub" }, err)
  13893. });
  13894. },
  13895. addCourseWorksGong(i, data, tool) {
  13896. let params = [
  13897. {
  13898. uid: this.userid,
  13899. cid: this.id,
  13900. stage: this.courseType,
  13901. task: this.taskCount,
  13902. tool: i,
  13903. content: data,
  13904. type: 12,
  13905. atool: tool,
  13906. text: "",
  13907. },
  13908. ];
  13909. this.ajax
  13910. .post(this.$store.state.api + "addCourseWorks5", params)
  13911. .then((res) => {
  13912. this.$message({
  13913. message: "提交成功",
  13914. type: "success",
  13915. });
  13916. this.studyJuri[0].cover = [];
  13917. this.selectSWorks();
  13918. this.selectStudent();
  13919. })
  13920. .catch((err) => {
  13921. this.$message.error("提交失败");
  13922. console.error(err);
  13923. });
  13924. },
  13925. addCourseWorksGongTeacher(i, data, tool) {
  13926. let params = [
  13927. {
  13928. uid: this.sStudent.userid,
  13929. cid: this.id,
  13930. stage: this.courseType,
  13931. task: this.taskCount,
  13932. tool: i,
  13933. content: data,
  13934. type: 12,
  13935. atool: tool,
  13936. text: "",
  13937. },
  13938. ];
  13939. this.ajax
  13940. .post(this.$store.state.api + "addCourseWorks5", params)
  13941. .then((res) => {
  13942. this.$message({
  13943. message: "提交成功",
  13944. type: "success",
  13945. });
  13946. this.studyJuri[0].cover = [];
  13947. this.dialogVisibleWorks = false;
  13948. this.selectSWorks();
  13949. this.selectStudent();
  13950. })
  13951. .catch((err) => {
  13952. this.$message.error("提交失败");
  13953. console.error(err);
  13954. });
  13955. },
  13956. addCourseWorksGongPl(i, data, tool, type) {
  13957. let params = [
  13958. {
  13959. uid: this.sStudent.userid,
  13960. cid: this.id,
  13961. stage: this.courseType,
  13962. task: this.taskCount,
  13963. tool: i,
  13964. content: data,
  13965. type: type,
  13966. atool: tool,
  13967. text: "",
  13968. },
  13969. ];
  13970. this.ajax
  13971. .post(this.$store.state.api + "addCourseWorks5", params)
  13972. .then((res) => {
  13973. this.$message({
  13974. message: "提交成功",
  13975. type: "success",
  13976. });
  13977. this.studyJuri[0].cover = [];
  13978. this.dialogVisibleWorks = false;
  13979. this.selectSWorks();
  13980. this.selectStudent();
  13981. })
  13982. .catch((err) => {
  13983. this.$message.error("提交失败");
  13984. console.error(err);
  13985. });
  13986. },
  13987. addCourseWorksTeacher(i) {
  13988. var typesql;
  13989. if (this.sTool == 32) {
  13990. this.addCourseWorksGongTeacher(
  13991. this.toolindex,
  13992. this.studyJuri[0].cover[0].url,
  13993. this.sTool
  13994. );
  13995. return;
  13996. }
  13997. if (this.fileType === 0) {
  13998. typesql = 1;
  13999. } else if (this.fileType === 1) {
  14000. typesql = 4;
  14001. } else if (this.fileType === 2) {
  14002. typesql = 5;
  14003. } else if (this.fileType === 3) {
  14004. typesql = 12;
  14005. }
  14006. if (this.sTool == 50) {
  14007. this.addCourseWorksGongPl(
  14008. this.toolindex,
  14009. this.studyJuri[0].cover[0].url,
  14010. this.sTool,
  14011. typesql
  14012. );
  14013. return;
  14014. }
  14015. if (!this.studyJuri[0].cover[0].url) {
  14016. this.$message.error("请上传文件");
  14017. return;
  14018. }
  14019. let params = [
  14020. {
  14021. uid: this.sStudent.userid,
  14022. cid: this.id,
  14023. stage: this.courseType,
  14024. task: i,
  14025. tool: this.toolindex,
  14026. content: this.studyJuri[0].cover[0].url,
  14027. type: typesql,
  14028. ateacher: this.userid,
  14029. },
  14030. ];
  14031. this.ajax
  14032. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14033. .then((res) => {
  14034. this.$message({
  14035. message: "提交成功",
  14036. type: "success",
  14037. });
  14038. this.studyJuri[0].cover = [];
  14039. this.dialogVisibleWorks = false;
  14040. this.getCourseDetail(2);
  14041. })
  14042. .catch((err) => {
  14043. this.$message.error("提交失败");
  14044. console.error(err);
  14045. });
  14046. },
  14047. selectUploadStudent(type) {
  14048. const loading = this.$loading.service({
  14049. background: "rgba(255, 255, 255, 0.7)",
  14050. target: document.body,
  14051. });
  14052. let params = {
  14053. cid: this.uploadCid,
  14054. oid: this.oid,
  14055. cn: "",
  14056. };
  14057. this.ajax
  14058. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14059. .then((res) => {
  14060. loading.close();
  14061. var studentK = [];
  14062. if (this.isWorksS[this.toolindex].length > 0) {
  14063. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14064. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14065. }
  14066. studentK = studentK.join(",");
  14067. }
  14068. this.uploadStudentJuri = res.data[0].filter((el) => {
  14069. return studentK.indexOf(el.userid) == -1;
  14070. });
  14071. if (this.worksSName && this.worksSid) {
  14072. this.uploadStudentJuri.push({
  14073. userid: this.worksSid,
  14074. name: this.worksSName,
  14075. });
  14076. }
  14077. if (type == 1) {
  14078. this.plworkFile = [];
  14079. this.dialogVisibleSname = true;
  14080. } else if (type == 2) {
  14081. this.dialogVisiblePl = true;
  14082. }
  14083. })
  14084. .catch((err) => {
  14085. loading.close();
  14086. console.error(err);
  14087. });
  14088. },
  14089. selectPickStudent() {
  14090. const loading = this.$loading.service({
  14091. background: "rgba(255, 255, 255, 0.7)",
  14092. target: document.body,
  14093. });
  14094. let params = {
  14095. cid: this.uploadCid,
  14096. oid: this.oid,
  14097. cn: "",
  14098. };
  14099. this.ajax
  14100. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14101. .then((res) => {
  14102. loading.close();
  14103. this.uploadStudentJuri = res.data[0];
  14104. this.dialogVisiblePickPeople = true;
  14105. })
  14106. .catch((err) => {
  14107. loading.close();
  14108. console.error(err);
  14109. });
  14110. },
  14111. arrayToArray(arrayo, arrayt) {
  14112. let array1 = arrayo;
  14113. let array2 = arrayt;
  14114. let commonElements = [];
  14115. for (let i = 0; i < array1.length; i++) {
  14116. for (let j = 0; j < array2.length; j++) {
  14117. if (array1[i] === array2[j]) {
  14118. commonElements.push(array1[i]);
  14119. }
  14120. }
  14121. }
  14122. return commonElements;
  14123. },
  14124. selectWorksStudent() {
  14125. let params = {
  14126. oid: this.oid,
  14127. cid: this.courseDetail.juri,
  14128. };
  14129. this.ajax
  14130. .get(this.$store.state.api + "selectWorksStudent", params)
  14131. .then((res) => {
  14132. var a = res.data[0];
  14133. for (var i = 0; i < this.isWorksS.length; i++) {
  14134. this.noWorksS[i] = [];
  14135. var studentK = [];
  14136. if (this.isWorksS[i].length > 0) {
  14137. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14138. studentK.push(this.isWorksS[i][z].uid);
  14139. }
  14140. studentK = studentK.join(",");
  14141. for (var j = 0; j < a.length; j++) {
  14142. if (studentK.indexOf(a[j].userid) == -1) {
  14143. if (this.tcid) {
  14144. // a[j].classid.indexOf(this.tcid) != -1
  14145. if (
  14146. this.arrayToArray(
  14147. a[j].classid.split(","),
  14148. this.tcid.split(",")
  14149. ).length
  14150. ) {
  14151. this.noWorksS[i].push({
  14152. student: a[j].name,
  14153. userid: a[j].userid,
  14154. });
  14155. }
  14156. } else {
  14157. this.noWorksS[i].push({
  14158. student: a[j].name,
  14159. userid: a[j].userid,
  14160. });
  14161. }
  14162. }
  14163. }
  14164. } else {
  14165. for (var k = 0; k < a.length; k++) {
  14166. if (this.tcid) {
  14167. if (
  14168. this.arrayToArray(
  14169. a[k].classid.split(","),
  14170. this.tcid.split(",")
  14171. ).length
  14172. ) {
  14173. this.noWorksS[i].push({
  14174. student: a[k].name,
  14175. userid: a[k].userid,
  14176. });
  14177. }
  14178. } else {
  14179. this.noWorksS[i].push({
  14180. student: a[k].name,
  14181. userid: a[k].userid,
  14182. });
  14183. }
  14184. }
  14185. }
  14186. }
  14187. this.$forceUpdate();
  14188. if (
  14189. Object.keys(this.commentDetail).length &&
  14190. Object.keys(this.commentIndexJson).length &&
  14191. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14192. ) {
  14193. let a = 1;
  14194. let c = this.commentIndexJson;
  14195. if (
  14196. this.commentIndexJson.gindex ||
  14197. this.commentIndexJson.gindex === 0
  14198. ) {
  14199. for (
  14200. var i = 0;
  14201. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14202. i++
  14203. ) {
  14204. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14205. groupA: for (var k = 0; k < _el.length; k++) {
  14206. let el = _el[k];
  14207. if (el.wid == this.commentDetail.wid) {
  14208. a = 2;
  14209. this.commentOther(
  14210. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14211. this.commentIndexJson.toolIndex,
  14212. k,
  14213. this.commentIndexJson.gindex
  14214. );
  14215. break groupA;
  14216. }
  14217. }
  14218. }
  14219. if (a === 1) {
  14220. this.commentDetail = [];
  14221. this.commentIndexJson = {};
  14222. this.commentDialogVisible = false;
  14223. this.$message("此作业已被删除");
  14224. }
  14225. } else {
  14226. if (this.isGroup && this.commentIndexJson.gid) {
  14227. groupA: for (
  14228. var i = 0;
  14229. i < this.courseGroup.group.length;
  14230. i++
  14231. ) {
  14232. let _group = this.courseGroup.group[i];
  14233. if (_group.id == this.commentIndexJson.gid) {
  14234. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14235. for (var k = 0; k < _el2.length; k++) {
  14236. let el2 = _el2[k];
  14237. if (el2.wid == this.commentDetail.wid) {
  14238. a = 2;
  14239. this.commentOther(
  14240. _el2[k],
  14241. this.commentIndexJson.toolIndex,
  14242. k,
  14243. null,
  14244. this.commentIndexJson.gid
  14245. );
  14246. break groupA;
  14247. }
  14248. }
  14249. }
  14250. }
  14251. }
  14252. if (a == 1) {
  14253. for (
  14254. var i = 0;
  14255. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14256. i++
  14257. ) {
  14258. let el =
  14259. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14260. if (el.wid == this.commentDetail.wid) {
  14261. a = 2;
  14262. this.commentOther(
  14263. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14264. this.commentIndexJson.toolIndex,
  14265. i
  14266. );
  14267. break;
  14268. }
  14269. }
  14270. }
  14271. if (a === 1) {
  14272. this.commentDetail = [];
  14273. this.commentIndexJson = {};
  14274. this.commentDialogVisible = false;
  14275. this.$message("此作业已被删除");
  14276. }
  14277. }
  14278. }
  14279. })
  14280. .catch((err) => {
  14281. console.error(err);
  14282. });
  14283. },
  14284. selectStudent() {
  14285. //学生查看自己作业
  14286. let params = {
  14287. uid: this.userid,
  14288. cid: this.id,
  14289. s: this.courseType,
  14290. t: this.taskCount,
  14291. };
  14292. this.ajax
  14293. .get(this.$store.state.api + "selectStudentWorks", params)
  14294. .then((res) => {
  14295. var a =
  14296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14297. this.taskCount
  14298. ].toolChoose;
  14299. var b = res.data[0];
  14300. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14301. var y = [
  14302. "AVI",
  14303. "NAVI",
  14304. "MPEG",
  14305. "ASF",
  14306. "MOV",
  14307. "WMV",
  14308. "3GP",
  14309. "RM",
  14310. "RMVB",
  14311. "FLV",
  14312. "F4V",
  14313. "H.264",
  14314. "H.265",
  14315. "REAL VIDEO",
  14316. "MKV",
  14317. "WebM",
  14318. "HDDVD",
  14319. "MP4",
  14320. "MPG",
  14321. "M4V",
  14322. "MGV",
  14323. "OGV",
  14324. "QTM",
  14325. "STR",
  14326. "AMC",
  14327. "DVX",
  14328. "EVO",
  14329. "DAT",
  14330. "OGG",
  14331. "OGM",
  14332. ];
  14333. for (var i = 0; i < a.length; i++) {
  14334. this.workStudent[i] = [];
  14335. for (var j = 0; j < b.length; j++) {
  14336. if (i == b[j].tool) {
  14337. if (
  14338. (b[j].type == 1 ||
  14339. b[j].type == 4 ||
  14340. b[j].type == 5 ||
  14341. b[j].type == 6 ||
  14342. b[j].type == 12 ||
  14343. b[j].type == 7) &&
  14344. a[i].tool[0] != 15 &&
  14345. a[i].tool[0] != 4 &&
  14346. a[i].tool[0] != 45 &&
  14347. a[i].tool[0] != 50 &&
  14348. a[i].tool[0] != 32 &&
  14349. a[i].tool[0] != 57 &&
  14350. a[i].tool[0] != 52 &&
  14351. a[i].tool[0] != 69
  14352. ) {
  14353. if (
  14354. c.indexOf(
  14355. b[j].content
  14356. .split(".")
  14357. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14358. ) != -1 &&
  14359. a[i].tool[0] == 16 &&
  14360. b[j].atool != 50
  14361. ) {
  14362. this.workStudent[i].push({
  14363. works: b[j].content,
  14364. sName: b[j].name,
  14365. score: b[j].score,
  14366. img: b[j].img,
  14367. type: 1,
  14368. time: b[j].time,
  14369. userid: b[j].userid,
  14370. wid: b[j].id,
  14371. });
  14372. } else if (
  14373. y.indexOf(
  14374. b[j].content
  14375. .split(".")
  14376. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14377. ) != -1 &&
  14378. a[i].tool[0] == 16 &&
  14379. b[j].atool != 50
  14380. ) {
  14381. this.workStudent[i].push({
  14382. userid: b[j].userid,
  14383. wid: b[j].id,
  14384. works: b[j].content,
  14385. sName: b[j].name,
  14386. score: b[j].score,
  14387. img: b[j].img,
  14388. type: 3,
  14389. time: b[j].time,
  14390. });
  14391. } else if (b[j].type == 6 && b[j].atool != 50) {
  14392. this.workStudent[i].push({
  14393. userid: b[j].userid,
  14394. wid: b[j].id,
  14395. works: b[j].content,
  14396. sName: b[j].name,
  14397. score: b[j].score,
  14398. img: b[j].img,
  14399. type: 4,
  14400. time: b[j].time,
  14401. });
  14402. } else if (b[j].type == 7 && b[j].atool != 50) {
  14403. this.workStudent[i].push({
  14404. userid: b[j].userid,
  14405. wid: b[j].id,
  14406. works: b[j].content,
  14407. sName: b[j].name,
  14408. score: b[j].score,
  14409. img: b[j].img,
  14410. type: 5,
  14411. time: b[j].time,
  14412. });
  14413. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14414. this.workStudent[i].push({
  14415. works: b[j].content,
  14416. sName: b[j].name,
  14417. score: b[j].score,
  14418. img: b[j].img,
  14419. type: 12,
  14420. time: b[j].time,
  14421. userid: b[j].userid,
  14422. wid: b[j].id,
  14423. });
  14424. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14425. this.workStudent[i].push({
  14426. works: b[j].content,
  14427. sName: b[j].name,
  14428. score: b[j].score,
  14429. img: b[j].img,
  14430. type: 0,
  14431. time: b[j].time,
  14432. userid: b[j].userid,
  14433. wid: b[j].id,
  14434. });
  14435. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14436. this.workStudent[i].push({
  14437. works: b[j].content,
  14438. sName: b[j].name,
  14439. score: b[j].score,
  14440. img: b[j].img,
  14441. type: 0,
  14442. time: b[j].time,
  14443. userid: b[j].userid,
  14444. wid: b[j].id,
  14445. });
  14446. }
  14447. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14448. this.workStudent[i].push({
  14449. works: b[j].content,
  14450. sName: b[j].name,
  14451. score: b[j].score,
  14452. img: b[j].img,
  14453. type: 2,
  14454. time: b[j].time,
  14455. userid: b[j].userid,
  14456. wid: b[j].id,
  14457. });
  14458. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14459. this.workStudent[i].push({
  14460. works: b[j].content,
  14461. sName: b[j].name,
  14462. score: b[j].score,
  14463. img: b[j].img,
  14464. type: 20,
  14465. time: b[j].time,
  14466. userid: b[j].userid,
  14467. wid: b[j].id,
  14468. });
  14469. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14470. //问卷
  14471. this.workStudent[i].push({
  14472. works: b[j].content,
  14473. sName: b[j].name,
  14474. score: b[j].score,
  14475. img: b[j].img,
  14476. type: 2,
  14477. time: b[j].time,
  14478. userid: b[j].userid,
  14479. wid: b[j].id,
  14480. });
  14481. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14482. //选择题
  14483. this.workStudent[i].push({
  14484. works: b[j].content,
  14485. sName: b[j].name,
  14486. score: b[j].score,
  14487. img: b[j].img,
  14488. type: 8,
  14489. time: b[j].time,
  14490. userid: b[j].userid,
  14491. wid: b[j].id,
  14492. });
  14493. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14494. //选择题
  14495. this.workStudent[i].push({
  14496. works: b[j].content,
  14497. sName: b[j].name,
  14498. score: b[j].score,
  14499. img: b[j].img,
  14500. type: 9,
  14501. time: b[j].time,
  14502. userid: b[j].userid,
  14503. wid: b[j].id,
  14504. });
  14505. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14506. //选择题
  14507. this.workStudent[i].push({
  14508. works: b[j].content,
  14509. sName: b[j].name,
  14510. score: b[j].score,
  14511. img: b[j].img,
  14512. type: 10,
  14513. time: b[j].time,
  14514. userid: b[j].userid,
  14515. wid: b[j].id,
  14516. });
  14517. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14518. //选择题
  14519. this.workStudent[i].push({
  14520. works: b[j].content,
  14521. sName: b[j].name,
  14522. score: b[j].score,
  14523. img: b[j].img,
  14524. type: 13,
  14525. time: b[j].time,
  14526. userid: b[j].userid,
  14527. wid: b[j].id,
  14528. });
  14529. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14530. //选择题
  14531. this.workStudent[i].push({
  14532. works: b[j].content,
  14533. sName: b[j].name,
  14534. score: b[j].score,
  14535. img: b[j].img,
  14536. type: 12,
  14537. time: b[j].time,
  14538. userid: b[j].userid,
  14539. wid: b[j].id,
  14540. });
  14541. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14542. //选择题
  14543. this.workStudent[i].push({
  14544. works: b[j].content,
  14545. sName: b[j].name,
  14546. score: b[j].score,
  14547. img: b[j].img,
  14548. type: 12,
  14549. time: b[j].time,
  14550. userid: b[j].userid,
  14551. wid: b[j].id,
  14552. });
  14553. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14554. //选择题
  14555. this.workStudent[i].push({
  14556. works: b[j].content,
  14557. sName: b[j].name,
  14558. score: b[j].score,
  14559. img: b[j].img,
  14560. type: 15,
  14561. time: b[j].time,
  14562. userid: b[j].userid,
  14563. wid: b[j].id,
  14564. });
  14565. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14566. //英语写作
  14567. this.workStudent[i].push({
  14568. works: b[j].content,
  14569. sName: b[j].name,
  14570. score: b[j].score,
  14571. img: b[j].img,
  14572. type: 16,
  14573. time: b[j].time,
  14574. userid: b[j].userid,
  14575. wid: b[j].id,
  14576. aiCode: b[j].aiCode,
  14577. teacherCode: b[j].teacherCode
  14578. });
  14579. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14580. //英语口语
  14581. this.workStudent[i].push({
  14582. works: b[j].content,
  14583. sName: b[j].name,
  14584. score: b[j].score,
  14585. img: b[j].img,
  14586. type: 17,
  14587. time: b[j].time,
  14588. userid: b[j].userid,
  14589. wid: b[j].id,
  14590. });
  14591. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14592. //英语口语
  14593. this.workStudent[i].push({
  14594. works: b[j].content,
  14595. sName: b[j].name,
  14596. score: b[j].score,
  14597. img: b[j].img,
  14598. type: 14,
  14599. time: b[j].time,
  14600. userid: b[j].userid,
  14601. wid: b[j].id,
  14602. });
  14603. }
  14604. }
  14605. }
  14606. }
  14607. })
  14608. .catch((err) => {
  14609. console.error(err);
  14610. });
  14611. },
  14612. openVideo(w) {
  14613. this.videoDetail = {};
  14614. this.playerOptions1.sources[0].src = w.works;
  14615. this.videoDetail = this.playerOptions1;
  14616. this.videoVisible = true;
  14617. },
  14618. isLikes(wid, uid, t, c, isLikes,sName) {
  14619. if (isLikes == false) {
  14620. let params = [
  14621. {
  14622. wid: wid,
  14623. lid: uid,
  14624. t: t,
  14625. c: c,
  14626. },
  14627. ];
  14628. this.ajax
  14629. .post(this.$store.state.api + "insertComment", params)
  14630. .then((res) => {
  14631. this.$message({
  14632. message: "点赞成功",
  14633. type: "success",
  14634. });
  14635. this.selectSWorks();
  14636. this.selectStudent();
  14637. if(this.tType==1){
  14638. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14639. }
  14640. })
  14641. .catch((err) => {
  14642. this.$message.error("点赞失败");
  14643. console.error(err);
  14644. });
  14645. } else {
  14646. let params = {
  14647. wid: wid,
  14648. lid: uid,
  14649. type: t,
  14650. };
  14651. this.ajax
  14652. .get(this.$store.state.api + "deleteComment", params)
  14653. .then((res) => {
  14654. this.$message({
  14655. message: "取消点赞成功",
  14656. type: "success",
  14657. });
  14658. this.selectSWorks();
  14659. this.selectStudent();
  14660. })
  14661. .catch((err) => {
  14662. console.error(err);
  14663. });
  14664. }
  14665. },
  14666. deleteComment(wid) {
  14667. this.$confirm("确定删除此评论吗?", "提示", {
  14668. confirmButtonText: "确定",
  14669. cancelButtonText: "取消",
  14670. type: "warning",
  14671. })
  14672. .then(() => {
  14673. let params = {
  14674. id: wid,
  14675. };
  14676. this.ajax
  14677. .get(this.$store.state.api + "deleteComment2", params)
  14678. .then((res) => {
  14679. this.$message({
  14680. message: "删除评论成功",
  14681. type: "success",
  14682. });
  14683. this.selectSWorks();
  14684. this.selectStudent();
  14685. })
  14686. .catch((err) => {
  14687. console.error(err);
  14688. });
  14689. })
  14690. .catch(() => {});
  14691. },
  14692. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14693. this.commentIndexJson = {
  14694. toolIndex: toolIndex,
  14695. wIndex: wIndex,
  14696. gindex: gindex,
  14697. gid: gid,
  14698. };
  14699. this.commentDetail = [];
  14700. this.commentDialogVisible = true;
  14701. this.commentDetail = w;
  14702. if (w.works && w.type == 1) {
  14703. // this.pptImgUrl = "";
  14704. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14705. if (
  14706. a.indexOf(
  14707. w.works
  14708. .split(".")
  14709. [w.works.split(".").length - 1].toLocaleUpperCase()
  14710. ) != -1
  14711. ) {
  14712. let _uuurl = await this.checkLink(w.works);
  14713. this.pptImgUrl =
  14714. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14715. this.showPDF = false;
  14716. } else if (
  14717. w.works
  14718. .split(".")
  14719. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14720. ) {
  14721. this.pptImgUrl = w.works;
  14722. this.showPDF = true;
  14723. }
  14724. } else if (w.works && w.type == 3) {
  14725. this.videoDetail = {};
  14726. this.playerOptions1.sources[0].src = w.works;
  14727. this.videoDetail = this.playerOptions1;
  14728. // this.videoVisible = true;
  14729. } else if (w.works && w.type == 4) {
  14730. this.eScore = JSON.parse(w.works);
  14731. this.rateJson =
  14732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14733. this.taskCount
  14734. ].toolChoose[toolIndex].rateJson;
  14735. } else if (w.works && w.type == 10) {
  14736. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14737. } else if (w.works && w.type == 13) {
  14738. this.wordJson =
  14739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14740. this.taskCount
  14741. ].toolChoose[toolIndex].wordJson;
  14742. }
  14743. },
  14744. async openScore(w, index) {
  14745. this.wScore = 0;
  14746. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14747. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14748. this.commentDetail = [];
  14749. if(w.type == 17){
  14750. this.dialogVisibleENScore = true;
  14751. }else{
  14752. this.dialogVisibleScore = true;
  14753. }
  14754. this.commentDetail = w;
  14755. if (w.works && w.type == 1) {
  14756. this.pptImgUrl = "";
  14757. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14758. if (
  14759. a.indexOf(
  14760. w.works
  14761. .split(".")
  14762. [w.works.split(".").length - 1].toLocaleUpperCase()
  14763. ) != -1
  14764. ) {
  14765. let _uuurl = await this.checkLink(w.works);
  14766. this.pptImgUrl =
  14767. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14768. this.showPDF = false;
  14769. } else if (
  14770. w.works
  14771. .split(".")
  14772. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14773. ) {
  14774. this.pptImgUrl = w.works;
  14775. this.showPDF = true;
  14776. }
  14777. } else if (w.works && w.type == 3) {
  14778. this.videoDetail = {};
  14779. this.playerOptions1.sources[0].src = w.works;
  14780. this.videoDetail = this.playerOptions1;
  14781. }else if(w.type == 17){
  14782. let englishVoiceJson = {}
  14783. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14784. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14785. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14786. .toolChoose[index].englishVoiceJson
  14787. : {};
  14788. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14789. }
  14790. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14791. },
  14792. addComment(wid, uid, t,detail) {
  14793. if (this.commentText == "") {
  14794. this.$message.error("请输入评论");
  14795. return;
  14796. }
  14797. let params2 = [
  14798. {
  14799. wid: wid,
  14800. lid: uid,
  14801. t: t,
  14802. },
  14803. ];
  14804. this.ajax
  14805. .post(this.$store.state.api + "getComment", params2)
  14806. .then((res) => {
  14807. if (res.data[0].length > 0) {
  14808. this.$message.error("一个作业只能评论一条");
  14809. } else {
  14810. let params = [
  14811. {
  14812. wid: wid,
  14813. lid: uid,
  14814. t: t,
  14815. c: this.commentText,
  14816. },
  14817. ];
  14818. this.ajax
  14819. .post(this.$store.state.api + "insertComment", params)
  14820. .then((res) => {
  14821. this.$message({
  14822. message: "评论成功",
  14823. type: "success",
  14824. });
  14825. this.commentText = "";
  14826. this.selectSWorks();
  14827. this.selectStudent();
  14828. if(this.tType!=2){
  14829. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14830. }
  14831. })
  14832. .catch((err) => {
  14833. this.$message.error("评论失败");
  14834. console.error(err);
  14835. });
  14836. }
  14837. })
  14838. .catch((err) => {
  14839. // this.$message.error("评论失败");
  14840. console.error(err);
  14841. });
  14842. },
  14843. scoreWork(wid,sName) {
  14844. if (this.wScore == 0) {
  14845. this.$message.error("请评分");
  14846. return;
  14847. }
  14848. let params = [
  14849. {
  14850. wid: wid,
  14851. score: JSON.stringify({
  14852. wScore: this.wScore,
  14853. detail: this.scoreDetail,
  14854. }),
  14855. },
  14856. ];
  14857. this.ajax
  14858. .post(this.$store.state.api + "scoreWork", params)
  14859. .then((res) => {
  14860. this.$message({
  14861. message: "评分成功",
  14862. type: "success",
  14863. });
  14864. this.wScore = 0;
  14865. this.scoreDetail = "";
  14866. this.dialogVisibleScore = false;
  14867. this.selectSWorks();
  14868. this.selectStudent();
  14869. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14870. })
  14871. .catch((err) => {
  14872. this.$message.error("评分失败");
  14873. console.error(err);
  14874. });
  14875. },
  14876. openXz(w, i) {
  14877. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14878. .taskJson[this.taskCount].toolChoose[i].selectJson
  14879. ? JSON.parse(
  14880. JSON.stringify(
  14881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14882. this.taskCount
  14883. ].toolChoose[i].selectJson
  14884. )
  14885. )
  14886. : { url: "", select: [], answer: [] };
  14887. var a = w.works.split(",");
  14888. for (var k = 0; k < a.length; k++) {
  14889. a[k] = parseInt(a[k]);
  14890. }
  14891. this.selectAnswer = { answer: a, stu: w.sName };
  14892. this.isSelect = true;
  14893. this.dialogVisibleSelect = true;
  14894. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14895. },
  14896. openSen(w, i) {
  14897. console.log("openSen")
  14898. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14899. this.sentenceList1 = JSON.parse(w.works);
  14900. this.sentenceList1.stuName = w.sName;
  14901. this.dialogVisibleSentence1 = true;
  14902. },
  14903. openPj(w, toolindex) {
  14904. console.log("openPJ")
  14905. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14906. this.isStar = true;
  14907. this.eScore = JSON.parse(w);
  14908. this.rateJson =
  14909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14910. this.taskCount
  14911. ].toolChoose[toolindex].rateJson;
  14912. this.studentEvalDialogVisible = true;
  14913. },
  14914. openEnglishEva(id,i){
  14915. let params = {
  14916. wid: id
  14917. };
  14918. this.ajax
  14919. .get(this.$store.state.api + "selectEngWork", params)
  14920. .then((res) => {
  14921. this.evaEngJson.message = res.data[0][0];
  14922. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14923. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14924. .toolChoose[i].englishList;
  14925. this.engEvaDialogVisible = true;
  14926. })
  14927. .catch((err) => {
  14928. console.error(err);
  14929. });
  14930. },
  14931. deleteWorks(id) {
  14932. this.$confirm("确定删除此作业吗?", "提示", {
  14933. confirmButtonText: "确定",
  14934. cancelButtonText: "取消",
  14935. type: "warning",
  14936. })
  14937. .then(() => {
  14938. let params = [
  14939. {
  14940. id: id,
  14941. },
  14942. ];
  14943. this.ajax
  14944. .post(this.$store.state.api + "deleteCourseWork", params)
  14945. .then((res) => {
  14946. this.$message({
  14947. message: "删除成功",
  14948. type: "success",
  14949. });
  14950. this.selectStudent();
  14951. this.selectSWorks();
  14952. this.selectSLook();
  14953. })
  14954. .catch((err) => {
  14955. this.$message.error("网络异常");
  14956. console.error(err);
  14957. });
  14958. })
  14959. .catch(() => {});
  14960. },
  14961. selectSWorks(gindex) {
  14962. //教师查看全部作业
  14963. let params = {
  14964. cid: this.id,
  14965. s: this.courseType,
  14966. t: this.taskCount,
  14967. };
  14968. this.ajax
  14969. .get(this.$store.state.api + "selectSWorks", params)
  14970. .then((res) => {
  14971. var a =
  14972. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14973. this.taskCount
  14974. ].toolChoose;
  14975. var b = res.data[0];
  14976. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14977. var y = [
  14978. "AVI",
  14979. "NAVI",
  14980. "MPEG",
  14981. "ASF",
  14982. "MOV",
  14983. "WMV",
  14984. "3GP",
  14985. "RM",
  14986. "RMVB",
  14987. "FLV",
  14988. "F4V",
  14989. "H.264",
  14990. "H.265",
  14991. "REAL VIDEO",
  14992. "MKV",
  14993. "WebM",
  14994. "HDDVD",
  14995. "MP4",
  14996. "MPG",
  14997. "M4V",
  14998. "MGV",
  14999. "OGV",
  15000. "QTM",
  15001. "STR",
  15002. "AMC",
  15003. "DVX",
  15004. "EVO",
  15005. "DAT",
  15006. "OGG",
  15007. "OGM",
  15008. ];
  15009. var d = res.data[1];
  15010. var e = res.data[2];
  15011. var f = res.data[3];
  15012. let _worksStudent = [];
  15013. var _worksStudent2 = [];
  15014. for (var i = 0; i < a.length; i++) {
  15015. _worksStudent[i] = [];
  15016. _worksStudent2[i] = [];
  15017. if (
  15018. !this.isCloseList[i] ||
  15019. this.isCloseList[i].isClose == undefined
  15020. ) {
  15021. this.isCloseList[i] = { isClose: 0 };
  15022. }
  15023. this.groupStudent[i] = [];
  15024. this.groupStudentUid[i] = [];
  15025. if (this.isGroup) {
  15026. for (
  15027. var groupI = 0;
  15028. groupI < this.courseGroup.group.length;
  15029. groupI++
  15030. ) {
  15031. this.courseGroup.group[groupI].works[i] = [];
  15032. }
  15033. }
  15034. this.isWorksS[i] = [];
  15035. this.checkJson[i] = [];
  15036. if (a[i].tool[0] == 49) {
  15037. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15038. this.groupStudent[i][gA] = [];
  15039. this.groupStudentUid[i][gA] = [];
  15040. _worksStudent[i][gA] = [];
  15041. _worksStudent2[i][gA] = [];
  15042. this.isCloseList[i][gA] = [];
  15043. // debugger
  15044. for (var g = 0; g < f.length; g++) {
  15045. if (
  15046. f[g].ttype == 2 &&
  15047. this.tcid &&
  15048. this.arrayToArray(
  15049. (f[g].classid ? f[g].classid.split(",") : []),
  15050. this.tcid.split(",")
  15051. ).length == 0
  15052. ) {
  15053. continue;
  15054. }
  15055. let _classId = this.arrayToArray(
  15056. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15057. this.classId ? this.classId.split(",") : []
  15058. )
  15059. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15060. (f[g].classid ? f[g].classid.split(",") : []),
  15061. this.tcid.split(",")
  15062. ).length !== 0 || this.arrayToArray(
  15063. (f[g].classid ? f[g].classid.split(",") : []),
  15064. _classId
  15065. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15066. this.groupStudent[i][gA].push(f[g]);
  15067. this.groupStudentUid[i][gA].push(f[g].userid);
  15068. }
  15069. }
  15070. }
  15071. this.$forceUpdate();
  15072. }
  15073. for (var j = 0; j < b.length; j++) {
  15074. if (
  15075. b[j].ttype == 2 &&
  15076. this.tcid &&
  15077. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15078. .length == 0
  15079. ) {
  15080. continue;
  15081. }
  15082. var likesCount = 0;
  15083. var commentCount = 0;
  15084. var isLikes = false;
  15085. var commentJson = [];
  15086. var likeJson = [];
  15087. var data = b[j];
  15088. if (i == b[j].tool) {
  15089. if (data.type == 2 && a[i].tool[0] == 4) {
  15090. // if(JSON.parse(data.content)[0].anwer){
  15091. var checkL =
  15092. JSON.parse(data.content)[0].anwer instanceof Array
  15093. ? JSON.parse(data.content)[0].anwer
  15094. : JSON.parse(data.content)[0].anwer.split(",");
  15095. for (var z = 0; z < checkL.length; z++) {
  15096. if (!this.checkJson[i][z]) {
  15097. this.checkJson[i].push({
  15098. checkCount: [],
  15099. checkPerson: [],
  15100. rightPerson: [],
  15101. });
  15102. }
  15103. if (!this.checkJson[i][z].checkCount.length) {
  15104. this.checkJson[i][z].checkCount = [];
  15105. let _askItemCount = JSON.parse(data.content)[0].askJson
  15106. .askJson[z].askItem;
  15107. for (var aic = 0; aic < _askItemCount; aic++) {
  15108. this.checkJson[i][z].checkCount.push(0);
  15109. }
  15110. }
  15111. if (checkL[z] instanceof Array) {
  15112. if (
  15113. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15114. checkL[z].sort().join(",")
  15115. ) {
  15116. this.checkJson[i][z].rightPerson.push(data.name);
  15117. }
  15118. for (var q = 0; q < checkL[z].length; q++) {
  15119. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15120. ? this.checkJson[i][z].checkPerson[
  15121. parseInt(checkL[z][q])
  15122. ].push(data.name)
  15123. : (this.checkJson[i][z].checkPerson[
  15124. parseInt(checkL[z][q])
  15125. ] = [data.name]);
  15126. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15127. ? this.checkJson[i][z].checkCount[
  15128. parseInt(checkL[z][q])
  15129. ]++
  15130. : (this.checkJson[i][z].checkCount[
  15131. parseInt(checkL[z][q])
  15132. ] = 1);
  15133. }
  15134. } else {
  15135. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15136. this.checkJson[i][z].rightPerson.push(data.name);
  15137. }
  15138. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15139. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15140. ? this.checkJson[i][z].checkPerson[
  15141. parseInt(checkL[z])
  15142. ].push(data.name)
  15143. : (this.checkJson[i][z].checkPerson[
  15144. parseInt(checkL[z])
  15145. ] = [data.name]);
  15146. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15147. ? this.checkJson[i][z].checkCount[
  15148. parseInt(checkL[z])
  15149. ]++
  15150. : (this.checkJson[i][z].checkCount[
  15151. parseInt(checkL[z])
  15152. ] = 1);
  15153. }
  15154. }
  15155. }
  15156. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15157. var checkL = JSON.parse(data.content)[0].anwer;
  15158. for (var z = 0; z < checkL.length; z++) {
  15159. if (!this.checkJson[i][z]) {
  15160. this.checkJson[i].push({
  15161. checkCount: [],
  15162. checkPerson: [],
  15163. rightPerson: [],
  15164. });
  15165. }
  15166. if (!this.checkJson[i][z].checkCount.length) {
  15167. this.checkJson[i][z].checkCount = [];
  15168. let _askItemCount = JSON.parse(data.content)[0].testJson
  15169. .testJson[z].testItem;
  15170. for (var aic = 0; aic < _askItemCount; aic++) {
  15171. this.checkJson[i][z].checkCount.push(0);
  15172. }
  15173. }
  15174. if (checkL[z] instanceof Array) {
  15175. if (
  15176. JSON.parse(data.content)[0]
  15177. .testJson.testJson[z].answer.sort()
  15178. .join(",") == checkL[z].sort().join(",")
  15179. ) {
  15180. this.checkJson[i][z].rightPerson.push(data.name);
  15181. }
  15182. for (var q = 0; q < checkL[z].length; q++) {
  15183. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15184. ? this.checkJson[i][z].checkPerson[
  15185. parseInt(checkL[z][q])
  15186. ].push(data.name)
  15187. : (this.checkJson[i][z].checkPerson[
  15188. parseInt(checkL[z][q])
  15189. ] = [data.name]);
  15190. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15191. ? this.checkJson[i][z].checkCount[
  15192. parseInt(checkL[z][q])
  15193. ]++
  15194. : (this.checkJson[i][z].checkCount[
  15195. parseInt(checkL[z][q])
  15196. ] = 1);
  15197. }
  15198. } else {
  15199. if (
  15200. JSON.parse(data.content)[0].testJson.testJson[z]
  15201. .answer == checkL[z]
  15202. ) {
  15203. this.checkJson[i][z].rightPerson.push(data.name);
  15204. }
  15205. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15206. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15207. ? this.checkJson[i][z].checkPerson[
  15208. parseInt(checkL[z])
  15209. ].push(data.name)
  15210. : (this.checkJson[i][z].checkPerson[
  15211. parseInt(checkL[z])
  15212. ] = [data.name]);
  15213. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15214. ? this.checkJson[i][z].checkCount[
  15215. parseInt(checkL[z])
  15216. ]++
  15217. : (this.checkJson[i][z].checkCount[
  15218. parseInt(checkL[z])
  15219. ] = 1);
  15220. }
  15221. }
  15222. }
  15223. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15224. var checkL = JSON.parse(data.content);
  15225. for (var z = 0; z < checkL.length; z++) {
  15226. if (!this.checkJson[i][z]) {
  15227. this.checkJson[i].push({
  15228. checkCount: [],
  15229. checkPerson: [],
  15230. rightPerson: [],
  15231. });
  15232. }
  15233. this.checkJson[i][z].checkPerson.push(data.name);
  15234. if (
  15235. checkL[z].chooseSenList.toString() ==
  15236. checkL[z].rightAnswer.toString()
  15237. ) {
  15238. this.checkJson[i][z].rightPerson.push(data.name);
  15239. }
  15240. }
  15241. }
  15242. for (var k = 0; k < d.length; k++) {
  15243. //点赞
  15244. if (d[k].workId == b[j].id) {
  15245. likesCount++;
  15246. likeJson.push(d[k])
  15247. if (d[k].likesId == this.userid) {
  15248. isLikes = true;
  15249. }
  15250. }
  15251. }
  15252. for (var l = 0; l < e.length; l++) {
  15253. //评论
  15254. if (e[l].workId == b[j].id) {
  15255. if (e[l].comment != "") {
  15256. commentCount++;
  15257. commentJson.push({
  15258. commentText: e[l].comment,
  15259. commentTime: e[l].commentTime,
  15260. commentPeople: e[l].commentPeople,
  15261. userid: e[l].userid,
  15262. wid: e[l].id,
  15263. });
  15264. }
  15265. }
  15266. }
  15267. if (
  15268. (b[j].type == 1 ||
  15269. b[j].type == 4 ||
  15270. b[j].type == 5 ||
  15271. b[j].type == 6 ||
  15272. b[j].type == 12 ||
  15273. b[j].type == 7) &&
  15274. a[i].tool[0] != 15 &&
  15275. a[i].tool[0] != 4 &&
  15276. a[i].tool[0] != 45 &&
  15277. a[i].tool[0] != 50 &&
  15278. a[i].tool[0] != 32 &&
  15279. a[i].tool[0] != 57 &&
  15280. a[i].tool[0] != 52
  15281. ) {
  15282. if (
  15283. c.indexOf(
  15284. b[j].content
  15285. .split(".")
  15286. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15287. ) != -1 &&
  15288. a[i].tool[0] == 16 &&
  15289. b[j].atool != 50
  15290. ) {
  15291. let _works = {
  15292. userid: b[j].userid,
  15293. ateacher: b[j].ateacher,
  15294. wid: b[j].id,
  15295. works: b[j].content,
  15296. sName: b[j].name,
  15297. type: 1,
  15298. ttype:b[j].ttype,
  15299. time: b[j].time,
  15300. score: b[j].score,
  15301. img: b[j].img,
  15302. likesCount: likesCount,
  15303. commentCount: commentCount,
  15304. isLikes: isLikes,
  15305. commentJson: commentJson,
  15306. likeJson:likeJson
  15307. };
  15308. if (this.isGroup) {
  15309. let isGw = 1;
  15310. for (
  15311. var groupI = 0;
  15312. groupI < this.courseGroup.group.length;
  15313. groupI++
  15314. ) {
  15315. let gid = this.courseGroup.group[groupI].id;
  15316. if (
  15317. this.courseGroupStudentUid[gid].indexOf(
  15318. b[j].userid
  15319. ) != -1
  15320. ) {
  15321. isGw = 2;
  15322. this.courseGroup.group[groupI].works[i].push(_works);
  15323. break;
  15324. }
  15325. }
  15326. if (isGw == 1) {
  15327. _worksStudent[i].push(_works);
  15328. }
  15329. } else {
  15330. _worksStudent[i].push(_works);
  15331. }
  15332. _worksStudent2[i].push(_works);
  15333. this.isWorksS[i].push({
  15334. uid: b[j].userid,
  15335. sName: b[j].name,
  15336. });
  15337. } else if (
  15338. y.indexOf(
  15339. b[j].content
  15340. .split(".")
  15341. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15342. ) != -1 &&
  15343. a[i].tool[0] == 16 &&
  15344. b[j].atool != 50
  15345. ) {
  15346. let _works = {
  15347. userid: b[j].userid,
  15348. ateacher: b[j].ateacher,
  15349. wid: b[j].id,
  15350. works: b[j].content,
  15351. sName: b[j].name,
  15352. type: 3,
  15353. ttype:b[j].ttype,
  15354. time: b[j].time,
  15355. score: b[j].score,
  15356. img: b[j].img,
  15357. likesCount: likesCount,
  15358. commentCount: commentCount,
  15359. isLikes: isLikes,
  15360. commentJson: commentJson,
  15361. likeJson:likeJson
  15362. };
  15363. if (this.isGroup) {
  15364. let isGw = 1;
  15365. for (
  15366. var groupI = 0;
  15367. groupI < this.courseGroup.group.length;
  15368. groupI++
  15369. ) {
  15370. let gid = this.courseGroup.group[groupI].id;
  15371. if (
  15372. this.courseGroupStudentUid[gid].indexOf(
  15373. b[j].userid
  15374. ) != -1
  15375. ) {
  15376. isGw = 2;
  15377. this.courseGroup.group[groupI].works[i].push(_works);
  15378. break;
  15379. }
  15380. }
  15381. if (isGw == 1) {
  15382. _worksStudent[i].push(_works);
  15383. }
  15384. } else {
  15385. _worksStudent[i].push(_works);
  15386. }
  15387. _worksStudent2[i].push(_works);
  15388. this.isWorksS[i].push({
  15389. uid: b[j].userid,
  15390. sName: b[j].name,
  15391. });
  15392. } else if (b[j].type == 6 && b[j].atool != 50) {
  15393. let _works = {
  15394. userid: b[j].userid,
  15395. ateacher: b[j].ateacher,
  15396. wid: b[j].id,
  15397. works: b[j].content,
  15398. sName: b[j].name,
  15399. type: 4,
  15400. ttype:b[j].ttype,
  15401. time: b[j].time,
  15402. score: b[j].score,
  15403. img: b[j].img,
  15404. likesCount: likesCount,
  15405. commentCount: commentCount,
  15406. isLikes: isLikes,
  15407. commentJson: commentJson,
  15408. likeJson:likeJson
  15409. };
  15410. _worksStudent[i].push(_works);
  15411. _worksStudent2[i].push(_works);
  15412. this.isWorksS[i].push({
  15413. uid: b[j].userid,
  15414. sName: b[j].name,
  15415. });
  15416. } else if (b[j].type == 7 && b[j].atool != 50) {
  15417. let _work = {
  15418. userid: b[j].userid,
  15419. ateacher: b[j].ateacher,
  15420. wid: b[j].id,
  15421. works: b[j].content,
  15422. sName: b[j].name,
  15423. type: 5,
  15424. ttype:b[j].ttype,
  15425. time: b[j].time,
  15426. score: b[j].score,
  15427. img: b[j].img,
  15428. likesCount: likesCount,
  15429. commentCount: commentCount,
  15430. isLikes: isLikes,
  15431. commentJson: commentJson,
  15432. likeJson:likeJson
  15433. };
  15434. _worksStudent[i].push(_work);
  15435. _worksStudent2[i].push(_work);
  15436. this.isWorksS[i].push({
  15437. uid: b[j].userid,
  15438. sName: b[j].name,
  15439. });
  15440. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15441. let _works = {
  15442. userid: b[j].userid,
  15443. ateacher: b[j].ateacher,
  15444. wid: b[j].id,
  15445. works: b[j].content,
  15446. sName: b[j].name,
  15447. type: 12,
  15448. ttype:b[j].ttype,
  15449. time: b[j].time,
  15450. score: b[j].score,
  15451. img: b[j].img,
  15452. likesCount: likesCount,
  15453. commentCount: commentCount,
  15454. isLikes: isLikes,
  15455. commentJson: commentJson,
  15456. likeJson:likeJson
  15457. };
  15458. if (this.isGroup) {
  15459. let isGw = 1;
  15460. for (
  15461. var groupI = 0;
  15462. groupI < this.courseGroup.group.length;
  15463. groupI++
  15464. ) {
  15465. let gid = this.courseGroup.group[groupI].id;
  15466. if (
  15467. this.courseGroupStudentUid[gid].indexOf(
  15468. b[j].userid
  15469. ) != -1
  15470. ) {
  15471. isGw = 2;
  15472. this.courseGroup.group[groupI].works[i].push(_works);
  15473. break;
  15474. }
  15475. }
  15476. if (isGw == 1) {
  15477. _worksStudent[i].push(_works);
  15478. }
  15479. } else {
  15480. _worksStudent[i].push(_works);
  15481. }
  15482. _worksStudent2[i].push(_works);
  15483. this.isWorksS[i].push({
  15484. uid: b[j].userid,
  15485. sName: b[j].name,
  15486. });
  15487. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15488. let _works = {
  15489. userid: b[j].userid,
  15490. ateacher: b[j].ateacher,
  15491. wid: b[j].id,
  15492. works: b[j].content,
  15493. sName: b[j].name,
  15494. type: 0,
  15495. ttype:b[j].ttype,
  15496. time: b[j].time,
  15497. score: b[j].score,
  15498. img: b[j].img,
  15499. likesCount: likesCount,
  15500. commentCount: commentCount,
  15501. isLikes: isLikes,
  15502. commentJson: commentJson,
  15503. likeJson:likeJson
  15504. };
  15505. if (this.isGroup) {
  15506. let isGw = 1;
  15507. for (
  15508. var groupI = 0;
  15509. groupI < this.courseGroup.group.length;
  15510. groupI++
  15511. ) {
  15512. let gid = this.courseGroup.group[groupI].id;
  15513. if (
  15514. this.courseGroupStudentUid[gid].indexOf(
  15515. b[j].userid
  15516. ) != -1
  15517. ) {
  15518. isGw = 2;
  15519. this.courseGroup.group[groupI].works[i].push(_works);
  15520. break;
  15521. }
  15522. }
  15523. if (isGw == 1) {
  15524. _worksStudent[i].push(_works);
  15525. }
  15526. } else {
  15527. _worksStudent[i].push(_works);
  15528. }
  15529. _worksStudent2[i].push(_works);
  15530. this.isWorksS[i].push({
  15531. uid: b[j].userid,
  15532. sName: b[j].name,
  15533. });
  15534. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15535. let _works = {
  15536. userid: b[j].userid,
  15537. ateacher: b[j].ateacher,
  15538. wid: b[j].id,
  15539. works: b[j].content,
  15540. sName: b[j].name,
  15541. type: 0,
  15542. ttype:b[j].ttype,
  15543. time: b[j].time,
  15544. score: b[j].score,
  15545. img: b[j].img,
  15546. likesCount: likesCount,
  15547. commentCount: commentCount,
  15548. isLikes: isLikes,
  15549. commentJson: commentJson,
  15550. likeJson:likeJson
  15551. };
  15552. if (this.isGroup) {
  15553. let isGw = 1;
  15554. for (
  15555. var groupI = 0;
  15556. groupI < this.courseGroup.group.length;
  15557. groupI++
  15558. ) {
  15559. let gid = this.courseGroup.group[groupI].id;
  15560. if (
  15561. this.courseGroupStudentUid[gid].indexOf(
  15562. b[j].userid
  15563. ) != -1
  15564. ) {
  15565. isGw = 2;
  15566. this.courseGroup.group[groupI].works[i].push(_works);
  15567. break;
  15568. }
  15569. }
  15570. if (isGw == 1) {
  15571. _worksStudent[i].push(_works);
  15572. }
  15573. } else {
  15574. _worksStudent[i].push(_works);
  15575. }
  15576. _worksStudent2[i].push(_works);
  15577. this.isWorksS[i].push({
  15578. uid: b[j].userid,
  15579. sName: b[j].name,
  15580. });
  15581. }
  15582. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15583. let _works = {
  15584. userid: b[j].userid,
  15585. ateacher: b[j].ateacher,
  15586. wid: b[j].id,
  15587. works: b[j].content,
  15588. sName: b[j].name,
  15589. type: 2,
  15590. ttype:b[j].ttype,
  15591. time: b[j].time,
  15592. score: b[j].score,
  15593. img: b[j].img,
  15594. likesCount: likesCount,
  15595. commentCount: commentCount,
  15596. isLikes: isLikes,
  15597. commentJson: commentJson,
  15598. likeJson:likeJson
  15599. };
  15600. if (this.isGroup) {
  15601. let isGw = 1;
  15602. for (
  15603. var groupI = 0;
  15604. groupI < this.courseGroup.group.length;
  15605. groupI++
  15606. ) {
  15607. let gid = this.courseGroup.group[groupI].id;
  15608. if (
  15609. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15610. -1
  15611. ) {
  15612. isGw = 2;
  15613. this.courseGroup.group[groupI].works[i].push(_works);
  15614. break;
  15615. }
  15616. }
  15617. if (isGw == 1) {
  15618. _worksStudent[i].push(_works);
  15619. }
  15620. } else {
  15621. _worksStudent[i].push(_works);
  15622. }
  15623. _worksStudent2[i].push(_works);
  15624. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15625. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15626. let _works = {
  15627. userid: b[j].userid,
  15628. ateacher: b[j].ateacher,
  15629. wid: b[j].id,
  15630. works: b[j].content,
  15631. sName: b[j].name,
  15632. type: 20,
  15633. ttype:b[j].ttype,
  15634. time: b[j].time,
  15635. score: b[j].score,
  15636. img: b[j].img,
  15637. likesCount: likesCount,
  15638. commentCount: commentCount,
  15639. isLikes: isLikes,
  15640. commentJson: commentJson,
  15641. likeJson:likeJson
  15642. };
  15643. if (this.isGroup) {
  15644. let isGw = 1;
  15645. for (
  15646. var groupI = 0;
  15647. groupI < this.courseGroup.group.length;
  15648. groupI++
  15649. ) {
  15650. let gid = this.courseGroup.group[groupI].id;
  15651. if (
  15652. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15653. -1
  15654. ) {
  15655. isGw = 2;
  15656. this.courseGroup.group[groupI].works[i].push(_works);
  15657. break;
  15658. }
  15659. }
  15660. if (isGw == 1) {
  15661. _worksStudent[i].push(_works);
  15662. }
  15663. } else {
  15664. _worksStudent[i].push(_works);
  15665. }
  15666. _worksStudent2[i].push(_works);
  15667. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15668. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15669. //问卷
  15670. let _work = {
  15671. userid: b[j].userid,
  15672. ateacher: b[j].ateacher,
  15673. wid: b[j].id,
  15674. works: b[j].content,
  15675. sName: b[j].name,
  15676. type: 2,
  15677. ttype:b[j].ttype,
  15678. time: b[j].time,
  15679. score: b[j].score,
  15680. img: b[j].img,
  15681. likesCount: likesCount,
  15682. commentCount: commentCount,
  15683. isLikes: isLikes,
  15684. commentJson: commentJson,
  15685. likeJson:likeJson
  15686. };
  15687. _worksStudent[i].push(_work);
  15688. _worksStudent2[i].push(_work);
  15689. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15690. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15691. //选择题
  15692. let _work = {
  15693. userid: b[j].userid,
  15694. ateacher: b[j].ateacher,
  15695. wid: b[j].id,
  15696. works: b[j].content,
  15697. sName: b[j].name,
  15698. type: 8,
  15699. ttype:b[j].ttype,
  15700. time: b[j].time,
  15701. score: b[j].score,
  15702. img: b[j].img,
  15703. likesCount: likesCount,
  15704. commentCount: commentCount,
  15705. isLikes: isLikes,
  15706. commentJson: commentJson,
  15707. likeJson:likeJson
  15708. };
  15709. _worksStudent[i].push(_work);
  15710. _worksStudent2[i].push(_work);
  15711. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15712. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15713. //选择题
  15714. let _work = {
  15715. userid: b[j].userid,
  15716. ateacher: b[j].ateacher,
  15717. wid: b[j].id,
  15718. works: b[j].content,
  15719. sName: b[j].name,
  15720. type: 9,
  15721. ttype:b[j].ttype,
  15722. time: b[j].time,
  15723. score: b[j].score,
  15724. img: b[j].img,
  15725. likesCount: likesCount,
  15726. commentCount: commentCount,
  15727. isLikes: isLikes,
  15728. commentJson: commentJson,
  15729. likeJson:likeJson
  15730. };
  15731. _worksStudent[i].push(_work);
  15732. _worksStudent2[i].push(_work);
  15733. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15734. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15735. //选择题
  15736. let _work = {
  15737. userid: b[j].userid,
  15738. ateacher: b[j].ateacher,
  15739. wid: b[j].id,
  15740. works: b[j].content,
  15741. sName: b[j].name,
  15742. type: 10,
  15743. ttype:b[j].ttype,
  15744. time: b[j].time,
  15745. score: b[j].score,
  15746. img: b[j].img,
  15747. likesCount: likesCount,
  15748. commentCount: commentCount,
  15749. isLikes: isLikes,
  15750. commentJson: commentJson,
  15751. likeJson:likeJson
  15752. };
  15753. _worksStudent[i].push(_work);
  15754. _worksStudent2[i].push(_work);
  15755. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15756. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15757. //选择题
  15758. let _work = {
  15759. userid: b[j].userid,
  15760. ateacher: b[j].ateacher,
  15761. wid: b[j].id,
  15762. works: b[j].content,
  15763. sName: b[j].name,
  15764. type: 13,
  15765. ttype:b[j].ttype,
  15766. time: b[j].time,
  15767. score: b[j].score,
  15768. img: b[j].img,
  15769. likesCount: likesCount,
  15770. commentCount: commentCount,
  15771. isLikes: isLikes,
  15772. commentJson: commentJson,
  15773. likeJson:likeJson
  15774. };
  15775. _worksStudent[i].push(_work);
  15776. _worksStudent2[i].push(_work);
  15777. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15778. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15779. //选择题
  15780. let _work = {
  15781. userid: b[j].userid,
  15782. ateacher: b[j].ateacher,
  15783. wid: b[j].id,
  15784. works: b[j].content,
  15785. sName: b[j].name,
  15786. type: 16,
  15787. ttype:b[j].ttype,
  15788. time: b[j].time,
  15789. score: b[j].score,
  15790. img: b[j].img,
  15791. likesCount: likesCount,
  15792. commentCount: commentCount,
  15793. isLikes: isLikes,
  15794. commentJson: commentJson,
  15795. aiCode: b[j].aiCode,
  15796. teacherCode: b[j].teacherCode,
  15797. likeJson:likeJson
  15798. };
  15799. _worksStudent[i].push(_work);
  15800. _worksStudent2[i].push(_work);
  15801. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15802. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15803. //英语口语
  15804. let _work = {
  15805. userid: b[j].userid,
  15806. ateacher: b[j].ateacher,
  15807. wid: b[j].id,
  15808. works: b[j].content,
  15809. sName: b[j].name,
  15810. type: 17,
  15811. ttype:b[j].ttype,
  15812. time: b[j].time,
  15813. score: b[j].score,
  15814. img: b[j].img,
  15815. likesCount: likesCount,
  15816. commentCount: commentCount,
  15817. isLikes: isLikes,
  15818. commentJson: commentJson,
  15819. likeJson:likeJson
  15820. };
  15821. _worksStudent[i].push(_work);
  15822. _worksStudent2[i].push(_work);
  15823. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15824. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15825. //交互视频
  15826. let _work = {
  15827. userid: b[j].userid,
  15828. ateacher: b[j].ateacher,
  15829. wid: b[j].id,
  15830. works: b[j].content,
  15831. sName: b[j].name,
  15832. type: 14,
  15833. ttype:b[j].ttype,
  15834. time: b[j].time,
  15835. score: b[j].score,
  15836. img: b[j].img,
  15837. likesCount: likesCount,
  15838. commentCount: commentCount,
  15839. isLikes: isLikes,
  15840. commentJson: commentJson,
  15841. likeJson:likeJson
  15842. };
  15843. _worksStudent[i].push(_work);
  15844. _worksStudent2[i].push(_work);
  15845. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15846. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15847. let _gindex = JSON.parse(b[j].content);
  15848. if (
  15849. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15850. b[j].userid
  15851. ) != -1
  15852. ) {
  15853. let _work = {
  15854. userid: b[j].userid,
  15855. ateacher: b[j].ateacher,
  15856. wid: b[j].id,
  15857. works: _gindex.url,
  15858. sName: b[j].name,
  15859. type: _gindex.type,
  15860. ttype:b[j].ttype,
  15861. time: b[j].time,
  15862. score: b[j].score,
  15863. img: b[j].img,
  15864. likesCount: likesCount,
  15865. commentCount: commentCount,
  15866. isLikes: isLikes,
  15867. commentJson: commentJson,
  15868. likeJson:likeJson
  15869. };
  15870. _worksStudent[i][_gindex.groupIndex].push(_work);
  15871. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15872. }
  15873. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15874. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15875. let _work = {
  15876. userid: b[j].userid,
  15877. ateacher: b[j].ateacher,
  15878. wid: b[j].id,
  15879. works: b[j].content,
  15880. sName: b[j].name ? b[j].name : b[j].userid,
  15881. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15882. ttype:b[j].ttype,
  15883. time: b[j].time,
  15884. score: b[j].score,
  15885. img: b[j].img,
  15886. likesCount: likesCount,
  15887. commentCount: commentCount,
  15888. isLikes: isLikes,
  15889. commentJson: commentJson,
  15890. likeJson:likeJson
  15891. };
  15892. _worksStudent[i].push(_work);
  15893. _worksStudent2[i].push(_work);
  15894. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15895. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15896. let _work = {
  15897. userid: b[j].userid,
  15898. ateacher: b[j].ateacher,
  15899. wid: b[j].id,
  15900. works: b[j].content,
  15901. sName: b[j].name ? b[j].name : b[j].userid,
  15902. type: 12,
  15903. ttype:b[j].ttype,
  15904. time: b[j].time,
  15905. score: b[j].score,
  15906. img: b[j].img,
  15907. likesCount: likesCount,
  15908. commentCount: commentCount,
  15909. isLikes: isLikes,
  15910. commentJson: commentJson,
  15911. likeJson:likeJson
  15912. };
  15913. _worksStudent[i].push(_work);
  15914. _worksStudent2[i].push(_work);
  15915. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15916. } else if (
  15917. a[i].tool[0] == 57 &&
  15918. b[j].atool == 57 &&
  15919. b[j].type == 12
  15920. ) {
  15921. let _work = {
  15922. userid: b[j].userid,
  15923. ateacher: b[j].ateacher,
  15924. wid: b[j].id,
  15925. works: b[j].content,
  15926. sName: b[j].name ? b[j].name : b[j].userid,
  15927. type: 12,
  15928. ttype:b[j].ttype,
  15929. time: b[j].time,
  15930. score: b[j].score,
  15931. img: b[j].img,
  15932. likesCount: likesCount,
  15933. commentCount: commentCount,
  15934. isLikes: isLikes,
  15935. commentJson: commentJson,
  15936. likeJson:likeJson
  15937. };
  15938. _worksStudent[i].push(_work);
  15939. _worksStudent2[i].push(_work);
  15940. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15941. } else if (
  15942. a[i].tool[0] == 57 &&
  15943. b[j].atool == 57 &&
  15944. b[j].type == 15
  15945. ) {
  15946. let _work = {
  15947. userid: b[j].userid,
  15948. ateacher: b[j].ateacher,
  15949. wid: b[j].id,
  15950. works: b[j].content,
  15951. sName: b[j].name ? b[j].name : b[j].userid,
  15952. type: 15,
  15953. ttype:b[j].ttype,
  15954. time: b[j].time,
  15955. score: b[j].score,
  15956. img: b[j].img,
  15957. likesCount: likesCount,
  15958. commentCount: commentCount,
  15959. isLikes: isLikes,
  15960. commentJson: commentJson,
  15961. likeJson:likeJson
  15962. };
  15963. _worksStudent[i].push(_work);
  15964. _worksStudent2[i].push(_work);
  15965. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15966. }
  15967. }
  15968. }
  15969. if (_worksStudent[i] && _worksStudent[i].length) {
  15970. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15971. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15972. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15973. var scoreA = parseFloat(jscoreA);
  15974. var scoreB = parseFloat(jscoreB);
  15975. if (scoreA == scoreB) {
  15976. return b.likesCount - a.likesCount;
  15977. }
  15978. return scoreB - scoreA;
  15979. });
  15980. if (this.isGroup) {
  15981. for (
  15982. var groupI = 0;
  15983. groupI < this.courseGroup.group.length;
  15984. groupI++
  15985. ) {
  15986. this.courseGroup.group[groupI].works[i] =
  15987. this.courseGroup.group[groupI].works[i].sort(function (
  15988. a,
  15989. b
  15990. ) {
  15991. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15992. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15993. var scoreA = parseFloat(jscoreA);
  15994. var scoreB = parseFloat(jscoreB);
  15995. if (scoreA == scoreB) {
  15996. return b.likesCount - a.likesCount;
  15997. }
  15998. return scoreB - scoreA;
  15999. });
  16000. }
  16001. }
  16002. }
  16003. }
  16004. this.timeWorkList = _worksStudent2;
  16005. for (var i = 0; i < a.length; i++) {
  16006. for (var j = 0; j < b.length; j++) {
  16007. var data = b[j];
  16008. if (i == b[j].tool) {
  16009. if (data.type == 2 || data.type == 8) {
  16010. for (var z = 0; z < this.checkJson[i].length; z++) {
  16011. this.checkJson[i][z].checkPerent = [];
  16012. this.checkJson[i][z].right = Math.round(
  16013. (this.checkJson[i][z].rightPerson.length /
  16014. parseInt(_worksStudent[i].length)) *
  16015. 100
  16016. );
  16017. let aaaa = this.checkJson[i][z];
  16018. for (
  16019. var k = 0;
  16020. k < this.checkJson[i][z].checkCount.length;
  16021. k++
  16022. ) {
  16023. this.checkJson[i][z].checkPerent.push(
  16024. Math.round(
  16025. (this.checkJson[i][z].checkCount[k] /
  16026. parseInt(_worksStudent[i].length)) *
  16027. 100
  16028. )
  16029. );
  16030. }
  16031. }
  16032. } else if (data.type == 9) {
  16033. for (var z = 0; z < this.checkJson[i].length; z++) {
  16034. this.checkJson[i][z].checkPerent = [];
  16035. this.checkJson[i][z].right = Math.round(
  16036. (this.checkJson[i][z].rightPerson.length /
  16037. this.checkJson[i][z].checkPerson.length) *
  16038. 100
  16039. );
  16040. }
  16041. }
  16042. }
  16043. }
  16044. }
  16045. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16046. this.joinGroup(gindex);
  16047. }
  16048. this.worksStudent = _worksStudent;
  16049. this.selectWorksStudent();
  16050. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16051. this.$nextTick(()=>{
  16052. setTimeout(()=>{
  16053. setTimeout(()=>{
  16054. this.panToolHeight('tool-'+ci);
  16055. }, 500)
  16056. }, 0)
  16057. })
  16058. }
  16059. })
  16060. .catch((err) => {
  16061. console.error(err);
  16062. });
  16063. },
  16064. pngToWhiteBg(file) {
  16065. const _file = file;
  16066. let read = new FileReader();
  16067. read.readAsDataURL(file); // 文件转base64
  16068. return new Promise((resolve, reject) => {
  16069. read.onload = (e) => {
  16070. let img = new Image();
  16071. img.src = e.target.result;
  16072. img.onload = async () => {
  16073. // 生成canvas
  16074. let canvas = document.createElement("canvas");
  16075. let context = canvas.getContext("2d");
  16076. // 绘制图片到canvas上
  16077. canvas.width = img.width;
  16078. canvas.height = img.height;
  16079. // 在canvas绘制前填充白色背景
  16080. context.fillStyle = "#fff";
  16081. context.fillRect(0, 0, canvas.width, canvas.height);
  16082. context.drawImage(img, 0, 0);
  16083. let base64 = canvas.toDataURL(file["type"], 1);
  16084. let newFile = this.dataUrlToFile(base64, _file);
  16085. resolve(newFile);
  16086. };
  16087. };
  16088. });
  16089. },
  16090. dataUrlToFile(dataurl, file) {
  16091. let arr = dataurl.split(","),
  16092. mime = arr[0].match(/:(.*?);/)[1],
  16093. bstr = atob(arr[1]),
  16094. n = bstr.length,
  16095. u8arr = new Uint8Array(n);
  16096. while (n--) {
  16097. u8arr[n] = bstr.charCodeAt(n);
  16098. }
  16099. // return new Blob([u8arr], { type: mime });
  16100. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16101. type: mime,
  16102. });
  16103. },
  16104. async beforeUpload1(event, type, i) {
  16105. // this.$message.success('进入上传')
  16106. var file = "";
  16107. if (type == 5) {
  16108. file = event;
  16109. } else {
  16110. file = event.target.files[0];
  16111. }
  16112. var credentials = {
  16113. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16114. secretAccessKey: "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",
  16115. }; //秘钥形式的登录上传
  16116. window.AWS.config.update(credentials);
  16117. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16118. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16119. var _this = this;
  16120. _this.progress = 0;
  16121. _this.proVisible = true;
  16122. _this.isFinishSize = 0;
  16123. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16124. var b = [
  16125. "DOC",
  16126. "DOCX",
  16127. "DOCM",
  16128. "DOTM",
  16129. "DOTX",
  16130. "PPTX",
  16131. "PPSX",
  16132. "PPT",
  16133. "PPS",
  16134. "PPTM",
  16135. "POTM",
  16136. "PPAM",
  16137. "POTX",
  16138. "PPSM",
  16139. ];
  16140. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16141. var photoA = [
  16142. "BMP",
  16143. "GIF",
  16144. "PNG",
  16145. "JPEG",
  16146. "JPEG",
  16147. "JPG",
  16148. "TIF",
  16149. "PCX",
  16150. "TGA",
  16151. "EXIF",
  16152. "FPX",
  16153. "SVG",
  16154. "APNG",
  16155. ];
  16156. // if (
  16157. // b.indexOf(
  16158. // file.name
  16159. // .split(".")
  16160. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16161. // ) != -1
  16162. // ) {
  16163. // if (file.size / 1024 / 1024 > 10) {
  16164. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16165. // return;
  16166. // }
  16167. // } else if (
  16168. // excelA.indexOf(
  16169. // file.name
  16170. // .split(".")
  16171. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16172. // ) != "-1"
  16173. // ) {
  16174. // if (file.size / 1024 / 1024 > 5) {
  16175. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16176. // return;
  16177. // }
  16178. // }
  16179. if (
  16180. photoA.indexOf(
  16181. file.name
  16182. .split(".")
  16183. [file.name.split(".").length - 1].toLocaleUpperCase()
  16184. ) != -1 &&
  16185. type != 4
  16186. ) {
  16187. // const blob = await imageConversion.compress(file, 0.8)
  16188. file = await this.pngToWhiteBg(file);
  16189. const blob = await imageConversion.compressAccurately(file, 256);
  16190. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16191. file = new File([blob], file.name, { type: file.type });
  16192. }
  16193. if (file) {
  16194. var params = {
  16195. Key:
  16196. file.name.split(".")[0] +
  16197. new Date().getTime() +
  16198. "." +
  16199. file.name.split(".")[file.name.split(".").length - 1],
  16200. ContentType: file.type,
  16201. Body: file,
  16202. "Access-Control-Allow-Credentials": "*",
  16203. ACL: "public-read",
  16204. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16205. var options = {
  16206. // partSize: 2048 * 1024 * 1024,
  16207. partSize: 1024 * 1024 * 1024,
  16208. queueSize: 2,
  16209. leavePartsOnError: true,
  16210. };
  16211. bucket
  16212. .upload(params, options)
  16213. .on("httpUploadProgress", function (evt) {
  16214. //这里可以写进度条
  16215. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16216. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16217. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16218. })
  16219. .send(function (err, data) {
  16220. _this.progress = 100;
  16221. _this.isFinishSize = _this.isAllSize;
  16222. setTimeout(() => {
  16223. _this.proVisible = false;
  16224. }, 1000);
  16225. if (err) {
  16226. var a = _this.$refs.upload1.uploadFiles;
  16227. a.splice(a.length - 1, a.length);
  16228. _this.$message.error("上传失败");
  16229. } else {
  16230. // _this.$message.success('上传成功')
  16231. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16232. var c = [
  16233. "AVI",
  16234. "NAVI",
  16235. "MPEG",
  16236. "ASF",
  16237. "MOV",
  16238. "WMV",
  16239. "3GP",
  16240. "RM",
  16241. "RMVB",
  16242. "FLV",
  16243. "F4V",
  16244. "H.264",
  16245. "H.265",
  16246. "REAL VIDEO",
  16247. "MKV",
  16248. "WebM",
  16249. "HDDVD",
  16250. "MP4",
  16251. "MPG",
  16252. "M4V",
  16253. "MGV",
  16254. "OGV",
  16255. "QTM",
  16256. "STR",
  16257. "AMC",
  16258. "DVX",
  16259. "EVO",
  16260. "DAT",
  16261. "OGG",
  16262. "OGM",
  16263. ];
  16264. if (type == 1) {
  16265. _this.studyJuri[0].cover.push({
  16266. name: file.name,
  16267. url: data.Location,
  16268. uid: file.uid,
  16269. });
  16270. if (
  16271. c.indexOf(
  16272. _this.studyJuri[0].cover[0].url
  16273. .split(".")
  16274. [
  16275. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16276. ].toLocaleUpperCase()
  16277. ) != -1
  16278. ) {
  16279. _this.fileType = 2;
  16280. } else if (
  16281. b.indexOf(
  16282. _this.studyJuri[0].cover[0].url
  16283. .split(".")
  16284. [
  16285. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16286. ].toLocaleUpperCase()
  16287. ) != -1
  16288. ) {
  16289. _this.fileType = 1;
  16290. } else if (
  16291. photoA.indexOf(
  16292. _this.studyJuri[0].cover[0].url
  16293. .split(".")
  16294. [
  16295. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16296. ].toLocaleUpperCase()
  16297. ) != -1
  16298. ) {
  16299. _this.fileType = 0;
  16300. } else {
  16301. _this.fileType = 3;
  16302. }
  16303. _this.imgChange(null, null, type);
  16304. } else if (type == 2) {
  16305. _this.upToolImg = data.Location;
  16306. _this.imgChange(null, null, type);
  16307. _this.addCourseWorks(i);
  16308. } else if (type == 4) {
  16309. _this.addPz("3", data.Location);
  16310. } else if (type == 5) {
  16311. _this.addImgDrawImG(data.Location);
  16312. } else if (type == 6) {
  16313. var _ftype = 1;
  16314. if (
  16315. c.indexOf(
  16316. data.Location.split(".")[
  16317. data.Location.split(".").length - 1
  16318. ].toLocaleUpperCase()
  16319. ) != -1
  16320. ) {
  16321. _ftype = 5;
  16322. } else if (
  16323. b.indexOf(
  16324. data.Location.split(".")[
  16325. data.Location.split(".").length - 1
  16326. ].toLocaleUpperCase()
  16327. ) != -1
  16328. ) {
  16329. _ftype = 4;
  16330. } else {
  16331. _ftype = 1;
  16332. }
  16333. _this.plworkFile.push({
  16334. name: file.name,
  16335. url: data.Location,
  16336. uid: file.uid,
  16337. fileType: _ftype,
  16338. username:
  16339. _this.plworkFile.length > 10
  16340. ? _this.plworkFile.length + 1
  16341. : "0" + (_this.plworkFile.length + 1),
  16342. });
  16343. } else if (type == 7) {
  16344. _this.addCourseWorksGong(i, data.Location, 32);
  16345. } else if (type == 8) {
  16346. _this.addCourseWorksGong(i, data.Location, 57);
  16347. }
  16348. _this.imgChange(null, null, type);
  16349. console.log(data.Location);
  16350. // _this.$message.success('上传成功'+data.Location)
  16351. }
  16352. });
  16353. }
  16354. },
  16355. async beforeUpload3(event, type, i) {
  16356. // this.$message.success('进入上传')
  16357. let file = "";
  16358. let cfindex2 = 0;
  16359. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16360. file = event.target.files[cfindex];
  16361. var credentials = {
  16362. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16363. secretAccessKey: "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",
  16364. }; //秘钥形式的登录上传
  16365. window.AWS.config.update(credentials);
  16366. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16367. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16368. var _this = this;
  16369. // _this.progress = 0;
  16370. _this.proVisible2 = true;
  16371. var b = [
  16372. "DOC",
  16373. "DOCX",
  16374. "DOCM",
  16375. "DOTM",
  16376. "DOTX",
  16377. "PPTX",
  16378. "PPSX",
  16379. "PPT",
  16380. "PPS",
  16381. "PPTM",
  16382. "POTM",
  16383. "PPAM",
  16384. "POTX",
  16385. "PPSM",
  16386. ];
  16387. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16388. var photoA = [
  16389. "BMP",
  16390. "GIF",
  16391. "PNG",
  16392. "JPEG",
  16393. "JPG",
  16394. "TIF",
  16395. "PCX",
  16396. "TGA",
  16397. "EXIF",
  16398. "FPX",
  16399. "SVG",
  16400. "APNG",
  16401. ];
  16402. if (
  16403. photoA.indexOf(
  16404. file.name
  16405. .split(".")
  16406. [file.name.split(".").length - 1].toLocaleUpperCase()
  16407. ) != -1 &&
  16408. type != 4
  16409. ) {
  16410. // const blob = await imageConversion.compress(file, 0.8)
  16411. file = await this.pngToWhiteBg(file);
  16412. const blob = await imageConversion.compressAccurately(file, 256);
  16413. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16414. file = new File([blob], file.name, { type: file.type });
  16415. }
  16416. if (file) {
  16417. var params = {
  16418. Key:
  16419. file.name.split(".")[0] +
  16420. new Date().getTime() +
  16421. "." +
  16422. file.name.split(".")[file.name.split(".").length - 1],
  16423. ContentType: file.type,
  16424. Body: file,
  16425. "Access-Control-Allow-Credentials": "*",
  16426. ACL: "public-read",
  16427. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16428. var options = {
  16429. // partSize: 2048 * 1024 * 1024,
  16430. partSize: 1024 * 1024 * 1024,
  16431. queueSize: 2,
  16432. leavePartsOnError: true,
  16433. };
  16434. bucket
  16435. .upload(params, options)
  16436. .on("httpUploadProgress", function (evt) {
  16437. //这里可以写进度条
  16438. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16439. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16440. })
  16441. .send(function (err, data) {
  16442. // _this.progress = 100;
  16443. cfindex2++;
  16444. setTimeout(() => {
  16445. if (
  16446. cfindex2 == event.target.files.length - 1 ||
  16447. cfindex2 > event.target.files.length - 1
  16448. ) {
  16449. _this.proVisible2 = false;
  16450. }
  16451. }, 1000);
  16452. if (err) {
  16453. var a = _this.$refs.upload1.uploadFiles;
  16454. a.splice(a.length - 1, a.length);
  16455. _this.$message.error("上传失败");
  16456. } else {
  16457. // _this.$message.success('上传成功')
  16458. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16459. var c = [
  16460. "AVI",
  16461. "NAVI",
  16462. "MPEG",
  16463. "ASF",
  16464. "MOV",
  16465. "WMV",
  16466. "3GP",
  16467. "RM",
  16468. "RMVB",
  16469. "FLV",
  16470. "F4V",
  16471. "H.264",
  16472. "H.265",
  16473. "REAL VIDEO",
  16474. "MKV",
  16475. "WebM",
  16476. "HDDVD",
  16477. "MP4",
  16478. "MPG",
  16479. "M4V",
  16480. "MGV",
  16481. "OGV",
  16482. "QTM",
  16483. "STR",
  16484. "AMC",
  16485. "DVX",
  16486. "EVO",
  16487. "DAT",
  16488. "OGG",
  16489. "OGM",
  16490. ];
  16491. if (type == 1) {
  16492. _this.studyJuri[0].cover.push({
  16493. name: file.name,
  16494. url: data.Location,
  16495. uid: file.uid,
  16496. });
  16497. if (
  16498. c.indexOf(
  16499. _this.studyJuri[0].cover[0].url
  16500. .split(".")
  16501. [
  16502. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16503. ].toLocaleUpperCase()
  16504. ) != -1
  16505. ) {
  16506. _this.fileType = 2;
  16507. } else if (
  16508. b.indexOf(
  16509. _this.studyJuri[0].cover[0].url
  16510. .split(".")
  16511. [
  16512. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16513. ].toLocaleUpperCase()
  16514. ) != -1
  16515. ) {
  16516. _this.fileType = 1;
  16517. } else {
  16518. _this.fileType = 0;
  16519. }
  16520. _this.imgChange(null, null, type);
  16521. } else if (type == 2) {
  16522. _this.upToolImg = data.Location;
  16523. _this.imgChange(null, null, type);
  16524. _this.addCourseWorks(i);
  16525. } else if (type == 4) {
  16526. _this.addPz("3", data.Location);
  16527. } else if (type == 5) {
  16528. _this.addImgDrawImG(data.Location);
  16529. } else if (type == 6) {
  16530. var _ftype = 1;
  16531. if (
  16532. c.indexOf(
  16533. data.Location.split(".")[
  16534. data.Location.split(".").length - 1
  16535. ].toLocaleUpperCase()
  16536. ) != -1
  16537. ) {
  16538. _ftype = 5;
  16539. } else if (
  16540. b.indexOf(
  16541. data.Location.split(".")[
  16542. data.Location.split(".").length - 1
  16543. ].toLocaleUpperCase()
  16544. ) != -1
  16545. ) {
  16546. _ftype = 4;
  16547. } else {
  16548. _ftype = 1;
  16549. }
  16550. _this.plworkFile.push({
  16551. name: file.name,
  16552. url: data.Location,
  16553. uid: file.uid,
  16554. fileType: _ftype,
  16555. username:
  16556. _this.plworkFile.length + 1 > 9
  16557. ? _this.plworkFile.length + 1
  16558. : "0" + (_this.plworkFile.length + 1),
  16559. });
  16560. }
  16561. _this.imgChange(null, null, type);
  16562. console.log(data.Location);
  16563. // _this.$message.success('上传成功'+data.Location)
  16564. }
  16565. });
  16566. }
  16567. }
  16568. },
  16569. beforeUpload2(event, type) {
  16570. var file = event.target.files[0];
  16571. var credentials = {
  16572. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16573. secretAccessKey: "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",
  16574. }; //秘钥形式的登录上传
  16575. window.AWS.config.update(credentials);
  16576. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16577. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16578. var _this = this;
  16579. _this.progress = 0;
  16580. _this.proVisible = true;
  16581. if (file) {
  16582. var params = {
  16583. Key:
  16584. file.name.split(".")[0] +
  16585. new Date().getTime() +
  16586. "." +
  16587. file.name.split(".")[file.name.split(".").length - 1],
  16588. ContentType: file.type,
  16589. Body: file,
  16590. "Access-Control-Allow-Credentials": "*",
  16591. ACL: "public-read",
  16592. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16593. var options = {
  16594. partSize: 2048 * 1024 * 1024,
  16595. queueSize: 2,
  16596. leavePartsOnError: true,
  16597. };
  16598. bucket
  16599. .upload(params, options)
  16600. .on("httpUploadProgress", function (evt) {
  16601. //这里可以写进度条
  16602. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16603. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16604. })
  16605. .send(function (err, data) {
  16606. _this.progress = 100;
  16607. setTimeout(() => {
  16608. _this.proVisible = false;
  16609. }, 1000);
  16610. if (err) {
  16611. var a = _this.$refs.upload1.uploadFiles;
  16612. a.splice(a.length - 1, a.length);
  16613. _this.$message.error("上传失败");
  16614. } else {
  16615. if (type == 2) {
  16616. _this.studyJuri[0].upVedio.push({
  16617. name: file.name,
  16618. url: data.Location,
  16619. uid: file.uid,
  16620. });
  16621. _this.imgChange(null, null, type);
  16622. } else if (type == 3) {
  16623. _this.studyJuri[0].upFile.push({
  16624. name: file.name,
  16625. url: data.Location,
  16626. uid: file.uid,
  16627. });
  16628. _this.imgChange(null, null, type);
  16629. }
  16630. console.log(data.Location);
  16631. }
  16632. });
  16633. }
  16634. },
  16635. allScrell() {
  16636. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16637. },
  16638. nextOrpreSteps(t) {
  16639. if (this.IsFollow && this.tType == 2) {
  16640. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16641. return;
  16642. }
  16643. var b = this.chapInfoList.length - 1;
  16644. if (t == 0) {
  16645. if (this.courseType == 0) {
  16646. if (this.taskCount == 0) {
  16647. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16648. if (this.IsLookOpen) {
  16649. if (
  16650. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16651. ) {
  16652. if (
  16653. this.courseDetail.userid != this.userid &&
  16654. (!this.courseDetail.course_teacher ||
  16655. (this.courseDetail.course_teacher &&
  16656. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16657. ) {
  16658. this.$message.error("任务未解锁");
  16659. } else {
  16660. this.$message.error("上一任务未解锁");
  16661. }
  16662. return;
  16663. }
  16664. }
  16665. this.navList[this.courseType].isOpen = false;
  16666. this.courseType = b;
  16667. this.taskCount =
  16668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16669. .length - 1;
  16670. this.navList[this.courseType].isOpen = true;
  16671. } else {
  16672. this.taskCount--;
  16673. }
  16674. } else {
  16675. if (this.taskCount == 0) {
  16676. this.navList[this.courseType].isOpen = false;
  16677. this.courseType--;
  16678. this.taskCount =
  16679. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16680. .length - 1;
  16681. this.navList[this.courseType].isOpen = true;
  16682. } else {
  16683. this.taskCount--;
  16684. }
  16685. }
  16686. } else {
  16687. if (this.courseType == b) {
  16688. if (
  16689. this.taskCount ==
  16690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16691. 1
  16692. ) {
  16693. this.navList[this.courseType].isOpen = false;
  16694. this.courseType = 0;
  16695. this.taskCount = 0;
  16696. this.navList[this.courseType].isOpen = true;
  16697. } else {
  16698. var bbb = parseInt(this.taskCount) + 1;
  16699. if (
  16700. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16701. .isLook &&
  16702. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16703. (this.courseDetail.course_teacher &&
  16704. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16705. this.IsLookOpen
  16706. ) {
  16707. this.$message.error("任务未解锁");
  16708. return;
  16709. }
  16710. this.taskCount++;
  16711. if (this.IsLookOpen) {
  16712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16713. this.taskCount
  16714. ].isLook = true;
  16715. this.addCourseState(3);
  16716. }
  16717. }
  16718. } else {
  16719. if (
  16720. this.taskCount ==
  16721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16722. 1
  16723. ) {
  16724. var bbb = parseInt(this.courseType) + 1;
  16725. if (
  16726. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16727. this.courseDetail.userid != this.userid &&
  16728. (!this.courseDetail.course_teacher ||
  16729. (this.courseDetail.course_teacher &&
  16730. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16731. this.IsLookOpen
  16732. ) {
  16733. this.$message.error("任务未解锁");
  16734. return;
  16735. }
  16736. this.navList[this.courseType].isOpen = false;
  16737. this.courseType++;
  16738. this.taskCount = 0;
  16739. this.navList[this.courseType].isOpen = true;
  16740. } else {
  16741. var bbb = parseInt(this.taskCount) + 1;
  16742. if (
  16743. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16744. .isLook &&
  16745. this.courseDetail.userid != this.userid &&
  16746. (!this.courseDetail.course_teacher ||
  16747. (this.courseDetail.course_teacher &&
  16748. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16749. this.IsLookOpen
  16750. ) {
  16751. this.$message.error("任务未解锁");
  16752. return;
  16753. }
  16754. this.taskCount++;
  16755. }
  16756. if (this.IsLookOpen) {
  16757. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16758. this.taskCount
  16759. ].isLook = true;
  16760. this.addCourseState(3);
  16761. }
  16762. }
  16763. // if (
  16764. // this.taskCount ==
  16765. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16766. // ) {
  16767. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16768. // } else {
  16769. // this.taskCount++;
  16770. // }
  16771. }
  16772. document.scrollingElement.scrollTop = 0;
  16773. this.showType = 7;
  16774. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16775. // if (this.vedio[this.taskCount].length > 0) {
  16776. // var a =
  16777. // document.getElementsByClassName("box_course")[this.taskCount]
  16778. // .offsetHeight;
  16779. // document.getElementsByClassName("vedioList")[
  16780. // this.taskCount
  16781. // ].style.height = a + "px";
  16782. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16783. // a - 40 + "px";
  16784. // }
  16785. this.isNoHomeWork = false;
  16786. (this.studyJuri = [
  16787. {
  16788. content: "",
  16789. cover: [],
  16790. upVedio: [],
  16791. upFile: [],
  16792. },
  16793. ]),
  16794. (this.radio = []);
  16795. this.isClickNav = "";
  16796. this.selectPz();
  16797. this.getHomeWork();
  16798. this.getCourseDetail(2);
  16799. this.$forceUpdate();
  16800. },
  16801. openTask(s, n, i,ctype) {
  16802. if (this.IsFollow && this.tType == 2) {
  16803. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16804. return;
  16805. }
  16806. if (this.IsLookOpen &&
  16807. this.courseDetail.userid != this.userid &&
  16808. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16809. if (
  16810. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16811. this.courseDetail.userid != this.userid &&
  16812. (!this.courseDetail.course_teacher ||
  16813. (this.courseDetail.course_teacher &&
  16814. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16815. ) {
  16816. this.$message.error("任务未解锁");
  16817. return;
  16818. }
  16819. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16820. if (
  16821. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16822. .isLook
  16823. ) {
  16824. this.$message.error("上一任务未解锁");
  16825. return;
  16826. }
  16827. } else if (s > this.courseType) {
  16828. if (n > 0) {
  16829. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16830. this.$message.error("上一任务未解锁");
  16831. return;
  16832. }
  16833. } else {
  16834. if (
  16835. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16836. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16837. ].isLook
  16838. ) {
  16839. this.$message.error("上一任务未解锁");
  16840. return;
  16841. }
  16842. }
  16843. }
  16844. }
  16845. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16846. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16847. return;
  16848. }
  16849. let flag = this.courseType==s;
  16850. this.courseType = s;
  16851. this.navId = i;
  16852. this.taskCount = n;
  16853. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16854. if(ctype == 2){
  16855. this.navList[s].task[n].isOpen = true
  16856. }else{
  16857. this.navList[this.courseType].task[this.taskCount].isOpen =
  16858. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16859. }
  16860. if (this.IsLookOpen) {
  16861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16862. this.taskCount
  16863. ].isLook = true;
  16864. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16865. this.addCourseState(3,yym);
  16866. }
  16867. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16868. this.isCloseList[ci].isClose = 0;
  16869. this.isCloseList[ci].isCloseBoolean = false;
  16870. this.$nextTick(()=>{
  16871. setTimeout(()=>{
  16872. setTimeout(()=>{
  16873. this.panToolHeight('tool-'+ci);
  16874. }, 0)
  16875. }, 0)
  16876. })
  16877. }
  16878. this.showType = 0;
  16879. this.isNoHomeWork = false;
  16880. (this.studyJuri = [
  16881. {
  16882. content: "",
  16883. cover: [],
  16884. upVedio: [],
  16885. upFile: [],
  16886. },
  16887. ]),
  16888. (this.radio = []);
  16889. document.scrollingElement.scrollTop = 0;
  16890. // setTimeout(() => {
  16891. // let a = document.getElementById(i);
  16892. // if (a.offsetTop - 110 == 0) {
  16893. // window.scrollTo(0, 0);
  16894. // } else {
  16895. // window.scrollTo(0, a.offsetTop);
  16896. // }
  16897. // }, 0);
  16898. for (var z = 0; z < this.navList.length; z++) {
  16899. for (var q = 0; q < this.navList[z].task.length; q++) {
  16900. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16901. this.navList[z].task[q].tool[w].isTool = false;
  16902. }
  16903. }
  16904. }
  16905. this.selectPz();
  16906. this.getHomeWork();
  16907. this.getCourseDetail(2);
  16908. if(flag){
  16909. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16910. }else{
  16911. 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>`)
  16912. }
  16913. },
  16914. get(i) {
  16915. if (this.IsFollow && this.tType == 2) {
  16916. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16917. return;
  16918. }
  16919. // for(var k=0;k<this.navList.length;k++){
  16920. // this.navList[k].isOpen = false;
  16921. // }
  16922. // this.navList[i].isOpen = true;
  16923. let a = this.navList[i].isOpen
  16924. this.navList[i].isOpen = !this.navList[i].isOpen;
  16925. this.$forceUpdate()
  16926. if (this.navList[i].isOpen) {
  16927. this.openTask(i, 0, (i + "-0"),2);
  16928. }
  16929. },
  16930. addQuestion() {
  16931. this.answerList.push({
  16932. answerTitle: this.answerQ,
  16933. answer: this.questionAnswer,
  16934. });
  16935. let params = [
  16936. {
  16937. uid: this.userid,
  16938. cid: this.id,
  16939. stage: this.courseType,
  16940. task: this.taskCount,
  16941. tool: this.toolindex,
  16942. content: JSON.stringify(this.answerList),
  16943. type: 3,
  16944. },
  16945. ];
  16946. this.ajax
  16947. .post(this.$store.state.api + "addCourseWorks", params)
  16948. .then((res) => {
  16949. this.$message({
  16950. message: "提交成功",
  16951. type: "success",
  16952. });
  16953. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16954. this.answerList = [];
  16955. this.answerDialogVisible = false;
  16956. this.selectStudent();
  16957. this.selectSWorks();
  16958. this.selectSLook();
  16959. })
  16960. .catch((err) => {
  16961. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16962. this.$message.error("提交失败");
  16963. console.error(err);
  16964. });
  16965. },
  16966. addQuestionTeacher() {
  16967. this.answerList.push({
  16968. answerTitle: this.answerQ,
  16969. answer: this.questionAnswer,
  16970. });
  16971. let params = [
  16972. {
  16973. uid: this.sStudent.userid,
  16974. cid: this.id,
  16975. stage: this.courseType,
  16976. task: this.taskCount,
  16977. tool: this.toolindex,
  16978. content: JSON.stringify(this.answerList),
  16979. type: 3,
  16980. ateacher: this.userid,
  16981. },
  16982. ];
  16983. this.ajax
  16984. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16985. .then((res) => {
  16986. this.$message({
  16987. message: "提交成功",
  16988. type: "success",
  16989. });
  16990. this.answerList = [];
  16991. this.questionAnswer = "";
  16992. this.answerDialogVisibleTeacher = false;
  16993. this.selectStudent();
  16994. this.selectSWorks();
  16995. this.selectSLook();
  16996. })
  16997. .catch((err) => {
  16998. this.$message.error("提交失败");
  16999. console.error(err);
  17000. });
  17001. },
  17002. refreshCourse() {
  17003. // window.location.reload();
  17004. this.navList = [];
  17005. this.getCourseDetail(1);
  17006. },
  17007. getCourseDetail(type, gindex) {
  17008. let loading;
  17009. if (type != 2) {
  17010. loading = this.$loading.service({
  17011. background: "rgba(255, 255, 255, 0.7)",
  17012. target: document.querySelector(".student_table"),
  17013. });
  17014. }
  17015. this.downLoading = false
  17016. // this.navList[0].isOpen = false;
  17017. // this.navList[this.courseType].isOpen = true;
  17018. // this.courseType = this.courseTypeLine;
  17019. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17020. let params = {
  17021. courseId: this.id,
  17022. };
  17023. this.ajax
  17024. .get(this.$store.state.api + "selectCourseDetail3", params)
  17025. .then((res) => {
  17026. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17027. if (type != 2) {
  17028. loading.close();
  17029. if (
  17030. this.courseType >
  17031. JSON.parse(res.data[0][0].chapters).length - 1
  17032. ) {
  17033. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17034. }
  17035. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17036. .chapterInfo[0].taskJson;
  17037. var b = [
  17038. "AVI",
  17039. "NAVI",
  17040. "MPEG",
  17041. "ASF",
  17042. "MOV",
  17043. "WMV",
  17044. "3GP",
  17045. "RM",
  17046. "RMVB",
  17047. "FLV",
  17048. "F4V",
  17049. "H.264",
  17050. "H.265",
  17051. "REAL VIDEO",
  17052. "MKV",
  17053. "WebM",
  17054. "HDDVD",
  17055. "MP4",
  17056. "MPG",
  17057. "M4V",
  17058. "MGV",
  17059. "OGV",
  17060. "QTM",
  17061. "STR",
  17062. "AMC",
  17063. "DVX",
  17064. "EVO",
  17065. "DAT",
  17066. "OGG",
  17067. "OGM",
  17068. "MP3",
  17069. ];
  17070. let _chapterData = [];
  17071. for (var i = 0; i < a.length; i++) {
  17072. var c = a[i].chapterData;
  17073. this.vedio[i] = [];
  17074. this.textList[i] = [];
  17075. this.lineList[i] = [];
  17076. this.chapToolList[i] = [];
  17077. this.file[i] = [];
  17078. this.fileC[i] = [];
  17079. _chapterData[i] = c.filter((el) => {
  17080. return el.type != 12;
  17081. });
  17082. this.fileC[i] = c.filter((el) => {
  17083. return el.type == 12;
  17084. });
  17085. if (this.tType == 2) {
  17086. if (this.fileC[i].length) {
  17087. let yym1 = this.fileC[i].filter(e=>{
  17088. if(!converter(e.name).includes(converter("教案"))){
  17089. return e
  17090. }
  17091. })
  17092. this.fileC[i] = yym1
  17093. }
  17094. }
  17095. // else if (c[j].type == 12) {
  17096. // this.fileC[i].push(c[j]);
  17097. // }
  17098. for (var j = 0; j < c.length; j++) {
  17099. if (c[j].type == 7) {
  17100. this.chapToolList[i].push(c[j]);
  17101. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17102. this.lineList[i].push(c[j]);
  17103. } else if (c[j].type == 6) {
  17104. this.textList[i].push(c[j]);
  17105. } else {
  17106. if (
  17107. b.indexOf(
  17108. c[j].url
  17109. .split(".")
  17110. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17111. ) != -1
  17112. ) {
  17113. this.vedio[i].push(c[j]);
  17114. } else {
  17115. this.file[i].push(c[j]);
  17116. }
  17117. }
  17118. }
  17119. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17120. d.sources[0].src =
  17121. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17122. this.playerO[i] = d;
  17123. }
  17124. this.courseDetail = res.data[0][0];
  17125. if(this.tType == 2){
  17126. this.tcid = this.arrayToArray(
  17127. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17128. this.classId ? this.classId.split(",") : []
  17129. ).join(",");
  17130. }else{
  17131. this.tcid = this.arrayToArray(
  17132. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17133. this.tcid2 ? this.tcid2.split(",") : []
  17134. ).join(",");
  17135. }
  17136. this.evalua = res.data[0][0].evaId;
  17137. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17138. this.courseType
  17139. ];
  17140. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17141. if (this.tcid && res.data[1].length) {
  17142. let _inviteA = [];
  17143. for (var ik = 0; ik < res.data[1].length; ik++) {
  17144. _inviteA.push({
  17145. cid: res.data[1][ik].classid,
  17146. ic: res.data[1][ik].code,
  17147. });
  17148. }
  17149. for (var ik = 0; ik < _inviteA.length; ik++) {
  17150. if (
  17151. this.arrayToArray(
  17152. _inviteA[ik].cid.split(","),
  17153. this.tcid.split(",")
  17154. ).length
  17155. ) {
  17156. this.inviteCode = _inviteA[ik].ic;
  17157. break;
  17158. }
  17159. }
  17160. }
  17161. for (var l = 0; l < this.chapInfoList.length; l++) {
  17162. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17163. for (var m = 0; m < w.length; m++) {
  17164. w[m].id = l + "-" + m;
  17165. }
  17166. }
  17167. if (
  17168. _chapterData[this.taskCount].length &&
  17169. _chapterData[this.taskCount][0].type == 2
  17170. ) {
  17171. this.showType = 0;
  17172. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17173. } else {
  17174. if (_chapterData[this.taskCount].length > 0) {
  17175. let _url = _chapterData[this.taskCount][0].url;
  17176. if (
  17177. _chapterData[this.taskCount][0].type == 8 ||
  17178. _chapterData[this.taskCount][0].type == 14 ||
  17179. _chapterData[this.taskCount][0].type == 15
  17180. ) {
  17181. this.showType = 2;
  17182. if (
  17183. _url.indexOf("https://") == -1 &&
  17184. _url.indexOf("http://") == -1
  17185. ) {
  17186. _url = "https://" + _url;
  17187. }
  17188. this.pptImgUrl1 = _url;
  17189. } else if (_chapterData[this.taskCount][0].type == 3) {
  17190. if (
  17191. _url
  17192. .split(".")
  17193. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17194. ) {
  17195. this.showType = 3;
  17196. this.pptImgUrl1 = _url;
  17197. } else if (
  17198. this.isAssetTypeAnImage(
  17199. _url
  17200. .split(".")
  17201. [_url.split(".").length - 1].toLocaleLowerCase()
  17202. )
  17203. ) {
  17204. this.showType = 4;
  17205. this.pptImgUrl1 = _url;
  17206. } else {
  17207. this.showType = 2;
  17208. this.pptImgUrl1 =
  17209. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17210. encodeURIComponent(_url);
  17211. }
  17212. } else if (_chapterData[this.taskCount][0].type == 13) {
  17213. this.showType = 4;
  17214. this.pptImgUrl1 = _url;
  17215. } else if (_chapterData[this.taskCount][0].type == 6) {
  17216. this.showType = 1;
  17217. this.text = this.textList[this.taskCount][0];
  17218. }
  17219. }
  17220. }
  17221. this.isClickNav = 0;
  17222. if (
  17223. !_chapterData[this.taskCount].length ||
  17224. _chapterData[this.taskCount][0].type == 12
  17225. ) {
  17226. this.isClickNav = "";
  17227. this.showType = "";
  17228. }
  17229. if (this.tType == 2) {
  17230. _chapterData.forEach((e,i)=>{
  17231. if (e.length) {
  17232. let yym = e.filter(k=>{
  17233. if(!converter(k.name).includes(converter("教案"))){
  17234. return k
  17235. }
  17236. })
  17237. _chapterData[i] = yym
  17238. }
  17239. })
  17240. }
  17241. this.vChapterData = _chapterData;
  17242. } else {
  17243. this.showType = 0;
  17244. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17245. .chapterInfo[0].taskJson;
  17246. var b = [
  17247. "AVI",
  17248. "NAVI",
  17249. "MPEG",
  17250. "ASF",
  17251. "MOV",
  17252. "WMV",
  17253. "3GP",
  17254. "RM",
  17255. "RMVB",
  17256. "FLV",
  17257. "F4V",
  17258. "H.264",
  17259. "H.265",
  17260. "REAL VIDEO",
  17261. "MKV",
  17262. "WebM",
  17263. "HDDVD",
  17264. "MP4",
  17265. "MPG",
  17266. "M4V",
  17267. "MGV",
  17268. "OGV",
  17269. "QTM",
  17270. "STR",
  17271. "AMC",
  17272. "DVX",
  17273. "EVO",
  17274. "DAT",
  17275. "OGG",
  17276. "OGM",
  17277. "MP3",
  17278. ];
  17279. let _chapterData = [];
  17280. for (var i = 0; i < a.length; i++) {
  17281. var c = a[i].chapterData;
  17282. this.vedio[i] = [];
  17283. this.textList[i] = [];
  17284. this.lineList[i] = [];
  17285. this.chapToolList[i] = [];
  17286. this.file[i] = [];
  17287. this.fileC[i] = [];
  17288. _chapterData[i] = c.filter((el) => {
  17289. return el.type != 12;
  17290. });
  17291. this.fileC[i] = c.filter((el) => {
  17292. return el.type == 12;
  17293. });
  17294. if (this.tType == 2) {
  17295. if (this.fileC[i].length) {
  17296. let yym1 = this.fileC[i].filter(e=>{
  17297. if(!converter(e.name).includes(converter("教案"))){
  17298. return e
  17299. }
  17300. })
  17301. this.fileC[i] = yym1
  17302. }
  17303. }
  17304. for (var j = 0; j < c.length; j++) {
  17305. if (c[j].type == 7) {
  17306. this.chapToolList[i].push(c[j]);
  17307. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17308. this.lineList[i].push(c[j]);
  17309. } else if (c[j].type == 6) {
  17310. this.textList[i].push(c[j]);
  17311. } else {
  17312. if (
  17313. b.indexOf(
  17314. c[j].url
  17315. .split(".")
  17316. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17317. ) != -1
  17318. ) {
  17319. this.vedio[i].push(c[j]);
  17320. } else {
  17321. this.file[i].push(c[j]);
  17322. }
  17323. }
  17324. }
  17325. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17326. d.sources[0].src =
  17327. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17328. this.playerO[i] = d;
  17329. }
  17330. if (
  17331. _chapterData[this.taskCount].length &&
  17332. _chapterData[this.taskCount][0].type == 2
  17333. ) {
  17334. this.showType = 0;
  17335. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17336. } else {
  17337. if (_chapterData[this.taskCount].length > 0) {
  17338. let _url = _chapterData[this.taskCount][0].url;
  17339. if (
  17340. _chapterData[this.taskCount][0].type == 8 ||
  17341. _chapterData[this.taskCount][0].type == 14 ||
  17342. _chapterData[this.taskCount][0].type == 15
  17343. ) {
  17344. this.showType = 2;
  17345. if (
  17346. _url.indexOf("https://") == -1 &&
  17347. _url.indexOf("http://") == -1
  17348. ) {
  17349. _url = "https://" + _url;
  17350. }
  17351. this.pptImgUrl1 = _url;
  17352. } else if (_chapterData[this.taskCount][0].type == 3) {
  17353. if (
  17354. _url
  17355. .split(".")
  17356. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17357. ) {
  17358. this.showType = 3;
  17359. this.pptImgUrl1 = _url;
  17360. } else if (
  17361. this.isAssetTypeAnImage(
  17362. _url
  17363. .split(".")
  17364. [_url.split(".").length - 1].toLocaleLowerCase()
  17365. )
  17366. ) {
  17367. this.showType = 4;
  17368. this.pptImgUrl1 = _url;
  17369. } else {
  17370. this.showType = 2;
  17371. this.pptImgUrl1 =
  17372. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17373. encodeURIComponent(_url);
  17374. }
  17375. } else if (_chapterData[this.taskCount][0].type == 13) {
  17376. this.showType = 4;
  17377. this.pptImgUrl1 = _url;
  17378. } else if (_chapterData[this.taskCount][0].type == 6) {
  17379. this.showType = 1;
  17380. this.text = this.textList[this.taskCount][0];
  17381. }
  17382. }
  17383. }
  17384. this.isClickNav = 0;
  17385. if (
  17386. !_chapterData[this.taskCount].length ||
  17387. _chapterData[this.taskCount][0].type == 12
  17388. ) {
  17389. this.isClickNav = "";
  17390. this.showType = "";
  17391. }
  17392. console.log('_chapterData66666',_chapterData);
  17393. if (this.tType == 2) {
  17394. _chapterData.forEach((e,i)=>{
  17395. if (e.length) {
  17396. let yym = e.filter(k=>{
  17397. if(!converter(k.name).includes(converter("教案"))){
  17398. return k
  17399. }
  17400. })
  17401. _chapterData[i] = yym
  17402. }
  17403. })
  17404. }
  17405. this.vChapterData = _chapterData;
  17406. this.$forceUpdate();
  17407. }
  17408. // else {
  17409. // this.courseDetail = res.data[0][0];
  17410. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17411. // }
  17412. let _this = this;
  17413. if (_this.timer) {
  17414. clearInterval(_this.timer);
  17415. _this.timer = null;
  17416. }
  17417. if (_this.tcid) {
  17418. _this.getCourseGroup(gindex);
  17419. } else {
  17420. _this.selectSWorks(gindex);
  17421. }
  17422. _this.selectStudent();
  17423. _this.selectSLook();
  17424. _this.getPick();
  17425. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17426. _this.setCTask();
  17427. }
  17428. if (_this.dialogVisibleGroup) {
  17429. _this.groupJson =
  17430. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17431. _this.taskCount
  17432. ].toolChoose[_this.toolindex].groupJson;
  17433. }
  17434. _this.$nextTick(() => {
  17435. setTimeout(() => {
  17436. _this.checkEva();
  17437. }, 1000);
  17438. });
  17439. _this.timer = setInterval(function () {
  17440. // _this.getCourseDetail(2);
  17441. if (_this.tcid) {
  17442. _this.getCourseGroup();
  17443. } else {
  17444. _this.selectSWorks();
  17445. }
  17446. _this.selectStudent();
  17447. _this.selectSLook();
  17448. _this.getPick();
  17449. // _this.getSplitScreenData();
  17450. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17451. _this.setCTask();
  17452. }
  17453. if (_this.dialogVisibleGroup) {
  17454. _this.groupJson =
  17455. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17456. _this.taskCount
  17457. ].toolChoose[_this.toolindex].groupJson;
  17458. }
  17459. if (_this.tType == 4 || _this.ispzType == 4) {
  17460. _this.selectPz();
  17461. }
  17462. }, 5000);
  17463. if (_this.timer2 == null) {
  17464. _this.timer2 = setInterval(()=> {
  17465. _this.getSplitScreenData();//获取分屏数据
  17466. }, 5000);
  17467. }
  17468. _this.$nextTick(function () {
  17469. setTimeout(() => {
  17470. // var a =
  17471. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17472. // document.getElementsByClassName("vedioList")[0].style.height =
  17473. // a + "px";
  17474. // document.getElementsByClassName("navBox")[0].style.height =
  17475. // a - 40 + "px";
  17476. // if (_this.vedio[_this.taskCount].length > 0) {
  17477. // _this.vedioTime = [];
  17478. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17479. // _this.vedioTime[i] = document.getElementsByClassName(
  17480. // "vjs-duration-display"
  17481. // )[i].textContent;
  17482. // }
  17483. // }
  17484. }, 1000);
  17485. });
  17486. })
  17487. .catch((err) => {
  17488. loading.close();
  17489. console.error(err);
  17490. });
  17491. },
  17492. getCourseGroup(gindex) {
  17493. let params = {
  17494. cid: this.id,
  17495. classid: this.tcid ? this.tcid : "1",
  17496. };
  17497. this.ajax
  17498. .get(this.$store.state.api + "getCourseGroup", params)
  17499. .then((res) => {
  17500. if (res.data && res.data[0].length) {
  17501. if (!this.isGroup) {
  17502. let courseGroup = JSON.parse(res.data[0][0].group);
  17503. courseGroup.group = courseGroup.group.filter((el) => {
  17504. el.works = [];
  17505. return el;
  17506. });
  17507. if (courseGroup.isopen == 2) {
  17508. this.isGroup = false;
  17509. this.selectSWorks(gindex);
  17510. return;
  17511. }
  17512. this.courseGroup = courseGroup;
  17513. let groupPerson = res.data[1];
  17514. let group = JSON.parse(res.data[0][0].group).group;
  17515. let courseGroupStudent = {};
  17516. let courseGroupStudentUid = {};
  17517. for (var i = 0; i < group.length; i++) {
  17518. courseGroupStudent[group[i].id] = [];
  17519. courseGroupStudentUid[group[i].id] = [];
  17520. for (var j = 0; j < groupPerson.length; j++) {
  17521. if (groupPerson[j].groupCid == group[i].id) {
  17522. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17523. courseGroupStudentUid[group[i].id].push(
  17524. groupPerson[j].userid
  17525. );
  17526. }
  17527. }
  17528. }
  17529. this.courseGroupStudent = courseGroupStudent;
  17530. this.courseGroupStudentUid = courseGroupStudentUid;
  17531. }
  17532. if (this.courseGroup.isopen == 2) {
  17533. this.isGroup = false;
  17534. } else {
  17535. this.isGroup = true;
  17536. }
  17537. this.selectSWorks(gindex);
  17538. } else {
  17539. this.selectSWorks(gindex);
  17540. this.isGroup = false;
  17541. }
  17542. })
  17543. .catch((err) => {
  17544. // this.$message.error("网络不佳");
  17545. console.error(err);
  17546. });
  17547. },
  17548. setOperationTime() {
  17549. let _this = this;
  17550. if (_this.opertimer) {
  17551. clearInterval(_this.opertimer);
  17552. _this.opertimer = null;
  17553. }
  17554. _this.opertimer = setInterval(() => {
  17555. _this.setoTime("600");
  17556. }, 600000);
  17557. },
  17558. setoTime(time) {
  17559. let params = [
  17560. {
  17561. uid: this.userid,
  17562. cid: this.id,
  17563. type: "2",
  17564. time: time,
  17565. },
  17566. ];
  17567. this.ajax
  17568. .post(this.$store.state.api + "addOperationTimeT2", params)
  17569. .then((res) => {})
  17570. .catch((err) => {
  17571. console.error(err);
  17572. });
  17573. },
  17574. addPz(type, content) {
  17575. if (type == "1" && this.pzConText == "") {
  17576. this.$message.error("评论不能为空!");
  17577. return;
  17578. }
  17579. let params = [
  17580. {
  17581. cid: this.id,
  17582. uid: this.userid,
  17583. s: this.courseType,
  17584. t: this.taskCount,
  17585. c: type == "1" ? this.pzConText : content,
  17586. type: type,
  17587. },
  17588. ];
  17589. this.ajax
  17590. .post(this.$store.state.api + "addPz2", params)
  17591. .then((res) => {
  17592. this.$message({
  17593. message: "添加成功",
  17594. type: "success",
  17595. });
  17596. this.pzConText = "";
  17597. this.addPzDialog = false;
  17598. this.selectPz();
  17599. if(this.tType!=2){
  17600. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17601. }
  17602. })
  17603. .catch((err) => {
  17604. this.$message.error("添加失败");
  17605. console.error(err);
  17606. });
  17607. },
  17608. setReplyIndex(id, i) {
  17609. this.replyIndex = i;
  17610. this.replyPid = id;
  17611. this.replyDialogVisible = true;
  17612. },
  17613. addHf() {
  17614. if (this.reply == "") {
  17615. this.$message.error("回复不能为空!");
  17616. return;
  17617. }
  17618. let params = [
  17619. {
  17620. cid: this.id,
  17621. uid: this.userid,
  17622. s: this.courseType,
  17623. t: this.taskCount,
  17624. type: "1",
  17625. ct: 2,
  17626. pid: this.replyPid,
  17627. c: this.reply,
  17628. },
  17629. ];
  17630. this.ajax
  17631. .post(this.$store.state.api + "addHf", params)
  17632. .then((res) => {
  17633. this.reply = "";
  17634. this.$message({
  17635. message: "回复成功",
  17636. type: "success",
  17637. });
  17638. this.replyDialogVisible = false;
  17639. this.selectPz();
  17640. })
  17641. .catch((err) => {
  17642. this.$message.error("回复失败");
  17643. console.error(err);
  17644. });
  17645. },
  17646. deletePz(id) {
  17647. this.$confirm("确定删除此评论吗?", "提示", {
  17648. confirmButtonText: "确定",
  17649. cancelButtonText: "取消",
  17650. type: "warning",
  17651. })
  17652. .then(() => {
  17653. let params = [
  17654. {
  17655. id: id,
  17656. },
  17657. ];
  17658. this.ajax
  17659. .post(this.$store.state.api + "deletePz", params)
  17660. .then((res) => {
  17661. this.$message({
  17662. message: "删除成功",
  17663. type: "success",
  17664. });
  17665. this.selectPz();
  17666. })
  17667. .catch((err) => {
  17668. this.$message.error("网络异常");
  17669. console.error(err);
  17670. });
  17671. })
  17672. .catch(() => {});
  17673. },
  17674. deleteReply(id) {
  17675. this.$confirm("确定删除此回复吗?", "提示", {
  17676. confirmButtonText: "确定",
  17677. cancelButtonText: "取消",
  17678. type: "warning",
  17679. })
  17680. .then(() => {
  17681. let params = [
  17682. {
  17683. id: id,
  17684. },
  17685. ];
  17686. this.ajax
  17687. .post(this.$store.state.api + "deleteReply", params)
  17688. .then((res) => {
  17689. this.$message({
  17690. message: "删除成功",
  17691. type: "success",
  17692. });
  17693. this.selectPz();
  17694. })
  17695. .catch((err) => {
  17696. this.$message.error("网络异常");
  17697. console.error(err);
  17698. });
  17699. })
  17700. .catch(() => {});
  17701. },
  17702. setPz() {
  17703. if (this.ispzType == 4) {
  17704. this.ispzType = 0;
  17705. this.pzDialog = false;
  17706. return;
  17707. }
  17708. this.ispzType = 4;
  17709. this.pzDialog = true;
  17710. this.selectPz();
  17711. },
  17712. selectPz() {
  17713. let params = {
  17714. cid: this.id,
  17715. s: this.courseType,
  17716. t: this.taskCount,
  17717. type: this.pzStype,
  17718. uid: this.userid,
  17719. };
  17720. this.ajax
  17721. .get(this.$store.state.api + "selectPzListType", params)
  17722. .then((res) => {
  17723. this.pzList = res.data[0];
  17724. var a = res.data[1];
  17725. for (var i = 0; i < a.length; i++) {
  17726. for (var j = 0; j < this.pzList.length; j++) {
  17727. if (!this.pzList[j].hfList) {
  17728. this.pzList[j].hfList = [];
  17729. }
  17730. if (a[i].pid == this.pzList[j].id) {
  17731. this.pzList[j].hfList.push(a[i]);
  17732. }
  17733. }
  17734. }
  17735. })
  17736. .catch((err) => {
  17737. console.error(err);
  17738. });
  17739. },
  17740. // selectHf() {
  17741. // let params = {
  17742. // cid: this.id,
  17743. // s: this.courseType,
  17744. // t: this.taskCount,
  17745. // };
  17746. // this.ajax
  17747. // .get(this.$store.state.api + "selectHfList", params)
  17748. // .then((res) => {
  17749. // var a = res.data[0];
  17750. // for (var i = 0; i < a.length; i++) {
  17751. // for (var j = 0; j < this.pzList.length; j++) {
  17752. // if (!this.pzList[i].hfList) {
  17753. // this.pzList[i].hfList = [];
  17754. // }
  17755. // if (a[i].pid == this.pzList[j].id) {
  17756. // this.pzList[i].hfList.push(a[i]);
  17757. // }
  17758. // }
  17759. // }
  17760. // })
  17761. // .catch((err) => {
  17762. // console.error(err);
  17763. // });
  17764. // },
  17765. updateSLook() {
  17766. let params = {
  17767. sopen: this.sIsOpen == false ? 1 : 2,
  17768. cid: this.id,
  17769. };
  17770. this.ajax
  17771. .get(this.$store.state.api + "updateCourseSLook", params)
  17772. .then((res) => {
  17773. if (this.sIsOpen == true) {
  17774. this.$message({
  17775. message: "权限设置成功",
  17776. type: "success",
  17777. });
  17778. } else {
  17779. this.$message({
  17780. message: "权限关闭成功",
  17781. type: "success",
  17782. });
  17783. }
  17784. })
  17785. .catch((err) => {
  17786. console.error(err);
  17787. });
  17788. },
  17789. updateFollow() {
  17790. let params = [
  17791. {
  17792. sopen: this.IsFollow == false ? 1 : 2,
  17793. cid: this.id,
  17794. },
  17795. ];
  17796. this.ajax
  17797. .post(this.$store.state.api + "updateCourseFollow", params)
  17798. .then((res) => {
  17799. if (this.IsFollow == true) {
  17800. this.$message({
  17801. message: "开启成功",
  17802. type: "success",
  17803. });
  17804. } else {
  17805. this.$message({
  17806. message: "关闭成功",
  17807. type: "success",
  17808. });
  17809. }
  17810. this.setCTask();
  17811. })
  17812. .catch((err) => {
  17813. console.error(err);
  17814. });
  17815. },
  17816. setCTask() {
  17817. let params = [
  17818. {
  17819. sopen: this.courseType + "-" + this.taskCount,
  17820. cid: this.id,
  17821. },
  17822. ];
  17823. this.ajax
  17824. .post(this.$store.state.api + "updateCourseFollowC", params)
  17825. .then((res) => {})
  17826. .catch((err) => {
  17827. console.error(err);
  17828. });
  17829. },
  17830. updateLookOpen() {
  17831. let params = [
  17832. {
  17833. sopen: this.IsLookOpen == false ? 1 : 2,
  17834. cid: this.id,
  17835. },
  17836. ];
  17837. this.ajax
  17838. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17839. .then((res) => {
  17840. if (this.IsLookOpen == true) {
  17841. // if (this.courseType != 0 && this.taskCount != 0) {
  17842. // this.openTask(0, 0, "0-0");
  17843. // }
  17844. this.$message({
  17845. message: "权限设置成功",
  17846. type: "success",
  17847. });
  17848. } else {
  17849. this.$message({
  17850. message: "权限关闭成功",
  17851. type: "success",
  17852. });
  17853. }
  17854. this.getCourseState(2);
  17855. })
  17856. .catch((err) => {
  17857. console.error(err);
  17858. });
  17859. },
  17860. selectSLook() {
  17861. let params = {
  17862. cid: this.id,
  17863. };
  17864. this.ajax
  17865. .get(this.$store.state.api + "selectCourseSLook", params)
  17866. .then((res) => {
  17867. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17868. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17869. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17870. if (!this.IsLookOpen) {
  17871. this.setNavList();
  17872. }
  17873. // else {
  17874. this.getCourseState(1);
  17875. // }
  17876. if ((this.IsFollow && this.tType == 2)) {
  17877. this.setContent2(false);
  17878. let _followC = res.data[0][0].followC.split("-");
  17879. if (
  17880. this.courseType != _followC[0] ||
  17881. this.taskCount != _followC[1]
  17882. ) {
  17883. this.navList[this.courseType].isOpen = false;
  17884. this.courseType = _followC[0];
  17885. this.navList[this.courseType].isOpen = true;
  17886. this.taskCount = parseInt(_followC[1]);
  17887. this.navId = res.data[0][0].followC;
  17888. document.scrollingElement.scrollTop = 0;
  17889. this.getCourseDetail(2);
  17890. }
  17891. }
  17892. })
  17893. .catch((err) => {
  17894. console.error(err);
  17895. });
  17896. },
  17897. setNavList() {
  17898. if (this.navList.length == 0) {
  17899. this.navList = [];
  17900. var copyList = [];
  17901. for (var l = 0; l < this.chapInfoList.length; l++) {
  17902. var q = this.chapInfoList[l].dyName;
  17903. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17904. var e;
  17905. copyList.push({
  17906. dyName: q,
  17907. isOpen: l === 0 ? true : false,
  17908. task: [],
  17909. });
  17910. for (var r = 0; r < w.length; r++) {
  17911. e = w[r].task;
  17912. if (this.chapInfoList[l].easy == 1) {
  17913. copyList[l].task.push({
  17914. taskName: q,
  17915. id: l + "-" + r,
  17916. isLook: w[r].isLook,
  17917. isOpen: r === 0 ? true : false,
  17918. tool: [],
  17919. });
  17920. } else {
  17921. copyList[l].task.push({
  17922. taskName: e,
  17923. id: l + "-" + r,
  17924. isLook: w[r].isLook,
  17925. isOpen: r === 0 ? true : false,
  17926. tool: [],
  17927. });
  17928. }
  17929. var t = w[r].toolChoose;
  17930. for (var k = 0; k < t.length; k++) {
  17931. var tool = t[k].tool[0];
  17932. copyList[l].task[r].tool.push({
  17933. tool: tool,
  17934. isTool: false,
  17935. });
  17936. }
  17937. // this.navId = this.navId ? this.navId : l + "-" + r;
  17938. // this.navId = l + "-" + r;
  17939. }
  17940. }
  17941. this.navList = copyList;
  17942. this.navList[0].isOpen = false;
  17943. this.navList[this.courseType].isOpen = true;
  17944. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17945. } else {
  17946. this.setNavList2();
  17947. }
  17948. },
  17949. setNavList2() {
  17950. for (var l = 0; l < this.chapInfoList.length; l++) {
  17951. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17952. for (var r = 0; r < w.length; r++) {
  17953. this.navList[l].task[r].isLook = w[r].isLook;
  17954. }
  17955. }
  17956. if (
  17957. this.IsLookOpen &&
  17958. !this.navList[this.courseType].task[this.taskCount].isLook
  17959. ) {
  17960. this.openTask(0, 0, "0-0");
  17961. }
  17962. this.$forceUpdate();
  17963. },
  17964. getCourseState(type) {
  17965. let params = {
  17966. cid: this.id,
  17967. };
  17968. this.ajax
  17969. .get(this.$store.state.api + "getCourseState", params)
  17970. .then((res) => {
  17971. // if (res.data[0].length > 0) {
  17972. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17973. // }
  17974. if (res.data[0].length > 0 && type == 1) {
  17975. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17976. this.setNavList();
  17977. this.$forceUpdate();
  17978. } else if (res.data[0].length > 0 && type == 2) {
  17979. this.addCourseState(2);
  17980. } else {
  17981. // this.addCourseState(1);
  17982. }
  17983. })
  17984. .catch((err) => {
  17985. console.error(err);
  17986. });
  17987. },
  17988. addCourseState(type,val = '') {
  17989. let _state = val ? val : this.chapInfoList;
  17990. // this.courseType this.taskCount
  17991. if (type == 1 || type == 2) {
  17992. for (var i = 0; i < _state.length; i++) {
  17993. let el = _state[i].chapterInfo[0].taskJson;
  17994. for (var j = 0; j < el.length; j++) {
  17995. // if (i == 0 && j == 0) {
  17996. // el[j].isLook = true;
  17997. // } else {
  17998. // el[j].isLook = false;
  17999. // }
  18000. if (
  18001. this.courseType > i ||
  18002. (this.courseType == i && this.taskCount + 1 > j)
  18003. ) {
  18004. el[j].isLook = true;
  18005. } else {
  18006. el[j].isLook = false;
  18007. }
  18008. }
  18009. }
  18010. }
  18011. let params = [
  18012. {
  18013. cid: this.id,
  18014. state: JSON.stringify(_state),
  18015. },
  18016. ];
  18017. this.ajax
  18018. .post(
  18019. this.$store.state.api +
  18020. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18021. params
  18022. )
  18023. .then((res) => {
  18024. if (this.IsLookOpen) {
  18025. this.setNavList();
  18026. }
  18027. if (type == 3 && type == 2) {
  18028. this.getCourseState(1);
  18029. }
  18030. })
  18031. .catch((err) => {
  18032. console.error(err);
  18033. });
  18034. },
  18035. getHomeWork() {
  18036. let params = {
  18037. cid: this.id,
  18038. stage: this.courseType,
  18039. task: this.taskCount,
  18040. uid: this.userid,
  18041. };
  18042. this.ajax
  18043. .get(this.$store.state.api + "selectWork", params)
  18044. .then((res) => {
  18045. if (res.data[0].length > 0) {
  18046. this.studyJuri = JSON.parse(res.data[0][0].content);
  18047. this.isNoHomeWork = true;
  18048. }
  18049. })
  18050. .catch((err) => {
  18051. console.error(err);
  18052. });
  18053. },
  18054. isAssetTypeAnImage(ext) {
  18055. return (
  18056. [
  18057. "png",
  18058. "jpg",
  18059. "jpeg",
  18060. "bmp",
  18061. "gif",
  18062. "webp",
  18063. "psd",
  18064. "svg",
  18065. "tiff",
  18066. ].indexOf(ext) !== -1
  18067. );
  18068. },
  18069. switchVideo(media) {
  18070. this.playerO = {};
  18071. this.playerOptions.poster = "";
  18072. this.playerOptions.sources[0].src = media;
  18073. this.playerO = this.playerOptions;
  18074. },
  18075. onPlayerPlay() {},
  18076. onPlayerTimeupdate(player) {
  18077. let gklog = player.cache_.currentTime; //当前播放的秒数
  18078. let a = player.cache_.duration; //视频的总时长
  18079. let gklog2 = parseInt(gklog);
  18080. // if(gklog2 == '3'){
  18081. // player.pause()
  18082. // setTimeout(()=>{
  18083. // player.currentTime(gklog2+1)
  18084. // player.play()
  18085. // },1000)
  18086. // }
  18087. console.log(" onPlayerTimeupdate!", gklog);
  18088. console.log(" onPlayerTimeupdate!", gklog2);
  18089. },
  18090. lookVedio(u, i) {
  18091. this.isClickNav = "";
  18092. // this.playerOptions.sources[0].src = u;
  18093. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18094. d.sources[0].src = u;
  18095. this.playerO[this.taskCount] = d;
  18096. this.showType = 0;
  18097. // this.isClickNav = "video" + i;
  18098. this.isClickNav = i;
  18099. this.$forceUpdate();
  18100. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18101. },
  18102. lookText(i, t) {
  18103. this.isClickNav = "";
  18104. // this.text = this.textList[i][t];
  18105. this.text = this.vChapterData[i][t];
  18106. // this.dialogVisible1 = true;
  18107. this.showType = 1;
  18108. // this.isClickNav = "text" + t;
  18109. this.isClickNav = t;
  18110. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18111. },
  18112. lookTools(i, t) {
  18113. this.chapTools = this.chapToolList[i][t];
  18114. this.dialogVisible2 = true;
  18115. },
  18116. async openFile(f,w) {
  18117. this.pptImgUrl = "";
  18118. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18119. if (
  18120. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18121. -1
  18122. ) {
  18123. let _uuurl = await this.checkLink(f);
  18124. this.pptImgUrl =
  18125. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18126. this.showPDF = false;
  18127. this.dialogVisible3 = true;
  18128. } else if (
  18129. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18130. ) {
  18131. this.pptImgUrl = f;
  18132. this.showPDF = true;
  18133. this.dialogVisible3 = true;
  18134. }
  18135. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18136. },
  18137. openTable(f) {
  18138. this.tableJson = JSON.parse(f.works);
  18139. this.dialogVisibleTable2 = true;
  18140. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18141. },
  18142. openWord(f) {
  18143. this.tableJson = JSON.parse(f.works);
  18144. this.dialogVisibleTable3 = true;
  18145. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18146. },
  18147. doUrl(url, i) {
  18148. this.isClickNav = "";
  18149. this.pptImgUrl1 = "";
  18150. this.showType = 2;
  18151. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18152. url = "https://" + url;
  18153. }
  18154. this.pptImgUrl1 = "";
  18155. setTimeout(() => {
  18156. this.pptImgUrl1 = url;
  18157. }, 500);
  18158. // this.isClickNav = "line" + i;
  18159. this.isClickNav = i;
  18160. this.$forceUpdate();
  18161. },
  18162. checkPhoto(f, i) {
  18163. this.showType = 4;
  18164. this.pptImgUrl1 = f.url;
  18165. this.isClickNav = i;
  18166. this.$forceUpdate();
  18167. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18168. },
  18169. async downFile(f, i) {
  18170. this.isClickNav = "";
  18171. this.pptImgUrl1 = "";
  18172. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18173. if (
  18174. a.indexOf(
  18175. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18176. ) != -1
  18177. ) {
  18178. let _uuurl = await this.checkLink(f.url);
  18179. this.pptImgUrl1 =
  18180. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18181. // this.dialogVisible3 = true;
  18182. this.showType = 2;
  18183. } else if (
  18184. this.isAssetTypeAnImage(
  18185. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18186. )
  18187. ) {
  18188. this.showType = 4;
  18189. this.pptImgUrl1 = f.url;
  18190. } else if (
  18191. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18192. "PDF"
  18193. ) {
  18194. this.pptImgUrl1 = f.url;
  18195. // this.dialogVisible3 = true;
  18196. this.showType = 3;
  18197. } else {
  18198. window.open(this.file[i].url);
  18199. }
  18200. // this.isClickNav = "word" + i;
  18201. this.isClickNav = i;
  18202. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18203. },
  18204. downFileList(i) {
  18205. window.open(this.noImgList[i].url);
  18206. },
  18207. openAddWork() {
  18208. this.dialogVisible = true;
  18209. },
  18210. addBzWorks() {
  18211. let params = [
  18212. {
  18213. uid: this.userid,
  18214. cid: this.id,
  18215. stage: this.courseType,
  18216. task: this.taskCount,
  18217. tool: this.toolindex,
  18218. content: JSON.stringify(this.eScore),
  18219. type: 6,
  18220. },
  18221. ];
  18222. this.ajax
  18223. .post(this.$store.state.api + "addCourseWorks", params)
  18224. .then((res) => {
  18225. this.$message({
  18226. message: "提交成功",
  18227. type: "success",
  18228. });
  18229. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18230. this.eScore = { eBzText: "", eStar: [] };
  18231. this.studentEvalDialogVisible = false;
  18232. this.selectSWorks();
  18233. })
  18234. .catch((err) => {
  18235. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18236. this.$message.error("提交失败");
  18237. console.error(err);
  18238. });
  18239. },
  18240. addBzWorksTeacher() {
  18241. let params = [
  18242. {
  18243. uid: this.sStudent.userid,
  18244. cid: this.id,
  18245. stage: this.courseType,
  18246. task: this.taskCount,
  18247. tool: this.toolindex,
  18248. content: JSON.stringify(this.eScore),
  18249. type: 6,
  18250. },
  18251. ];
  18252. this.ajax
  18253. .post(this.$store.state.api + "addCourseWorks", params)
  18254. .then((res) => {
  18255. this.$message({
  18256. message: "提交成功",
  18257. type: "success",
  18258. });
  18259. this.eScore = { eBzText: "", eStar: [] };
  18260. this.studentEvalDialogVisibleTeacher = false;
  18261. this.selectSWorks();
  18262. })
  18263. .catch((err) => {
  18264. this.$message.error("提交失败");
  18265. console.error(err);
  18266. });
  18267. },
  18268. addStudentAsk() {
  18269. if (!this.radio.length) {
  18270. this.$message.error("请选择选项");
  18271. return;
  18272. }
  18273. for (var i = 0; i < this.askJson.askCount; i++) {
  18274. if (
  18275. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18276. (this.radio[i] !== 0 && !this.radio[i])
  18277. ) {
  18278. this.$message.error("请选择选项");
  18279. return;
  18280. }
  18281. }
  18282. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18283. let params = [
  18284. {
  18285. uid: this.userid,
  18286. cid: this.id,
  18287. stage: this.courseType,
  18288. task: this.taskCount,
  18289. tool: this.toolindex,
  18290. content: JSON.stringify(this.askList),
  18291. type: 2,
  18292. },
  18293. ];
  18294. // console.log('params',params);
  18295. this.ajax
  18296. .post(this.$store.state.api + "addCourseWorks", params)
  18297. .then((res) => {
  18298. this.$message({
  18299. message: "提交成功",
  18300. type: "success",
  18301. });
  18302. this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18303. this.askList = [];
  18304. this.dialogVisible5 = false;
  18305. this.selectStudent();
  18306. this.selectSWorks();
  18307. this.selectSLook();
  18308. })
  18309. .catch((err) => {
  18310. this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18311. this.$message.error("提交失败");
  18312. console.error(err);
  18313. });
  18314. },
  18315. addStudentAskTeacher() {
  18316. if (!this.radio.length) {
  18317. this.$message.error("请选择选项");
  18318. return;
  18319. }
  18320. for (var i = 0; i < this.askJson.askCount; i++) {
  18321. if (
  18322. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18323. (this.radio[i] !== 0 && !this.radio[i])
  18324. ) {
  18325. this.$message.error("请选择选项");
  18326. return;
  18327. }
  18328. }
  18329. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18330. let params = [
  18331. {
  18332. uid: this.sStudent.userid,
  18333. cid: this.id,
  18334. stage: this.courseType,
  18335. task: this.taskCount,
  18336. tool: this.toolindex,
  18337. content: JSON.stringify(this.askList),
  18338. type: 2,
  18339. },
  18340. ];
  18341. this.ajax
  18342. .post(this.$store.state.api + "addCourseWorks", params)
  18343. .then((res) => {
  18344. this.$message({
  18345. message: "提交成功",
  18346. type: "success",
  18347. });
  18348. this.askList = [];
  18349. this.dialogVisible5Teacher = false;
  18350. this.selectStudent();
  18351. this.selectSWorks();
  18352. this.selectSLook();
  18353. })
  18354. .catch((err) => {
  18355. this.$message.error("提交失败");
  18356. console.error(err);
  18357. });
  18358. },
  18359. addStudentTest() {
  18360. if (!this.radio.length) {
  18361. this.$message.error("请选择选项");
  18362. return;
  18363. }
  18364. for (var i = 0; i < this.testJson.testCount; i++) {
  18365. if (
  18366. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18367. (this.radio[i] !== 0 && !this.radio[i])
  18368. ) {
  18369. this.$message.error("请选择选项");
  18370. return;
  18371. }
  18372. }
  18373. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18374. let params = [
  18375. {
  18376. uid: this.userid,
  18377. cid: this.id,
  18378. stage: this.courseType,
  18379. task: this.taskCount,
  18380. tool: this.toolindex,
  18381. content: JSON.stringify(this.askList),
  18382. type: 8,
  18383. },
  18384. ];
  18385. this.ajax
  18386. .post(this.$store.state.api + "addCourseWorks", params)
  18387. .then((res) => {
  18388. this.$message({
  18389. message: "提交成功",
  18390. type: "success",
  18391. });
  18392. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18393. this.askList = [];
  18394. this.dialogVisibleChoice = false;
  18395. this.selectStudent();
  18396. this.selectSWorks();
  18397. this.selectSLook();
  18398. })
  18399. .catch((err) => {
  18400. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18401. this.$message.error("提交失败");
  18402. console.error(err);
  18403. });
  18404. },
  18405. addStudentTestTeacher() {
  18406. if (!this.radio.length) {
  18407. this.$message.error("请选择选项");
  18408. return;
  18409. }
  18410. for (var i = 0; i < this.testJson.testCount; i++) {
  18411. if (
  18412. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18413. (this.radio[i] !== 0 && !this.radio[i])
  18414. ) {
  18415. this.$message.error("请选择选项");
  18416. return;
  18417. }
  18418. }
  18419. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18420. let params = [
  18421. {
  18422. uid: this.sStudent.userid,
  18423. cid: this.id,
  18424. stage: this.courseType,
  18425. task: this.taskCount,
  18426. tool: this.toolindex,
  18427. content: JSON.stringify(this.askList),
  18428. type: 8,
  18429. },
  18430. ];
  18431. this.ajax
  18432. .post(this.$store.state.api + "addCourseWorks", params)
  18433. .then((res) => {
  18434. this.$message({
  18435. message: "提交成功",
  18436. type: "success",
  18437. });
  18438. this.askList = [];
  18439. this.dialogVisibleChoiceTeacher = false;
  18440. this.selectStudent();
  18441. this.selectSWorks();
  18442. this.selectSLook();
  18443. })
  18444. .catch((err) => {
  18445. this.$message.error("提交失败");
  18446. console.error(err);
  18447. });
  18448. },
  18449. addWork() {
  18450. if (this.studyJuri[0].content == "") {
  18451. this.$message.error("请将信息填写完整");
  18452. return;
  18453. } else if (this.studyJuri[0].cover.length == 0) {
  18454. this.$message.error("请将信息填写完整");
  18455. return;
  18456. } else if (this.studyJuri[0].upVedio.length == 0) {
  18457. this.$message.error("请将信息填写完整");
  18458. return;
  18459. }
  18460. if (this.isNoHomeWork) {
  18461. this.$confirm(
  18462. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18463. "提示",
  18464. {
  18465. confirmButtonText: "确定",
  18466. cancelButtonText: "取消",
  18467. type: "warning",
  18468. }
  18469. )
  18470. .then(() => {
  18471. let params = [
  18472. {
  18473. uid: this.userid,
  18474. cid: this.id,
  18475. stage: this.courseType,
  18476. task: this.taskCount,
  18477. content: JSON.stringify(this.studyJuri),
  18478. },
  18479. ];
  18480. this.ajax
  18481. .post(this.$store.state.api + "addWorks", params)
  18482. .then((res) => {
  18483. this.$message({
  18484. message: "提交成功",
  18485. type: "success",
  18486. });
  18487. this.isNoHomeWork = true;
  18488. this.dialogVisible = false;
  18489. })
  18490. .catch((err) => {
  18491. this.$message.error("提交失败");
  18492. console.error(err);
  18493. });
  18494. })
  18495. .catch(() => {});
  18496. } else {
  18497. let params = [
  18498. {
  18499. uid: this.userid,
  18500. cid: this.id,
  18501. stage: this.courseType,
  18502. task: this.taskCount,
  18503. content: JSON.stringify(this.studyJuri),
  18504. },
  18505. ];
  18506. this.ajax
  18507. .post(this.$store.state.api + "addWorks", params)
  18508. .then((res) => {
  18509. this.$message({
  18510. message: "提交成功",
  18511. type: "success",
  18512. });
  18513. this.isNoHomeWork = true;
  18514. this.dialogVisible = false;
  18515. })
  18516. .catch((err) => {
  18517. this.$message.error("提交失败");
  18518. console.error(err);
  18519. });
  18520. }
  18521. },
  18522. selectCount() {
  18523. let params = {
  18524. cid: this.id,
  18525. chid: this.courseType,
  18526. uid: this.userid,
  18527. };
  18528. this.ajax
  18529. .get(this.$store.state.api + "selectToolsCount", params)
  18530. .then((res) => {
  18531. for (var i = 0; i < res.data[0].length; i++) {
  18532. if (res.data[0][i].tools == 1) {
  18533. this.wbCount = res.data[0][i].count;
  18534. } else if (res.data[0][i].tools == 2) {
  18535. this.wordCount = res.data[0][i].count;
  18536. } else if (res.data[0][i].tools == 3) {
  18537. this.mindCount = res.data[0][i].count;
  18538. } else if (res.data[0][i].tools == 4) {
  18539. this.askCount = res.data[0][i].count;
  18540. } else if (res.data[0][i].tools == 6) {
  18541. this.noteCount = res.data[0][i].count;
  18542. } else if (res.data[0][i].tools == 7) {
  18543. this.mindNetWorkCount = res.data[0][i].count;
  18544. } else if (res.data[0][i].tools == 8) {
  18545. this.libraryCount = res.data[0][i].count;
  18546. } else if (res.data[0][i].tools == 16) {
  18547. this.workCount = res.data[0][i].count;
  18548. } else if (res.data[0][i].tools == 10) {
  18549. this.timeCount = res.data[0][i].count;
  18550. } else if (res.data[0][i].tools == 15) {
  18551. this.answerCount = res.data[0][i].count;
  18552. } else if (res.data[0][i].tools == 18) {
  18553. this.trainCount = res.data[0][i].count;
  18554. }
  18555. }
  18556. })
  18557. .catch((err) => {
  18558. console.error(err);
  18559. });
  18560. },
  18561. openTools(t, i, index, c, sName,id) {
  18562. var z = JSON.parse(c);
  18563. this.noteName = sName;
  18564. if (t == 4) {
  18565. this.radio = [];
  18566. this.isAnswer = false;
  18567. let b = z[0].anwer;
  18568. this.radio = b;
  18569. this.askJson = z[0].askJson;
  18570. this.isAnswer = true;
  18571. this.dialogVisible5 = true;
  18572. } else if (t == 45) {
  18573. this.radio = [];
  18574. this.isAnswer = false;
  18575. let b = z[0].anwer;
  18576. this.radio = b;
  18577. this.testJson = z[0].testJson;
  18578. this.isAnswer = true;
  18579. this.dialogVisibleChoice = true;
  18580. }else if(t == 69){
  18581. this.oldEnglishJson1 = {}
  18582. this.oldEnglishJson = {}
  18583. this.englishList1 = {}
  18584. this.newEngIndex = -1;
  18585. this.isNoUserid = false;
  18586. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18587. .toolChoose[i].englishList;
  18588. this.oldEnglishJson = z;
  18589. this.engWid = id;
  18590. this.newEnglishList = { engTitle:"",engText:"" }
  18591. this.newEnglishList1 = []
  18592. this.selectEngC(id,z);
  18593. }else if(t == 62){
  18594. this.videoType = 1;
  18595. this.videoJson = {};
  18596. this.videoJson = JSON.parse(c);
  18597. // this.videoJson =
  18598. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18599. // index
  18600. // ].toolChoose[i].videoJson;
  18601. this.dialogVisibleVideo = true;
  18602. //this.dialog
  18603. }
  18604. // else if (t == 15) {
  18605. // this.answerQ = "";
  18606. // this.questionAnswer = "";
  18607. // this.answerQ = z[0].answerTitle;
  18608. // this.questionAnswer = z[0].answer;
  18609. // this.answerDialogVisible = true;
  18610. // }
  18611. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18612. },
  18613. fastText(p, t) {
  18614. if (t == 1) {
  18615. this.commentText += p;
  18616. } else {
  18617. this.eScore.eBzText += p;
  18618. }
  18619. },
  18620. addTools(t, i, index) {
  18621. var a = 0;
  18622. // this.taskCount = index;
  18623. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18624. this.toolindex = i;
  18625. if (t == 1) {
  18626. if (this.wbCount > 0) {
  18627. this.updateCount(this.wbCount, t);
  18628. } else {
  18629. this.wbCount++;
  18630. a = this.wbCount;
  18631. this.toolsCount(a, t);
  18632. }
  18633. window.topU.postMessage(
  18634. {
  18635. tools: "1",
  18636. cid: this.id,
  18637. stage: this.courseType,
  18638. task: this.taskCount,
  18639. tool: i,
  18640. },
  18641. "*"
  18642. );
  18643. } else if (t == 2) {
  18644. if (this.wordCount > 0) {
  18645. this.updateCount(this.wordCount, t);
  18646. } else {
  18647. this.wordCount++;
  18648. a = this.wordCount;
  18649. this.toolsCount(a, t);
  18650. }
  18651. window.topU.postMessage({ tools: "2" }, "*");
  18652. } else if (t == 3) {
  18653. if (this.mindCount > 0) {
  18654. this.updateCount(this.mindCount, t);
  18655. } else {
  18656. this.mindCount++;
  18657. a = this.mindCount;
  18658. this.toolsCount(a, t);
  18659. }
  18660. window.topU.postMessage(
  18661. {
  18662. tools: "3",
  18663. cid: this.id,
  18664. stage: this.courseType,
  18665. task: this.taskCount,
  18666. tool: i,
  18667. },
  18668. "*"
  18669. );
  18670. } else if (t == 4) {
  18671. this.radio = [];
  18672. this.noteName = "";
  18673. this.isAnswer = false;
  18674. if (this.askCount > 0) {
  18675. this.updateCount(this.askCount, t);
  18676. } else {
  18677. this.askCount++;
  18678. a = this.askCount;
  18679. this.toolsCount(a, t);
  18680. }
  18681. if (!this.dialogVisible2) {
  18682. this.askJson.askJson =
  18683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18684. index
  18685. ].toolChoose[i].askJson;
  18686. this.askJson.askTitle =
  18687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18688. index
  18689. ].toolChoose[i].askTitle;
  18690. this.askJson.askCount =
  18691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18692. index
  18693. ].toolChoose[i].askCount;
  18694. } else {
  18695. this.askJson.askJson = this.chapTools.askJson.askJson;
  18696. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18697. this.askJson.askCount = this.chapTools.askJson.askCount;
  18698. }
  18699. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18700. if (this.askJson.askJson[k].type == "2") {
  18701. this.radio.push([]);
  18702. } else {
  18703. this.radio.push("");
  18704. }
  18705. }
  18706. this.dialogVisible5 = true;
  18707. // window.topU.postMessage({ tools: "4" }, "*");
  18708. } else if (t == 45) {
  18709. this.noteName = "";
  18710. this.radio = [];
  18711. this.isAnswer = false;
  18712. if (this.askCount > 0) {
  18713. this.updateCount(this.askCount, t);
  18714. } else {
  18715. this.askCount++;
  18716. a = this.askCount;
  18717. this.toolsCount(a, t);
  18718. }
  18719. this.testJson =
  18720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18721. index
  18722. ].toolChoose[i].testJson;
  18723. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18724. if (this.testJson.testJson[k].type == "2") {
  18725. this.radio.push([]);
  18726. } else {
  18727. this.radio.push("");
  18728. }
  18729. }
  18730. this.dialogVisibleChoice = true;
  18731. // window.topU.postMessage({ tools: "4" }, "*");
  18732. } else if (t == 5) {
  18733. if (this.scoreCount > 0) {
  18734. this.updateCount(this.scoreCount, t);
  18735. } else {
  18736. this.scoreCount++;
  18737. a = this.scoreCount;
  18738. this.toolsCount(a, t);
  18739. }
  18740. this.dialogVisible4 = true;
  18741. // window.topU.postMessage({ tools: "5" }, "*");
  18742. } else if (t == 6) {
  18743. if (this.noteCount > 0) {
  18744. this.updateCount(this.noteCount, t);
  18745. } else {
  18746. this.noteCount++;
  18747. a = this.noteCount;
  18748. this.toolsCount(a, t);
  18749. }
  18750. window.topU.postMessage(
  18751. {
  18752. tools: "6",
  18753. cid: this.id,
  18754. stage: this.courseType,
  18755. task: this.taskCount,
  18756. tool: i,
  18757. },
  18758. "*"
  18759. );
  18760. } else if (t == 7) {
  18761. if (this.mindNetWorkCount > 0) {
  18762. this.updateCount(this.mindNetWorkCount, t);
  18763. } else {
  18764. this.mindNetWorkCount++;
  18765. a = this.mindNetWorkCount;
  18766. this.toolsCount(a, t);
  18767. }
  18768. window.topU.postMessage(
  18769. {
  18770. tools: "7",
  18771. cid: this.id,
  18772. stage: this.courseType,
  18773. task: this.taskCount,
  18774. tool: i,
  18775. },
  18776. "*"
  18777. );
  18778. } else if (t == 16) {
  18779. if (this.workCount > 0) {
  18780. this.updateCount(this.workCount, t);
  18781. } else {
  18782. this.workCount++;
  18783. a = this.workCount;
  18784. this.toolsCount(a, t);
  18785. }
  18786. this.dialogVisible = true;
  18787. } else if (t == 50) {
  18788. if (this.tType == 2) {
  18789. this.$message.error("不支持学生使用");
  18790. return;
  18791. }
  18792. this.plworkFile = [];
  18793. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18794. if (!this.uploadCid) {
  18795. this.$message.error(
  18796. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18797. );
  18798. return;
  18799. }
  18800. // this.uploadCid =
  18801. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18802. // index
  18803. // ].toolChoose[i].uploadJson[0];
  18804. this.selectUploadStudent(2);
  18805. } else if (t == 8) {
  18806. if (this.libraryCount > 0) {
  18807. this.updateCount(this.libraryCount, t);
  18808. } else {
  18809. this.libraryCount++;
  18810. a = this.libraryCount;
  18811. this.toolsCount(a, t);
  18812. }
  18813. window.topU.postMessage({ tools: "8" }, "*");
  18814. } else if (t == 17) {
  18815. if (this.libraryCount > 0) {
  18816. this.updateCount(this.libraryCount, t);
  18817. } else {
  18818. this.libraryCount++;
  18819. a = this.libraryCount;
  18820. this.toolsCount(a, t);
  18821. }
  18822. window.topU.postMessage({ tools: "17" }, "*");
  18823. } else if (t == 18) {
  18824. if (this.trainCount > 0) {
  18825. this.updateCount(this.trainCount, t);
  18826. } else {
  18827. this.trainCount++;
  18828. a = this.trainCount;
  18829. this.toolsCount(a, t);
  18830. }
  18831. window.topU.postMessage({ tools: "18" }, "*");
  18832. } else if (t == 10) {
  18833. if (this.timeCount > 0) {
  18834. this.updateCount(this.timeCount, t);
  18835. } else {
  18836. this.timeCount++;
  18837. a = this.timeCount;
  18838. this.toolsCount(a, t);
  18839. }
  18840. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18841. .taskJson[index].toolChoose[i].preTime
  18842. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18843. .toolChoose[i].preTime
  18844. : "";
  18845. this.timeDialogVisible = true;
  18846. } else if (t == 15) {
  18847. this.answerQ = "";
  18848. this.questionAnswer = "";
  18849. if (this.answerCount > 0) {
  18850. this.updateCount(this.answerCount, t);
  18851. } else {
  18852. this.answerCount++;
  18853. a = this.answerCount;
  18854. this.toolsCount(a, t);
  18855. }
  18856. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18857. .taskJson[index].toolChoose[i].answerQ
  18858. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18859. .toolChoose[i].answerQ
  18860. : "";
  18861. this.answerDialogVisible = true;
  18862. } else if (t == 21) {
  18863. window.topU.postMessage({ tools: "21" }, "*");
  18864. } else if (t == 22) {
  18865. window.topU.postMessage({ tools: "22" }, "*");
  18866. } else if (t == 23) {
  18867. window.topU.postMessage({ tools: "23" }, "*");
  18868. } else if (t == 24) {
  18869. window.topU.postMessage({ tools: "24" }, "*");
  18870. } else if (t == 25) {
  18871. window.topU.postMessage({ tools: "25" }, "*");
  18872. } else if (t == 31) {
  18873. window.topU.postMessage({ tools: "31" }, "*");
  18874. } else if (t == 28) {
  18875. window.topU.postMessage({ tools: "28" }, "*");
  18876. } else if (t == 37) {
  18877. window.topU.postMessage({ tools: "37" }, "*");
  18878. } else if (t == 38) {
  18879. window.topU.postMessage({ tools: "38" }, "*");
  18880. } else if (t == 39) {
  18881. window.topU.postMessage({ tools: "39" }, "*");
  18882. } else if (t == 32) {
  18883. window.topU.postMessage({ tools: "32" }, "*");
  18884. } else if (t == 66) {
  18885. window.topU.postMessage({ tools: "66" }, "*");
  18886. } else if (t == 67) {
  18887. window.topU.postMessage({ tools: "67" }, "*");
  18888. } else if (t == 68) {
  18889. window.topU.postMessage({ tools: "68" }, "*");
  18890. } else if (t == 57) {
  18891. // window.topU.postMessage({ tools: "57" }, "*");
  18892. window.topU.postMessage(
  18893. {
  18894. tools: "57u",
  18895. cid: this.id,
  18896. stage: this.courseType,
  18897. task: this.taskCount,
  18898. tool: i,
  18899. },
  18900. "*"
  18901. );
  18902. } else if (t == 58) {
  18903. window.topU.postMessage({ tools: "58" }, "*");
  18904. } else if (t == 59) {
  18905. window.topU.postMessage({ tools: "59" }, "*");
  18906. } else if (t == 60) {
  18907. window.topU.postMessage({ tools: "60" }, "*");
  18908. } else if (t == 61) {
  18909. window.topU.postMessage({ tools: "61" }, "*");
  18910. } else if (t == 63) {
  18911. window.topU.postMessage({ tools: "63" }, "*");
  18912. } else if (t == 71) {
  18913. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18914. // this.$message.error("该工具不可使用");
  18915. // return
  18916. // }
  18917. window.topU.postMessage({ tools: "71" }, "*");
  18918. } else if (t == 72) {
  18919. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18920. .taskJson[index].toolChoose[i].appJson
  18921. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18922. .toolChoose[i].appJson
  18923. : "";
  18924. if(!item || !item.url){
  18925. this.$message.error("应用连接为空, 请到课程管理中添加");
  18926. return;
  18927. }
  18928. if (!document.fullscreenElement) {
  18929. this.enterFullScreen();
  18930. }
  18931. this.$refs.appStoreC.getData(item.url,this.userid)
  18932. // window.open(item.url, "_blank");
  18933. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18934. } else if (t == 69) {
  18935. if (this.worksStudent[i].length) {
  18936. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18937. if (this.userid == this.worksStudent[i][k].userid) {
  18938. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18939. break;
  18940. } else {
  18941. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18942. }
  18943. }
  18944. } else {
  18945. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18946. }
  18947. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18948. .taskJson[index].toolChoose[i].englishList
  18949. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18950. .toolChoose[i].englishList
  18951. : {};
  18952. this.englishToolIndex = i;
  18953. this.myAnList = this.myAnswerList1;
  18954. this.engDialogVisible = true;
  18955. } else if (t == 70) {
  18956. if (this.worksStudent[i].length) {
  18957. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18958. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18959. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18960. break;
  18961. } else {
  18962. this.englishVoiceJsonWork = [];
  18963. }
  18964. }
  18965. } else {
  18966. this.englishVoiceJsonWork = [];
  18967. }
  18968. let englishVoiceJson = {}
  18969. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18970. .taskJson[index].toolChoose[i].englishVoiceJson
  18971. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18972. .toolChoose[i].englishVoiceJson
  18973. : {};
  18974. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18975. this.EnglishVoiceDialog = true;
  18976. } else if (t == 65) {
  18977. if (this.tType == 2) {
  18978. this.$message.error("不支持学生使用");
  18979. return;
  18980. }
  18981. this.uploadCid = this.tcid;
  18982. if (!this.uploadCid) {
  18983. this.$message.error(
  18984. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18985. );
  18986. return;
  18987. }
  18988. this.selectPickStudent();
  18989. } else if (t == 26) {
  18990. window.topU.postMessage(
  18991. {
  18992. tools: "26",
  18993. cid: this.id,
  18994. stage: this.courseType,
  18995. task: this.taskCount,
  18996. tool: i,
  18997. },
  18998. "*"
  18999. );
  19000. } else if (t == 40) {
  19001. if (this.evalCount > 0) {
  19002. this.updateCount(this.evalCount, t);
  19003. } else {
  19004. this.evalCount++;
  19005. a = this.evalCount;
  19006. this.toolsCount(a, t);
  19007. }
  19008. this.eScore = { eBzText: "", eStar: [] };
  19009. if (this.worksStudent[i].length) {
  19010. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19011. if (this.userid == this.worksStudent[i][k].userid) {
  19012. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19013. this.rateJson =
  19014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19015. index
  19016. ].toolChoose[i].rateJson;
  19017. break;
  19018. } else {
  19019. this.rateJson =
  19020. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19021. index
  19022. ].toolChoose[i].rateJson;
  19023. }
  19024. }
  19025. } else {
  19026. this.rateJson =
  19027. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19028. index
  19029. ].toolChoose[i].rateJson;
  19030. }
  19031. this.isStar = false;
  19032. this.studentEvalDialogVisible = true;
  19033. } else if (t == 41) {
  19034. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19035. .taskJson[index].toolChoose[i].selectJson
  19036. ? JSON.parse(
  19037. JSON.stringify(
  19038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19039. index
  19040. ].toolChoose[i].selectJson
  19041. )
  19042. )
  19043. : { url: "", select: [], answer: [] };
  19044. if (this.worksStudent[i].length) {
  19045. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19046. if (this.userid == this.worksStudent[i][k].userid) {
  19047. var a = this.worksStudent[i][k].works.split(",");
  19048. for (var ki = 0; ki < a.length; ki++) {
  19049. a[ki] = parseInt(a[ki]);
  19050. }
  19051. this.selectAnswer = {
  19052. answer: a,
  19053. stu: this.worksStudent[i][k].sName,
  19054. };
  19055. break;
  19056. } else {
  19057. this.selectAnswer = { answer: [], stu: "" };
  19058. }
  19059. }
  19060. } else {
  19061. this.selectAnswer = { answer: [], stu: "" };
  19062. }
  19063. this.isSelect = false;
  19064. this.dialogVisibleSelect = true;
  19065. } else if (t == 44) {
  19066. window.topU.postMessage({ tools: "44" }, "*");
  19067. } else if (t == 47) {
  19068. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19069. .taskJson[index].toolChoose[i].sentenceList
  19070. ? JSON.parse(
  19071. JSON.stringify(
  19072. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19073. index
  19074. ].toolChoose[i].sentenceList
  19075. )
  19076. )
  19077. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19078. for (var q = 0; q < this.sentenceList.length; q++) {
  19079. this.sentenceList[q].chooseSenList = [];
  19080. this.sentenceList[q].addChangeSen = [];
  19081. this.sentenceList[q].addChangeSen = JSON.parse(
  19082. JSON.stringify(this.sentenceList[q].addSentence)
  19083. );
  19084. this.sentenceList[q].chooseSenList.length =
  19085. this.sentenceList[q].rightAnswer.length;
  19086. }
  19087. this.dialogVisibleSentence = true;
  19088. } else if (t == 48) {
  19089. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19090. .taskJson[index].toolChoose[i].tableJson
  19091. ? JSON.parse(
  19092. JSON.stringify(
  19093. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19094. index
  19095. ].toolChoose[i].tableJson
  19096. )
  19097. )
  19098. : { text: "" };
  19099. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19100. if (this.worksStudent[i].length) {
  19101. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19102. if (this.userid == this.worksStudent[i][k].userid) {
  19103. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19104. break;
  19105. }
  19106. }
  19107. }
  19108. this.dialogVisibleTable = true;
  19109. } else if (t == 52) {
  19110. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19111. .taskJson[index].toolChoose[i].wordJson
  19112. ? JSON.parse(
  19113. JSON.stringify(
  19114. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19115. index
  19116. ].toolChoose[i].wordJson
  19117. )
  19118. )
  19119. : { text: "" };
  19120. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19121. if (this.worksStudent[i].length) {
  19122. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19123. if (this.userid == this.worksStudent[i][k].userid) {
  19124. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19125. break;
  19126. }
  19127. }
  19128. }
  19129. this.dialogVisibleWord = true;
  19130. } else if (t == 49) {
  19131. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19132. return
  19133. }
  19134. this.groupJson =
  19135. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19136. index
  19137. ].toolChoose[i].groupJson;
  19138. this.islock = this.groupJson.islock == 1 ? true : false;
  19139. this.dialogVisibleGroup = true;
  19140. } else if (t == 62) {
  19141. this.videoType = 0;
  19142. this.videoJson = {};
  19143. this.videoJson =
  19144. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19145. index
  19146. ].toolChoose[i].videoJson;
  19147. this.dialogVisibleVideo = true;
  19148. }
  19149. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19150. },
  19151. teacherWorkSubmit(t, i, index, s) {
  19152. this.sStudent = s;
  19153. this.toolindex = i;
  19154. this.sTool = t;
  19155. if (this.tType !== "1" && this.tType !== "4") {
  19156. return;
  19157. }
  19158. if (t == 16 || t == 32 || t == 50) {
  19159. this.dialogVisibleWorks = true;
  19160. } else if (t == 15) {
  19161. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19162. .taskJson[index].toolChoose[i].answerQ
  19163. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19164. .toolChoose[i].answerQ
  19165. : "";
  19166. this.questionAnswer = "";
  19167. this.answerDialogVisibleTeacher = true; //问答
  19168. } else if (t == 52) {
  19169. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19170. .taskJson[index].toolChoose[i].wordJson
  19171. ? JSON.parse(
  19172. JSON.stringify(
  19173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19174. index
  19175. ].toolChoose[i].wordJson
  19176. )
  19177. )
  19178. : { text: "" };
  19179. if (this.worksStudent[i].length) {
  19180. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19181. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19182. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19183. break;
  19184. }
  19185. }
  19186. }
  19187. this.dialogVisibleWordTeacher = true; //文档
  19188. } else if (t == 4) {
  19189. this.radio = [];
  19190. this.noteName = "";
  19191. this.isAnswer = false;
  19192. if (this.askCount > 0) {
  19193. this.updateCount(this.askCount, t);
  19194. } else {
  19195. this.askCount++;
  19196. a = this.askCount;
  19197. this.toolsCount(a, t);
  19198. }
  19199. if (!this.dialogVisible2) {
  19200. this.askJson.askJson =
  19201. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19202. index
  19203. ].toolChoose[i].askJson;
  19204. this.askJson.askTitle =
  19205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19206. index
  19207. ].toolChoose[i].askTitle;
  19208. this.askJson.askCount =
  19209. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19210. index
  19211. ].toolChoose[i].askCount;
  19212. } else {
  19213. this.askJson.askJson = this.chapTools.askJson.askJson;
  19214. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19215. this.askJson.askCount = this.chapTools.askJson.askCount;
  19216. }
  19217. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19218. if (this.askJson.askJson[k].type == "2") {
  19219. this.radio.push([]);
  19220. } else {
  19221. this.radio.push("");
  19222. }
  19223. }
  19224. this.dialogVisible5Teacher = true;
  19225. } else if (t == 45) {
  19226. this.noteName = "";
  19227. this.radio = [];
  19228. this.isAnswer = false;
  19229. if (this.askCount > 0) {
  19230. this.updateCount(this.askCount, t);
  19231. } else {
  19232. this.askCount++;
  19233. a = this.askCount;
  19234. this.toolsCount(a, t);
  19235. }
  19236. this.testJson =
  19237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19238. index
  19239. ].toolChoose[i].testJson;
  19240. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19241. if (this.testJson.testJson[k].type == "2") {
  19242. this.radio.push([]);
  19243. } else {
  19244. this.radio.push("");
  19245. }
  19246. }
  19247. this.dialogVisibleChoiceTeacher = true;
  19248. } else if (t == 41) {
  19249. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19250. .taskJson[index].toolChoose[i].selectJson
  19251. ? JSON.parse(
  19252. JSON.stringify(
  19253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19254. index
  19255. ].toolChoose[i].selectJson
  19256. )
  19257. )
  19258. : { url: "", select: [], answer: [] };
  19259. if (this.worksStudent[i].length) {
  19260. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19261. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19262. var a = this.worksStudent[i][k].works.split(",");
  19263. for (var ki = 0; ki < a.length; ki++) {
  19264. a[ki] = parseInt(a[ki]);
  19265. }
  19266. this.selectAnswer = {
  19267. answer: a,
  19268. stu: this.worksStudent[i][k].sName,
  19269. };
  19270. break;
  19271. } else {
  19272. this.selectAnswer = { answer: [], stu: "" };
  19273. }
  19274. }
  19275. } else {
  19276. this.selectAnswer = { answer: [], stu: "" };
  19277. }
  19278. this.isSelect = false;
  19279. this.dialogVisibleSelectTeacher = true;
  19280. } else if (t == 47) {
  19281. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19282. .taskJson[index].toolChoose[i].sentenceList
  19283. ? JSON.parse(
  19284. JSON.stringify(
  19285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19286. index
  19287. ].toolChoose[i].sentenceList
  19288. )
  19289. )
  19290. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19291. for (var q = 0; q < this.sentenceList.length; q++) {
  19292. this.sentenceList[q].chooseSenList = [];
  19293. this.sentenceList[q].addChangeSen = [];
  19294. this.sentenceList[q].addChangeSen = JSON.parse(
  19295. JSON.stringify(this.sentenceList[q].addSentence)
  19296. );
  19297. this.sentenceList[q].chooseSenList.length =
  19298. this.sentenceList[q].rightAnswer.length;
  19299. }
  19300. this.dialogVisibleSentenceTeacher = true;
  19301. } else if (t == 48) {
  19302. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19303. .taskJson[index].toolChoose[i].tableJson
  19304. ? JSON.parse(
  19305. JSON.stringify(
  19306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19307. index
  19308. ].toolChoose[i].tableJson
  19309. )
  19310. )
  19311. : { text: "" };
  19312. if (this.worksStudent[i].length) {
  19313. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19314. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19315. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19316. break;
  19317. }
  19318. }
  19319. }
  19320. this.dialogVisibleTableTeacher = true;
  19321. } else if (t == 40) {
  19322. if (this.evalCount > 0) {
  19323. this.updateCount(this.evalCount, t);
  19324. } else {
  19325. this.evalCount++;
  19326. a = this.evalCount;
  19327. this.toolsCount(a, t);
  19328. }
  19329. this.eScore = { eBzText: "", eStar: [] };
  19330. if (this.worksStudent[i].length) {
  19331. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19332. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19333. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19334. this.rateJson =
  19335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19336. index
  19337. ].toolChoose[i].rateJson;
  19338. break;
  19339. } else {
  19340. this.rateJson =
  19341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19342. index
  19343. ].toolChoose[i].rateJson;
  19344. }
  19345. }
  19346. } else {
  19347. this.rateJson =
  19348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19349. index
  19350. ].toolChoose[i].rateJson;
  19351. }
  19352. this.isStar = false;
  19353. this.studentEvalDialogVisibleTeacher = true;
  19354. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19355. window.topU.postMessage(
  19356. {
  19357. tools: t + "teacher",
  19358. cid: this.id,
  19359. stage: this.courseType,
  19360. task: this.taskCount,
  19361. tool: i,
  19362. student: this.sStudent,
  19363. },
  19364. "*"
  19365. );
  19366. }else if (t == 72) {
  19367. if (!document.fullscreenElement) {
  19368. this.enterFullScreen();
  19369. }
  19370. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19371. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19372. }
  19373. },
  19374. openCocoPi(tool, i, uid, uname) {
  19375. let student = {
  19376. userid: uid,
  19377. student: uname,
  19378. };
  19379. if (tool == 57) {
  19380. window.topU.postMessage(
  19381. {
  19382. tools: tool + "teacher",
  19383. cid: this.id,
  19384. stage: this.courseType,
  19385. task: this.taskCount,
  19386. tool: i,
  19387. student: student,
  19388. },
  19389. "*"
  19390. );
  19391. }
  19392. },
  19393. setRightAnswer(s, i, j) {
  19394. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19395. if (
  19396. this.sentenceList[i].chooseSenList[q] == undefined ||
  19397. this.sentenceList[i].chooseSenList[q] == ""
  19398. ) {
  19399. this.sentenceList[i].chooseSenList[q] = s;
  19400. this.sentenceList[i].addChangeSen[j] = "";
  19401. break;
  19402. }
  19403. }
  19404. this.$forceUpdate();
  19405. },
  19406. returnCard(r, i, j) {
  19407. var a = this.sentenceList[i].addSentence.indexOf(r);
  19408. this.sentenceList[i].chooseSenList[j] = "";
  19409. this.sentenceList[i].addChangeSen[a] = r;
  19410. this.$forceUpdate();
  19411. },
  19412. // addSentenceTool() {
  19413. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19414. // this.taskCount
  19415. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19416. // this.sentenceList = [
  19417. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19418. // ];
  19419. // this.dialogVisibleSentence = false;
  19420. // },
  19421. toolsCount(a, t) {
  19422. let params = {
  19423. cid: this.id,
  19424. chid: this.courseType,
  19425. uid: this.userid,
  19426. tid: t,
  19427. count: a,
  19428. };
  19429. this.ajax
  19430. .get(this.$store.state.api + "insertToolsCount", params)
  19431. .then((res) => {
  19432. this.selectCount();
  19433. })
  19434. .catch((err) => {
  19435. console.error(err);
  19436. });
  19437. },
  19438. updateCount(c, t) {
  19439. c++;
  19440. let params = {
  19441. cid: this.id,
  19442. chid: this.courseType,
  19443. uid: this.userid,
  19444. tid: t,
  19445. count: c,
  19446. };
  19447. this.ajax
  19448. .get(this.$store.state.api + "updateToolsCount", params)
  19449. .then((res) => {
  19450. this.selectCount();
  19451. })
  19452. .catch((err) => {
  19453. console.error(err);
  19454. });
  19455. },
  19456. checkEva() {
  19457. if (this.evalua != "") {
  19458. for (var i = 0; i < this.evaJuri.length; i++) {
  19459. if (this.evalua == this.evaJuri[i].id) {
  19460. this.eTitle = this.evaJuri[i].title;
  19461. this.eJson = JSON.parse(this.evaJuri[i].content);
  19462. }
  19463. }
  19464. this.$forceUpdate();
  19465. setTimeout(() => {
  19466. this.setMindData();
  19467. }, 0);
  19468. }
  19469. },
  19470. selectEva() {
  19471. let params = {
  19472. oid: this.oid,
  19473. };
  19474. this.ajax
  19475. .get(this.$store.state.api + "selectAllEvaluation", params)
  19476. .then((res) => {
  19477. this.evaJuri = res.data[0];
  19478. })
  19479. .catch((err) => {
  19480. console.error(err);
  19481. });
  19482. },
  19483. setMindData() {
  19484. this.data.data = [];
  19485. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19486. let _eJson = Object.keys(this.eJson);
  19487. let _e = this.eJson;
  19488. for (let i = 0; i < _eJson.length; i++) {
  19489. let element = _e[_eJson[i]];
  19490. this.data.data.push({
  19491. id: element.id,
  19492. parentid: "root",
  19493. topic: element.name,
  19494. });
  19495. let _eJsonc = Object.keys(element.child);
  19496. let _e2 = element.child;
  19497. for (let j = 0; j < _eJsonc.length; j++) {
  19498. let _ec = _e2[_eJsonc[j]];
  19499. this.data.data.push({
  19500. id: _ec.id,
  19501. parentid: element.id,
  19502. topic: _ec.name,
  19503. });
  19504. let _eJsonz = Object.keys(_ec.child);
  19505. let _e3 = _ec.child;
  19506. for (let z = 0; z < _eJsonz.length; z++) {
  19507. let _ez = _e3[_eJsonz[z]];
  19508. this.data.data.push({
  19509. id: _ez.id,
  19510. parentid: _ec.id,
  19511. topic: _ez.name,
  19512. });
  19513. }
  19514. }
  19515. }
  19516. this.$forceUpdate();
  19517. },
  19518. checkFileFull(type, url) {
  19519. this.fullDialogVisible = true;
  19520. this.fulltype = type;
  19521. this.fullUrl = url;
  19522. },
  19523. async checkFileFull1(t, f) {
  19524. this.fullDialogVisible = true;
  19525. if (t == 6) {
  19526. this.fulltype = 1;
  19527. this.fullUrl = JSON.parse(JSON.stringify(f));
  19528. } else if (t == 8 ) {
  19529. this.fulltype = 2;
  19530. this.fullUrl = f.url;
  19531. }else if (t == 15) {
  19532. this.fulltype = 4;
  19533. this.fullUrl = f.url;
  19534. } else if (
  19535. t == 3 &&
  19536. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19537. "PDF"
  19538. ) {
  19539. this.fulltype = 3;
  19540. this.fullUrl = f.url;
  19541. } else if (t == 3) {
  19542. this.fulltype = 2;
  19543. let _uuurl = await this.checkLink(f.url);
  19544. this.fullUrl =
  19545. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19546. }
  19547. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19548. },
  19549. openSname(n, id, i, uid) {
  19550. this.snameWid = id;
  19551. this.worksSName = n;
  19552. this.worksSid = uid == n ? "" : uid;
  19553. this.toolindex = i;
  19554. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19555. if (!this.uploadCid) {
  19556. this.$message.error(
  19557. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19558. );
  19559. return;
  19560. }
  19561. this.selectUploadStudent(1);
  19562. },
  19563. updateName() {
  19564. let params = {
  19565. n: this.worksSName,
  19566. cid: this.snameWid,
  19567. };
  19568. this.ajax
  19569. .get(this.$store.state.api + "updateCourseWorksName", params)
  19570. .then((res) => {
  19571. this.$message({
  19572. message: "修改成功",
  19573. type: "success",
  19574. });
  19575. this.dialogVisibleSname = false;
  19576. this.getCourseDetail(2);
  19577. this.snameWid = "";
  19578. this.worksSName = "";
  19579. })
  19580. .catch((err) => {
  19581. console.error(err);
  19582. });
  19583. },
  19584. downloadFile2(f) {
  19585. // const loading = this.$loading.service({
  19586. // background: "rgba(255, 255, 255, 0.7)",
  19587. // target: document.body,
  19588. // text: "文件加载中...",
  19589. // });
  19590. // let url2 = f.url;
  19591. // let _url2 = "";
  19592. // if (
  19593. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19594. // ) {
  19595. // _url2 = url2.split(
  19596. // "https://view.officeapps.live.com/op/view.aspx?src="
  19597. // )[1];
  19598. // } else {
  19599. // _url2 = url2;
  19600. // }
  19601. // let params = {
  19602. // url: _url2,
  19603. // name: f.name,
  19604. // };
  19605. // this.ajax
  19606. // .get(this.$store.state.api + "download", params)
  19607. // .then((res) => {
  19608. // loading.close();
  19609. // let content = res.data.data.data;
  19610. // let ab = new ArrayBuffer(content.length);
  19611. // let view = new Uint8Array(ab);
  19612. // for (var i = 0; i < content.length; ++i) {
  19613. // view[i] = content[i];
  19614. // }
  19615. // let elink = document.createElement("a");
  19616. // elink.download = f.name;
  19617. // elink.style.display = "none";
  19618. // let blob = new Blob([ab], {
  19619. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19620. // });
  19621. // elink.href = URL.createObjectURL(blob);
  19622. // document.body.appendChild(elink);
  19623. // elink.click();
  19624. // document.body.removeChild(elink);
  19625. // })
  19626. // .catch((err) => {
  19627. // loading.close();
  19628. // console.error(err);
  19629. // });
  19630. var credentials = {
  19631. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19632. secretAccessKey: "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",
  19633. }; //秘钥形式的登录上传
  19634. window.AWS.config.update(credentials);
  19635. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19636. let url2 = f.url;
  19637. let _url2 = "";
  19638. if (
  19639. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19640. ) {
  19641. _url2 = url2.split(
  19642. "https://view.officeapps.live.com/op/view.aspx?src="
  19643. )[1];
  19644. } else {
  19645. _url2 = url2;
  19646. }
  19647. let _this = this;
  19648. _this.downLoading = true
  19649. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19650. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19651. var params = {
  19652. Bucket: "ccrb",
  19653. Key: name
  19654. };
  19655. s3.getObject(params, function (err, data) {
  19656. _this.downLoading = false
  19657. if (err) console.log(err, err.stack); // an error occurred
  19658. else {
  19659. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19660. let a = document.createElement("a");
  19661. a.name = f.name;
  19662. a.href = url;
  19663. a.download = f.name;
  19664. a.click();
  19665. console.log(data);
  19666. } // sxuccessful response
  19667. });
  19668. return;
  19669. let url = f.url;
  19670. let _url = "";
  19671. if (
  19672. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19673. ) {
  19674. _url = url.split(
  19675. "https://view.officeapps.live.com/op/view.aspx?src="
  19676. )[1];
  19677. } else {
  19678. _url = url;
  19679. }
  19680. _this.downLoading = true
  19681. let x = new XMLHttpRequest();
  19682. x.open("GET", _url, true);
  19683. x.responseType = "blob";
  19684. x.onload = function () {
  19685. _this.downLoading = false
  19686. let url = window.URL.createObjectURL(new Blob([x.response]));
  19687. let a = document.createElement("a");
  19688. a.name = f.name;
  19689. a.href = url;
  19690. a.download = f.name;
  19691. a.click();
  19692. };
  19693. x.send();
  19694. },
  19695. downloadFile(url) {
  19696. // this.$message.info("查看作业-下载文件")
  19697. var credentials = {
  19698. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19699. secretAccessKey: "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",
  19700. }; //秘钥形式的登录上传
  19701. window.AWS.config.update(credentials);
  19702. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19703. let url2 = url;
  19704. let _url2 = "";
  19705. if (
  19706. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19707. ) {
  19708. _url2 = url2.split(
  19709. "https://view.officeapps.live.com/op/view.aspx?src="
  19710. )[1];
  19711. } else {
  19712. _url2 = url2;
  19713. }
  19714. const loading2 = this.$loading.service({
  19715. background: "rgba(255, 255, 255, 0.7)",
  19716. target: document.body,
  19717. text: "文件加载中...",
  19718. });
  19719. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19720. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19721. var params = {
  19722. Bucket: "ccrb",
  19723. Key: name
  19724. };
  19725. s3.getObject(params, function (err, data) {
  19726. loading2.close();
  19727. if (err) console.log(err, err.stack); // an error occurred
  19728. else {
  19729. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19730. let a = document.createElement("a");
  19731. a.name = name;
  19732. a.href = url;
  19733. a.download = name;
  19734. a.click();
  19735. console.log(data);
  19736. } // sxuccessful response
  19737. });
  19738. return;
  19739. let _this = this;
  19740. let _url = "";
  19741. if (
  19742. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19743. ) {
  19744. _url = url.split(
  19745. "https://view.officeapps.live.com/op/view.aspx?src="
  19746. )[1];
  19747. } else {
  19748. _url = url;
  19749. }
  19750. const x = new XMLHttpRequest();
  19751. x.open("GET", _url, true);
  19752. x.responseType = "blob";
  19753. // this.downLoading = true
  19754. const loading = _this.$loading.service({
  19755. background: "rgba(255, 255, 255, 0.7)",
  19756. target: document.body,
  19757. text: "文件加载中...",
  19758. });
  19759. // _this.$message.success("文件下载中...");
  19760. x.onload = function (e) {
  19761. loading.close();
  19762. let content = x.response;
  19763. let elink = document.createElement("a");
  19764. elink.download = decodeURI(
  19765. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19766. );
  19767. elink.style.display = "none";
  19768. let blob = new Blob([content]);
  19769. elink.href = URL.createObjectURL(blob);
  19770. document.body.appendChild(elink);
  19771. elink.click();
  19772. document.body.removeChild(elink);
  19773. };
  19774. x.send();
  19775. },
  19776. openLine(url) {
  19777. window.open(url);
  19778. },
  19779. resize() {
  19780. if (document.getElementsByClassName("box_course").length) {
  19781. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19782. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19783. if (this.showType == 2 || this.showType == 3) {
  19784. document.getElementsByClassName("navBox")[0].style.height =
  19785. a - 40 + 0+ "px";
  19786. } else {
  19787. document.getElementsByClassName("navBox")[0].style.height =
  19788. a - 40 + "px";
  19789. }
  19790. }
  19791. this.Stbodywidth =
  19792. document.getElementsByClassName("student_body").length &&
  19793. document.getElementsByClassName("student_body")[0].offsetWidth;
  19794. },
  19795. closeDraw() {
  19796. this.bg = null;
  19797. this.drawShow = false;
  19798. },
  19799. showPicturePaint(url) {
  19800. let params = {
  19801. img: url,
  19802. };
  19803. this.ajax
  19804. .get(this.$store.state.api + "imgToBase64", params)
  19805. .then((res) => {
  19806. this.drawShow = true;
  19807. this.bg = res.data[0].img;
  19808. })
  19809. .catch((err) => {
  19810. console.error(err);
  19811. });
  19812. },
  19813. addImgDraw(base64) {
  19814. let file = { name: "批注图.png" };
  19815. let img = this.dataUrlToFile(base64, file);
  19816. this.beforeUpload1(img, 5);
  19817. },
  19818. addImgDrawImG(url) {
  19819. // console.log(url);
  19820. let params = [
  19821. {
  19822. wid: this.commentDetail.wid,
  19823. img: url,
  19824. },
  19825. ];
  19826. this.ajax
  19827. .post(this.$store.state.api + "updateCourseWorks", params)
  19828. .then((res) => {
  19829. this.$message({
  19830. message: "提交成功",
  19831. type: "success",
  19832. });
  19833. this.drawShow = false;
  19834. this.bg = "";
  19835. this.selectSWorks();
  19836. this.selectStudent();
  19837. })
  19838. .catch((err) => {
  19839. this.$message.error("提交失败");
  19840. console.error(err);
  19841. });
  19842. },
  19843. deletePicturePaint() {
  19844. this.$confirm("确定删除此批注吗?", "提示", {
  19845. confirmButtonText: "确定",
  19846. cancelButtonText: "取消",
  19847. type: "warning",
  19848. })
  19849. .then(() => {
  19850. let params = [
  19851. {
  19852. wid: this.commentDetail.wid,
  19853. img: "",
  19854. },
  19855. ];
  19856. this.ajax
  19857. .post(this.$store.state.api + "updateCourseWorks", params)
  19858. .then((res) => {
  19859. this.$message({
  19860. message: "删除成功",
  19861. type: "success",
  19862. });
  19863. this.selectSWorks();
  19864. this.selectStudent();
  19865. })
  19866. .catch((err) => {
  19867. this.$message.error("删除失败");
  19868. console.error(err);
  19869. });
  19870. })
  19871. .catch(() => {});
  19872. },
  19873. getAudioVideo(constraintsData) {
  19874. if (navigator.mediaDevices === undefined) {
  19875. navigator.mediaDevices = {};
  19876. }
  19877. if (navigator.mediaDevices.getUserMedia === undefined) {
  19878. navigator.mediaDevices.getUserMedia = function (constraints) {
  19879. // 首先,如果有getUserMedia的话,就获得它
  19880. var getUserMedia =
  19881. navigator.getUserMedia ||
  19882. navigator.webkitGetUserMedia ||
  19883. navigator.mozGetUserMedia ||
  19884. navigator.msGetUserMedia;
  19885. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19886. if (!getUserMedia) {
  19887. return Promise.reject({ code: 404 });
  19888. }
  19889. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19890. return new Promise(function (resolve, reject) {
  19891. getUserMedia.call(navigator, constraints, resolve, reject);
  19892. });
  19893. };
  19894. }
  19895. return navigator.mediaDevices.getUserMedia(constraintsData);
  19896. },
  19897. /**
  19898. * 开始录制
  19899. */
  19900. startRecording(callback) {
  19901. let _function = (screenStream) => {
  19902. this.addStreamStopListener(screenStream, () => {
  19903. console.log("流停止监听");
  19904. this.stopRecording();
  19905. this.$emit("streamStop", {});
  19906. // this.stopRecording();
  19907. });
  19908. var options = {
  19909. type: "video",
  19910. mimeType: "video/webm",
  19911. disableLogs: false,
  19912. getNativeBlob: false, // enable it for longer recordings
  19913. ignoreMutedMedia: false,
  19914. };
  19915. // this.video.srcObject = screenStream;
  19916. this.recorder = RecordRTC(screenStream, options);
  19917. this.recorder.startRecording();
  19918. this.recorder.screen = screenStream;
  19919. this.videoStart = true;
  19920. // callback(true);
  19921. };
  19922. this.getAudioVideo({ audio: true })
  19923. .then((res) => {
  19924. this.captureScreen(_function, true);
  19925. console.log("已点击允许,开启成功");
  19926. })
  19927. .catch((err) => {
  19928. // console.log('浏览器不支持,请更换浏览器')
  19929. // } else {
  19930. this.captureScreen(_function, false);
  19931. console.log("请检查是否存在麦克风");
  19932. });
  19933. },
  19934. /**
  19935. * 停止录制
  19936. */
  19937. stopRecording(callback) {
  19938. this.recorder.stopRecording(() => {
  19939. // this.video.src = this.video.srcObject = null;
  19940. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19941. const url = URL.createObjectURL(this.recorder.getBlob());
  19942. const a = document.createElement("a"); //this.fileName+
  19943. let videoFile = new File(
  19944. [this.recorder.getBlob()],
  19945. this.courseDetail.title + "录屏.mp4",
  19946. {
  19947. type: "video/mp4",
  19948. }
  19949. );
  19950. let downloadUrl = URL.createObjectURL(videoFile);
  19951. if(this.$refs.classRoomHelperRef){
  19952. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19953. }
  19954. document.body.appendChild(a);
  19955. a.style.display = "none";
  19956. a.href = url;
  19957. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19958. a.click();
  19959. this.recorder.screen.stop();
  19960. this.recorder.destroy();
  19961. this.recorder = null;
  19962. this.videoStart = false;
  19963. // callback(false);
  19964. });
  19965. },
  19966. //初始化
  19967. captureScreen(callback, type) {
  19968. if (navigator.getDisplayMedia) {
  19969. //录制结束,文件下载
  19970. navigator
  19971. .getDisplayMedia({
  19972. video: true,
  19973. })
  19974. .then((screenStream) => {
  19975. if (type) {
  19976. navigator.mediaDevices
  19977. .getUserMedia({ audio: true })
  19978. .then((mic) => {
  19979. screenStream.addTrack(mic.getTracks()[0]);
  19980. callback(screenStream);
  19981. });
  19982. } else {
  19983. callback(screenStream);
  19984. }
  19985. })
  19986. .catch(function (error) {
  19987. console.log("error", error);
  19988. });
  19989. } else if (navigator.mediaDevices.getDisplayMedia) {
  19990. navigator.mediaDevices
  19991. .getDisplayMedia({
  19992. video: true,
  19993. })
  19994. .then((screenStream) => {
  19995. if (type) {
  19996. navigator.mediaDevices
  19997. .getUserMedia({ audio: true })
  19998. .then((mic) => {
  19999. screenStream.addTrack(mic.getTracks()[0]);
  20000. callback(screenStream);
  20001. });
  20002. } else {
  20003. callback(screenStream);
  20004. }
  20005. })
  20006. .catch(function (error) {
  20007. console.log("error", error);
  20008. });
  20009. } else {
  20010. var error = "getDisplayMedia API are not supported in this browser.";
  20011. console.log("error", error);
  20012. alert(error);
  20013. }
  20014. },
  20015. //流监听
  20016. addStreamStopListener(stream, callback) {
  20017. stream.addEventListener(
  20018. "ended",
  20019. function () {
  20020. callback();
  20021. callback = function () {};
  20022. },
  20023. false
  20024. );
  20025. stream.addEventListener(
  20026. "inactive",
  20027. function () {
  20028. callback();
  20029. callback = function () {};
  20030. },
  20031. false
  20032. );
  20033. stream.getTracks().forEach(function (track) {
  20034. track.addEventListener(
  20035. "ended",
  20036. function () {
  20037. callback();
  20038. callback = function () {};
  20039. },
  20040. false
  20041. );
  20042. track.addEventListener(
  20043. "inactive",
  20044. function () {
  20045. callback();
  20046. callback = function () {};
  20047. },
  20048. false
  20049. );
  20050. });
  20051. },
  20052. updateGroup() {
  20053. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20054. this.dialogVisibleGroup2 = true;
  20055. },
  20056. numberPan() {
  20057. if (
  20058. /[^\d]/.test(this.groupJson.number) ||
  20059. this.groupJson.number < 2 ||
  20060. this.groupJson.number > 10
  20061. ) {
  20062. this.$message.error("请输入2-10的数字");
  20063. this.groupJson.number = "";
  20064. }
  20065. },
  20066. updateGroupJson() {
  20067. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20068. if (
  20069. this.groupStudentUid[this.toolindex][i].length >
  20070. this.groupJson2.number
  20071. ) {
  20072. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20073. return;
  20074. }
  20075. }
  20076. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20077. this.islock = this.groupJson.islock == 1 ? true : false;
  20078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20079. this.taskCount
  20080. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20081. let params = [
  20082. {
  20083. cid: this.id,
  20084. chapters: JSON.stringify(this.chapInfoList),
  20085. uid: this.userid,
  20086. unitIndex: this.courseType,
  20087. },
  20088. ];
  20089. this.ajax
  20090. .post(this.$store.state.api + "updateWorkNew4", params)
  20091. .then((res) => {
  20092. this.$message.success("设置成功");
  20093. this.getCourseDetail(2);
  20094. this.dialogVisibleGroup2 = false;
  20095. this.groupJson2 = {};
  20096. this.$forceUpdate();
  20097. })
  20098. .catch((err) => {
  20099. this.$message.error("网络不佳");
  20100. console.error(err);
  20101. });
  20102. },
  20103. lockChair() {
  20104. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20105. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20106. this.updateGroupJson();
  20107. },
  20108. selectGroup(index) {
  20109. this.getCourseDetail(2, index);
  20110. },
  20111. joinGroup(index) {
  20112. if (this.groupJson.islock == 2) {
  20113. this.$message.error("位置已被锁定,无法加入");
  20114. return;
  20115. }
  20116. if (
  20117. this.groupStudent[this.toolindex][index].length >
  20118. this.groupJson.number ||
  20119. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20120. ) {
  20121. this.$message.error("位置已满,无法加入");
  20122. return;
  20123. }
  20124. let params = [
  20125. {
  20126. cid: this.id,
  20127. stage: this.courseType,
  20128. task: this.taskCount,
  20129. tool: this.toolindex,
  20130. g: index,
  20131. uid: this.userid,
  20132. },
  20133. ];
  20134. this.ajax
  20135. .post(this.$store.state.api + "joinGroup", params)
  20136. .then((res) => {
  20137. this.$message.success("加入成功");
  20138. this.getCourseDetail(2);
  20139. })
  20140. .catch((err) => {
  20141. this.$message.error("网络不佳");
  20142. console.error(err);
  20143. });
  20144. },
  20145. exitGroup(id) {
  20146. if (this.groupJson.islock == 2) {
  20147. this.$message.error("位置已被锁定,无法退出");
  20148. return;
  20149. }
  20150. let params = [
  20151. {
  20152. gid: id,
  20153. },
  20154. ];
  20155. this.ajax
  20156. .post(this.$store.state.api + "exitGroup", params)
  20157. .then((res) => {
  20158. this.$message.success("退出成功");
  20159. this.getCourseDetail(2);
  20160. })
  20161. .catch((err) => {
  20162. this.$message.error("网络不佳");
  20163. console.error(err);
  20164. });
  20165. },
  20166. groupUpload(index, task, gindex) {
  20167. this.taskCount = task;
  20168. this.toolindex = index;
  20169. this.groupIndex = gindex;
  20170. this.dialogVisibleGroupWork = true;
  20171. },
  20172. updateGroupChair(user) {
  20173. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20174. el.label = index;
  20175. return index != user.group;
  20176. });
  20177. this.updateGroupUser = user;
  20178. this.dialogVisibleUpdateGroup = true;
  20179. },
  20180. updateChair() {
  20181. if (
  20182. this.groupStudent[this.toolindex][this.checkChair].length >
  20183. this.groupJson.number ||
  20184. this.groupStudent[this.toolindex][this.checkChair].length ==
  20185. this.groupJson.number
  20186. ) {
  20187. this.$message.error("位置已满,无法加入");
  20188. return;
  20189. }
  20190. let params = [
  20191. {
  20192. cid: this.id,
  20193. stage: this.courseType,
  20194. task: this.taskCount,
  20195. tool: this.toolindex,
  20196. g: this.checkChair,
  20197. uid: this.updateGroupUser.userid,
  20198. },
  20199. ];
  20200. this.ajax
  20201. .post(this.$store.state.api + "joinGroup", params)
  20202. .then((res) => {
  20203. this.$message.success("修改成功");
  20204. this.updateGroupUser = {};
  20205. this.checkChair = "";
  20206. this.updateGroupArray = {};
  20207. this.dialogVisibleUpdateGroup = false;
  20208. this.getCourseDetail(2);
  20209. })
  20210. .catch((err) => {
  20211. this.$message.error("网络不佳");
  20212. console.error(err);
  20213. });
  20214. },
  20215. deleteGroupChair(gindex) {
  20216. this.checkDeleteGroup = [];
  20217. this.deleteGroupUser = JSON.parse(
  20218. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20219. );
  20220. this.deleteGroupArray = this.groupJson.group[gindex];
  20221. this.groupIndex = gindex;
  20222. this.dialogVisibleDeleteGroup = true;
  20223. },
  20224. async deleteChair() {
  20225. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20226. const gid =
  20227. this.groupStudent[this.toolindex][this.groupIndex][
  20228. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20229. this.checkDeleteGroup[i]
  20230. )
  20231. ];
  20232. let params = [
  20233. {
  20234. gid: gid.id,
  20235. },
  20236. ];
  20237. var a = await this.deleteChairA(params);
  20238. if (i == this.checkDeleteGroup.length - 1) {
  20239. this.$message.success("退出成功");
  20240. this.dialogVisibleDeleteGroup = false;
  20241. this.deleteGroupUser = [];
  20242. this.deleteGroupArray = {};
  20243. this.groupIndex = "";
  20244. this.checkDeleteGroup = [];
  20245. this.getCourseDetail(2);
  20246. }
  20247. }
  20248. },
  20249. deleteChairA(params) {
  20250. return new Promise((resolve, reject) => {
  20251. this.ajax
  20252. .post(this.$store.state.api + "exitGroup", params)
  20253. .then((res) => {
  20254. resolve(1);
  20255. })
  20256. .catch((err) => {
  20257. this.$message.error("网络不佳");
  20258. console.error(err);
  20259. });
  20260. });
  20261. },
  20262. contract(i) {
  20263. if (this.isCloseList[i].isClose == 0) {
  20264. this.isCloseList[i].isClose = 1;
  20265. } else {
  20266. this.isCloseList[i].isClose = 0;
  20267. }
  20268. this.$forceUpdate();
  20269. },
  20270. openWordCloud(toolindex) {
  20271. this.wordCloudData = '';
  20272. let array = [];
  20273. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20274. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20275. array.push({ name: works });
  20276. }
  20277. if (this.isGroup) {
  20278. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20279. let works = this.courseGroup.group[i].works[toolindex];
  20280. for (var j = 0; j < works.length; j++) {
  20281. let answer = JSON.parse(works[j].works)[0].answer;
  20282. array.push({ name: answer });
  20283. }
  20284. }
  20285. }
  20286. let _result = ''
  20287. array.forEach(e=>{
  20288. _result +=e.name+','
  20289. })
  20290. this.wordCloudData = _result;
  20291. this.dialogVisibleWordCloud = true;
  20292. this.wordCloudKey += 1;
  20293. },
  20294. uploadWorks(i) {
  20295. this.$confirm("确定导出作业吗?", "提示", {
  20296. confirmButtonText: "确定",
  20297. cancelButtonText: "取消",
  20298. type: "warning",
  20299. })
  20300. .then(() => {
  20301. const loading = this.$loading.service({
  20302. background: "rgba(255, 255, 255, 0.7)",
  20303. target: document.body,
  20304. text: "文件加载中...",
  20305. });
  20306. const _worksStudent = this.worksStudent;
  20307. let url = [];
  20308. var counts = {};
  20309. for (var l = 0; l < _worksStudent[i].length; l++) {
  20310. var item = _worksStudent[i][l];
  20311. var name = item.sName;
  20312. if (!counts.hasOwnProperty(name)) {
  20313. counts[name] = 0;
  20314. } else {
  20315. counts[name]++;
  20316. }
  20317. if (counts[name] > 0) {
  20318. item.sName += " (" + counts[name] + ")";
  20319. }
  20320. }
  20321. for (var l = 0; l < _worksStudent[i].length; l++) {
  20322. var item = _worksStudent[i][l];
  20323. if (
  20324. item.works.indexOf(
  20325. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20326. ) !== -1 &&
  20327. item.works.indexOf("img") === -1
  20328. ) {
  20329. url.push({ name: item.sName, url: item.works });
  20330. }
  20331. }
  20332. // var toolList = [
  20333. // { name: "电子白板", tool: 1 },
  20334. // { name: "思维导图", tool: 3 },
  20335. // { name: "协同文档", tool: 6 },
  20336. // { name: "思维网格", tool: 7 },
  20337. // { name: "素材库", tool: 8 },
  20338. // { name: "学习资料", tool: 17 },
  20339. // { name: "便签", tool: 2 },
  20340. // { name: "问卷调查", tool: 4 },
  20341. // { name: "选择题", tool: 45 },
  20342. // { name: "倒计时", tool: 10 },
  20343. // { name: "问答", tool: 15 },
  20344. // { name: "课程设计", tool: 26 },
  20345. // { name: "训练服务器", tool: 18 },
  20346. // { name: "作业提交", tool: 16 },
  20347. // { name: "批量上传", tool: 50 },
  20348. // { name: "AIoT Blockly", tool: 21 },
  20349. // { name: "AI Python", tool: 23 },
  20350. // { name: "AI Blockly", tool: 24 },
  20351. // { name: "目标管理", tool: 25 },
  20352. // { name: "数学画板", tool: 31 },
  20353. // { name: "翻译", tool: 28 },
  20354. // { name: "魔盒识字", tool: 37 },
  20355. // { name: "数学画板", tool: 31 },
  20356. // { name: "24点", tool: 38 },
  20357. // { name: "GeoGebra", tool: 39 },
  20358. // { name: "源码编辑", tool: 32 },
  20359. // { name: "个人评价", tool: 40 },
  20360. // { name: "选择匹配", tool: 41 },
  20361. // { name: "汉字宫", tool: 44 },
  20362. // { name: "排序", tool: 47 },
  20363. // { name: "表格", tool: 48 },
  20364. // { name: "文档", tool: 52 },
  20365. // { name: "学生分组", tool: 49 },
  20366. // { name: "CocoPi", tool: 57 },
  20367. // { name: "模拟驾驶", tool: 58 },
  20368. // { name: "路径搜索", tool: 59 },
  20369. // { name: "深度学习", tool: 60 },
  20370. // { name: "全历史", tool: 61 },
  20371. // { name: "交互视频", tool: 62 },
  20372. // { name: "海龟编程", tool: 63 },
  20373. // { name: "挑人", tool: 65 },
  20374. // { name: "公式编辑", tool: 66 },
  20375. // { name: "分子结构", tool: 67 },
  20376. // { name: "时间轴", tool: 68 },
  20377. // ];
  20378. // var toolName = "";
  20379. // for(var w = 0;w<toolList.length;w++){
  20380. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20381. // toolName = toolList[w].name;
  20382. // }
  20383. // }
  20384. console.log(url);
  20385. this.downLoadAll(url, loading);
  20386. })
  20387. .catch(() => {});
  20388. },
  20389. downLoadAll(url, loading) {
  20390. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20391. const zip = new JSZip();
  20392. const cache = {};
  20393. const promises = [];
  20394. data.forEach((item) => {
  20395. const promise = getFile(item.url).then((data) => {
  20396. if (data.data != 1) {
  20397. // 下载文件, 并存成ArrayBuffer对象
  20398. const file_name =
  20399. item.name +
  20400. "." +
  20401. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20402. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20403. cache[file_name] = data.data;
  20404. }
  20405. });
  20406. promises.push(promise);
  20407. });
  20408. Promise.all(promises).then(() => {
  20409. zip.generateAsync({ type: "blob" }).then((content) => {
  20410. // 生成二进制流
  20411. FileSaver.saveAs(
  20412. content,
  20413. this.courseDetail.title + "-" + "作业提交工具.zip"
  20414. ); // 利用file-saver保存文件 自定义文件名
  20415. setTimeout(() => {
  20416. loading.close();
  20417. }, 2000);
  20418. });
  20419. });
  20420. },
  20421. pickStudent(stu) {
  20422. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20423. return;
  20424. }
  20425. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20426. confirmButtonText: "确定",
  20427. cancelButtonText: "取消",
  20428. type: "warning",
  20429. })
  20430. .then(() => {
  20431. let params = [
  20432. {
  20433. uid: stu.userid,
  20434. cid: this.id,
  20435. stage: this.courseType,
  20436. task: this.taskCount,
  20437. tool: this.toolindex,
  20438. },
  20439. ];
  20440. this.ajax
  20441. .post(this.$store.state.api + "updateCoursePick", params)
  20442. .then((res) => {
  20443. this.$message.success("操作成功");
  20444. this.getPick();
  20445. })
  20446. .catch((err) => {
  20447. this.$message.error("网络不佳");
  20448. console.error(err);
  20449. });
  20450. })
  20451. .catch(() => {});
  20452. },
  20453. selectUser(){
  20454. let params = {
  20455. userid: this.userid,
  20456. };
  20457. this.ajax
  20458. .get(this.$store.state.api + "selectUser", params)
  20459. .then((res) => {
  20460. this.userMes = res.data[0];
  20461. })
  20462. .catch((err) => {
  20463. console.error(err);
  20464. });
  20465. },
  20466. setEngText(i){
  20467. this.newEngIndex = i;
  20468. this.$forceUpdate();
  20469. },
  20470. addCorrect(){
  20471. this.$confirm("你确定提交批改嘛?", "提示", {
  20472. confirmButtonText: "确定",
  20473. showCancelButton: false,
  20474. closeOnClickModal: false,
  20475. type: "warning",
  20476. })
  20477. .then(() => {
  20478. let params = {
  20479. cid: this.id,
  20480. s: parseInt(this.courseType),
  20481. t: this.taskCount,
  20482. tool: this.toolindex,
  20483. wid: this.engWid,
  20484. c: this.userid,
  20485. 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) : "",
  20486. };
  20487. this.ajax
  20488. .get(this.$store.state.api + "addEngC", params)
  20489. .then((res) => {
  20490. this.$message.success("提交成功");
  20491. this.engUpdateDialogVisible = false;
  20492. })
  20493. .catch((err) => {
  20494. console.error(err);
  20495. });
  20496. })
  20497. .catch(() => {});
  20498. },
  20499. selectEngC(id,z){
  20500. let params = {
  20501. workid: id,
  20502. };
  20503. this.ajax
  20504. .get(this.$store.state.api + "selectEngC", params)
  20505. .then((res) => {
  20506. if(res.data[0].length == 0){
  20507. this.newEnglishList.engTitle = z.engTitle;
  20508. this.newEnglishList.engText = z.engText;
  20509. }else{
  20510. var a = res.data[0];
  20511. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20512. if(this.userMes[0].type == 2){
  20513. var snum = 0;
  20514. for(var i = 0;i<a.length;i++){
  20515. if(this.userMes[0].userid == a[i].correct){
  20516. this.newEnglishList = JSON.parse(a[i].cWork);
  20517. snum = 1;
  20518. }
  20519. }
  20520. if(snum == 0){
  20521. this.newEnglishList = { engTitle:"",engText:"" };
  20522. this.newEnglishList.engTitle = z.engTitle;
  20523. this.newEnglishList.engText = z.engText;
  20524. }
  20525. }else if(this.userMes[0].type == 1){
  20526. var num = 0;
  20527. for(var w= 0;w<a.length;w++){
  20528. if(this.userMes[0].userid == a[w].correct){
  20529. num = 1;
  20530. }
  20531. }
  20532. if(num == 0){
  20533. this.isNoUserid = true;
  20534. var c = JSON.parse(JSON.stringify(z));
  20535. this.oldEnglishJson1 = c;
  20536. }else{
  20537. this.isNoUserid = false;
  20538. }
  20539. var b = a.sort((item, index) => {
  20540. console.log(item)
  20541. if (item.correct === this.userMes[0].userid) {
  20542. return -1; // 将a移到前面
  20543. } else if (index.correct === this.userMes[0].userid) {
  20544. return 1; // 将b移到前面
  20545. } else {
  20546. return 0; // 保持默认顺序
  20547. }
  20548. });
  20549. for(var p = 0;p<b.length;p++){
  20550. for(var y = 0;y<ppp.length;y++){
  20551. if(b[p].id == ppp[y].id){
  20552. b[p].cWork = JSON.parse(ppp[y].cWork);
  20553. break
  20554. }
  20555. }
  20556. }
  20557. this.newEnglishList1 = b;
  20558. }
  20559. }
  20560. this.greyType = false;
  20561. setTimeout(() => {
  20562. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20563. if(this.newEnglishList1.length > 0){
  20564. if(this.isNoUserid == true){
  20565. this.engListLength = this.newEnglishList1.length + 1;
  20566. this.newEngIndex = -1;
  20567. }else{
  20568. this.engListLength = this.newEnglishList1.length;
  20569. this.newEngIndex = 0;
  20570. }
  20571. }
  20572. if(this.userMes[0].type == 2){
  20573. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20574. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20575. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20576. }else if(this.newEngIndex == -1){
  20577. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20578. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20579. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20580. }
  20581. }, 500);
  20582. this.engUpdateDialogVisible = true;
  20583. this.$forceUpdate();
  20584. })
  20585. .catch((err) => {
  20586. console.error(err);
  20587. });
  20588. },
  20589. getPick() {
  20590. let params = {
  20591. cid: this.id,
  20592. };
  20593. this.ajax
  20594. .get(this.$store.state.api + "getPick", params)
  20595. .then((res) => {
  20596. let array = [];
  20597. for (var i = 0; i < res.data[0].length; i++) {
  20598. array.push(res.data[0][i].userid);
  20599. }
  20600. this.isPickStudent = array;
  20601. if (array.indexOf(this.userid) !== -1) {
  20602. this.$confirm("你被老师选到啦!", "提示", {
  20603. confirmButtonText: "确定",
  20604. showCancelButton: false,
  20605. closeOnClickModal: false,
  20606. type: "warning",
  20607. })
  20608. .then(() => {
  20609. let pa = [
  20610. {
  20611. uid: this.userid,
  20612. cid: this.id,
  20613. },
  20614. ];
  20615. this.ajax
  20616. .post(this.$store.state.api + "deletePick", pa)
  20617. .then((res) => {
  20618. this.getPick();
  20619. })
  20620. .catch((err) => {
  20621. this.$message.error("网络不佳");
  20622. console.error(err);
  20623. });
  20624. })
  20625. .catch(() => {});
  20626. }
  20627. })
  20628. .catch((err) => {
  20629. this.$message.error("网络不佳");
  20630. console.error(err);
  20631. });
  20632. },
  20633. foldEva() {
  20634. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20636. } else {
  20637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20638. setTimeout(() => {
  20639. this.checkEva();
  20640. setTimeout(() => {
  20641. this.checkEva();
  20642. }, 500);
  20643. }, 0);
  20644. }
  20645. this.$forceUpdate();
  20646. },
  20647. panToolHeight(tool) {
  20648. var _tool = document.querySelectorAll('#'+tool)[0]
  20649. var _toolA = _tool ? _tool.offsetHeight : 0
  20650. var _toolC = 0
  20651. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20652. let boolean2 = (_toolA > _toolC) ? true : false
  20653. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20654. this.$forceUpdate();
  20655. },
  20656. async checkLink(url) {
  20657. console.log(url)
  20658. let _url = url
  20659. try {
  20660. const response = await fetch(url);
  20661. if(!response.ok){
  20662. _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]))
  20663. }
  20664. console.log(response.ok)
  20665. } catch (error) {
  20666. console.error('Error checking link:', error);
  20667. // console.log(false)
  20668. _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]))
  20669. }
  20670. // console.log(_url)
  20671. return _url
  20672. },
  20673. getScoreList(){
  20674. let params = {
  20675. cid: this.id,
  20676. };
  20677. this.ajax
  20678. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20679. .then((res) => {
  20680. let result = res.data;
  20681. this.scoreList.datalist = result[0];
  20682. this.scoreList.isScoreList = result[1];
  20683. })
  20684. .catch((err) => {
  20685. console.error(err);
  20686. });
  20687. },
  20688. setClassRoomHelperWidth(width){
  20689. this.classRoomHelperWidth = width
  20690. },
  20691. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20692. this.$refs.choseWorksDetailDialogRef.open({
  20693. toolType:tooc,
  20694. tType: this.tType,
  20695. toolIndex: toolIndex
  20696. });
  20697. this.changeSplitScreenBehavior({
  20698. code: 1,
  20699. form: {
  20700. toolType:tooc,
  20701. toolIndex: toolIndex,
  20702. courseType: this.courseType,
  20703. taskCount: this.taskCount,
  20704. type: 0
  20705. }
  20706. });
  20707. },
  20708. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20709. this.$refs.statisticalAnalysisRef.open({
  20710. worksStudent: this.worksStudent[toolIndex],
  20711. tType: this.tType,
  20712. toolIndex: toolIndex
  20713. });
  20714. this.changeSplitScreenBehavior({
  20715. code: 2,
  20716. form: {
  20717. toolType:4,
  20718. courseType: this.courseType,
  20719. taskCount: this.taskCount,
  20720. toolIndex: toolIndex,
  20721. type: 0
  20722. }
  20723. });
  20724. },
  20725. statisticalAnalysisRefresh(toolIndex) {
  20726. this.$refs.statisticalAnalysisRef.refreshData({
  20727. worksStudent: this.worksStudent[toolIndex],
  20728. tType: this.tType,
  20729. toolIndex: toolIndex
  20730. });
  20731. },
  20732. async splitScreenBehavior(type = 0) {
  20733. // return;
  20734. if (this.splitScreenData.loading)
  20735. return this.$message.info("操作过快,请稍等");
  20736. if (type == 0) {
  20737. //关闭分屏
  20738. this.splitScreenData.isOpen = false;
  20739. // this.splitScreenData.userId = "";
  20740. // this.splitScreenData.uid = "";
  20741. this.splitScreenData.behavior = null;
  20742. await this.updateSplitScreenData(1);
  20743. this.$message.success("已关闭分屏模式");
  20744. this.studentFreePreview(false);
  20745. this.OpenJobPreview(false);
  20746. // this.followingMode(false);
  20747. } else if (type == 1) {
  20748. //开启分屏
  20749. this.splitScreenData.isOpen = true;
  20750. this.splitScreenData.userId = this.userid;
  20751. this.splitScreenData.uid = this.splitScreenData.myUid;
  20752. this.splitScreenData.behavior = null;
  20753. let status = await this.updateSplitScreenData(0);
  20754. this.changeSplitScreenBehavior({form:{}})
  20755. if (status == 1) {
  20756. this.$message.success("已开启分屏");
  20757. this.studentFreePreview(false);
  20758. this.OpenJobPreview(true);
  20759. // this.followingMode(true);
  20760. } else {
  20761. this.splitScreenData.isOpen = false;
  20762. this.splitScreenData.userId = "";
  20763. this.splitScreenData.uid = "";
  20764. this.splitScreenData.behavior = null;
  20765. this.$message.success("分屏开启失败");
  20766. }
  20767. }
  20768. },
  20769. enterFullScreen() {
  20770. let element = document.documentElement;
  20771. if (element.requestFullscreen) {
  20772. element.requestFullscreen();
  20773. } else if (element.mozRequestFullScreen) { /* Firefox */
  20774. element.mozRequestFullScreen();
  20775. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20776. element.webkitRequestFullscreen();
  20777. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20778. element.msRequestFullscreen();
  20779. }
  20780. },
  20781. exitFullScreen() {
  20782. if (document.exitFullscreen) {
  20783. document.exitFullscreen();
  20784. } else if (document.mozCancelFullScreen) { /* Firefox */
  20785. document.mozCancelFullScreen();
  20786. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20787. document.webkitExitFullscreen();
  20788. } else if (document.msExitFullscreen) { /* IE/Edge */
  20789. document.msExitFullscreen();
  20790. }
  20791. },
  20792. confirmOpen(){
  20793. this.splitScreenData.isOpen = true;
  20794. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20795. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20796. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20797. this.confirmOpenDig = false
  20798. if (!document.fullscreenElement) {
  20799. this.enterFullScreen();
  20800. }
  20801. if (this.timer2) {
  20802. clearInterval(this.timer2);
  20803. this.timer2 = null;
  20804. }
  20805. this.timer2 = setInterval(()=> {
  20806. this.getSplitScreenData();//获取分屏数据
  20807. }, 1000);
  20808. this.$message.success("分屏模式已开启");
  20809. },
  20810. // 获取分屏数据
  20811. getSplitScreenData() {
  20812. // return;
  20813. // if (this.tType != 1) return;
  20814. let params = {
  20815. cid: this.id
  20816. };
  20817. this.ajax
  20818. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20819. .then(async res => {
  20820. let data = res.data[0][0]["splitScreenData"];
  20821. console.log("获取了分屏数:", data);
  20822. if (data) {
  20823. data = JSON.parse(data);
  20824. if (
  20825. !this.splitScreenData.isOpen &&
  20826. data.isOpen &&
  20827. this.splitScreenData.myUid == data.uid
  20828. ) {
  20829. this.splitScreenData.isOpen = false;
  20830. this.splitScreenData.userId = "";
  20831. this.splitScreenData.uid = "";
  20832. this.splitScreenData.behavior = null;
  20833. await this.updateSplitScreenData(1);
  20834. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20835. this.confirmOpenDig = true
  20836. this.confirmOpenDigData = data
  20837. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20838. this.splitScreenData.isOpen = false;
  20839. this.splitScreenData.userId = "";
  20840. this.splitScreenData.uid = "";
  20841. this.splitScreenData.behavior = null;
  20842. this.$message.error("已结束分屏模式");
  20843. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20844. this.splitScreenData.isOpen = true;
  20845. this.splitScreenData.uid = data.uid;
  20846. this.splitScreenData.userId = data.userId;
  20847. this.splitScreenData.behavior = data.behavior;
  20848. }
  20849. this.doSplitScreenBehavior();
  20850. } else {
  20851. if (this.splitScreenData.isOpen) {
  20852. this.splitScreenData.isOpen = false;
  20853. this.splitScreenData.userId = "";
  20854. this.splitScreenData.uid = "";
  20855. this.splitScreenData.behavior = null;
  20856. this.$message.error("已结束分屏模式");
  20857. if (this.timer2) {
  20858. clearInterval(this.timer2);
  20859. this.timer2 = null;
  20860. }
  20861. this.timer2 = setInterval(()=> {
  20862. this.getSplitScreenData();//获取分屏数据
  20863. }, 5000);
  20864. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20865. confirmButtonText: '确定', //确认按钮的文字
  20866. showCancelButton: false, //是否显示取消按钮
  20867. showClose: false, //是否显示关闭按钮
  20868. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20869. type: "warning",
  20870. })
  20871. .then(() => {
  20872. if (document.fullscreenElement) {
  20873. this.exitFullScreen();
  20874. }
  20875. })
  20876. .catch(() => {});
  20877. }
  20878. }
  20879. })
  20880. .catch(e => {
  20881. console.log("获取分屏数出错:", e);
  20882. });
  20883. },
  20884. // 操作
  20885. doSplitScreenBehavior() {
  20886. if (
  20887. this.splitScreenData.isOpen &&
  20888. this.splitScreenData.uid != this.splitScreenData.myUid
  20889. ) {
  20890. let behavior = this.splitScreenData.behavior;
  20891. if (behavior) {
  20892. // console.log('behavior',behavior);
  20893. // this.toolindex = behavior.form.toolType
  20894. // 初始状态
  20895. if (behavior.code === 99) {
  20896. //初始化
  20897. this.fullDialogVisible = false;
  20898. if(this.$refs.choseWorksDetailDialogRef.show){
  20899. this.$refs.choseWorksDetailDialogRef.close();
  20900. }
  20901. if(this.$refs.statisticalAnalysisRef.show){
  20902. this.$refs.statisticalAnalysisRef.close();
  20903. }
  20904. }
  20905. // 文件列表
  20906. if (behavior.code === 0) {
  20907. //开启内容列表弹窗
  20908. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20909. }else{
  20910. this.fullDialogVisible = false;
  20911. }
  20912. // 打开工具
  20913. if (behavior.code === 1) {
  20914. //关于选择题的作业详细的操作
  20915. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20916. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20917. this.courseType = behavior.form.courseType;
  20918. this.taskCount = behavior.form.taskCount;
  20919. }
  20920. this.$nextTick(() => {
  20921. if (this.$refs.choseWorksDetailDialogRef.show) {
  20922. //已经打开了
  20923. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20924. } else {
  20925. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20926. }
  20927. });
  20928. }else{
  20929. this.$refs.choseWorksDetailDialogRef.close()
  20930. }
  20931. // 问卷调查
  20932. if(behavior.code === 2){
  20933. if(this.$refs.statisticalAnalysisRef.show){
  20934. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20935. }else{
  20936. this.$refs.statisticalAnalysisRef.open({
  20937. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20938. tType: this.tType,
  20939. toolIndex: behavior.form.toolIndex
  20940. });
  20941. }
  20942. }else{
  20943. this.$refs.statisticalAnalysisRef.close();
  20944. }
  20945. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20946. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20947. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20948. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20949. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20950. if (behavior.form.courseType != this.courseType ||
  20951. behavior.form.taskCount != this.taskCount ||
  20952. behavior.form.toolType != this.toolindex
  20953. ) {
  20954. var a = document.scrollingElement;
  20955. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20956. if (target) {
  20957. target.scrollIntoView(true);
  20958. setTimeout(()=>{
  20959. let scrollBody = document.querySelector('.body_student').parentElement
  20960. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20961. }, 0);
  20962. // setTimeout(() => {
  20963. // a.scrollTop = 0
  20964. // }, 0);
  20965. }
  20966. }
  20967. if(this.courseType !=behavior.form.courseType){
  20968. this.courseType = behavior.form.courseType;
  20969. }
  20970. if(this.taskCount !=behavior.form.taskCount){
  20971. this.taskCount = behavior.form.taskCount;
  20972. }
  20973. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  20974. this.toolindex = behavior.form.toolType;
  20975. }
  20976. // if(behavior.form.navId){
  20977. // this.navId = behavior.form.navId
  20978. // }
  20979. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20980. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20981. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20982. this.getCourseDetail()
  20983. }
  20984. this.setContent2(false)
  20985. }
  20986. } else {
  20987. }
  20988. }
  20989. },
  20990. // 修改分屏数据
  20991. updateSplitScreenData(empty = 0) {
  20992. return new Promise(resolve => {
  20993. if(this.userid!==this.courseDetail.userid){
  20994. if(!this.courseDetail.userid){
  20995. return setTimeout(()=>{
  20996. this.updateSplitScreenData(empty)
  20997. },2000)
  20998. }
  20999. return;
  21000. };
  21001. if (
  21002. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21003. this.splitScreenData.userId == this.userid
  21004. ) {
  21005. this.splitScreenData.loading = true;
  21006. let params = [
  21007. {
  21008. cid: this.id,
  21009. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21010. }
  21011. ];
  21012. this.ajax
  21013. .post(
  21014. this.$store.state.api + "update_courseSplitScreenData",
  21015. params
  21016. )
  21017. .then(res => {
  21018. this.splitScreenData.loading = false;
  21019. if (res.data == 1) {
  21020. resolve(1);
  21021. console.log("修改分屏数据成功");
  21022. }
  21023. })
  21024. .catch(e => {
  21025. this.splitScreenData.loading = false;
  21026. console.log("修改分屏数据失败", e);
  21027. resoleve(0);
  21028. });
  21029. } else if (empty == 2 && this.tType == 1) {
  21030. console.log("清空清空清空清空")
  21031. let params = [
  21032. {
  21033. cid: this.id,
  21034. nData: ""
  21035. }
  21036. ];
  21037. return this.ajax
  21038. .post(
  21039. this.$store.state.api + "update_courseSplitScreenData",
  21040. params
  21041. )
  21042. .then(_ => resolve(1))
  21043. .catch(_ => resolve(0));
  21044. } else {
  21045. return resolve(0);
  21046. }
  21047. });
  21048. },
  21049. // 修改分屏数据
  21050. changeSplitScreenBehavior(newValue) {
  21051. if (
  21052. this.splitScreenData.isOpen &&
  21053. this.splitScreenData.uid == this.splitScreenData.myUid
  21054. ) {
  21055. let _behavior = null;
  21056. if(!newValue){
  21057. _behavior = {}
  21058. }else{
  21059. _behavior = newValue
  21060. }
  21061. if(_behavior.form){
  21062. _behavior.form.taskCount = this.taskCount;
  21063. _behavior.form.courseType = this.courseType
  21064. }else{
  21065. _behavior.form = {
  21066. taskCount:this.taskCount,
  21067. courseType:this.courseType,
  21068. }
  21069. }
  21070. this.splitScreenData.behavior = _behavior;
  21071. this.updateSplitScreenData(0);
  21072. }
  21073. },
  21074. studentFreePreview(flag) {
  21075. this.IsLookOpen = flag;
  21076. this.updateLookOpen();
  21077. this.followingMode(flag)
  21078. },
  21079. OpenJobPreview(flag) {
  21080. this.sIsOpen = flag;
  21081. this.updateSLook();
  21082. },
  21083. followingMode(flag) {
  21084. this.IsFollow = flag;
  21085. this.updateFollow();
  21086. }
  21087. },
  21088. directives: {
  21089. // 使用局部注册指令的方式
  21090. resize: {
  21091. // 指令的名称
  21092. bind(el, binding) {
  21093. // el为绑定的元素,binding为绑定给指令的对象
  21094. let width = "",
  21095. height = "";
  21096. function isReize() {
  21097. const style = document.defaultView.getComputedStyle(el);
  21098. if (width !== style.width || height !== style.height) {
  21099. binding.value(); // 关键
  21100. }
  21101. width = style.width;
  21102. height = style.height;
  21103. }
  21104. el.__vueSetInterval__ = setInterval(isReize, 300);
  21105. },
  21106. unbind(el) {
  21107. clearInterval(el.__vueSetInterval__);
  21108. },
  21109. },
  21110. autoHeight: {
  21111. update(el, binding) {
  21112. const { value } = binding
  21113. if (value && typeof value === 'number') {
  21114. el.style.height = `${value}px`
  21115. } else {
  21116. el.style.height = 'auto'
  21117. }
  21118. },
  21119. componentUpdated(el) {
  21120. el.style.height = `${el.scrollHeight}px`
  21121. },
  21122. },
  21123. },
  21124. beforeDestroy() {
  21125. window.onresize = null;
  21126. clearInterval(this.timer);
  21127. this.timer = null;
  21128. clearInterval(this.timer2);
  21129. this.timer2 = null;
  21130. clearInterval(this.opertimer);
  21131. this.opertimer = null;
  21132. this.updateSplitScreenData(1);
  21133. },
  21134. computed: {
  21135. contentConvent() {
  21136. return function (c) {
  21137. return c
  21138. ? c
  21139. .replaceAll(/\r\n/g, "<br/>")
  21140. .replaceAll(/\n/g, "<br/>")
  21141. .replaceAll(/\s/g, " &nbsp")
  21142. : "";
  21143. };
  21144. },
  21145. commentRight(){
  21146. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21147. return "35px";
  21148. }
  21149. return `calc(${this.classRoomHelperWidth} + 5px)`
  21150. // if(this.$refs["classRoomHelperRef"].type==0){
  21151. // return "100px";
  21152. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21153. // return "502px"
  21154. // }else{
  21155. // return "0px"
  21156. // }
  21157. },
  21158. checkUpload() {
  21159. return function () {
  21160. var studentK = [];
  21161. if (this.plworkFile.length > 0) {
  21162. for (var z = 0; z < this.plworkFile.length; z++) {
  21163. studentK.push(this.plworkFile[z].username);
  21164. }
  21165. studentK = studentK.join(",");
  21166. }
  21167. var a = this.uploadStudentJuri.filter((el) => {
  21168. return studentK.indexOf(el.userid) == -1;
  21169. });
  21170. return a;
  21171. };
  21172. },
  21173. getSName() {
  21174. return function (name) {
  21175. var check = name;
  21176. this.uploadStudentJuri.forEach((el) => {
  21177. if (el.userid == check) {
  21178. check = el.name ? el.name : el.username;
  21179. }
  21180. });
  21181. return check;
  21182. };
  21183. },
  21184. getImgList() {
  21185. return function (val) {
  21186. let srcList = []; // 定义一个数组用来接收后面的img地址
  21187. val.replace(
  21188. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21189. function (match, capture) {
  21190. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21191. srcList.push(capture);
  21192. }
  21193. );
  21194. return srcList;
  21195. };
  21196. },
  21197. retrnToolHeight(){
  21198. return function (tool) {
  21199. var _tool = document.querySelectorAll('#'+tool)[0]
  21200. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21201. };
  21202. },
  21203. Correct() {
  21204. return function (c) {
  21205. let w = "";
  21206. let a = this.correctWord;
  21207. for(var k = 0;k<a.length;k++){
  21208. //diffWordsWithSpace
  21209. if(a.length > 1){
  21210. if(a[k].added == true){
  21211. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21212. }else if(a[k].removed == true){
  21213. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21214. }else{
  21215. w += '<span>' + a[k].value + '</span>';
  21216. }
  21217. }else{
  21218. w = c
  21219. }
  21220. //diffChars方法
  21221. // if(a.length > 1){
  21222. // if(w == ""){
  21223. // if(a[k].added == true){
  21224. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21225. // }else if(a[k].removed == true){
  21226. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21227. // }
  21228. // }else{
  21229. // if(k == a.length - 1){
  21230. // if(a[k].added == true){
  21231. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21232. // }else if(a[k].removed == true){
  21233. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21234. // }
  21235. // }else{
  21236. // if(a[k].added == true){
  21237. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21238. // }else if(a[k].removed == true){
  21239. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21240. // }
  21241. // }
  21242. // }
  21243. // }else{
  21244. // w = c
  21245. // }
  21246. }
  21247. c = w;
  21248. return c;
  21249. };
  21250. },
  21251. },
  21252. mounted() {
  21253. document.body.addEventListener("click", (e) => {
  21254. if (this.isUpdateToolDetail1) {
  21255. this.updateToolDetail(this.toolDetailIndex);
  21256. }
  21257. });
  21258. this.setOperationTime();
  21259. this.selectEva();
  21260. this.getCourseDetail();
  21261. this.selectCount();
  21262. this.getHomeWork();
  21263. this.selectUser();
  21264. this.getAIJ();
  21265. this.updateSplitScreenData(2);
  21266. this.splitScreenData.myUid = uuidv4();
  21267. this.contentDialog = true;
  21268. this.setContent2(true);
  21269. if (this.tType == 4) {
  21270. this.pzDialog = true;
  21271. this.selectPz();
  21272. }
  21273. // 获取评分列表
  21274. this.getScoreList()
  21275. document.scrollingElement.scrollTop = 0;
  21276. window.addEventListener("resize", () => {
  21277. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21278. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21279. if (this.showType == 2 || this.showType == 3) {
  21280. document.getElementsByClassName("navBox")[0].style.height =
  21281. a - 40 + 0+ "px";
  21282. } else {
  21283. document.getElementsByClassName("navBox")[0].style.height =
  21284. a - 40 + "px";
  21285. }
  21286. });
  21287. let _this = this;
  21288. setTimeout(() => {
  21289. // _this.vedioTime = [];
  21290. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21291. // _this.vedioTime[i] = document.getElementsByClassName(
  21292. // "vjs-duration-display"
  21293. // )[i].textContent;
  21294. // }
  21295. }, 1000);
  21296. try{
  21297. if (this.screenType == 2) {
  21298. window.topU.postMessage({ allScreen: 4 }, "*");
  21299. } else if (this.screenType == 3) {
  21300. window.topU.postMessage({ allScreen: 5 }, "*");
  21301. } else if (this.screenType == 1) {
  21302. window.topU.postMessage({ allScreen: 6 }, "*");
  21303. }
  21304. }catch(e){
  21305. console.log(e)
  21306. }
  21307. },
  21308. };
  21309. </script>
  21310. <style scoped>
  21311. @media screen and (max-width: 1280px) {
  21312. /* .courseIndex > div:first-child(2) {
  21313. width: 15% !important;
  21314. } */
  21315. /* .navText {
  21316. width: 120px !important;
  21317. } */
  21318. .evaCss {
  21319. flex-direction: column !important;
  21320. align-items: center !important;
  21321. }
  21322. .elist_input {
  21323. width: 90% !important;
  21324. }
  21325. .dialog_diy1 >>> .el-dialog {
  21326. width: 100% !important;
  21327. }
  21328. .rightWidthCss {
  21329. width: 100% !important;
  21330. }
  21331. .dialog_diy3 >>> .el-dialog {
  21332. width: 100% !important;
  21333. }
  21334. .addToolCss {
  21335. right: 0 !important;
  21336. width: 100% !important;
  21337. min-width: unset !important;
  21338. }
  21339. }
  21340. .evaCssMax {
  21341. flex-direction: column !important;
  21342. align-items: center !important;
  21343. }
  21344. .dialog_diy >>> .el-dialog {
  21345. margin-top: 10vh !important;
  21346. }
  21347. .body_student {
  21348. width: 77%;
  21349. height: 100%;
  21350. position: absolute;
  21351. left: 22%;
  21352. top: 0;
  21353. }
  21354. .student_head {
  21355. width: 100%;
  21356. margin: 20px auto 0;
  21357. padding-bottom: 20px;
  21358. display: flex;
  21359. flex-direction: column;
  21360. flex-wrap: nowrap;
  21361. align-items: flex-start;
  21362. justify-content: flex-start;
  21363. }
  21364. .pb_left {
  21365. width: 20%;
  21366. margin-right: 10px;
  21367. background: rgb(255, 255, 255);
  21368. position: fixed;
  21369. height: calc(100% - 40px);
  21370. border-radius: 20px;
  21371. padding-bottom: 15px;
  21372. box-sizing: border-box;
  21373. }
  21374. .wheel > img,
  21375. .project > img,
  21376. .star > img,
  21377. .evaluate > img,
  21378. .up_photo > img,
  21379. .chapter_add > img,
  21380. .deleteWord > img,
  21381. .question > img,
  21382. .homework > img {
  21383. width: 100%;
  21384. height: 100%;
  21385. }
  21386. .upCover > img {
  21387. width: 131px;
  21388. height: 69px;
  21389. object-fit: cover;
  21390. }
  21391. .upCover {
  21392. width: calc(100% / 3.5);
  21393. position: relative;
  21394. margin: 0 15px 10px 0;
  21395. display: flex;
  21396. flex-direction: column;
  21397. flex-wrap: nowrap;
  21398. justify-content: center;
  21399. align-content: center;
  21400. align-items: center;
  21401. height: fit-content;
  21402. }
  21403. .upCover2 {
  21404. width: 100%;
  21405. position: relative;
  21406. margin: 0 15px 10px 0;
  21407. display: flex;
  21408. flex-direction: column;
  21409. flex-wrap: nowrap;
  21410. justify-content: center;
  21411. align-content: center;
  21412. align-items: center;
  21413. }
  21414. .upCover2 > img {
  21415. width: 100%;
  21416. height: 90px;
  21417. object-fit: contain;
  21418. }
  21419. .chapter_add {
  21420. width: 120px;
  21421. position: relative;
  21422. text-align: center;
  21423. }
  21424. .isAddThings {
  21425. margin-top: 20px;
  21426. position: relative;
  21427. text-align: center;
  21428. background: #f7f8fa;
  21429. height: 90px;
  21430. width: 90px;
  21431. display: flex;
  21432. flex-direction: column;
  21433. justify-content: center;
  21434. }
  21435. .deleteWord {
  21436. width: 22px;
  21437. height: 22px;
  21438. position: absolute;
  21439. right: -5px;
  21440. top: -5px;
  21441. cursor: pointer;
  21442. }
  21443. .box_course {
  21444. /* width: 60%; */
  21445. width: calc(100% - 300px);
  21446. }
  21447. .wheel {
  21448. width: 100%;
  21449. /* height: 100%; */
  21450. height: 650px;
  21451. }
  21452. .right_box {
  21453. display: flex;
  21454. flex-direction: column;
  21455. margin-left: 30px;
  21456. justify-content: space-around;
  21457. }
  21458. .right_box_title {
  21459. font-size: 23px;
  21460. }
  21461. .people {
  21462. display: flex;
  21463. }
  21464. .student_body {
  21465. width: 100%;
  21466. margin: 0 auto;
  21467. margin-top: 10px;
  21468. padding: 0 0 20px;
  21469. }
  21470. .study_top {
  21471. margin-top: 100px;
  21472. width: 100%;
  21473. height: auto;
  21474. padding-bottom: 20px;
  21475. margin-left: 2px;
  21476. min-height: 90%;
  21477. }
  21478. .study_top .checkbox {
  21479. display: flex;
  21480. align-items: center;
  21481. padding: 15px 0 15px 30px;
  21482. flex: 0 0 auto;
  21483. font-weight: bold;
  21484. border-bottom: 1px solid #eee;
  21485. }
  21486. .study_top .check {
  21487. padding-bottom: 5px;
  21488. text-align: center;
  21489. cursor: pointer;
  21490. height: 30px;
  21491. box-sizing: border-box;
  21492. display: flex;
  21493. }
  21494. .study_top .checked {
  21495. border-bottom: 4px solid #3fc6a0;
  21496. padding-bottom: 5px;
  21497. color: #3fc6a0;
  21498. display: flex;
  21499. height: 35px;
  21500. }
  21501. .study_top .checked > div,
  21502. .study_top .check > div {
  21503. margin-right: 5px;
  21504. }
  21505. .videoTop {
  21506. display: flex;
  21507. flex-direction: row;
  21508. justify-content: space-between;
  21509. background: #fff;
  21510. align-items: center;
  21511. width: 95%;
  21512. padding: 20px;
  21513. }
  21514. .filebox {
  21515. display: flex;
  21516. flex-wrap: wrap;
  21517. flex-direction: column;
  21518. padding: 0 0 5px;
  21519. position: relative;
  21520. }
  21521. .filebox:before {
  21522. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21523. position: absolute;
  21524. top: 20px;
  21525. left: 13px;
  21526. border-left: 2px dotted #cad1dc;
  21527. height: calc(100% - 15px);
  21528. }
  21529. .toolHeng2 > div:last-child::before {
  21530. height: calc(100% - 43px);
  21531. }
  21532. .filebox .tooldetail {
  21533. width: calc(100%);
  21534. margin: 0px 12px;
  21535. padding: 12px;
  21536. line-height: 30px;
  21537. word-break: break-word;
  21538. background: #ffffff;
  21539. border-radius: 8px 8px 8px 8px;
  21540. opacity: 1;
  21541. border: 1px solid #cad1dc;
  21542. overflow:hidden;
  21543. box-sizing:border-box;
  21544. }
  21545. .file {
  21546. display: flex;
  21547. flex-direction: column;
  21548. align-items: center;
  21549. justify-content: center;
  21550. cursor: pointer;
  21551. width: 200px;
  21552. }
  21553. .file div {
  21554. margin-top: 10px;
  21555. width: 150px;
  21556. text-align: center;
  21557. overflow: hidden;
  21558. white-space: nowrap;
  21559. text-overflow: ellipsis;
  21560. }
  21561. .media {
  21562. display: flex;
  21563. flex-direction: column;
  21564. align-items: center;
  21565. justify-content: center;
  21566. margin: 0 20px 20px 0;
  21567. cursor: pointer;
  21568. margin: 12px 0 5px 15px;
  21569. overflow: hidden;
  21570. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21571. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21572. box-sizing: border-box;
  21573. }
  21574. .media img {
  21575. height: 90px;
  21576. width: 160px;
  21577. object-fit: cover;
  21578. }
  21579. .media .title {
  21580. padding: 5px;
  21581. text-align: left;
  21582. width: 100%;
  21583. box-sizing: border-box;
  21584. }
  21585. .media .btn {
  21586. width: 100%;
  21587. height: 35px;
  21588. line-height: 35px;
  21589. color: #fff;
  21590. background: #606060;
  21591. text-align: center;
  21592. overflow: hidden;
  21593. white-space: nowrap;
  21594. text-overflow: ellipsis;
  21595. }
  21596. .detail_content_top {
  21597. width: 100%;
  21598. padding: 25px 0 25px 0;
  21599. }
  21600. .detail_title {
  21601. text-align: center;
  21602. font-size: 24px;
  21603. }
  21604. .detail_time {
  21605. font-size: 13px;
  21606. padding: 15px 0 0 40px;
  21607. }
  21608. .detail_content {
  21609. line-height: 2pc;
  21610. width: 90%;
  21611. margin: 0 auto;
  21612. padding-top: 30px;
  21613. text-indent: 30px;
  21614. overflow: auto;
  21615. height: 200px;
  21616. }
  21617. .score_box >>> .el-rate {
  21618. margin-left: 10px;
  21619. }
  21620. .dialog_change >>> .el-dialog {
  21621. border-radius: 5px;
  21622. }
  21623. .dialog_change >>> .el-dialog__header {
  21624. background: #f2f2f2;
  21625. text-align: center;
  21626. }
  21627. .dialog_change >>> .el-dialog__title {
  21628. line-height: 5px;
  21629. }
  21630. .dialog_change >>> .el-dialog__body {
  21631. background: #fff;
  21632. padding: 10px 20px;
  21633. }
  21634. .score_box {
  21635. display: flex;
  21636. align-items: center;
  21637. margin-bottom: 18px;
  21638. margin-top: 20px;
  21639. }
  21640. .up_photo {
  21641. width: 120px;
  21642. cursor: pointer;
  21643. margin-top: 10px;
  21644. }
  21645. .up_photo2 {
  21646. width: 180px;
  21647. box-sizing: border-box;
  21648. min-width: 180px;
  21649. height: 180px;
  21650. max-height: 180px;
  21651. min-height: 180px;
  21652. cursor: pointer;
  21653. display: flex;
  21654. flex-direction: column;
  21655. align-items: center;
  21656. justify-content: center;
  21657. background: rgb(242, 246, 255);
  21658. /* padding: 25px; */
  21659. margin-bottom: 10px;
  21660. }
  21661. .up_photo2 img {
  21662. width: 50%;
  21663. height: auto;
  21664. }
  21665. .up_photo2 span {
  21666. color: #898989;
  21667. }
  21668. .plworkBox {
  21669. display: flex;
  21670. align-items: center;
  21671. margin-top: 10px;
  21672. flex-wrap: wrap;
  21673. }
  21674. .upload_send {
  21675. margin: 30px auto 30px;
  21676. width: 60%;
  21677. background: #3681fc;
  21678. text-align: center;
  21679. height: 35px;
  21680. line-height: 35px;
  21681. color: #fff;
  21682. border-radius: 5px;
  21683. cursor: pointer;
  21684. }
  21685. .marginT {
  21686. margin-top: 20px;
  21687. }
  21688. .cd_content_steps {
  21689. display: flex;
  21690. width: 90%;
  21691. justify-content: space-around;
  21692. border-top: 1px solid #eeeeee;
  21693. }
  21694. .cd_steps_box {
  21695. display: flex;
  21696. justify-content: center;
  21697. align-items: center;
  21698. flex-direction: column;
  21699. cursor: pointer;
  21700. }
  21701. .first {
  21702. display: flex;
  21703. align-items: center;
  21704. margin: 15px 0 20px 0;
  21705. font-size: 20px;
  21706. }
  21707. .first > div:nth-child(2) {
  21708. font-size: 16px !important;
  21709. padding-left: 10px;
  21710. line-height: 26px;
  21711. box-sizing: border-box;
  21712. }
  21713. .blue_box_one {
  21714. text-align: center;
  21715. color: #fff;
  21716. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21717. border-radius: 7px;
  21718. margin: 10px;
  21719. cursor: pointer;
  21720. width: 95%;
  21721. height: 45px;
  21722. display: flex;
  21723. flex-direction: row;
  21724. justify-content: flex-start;
  21725. align-items: center;
  21726. }
  21727. .blue_box_one > div:nth-child(1) {
  21728. line-height: 30px;
  21729. margin: 0 5px 0 10px;
  21730. width: 30%;
  21731. min-width: 70px;
  21732. border-radius: 4px;
  21733. }
  21734. .blue_box_one > div:nth-child(2) {
  21735. white-space: nowrap;
  21736. text-overflow: ellipsis;
  21737. overflow: hidden;
  21738. word-break: break-all;
  21739. width: 70%;
  21740. text-align: left;
  21741. margin-right: 10px;
  21742. max-width: calc(100% - 85px);
  21743. }
  21744. .blue_box_one > div:nth-child(2):hover {
  21745. overflow: hidden;
  21746. text-overflow: ellipsis;
  21747. white-space: nowrap;
  21748. cursor: pointer;
  21749. }
  21750. .upFile {
  21751. margin: 0 auto;
  21752. width: 120px;
  21753. background: #3681fc;
  21754. color: #fff;
  21755. height: 30px;
  21756. text-align: center;
  21757. line-height: 30px;
  21758. border-radius: 5px;
  21759. font-size: 14px;
  21760. cursor: pointer;
  21761. }
  21762. .courseTitle {
  21763. width: 85%;
  21764. margin: 10px auto 26px auto;
  21765. display: flex;
  21766. flex-direction: row;
  21767. align-items: center;
  21768. justify-content: space-between;
  21769. text-align: center;
  21770. }
  21771. .courseTitle .ctitle {
  21772. font-size: 20px;
  21773. font-weight: bold;
  21774. color: #0e1e33;
  21775. white-space: nowrap;
  21776. overflow: hidden;
  21777. text-overflow: ellipsis;
  21778. }
  21779. .inviteBox {
  21780. font-size: 14px;
  21781. /* margin-top: 5px; */
  21782. color: #00000099;
  21783. text-align: center;
  21784. }
  21785. .courseTitle >>> .el-tooltip {
  21786. width: 100%;
  21787. white-space: nowrap;
  21788. overflow: hidden;
  21789. text-overflow: ellipsis;
  21790. word-break: break-word;
  21791. }
  21792. .ml {
  21793. margin-left: 20px;
  21794. color: #5b7dba;
  21795. border-left: 3px solid #5b7dba;
  21796. padding-left: 5px;
  21797. font-weight: bold;
  21798. }
  21799. .return {
  21800. width: 2rem;
  21801. height: 2rem;
  21802. cursor: pointer;
  21803. }
  21804. .return > img {
  21805. width: 100%;
  21806. height: 100%;
  21807. }
  21808. .returnBtn {
  21809. width: 86px;
  21810. height: 36px;
  21811. background: #3681fc;
  21812. border-radius: 4px;
  21813. color: #fff;
  21814. text-align: center;
  21815. line-height: 36px;
  21816. margin-right: 20px;
  21817. cursor: pointer;
  21818. font-size: 14px;
  21819. font-weight: 400;
  21820. display: flex;
  21821. flex-direction: row;
  21822. flex-wrap: nowrap;
  21823. align-items: center;
  21824. justify-content: center;
  21825. }
  21826. .reBtnIcon,
  21827. .commentIcon,
  21828. .vedioIcon,
  21829. .vedioIcon1 {
  21830. /* width: 36px; */
  21831. height: 36px;
  21832. border-radius: 4px;
  21833. position: relative;
  21834. /* background: #e0eafb; */
  21835. background: #0061ff;
  21836. cursor: pointer;
  21837. margin-right: 12px;
  21838. display: flex;
  21839. align-items: center;
  21840. padding: 0 10px;
  21841. box-sizing: border-box;
  21842. font-size: 14px;
  21843. color: #fff;
  21844. }
  21845. .reBtnIcon::before,
  21846. .commentIcon::before,
  21847. .vedioIcon::before,
  21848. .vedioIcon1::before {
  21849. content: "";
  21850. display: block;
  21851. background-size: 100% 100%;
  21852. background-repeat: no-repeat;
  21853. width: 20px;
  21854. height: 20px;
  21855. margin-right: 5px;
  21856. /* position: absolute; */
  21857. /* top: 8px;
  21858. left: 8px; */
  21859. }
  21860. .vedioIcon1 {
  21861. background: #f63564;
  21862. }
  21863. .reBtnIcon::before {
  21864. background-image: url("../assets/icon/newIcons/refresh.png");
  21865. }
  21866. .commentIcon::before {
  21867. background-image: url("../assets/icon/newIcons/comment.png");
  21868. }
  21869. .vedioIcon::before {
  21870. background-image: url("../assets/icon/newIcons/transcribe.png");
  21871. }
  21872. .vedioIcon1::before {
  21873. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21874. background-image: url("../assets/icon/newIcons/transcribe.png");
  21875. }
  21876. .tool {
  21877. display: flex;
  21878. flex-direction: column;
  21879. flex-wrap: nowrap;
  21880. width: 13%;
  21881. margin: 0 30px;
  21882. align-items: center;
  21883. position: relative;
  21884. padding: 10px 25px;
  21885. cursor: pointer;
  21886. }
  21887. .whiteBIcon {
  21888. width: 150px;
  21889. }
  21890. .whiteBIcon > img {
  21891. width: 100%;
  21892. height: 100%;
  21893. }
  21894. .mask {
  21895. background-color: rgba(0, 0, 0, 0);
  21896. position: fixed;
  21897. top: 0;
  21898. left: 0;
  21899. width: 100%;
  21900. height: 100%;
  21901. z-index: 20000;
  21902. display: flex;
  21903. align-items: center;
  21904. justify-content: center;
  21905. }
  21906. .progressBox {
  21907. width: 500px;
  21908. height: 180px;
  21909. background: #fff;
  21910. border-radius: 10px;
  21911. box-shadow: 0 0 6px 1px #bfbfbf;
  21912. display: flex;
  21913. align-items: center;
  21914. justify-content: center;
  21915. flex-direction: column;
  21916. position: relative;
  21917. color: #6c6c6c;
  21918. }
  21919. .progressBox >>> .el-progress-bar__outer {
  21920. background-color: #d1dfff !important;
  21921. }
  21922. .progressBox .lbox {
  21923. height: 50px;
  21924. font-size: 19px;
  21925. display: flex;
  21926. align-items: center;
  21927. color: #747474;
  21928. }
  21929. .progressBox .lbox img {
  21930. width: 40px;
  21931. margin-right: 20px;
  21932. }
  21933. .closeCss {
  21934. position: absolute;
  21935. top: 8px;
  21936. right: 8px;
  21937. cursor: pointer;
  21938. width: 20px;
  21939. height: 20px;
  21940. }
  21941. .closeCss > img {
  21942. width: 100%;
  21943. height: 100%;
  21944. }
  21945. .uploadVedio {
  21946. display: flex;
  21947. flex-direction: column;
  21948. flex-wrap: nowrap;
  21949. justify-content: center;
  21950. align-items: center;
  21951. margin: 0 15px 10px 0;
  21952. }
  21953. .uploadVedio > img {
  21954. width: 30px;
  21955. height: 30px;
  21956. }
  21957. .uploadVedio > span {
  21958. white-space: nowrap;
  21959. overflow: hidden;
  21960. text-overflow: ellipsis;
  21961. width: 75px;
  21962. margin-top: 7px;
  21963. }
  21964. .picName {
  21965. white-space: nowrap;
  21966. overflow: hidden;
  21967. text-overflow: ellipsis;
  21968. width: 75px;
  21969. margin-top: 7px;
  21970. }
  21971. .new_top {
  21972. display: flex;
  21973. background: #fff;
  21974. flex-direction: row;
  21975. justify-content: flex-start;
  21976. align-items: center;
  21977. height: 60px;
  21978. position: fixed;
  21979. top: 20px;
  21980. left: 22%;
  21981. width: 77%;
  21982. z-index: 999;
  21983. border-radius: 12px 12px 0 0;
  21984. border-bottom: 1px solid #cad1dc;
  21985. padding: 10px 0;
  21986. }
  21987. .new_topFixed {
  21988. width: 100%;
  21989. height: 40px;
  21990. position: fixed;
  21991. top: 0px;
  21992. display: block;
  21993. background: #f2f2f2;
  21994. z-index: 998;
  21995. }
  21996. .before {
  21997. position: absolute;
  21998. background: #c3dad4;
  21999. width: 6px;
  22000. height: 100%;
  22001. }
  22002. .courseIndex {
  22003. display: flex;
  22004. flex-direction: row;
  22005. align-items: center;
  22006. width: calc(100% - 745px);
  22007. }
  22008. .courseIndex > div:nth-child(1) {
  22009. margin: 0 0 0 10px;
  22010. font-size: 20px;
  22011. min-width: 100px;
  22012. font-weight: bold;
  22013. border-left: 4px solid #3363b9;
  22014. height: 32px;
  22015. text-align: center;
  22016. line-height: 35px;
  22017. }
  22018. .courseIndex > div:nth-child(2) {
  22019. font-size: 20px;
  22020. /* width: 300px; */
  22021. max-width: calc(100% - 105px);
  22022. white-space: nowrap;
  22023. overflow: hidden;
  22024. text-overflow: ellipsis;
  22025. }
  22026. .courseIndex > div:nth-child(3) {
  22027. border-bottom: 1px solid #d7d7d7;
  22028. padding-bottom: 5px;
  22029. background: #3681fc;
  22030. width: 55px;
  22031. min-width: 55px;
  22032. border-radius: 5px;
  22033. color: #fff;
  22034. text-align: center;
  22035. height: 20px;
  22036. line-height: 26px;
  22037. font-size: 14px;
  22038. margin: 0 0 0 10px;
  22039. }
  22040. .course_text {
  22041. padding: 20px 0 0 15px;
  22042. text-indent: 30px;
  22043. width: 80%;
  22044. min-height: 20px;
  22045. }
  22046. .vedioList {
  22047. background: #f2f2f2;
  22048. border: 1px solid #ececec;
  22049. /* width: 38.8%; */
  22050. /* width: 300px; */
  22051. width: 100%;
  22052. height: 445px;
  22053. border-radius: 10px;
  22054. overflow: hidden;
  22055. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22056. }
  22057. .vedioNav {
  22058. margin: 10px 0 0 15px;
  22059. border-bottom: 1px solid #d7d7d7;
  22060. padding-bottom: 5px;
  22061. background: #3681fc;
  22062. width: 55px;
  22063. min-width: 55px;
  22064. border-radius: 5px;
  22065. color: #fff;
  22066. text-align: center;
  22067. height: 20px;
  22068. line-height: 26px;
  22069. font-size: 14px;
  22070. }
  22071. .queTop {
  22072. display: flex;
  22073. padding: 20px 0 20px 30px;
  22074. width: 100%;
  22075. flex-direction: row;
  22076. justify-content: flex-start;
  22077. align-items: center;
  22078. box-sizing: border-box;
  22079. }
  22080. .queTopTitle {
  22081. display: flex;
  22082. flex-direction: row;
  22083. flex-wrap: nowrap;
  22084. align-items: center;
  22085. font-weight: bold;
  22086. font-size: 20px;
  22087. color: rgb(14, 30, 51);
  22088. }
  22089. .queTopTitle::before {
  22090. content: "";
  22091. width: 2px;
  22092. height: 22px;
  22093. background: #3681fc;
  22094. border-radius: 3px;
  22095. display: block;
  22096. margin: 2px 6px 0 0;
  22097. }
  22098. .queTopRight {
  22099. display: flex;
  22100. flex-direction: row;
  22101. flex-wrap: nowrap;
  22102. align-items: center;
  22103. }
  22104. .queTopClose {
  22105. margin-right: 20px;
  22106. cursor: pointer;
  22107. position: relative;
  22108. display: flex;
  22109. }
  22110. .closeImg,
  22111. .openImg {
  22112. width: 25px;
  22113. height: 25px;
  22114. position: absolute;
  22115. left: -20px;
  22116. top: -1px;
  22117. }
  22118. .closeImg > img,
  22119. .openImg > img {
  22120. width: 100%;
  22121. height: 100%;
  22122. }
  22123. .question {
  22124. width: 40px;
  22125. margin-right: 10px;
  22126. margin-top: 7px;
  22127. }
  22128. .queTitle {
  22129. margin-left: 5px;
  22130. font-size: 25px;
  22131. display: flex;
  22132. align-items: center;
  22133. }
  22134. .addEditor {
  22135. width: 100px;
  22136. height: 30px;
  22137. background: #42cda6;
  22138. color: #fff;
  22139. border-radius: 5px;
  22140. text-align: center;
  22141. line-height: 30px;
  22142. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22143. cursor: pointer;
  22144. }
  22145. /* .vedioName {
  22146. cursor: pointer;
  22147. margin: 0px 0px 10px 5px;
  22148. white-space: nowrap;
  22149. overflow: hidden;
  22150. text-overflow: ellipsis;
  22151. width: 100%;
  22152. } */
  22153. .vedioTime {
  22154. width: 35px;
  22155. position: absolute;
  22156. color: #fff;
  22157. bottom: 0px;
  22158. right: 0px;
  22159. text-align: center;
  22160. background: #46411f;
  22161. height: 20px;
  22162. font-size: 14px;
  22163. line-height: 20px;
  22164. }
  22165. .homework {
  22166. width: 200px;
  22167. display: flex;
  22168. flex-direction: column;
  22169. flex-wrap: nowrap;
  22170. align-items: center;
  22171. cursor: pointer;
  22172. }
  22173. .homebox {
  22174. display: flex;
  22175. flex-wrap: wrap;
  22176. flex-direction: row;
  22177. justify-content: flex-start;
  22178. align-items: center;
  22179. padding: 15px 0;
  22180. }
  22181. .isChooseActive {
  22182. color: #3681fc !important;
  22183. font-weight: bold !important;
  22184. }
  22185. .chooseWho {
  22186. display: flex;
  22187. width: 100%;
  22188. flex-direction: row;
  22189. flex-wrap: nowrap;
  22190. justify-content: flex-start;
  22191. padding-bottom: 10px;
  22192. }
  22193. .chooseWho > div {
  22194. cursor: pointer;
  22195. padding-bottom: 10px;
  22196. margin: 0 30px 0 0;
  22197. font-weight: 400;
  22198. color: #0e1e33;
  22199. }
  22200. .addPoint > div > img {
  22201. cursor: pointer;
  22202. width: 85px;
  22203. border-radius: 15px;
  22204. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22205. }
  22206. .addPoint > div {
  22207. display: flex;
  22208. flex-direction: column;
  22209. flex-wrap: nowrap;
  22210. align-items: center;
  22211. }
  22212. .isBorder > div {
  22213. margin: 0 0 10px 0;
  22214. align-items: flex-start !important;
  22215. }
  22216. .noiframeBox {
  22217. display: flex;
  22218. flex-wrap: wrap;
  22219. }
  22220. .iframeBox iframe {
  22221. width: 100%;
  22222. height: 800px;
  22223. border: none;
  22224. margin-bottom: 20px;
  22225. border: 1px solid #ccc;
  22226. }
  22227. .upload_toolBtn {
  22228. background: #3681fc;
  22229. color: #fff;
  22230. width: 110px;
  22231. text-align: center;
  22232. height: 35px;
  22233. line-height: 35px;
  22234. font-size: 14px;
  22235. border-radius: 5px;
  22236. cursor: pointer;
  22237. position: absolute;
  22238. right: 10px;
  22239. bottom: 0;
  22240. }
  22241. .binfo_input,
  22242. .pj {
  22243. font: inherit;
  22244. color: currentColor;
  22245. width: 100%;
  22246. margin: 0;
  22247. padding: 15px 14px;
  22248. display: block;
  22249. min-width: 0;
  22250. outline: none;
  22251. box-sizing: content-box;
  22252. background: none;
  22253. -webkit-tap-highlight-color: transparent;
  22254. border: 1px solid rgba(0, 0, 0, 0.23);
  22255. border-radius: 4px;
  22256. box-sizing: border-box;
  22257. resize: none;
  22258. }
  22259. .binfo_input:focus-visible {
  22260. border: 1px solid rgba(61, 103, 188);
  22261. }
  22262. .dialog_diy >>> .el-dialog__header,
  22263. .dialog_diy1 >>> .el-dialog__header {
  22264. background: #454545 !important;
  22265. padding: 15px 20px;
  22266. }
  22267. .dialog_diy >>> .el-dialog__title,
  22268. .dialog_diy1 >>> .el-dialog__title {
  22269. color: #fff;
  22270. }
  22271. .dialog_diy >>> .el-dialog__headerbtn,
  22272. .dialog_diy1 >>> .el-dialog__headerbtn {
  22273. top: 19px;
  22274. }
  22275. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22276. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22277. color: #fff;
  22278. }
  22279. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22280. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22281. color: #fff;
  22282. }
  22283. .dialog_diy1 >>> .el-dialog__body {
  22284. padding: 0;
  22285. }
  22286. .dialog_diy >>> .el-dialog__body,
  22287. .dialog_diy >>> .el-dialog__footer,
  22288. .dialog_diy1 >>> .el-dialog__footer {
  22289. background: #fafafa;
  22290. }
  22291. .a_addBox {
  22292. padding: 0 0 0 15px;
  22293. }
  22294. .a_add_box {
  22295. padding: 10px;
  22296. background: #fff;
  22297. margin-bottom: 10px;
  22298. border-radius: 5px;
  22299. box-shadow: 0 0 5px 0 #d5d5d5;
  22300. }
  22301. .a_add_head {
  22302. display: flex;
  22303. align-items: flex-start;
  22304. /* justify-content: space-between; */
  22305. flex-direction: column;
  22306. /* flex-direction: row; */
  22307. margin: 10px 0 20px 0;
  22308. font-size: 18px;
  22309. width: 100%;
  22310. }
  22311. .askIndex {
  22312. background: #3681fc;
  22313. border-radius: 50%;
  22314. color: #fff;
  22315. width: 25px;
  22316. height: 25px;
  22317. min-width: 25px;
  22318. min-height: 25px;
  22319. text-align: center;
  22320. line-height: 25px;
  22321. margin-right: 5px;
  22322. }
  22323. .a_add_head .a_add_head_input {
  22324. width: 300px;
  22325. }
  22326. .a_add_head .a_add_head_div {
  22327. display: flex;
  22328. align-items: center;
  22329. justify-content: space-between;
  22330. }
  22331. .a_add_body {
  22332. display: flex;
  22333. align-items: center;
  22334. }
  22335. .a_add_input {
  22336. display: flex;
  22337. align-items: center;
  22338. flex-wrap: wrap;
  22339. width: 100%;
  22340. }
  22341. .a_add_input >>> .el-radio-group,
  22342. .a_add_input >>> .el-checkbox-group {
  22343. width: 100%;
  22344. }
  22345. .a_add_input >>> .el-radio,
  22346. .a_add_input >>> .el-checkbox {
  22347. display: flex;
  22348. flex-direction: row;
  22349. flex-wrap: nowrap;
  22350. align-items: center;
  22351. padding: 15px 0;
  22352. }
  22353. .a_add_input >>> .el-radio:not(:last-child),
  22354. .a_add_input >>> .el-checkbox:not(:last-child) {
  22355. width: 100%;
  22356. border-bottom: 1px solid #efefef;
  22357. }
  22358. .redioStyle >>> .el-radio__label {
  22359. font-size: 18px;
  22360. }
  22361. .redioStyle >>> .el-radio__label > span,
  22362. .redioStyle >>> .el-checkbox__label > span {
  22363. word-break: break-all;
  22364. white-space: normal;
  22365. }
  22366. .redioStyle >>> .el-checkbox__label {
  22367. font-size: 18px;
  22368. }
  22369. .toolHeng2 {
  22370. width: 100%;
  22371. padding-left: 15px;
  22372. box-sizing: border-box;
  22373. }
  22374. .workNav {
  22375. font-size: 20px;
  22376. font-weight: bold;
  22377. color: #0e1e33;
  22378. display: flex;
  22379. flex-direction: row;
  22380. flex-wrap: nowrap;
  22381. align-items: center;
  22382. padding: 15px 0 15px 0;
  22383. }
  22384. .workNav::before {
  22385. content: "";
  22386. width: 2px;
  22387. height: 22px;
  22388. background: #3681fc;
  22389. border-radius: 3px;
  22390. display: block;
  22391. margin: 2px 6px 0 0;
  22392. }
  22393. .toolHeng {
  22394. display: flex;
  22395. flex-direction: row;
  22396. flex-wrap: wrap;
  22397. justify-content: flex-start;
  22398. align-items: center;
  22399. width: 100%;
  22400. }
  22401. .toolHeng > div {
  22402. padding-left: 20px;
  22403. }
  22404. .isWidth {
  22405. width: 20%;
  22406. }
  22407. .textTitle {
  22408. display: flex;
  22409. flex-direction: row;
  22410. flex-wrap: nowrap;
  22411. align-items: center;
  22412. width: 95%;
  22413. }
  22414. .textTitle >>> .el-form-item__label {
  22415. font-size: 22px;
  22416. color: #918f8f;
  22417. width: 100px;
  22418. }
  22419. .textTitle >>> .el-form-item__content {
  22420. width: calc(100% - 100px);
  22421. }
  22422. .textCss >>> .el-dialog {
  22423. width: 800px !important;
  22424. height: 400px;
  22425. background: #fafafa;
  22426. }
  22427. .textCss >>> .el-dialog__body {
  22428. margin: 55px 8% 0 8%;
  22429. padding: 0 !important;
  22430. }
  22431. .textCss >>> .el-dialog__footer {
  22432. padding-top: 38px;
  22433. }
  22434. .toolsCss >>> .el-dialog__body {
  22435. padding: 20px;
  22436. }
  22437. .lineCss >>> .el-dialog__body {
  22438. display: flex;
  22439. flex-direction: row;
  22440. align-items: center;
  22441. justify-content: center;
  22442. }
  22443. .newNav {
  22444. display: flex;
  22445. flex-direction: row;
  22446. align-items: baseline;
  22447. justify-content: flex-start;
  22448. }
  22449. .navListItem {
  22450. width: calc(100% - 20px);
  22451. height: 50px;
  22452. margin: 0px auto 10px;
  22453. display: flex;
  22454. flex-direction: row;
  22455. flex-wrap: nowrap;
  22456. align-items: center;
  22457. justify-content: space-between;
  22458. background: #f0f4fa;
  22459. border-radius: 6px 6px 6px 6px;
  22460. }
  22461. .navText {
  22462. cursor: pointer;
  22463. white-space: nowrap;
  22464. overflow: hidden;
  22465. text-overflow: ellipsis;
  22466. width: 220px;
  22467. padding: 0 10px;
  22468. font-weight: 400;
  22469. color: #0e1e33;
  22470. }
  22471. .downIcon {
  22472. width: 20px;
  22473. min-width: 20px;
  22474. height: 20px;
  22475. margin-right: 15px;
  22476. cursor: pointer;
  22477. }
  22478. .downIcon > img {
  22479. width: 100%;
  22480. height: 100%;
  22481. }
  22482. .noVedio {
  22483. display: flex;
  22484. flex-direction: row;
  22485. justify-content: center;
  22486. align-content: center;
  22487. }
  22488. .noNavText {
  22489. cursor: pointer;
  22490. margin: 0px 0px 10px 5px;
  22491. width: 112px;
  22492. }
  22493. .listNoVedio {
  22494. margin: 0 0 0 30px;
  22495. width: 97%;
  22496. }
  22497. .video-player >>> .video-js {
  22498. height: 100%;
  22499. }
  22500. .hangVedioList {
  22501. width: 90% !important;
  22502. height: 150px !important;
  22503. margin: 20px 0 0 30px;
  22504. }
  22505. .hangVedio {
  22506. width: 100%;
  22507. height: 170px !important;
  22508. align-items: flex-start !important;
  22509. }
  22510. .hangHand {
  22511. height: 150px !important;
  22512. }
  22513. .twoChild {
  22514. width: 95%;
  22515. margin: 10px;
  22516. border-radius: 5px;
  22517. background: #f2f2f2;
  22518. display: flex;
  22519. flex-direction: column;
  22520. flex-wrap: nowrap;
  22521. justify-content: flex-start;
  22522. align-items: flex-start;
  22523. transition: all 0.5s;
  22524. overflow: hidden;
  22525. height: 0;
  22526. background: #e7f3ff;
  22527. }
  22528. .twoChild > div:nth-child(1) {
  22529. margin-top: 5px;
  22530. }
  22531. .navChild {
  22532. width: 100%;
  22533. cursor: pointer;
  22534. margin-bottom: 10px;
  22535. position: relative;
  22536. }
  22537. .navChild img {
  22538. position: absolute;
  22539. right: 11px;
  22540. width: 15px;
  22541. top: 50%;
  22542. transform: translateY(-50%);
  22543. }
  22544. .navActive,
  22545. .toolActive {
  22546. height: auto !important;
  22547. overflow: auto !important;
  22548. /* padding-bottom: 16px; */
  22549. }
  22550. .toolActive {
  22551. padding: 0;
  22552. }
  22553. .navTask {
  22554. display: flex;
  22555. flex-direction: row;
  22556. flex-wrap: nowrap;
  22557. align-items: center;
  22558. align-content: flex-start;
  22559. height: 40px;
  22560. justify-content: flex-start;
  22561. padding: 0 10px;
  22562. width: 100%;
  22563. box-sizing: border-box;
  22564. }
  22565. .navTaskname {
  22566. white-space: nowrap;
  22567. text-overflow: ellipsis;
  22568. overflow: hidden;
  22569. word-break: break-all;
  22570. padding-left: 5px;
  22571. }
  22572. .openTaskActive {
  22573. /* background-color: #e0eafb !important;
  22574. color: #0061ff; */
  22575. color:#fff;
  22576. background: rgb(55, 129, 252) !important;
  22577. }
  22578. .iframeName {
  22579. margin: 5px 0;
  22580. border-left: 4px solid #41c4a4;
  22581. padding-left: 4px;
  22582. }
  22583. .toolTitle {
  22584. margin: 0px 0px 20px;
  22585. font-size: 20px;
  22586. font-weight: 500;
  22587. border-left: 4px solid #41c4a4;
  22588. padding-left: 4px;
  22589. }
  22590. .cru_selectBox {
  22591. overflow: auto;
  22592. width: 95%;
  22593. margin: 17px auto 0;
  22594. height: calc(100% - 40px - 21px - 20px - 17px);
  22595. background: #fff;
  22596. border-radius: 8px;
  22597. }
  22598. .cru_selectBox::-webkit-scrollbar,
  22599. .study_top::-webkit-scrollbar,
  22600. .textContent::-webkit-scrollbar {
  22601. /*滚动条整体样式*/
  22602. width: 6px;
  22603. /*高宽分别对应横竖滚动条的尺寸*/
  22604. height: 6px;
  22605. }
  22606. /*定义滚动条轨道 内阴影+圆角*/
  22607. .cru_selectBox::-webkit-scrollbar-track,
  22608. .study_top::-webkit-scrollbar-track,
  22609. .textContent::-webkit-scrollbar {
  22610. border-radius: 10px;
  22611. background-color: #b8bdc9;
  22612. }
  22613. /*定义滑块 内阴影+圆角*/
  22614. .cru_selectBox::-webkit-scrollbar-thumb,
  22615. .study_top::-webkit-scrollbar-thumb,
  22616. .textContent::-webkit-scrollbar-thumb {
  22617. border-radius: 10px;
  22618. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22619. background-color: #2c5ab3;
  22620. }
  22621. .vedioBox {
  22622. border-radius: 0 0 20px 20px;
  22623. background: #fff;
  22624. overflow: auto;
  22625. }
  22626. .taskBox {
  22627. width: 98%;
  22628. background: #f0f4fa;
  22629. margin: 10px auto;
  22630. padding: 0 10px;
  22631. border-radius: 4px;
  22632. box-sizing: border-box;
  22633. }
  22634. .vedioTaskBox {
  22635. width: 100%;
  22636. display: flex;
  22637. flex-direction: row;
  22638. flex-wrap: nowrap;
  22639. align-items: flex-start;
  22640. position: relative;
  22641. }
  22642. .toolBox {
  22643. margin: 15px 0 0 25px;
  22644. display: flex;
  22645. position: relative;
  22646. padding: 18px 20px;
  22647. border-top-left-radius: 5px;
  22648. border-top-right-radius: 5px;
  22649. width: 90%;
  22650. }
  22651. .btnAll {
  22652. position: absolute;
  22653. right: 0;
  22654. display: flex;
  22655. flex-direction: row;
  22656. flex-wrap: nowrap;
  22657. align-items: center;
  22658. }
  22659. .btnLeft,
  22660. .btnRight {
  22661. display: flex;
  22662. flex-direction: row;
  22663. flex-wrap: nowrap;
  22664. align-items: center;
  22665. padding: 5px 0;
  22666. }
  22667. .btnLeft {
  22668. border-right: 1px solid #cad1dc;
  22669. }
  22670. .btnLeft > .custom-tooltip {
  22671. background: #3681fc;
  22672. color: #fff;
  22673. }
  22674. .last:hover {
  22675. background: #3383fa !important;
  22676. color: #fff;
  22677. border: 1px solid #3383fa !important;
  22678. }
  22679. .last,
  22680. .returnBtn1 {
  22681. width: 90px;
  22682. height: 36px;
  22683. background: #ffffff;
  22684. border-radius: 4px;
  22685. border: 1px solid #0061ff;
  22686. color: #0061ff;
  22687. cursor: pointer;
  22688. display: flex;
  22689. flex-direction: row;
  22690. flex-wrap: nowrap;
  22691. align-items: center;
  22692. justify-content: center;
  22693. margin-left: 12px;
  22694. }
  22695. .returnBtn1 {
  22696. background: #f0f4fa;
  22697. border-radius: 4px;
  22698. border: 1px solid #cad1dc;
  22699. margin: 0 12px;
  22700. }
  22701. .lastImg {
  22702. min-width: 15px;
  22703. width: 15px;
  22704. height: 15px;
  22705. display: flex;
  22706. }
  22707. .lastText {
  22708. padding: 0 5px 0 5px;
  22709. box-sizing: border-box;
  22710. font-size: 14px;
  22711. }
  22712. .lastImg > img {
  22713. width: 100%;
  22714. height: 100%;
  22715. }
  22716. /* .vedioTimeBox {
  22717. display: flex;
  22718. flex-direction: row;
  22719. align-items: center;
  22720. flex-wrap: nowrap;
  22721. position: relative;
  22722. } */
  22723. .navBox {
  22724. background: #fff;
  22725. height: calc(100% - 40px);
  22726. overflow-y: auto;
  22727. overflow-x: hidden;
  22728. }
  22729. .worksBox {
  22730. margin: 0 0 10px 25px;
  22731. border-bottom: 1px solid #eeeeee;
  22732. padding: 18px 20px;
  22733. border-radius: 4px;
  22734. width: 90%;
  22735. }
  22736. .worksBTitle {
  22737. font-size: 20px;
  22738. padding-bottom: 15px;
  22739. border-bottom: 1px solid #eeeeee;
  22740. display: flex;
  22741. align-items: center;
  22742. }
  22743. .greenBox {
  22744. width: 5px;
  22745. height: 30px;
  22746. background: #63b6fa;
  22747. margin-right: 5px;
  22748. }
  22749. .worksDetailBox {
  22750. display: flex;
  22751. width: 100%;
  22752. flex-direction: row;
  22753. flex-wrap: wrap;
  22754. align-items: flex-end;
  22755. justify-content: flex-start;
  22756. padding: 15px 5px;
  22757. box-sizing: border-box;
  22758. }
  22759. .works {
  22760. display: flex;
  22761. flex-direction: column;
  22762. flex-wrap: nowrap;
  22763. align-items: flex-start;
  22764. justify-content: flex-start;
  22765. align-content: center;
  22766. max-width: 240px;
  22767. width: calc(100% / 3 - 10px);
  22768. height: auto;
  22769. margin-right: 10px;
  22770. margin-bottom: 10px;
  22771. overflow: hidden;
  22772. height: 140px;
  22773. box-shadow: 0 0 6px 1px #dfdada;
  22774. border-radius: 15px;
  22775. }
  22776. .workImg {
  22777. width: 100%;
  22778. /* height: calc(100% - 40px); */
  22779. height: 105px;
  22780. position: relative;
  22781. }
  22782. .workImg > img {
  22783. width: 100%;
  22784. height: 100%;
  22785. object-fit: contain;
  22786. cursor: pointer;
  22787. }
  22788. .worksName {
  22789. height: 40px;
  22790. line-height: 40px;
  22791. display: flex;
  22792. width: 100%;
  22793. flex-direction: row;
  22794. flex-wrap: nowrap;
  22795. justify-content: space-between;
  22796. align-items: center;
  22797. margin: 0 0 0 10px;
  22798. }
  22799. .worksName > div:nth-child(1) {
  22800. width: 110px;
  22801. white-space: nowrap;
  22802. overflow: hidden;
  22803. text-overflow: ellipsis;
  22804. }
  22805. .worksName > div:nth-child(2) {
  22806. color: #b7b4b5;
  22807. }
  22808. .noWorksS {
  22809. padding: 15px 0;
  22810. display: flex;
  22811. flex-direction: row;
  22812. flex-wrap: wrap;
  22813. align-items: center;
  22814. justify-content: flex-start;
  22815. }
  22816. .noWorksName,
  22817. .isWorksName,
  22818. .isWorksName2 {
  22819. background: #ddebf8;
  22820. color: #000;
  22821. width: 90px;
  22822. height: 25px;
  22823. text-align: center;
  22824. line-height: 25px;
  22825. border-radius: 4px;
  22826. margin: 10px 15px 10px 0;
  22827. white-space: nowrap;
  22828. overflow: hidden;
  22829. padding: 5px;
  22830. text-overflow: ellipsis;
  22831. cursor: pointer;
  22832. border: 1px solid #ddebf8;
  22833. }
  22834. .noWorksName {
  22835. background: #fff;
  22836. color: #0061ff;
  22837. border: 1px solid #0061ff;
  22838. }
  22839. .noWorksName > span{
  22840. max-width: 100%;
  22841. display: block;
  22842. overflow: hidden;
  22843. text-overflow: ellipsis;
  22844. white-space: nowrap;
  22845. }
  22846. .isWorksName2 {
  22847. width: 100px;
  22848. height: 40px;
  22849. line-height: 40px;
  22850. position: relative;
  22851. background: #dae6f9;
  22852. }
  22853. .isWorksName {
  22854. background: #e7ebf1 !important;
  22855. width: 100px;
  22856. height: 40px;
  22857. line-height: 40px;
  22858. position: relative;
  22859. color: #acb4bf;
  22860. border: 1px solid #cad1dc !important;
  22861. }
  22862. .isSelectName,
  22863. .noWorksName:hover {
  22864. background: #3383fa !important;
  22865. color: #fff !important;
  22866. border: 1px solid #3383fa !important;
  22867. }
  22868. .title {
  22869. background: #1e5cc9;
  22870. /* width: 98%; */
  22871. height: 45px;
  22872. color: #fff;
  22873. line-height: 45px;
  22874. padding-left: 20px;
  22875. box-sizing: border-box;
  22876. }
  22877. .textBox {
  22878. font-size: 20px;
  22879. width: 90%;
  22880. display: flex;
  22881. flex-direction: column;
  22882. align-items: center;
  22883. margin: 20px auto 0;
  22884. max-height: calc(100% - 75px);
  22885. overflow: auto;
  22886. }
  22887. .textContent {
  22888. font-size: 18px;
  22889. width: 95%;
  22890. max-width: 95%;
  22891. }
  22892. .answerBg {
  22893. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22894. background-size: 100% 100%;
  22895. width: 100%;
  22896. height: 100%;
  22897. color: #fff;
  22898. text-align: center;
  22899. display: flex;
  22900. flex-direction: column;
  22901. flex-wrap: nowrap;
  22902. align-items: center;
  22903. position: relative;
  22904. justify-content: center;
  22905. }
  22906. .answerBg > div:nth-child(1) {
  22907. /* font-size: 22px;
  22908. padding: 25px 0 10px; */
  22909. }
  22910. .answerContent {
  22911. width: 215px;
  22912. max-height: 60px;
  22913. word-break: break-all;
  22914. text-align: center;
  22915. /* white-space: nowrap; */
  22916. overflow: hidden;
  22917. text-overflow: ellipsis;
  22918. /* padding: 23px 0 0; */
  22919. -webkit-line-clamp: 3;
  22920. -webkit-box-orient: vertical;
  22921. display: -webkit-box;
  22922. font-size: 15px;
  22923. cursor: pointer;
  22924. }
  22925. .elist_input_box {
  22926. display: flex;
  22927. align-items: flex-start;
  22928. flex-wrap: nowrap;
  22929. padding: 10px 0 15px 30px;
  22930. flex-direction: column;
  22931. }
  22932. .elist_input {
  22933. /* width: 40%; */
  22934. width: 45%;
  22935. margin: 20px;
  22936. }
  22937. .elist_input .elist_input_box input {
  22938. font: inherit;
  22939. color: currentColor;
  22940. width: 200px;
  22941. padding: 8px 14px;
  22942. display: block;
  22943. min-width: 0;
  22944. outline: none;
  22945. border: 1px solid rgba(0, 0, 0, 0.23);
  22946. border-radius: 4px;
  22947. box-sizing: border-box;
  22948. background: #fff;
  22949. margin: 0 20px 0 0;
  22950. }
  22951. .elist_input .elist_input_box span {
  22952. height: 36px;
  22953. line-height: 36px;
  22954. color: rgb(82, 82, 82);
  22955. }
  22956. .elist_input .elist_input_box .remove {
  22957. height: 20px;
  22958. width: 20px;
  22959. background-size: 100% 100%;
  22960. background-position: unset;
  22961. margin-left: 5px;
  22962. }
  22963. .elist_input_box >>> .el-rate {
  22964. display: flex;
  22965. height: 36px;
  22966. align-items: center;
  22967. }
  22968. .elist_input_box .elist_inptu_text {
  22969. min-height: 50px;
  22970. /* width: 500px;
  22971. max-height: 150px; */
  22972. width: 100%;
  22973. line-height: 50px;
  22974. color: rgb(82, 82, 82);
  22975. overflow: auto;
  22976. text-indent: 5px;
  22977. background: #f7f6f9;
  22978. border-radius: 10px;
  22979. }
  22980. .elist_input_box .elist_inptu_text input {
  22981. width: 500px;
  22982. }
  22983. .elist_input_box >>> .el-rate__icon {
  22984. font-size: 24px;
  22985. }
  22986. .isClick {
  22987. background: #4d9def;
  22988. }
  22989. .bzBox {
  22990. display: flex;
  22991. flex-direction: row;
  22992. align-items: center;
  22993. }
  22994. .bzBox .yCss {
  22995. width: 7px;
  22996. height: 7px;
  22997. background: #fff;
  22998. margin: 0 16px 0 6px;
  22999. border-radius: 50%;
  23000. border: 5px solid #3681fc;
  23001. z-index: 99;
  23002. }
  23003. .bzBox > div:nth-child(2) {
  23004. font-size: 18px;
  23005. font-weight: bold;
  23006. color: #0e1e33;
  23007. }
  23008. .navTitile {
  23009. padding: 0 0px 0 15px;
  23010. font-size: 16px;
  23011. font-weight: bold;
  23012. color: #0e1e33;
  23013. height: 40px;
  23014. line-height: 40px;
  23015. }
  23016. .isTypeOne {
  23017. width: 240px;
  23018. height: 170px;
  23019. /* border: 1px solid #f8f8f8; */
  23020. border-radius: 10px;
  23021. box-shadow: 0 0 6px 1px #dfdada;
  23022. }
  23023. .e_add_top {
  23024. display: flex;
  23025. justify-content: space-between;
  23026. padding: 10px 20px;
  23027. border-radius: 3px;
  23028. background: #fff;
  23029. }
  23030. .e_add_title2 {
  23031. display: flex;
  23032. align-items: center;
  23033. }
  23034. .e_add_title2 span {
  23035. width: 40px;
  23036. }
  23037. .e_add_title {
  23038. display: flex;
  23039. align-items: center;
  23040. color: #b8b8b8;
  23041. font-size: 18px;
  23042. position: relative;
  23043. height: 40px;
  23044. width: 100%;
  23045. }
  23046. .e_add_title span {
  23047. margin-right: 10px;
  23048. }
  23049. .e_add_title .el_input {
  23050. width: 300px;
  23051. }
  23052. .e_add_title >>> .el-input__inner {
  23053. width: 400px;
  23054. }
  23055. .e_add_btn {
  23056. }
  23057. .e_add_content {
  23058. display: flex;
  23059. width: 100%;
  23060. max-width: 650px;
  23061. height: 550px;
  23062. }
  23063. .e_add_list {
  23064. background: #fff;
  23065. height: 500px;
  23066. width: 210px;
  23067. position: relative;
  23068. margin: 15px 5px 0 0;
  23069. flex-shrink: 0;
  23070. display: flex;
  23071. flex-direction: column;
  23072. }
  23073. .e_add_list_title {
  23074. font-size: 20px;
  23075. width: 100%;
  23076. box-sizing: border-box;
  23077. padding: 15px 40px;
  23078. text-align: center;
  23079. border-bottom: 1px solid #eaeaea;
  23080. position: relative;
  23081. display: flex;
  23082. align-items: center;
  23083. justify-content: center;
  23084. height: 57px;
  23085. background: #f6f6f6;
  23086. }
  23087. .e_add_list_title span {
  23088. overflow: hidden;
  23089. white-space: nowrap;
  23090. text-overflow: ellipsis;
  23091. }
  23092. .e_add_list_title img {
  23093. position: absolute;
  23094. right: 15px;
  23095. width: 25px;
  23096. cursor: pointer;
  23097. top: 50%;
  23098. transform: translateY(-50%);
  23099. }
  23100. .e_add_list_body {
  23101. height: calc(100% - 187px);
  23102. overflow: auto;
  23103. }
  23104. .e_add_list_child {
  23105. width: 100%;
  23106. display: flex;
  23107. align-items: center;
  23108. justify-content: center;
  23109. position: relative;
  23110. box-sizing: border-box;
  23111. padding: 15px 40px;
  23112. text-align: center;
  23113. }
  23114. .e_add_list_child span {
  23115. overflow: hidden;
  23116. white-space: nowrap;
  23117. text-overflow: ellipsis;
  23118. cursor: pointer;
  23119. }
  23120. .e_add_list_child img {
  23121. position: absolute;
  23122. right: 10px;
  23123. width: 21px;
  23124. cursor: pointer;
  23125. top: 50%;
  23126. transform: translateY(-50%);
  23127. }
  23128. .e_add_list_child + .e_add_list_child {
  23129. border-top: 1px solid #eaeaea;
  23130. }
  23131. .e_add_list_child .active {
  23132. color: #409eff;
  23133. }
  23134. .e_add_list_btn {
  23135. position: absolute;
  23136. bottom: 0;
  23137. height: 50px;
  23138. background: rgb(120, 120, 254);
  23139. width: 100%;
  23140. color: #fff;
  23141. font-size: 16px;
  23142. text-align: center;
  23143. line-height: 50px;
  23144. cursor: pointer;
  23145. }
  23146. .e_add_list_detail {
  23147. position: absolute;
  23148. bottom: 0;
  23149. height: 130px;
  23150. background: rgb(120, 120, 254);
  23151. width: 100%;
  23152. color: #fff;
  23153. font-size: 16px;
  23154. display: flex;
  23155. align-items: center;
  23156. justify-content: center;
  23157. }
  23158. .e_add_list_detail textarea {
  23159. height: 90%;
  23160. width: 95%;
  23161. border: none;
  23162. resize: none;
  23163. outline: none;
  23164. padding: 5px;
  23165. box-sizing: border-box;
  23166. }
  23167. .e_add_list_pbox {
  23168. width: 100%;
  23169. max-width: 650px;
  23170. /* height: 600px; */
  23171. }
  23172. .e_add_list_pbox_title {
  23173. height: 50px;
  23174. background: #fff;
  23175. display: flex;
  23176. align-items: center;
  23177. width: 100%;
  23178. box-sizing: border-box;
  23179. padding: 0 20px;
  23180. }
  23181. .type_title {
  23182. font-size: 18px;
  23183. font-weight: 700;
  23184. }
  23185. .type_content {
  23186. font-size: 16px;
  23187. /* margin-left: 30px; */
  23188. }
  23189. .type_content span + span {
  23190. margin-left: 20px;
  23191. }
  23192. .type_content span {
  23193. cursor: pointer;
  23194. padding-bottom: 5px;
  23195. box-sizing: border-box;
  23196. }
  23197. .type_content .active {
  23198. color: #409eff;
  23199. border-bottom: 2px solid #409eff;
  23200. }
  23201. .e_add_list_pbox_content {
  23202. height: calc(100% - 50px);
  23203. display: flex;
  23204. align-items: center;
  23205. width: 100%;
  23206. background: #fff;
  23207. }
  23208. .evaCss {
  23209. display: flex;
  23210. flex-direction: row;
  23211. flex-wrap: nowrap;
  23212. align-items: flex-start;
  23213. padding: 0 0 20px;
  23214. }
  23215. .cru_line {
  23216. position: absolute;
  23217. bottom: 0px;
  23218. transition: all 0.5s;
  23219. left: 0px;
  23220. width: 125px;
  23221. margin-left: -25px;
  23222. }
  23223. .isNoMessage {
  23224. width: 20%;
  23225. margin: 25% auto 0;
  23226. }
  23227. .isNoMessage > img {
  23228. width: 100%;
  23229. height: 100%;
  23230. }
  23231. .fullStyle >>> .el-dialog__body {
  23232. height: 100% !important;
  23233. }
  23234. .fullStyle >>> .el-dialog,
  23235. .fullStyle {
  23236. width: 100% !important;
  23237. max-width: 100% !important;
  23238. height: 100% !important;
  23239. margin: 0 !important;
  23240. }
  23241. .full_diy >>> .el-dialog {
  23242. margin: 0 !important;
  23243. height: 100%;
  23244. padding: 4px;
  23245. }
  23246. .full_diy >>> .el-dialog__body {
  23247. height: calc(100% - 100px);
  23248. }
  23249. .full_diy2 >>> .el-dialog__body {
  23250. height: calc(100% - 50px);
  23251. padding: 0;
  23252. }
  23253. .switchCss {
  23254. /* width: 100%; */
  23255. display: flex;
  23256. flex-direction: row;
  23257. flex-wrap: nowrap;
  23258. align-items: center;
  23259. /* justify-content: center; */
  23260. }
  23261. .isClickNav {
  23262. /* color: #499eef; */
  23263. color: #000;
  23264. }
  23265. .commentImg {
  23266. width: 25px;
  23267. height: 25px;
  23268. cursor: pointer;
  23269. }
  23270. .commentImg > img {
  23271. width: 100%;
  23272. height: 100%;
  23273. }
  23274. .comment {
  23275. background: #f9f9f9;
  23276. border-radius: 0 0 4px 4px;
  23277. display: flex;
  23278. flex-direction: row;
  23279. flex-wrap: nowrap;
  23280. align-items: center;
  23281. justify-content: flex-end;
  23282. height: 35px;
  23283. }
  23284. .commentList {
  23285. display: flex;
  23286. flex-direction: row;
  23287. flex-wrap: nowrap;
  23288. align-items: center;
  23289. justify-content: center;
  23290. align-content: center;
  23291. /* margin-left: 15px; */
  23292. /* margin-left: 8px; */
  23293. }
  23294. .scoreImg {
  23295. width: 17px;
  23296. height: 17px;
  23297. }
  23298. .studentDetail {
  23299. display: flex;
  23300. flex-direction: row;
  23301. flex-wrap: nowrap;
  23302. /* align-items: center; */
  23303. align-items: flex-start;
  23304. }
  23305. .tx {
  23306. width: 50px;
  23307. }
  23308. .tx > img {
  23309. width: 100%;
  23310. height: 100%;
  23311. }
  23312. .nameAndTime {
  23313. display: flex;
  23314. flex-direction: column;
  23315. flex-wrap: nowrap;
  23316. align-items: flex-start;
  23317. margin-left: 10px;
  23318. }
  23319. .worksAnswer {
  23320. color: #4078dd;
  23321. margin: 10px 0;
  23322. font-size: 16px;
  23323. position: relative;
  23324. }
  23325. .worksAnswer > img {
  23326. width: 500px;
  23327. height: 300px;
  23328. object-fit: contain;
  23329. margin: 0 auto;
  23330. display: block;
  23331. }
  23332. .commentTop {
  23333. border-bottom: 1px solid #eaeaea;
  23334. padding-bottom: 10px;
  23335. }
  23336. .commentBox {
  23337. padding-top: 15px;
  23338. }
  23339. .pl {
  23340. font-size: 18px;
  23341. }
  23342. .plPerson {
  23343. width: 100%;
  23344. }
  23345. .plName {
  23346. display: flex;
  23347. flex-direction: row;
  23348. flex-wrap: nowrap;
  23349. align-items: baseline;
  23350. color: #78787a;
  23351. width: 100%;
  23352. }
  23353. .deleteComment {
  23354. cursor: pointer;
  23355. margin-left: auto;
  23356. color: #237ade;
  23357. }
  23358. .plContent {
  23359. margin-top: 5px;
  23360. }
  23361. .evalCss {
  23362. background: #fff;
  23363. font-size: 18px;
  23364. }
  23365. .nav {
  23366. color: #9d9d9d;
  23367. padding: 5px 0 15px 20px;
  23368. }
  23369. .middleBox {
  23370. padding: 5px 0 15px 20px;
  23371. }
  23372. .pfBox {
  23373. padding-bottom: 30px;
  23374. }
  23375. .nameAndrate {
  23376. display: flex;
  23377. flex-direction: row;
  23378. flex-wrap: nowrap;
  23379. align-items: center;
  23380. padding-bottom: 10px;
  23381. height: 30px;
  23382. line-height: 30px;
  23383. }
  23384. .nameAndrate > div {
  23385. margin-left: 10px;
  23386. color: #000;
  23387. height: 30px;
  23388. }
  23389. .nameAndrate >>> .el-rate__icon {
  23390. font-size: 28px !important;
  23391. }
  23392. .pfBox > div:nth-child(2) {
  23393. background: #f7f6f9;
  23394. width: 400px;
  23395. min-height: 45px;
  23396. border-radius: 10px;
  23397. font-size: 16px;
  23398. display: flex;
  23399. flex-wrap: wrap;
  23400. align-items: center;
  23401. padding: 10px 20px;
  23402. box-sizing: border-box;
  23403. color: #000;
  23404. }
  23405. .bz {
  23406. display: flex;
  23407. flex-direction: row;
  23408. flex-wrap: nowrap;
  23409. align-items: flex-start;
  23410. }
  23411. .bz > div {
  23412. padding: 0 10px;
  23413. }
  23414. .select_box2_title {
  23415. background: #fff;
  23416. border-radius: 5px;
  23417. padding: 15px 10px;
  23418. box-sizing: border-box;
  23419. margin-bottom: 10px;
  23420. display: flex;
  23421. flex-direction: row;
  23422. flex-wrap: nowrap;
  23423. align-items: center;
  23424. }
  23425. .select_box2_title > div:nth-child(2) {
  23426. margin-left: 10px;
  23427. color: #c4c4c4;
  23428. }
  23429. .select_box2_box {
  23430. display: flex;
  23431. height: 500px;
  23432. }
  23433. .select_box2_img {
  23434. width: calc(100% - 310px);
  23435. height: 100%;
  23436. overflow: auto;
  23437. background: #fff;
  23438. border-radius: 5px;
  23439. }
  23440. .select_box2_img img {
  23441. width: 100%;
  23442. }
  23443. .select_box2_answer {
  23444. background: #fff;
  23445. margin-left: 10px;
  23446. border-radius: 5px;
  23447. width: 300px;
  23448. overflow: auto;
  23449. height: 90%;
  23450. display: flex;
  23451. flex-direction: column;
  23452. align-items: flex-start;
  23453. padding-top: 10px;
  23454. box-sizing: border-box;
  23455. position: relative;
  23456. }
  23457. .select_answer_title {
  23458. padding: 0 0 15px 20px;
  23459. color: #c4c4c4;
  23460. }
  23461. .select_box2_answer_box {
  23462. margin: 0 0 10px 20px;
  23463. width: 85%;
  23464. display: flex;
  23465. flex-direction: row;
  23466. flex-wrap: nowrap;
  23467. align-items: center;
  23468. }
  23469. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23470. color: #000;
  23471. }
  23472. .upAnswerCss {
  23473. position: absolute;
  23474. bottom: 15px;
  23475. right: 15px;
  23476. }
  23477. .upAnswerCss >>> .el-button {
  23478. width: 95px;
  23479. height: 35px;
  23480. line-height: 35px;
  23481. padding: 0;
  23482. }
  23483. .rightWidthCss {
  23484. width: 60%;
  23485. display: flex;
  23486. flex-direction: row;
  23487. align-items: flex-start;
  23488. }
  23489. .rightAnswer {
  23490. display: flex;
  23491. flex-direction: row;
  23492. flex-wrap: nowrap;
  23493. align-items: center;
  23494. color: red;
  23495. margin-bottom: 31px;
  23496. }
  23497. .rightAnswerCss {
  23498. display: flex;
  23499. flex-direction: column;
  23500. flex-wrap: nowrap;
  23501. padding-top: 60px;
  23502. }
  23503. .blueCss {
  23504. color: #767de1;
  23505. margin-left: 10px;
  23506. }
  23507. .redCss {
  23508. color: red;
  23509. }
  23510. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23511. color: rgb(0 123 255) !important;
  23512. }
  23513. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23514. color: rgb(0 123 255) !important;
  23515. }
  23516. .zuoyeYulan {
  23517. padding-top: 0;
  23518. font-size: 18px;
  23519. display: flex;
  23520. align-items: flex-end;
  23521. }
  23522. .buttonA {
  23523. margin-left: 10px;
  23524. padding: 0;
  23525. }
  23526. .displayBox {
  23527. margin-bottom: 10px;
  23528. display: block;
  23529. border-bottom: 3px solid #eee;
  23530. display: flex;
  23531. align-items: center;
  23532. }
  23533. .easy_comment {
  23534. width: calc(100% - 90px);
  23535. margin-left: 10px;
  23536. display: flex;
  23537. flex-wrap: wrap;
  23538. }
  23539. .easy_comment > div {
  23540. border: 1px solid #4a4a4a;
  23541. color: #666;
  23542. border-radius: 15px;
  23543. padding: 5px 10px;
  23544. font-size: 16px;
  23545. margin-bottom: 10px;
  23546. margin-right: 5px;
  23547. cursor: pointer;
  23548. }
  23549. .easy_comment div:hover {
  23550. border: 1px solid #f7ba2a;
  23551. color: #c69217;
  23552. }
  23553. .xuan_right_box {
  23554. padding: 10px 0;
  23555. background: #f0f4fa;
  23556. margin: 0 15px 0 25px;
  23557. border-bottom-left-radius: 5px;
  23558. border-bottom-right-radius: 5px;
  23559. width: 91.5%;
  23560. }
  23561. .tool_right_box {
  23562. display: flex;
  23563. align-items: center;
  23564. }
  23565. .tool_right_box + .tool_right_box {
  23566. margin-top: 10px;
  23567. }
  23568. .right_box_xuan {
  23569. border-radius: 5px;
  23570. padding: 5px;
  23571. margin-left: 10px;
  23572. min-width: 85px;
  23573. background: #fff;
  23574. color: #0061ff;
  23575. border: 1px solid #0061ff;
  23576. font-size: 14px;
  23577. }
  23578. .pButton:hover {
  23579. opacity: 1 !important;
  23580. }
  23581. .pButton {
  23582. position: fixed;
  23583. text-align: center;
  23584. cursor: pointer;
  23585. z-index: 999;
  23586. right: 20px;
  23587. top: 110px;
  23588. width: 50px;
  23589. height: 50px;
  23590. display: flex;
  23591. align-items: center;
  23592. justify-content: center;
  23593. border-radius: 5px;
  23594. }
  23595. .pzClass {
  23596. width: calc(100% - 340px);
  23597. }
  23598. .newDialogCss {
  23599. /* position: fixed;
  23600. right: 5%;
  23601. top: 50%;
  23602. width: 340px;
  23603. transform: translateY(-50%);
  23604. height: 60%;
  23605. box-shadow: 0px 0 8px 0px #555555;
  23606. border-radius: 15px;
  23607. z-index: 999; */
  23608. position: fixed;
  23609. right: 20px;
  23610. top: 101px;
  23611. width: 330px;
  23612. height: calc(100% - 80px);
  23613. z-index: 999;
  23614. background: #fff;
  23615. border-top-right-radius: 0px;
  23616. border-bottom-right-radius: 0px;
  23617. overflow: hidden;
  23618. }
  23619. .newDialogCss>.scoreList{
  23620. width:100%;
  23621. height:100%;
  23622. box-sizing:border-box;
  23623. padding:10px 15px;
  23624. overflow:auto;
  23625. padding-bottom:80px;
  23626. }
  23627. .pzTop {
  23628. color: #fff;
  23629. background: #000;
  23630. display: flex;
  23631. flex-direction: row;
  23632. flex-wrap: nowrap;
  23633. align-items: center;
  23634. justify-content: space-between;
  23635. height: 40px;
  23636. border-radius: 15px 15px 0 0;
  23637. user-select: none;
  23638. }
  23639. .pzTop2 .checkbox {
  23640. display: flex;
  23641. align-items: center;
  23642. padding: 5px 10px;
  23643. flex: 0 0 auto;
  23644. font-weight: bold;
  23645. border-bottom: 1px solid #eee;
  23646. justify-content: space-between;
  23647. }
  23648. .checkbox>.cb-tabList{
  23649. display:flex;
  23650. align-items:center;
  23651. }
  23652. .cb-tabList>div{
  23653. margin-right:20px;
  23654. font-weight:400;
  23655. cursor:pointer;
  23656. }
  23657. .cb-tabList>.cb-tabItem{
  23658. color:#1684FC;
  23659. position:relative;
  23660. }
  23661. .cb-tabItem::after{
  23662. content:"";
  23663. width:100%;
  23664. height:2px;
  23665. background:#1684FC;
  23666. position:absolute;
  23667. bottom:-5px;
  23668. left:0
  23669. }
  23670. .pzTop2 .check {
  23671. text-align: center;
  23672. cursor: pointer;
  23673. box-sizing: border-box;
  23674. display: flex;
  23675. }
  23676. .pzTop2 img {
  23677. width: 25px;
  23678. cursor: pointer;
  23679. }
  23680. .pzTop > div:nth-child(1) {
  23681. padding-left: 10px;
  23682. }
  23683. .pzTop > div:nth-child(2) {
  23684. width: 15px;
  23685. height: 15px;
  23686. padding-right: 10px;
  23687. cursor: pointer;
  23688. }
  23689. .pzTop > div:nth-child(2) > img {
  23690. width: 100%;
  23691. height: 100%;
  23692. }
  23693. .pzBox,
  23694. .noPzBox {
  23695. height: calc(100% - 60px);
  23696. /* background: #ededed; */
  23697. background: #fff;
  23698. /* border-radius: 0 0 15px 15px; */
  23699. }
  23700. .noPzBox {
  23701. display: flex;
  23702. flex-direction: column;
  23703. flex-wrap: nowrap;
  23704. justify-content: center;
  23705. align-items: center;
  23706. }
  23707. .pzList {
  23708. background: #f7f7f7;
  23709. width: 90%;
  23710. margin: 0 auto 15px;
  23711. border-radius: 5px;
  23712. }
  23713. .pzNavTop {
  23714. display: flex;
  23715. flex-direction: row;
  23716. flex-wrap: nowrap;
  23717. padding: 10px 10px 0 10px;
  23718. align-items: center;
  23719. }
  23720. .pzDelete {
  23721. cursor: pointer;
  23722. margin-left: auto;
  23723. font-size: 14px;
  23724. color: #afafaf;
  23725. }
  23726. .pzNavTop > div:nth-child(1) {
  23727. background: #3760af;
  23728. width: 35px;
  23729. height: 35px;
  23730. color: #fff;
  23731. text-align: center;
  23732. line-height: 35px;
  23733. border-radius: 50%;
  23734. font-size: 14px;
  23735. }
  23736. .pzNavTop > div:nth-child(2) {
  23737. font-size: 18px;
  23738. color: #959595;
  23739. margin-left: 5px;
  23740. }
  23741. .pzContent {
  23742. padding: 10px;
  23743. word-break: break-word;
  23744. }
  23745. .pzContent audio {
  23746. width: 100%;
  23747. }
  23748. .pzContent audio::-webkit-media-controls-panel {
  23749. background: #fff;
  23750. }
  23751. .pzContent >>> img {
  23752. max-width: 100%;
  23753. }
  23754. .pzListBox {
  23755. padding-top: 15px;
  23756. height: calc(100% - 110px);
  23757. overflow: auto;
  23758. }
  23759. .addPzButton {
  23760. position: relative;
  23761. margin-top: 3px;
  23762. width: 100%;
  23763. }
  23764. .addPzButton .img1 {
  23765. position: absolute;
  23766. top: 50%;
  23767. right: 25px;
  23768. transform: translateY(-50%);
  23769. height: 100%;
  23770. display: flex;
  23771. align-items: center;
  23772. }
  23773. .addPzButton .img1 div {
  23774. display: flex;
  23775. }
  23776. .addPzButton .img1 div img {
  23777. width: 28px;
  23778. margin-left: 10px;
  23779. cursor: pointer;
  23780. }
  23781. .addPzButton .img1 div span {
  23782. font-size: 14px;
  23783. margin: 4px 0 0 3px;
  23784. color: #afafaf;
  23785. }
  23786. .addPz {
  23787. background: #4b79ce;
  23788. width: 100px;
  23789. color: #fff;
  23790. font-size: 12px;
  23791. height: 30px;
  23792. margin: 0 auto;
  23793. text-align: center;
  23794. line-height: 30px;
  23795. border-radius: 10px;
  23796. cursor: pointer;
  23797. }
  23798. .addDialogCss {
  23799. position: fixed;
  23800. width: 600px;
  23801. height: 70%;
  23802. min-height: 450px;
  23803. box-shadow: 0px 0 8px 0px #555555;
  23804. border-radius: 15px;
  23805. z-index: 999;
  23806. left: 50%;
  23807. top: 50%;
  23808. margin: -18% 0 0 -300px;
  23809. }
  23810. .teacherPz {
  23811. display: flex;
  23812. flex-direction: row;
  23813. align-items: center;
  23814. flex-wrap: nowrap;
  23815. }
  23816. .teacherPzImg {
  23817. width: 30px;
  23818. height: 30px;
  23819. }
  23820. .teacherPzImg > img {
  23821. width: 100%;
  23822. height: 100%;
  23823. }
  23824. .addPzBox {
  23825. height: calc(100% - 40px);
  23826. background: #ededed;
  23827. border-bottom-left-radius: 15px;
  23828. border-bottom-right-radius: 15px;
  23829. }
  23830. .pzAudioClass {
  23831. margin: 15px 14px;
  23832. background: #fff;
  23833. height: 100%;
  23834. display: flex;
  23835. justify-content: center;
  23836. align-items: center;
  23837. }
  23838. .pzConText {
  23839. width: 95%;
  23840. height: 100%;
  23841. margin: 10px auto 0;
  23842. border: none;
  23843. background: #fff;
  23844. border-radius: 0px;
  23845. }
  23846. .pzConText >>> .text {
  23847. height: calc(100% - 82px);
  23848. }
  23849. .addTextCss {
  23850. background: #4b79ce;
  23851. width: 80px;
  23852. height: 30px;
  23853. text-align: center;
  23854. color: #fff;
  23855. line-height: 30px;
  23856. border-radius: 10px;
  23857. margin: 10px auto 0;
  23858. cursor: pointer;
  23859. }
  23860. .pzConText:focus-visible {
  23861. border: none !important;
  23862. }
  23863. .maxWidth {
  23864. width: 1000px;
  23865. }
  23866. .noPz {
  23867. width: 150px;
  23868. margin: 0 auto 20%;
  23869. }
  23870. .noPz > img {
  23871. width: 100%;
  23872. height: 100%;
  23873. }
  23874. .timeAndReply {
  23875. display: flex;
  23876. flex-direction: row;
  23877. flex-wrap: nowrap;
  23878. justify-content: space-between;
  23879. align-items: center;
  23880. font-size: 14px;
  23881. box-sizing: border-box;
  23882. padding: 0 10px 10px 0px;
  23883. }
  23884. .timeAndReply .time {
  23885. color: #bfbfbf;
  23886. padding: 0 0 0 10px;
  23887. box-sizing: border-box;
  23888. }
  23889. .timeAndReply > div:last-child {
  23890. cursor: pointer;
  23891. color: #777;
  23892. }
  23893. /* table 样式 */
  23894. .cont >>> table {
  23895. border-top: 1px solid #ccc;
  23896. border-left: 1px solid #ccc;
  23897. }
  23898. .cont >>> table td,
  23899. .cont >>> table th {
  23900. border-bottom: 1px solid #ccc;
  23901. border-right: 1px solid #ccc;
  23902. /* padding: 20px 5px; */
  23903. padding: 5px 10px;
  23904. max-width: 0px;
  23905. height: 30px;
  23906. vertical-align: baseline;
  23907. box-sizing: border-box;
  23908. }
  23909. .cont >>> table th {
  23910. border-bottom: 2px solid #ccc;
  23911. text-align: center;
  23912. }
  23913. /* blockquote 样式 */
  23914. .cont >>> blockquote {
  23915. display: block;
  23916. border-left: 8px solid #d0e5f2;
  23917. padding: 5px 10px;
  23918. margin: 10px 0;
  23919. line-height: 1.4;
  23920. font-size: 100%;
  23921. background-color: #f1f1f1;
  23922. }
  23923. /* code 样式 */
  23924. .cont >>> code {
  23925. display: inline-block;
  23926. /* *display: inline; */
  23927. zoom: 1;
  23928. background-color: #f1f1f1;
  23929. border-radius: 3px;
  23930. padding: 3px 5px;
  23931. margin: 0 3px;
  23932. }
  23933. .cont >>> pre code {
  23934. display: block;
  23935. }
  23936. /* ul ol 样式 */
  23937. .cont >>> ul,
  23938. ol {
  23939. margin: 10px 0 10px 20px;
  23940. }
  23941. .addPzCheck {
  23942. display: flex;
  23943. flex-direction: row;
  23944. flex-wrap: nowrap;
  23945. padding: 10px 15px 0;
  23946. }
  23947. .addPzCheck span {
  23948. cursor: pointer;
  23949. padding-bottom: 5px;
  23950. font-weight: bold;
  23951. }
  23952. .addPzCheck span + span {
  23953. margin-left: 10px;
  23954. }
  23955. .addPzCheck .isChooseActive {
  23956. color: #3e88f4;
  23957. border-bottom: 2px solid #2f80f3;
  23958. }
  23959. /* code 样式 */
  23960. .cont {
  23961. /* -webkit-user-modify: read-write; */
  23962. overflow-wrap: break-word;
  23963. -webkit-line-break: after-white-space;
  23964. word-break: break-word;
  23965. white-space: pre-line;
  23966. }
  23967. .scoreBox,
  23968. .scoreDetailBox {
  23969. display: flex;
  23970. align-items: center;
  23971. justify-content: flex-start;
  23972. margin-top: 20px;
  23973. font-size: 18px;
  23974. width: 100%;
  23975. }
  23976. .scoreBox .t,
  23977. .scoreDetailBox .t {
  23978. margin-right: 10px;
  23979. width: 100px;
  23980. text-align: right;
  23981. }
  23982. .scoreDetailBox {
  23983. align-items: flex-start;
  23984. }
  23985. .scoreDetailBox >>> .el-textarea {
  23986. width: calc(100% - 200px);
  23987. }
  23988. .scoreBox >>> .el-input {
  23989. width: 130px;
  23990. font-size: 38px;
  23991. }
  23992. .scoreBox >>> .el-input__inner {
  23993. height: 60px;
  23994. }
  23995. .answerScore {
  23996. position: absolute;
  23997. top: 10px;
  23998. right: 10px;
  23999. background: #0000008f;
  24000. border-radius: 5px;
  24001. padding: 3px 5px;
  24002. font-size: 14px;
  24003. color: #fff;
  24004. cursor: pointer;
  24005. }
  24006. .open_box .switch_box {
  24007. width: 100%;
  24008. margin: 0 auto;
  24009. display: flex;
  24010. justify-content: space-between;
  24011. }
  24012. .open_box .switch_box + .switch_box {
  24013. margin-top: 10px;
  24014. }
  24015. .deleteImg,.deleteImg1 {
  24016. width: 25px !important;
  24017. height: 25px !important;
  24018. cursor: pointer;
  24019. position: absolute;
  24020. top: 10px;
  24021. right: 10px;
  24022. }
  24023. .deleteImg2 {
  24024. width: 23px !important;
  24025. height: 23px !important;
  24026. top: 5px;
  24027. right: 5px;
  24028. }
  24029. .deleteImg1{
  24030. width: 23px !important;
  24031. height: 23px !important;
  24032. top: 5px !important;
  24033. right: 30px !important;
  24034. }
  24035. .rightW {
  24036. right: 40px;
  24037. }
  24038. .drawPBox {
  24039. display: flex;
  24040. flex-direction: column;
  24041. position: relative;
  24042. }
  24043. .drawPBox span {
  24044. font-size: 18px;
  24045. color: #606266;
  24046. padding-bottom: 10px;
  24047. margin: 10px 0;
  24048. border-bottom: 1px solid #eaeaea;
  24049. }
  24050. .drawPBox img {
  24051. width: 500px;
  24052. height: 300px;
  24053. object-fit: contain;
  24054. cursor: pointer;
  24055. margin: 0 auto;
  24056. }
  24057. .sentenBox {
  24058. background: #fff;
  24059. height: 450px;
  24060. overflow: auto;
  24061. background-image: url("../assets/icon/conSentences/stuBg.png");
  24062. background-position: 102%;
  24063. background-repeat: no-repeat;
  24064. background-size: 60%;
  24065. }
  24066. .addSen {
  24067. background: #409efe;
  24068. width: 90px;
  24069. color: #fff;
  24070. height: 35px;
  24071. text-align: center;
  24072. line-height: 35px;
  24073. border-radius: 5px;
  24074. float: right;
  24075. margin: 10px 20px 0 0;
  24076. cursor: pointer;
  24077. }
  24078. .sentenTop {
  24079. display: flex;
  24080. flex-direction: row;
  24081. flex-wrap: nowrap;
  24082. align-items: center;
  24083. padding: 55px 0 0 20px;
  24084. box-sizing: border-box;
  24085. }
  24086. .sentenTop > div:nth-child(2) {
  24087. width: 300px;
  24088. margin: 0 15px;
  24089. }
  24090. .sentenTop > div:nth-child(3) {
  24091. background: #409efe;
  24092. color: #fff;
  24093. width: 65px;
  24094. height: 35px;
  24095. text-align: center;
  24096. line-height: 35px;
  24097. border-radius: 5px;
  24098. cursor: pointer;
  24099. }
  24100. .cardList,
  24101. .cardList1 {
  24102. padding: 10px 0 10px 0;
  24103. display: flex;
  24104. flex-direction: row;
  24105. flex-wrap: wrap;
  24106. align-items: center;
  24107. box-sizing: border-box;
  24108. border-bottom: 1px solid #f4f4f4;
  24109. width: 98%;
  24110. margin: 0 auto;
  24111. min-width: 60%;
  24112. max-width: 85%;
  24113. }
  24114. .cardList1 {
  24115. padding: 10px 0 10px 10px !important;
  24116. margin: 0 !important;
  24117. }
  24118. .cardBox {
  24119. display: flex;
  24120. flex-direction: row;
  24121. flex-wrap: wrap;
  24122. align-items: center;
  24123. align-content: center;
  24124. }
  24125. .cardBox > div {
  24126. margin-bottom: 10px;
  24127. }
  24128. .isCard,
  24129. .isChooseCard,
  24130. .noCard,
  24131. .isCard1 {
  24132. min-width: 130px;
  24133. width: auto;
  24134. height: 60px;
  24135. text-align: center;
  24136. line-height: 60px;
  24137. font-size: 20px;
  24138. cursor: pointer;
  24139. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24140. background-size: cover;
  24141. transition: all 2s;
  24142. margin-right: 20px;
  24143. background-size: 100% 100%;
  24144. padding: 0 20px;
  24145. box-sizing: border-box;
  24146. }
  24147. .isCard > div,
  24148. .noCard > div,
  24149. .isCard1 > div {
  24150. white-space: nowrap;
  24151. overflow: hidden;
  24152. text-overflow: ellipsis;
  24153. width: 100%;
  24154. margin: 0 auto;
  24155. }
  24156. .noCard {
  24157. background-image: none;
  24158. }
  24159. .isCard1 {
  24160. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24161. }
  24162. .isChooseCard {
  24163. background-image: none;
  24164. border: 1px dashed #b9b9b9;
  24165. border-radius: 10px;
  24166. }
  24167. .card {
  24168. width: 130px;
  24169. height: 60px;
  24170. }
  24171. .card > img {
  24172. width: 100%;
  24173. height: 100%;
  24174. }
  24175. .rightCardBox {
  24176. margin: 10px 0 0 10px;
  24177. }
  24178. .rightCardBox > div:nth-child(1) {
  24179. margin-bottom: 10px;
  24180. }
  24181. .cardCss {
  24182. display: flex;
  24183. flex-direction: column;
  24184. flex-wrap: nowrap;
  24185. align-items: center;
  24186. border-bottom: 3px solid #b4c3d3;
  24187. padding: 0 0 5px 0;
  24188. margin-right: 10px;
  24189. }
  24190. .cardCss > div:nth-child(2) {
  24191. background: #5b7b9d;
  24192. color: #fff;
  24193. width: 20px;
  24194. height: 20px;
  24195. border-radius: 50%;
  24196. text-align: center;
  24197. line-height: 20px;
  24198. }
  24199. .isWrong {
  24200. display: flex;
  24201. flex-direction: row;
  24202. flex-wrap: nowrap;
  24203. align-content: center;
  24204. align-items: center;
  24205. }
  24206. .answerRight {
  24207. width: 25%;
  24208. }
  24209. .isTj {
  24210. display: flex;
  24211. flex-direction: row;
  24212. flex-wrap: nowrap;
  24213. align-items: center;
  24214. }
  24215. .isTj > div:nth-child(2) {
  24216. color: #727070;
  24217. margin-left: 10px;
  24218. }
  24219. .isTjImg {
  24220. width: 30px;
  24221. height: 30px;
  24222. }
  24223. .isTjImg > img {
  24224. width: 100%;
  24225. height: 100%;
  24226. }
  24227. .cardAnswerBox {
  24228. font-size: 18px;
  24229. width: 97%;
  24230. border: 5px;
  24231. padding: 0;
  24232. border-radius: 5px;
  24233. margin: 10px auto;
  24234. word-break: break-word;
  24235. }
  24236. .w_name {
  24237. margin-bottom: 10px;
  24238. }
  24239. .w_name span {
  24240. font-size: 16px;
  24241. }
  24242. .w_teachert {
  24243. width: 50px !important;
  24244. position: absolute;
  24245. height: auto !important;
  24246. z-index: 10;
  24247. right: 25px;
  24248. top: -25px;
  24249. }
  24250. .group_workBox {
  24251. }
  24252. .group_workBox + .group_workBox {
  24253. margin-top: 20px;
  24254. }
  24255. .group_box {
  24256. padding-bottom: 20px;
  24257. border-bottom: 2px solid #f0f0f0;
  24258. margin-top: 10px;
  24259. }
  24260. .group_title {
  24261. display: flex;
  24262. align-items: center;
  24263. justify-content: space-between;
  24264. width: 95%;
  24265. }
  24266. .group_name {
  24267. background-image: url(../assets/icon/groupN.png);
  24268. width: 220px;
  24269. background-size: 100% 100%;
  24270. height: 67px;
  24271. padding: 0 20px 0 43px;
  24272. box-sizing: border-box;
  24273. line-height: 63px;
  24274. color: #fff;
  24275. overflow: hidden;
  24276. white-space: nowrap;
  24277. text-overflow: ellipsis;
  24278. }
  24279. .group_work {
  24280. width: 100%;
  24281. padding: 0 10px;
  24282. box-sizing: border-box;
  24283. display: flex;
  24284. flex-wrap: wrap;
  24285. }
  24286. .g_d_box {
  24287. display: flex;
  24288. flex-flow: wrap;
  24289. justify-content: space-around;
  24290. }
  24291. .g_d_box .isChair {
  24292. background-image: url(../assets/avatar.png) !important;
  24293. }
  24294. .g_d_group {
  24295. width: 500px;
  24296. margin-bottom: 80px;
  24297. }
  24298. .g_d_group_chair {
  24299. display: flex;
  24300. align-items: center;
  24301. justify-content: center;
  24302. }
  24303. .g_d_group_chair > div + div {
  24304. margin-left: 30px;
  24305. }
  24306. .g_d_group_chair > div,
  24307. .g_d_group_chair2 > div {
  24308. display: flex;
  24309. flex-direction: column;
  24310. align-items: center;
  24311. }
  24312. .g_d_group_chair > div > span:nth-child(1),
  24313. .g_d_group_chair2 > div > span:nth-child(1) {
  24314. background-image: url(../assets/icon/chair.png);
  24315. width: 50px;
  24316. height: 50px;
  24317. display: block;
  24318. background-size: 100% 100%;
  24319. }
  24320. .g_d_group_tableBox {
  24321. display: flex;
  24322. align-items: center;
  24323. justify-content: center;
  24324. }
  24325. .g_d_group_chair2 {
  24326. display: flex;
  24327. flex-direction: column;
  24328. align-items: center;
  24329. justify-content: center;
  24330. }
  24331. .g_d_group_chair2 > div + div {
  24332. margin-top: 10px;
  24333. }
  24334. .g_d_group_table {
  24335. background-image: url(../assets/icon/groupBg.png);
  24336. width: 354px;
  24337. height: 196px;
  24338. background-size: 100% 100%;
  24339. display: flex;
  24340. align-items: center;
  24341. justify-content: center;
  24342. flex-direction: column;
  24343. color: #fff;
  24344. }
  24345. .g_d_group_table > div:nth-child(1) {
  24346. font-size: 24px;
  24347. margin-bottom: 5px;
  24348. }
  24349. .g_d_group_table > div:nth-child(2) div {
  24350. cursor: pointer;
  24351. background: #2e77bf;
  24352. padding: 4px 10px;
  24353. border-radius: 5px;
  24354. }
  24355. .groupBox {
  24356. }
  24357. .groupContent + .groupContent {
  24358. margin-top: 30px;
  24359. }
  24360. .groupTitle {
  24361. font-size: 24px;
  24362. color: rgb(80, 80, 80);
  24363. margin-bottom: 20px;
  24364. }
  24365. .groupName {
  24366. display: flex;
  24367. align-items: center;
  24368. }
  24369. .groupn {
  24370. font-size: 15px;
  24371. margin-right: 10px;
  24372. }
  24373. .groupName + .groupName {
  24374. margin-top: 15px;
  24375. }
  24376. .groupBtn {
  24377. margin-left: 10px;
  24378. }
  24379. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24380. text-align: left;
  24381. }
  24382. .g_d_btnBox {
  24383. display: flex;
  24384. justify-content: flex-end;
  24385. align-items: center;
  24386. margin-bottom: 20px;
  24387. }
  24388. .updateChair {
  24389. position: relative;
  24390. }
  24391. .updateChairBtn {
  24392. position: absolute;
  24393. width: 50px;
  24394. height: 50px;
  24395. overflow: hidden;
  24396. /* display: flex; */
  24397. align-items: center;
  24398. justify-content: center;
  24399. background: #00000087;
  24400. color: #fff;
  24401. border-radius: 50px;
  24402. display: none;
  24403. cursor: pointer;
  24404. }
  24405. .updateChair:hover .updateChairBtn {
  24406. display: flex;
  24407. }
  24408. .group_staic_box {
  24409. display: flex;
  24410. padding: 30px 40px 10px;
  24411. flex-wrap: wrap;
  24412. }
  24413. .group_staic {
  24414. /* width: 50%; */
  24415. margin-bottom: 20px;
  24416. display: flex;
  24417. align-items: center;
  24418. }
  24419. .group_staic span:nth-child(1) {
  24420. width: 150px;
  24421. text-align: right;
  24422. margin-right: 15px;
  24423. }
  24424. .group_staic span:nth-child(2) {
  24425. background: rgb(0 123 255);
  24426. color: #fff;
  24427. border-radius: 5px;
  24428. padding: 5px;
  24429. }
  24430. .codeFileBox {
  24431. height: 300px;
  24432. background: #fff;
  24433. display: flex;
  24434. align-items: center;
  24435. justify-content: center;
  24436. }
  24437. .codeFileBox img {
  24438. width: 200px;
  24439. margin: 0;
  24440. height: auto;
  24441. }
  24442. .codeFileBox div {
  24443. background: rgb(80, 142, 226);
  24444. color: #fff;
  24445. padding: 10px 20px;
  24446. border-radius: 25px;
  24447. cursor: pointer;
  24448. margin-left: 15px;
  24449. }
  24450. .radioBox {
  24451. display: flex;
  24452. flex-direction: column;
  24453. flex-wrap: nowrap;
  24454. align-items: flex-start;
  24455. }
  24456. .radioBox > div {
  24457. margin: 10px 0 0 10px;
  24458. }
  24459. /* .radioBox >>> .el-radio__input,
  24460. .radioBox >>> .el-checkbox__inner {
  24461. margin-left: 10px;
  24462. } */
  24463. .radioBox >>> .el-radio__label,
  24464. .radioBox >>> .el-checkbox__label {
  24465. display: flex;
  24466. align-items: center;
  24467. width: 100%;
  24468. }
  24469. .radioBox >>> .el-radio__label > span {
  24470. width: 100%;
  24471. display: -webkit-box;
  24472. overflow: hidden;
  24473. white-space: normal !important;
  24474. text-overflow: ellipsis;
  24475. word-wrap: break-word;
  24476. }
  24477. .inImg {
  24478. width: 100px;
  24479. cursor: pointer;
  24480. }
  24481. .inImg > img {
  24482. width: 100%;
  24483. height: 100%;
  24484. object-fit: cover;
  24485. }
  24486. .timuImgBox {
  24487. margin: 10px 0;
  24488. display: flex;
  24489. flex-direction: column;
  24490. flex-wrap: wrap;
  24491. align-items: flex-start;
  24492. }
  24493. .timuImg {
  24494. width: 150px;
  24495. margin: 5px 0;
  24496. cursor: pointer;
  24497. }
  24498. .timuImg > img {
  24499. width: 100%;
  24500. height: 100%;
  24501. object-fit: cover;
  24502. }
  24503. .worksTop {
  24504. display: flex;
  24505. flex-direction: row;
  24506. align-items: flex-end;
  24507. }
  24508. .worksTitle{
  24509. display: flex;
  24510. flex-direction: row;
  24511. flex-wrap: nowrap;
  24512. align-items: center;
  24513. }
  24514. .worksTitle::before,.worksTop::before{
  24515. content: '';
  24516. display: block;
  24517. width: 3px;
  24518. height: 20px;
  24519. background: #0061FF;
  24520. border-radius: 3px;
  24521. margin: 0 5px 0 0;
  24522. }
  24523. .corOpen {
  24524. margin: 0 0 0 10px;
  24525. font-size: 14px;
  24526. cursor: pointer;
  24527. color: #505050;
  24528. }
  24529. .corOpen:hover {
  24530. color: #499eef;
  24531. }
  24532. .navCorOpenBox {
  24533. display: flex;
  24534. flex-direction: row;
  24535. align-items: center;
  24536. justify-content: space-between;
  24537. height: 55px;
  24538. background: #ffffff;
  24539. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24540. border-radius: 8px 8px 0px 0px;
  24541. z-index: 9;
  24542. position: relative;
  24543. }
  24544. .navCorOpen {
  24545. padding-right: 15px;
  24546. cursor: pointer;
  24547. width: 45px;
  24548. display: flex;
  24549. }
  24550. .navCorOpen > img {
  24551. width: 100%;
  24552. height: 100%;
  24553. }
  24554. .mlImg {
  24555. width: 40px !important;
  24556. min-width: 40px;
  24557. cursor: pointer;
  24558. transform: rotate(180deg);
  24559. }
  24560. .mlImg > img {
  24561. width: 100%;
  24562. height: 100%;
  24563. }
  24564. .navLeftCss {
  24565. width: 100% !important;
  24566. left: 0 !important;
  24567. }
  24568. .isContentCss {
  24569. width: 100% !important;
  24570. }
  24571. .isAllWidth {
  24572. width: 100% !important;
  24573. }
  24574. .group_switch {
  24575. margin-right: 10px;
  24576. height: 30px;
  24577. display: flex;
  24578. align-items: center;
  24579. }
  24580. .group_switch > span {
  24581. margin-right: 5px;
  24582. }
  24583. .fileC_box {
  24584. padding-top: 15px;
  24585. }
  24586. .fileC_box > .fileC_title {
  24587. padding: 10px 5px 14px 10px;
  24588. border-top: 1px solid #cad1dc;
  24589. font-size: 14px;
  24590. font-weight: 400;
  24591. color: #cad1dc;
  24592. width: calc(100% - 20px);
  24593. margin: 0 auto;
  24594. box-sizing: border-box;
  24595. }
  24596. .pl_select_box {
  24597. height: 40px;
  24598. line-height: 40px;
  24599. width: 100%;
  24600. cursor: pointer;
  24601. padding: 0 20px;
  24602. box-sizing: border-box;
  24603. border-radius: 5px;
  24604. border: 1px solid #d6d6d6;
  24605. white-space: nowrap;
  24606. overflow: hidden;
  24607. text-overflow: ellipsis;
  24608. background: #fff;
  24609. text-align: left;
  24610. }
  24611. .newButton {
  24612. width: 102px;
  24613. height: 36px;
  24614. background: #e7ebf1;
  24615. border-radius: 4px;
  24616. color: #0e1e33;
  24617. font-weight: 400;
  24618. font-size: 14px;
  24619. border: none;
  24620. float: right;
  24621. margin-left: 10px;
  24622. }
  24623. .el-table >>> .even_row {
  24624. background-color: #f0f4fa;
  24625. }
  24626. .stageBoxCss,
  24627. .stageBoxIsCss {
  24628. display: flex;
  24629. flex-direction: row;
  24630. flex-wrap: nowrap;
  24631. align-items: center;
  24632. height: 50px;
  24633. border-bottom: 1px solid #e2f5fc;
  24634. cursor: pointer;
  24635. width: 100%;
  24636. }
  24637. .stageBoxIsCss {
  24638. background: #0061ff;
  24639. color: #fff;
  24640. border-radius: 8px;
  24641. }
  24642. .stageItemTitle {
  24643. display: flex;
  24644. flex-direction: row;
  24645. flex-wrap: nowrap;
  24646. align-items: center;
  24647. margin-left: 15px;
  24648. width: calc(100% - 50px);
  24649. }
  24650. .stageNav{
  24651. /* font-weight: bold; */
  24652. }
  24653. .stageItemTitle > div:first-child {
  24654. min-width: 55px;
  24655. }
  24656. .stageItemTitle > div:last-child {
  24657. max-width: 242px;
  24658. white-space: nowrap;
  24659. overflow: hidden;
  24660. text-overflow: ellipsis;
  24661. word-break: break-word;
  24662. width: calc(100% - 55px);
  24663. }
  24664. .closeTri,
  24665. .closeTri1 {
  24666. min-width: 15px;
  24667. width: 15px;
  24668. height: 15px;
  24669. transition: all .5s;
  24670. }
  24671. .closeTri1 {
  24672. padding-left: 10px;
  24673. cursor: pointer;
  24674. }
  24675. .closeTri > img,
  24676. .closeTri1 > img {
  24677. width: 100%;
  24678. height: 100%;
  24679. /* transition: all .5s; */
  24680. }
  24681. .noToolBlue {
  24682. min-width: 10px;
  24683. width: 10px;
  24684. height: 10px;
  24685. background: #0061ff;
  24686. border-radius: 50%;
  24687. margin-left: 13px;
  24688. }
  24689. .stageChild,
  24690. .toolChild {
  24691. height: 0;
  24692. overflow: hidden;
  24693. transition: all 0.5s;
  24694. }
  24695. .toolChild {
  24696. /* margin: 0 0 0 17px;
  24697. padding: 0 0 0 20px;
  24698. border-left: 1px solid #d7d7d7; */
  24699. }
  24700. .toolChild > div + div{
  24701. margin-top:5px;
  24702. }
  24703. .gjCss {
  24704. display: flex;
  24705. flex-direction: row;
  24706. flex-wrap: nowrap;
  24707. align-items: center;
  24708. padding: 10px 0 10px 40px;
  24709. box-sizing: border-box;
  24710. font-size: 14px;
  24711. cursor: pointer;
  24712. border-radius:5px;
  24713. }
  24714. .toolChild > div {
  24715. position: relative;
  24716. width:100%;
  24717. }
  24718. .toolChild > div::before {
  24719. /* content: "";
  24720. width: 15px;
  24721. height: 1px;
  24722. background: #cad1dc;
  24723. position: absolute;
  24724. top: 24px;
  24725. left: -20px;
  24726. display: block; */
  24727. }
  24728. .isGjCss {
  24729. /* color: #0061ff; */
  24730. color:#fff;
  24731. background: rgb(55, 129, 252);
  24732. /* background-color: #e0eafb !important;
  24733. color: #0061ff !important; */
  24734. }
  24735. .navItem {
  24736. background: #ffffff;
  24737. border-radius: 4px;
  24738. width: 100%;
  24739. margin: 10px auto;
  24740. position: relative;
  24741. height: 40px;
  24742. display: flex;
  24743. flex-direction: row;
  24744. flex-wrap: nowrap;
  24745. align-items: center;
  24746. }
  24747. .navItemList {
  24748. display: flex;
  24749. flex-direction: row;
  24750. flex-wrap: nowrap;
  24751. align-items: center;
  24752. padding: 0 13px;
  24753. cursor: pointer;
  24754. width: calc(100% - 60px);
  24755. height: 100%;
  24756. }
  24757. .navItemList > div:first-child {
  24758. /* min-width: 60px; */
  24759. min-width:fit-content;
  24760. }
  24761. .navItemList > div:last-child {
  24762. width: calc(100% - 80px);
  24763. white-space: nowrap;
  24764. overflow: hidden;
  24765. text-overflow: ellipsis;
  24766. word-break: break-word;
  24767. }
  24768. /* .isItemList > div {
  24769. color: #fff !important;
  24770. } */
  24771. .tool_work_box {
  24772. width: 100%;
  24773. padding: 0 37px 0;
  24774. box-sizing: border-box;
  24775. }
  24776. .tool_box {
  24777. width: 100%;
  24778. padding: 0 0 0 20px;
  24779. }
  24780. .tool_type_box {
  24781. display: flex;
  24782. flex-direction: row;
  24783. align-items: baseline;
  24784. flex-wrap: nowrap;
  24785. justify-content: flex-start;
  24786. position: relative;
  24787. }
  24788. .toolSort {
  24789. display: flex;
  24790. flex-direction: row;
  24791. flex-wrap: wrap;
  24792. justify-content: flex-start;
  24793. align-items: flex-start;
  24794. padding: 0 0 15px 0;
  24795. }
  24796. .toolSort > div {
  24797. margin: 0 10px 0 0;
  24798. width: 135px;
  24799. box-sizing: border-box;
  24800. border: 2px solid transparent;
  24801. }
  24802. .tools {
  24803. width: 100%;
  24804. display: flex;
  24805. flex-direction: column;
  24806. flex-wrap: nowrap;
  24807. align-items: flex-start;
  24808. }
  24809. .whiteBIcon {
  24810. width: fit-content;
  24811. cursor: pointer;
  24812. display: flex;
  24813. flex-direction: column;
  24814. flex-wrap: nowrap;
  24815. align-items: center;
  24816. font-size: 14px;
  24817. }
  24818. .tool:hover {
  24819. border: 2px solid #a5c7ff;
  24820. border-radius: 5px;
  24821. }
  24822. .whiteBIcon > img {
  24823. width: 65px;
  24824. height: 100%;
  24825. }
  24826. .whiteBIcon > img {
  24827. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24828. border-radius: 15px;
  24829. }
  24830. .check {
  24831. /* width: 20px;
  24832. height: 20px; */
  24833. cursor: pointer;
  24834. margin: 10px 0;
  24835. position: absolute;
  24836. right: 2px;
  24837. top: -5px;
  24838. }
  24839. .noChoose,
  24840. .isChoose {
  24841. width: 15px;
  24842. height: 15px;
  24843. border-radius: 50%;
  24844. border: 1px solid #adadad;
  24845. }
  24846. .isChoose {
  24847. border: 4px solid #0363ff !important;
  24848. width: 10px;
  24849. height: 10px;
  24850. }
  24851. .isToolChoose {
  24852. border: 2px solid #5394ff !important;
  24853. border-radius: 5px;
  24854. box-shadow: 0 0 6px 0px #5394ff;
  24855. }
  24856. .checkDiv {
  24857. display: flex;
  24858. align-items: center;
  24859. }
  24860. .checkDiv span {
  24861. margin-left: 5px;
  24862. color: #858585;
  24863. }
  24864. .check img {
  24865. width: 20px;
  24866. height: 20px;
  24867. }
  24868. .lockTaskIcon {
  24869. width: 20px;
  24870. height: 20px;
  24871. position: absolute;
  24872. right: 10px;
  24873. top: 5px;
  24874. }
  24875. .lockTaskIcon > img {
  24876. width: 100%;
  24877. height: 100%;
  24878. }
  24879. .pick_box {
  24880. display: flex;
  24881. align-items: flex-start;
  24882. flex-wrap: wrap;
  24883. }
  24884. .selectBox {
  24885. width: 110px;
  24886. margin-left: 10px;
  24887. margin: 0 10px 0 auto;
  24888. }
  24889. .selectBox >>> .el-input__inner {
  24890. height: 30px;
  24891. line-height: 30px;
  24892. }
  24893. .selectBox >>> .el-input__icon {
  24894. line-height: 30px;
  24895. }
  24896. .sentenceTitle {
  24897. display: flex;
  24898. flex-direction: row;
  24899. flex-wrap: nowrap;
  24900. align-items: center;
  24901. }
  24902. .sentenceTitle::before {
  24903. content: attr(index);
  24904. background: #3681fc;
  24905. border-radius: 50%;
  24906. color: #fff;
  24907. width: 25px;
  24908. height: 25px;
  24909. min-width: 25px;
  24910. min-height: 25px;
  24911. text-align: center;
  24912. line-height: 25px;
  24913. margin-right: 5px;
  24914. }
  24915. .hfBox {
  24916. padding: 10px;
  24917. box-sizing: border-box;
  24918. }
  24919. .whoReplyWho {
  24920. display: flex;
  24921. flex-direction: row;
  24922. flex-wrap: nowrap;
  24923. align-items: baseline;
  24924. justify-content: flex-start;
  24925. }
  24926. .hfBottom {
  24927. display: flex;
  24928. flex-direction: row;
  24929. flex-wrap: nowrap;
  24930. align-items: center;
  24931. justify-content: space-between;
  24932. font-size: 14px;
  24933. }
  24934. .deleteHfItem {
  24935. cursor: pointer;
  24936. width: 20px;
  24937. height: 20px;
  24938. }
  24939. .deleteHfItem > img {
  24940. width: 100%;
  24941. height: 100%;
  24942. }
  24943. .whoReplyWho > .hfImg {
  24944. width: 12px;
  24945. height: 12px;
  24946. margin: 0 5px;
  24947. }
  24948. .whoReplyWho > .hfImg > img {
  24949. width: 100%;
  24950. height: 100%;
  24951. }
  24952. .hfContent {
  24953. padding-top: 10px;
  24954. box-sizing: border-box;
  24955. display: -webkit-box;
  24956. overflow: hidden;
  24957. white-space: normal !important;
  24958. text-overflow: ellipsis;
  24959. word-wrap: break-word;
  24960. -webkit-box-orient: vertical;
  24961. }
  24962. .hfTime {
  24963. text-align: left;
  24964. box-sizing: border-box;
  24965. padding: 10px 0 10px 0px;
  24966. color: #bfbfbf;
  24967. font-size: 14px;
  24968. }
  24969. .btnAllNT {
  24970. position: fixed;
  24971. bottom: 100px;
  24972. right: 40px;
  24973. z-index: 999;
  24974. display: flex;
  24975. flex-direction: row;
  24976. }
  24977. .btnAllNT > img {
  24978. cursor: pointer;
  24979. width: 80px;
  24980. }
  24981. .toolMask {
  24982. position: fixed;
  24983. width: 100%;
  24984. height: 100%;
  24985. background: #3f3c3c;
  24986. opacity: 0.5;
  24987. top: 0;
  24988. left: 0;
  24989. z-index: 999;
  24990. }
  24991. .addToolCss {
  24992. position: fixed;
  24993. z-index: 999;
  24994. background: #fff;
  24995. right: 5%;
  24996. bottom: 18%;
  24997. min-width: 1035px;
  24998. min-height: 300px;
  24999. border-radius: 10px;
  25000. box-shadow: 0 0 8px 1px #b2b2b2;
  25001. }
  25002. .toolTop {
  25003. display: flex;
  25004. flex-direction: row;
  25005. flex-wrap: nowrap;
  25006. justify-content: space-between;
  25007. align-items: center;
  25008. padding: 20px;
  25009. }
  25010. .toolTop > div:nth-child(2) {
  25011. width: 15px;
  25012. height: 15px;
  25013. padding-right: 10px;
  25014. cursor: pointer;
  25015. }
  25016. .toolTop > div:nth-child(2) > img {
  25017. width: 100%;
  25018. height: 100%;
  25019. }
  25020. .fullStyle>>>.el-dialog__body {
  25021. height: calc(100% - 125px) !important;
  25022. box-sizing: border-box;
  25023. padding: 30px 0 !important;
  25024. background: #fff !important;
  25025. }
  25026. .fullStyle>>>.el-dialog {
  25027. width: 100% !important;
  25028. max-width: 100% !important;
  25029. height: 100% !important;
  25030. margin: 0 !important;
  25031. }
  25032. .fullStyle {
  25033. width: 100% !important;
  25034. max-width: 100% !important;
  25035. height: 100% !important;
  25036. margin: 0 auto !important;
  25037. }
  25038. .fullStyle>>>.el-dialog__footer{
  25039. background: #fff !important;
  25040. }
  25041. .engUpBox {
  25042. width: 100%;
  25043. height: 100%;
  25044. }
  25045. .engTitle,
  25046. .engText {
  25047. display: flex;
  25048. flex-direction: row;
  25049. flex-wrap: nowrap;
  25050. align-items: flex-start;
  25051. padding: 0 20px 20px 20px;
  25052. box-sizing: border-box;
  25053. }
  25054. .engTitle > .div:first-child,
  25055. .engText > div:first-child {
  25056. min-width: 75px;
  25057. }
  25058. .correctBox{
  25059. width: 100%;
  25060. display: flex;
  25061. flex-direction: row;
  25062. flex-wrap: nowrap;
  25063. align-items: flex-start;
  25064. }
  25065. .oldBox{
  25066. width: 50%;
  25067. height: 100%;
  25068. display: flex;
  25069. flex-direction: column;
  25070. flex-wrap: nowrap;
  25071. align-items: center;
  25072. border-top: 1px solid #d9d9d9;
  25073. border-left: 1px solid #d9d9d9;
  25074. border-right: 1px solid #d9d9d9;
  25075. }
  25076. .oldBox>div:first-child{
  25077. width: 100%;
  25078. text-align: center;
  25079. background: #d9d9d9;
  25080. height: 35px;
  25081. line-height: 35px;
  25082. font-weight: bold;
  25083. }
  25084. .oldText{
  25085. width: 100%;
  25086. height: calc(100% - 35px);
  25087. overflow: auto;
  25088. margin: 10px 0;
  25089. display: flex;
  25090. flex-direction: column;
  25091. flex-wrap: nowrap;
  25092. align-content: center;
  25093. align-items: center;
  25094. }
  25095. .detailBox{
  25096. width: 50%;
  25097. padding: 10px;
  25098. background: #f6f6f6;
  25099. border-radius: 5px;
  25100. }
  25101. .oldDetail,.oldDetail1{
  25102. padding-bottom: 30px;
  25103. }
  25104. .oldImg{
  25105. width:30px;
  25106. height: 30px;
  25107. }
  25108. .oldImg>img{
  25109. width: 100%;
  25110. height: 100%;
  25111. }
  25112. .allName{
  25113. min-width: 200px;
  25114. white-space: nowrap;
  25115. overflow: hidden;
  25116. text-overflow: ellipsis;
  25117. word-break: break-word;
  25118. cursor: pointer;
  25119. text-align: center;
  25120. border: 1px solid #bcc2cc;
  25121. box-sizing: border-box;
  25122. }
  25123. .engUpTop{
  25124. max-height: 300px;
  25125. overflow: auto;
  25126. }
  25127. .isUpdateToolDetailClass{
  25128. padding: 0 !important;
  25129. }
  25130. .isUpdateToolDetailClass textarea{
  25131. padding:12px;
  25132. font-size: 16px;
  25133. min-height:100%;
  25134. width: 100%;
  25135. box-sizing:border-box;
  25136. outline: none;
  25137. border:none;
  25138. line-height: 30px;
  25139. resize: none;
  25140. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25141. color: #838383;
  25142. }
  25143. .show_taskD {
  25144. min-width: fit-content;
  25145. margin-left: 10px;
  25146. display: flex;
  25147. align-items: center;
  25148. font-size: 14px;
  25149. cursor: pointer;
  25150. color: #717c8d;
  25151. }
  25152. .show_taskD > img {
  25153. width: 15px;
  25154. margin-right: 5px;
  25155. transition: 0.2s all;
  25156. transform: rotate(-90deg);
  25157. }
  25158. .show_taskD.show > img {
  25159. transform: rotate(0deg);
  25160. }
  25161. .correctCss{
  25162. position: absolute;
  25163. bottom: -70px;
  25164. background: #409eff;
  25165. color: #fff;
  25166. }
  25167. .dialog_diyCopy >>> .el-dialog__header {
  25168. display: none !important;
  25169. }
  25170. .dialog_diyCopy >>> .el-dialog__body {
  25171. padding: 0 !important;
  25172. height: 100% !important;
  25173. }
  25174. .confirmOpenDigCss > div{
  25175. font-size: 14px;
  25176. color: rgba(0, 0, 0, 0.6);
  25177. }
  25178. .confirmOpenDigCss >>> .el-dialog{
  25179. border-radius: 6px;
  25180. }
  25181. .confirmOpenDigCss >>> .el-dialog__body{
  25182. padding: 25px !important;
  25183. }
  25184. .confirmOpenDigCss > span{
  25185. font-size: 16px;
  25186. font-weight: 600;
  25187. color: rgba(0, 0, 0, 0.8);
  25188. }
  25189. div::-webkit-scrollbar {
  25190. width: 10px;
  25191. height: 6px;
  25192. }
  25193. .Ovh{
  25194. margin: 5px 0;
  25195. width: 4em;
  25196. -webkit-line-clamp: 2;
  25197. display: -webkit-box;
  25198. -webkit-box-orient: vertical;
  25199. overflow: hidden;
  25200. text-overflow: ellipsis;
  25201. }
  25202. </style>