studyStudent.vue 819 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT" v-if="false">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. </div>
  963. <div v-if="tooC == 8">
  964. <img
  965. src="../assets/icon/secondToolList/library.png"
  966. alt
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. />
  969. <div style="margin: 5px 0">素材库</div>
  970. </div>
  971. <div v-if="tooC == 17">
  972. <img
  973. src="../assets/icon/secondToolList/library.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">学习资料</div>
  978. </div>
  979. <div v-if="tooC == 2">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/secondToolList/note.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">便签</div>
  986. </div>
  987. <div v-if="tooC == 4">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/ask.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">问卷调查</div>
  994. </div>
  995. <div v-if="tooC == 45">
  996. <img
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. src="../assets/icon/thirdToolList/choose.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">选择题</div>
  1002. </div>
  1003. <!-- <div v-if="tooC == 5">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/thirdToolList/score.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">量规评分</div>
  1010. </div> -->
  1011. <div v-if="tooC == 10">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/thirdToolList/time.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">倒计时</div>
  1018. </div>
  1019. <div v-if="tooC == 15">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/thirdToolList/answer.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">问答</div>
  1026. </div>
  1027. <div v-if="tooC == 26">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/courseDesign.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">课程设计</div>
  1034. </div>
  1035. <div v-if="tooC == 18">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../assets/icon/thirdToolList/trainPlatform.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">训练服务器</div>
  1042. </div>
  1043. <div v-if="tooC == 16">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/work.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">作业提交</div>
  1050. </div>
  1051. <div v-if="tooC == 50">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/plwork.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">批量上传</div>
  1058. </div>
  1059. <div v-if="tooC == 21">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/fourthToolList/program.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">AIoT Blockly</div>
  1066. </div>
  1067. <!-- <div v-if="tooC == 22">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/fourthToolList/program.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">AI体验</div>
  1074. </div> -->
  1075. <div v-if="tooC == 23">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AI Python</div>
  1082. </div>
  1083. <div v-if="tooC == 24">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/AIprogram.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI Blockly</div>
  1090. </div>
  1091. <div v-if="tooC == 25">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/thirdToolList/evalua.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">目标管理</div>
  1098. </div>
  1099. <div v-if="tooC == 31">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/secondToolList/networkPanel.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">数学画板</div>
  1106. </div>
  1107. <div v-if="tooC == 28">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/secondToolList/translation.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">翻译</div>
  1114. </div>
  1115. <div v-if="tooC == 37">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/mohe.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">魔盒识字</div>
  1122. </div>
  1123. <div v-if="tooC == 38">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/24game.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">24点</div>
  1130. </div>
  1131. <div v-if="tooC == 39">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/GeoGebra.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">GeoGebra</div>
  1138. </div>
  1139. <div v-if="tooC == 32">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/thirdToolList/code.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">源码编辑</div>
  1146. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1147. style="position: absolute;left: 110px;bottom: 30px;">
  1148. 上传文件
  1149. <input type="file" accept="*" style="display: none"
  1150. @change="beforeUpload1($event, 7, toolIndex)" />
  1151. </div> -->
  1152. </div>
  1153. <div v-if="tooC == 40">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../assets/icon/secondToolList/eval.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">个人评价</div>
  1160. </div>
  1161. <div v-if="tooC == 41">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../assets/icon/thirdToolList/select.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">选择匹配</div>
  1168. </div>
  1169. <div v-if="tooC == 44">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/thirdToolList/hanClass.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">汉字宫</div>
  1176. </div>
  1177. <div v-if="tooC == 47">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/fourthToolList/conSentences.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">排序</div>
  1184. </div>
  1185. <div v-if="tooC == 48">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/fourthToolList/table.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">表格</div>
  1192. </div>
  1193. <div v-if="tooC == 52">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/text.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">文档</div>
  1200. </div>
  1201. <div v-if="tooC == 49">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/group.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">学生分组</div>
  1208. </div>
  1209. <div v-if="tooC == 57">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/fourthToolList/cocopi.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">CocoPi</div>
  1216. </div>
  1217. <div v-if="tooC == 58">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/fourthToolList/car.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">模拟驾驶</div>
  1224. </div>
  1225. <div v-if="tooC == 59">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/lineSearch.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">路径搜索</div>
  1232. </div>
  1233. <div v-if="tooC == 60">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../assets/icon/fourthToolList/deepLearning.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">深度学习</div>
  1240. </div>
  1241. <div v-if="tooC == 61">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../assets/icon/fourthToolList/allHistory.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">全历史</div>
  1248. </div>
  1249. <div v-if="tooC == 62">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../assets/icon/fourthToolList/interVideo.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">交互视频</div>
  1256. </div>
  1257. <div v-if="tooC == 63">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../assets/icon/fourthToolList/Wood.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">海龟编程</div>
  1264. </div>
  1265. <div v-if="tooC == 71">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../assets/icon/fourthToolList/chatgpt.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">AI智能体</div>
  1272. </div>
  1273. <div v-if="tooC == 65">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/firstToolList/pickPeople.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">挑人</div>
  1280. </div>
  1281. <div v-if="tooC == 66">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../assets/icon/secondToolList/formulaEdi.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">公式编辑</div>
  1288. </div>
  1289. <div v-if="tooC == 67">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../assets/icon/secondToolList/molStr.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">分子结构</div>
  1296. </div>
  1297. <div v-if="tooC == 68">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/secondToolList/timeAxis.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">时间轴</div>
  1304. </div>
  1305. <div v-if="tooC == 69">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/secondToolList/english.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">英语写作</div>
  1312. </div>
  1313. <div v-if="tooC == 70">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../assets/icon/thirdToolList/englishVoice.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">英语口语</div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1325. <!-- <div class="toolTitle">工具描述</div> -->
  1326. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1327. <div style="height:100%;"
  1328. v-html="contentConvent(tool.toolDetail)"
  1329. v-if="toolDetailIndex != toolIndex"
  1330. ></div>
  1331. <div v-else @click.stop="" style="height:100%;">
  1332. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1333. </div>
  1334. </div>
  1335. <el-button
  1336. type="primary"
  1337. v-if="tool.tool[0] == 32"
  1338. style="position: absolute; right: 30px; top: -45px"
  1339. @click="addImg($event)"
  1340. >上传作业<input
  1341. type="file"
  1342. accept="*"
  1343. style="display: none"
  1344. @change="beforeUpload1($event, 7, toolIndex)"
  1345. /></el-button>
  1346. <el-button
  1347. type="primary"
  1348. v-if="tool.tool[0] == 15"
  1349. style="position: absolute; right: 30px; top: -45px"
  1350. @click="openWordCloud(toolIndex)"
  1351. >生成词云</el-button
  1352. >
  1353. <el-button
  1354. type="primary"
  1355. v-if="
  1356. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1357. "
  1358. style="position: absolute; right: 30px; top: -45px"
  1359. @click="uploadWorks(toolIndex)"
  1360. >导出作业</el-button
  1361. >
  1362. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1363. position: absolute;
  1364. right: 30px;
  1365. transform: translateY(-130%);
  1366. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1367. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1368. </div>
  1369. <div
  1370. v-if="
  1371. tType &&
  1372. tType == 2 &&
  1373. !sIsOpen &&
  1374. tool.tool.indexOf(16) != -1
  1375. "
  1376. class="worksBox"
  1377. >
  1378. <div
  1379. class="zuoyeYulan"
  1380. v-if="workStudent[toolIndex].length > 0"
  1381. >
  1382. <span class="worksTitle">作业预览</span>
  1383. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1384. </div>
  1385. <div
  1386. class="worksDetailBox"
  1387. v-if="workStudent[toolIndex].length > 0"
  1388. >
  1389. <div
  1390. class="works"
  1391. style="
  1392. width: 200px;
  1393. height: 140px;
  1394. margin: 10px 10px 10px 0;
  1395. box-shadow: 0 0 6px 1px #dfdada;
  1396. "
  1397. v-for="(w, wIndex) in workStudent[toolIndex]"
  1398. :key="wIndex"
  1399. >
  1400. <div class="workImg" v-if="w.type == 0">
  1401. <img
  1402. :src="w.works"
  1403. @click="previewImg(w.works,w)"
  1404. alt
  1405. />
  1406. <div
  1407. class="answerScore"
  1408. v-if="w.score"
  1409. @click.stop="openScore(w)"
  1410. :class="{
  1411. rightW:
  1412. w.userid == userid || tType == 1 || tType == 4,
  1413. }"
  1414. >
  1415. {{ JSON.parse(w.score).wScore }}分
  1416. </div>
  1417. <div
  1418. class="answerScore"
  1419. @click.stop="openScore(w)"
  1420. v-else-if="courseDetail.userid == userid"
  1421. :class="{
  1422. rightW:
  1423. w.userid == userid || tType == 1 || tType == 4,
  1424. }"
  1425. >
  1426. 评分
  1427. </div>
  1428. <img
  1429. class="deleteImg"
  1430. src="../assets/deleteworks.png"
  1431. v-if="
  1432. w.userid == userid || tType == 1 || tType == 4
  1433. "
  1434. @click.stop="deleteWorks(w.wid)"
  1435. alt
  1436. />
  1437. </div>
  1438. <div class="workImg" v-if="w.type == 1">
  1439. <img :src="word" @click="openFile(w.works,w)" alt />
  1440. <div
  1441. class="answerScore"
  1442. v-if="w.score"
  1443. @click.stop="openScore(w)"
  1444. :class="{
  1445. rightW:
  1446. w.userid == userid || tType == 1 || tType == 4,
  1447. }"
  1448. >
  1449. {{ JSON.parse(w.score).wScore }}分
  1450. </div>
  1451. <div
  1452. class="answerScore"
  1453. @click.stop="openScore(w)"
  1454. v-else-if="courseDetail.userid == userid"
  1455. :class="{
  1456. rightW:
  1457. w.userid == userid || tType == 1 || tType == 4,
  1458. }"
  1459. >
  1460. 评分
  1461. </div>
  1462. <img
  1463. class="deleteImg"
  1464. src="../assets/deleteworks.png"
  1465. v-if="
  1466. w.userid == userid || tType == 1 || tType == 4
  1467. "
  1468. @click.stop="deleteWorks(w.wid)"
  1469. alt
  1470. />
  1471. </div>
  1472. <div class="workImg" v-if="w.type == 3">
  1473. <img
  1474. style="cursor: pointer"
  1475. :src="video"
  1476. @click="openVideo(w)"
  1477. alt
  1478. />
  1479. <div
  1480. class="answerScore"
  1481. v-if="w.score"
  1482. @click.stop="openScore(w)"
  1483. :class="{
  1484. rightW:
  1485. w.userid == userid || tType == 1 || tType == 4,
  1486. }"
  1487. >
  1488. {{ JSON.parse(w.score).wScore }}分
  1489. </div>
  1490. <div
  1491. class="answerScore"
  1492. @click.stop="openScore(w)"
  1493. v-else-if="courseDetail.userid == userid"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid || tType == 1 || tType == 4,
  1497. }"
  1498. >
  1499. 评分
  1500. </div>
  1501. <img
  1502. class="deleteImg"
  1503. src="../assets/deleteworks.png"
  1504. v-if="
  1505. w.userid == userid || tType == 1 || tType == 4
  1506. "
  1507. @click.stop="deleteWorks(w.wid)"
  1508. alt
  1509. />
  1510. </div>
  1511. <div class="workImg" v-if="w.type == 12">
  1512. <img
  1513. style="cursor: pointer"
  1514. :src="word2"
  1515. @click="downloadFile(w.works)"
  1516. alt
  1517. />
  1518. <div
  1519. class="answerScore"
  1520. v-if="w.score"
  1521. @click.stop="openScore(w)"
  1522. :class="{
  1523. rightW:
  1524. w.userid == userid || tType == 1 || tType == 4,
  1525. }"
  1526. >
  1527. {{ JSON.parse(w.score).wScore }}分
  1528. </div>
  1529. <div
  1530. class="answerScore"
  1531. @click.stop="openScore(w)"
  1532. v-else-if="courseDetail.userid == userid"
  1533. :class="{
  1534. rightW:
  1535. w.userid == userid || tType == 1 || tType == 4,
  1536. }"
  1537. >
  1538. 评分
  1539. </div>
  1540. <img
  1541. class="deleteImg"
  1542. src="../assets/deleteworks.png"
  1543. v-if="
  1544. w.userid == userid || tType == 1 || tType == 4
  1545. "
  1546. @click.stop="deleteWorks(w.wid)"
  1547. alt
  1548. />
  1549. </div>
  1550. <div class="worksName">
  1551. <div>{{ w.sName }}</div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <div
  1557. v-if="
  1558. tType &&
  1559. tType == 2 &&
  1560. !sIsOpen &&
  1561. tool.tool.indexOf(32) != -1
  1562. "
  1563. class="worksBox"
  1564. >
  1565. <div
  1566. class="zuoyeYulan"
  1567. v-if="workStudent[toolIndex].length > 0"
  1568. >
  1569. <span class="worksTitle">作业预览</span>
  1570. </div>
  1571. <div
  1572. class="worksDetailBox"
  1573. v-if="workStudent[toolIndex].length > 0"
  1574. >
  1575. <div
  1576. class="works"
  1577. style="
  1578. width: 200px;
  1579. height: 140px;
  1580. margin: 10px 10px 10px 0;
  1581. box-shadow: 0 0 6px 1px #dfdada;
  1582. "
  1583. v-for="(w, wIndex) in workStudent[toolIndex]"
  1584. :key="wIndex"
  1585. >
  1586. <div class="workImg">
  1587. <img
  1588. :src="word2"
  1589. @click="downloadFile(w.works)"
  1590. alt
  1591. />
  1592. <div
  1593. class="answerScore"
  1594. v-if="w.score"
  1595. @click.stop="openScore(w)"
  1596. :class="{
  1597. rightW:
  1598. w.userid == userid || tType == 1 || tType == 4,
  1599. }"
  1600. >
  1601. {{ JSON.parse(w.score).wScore }}分
  1602. </div>
  1603. <div
  1604. class="answerScore"
  1605. @click.stop="openScore(w)"
  1606. v-else-if="courseDetail.userid == userid"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid || tType == 1 || tType == 4,
  1610. }"
  1611. >
  1612. 评分
  1613. </div>
  1614. <img
  1615. class="deleteImg"
  1616. src="../assets/deleteworks.png"
  1617. v-if="
  1618. w.userid == userid || tType == 1 || tType == 4
  1619. "
  1620. @click.stop="deleteWorks(w.wid)"
  1621. alt
  1622. />
  1623. </div>
  1624. <div class="worksName">
  1625. <div>{{ w.sName }}</div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div
  1631. v-if="
  1632. tType &&
  1633. tType == 2 &&
  1634. !sIsOpen &&
  1635. tool.tool.indexOf(57) != -1
  1636. "
  1637. class="worksBox"
  1638. >
  1639. <div
  1640. class="zuoyeYulan"
  1641. v-if="workStudent[toolIndex].length > 0"
  1642. >
  1643. <span class="worksTitle">作业预览</span>
  1644. </div>
  1645. <div
  1646. class="worksDetailBox"
  1647. v-if="workStudent[toolIndex].length > 0"
  1648. >
  1649. <div
  1650. class="works"
  1651. style="
  1652. width: 200px;
  1653. height: 140px;
  1654. margin: 10px 10px 10px 0;
  1655. box-shadow: 0 0 6px 1px #dfdada;
  1656. "
  1657. v-for="(w, wIndex) in workStudent[toolIndex]"
  1658. :key="wIndex"
  1659. >
  1660. <div class="workImg">
  1661. <img
  1662. :src="word2"
  1663. @click="downloadFile(w.works)"
  1664. v-if="w.type == 12"
  1665. alt
  1666. />
  1667. <img
  1668. :src="word2"
  1669. @click="
  1670. openCocoPi(57, toolIndex, w.userid, w.sName)
  1671. "
  1672. v-else-if="w.type == 15"
  1673. alt
  1674. />
  1675. <div
  1676. class="answerScore"
  1677. v-if="w.score"
  1678. @click.stop="openScore(w)"
  1679. :class="{
  1680. rightW:
  1681. w.userid == userid || tType == 1 || tType == 4,
  1682. }"
  1683. >
  1684. {{ JSON.parse(w.score).wScore }}分
  1685. </div>
  1686. <div
  1687. class="answerScore"
  1688. @click.stop="openScore(w)"
  1689. v-else-if="courseDetail.userid == userid"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. 评分
  1696. </div>
  1697. <img
  1698. class="deleteImg"
  1699. src="../assets/deleteworks.png"
  1700. v-if="
  1701. w.userid == userid || tType == 1 || tType == 4
  1702. "
  1703. @click.stop="deleteWorks(w.wid)"
  1704. alt
  1705. />
  1706. </div>
  1707. <div class="worksName">
  1708. <div>{{ w.sName }}</div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. <div
  1714. v-if="
  1715. tType &&
  1716. tType == 2 &&
  1717. !sIsOpen &&
  1718. tool.tool.indexOf(4) != -1
  1719. "
  1720. class="worksBox"
  1721. >
  1722. <div
  1723. class="zuoyeYulan"
  1724. v-if="workStudent[toolIndex].length > 0"
  1725. >
  1726. <span class="worksTitle">作业预览</span>
  1727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1728. </div>
  1729. <div
  1730. class="worksDetailBox"
  1731. v-if="workStudent[toolIndex].length > 0"
  1732. >
  1733. <div
  1734. class="isWorksName2"
  1735. v-for="(w, wIndex) in workStudent[toolIndex]"
  1736. :key="wIndex"
  1737. @click="
  1738. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1739. "
  1740. >
  1741. {{ w.sName }}
  1742. <img
  1743. class="deleteImg deleteImg2"
  1744. src="../assets/deleteworks.png"
  1745. v-if="w.userid == userid || tType == 1 || tType == 4"
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <!-- <div
  1751. class="works"
  1752. style="
  1753. width: 200px;
  1754. height: 140px;
  1755. border-radius: 10px;
  1756. box-shadow: 0 0 6px 1px #dfdada;
  1757. overflow: hidden;
  1758. "
  1759. v-for="(w, wIndex) in workStudent[toolIndex]"
  1760. :key="wIndex"
  1761. >
  1762. <div class="workImg">
  1763. <img
  1764. src="../assets/icon/works/noImg.png"
  1765. @click="
  1766. openTools(
  1767. 4,
  1768. toolIndex,
  1769. taskCount,
  1770. w.works,
  1771. w.sName
  1772. )
  1773. "
  1774. alt
  1775. />
  1776. </div>
  1777. <div class="worksName">
  1778. <div>{{ w.sName }}</div>
  1779. <div>{{ w.time }}</div>
  1780. </div>
  1781. </div> -->
  1782. </div>
  1783. </div>
  1784. <div
  1785. v-if="
  1786. tType &&
  1787. ((tType == 2 && sIsOpen == true) ||
  1788. tType == 1 ||
  1789. tType == 4) &&
  1790. tool.tool.indexOf(62) != -1
  1791. "
  1792. class="worksBox"
  1793. >
  1794. <div
  1795. class="zuoyeYulan"
  1796. v-if="
  1797. worksStudent.length &&
  1798. worksStudent[toolIndex].length > 0
  1799. "
  1800. >
  1801. <div class="worksTop">
  1802. <div>作业预览</div>
  1803. <div
  1804. class="corOpen"
  1805. @click="contract(toolIndex)"
  1806. v-if="
  1807. (isCloseList[toolIndex].isCloseBoolean) &&
  1808. isCloseList[toolIndex].isClose == 0
  1809. "
  1810. >
  1811. 折叠
  1812. </div>
  1813. <div
  1814. class="corOpen"
  1815. @click="contract(toolIndex)"
  1816. v-if="isCloseList[toolIndex].isClose == 1"
  1817. >
  1818. 展开
  1819. </div>
  1820. </div>
  1821. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1822. </div>
  1823. <div>
  1824. <div
  1825. :id="'tool-' + toolIndex"
  1826. :style="{
  1827. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1828. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1829. }"
  1830. class="worksDetailBox"
  1831. v-if="
  1832. worksStudent.length &&
  1833. worksStudent[toolIndex].length > 0
  1834. "
  1835. >
  1836. <div
  1837. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1838. :key="wIndex"
  1839. class="isWorksName2"
  1840. @click="
  1841. openTools(
  1842. 62,
  1843. toolIndex,
  1844. taskCount,
  1845. w.works,
  1846. w.sName
  1847. )
  1848. "
  1849. >
  1850. {{ w.sName }}
  1851. <img
  1852. class="deleteImg deleteImg2"
  1853. src="../assets/deleteworks.png"
  1854. v-if="
  1855. w.userid == userid || tType == 1 || tType == 4
  1856. "
  1857. @click.stop="deleteWorks(w.wid)"
  1858. alt
  1859. />
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1864. 未提交
  1865. </div>
  1866. <div
  1867. class="noWorksS"
  1868. v-if="noWorksS && noWorksS[toolIndex].length"
  1869. >
  1870. <div
  1871. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1872. :key="sIndex"
  1873. class="noWorksName"
  1874. >
  1875. <el-tooltip effect="dark" :content="s.student" placement="top">
  1876. <span>{{ s.student }}</span>
  1877. </el-tooltip>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. <div
  1882. v-if="
  1883. tType &&
  1884. tType == 2 &&
  1885. !sIsOpen &&
  1886. tool.tool.indexOf(62) != -1
  1887. "
  1888. class="worksBox"
  1889. >
  1890. <div
  1891. class="zuoyeYulan"
  1892. v-if="workStudent[toolIndex].length > 0"
  1893. >
  1894. <span class="worksTitle">作业预览</span>
  1895. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1896. </div>
  1897. <div
  1898. class="worksDetailBox"
  1899. v-if="workStudent[toolIndex].length > 0"
  1900. >
  1901. <div
  1902. class="isWorksName2"
  1903. v-for="(w, wIndex) in workStudent[toolIndex]"
  1904. :key="wIndex"
  1905. @click="
  1906. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1907. "
  1908. >
  1909. {{ w.sName }}
  1910. <img
  1911. class="deleteImg deleteImg2"
  1912. src="../assets/deleteworks.png"
  1913. v-if="w.userid == userid || tType == 1 || tType == 4"
  1914. @click.stop="deleteWorks(w.wid)"
  1915. alt
  1916. />
  1917. </div>
  1918. </div>
  1919. </div>
  1920. <div
  1921. v-if="
  1922. tType &&
  1923. tType == 2 &&
  1924. !sIsOpen &&
  1925. tool.tool.indexOf(45) != -1
  1926. "
  1927. class="worksBox"
  1928. >
  1929. <div
  1930. class="zuoyeYulan"
  1931. v-if="workStudent[toolIndex].length > 0"
  1932. >
  1933. <span class="worksTitle">作业预览</span>
  1934. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1935. </div>
  1936. <div
  1937. class="worksDetailBox"
  1938. v-if="workStudent[toolIndex].length > 0"
  1939. >
  1940. <div
  1941. class="isWorksName2"
  1942. v-for="(w, wIndex) in workStudent[toolIndex]"
  1943. :key="wIndex"
  1944. @click="
  1945. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1946. "
  1947. >
  1948. {{ w.sName }}
  1949. <img
  1950. class="deleteImg deleteImg2"
  1951. src="../assets/deleteworks.png"
  1952. v-if="w.userid == userid || tType == 1 || tType == 4"
  1953. @click.stop="deleteWorks(w.wid)"
  1954. alt
  1955. />
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div
  1960. v-if="
  1961. tType &&
  1962. tType == 2 &&
  1963. !sIsOpen &&
  1964. tool.tool.indexOf(69) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <span class="worksTitle">作业预览</span>
  1973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1974. </div>
  1975. <div
  1976. class="worksDetailBox"
  1977. v-if="workStudent[toolIndex].length > 0"
  1978. >
  1979. <div
  1980. class="isWorksName2"
  1981. v-for="(w, wIndex) in workStudent[toolIndex]"
  1982. :key="wIndex"
  1983. @click="
  1984. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1985. "
  1986. >
  1987. {{ w.sName }}
  1988. <img
  1989. class="deleteImg deleteImg2"
  1990. src="../assets/deleteworks.png"
  1991. v-if="w.userid == userid || tType == 1 || tType == 4"
  1992. @click.stop="deleteWorks(w.wid)"
  1993. alt
  1994. />
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div
  1999. v-if="
  2000. tType &&
  2001. tType == 2 &&
  2002. !sIsOpen &&
  2003. tool.tool.indexOf(15) != -1
  2004. "
  2005. class="worksBox"
  2006. >
  2007. <div
  2008. class="zuoyeYulan"
  2009. v-if="workStudent[toolIndex].length > 0"
  2010. >
  2011. <span class="worksTitle">作业预览</span>
  2012. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2013. </div>
  2014. <div
  2015. class="worksDetailBox"
  2016. v-if="workStudent[toolIndex].length > 0"
  2017. >
  2018. <div
  2019. class="works"
  2020. v-for="(w, wIndex) in workStudent[toolIndex]"
  2021. :key="wIndex"
  2022. >
  2023. <div class="workImg">
  2024. <!-- <img
  2025. src="../assets/icon/works/noImg.png"
  2026. @click="openTools(15, toolIndex, taskCount, w.works)"
  2027. alt=""
  2028. />-->
  2029. <div class="answerBg">
  2030. <!-- <div>{{ w.sName }}</div> -->
  2031. <el-tooltip
  2032. class="item"
  2033. effect="light"
  2034. :content="JSON.parse(w.works)[0].answer"
  2035. placement="top"
  2036. >
  2037. <div class="answerContent">
  2038. {{ JSON.parse(w.works)[0].answer }}
  2039. </div>
  2040. </el-tooltip>
  2041. <div
  2042. class="answerScore"
  2043. v-if="w.score"
  2044. @click.stop="openScore(w)"
  2045. :class="{
  2046. rightW:
  2047. w.userid == userid ||
  2048. tType == 1 ||
  2049. tType == 4,
  2050. }"
  2051. >
  2052. {{ JSON.parse(w.score).wScore }}分
  2053. </div>
  2054. <div
  2055. class="answerScore"
  2056. @click.stop="openScore(w)"
  2057. v-else-if="courseDetail.userid == userid"
  2058. :class="{
  2059. rightW:
  2060. w.userid == userid ||
  2061. tType == 1 ||
  2062. tType == 4,
  2063. }"
  2064. >
  2065. 评分
  2066. </div>
  2067. <img
  2068. class="deleteImg"
  2069. src="../assets/deleteworks.png"
  2070. v-if="
  2071. w.userid == userid || tType == 1 || tType == 4
  2072. "
  2073. @click.stop="deleteWorks(w.wid)"
  2074. alt
  2075. />
  2076. </div>
  2077. <div class="comment">
  2078. <div class="worksName">
  2079. <div>{{ w.sName }}</div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. <div
  2087. v-if="
  2088. tType &&
  2089. tType == 2 &&
  2090. !sIsOpen &&
  2091. tool.tool.indexOf(1) != -1
  2092. "
  2093. class="worksBox"
  2094. >
  2095. <div
  2096. class="zuoyeYulan"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <span class="worksTitle">作业预览</span>
  2100. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2101. </div>
  2102. <div
  2103. class="worksDetailBox"
  2104. v-if="workStudent[toolIndex].length > 0"
  2105. >
  2106. <div
  2107. class="works"
  2108. style="
  2109. width: 200px;
  2110. height: 140px;
  2111. margin: 10px 10px 10px 0;
  2112. box-shadow: 0 0 6px 1px #dfdada;
  2113. "
  2114. v-for="(w, wIndex) in workStudent[toolIndex]"
  2115. :key="wIndex"
  2116. >
  2117. <div class="workImg">
  2118. <img
  2119. :src="w.works"
  2120. @click="previewImg(w.works,w)"
  2121. alt
  2122. />
  2123. <div
  2124. class="answerScore"
  2125. v-if="w.score"
  2126. @click.stop="openScore(w)"
  2127. :class="{
  2128. rightW:
  2129. w.userid == userid || tType == 1 || tType == 4,
  2130. }"
  2131. >
  2132. {{ JSON.parse(w.score).wScore }}分
  2133. </div>
  2134. <div
  2135. class="answerScore"
  2136. @click.stop="openScore(w)"
  2137. v-else-if="courseDetail.userid == userid"
  2138. :class="{
  2139. rightW:
  2140. w.userid == userid || tType == 1 || tType == 4,
  2141. }"
  2142. >
  2143. 评分
  2144. </div>
  2145. <img
  2146. class="deleteImg"
  2147. src="../assets/deleteworks.png"
  2148. v-if="
  2149. w.userid == userid || tType == 1 || tType == 4
  2150. "
  2151. @click.stop="deleteWorks(w.wid)"
  2152. alt
  2153. />
  2154. </div>
  2155. <div class="worksName">
  2156. <div>{{ w.sName }}</div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. </div>
  2161. <div
  2162. v-if="
  2163. tType &&
  2164. tType == 2 &&
  2165. !sIsOpen &&
  2166. tool.tool.indexOf(3) != -1
  2167. "
  2168. class="worksBox"
  2169. >
  2170. <div
  2171. class="zuoyeYulan"
  2172. v-if="workStudent[toolIndex].length > 0"
  2173. >
  2174. <span class="worksTitle">作业预览</span>
  2175. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2176. </div>
  2177. <div
  2178. class="worksDetailBox"
  2179. v-if="workStudent[toolIndex].length > 0"
  2180. >
  2181. <div
  2182. class="works"
  2183. style="
  2184. width: 200px;
  2185. height: 140px;
  2186. margin: 10px 10px 10px 0;
  2187. box-shadow: 0 0 6px 1px #dfdada;
  2188. "
  2189. v-for="(w, wIndex) in workStudent[toolIndex]"
  2190. :key="wIndex"
  2191. >
  2192. <div class="workImg">
  2193. <img
  2194. :src="w.works"
  2195. @click="previewImg(w.works,w)"
  2196. alt
  2197. />
  2198. <div
  2199. class="answerScore"
  2200. v-if="w.score"
  2201. @click.stop="openScore(w)"
  2202. :class="{
  2203. rightW:
  2204. w.userid == userid || tType == 1 || tType == 4,
  2205. }"
  2206. >
  2207. {{ JSON.parse(w.score).wScore }}分
  2208. </div>
  2209. <div
  2210. class="answerScore"
  2211. @click.stop="openScore(w)"
  2212. v-else-if="courseDetail.userid == userid"
  2213. :class="{
  2214. rightW:
  2215. w.userid == userid || tType == 1 || tType == 4,
  2216. }"
  2217. >
  2218. 评分
  2219. </div>
  2220. <img
  2221. class="deleteImg"
  2222. src="../assets/deleteworks.png"
  2223. v-if="
  2224. w.userid == userid || tType == 1 || tType == 4
  2225. "
  2226. @click.stop="deleteWorks(w.wid)"
  2227. alt
  2228. />
  2229. </div>
  2230. <div class="worksName">
  2231. <div>{{ w.sName }}</div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. <div
  2237. v-if="
  2238. tType &&
  2239. tType == 2 &&
  2240. !sIsOpen &&
  2241. tool.tool.indexOf(6) != -1
  2242. "
  2243. class="worksBox"
  2244. >
  2245. <div
  2246. class="zuoyeYulan"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <span class="worksTitle">作业预览</span>
  2250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2251. </div>
  2252. <div
  2253. class="worksDetailBox"
  2254. v-if="workStudent[toolIndex].length > 0"
  2255. >
  2256. <div
  2257. class="works"
  2258. style="
  2259. width: 200px;
  2260. height: 140px;
  2261. margin: 10px 10px 10px 0;
  2262. box-shadow: 0 0 6px 1px #dfdada;
  2263. "
  2264. v-for="(w, wIndex) in workStudent[toolIndex]"
  2265. :key="wIndex"
  2266. >
  2267. <div class="workImg">
  2268. <img
  2269. :src="w.works"
  2270. @click="previewImg(w.works,w)"
  2271. alt
  2272. />
  2273. <div
  2274. class="answerScore"
  2275. v-if="w.score"
  2276. @click.stop="openScore(w)"
  2277. :class="{
  2278. rightW:
  2279. w.userid == userid || tType == 1 || tType == 4,
  2280. }"
  2281. >
  2282. {{ JSON.parse(w.score).wScore }}分
  2283. </div>
  2284. <div
  2285. class="answerScore"
  2286. @click.stop="openScore(w)"
  2287. v-else-if="courseDetail.userid == userid"
  2288. :class="{
  2289. rightW:
  2290. w.userid == userid || tType == 1 || tType == 4,
  2291. }"
  2292. >
  2293. 评分
  2294. </div>
  2295. <img
  2296. class="deleteImg"
  2297. src="../assets/deleteworks.png"
  2298. v-if="
  2299. w.userid == userid || tType == 1 || tType == 4
  2300. "
  2301. @click.stop="deleteWorks(w.wid)"
  2302. alt
  2303. />
  2304. </div>
  2305. <div class="worksName">
  2306. <div>{{ w.sName }}</div>
  2307. </div>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. <div
  2312. v-if="
  2313. tType &&
  2314. tType == 2 &&
  2315. !sIsOpen &&
  2316. tool.tool.indexOf(7) != -1
  2317. "
  2318. class="worksBox"
  2319. >
  2320. <div
  2321. class="zuoyeYulan"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <span class="worksTitle">作业预览</span>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="worksDetailBox"
  2329. v-if="workStudent[toolIndex].length > 0"
  2330. >
  2331. <div
  2332. class="works"
  2333. style="
  2334. width: 200px;
  2335. height: 140px;
  2336. margin: 10px 10px 10px 0;
  2337. box-shadow: 0 0 6px 1px #dfdada;
  2338. "
  2339. v-for="(w, wIndex) in workStudent[toolIndex]"
  2340. :key="wIndex"
  2341. >
  2342. <div class="workImg">
  2343. <img
  2344. :src="w.works"
  2345. @click="previewImg(w.works,w)"
  2346. alt
  2347. />
  2348. <div
  2349. class="answerScore"
  2350. v-if="w.score"
  2351. @click.stop="openScore(w)"
  2352. :class="{
  2353. rightW:
  2354. w.userid == userid || tType == 1 || tType == 4,
  2355. }"
  2356. >
  2357. {{ JSON.parse(w.score).wScore }}分
  2358. </div>
  2359. <div
  2360. class="answerScore"
  2361. @click.stop="openScore(w)"
  2362. v-else-if="courseDetail.userid == userid"
  2363. :class="{
  2364. rightW:
  2365. w.userid == userid || tType == 1 || tType == 4,
  2366. }"
  2367. >
  2368. 评分
  2369. </div>
  2370. <img
  2371. class="deleteImg"
  2372. src="../assets/deleteworks.png"
  2373. v-if="
  2374. w.userid == userid || tType == 1 || tType == 4
  2375. "
  2376. @click.stop="deleteWorks(w.wid)"
  2377. alt
  2378. />
  2379. </div>
  2380. <div class="worksName">
  2381. <div>{{ w.sName }}</div>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div
  2387. v-if="
  2388. tType &&
  2389. tType == 2 &&
  2390. !sIsOpen &&
  2391. tool.tool.indexOf(26) != -1
  2392. "
  2393. class="worksBox"
  2394. >
  2395. <div
  2396. class="zuoyeYulan"
  2397. v-if="workStudent[toolIndex].length > 0"
  2398. >
  2399. <span class="worksTitle">作业预览</span>
  2400. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2401. </div>
  2402. <div
  2403. class="worksDetailBox"
  2404. v-if="workStudent[toolIndex].length > 0"
  2405. >
  2406. <div
  2407. class="works"
  2408. style="
  2409. width: 200px;
  2410. height: 140px;
  2411. margin: 10px 10px 10px 0;
  2412. box-shadow: 0 0 6px 1px #dfdada;
  2413. "
  2414. v-for="(w, wIndex) in workStudent[toolIndex]"
  2415. :key="wIndex"
  2416. >
  2417. <div class="workImg">
  2418. <img
  2419. :src="w.works"
  2420. @click="previewImg(w.works,w)"
  2421. alt
  2422. />
  2423. <img
  2424. class="deleteImg"
  2425. src="../assets/deleteworks.png"
  2426. v-if="
  2427. w.userid == userid || tType == 1 || tType == 4
  2428. "
  2429. @click.stop="deleteWorks(w.wid)"
  2430. alt
  2431. />
  2432. </div>
  2433. <div class="worksName">
  2434. <div>{{ w.sName }}</div>
  2435. </div>
  2436. </div>
  2437. </div>
  2438. </div>
  2439. <div
  2440. v-if="
  2441. tType &&
  2442. ((tType == 2 && sIsOpen == true) ||
  2443. tType == 1 ||
  2444. tType == 4) &&
  2445. tool.tool.indexOf(16) != -1
  2446. "
  2447. class="worksBox"
  2448. >
  2449. <div
  2450. class="zuoyeYulan"
  2451. v-if="
  2452. (worksStudent.length &&
  2453. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2454. "
  2455. >
  2456. <div class="worksTop">
  2457. <div>作业预览</div>
  2458. <div
  2459. class="corOpen"
  2460. @click="contract(toolIndex)"
  2461. v-if="
  2462. (isCloseList[toolIndex].isCloseBoolean) &&
  2463. isCloseList[toolIndex].isClose == 0
  2464. "
  2465. >
  2466. 折叠
  2467. </div>
  2468. <div
  2469. class="corOpen"
  2470. @click="contract(toolIndex)"
  2471. v-if="isCloseList[toolIndex].isClose == 1"
  2472. >
  2473. 展开
  2474. </div>
  2475. </div>
  2476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2477. </div>
  2478. <div
  2479. class="group_workBox"
  2480. v-for="(g, gindex) in courseGroup.group"
  2481. :key="gindex"
  2482. >
  2483. <div class="group_box">
  2484. <div class="group_title">
  2485. <el-tooltip
  2486. class="item"
  2487. effect="light"
  2488. :content="g.name"
  2489. placement="top"
  2490. >
  2491. <div class="group_name">{{ g.name }}</div>
  2492. </el-tooltip>
  2493. </div>
  2494. <div
  2495. class="group_work"
  2496. v-if="
  2497. g.works &&
  2498. g.works.length &&
  2499. g.works[toolIndex].length
  2500. "
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. border-radius: 15px;
  2509. box-shadow: 0 0 6px 1px #dfdada;
  2510. "
  2511. v-for="(w, wIndex) in g.works[toolIndex]"
  2512. :key="wIndex"
  2513. :class="w.type == 1 ? 'isTypeOne' : ''"
  2514. >
  2515. <div class="workImg" v-if="w.type == 0">
  2516. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2517. <img
  2518. :src="w.works"
  2519. @click="previewImg(w.works,w)"
  2520. alt
  2521. />
  2522. <div
  2523. class="answerScore"
  2524. v-if="w.score"
  2525. @click.stop="openScore(w)"
  2526. :class="{
  2527. rightW:
  2528. w.userid == userid ||
  2529. tType == 1 ||
  2530. tType == 4 ||
  2531. w.ateacher == userid,
  2532. }"
  2533. >
  2534. {{ JSON.parse(w.score).wScore }}分
  2535. </div>
  2536. <div
  2537. class="answerScore"
  2538. @click.stop="openScore(w)"
  2539. v-else-if="courseDetail.userid == userid"
  2540. :class="{
  2541. rightW:
  2542. w.userid == userid ||
  2543. tType == 1 ||
  2544. tType == 4 ||
  2545. w.ateacher == userid,
  2546. }"
  2547. >
  2548. 评分
  2549. </div>
  2550. <img
  2551. class="deleteImg"
  2552. src="../assets/deleteworks.png"
  2553. v-if="
  2554. w.userid == userid || tType == 1 || tType == 4
  2555. "
  2556. @click.stop="deleteWorks(w.wid)"
  2557. alt
  2558. />
  2559. </div>
  2560. <div class="workImg" v-if="w.type == 1">
  2561. <img :src="word" @click="openFile(w.works,w)" alt />
  2562. <!-- @click="openFile(w.works)" -->
  2563. <div
  2564. class="answerScore"
  2565. v-if="w.score"
  2566. @click.stop="openScore(w)"
  2567. :class="{
  2568. rightW:
  2569. w.userid == userid ||
  2570. tType == 1 ||
  2571. tType == 4 ||
  2572. w.ateacher == userid,
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid ||
  2584. tType == 1 ||
  2585. tType == 4 ||
  2586. w.ateacher == userid,
  2587. }"
  2588. >
  2589. 评分
  2590. </div>
  2591. <img
  2592. class="deleteImg"
  2593. src="../assets/deleteworks.png"
  2594. v-if="
  2595. w.userid == userid || tType == 1 || tType == 4
  2596. "
  2597. @click.stop="deleteWorks(w.wid)"
  2598. alt
  2599. />
  2600. </div>
  2601. <div class="workImg" v-if="w.type == 3">
  2602. <img
  2603. style="cursor: pointer"
  2604. :src="video"
  2605. @click="openVideo(w)"
  2606. alt
  2607. />
  2608. <!-- @click="openVideo(w.works)" -->
  2609. <div
  2610. class="answerScore"
  2611. v-if="w.score"
  2612. @click.stop="openScore(w)"
  2613. :class="{
  2614. rightW:
  2615. w.userid == userid ||
  2616. tType == 1 ||
  2617. tType == 4 ||
  2618. w.ateacher == userid,
  2619. }"
  2620. >
  2621. {{ JSON.parse(w.score).wScore }}分
  2622. </div>
  2623. <div
  2624. class="answerScore"
  2625. @click.stop="openScore(w)"
  2626. v-else-if="courseDetail.userid == userid"
  2627. :class="{
  2628. rightW:
  2629. w.userid == userid ||
  2630. tType == 1 ||
  2631. tType == 4 ||
  2632. w.ateacher == userid,
  2633. }"
  2634. >
  2635. 评分
  2636. </div>
  2637. <img
  2638. class="deleteImg"
  2639. src="../assets/deleteworks.png"
  2640. v-if="
  2641. w.userid == userid || tType == 1 || tType == 4
  2642. "
  2643. @click.stop="deleteWorks(w.wid)"
  2644. alt
  2645. />
  2646. </div>
  2647. <div class="workImg" v-if="w.type == 12">
  2648. <img
  2649. style="cursor: pointer"
  2650. :src="word2"
  2651. @click="downloadFile(w.works)"
  2652. alt
  2653. />
  2654. <!-- @click="openVideo(w.works)" -->
  2655. <div
  2656. class="answerScore"
  2657. v-if="w.score"
  2658. @click.stop="openScore(w)"
  2659. :class="{
  2660. rightW:
  2661. w.userid == userid ||
  2662. tType == 1 ||
  2663. tType == 4 ||
  2664. w.ateacher == userid,
  2665. }"
  2666. >
  2667. {{ JSON.parse(w.score).wScore }}分
  2668. </div>
  2669. <div
  2670. class="answerScore"
  2671. @click.stop="openScore(w)"
  2672. v-else-if="courseDetail.userid == userid"
  2673. :class="{
  2674. rightW:
  2675. w.userid == userid ||
  2676. tType == 1 ||
  2677. tType == 4 ||
  2678. w.ateacher == userid,
  2679. }"
  2680. >
  2681. 评分
  2682. </div>
  2683. <img
  2684. class="deleteImg"
  2685. src="../assets/deleteworks.png"
  2686. v-if="
  2687. w.userid == userid || tType == 1 || tType == 4
  2688. "
  2689. @click.stop="deleteWorks(w.wid)"
  2690. alt
  2691. />
  2692. </div>
  2693. <div class="comment" style="min-width: 200px">
  2694. <div class="worksName">
  2695. <div>{{ w.sName }}</div>
  2696. </div>
  2697. <div class="commentList">
  2698. <div class="commentList">
  2699. <div
  2700. class="commentImg"
  2701. @click="
  2702. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2703. "
  2704. >
  2705. <img
  2706. :src="w.isLikes == true ? likes : noLikes"
  2707. alt=""
  2708. />
  2709. </div>
  2710. <div>{{ w.likesCount }}</div>
  2711. </div>
  2712. <div
  2713. class="commentList"
  2714. style="margin-right: 15px"
  2715. >
  2716. <div
  2717. class="commentImg"
  2718. @click="
  2719. commentOther(
  2720. w,
  2721. toolIndex,
  2722. wIndex,
  2723. null,
  2724. g.id
  2725. )
  2726. "
  2727. >
  2728. <img
  2729. src="../assets/icon/comment/comment.png"
  2730. alt=""
  2731. />
  2732. </div>
  2733. <div>{{ w.commentCount }}</div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <div class="group_work" v-else>暂无提交作业</div>
  2740. </div>
  2741. </div>
  2742. <div
  2743. :id="'tool-' + toolIndex"
  2744. :style="{
  2745. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2746. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2747. }"
  2748. class="worksDetailBox"
  2749. v-if="
  2750. worksStudent.length &&
  2751. worksStudent[toolIndex].length > 0
  2752. "
  2753. >
  2754. <div
  2755. class="works"
  2756. style="
  2757. width: 200px;
  2758. height: 140px;
  2759. margin: 10px 10px 10px 0;
  2760. border-radius: 15px;
  2761. box-shadow: 0 0 6px 1px #dfdada;
  2762. "
  2763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2764. :key="wIndex"
  2765. :class="w.type == 1 ? 'isTypeOne' : ''"
  2766. >
  2767. <div class="workImg" v-if="w.type == 0">
  2768. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2769. <img
  2770. :src="w.works"
  2771. @click="previewImg(w.works,w)"
  2772. alt
  2773. />
  2774. <div
  2775. class="answerScore"
  2776. v-if="w.score"
  2777. @click.stop="openScore(w)"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid ||
  2781. tType == 1 ||
  2782. tType == 4 ||
  2783. w.ateacher == userid,
  2784. }"
  2785. >
  2786. {{ JSON.parse(w.score).wScore }}分
  2787. </div>
  2788. <div
  2789. class="answerScore"
  2790. @click.stop="openScore(w)"
  2791. v-else-if="courseDetail.userid == userid"
  2792. :class="{
  2793. rightW:
  2794. w.userid == userid ||
  2795. tType == 1 ||
  2796. tType == 4 ||
  2797. w.ateacher == userid,
  2798. }"
  2799. >
  2800. 评分
  2801. </div>
  2802. <img
  2803. class="deleteImg"
  2804. src="../assets/deleteworks.png"
  2805. v-if="
  2806. w.userid == userid || tType == 1 || tType == 4
  2807. "
  2808. @click.stop="deleteWorks(w.wid)"
  2809. alt
  2810. />
  2811. </div>
  2812. <div class="workImg" v-if="w.type == 1">
  2813. <img :src="word" @click="openFile(w.works,w)" alt />
  2814. <!-- @click="openFile(w.works)" -->
  2815. <div
  2816. class="answerScore"
  2817. v-if="w.score"
  2818. @click.stop="openScore(w)"
  2819. :class="{
  2820. rightW:
  2821. w.userid == userid ||
  2822. tType == 1 ||
  2823. tType == 4 ||
  2824. w.ateacher == userid,
  2825. }"
  2826. >
  2827. {{ JSON.parse(w.score).wScore }}分
  2828. </div>
  2829. <div
  2830. class="answerScore"
  2831. @click.stop="openScore(w)"
  2832. v-else-if="courseDetail.userid == userid"
  2833. :class="{
  2834. rightW:
  2835. w.userid == userid ||
  2836. tType == 1 ||
  2837. tType == 4 ||
  2838. w.ateacher == userid,
  2839. }"
  2840. >
  2841. 评分
  2842. </div>
  2843. <img
  2844. class="deleteImg"
  2845. src="../assets/deleteworks.png"
  2846. v-if="
  2847. w.userid == userid || tType == 1 || tType == 4
  2848. "
  2849. @click.stop="deleteWorks(w.wid)"
  2850. alt
  2851. />
  2852. </div>
  2853. <div class="workImg" v-if="w.type == 3">
  2854. <img
  2855. style="cursor: pointer"
  2856. :src="video"
  2857. @click="openVideo(w)"
  2858. alt
  2859. />
  2860. <!-- @click="openVideo(w.works)" -->
  2861. <div
  2862. class="answerScore"
  2863. v-if="w.score"
  2864. @click.stop="openScore(w)"
  2865. :class="{
  2866. rightW:
  2867. w.userid == userid ||
  2868. tType == 1 ||
  2869. tType == 4 ||
  2870. w.ateacher == userid,
  2871. }"
  2872. >
  2873. {{ JSON.parse(w.score).wScore }}分
  2874. </div>
  2875. <div
  2876. class="answerScore"
  2877. @click.stop="openScore(w)"
  2878. v-else-if="courseDetail.userid == userid"
  2879. :class="{
  2880. rightW:
  2881. w.userid == userid ||
  2882. tType == 1 ||
  2883. tType == 4 ||
  2884. w.ateacher == userid,
  2885. }"
  2886. >
  2887. 评分
  2888. </div>
  2889. <img
  2890. class="deleteImg"
  2891. src="../assets/deleteworks.png"
  2892. v-if="
  2893. w.userid == userid || tType == 1 || tType == 4
  2894. "
  2895. @click.stop="deleteWorks(w.wid)"
  2896. alt
  2897. />
  2898. </div>
  2899. <div class="workImg" v-if="w.type == 12">
  2900. <img
  2901. style="cursor: pointer"
  2902. :src="word2"
  2903. @click="downloadFile(w.works)"
  2904. alt
  2905. />
  2906. <!-- @click="openVideo(w.works)" -->
  2907. <div
  2908. class="answerScore"
  2909. v-if="w.score"
  2910. @click.stop="openScore(w)"
  2911. :class="{
  2912. rightW:
  2913. w.userid == userid ||
  2914. tType == 1 ||
  2915. tType == 4 ||
  2916. w.ateacher == userid,
  2917. }"
  2918. >
  2919. {{ JSON.parse(w.score).wScore }}分
  2920. </div>
  2921. <div
  2922. class="answerScore"
  2923. @click.stop="openScore(w)"
  2924. v-else-if="courseDetail.userid == userid"
  2925. :class="{
  2926. rightW:
  2927. w.userid == userid ||
  2928. tType == 1 ||
  2929. tType == 4 ||
  2930. w.ateacher == userid,
  2931. }"
  2932. >
  2933. 评分
  2934. </div>
  2935. <img
  2936. class="deleteImg"
  2937. src="../assets/deleteworks.png"
  2938. v-if="
  2939. w.userid == userid || tType == 1 || tType == 4
  2940. "
  2941. @click.stop="deleteWorks(w.wid)"
  2942. alt
  2943. />
  2944. </div>
  2945. <div class="comment" style="min-width: 200px">
  2946. <div class="worksName">
  2947. <div>{{ w.sName }}</div>
  2948. </div>
  2949. <div class="commentList">
  2950. <div class="commentList">
  2951. <div
  2952. class="commentImg"
  2953. @click="
  2954. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2955. "
  2956. >
  2957. <img
  2958. :src="w.isLikes == true ? likes : noLikes"
  2959. alt=""
  2960. />
  2961. </div>
  2962. <div>{{ w.likesCount }}</div>
  2963. </div>
  2964. <div class="commentList" style="margin-right: 15px">
  2965. <div
  2966. class="commentImg"
  2967. @click="commentOther(w, toolIndex, wIndex)"
  2968. >
  2969. <img
  2970. src="../assets/icon/comment/comment.png"
  2971. alt=""
  2972. />
  2973. </div>
  2974. <div>{{ w.commentCount }}</div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2981. 未提交
  2982. </div>
  2983. <div
  2984. class="noWorksS"
  2985. v-if="noWorksS && noWorksS[toolIndex].length"
  2986. >
  2987. <div
  2988. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2989. :key="sIndex"
  2990. class="noWorksName"
  2991. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2992. >
  2993. <el-tooltip effect="dark" :content="s.student" placement="top">
  2994. <span>{{ s.student }}</span>
  2995. </el-tooltip>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. <div
  3000. v-if="
  3001. tType &&
  3002. ((tType == 2 && sIsOpen == true) ||
  3003. tType == 1 ||
  3004. tType == 4) &&
  3005. tool.tool.indexOf(70) != -1
  3006. "
  3007. class="worksBox"
  3008. >
  3009. <div
  3010. class="zuoyeYulan"
  3011. v-if="
  3012. (worksStudent.length &&
  3013. worksStudent[toolIndex].length > 0)
  3014. "
  3015. >
  3016. <div class="worksTop">
  3017. <div>作业预览</div>
  3018. <div
  3019. class="corOpen"
  3020. @click="contract(toolIndex)"
  3021. v-if="
  3022. (isCloseList[toolIndex].isCloseBoolean) &&
  3023. isCloseList[toolIndex].isClose == 0
  3024. "
  3025. >
  3026. 折叠
  3027. </div>
  3028. <div
  3029. class="corOpen"
  3030. @click="contract(toolIndex)"
  3031. v-if="isCloseList[toolIndex].isClose == 1"
  3032. >
  3033. 展开
  3034. </div>
  3035. </div>
  3036. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3037. </div>
  3038. <div
  3039. :id="'tool-' + toolIndex"
  3040. :style="{
  3041. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3042. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3043. }"
  3044. class="worksDetailBox"
  3045. v-if="
  3046. worksStudent.length &&
  3047. worksStudent[toolIndex].length > 0
  3048. "
  3049. >
  3050. <div
  3051. class="works"
  3052. style="
  3053. width: 200px;
  3054. height: 140px;
  3055. margin: 10px 10px 10px 0;
  3056. border-radius: 15px;
  3057. box-shadow: 0 0 6px 1px #dfdada;
  3058. "
  3059. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3060. :key="wIndex"
  3061. :class="w.type == 1 ? 'isTypeOne' : ''"
  3062. >
  3063. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3064. <img :src="word" alt />
  3065. <img
  3066. class="deleteImg"
  3067. src="../assets/deleteworks.png"
  3068. v-if="
  3069. w.userid == userid || tType == 1 || tType == 4
  3070. "
  3071. @click.stop="deleteWorks(w.wid)"
  3072. alt
  3073. />
  3074. </div>
  3075. <div class="comment" style="min-width: 200px">
  3076. <div class="worksName">
  3077. <div>{{ w.sName }}</div>
  3078. </div>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3083. 未提交
  3084. </div>
  3085. <div
  3086. class="noWorksS"
  3087. v-if="noWorksS && noWorksS[toolIndex].length"
  3088. >
  3089. <div
  3090. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3091. :key="sIndex"
  3092. class="noWorksName"
  3093. >
  3094. <el-tooltip effect="dark" :content="s.student" placement="top">
  3095. <span>{{ s.student }}</span>
  3096. </el-tooltip>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. <div
  3101. v-if="
  3102. tType &&
  3103. tType == 2 &&
  3104. !sIsOpen &&
  3105. tool.tool.indexOf(70) != -1
  3106. "
  3107. class="worksBox"
  3108. >
  3109. <div
  3110. class="zuoyeYulan"
  3111. v-if="workStudent[toolIndex].length > 0"
  3112. >
  3113. <span class="worksTitle">作业预览</span>
  3114. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3115. </div>
  3116. <div
  3117. class="worksDetailBox"
  3118. v-if="workStudent[toolIndex].length > 0"
  3119. >
  3120. <div
  3121. class="works"
  3122. style="
  3123. width: 200px;
  3124. height: 140px;
  3125. margin: 10px 10px 10px 0;
  3126. box-shadow: 0 0 6px 1px #dfdada;
  3127. "
  3128. v-for="(w, wIndex) in workStudent[toolIndex]"
  3129. :key="wIndex"
  3130. >
  3131. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3132. <img :src="word" alt />
  3133. <img
  3134. class="deleteImg"
  3135. src="../assets/deleteworks.png"
  3136. v-if="
  3137. w.userid == userid || tType == 1 || tType == 4
  3138. "
  3139. @click.stop="deleteWorks(w.wid)"
  3140. alt
  3141. />
  3142. </div>
  3143. <div class="worksName">
  3144. <div>{{ w.sName }}</div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. <div
  3150. v-if="
  3151. tType &&
  3152. ((tType == 2 && sIsOpen == true) ||
  3153. tType == 1 ||
  3154. tType == 4) &&
  3155. tool.tool.indexOf(32) != -1
  3156. "
  3157. class="worksBox"
  3158. >
  3159. <div
  3160. class="zuoyeYulan"
  3161. v-if="
  3162. worksStudent.length &&
  3163. worksStudent[toolIndex].length > 0
  3164. "
  3165. >
  3166. <div class="worksTop">
  3167. <div>作业预览</div>
  3168. <div
  3169. class="corOpen"
  3170. @click="contract(toolIndex)"
  3171. v-if="
  3172. (isCloseList[toolIndex].isCloseBoolean) &&
  3173. isCloseList[toolIndex].isClose == 0
  3174. "
  3175. >
  3176. 折叠
  3177. </div>
  3178. <div
  3179. class="corOpen"
  3180. @click="contract(toolIndex)"
  3181. v-if="isCloseList[toolIndex].isClose == 1"
  3182. >
  3183. 展开
  3184. </div>
  3185. </div>
  3186. </div>
  3187. <div
  3188. :id="'tool-' + toolIndex"
  3189. class="worksDetailBox"
  3190. :style="{
  3191. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3192. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3193. }"
  3194. v-if="
  3195. worksStudent.length &&
  3196. worksStudent[toolIndex].length > 0
  3197. "
  3198. >
  3199. <div
  3200. class="works"
  3201. style="
  3202. width: 200px;
  3203. height: 140px;
  3204. margin: 10px 10px 10px 0;
  3205. border-radius: 15px;
  3206. box-shadow: 0 0 6px 1px #dfdada;
  3207. "
  3208. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3209. :key="wIndex"
  3210. :class="w.type == 1 ? 'isTypeOne' : ''"
  3211. >
  3212. <div class="workImg">
  3213. <img
  3214. :src="word2"
  3215. @click="downloadFile(w.works)"
  3216. alt
  3217. />
  3218. <div
  3219. class="answerScore"
  3220. v-if="w.score"
  3221. @click.stop="openScore(w)"
  3222. :class="{
  3223. rightW:
  3224. w.userid == userid ||
  3225. tType == 1 ||
  3226. tType == 4 ||
  3227. w.ateacher == userid,
  3228. }"
  3229. >
  3230. {{ JSON.parse(w.score).wScore }}分
  3231. </div>
  3232. <div
  3233. class="answerScore"
  3234. @click.stop="openScore(w)"
  3235. v-else-if="courseDetail.userid == userid"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. 评分
  3245. </div>
  3246. <img
  3247. class="deleteImg"
  3248. src="../assets/deleteworks.png"
  3249. v-if="
  3250. w.userid == userid || tType == 1 || tType == 4
  3251. "
  3252. @click.stop="deleteWorks(w.wid)"
  3253. alt
  3254. />
  3255. </div>
  3256. <div class="comment" style="min-width: 200px">
  3257. <div class="worksName">
  3258. <div>{{ w.sName }}</div>
  3259. </div>
  3260. <div class="commentList">
  3261. <div class="commentList">
  3262. <div
  3263. class="commentImg"
  3264. @click="
  3265. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3266. "
  3267. >
  3268. <img
  3269. :src="w.isLikes == true ? likes : noLikes"
  3270. alt=""
  3271. />
  3272. </div>
  3273. <div>{{ w.likesCount }}</div>
  3274. </div>
  3275. <div class="commentList" style="margin-right: 15px">
  3276. <div
  3277. class="commentImg"
  3278. @click="commentOther(w, toolIndex, wIndex)"
  3279. >
  3280. <img
  3281. src="../assets/icon/comment/comment.png"
  3282. alt=""
  3283. />
  3284. </div>
  3285. <div>{{ w.commentCount }}</div>
  3286. </div>
  3287. </div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3292. 未提交
  3293. </div>
  3294. <div
  3295. class="noWorksS"
  3296. v-if="noWorksS && noWorksS[toolIndex].length"
  3297. >
  3298. <div
  3299. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3300. :key="sIndex"
  3301. class="noWorksName"
  3302. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3303. >
  3304. <el-tooltip effect="dark" :content="s.student" placement="top">
  3305. <span>{{ s.student }}</span>
  3306. </el-tooltip>
  3307. </div>
  3308. </div>
  3309. </div>
  3310. <div
  3311. v-if="
  3312. tType &&
  3313. ((tType == 2 && sIsOpen == true) ||
  3314. tType == 1 ||
  3315. tType == 4) &&
  3316. tool.tool.indexOf(57) != -1
  3317. "
  3318. class="worksBox"
  3319. >
  3320. <div
  3321. class="zuoyeYulan"
  3322. v-if="
  3323. worksStudent.length &&
  3324. worksStudent[toolIndex].length > 0
  3325. "
  3326. >
  3327. <div class="worksTop">
  3328. <div>作业预览</div>
  3329. <div
  3330. class="corOpen"
  3331. @click="contract(toolIndex)"
  3332. v-if="
  3333. (isCloseList[toolIndex].isCloseBoolean) &&
  3334. isCloseList[toolIndex].isClose == 0
  3335. "
  3336. >
  3337. 折叠
  3338. </div>
  3339. <div
  3340. class="corOpen"
  3341. @click="contract(toolIndex)"
  3342. v-if="isCloseList[toolIndex].isClose == 1"
  3343. >
  3344. 展开
  3345. </div>
  3346. </div>
  3347. </div>
  3348. <div
  3349. :id="'tool-' + toolIndex"
  3350. class="worksDetailBox"
  3351. :style="{
  3352. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3353. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3354. }"
  3355. v-if="
  3356. worksStudent.length &&
  3357. worksStudent[toolIndex].length > 0
  3358. "
  3359. >
  3360. <div
  3361. class="works"
  3362. style="
  3363. width: 200px;
  3364. height: 140px;
  3365. margin: 10px 10px 10px 0;
  3366. border-radius: 15px;
  3367. box-shadow: 0 0 6px 1px #dfdada;
  3368. "
  3369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3370. :key="wIndex"
  3371. :class="w.type == 1 ? 'isTypeOne' : ''"
  3372. >
  3373. <div class="workImg">
  3374. <img
  3375. :src="word2"
  3376. @click="downloadFile(w.works)"
  3377. v-if="w.type == 12"
  3378. alt
  3379. />
  3380. <img
  3381. :src="word2"
  3382. @click="
  3383. openCocoPi(57, toolIndex, w.userid, w.sName)
  3384. "
  3385. v-else-if="w.type == 15"
  3386. alt
  3387. />
  3388. <div
  3389. class="answerScore"
  3390. v-if="w.score"
  3391. @click.stop="openScore(w)"
  3392. :class="{
  3393. rightW:
  3394. w.userid == userid ||
  3395. tType == 1 ||
  3396. tType == 4 ||
  3397. w.ateacher == userid,
  3398. }"
  3399. >
  3400. {{ JSON.parse(w.score).wScore }}分
  3401. </div>
  3402. <div
  3403. class="answerScore"
  3404. @click.stop="openScore(w)"
  3405. v-else-if="courseDetail.userid == userid"
  3406. :class="{
  3407. rightW:
  3408. w.userid == userid ||
  3409. tType == 1 ||
  3410. tType == 4 ||
  3411. w.ateacher == userid,
  3412. }"
  3413. >
  3414. 评分
  3415. </div>
  3416. <img
  3417. class="deleteImg"
  3418. src="../assets/deleteworks.png"
  3419. v-if="
  3420. w.userid == userid || tType == 1 || tType == 4
  3421. "
  3422. @click.stop="deleteWorks(w.wid)"
  3423. alt
  3424. />
  3425. </div>
  3426. <div class="comment" style="min-width: 200px">
  3427. <div class="worksName">
  3428. <div>{{ w.sName }}</div>
  3429. </div>
  3430. <div class="commentList">
  3431. <div class="commentList">
  3432. <div
  3433. class="commentImg"
  3434. @click="
  3435. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3436. "
  3437. >
  3438. <img
  3439. :src="w.isLikes == true ? likes : noLikes"
  3440. alt=""
  3441. />
  3442. </div>
  3443. <div>{{ w.likesCount }}</div>
  3444. </div>
  3445. <div class="commentList" style="margin-right: 15px">
  3446. <div
  3447. class="commentImg"
  3448. @click="commentOther(w, toolIndex, wIndex)"
  3449. >
  3450. <img
  3451. src="../assets/icon/comment/comment.png"
  3452. alt=""
  3453. />
  3454. </div>
  3455. <div>{{ w.commentCount }}</div>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3462. 未提交
  3463. </div>
  3464. <div
  3465. class="noWorksS"
  3466. v-if="noWorksS && noWorksS[toolIndex].length"
  3467. >
  3468. <div
  3469. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3470. :key="sIndex"
  3471. class="noWorksName"
  3472. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3473. >
  3474. <el-tooltip effect="dark" :content="s.student" placement="top">
  3475. <span>{{ s.student }}</span>
  3476. </el-tooltip>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3481. <div
  3482. class="zuoyeYulan"
  3483. v-if="
  3484. worksStudent.length &&
  3485. worksStudent[toolIndex].length > 0
  3486. "
  3487. >
  3488. <span class="worksTitle">作业预览</span>
  3489. <div
  3490. class="corOpen"
  3491. @click="contract(toolIndex)"
  3492. v-if="
  3493. (isCloseList[toolIndex].isCloseBoolean) &&
  3494. isCloseList[toolIndex].isClose == 0
  3495. "
  3496. >
  3497. 折叠
  3498. </div>
  3499. <div
  3500. class="corOpen"
  3501. @click="contract(toolIndex)"
  3502. v-if="isCloseList[toolIndex].isClose == 1"
  3503. >
  3504. 展开
  3505. </div>
  3506. </div>
  3507. <div
  3508. :id="'tool-' + toolIndex"
  3509. :style="{
  3510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3512. }"
  3513. class="worksDetailBox"
  3514. v-if="
  3515. worksStudent.length &&
  3516. worksStudent[toolIndex].length > 0
  3517. "
  3518. >
  3519. <div
  3520. class="works"
  3521. style="
  3522. width: 200px;
  3523. height: 140px;
  3524. margin: 10px 10px 10px 0;
  3525. border-radius: 15px;
  3526. box-shadow: 0 0 6px 1px #dfdada;
  3527. "
  3528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3529. :key="wIndex"
  3530. :class="w.type == 1 ? 'isTypeOne' : ''"
  3531. >
  3532. <div class="workImg" v-if="w.type == 0">
  3533. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3534. <img
  3535. :src="w.works"
  3536. @click="previewImg(w.works,w)"
  3537. alt
  3538. />
  3539. <div
  3540. class="answerScore"
  3541. v-if="w.score"
  3542. @click.stop="openScore(w)"
  3543. :class="{
  3544. rightW:
  3545. w.userid == userid ||
  3546. tType == 1 ||
  3547. tType == 4 ||
  3548. w.ateacher == userid,
  3549. }"
  3550. >
  3551. {{ JSON.parse(w.score).wScore }}分
  3552. </div>
  3553. <div
  3554. class="answerScore"
  3555. @click.stop="openScore(w)"
  3556. v-else-if="courseDetail.userid == userid"
  3557. :class="{
  3558. rightW:
  3559. w.userid == userid ||
  3560. tType == 1 ||
  3561. tType == 4 ||
  3562. w.ateacher == userid,
  3563. }"
  3564. >
  3565. 评分
  3566. </div>
  3567. <img
  3568. class="deleteImg"
  3569. src="../assets/deleteworks.png"
  3570. v-if="
  3571. w.userid == userid || tType == 1 || tType == 4
  3572. "
  3573. @click.stop="deleteWorks(w.wid)"
  3574. alt
  3575. />
  3576. </div>
  3577. <div
  3578. class="workImg"
  3579. style="cursor: pointer"
  3580. v-if="w.type == 1"
  3581. >
  3582. <img :src="word" @click="openFile(w.works,w)" alt />
  3583. <!-- @click="openFile(w.works)" -->
  3584. <div
  3585. class="answerScore"
  3586. v-if="w.score"
  3587. @click.stop="openScore(w)"
  3588. :class="{
  3589. rightW:
  3590. w.userid == userid ||
  3591. tType == 1 ||
  3592. tType == 4 ||
  3593. w.ateacher == userid,
  3594. }"
  3595. >
  3596. {{ JSON.parse(w.score).wScore }}分
  3597. </div>
  3598. <div
  3599. class="answerScore"
  3600. @click.stop="openScore(w)"
  3601. v-else-if="courseDetail.userid == userid"
  3602. :class="{
  3603. rightW:
  3604. w.userid == userid ||
  3605. tType == 1 ||
  3606. tType == 4 ||
  3607. w.ateacher == userid,
  3608. }"
  3609. >
  3610. 评分
  3611. </div>
  3612. <img
  3613. class="deleteImg"
  3614. src="../assets/deleteworks.png"
  3615. v-if="
  3616. w.userid == userid || tType == 1 || tType == 4
  3617. "
  3618. @click.stop="deleteWorks(w.wid)"
  3619. alt
  3620. />
  3621. </div>
  3622. <div class="workImg" v-if="w.type == 3">
  3623. <img
  3624. style="cursor: pointer"
  3625. :src="video"
  3626. @click="openVideo(w)"
  3627. alt
  3628. />
  3629. <!-- @click="openVideo(w.works)" -->
  3630. <div
  3631. class="answerScore"
  3632. v-if="w.score"
  3633. @click.stop="openScore(w)"
  3634. :class="{
  3635. rightW:
  3636. w.userid == userid ||
  3637. tType == 1 ||
  3638. tType == 4 ||
  3639. w.ateacher == userid,
  3640. }"
  3641. >
  3642. {{ JSON.parse(w.score).wScore }}分
  3643. </div>
  3644. <div
  3645. class="answerScore"
  3646. @click.stop="openScore(w)"
  3647. v-else-if="courseDetail.userid == userid"
  3648. :class="{
  3649. rightW:
  3650. w.userid == userid ||
  3651. tType == 1 ||
  3652. tType == 4 ||
  3653. w.ateacher == userid,
  3654. }"
  3655. >
  3656. 评分
  3657. </div>
  3658. <img
  3659. class="deleteImg"
  3660. src="../assets/deleteworks.png"
  3661. v-if="
  3662. w.userid == userid || tType == 1 || tType == 4
  3663. "
  3664. @click.stop="deleteWorks(w.wid)"
  3665. alt
  3666. />
  3667. </div>
  3668. <div class="comment" style="min-width: 200px">
  3669. <div class="worksName">
  3670. <div
  3671. style="cursor: pointer"
  3672. @click="
  3673. openSname(w.sName, w.wid, toolIndex, w.userid)
  3674. "
  3675. >
  3676. {{ w.sName }}
  3677. </div>
  3678. </div>
  3679. <div class="commentList">
  3680. <div class="commentList">
  3681. <div
  3682. class="commentImg"
  3683. @click="
  3684. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3685. "
  3686. >
  3687. <img
  3688. :src="w.isLikes == true ? likes : noLikes"
  3689. alt=""
  3690. />
  3691. </div>
  3692. <div>{{ w.likesCount }}</div>
  3693. </div>
  3694. <div class="commentList" style="margin-right: 15px">
  3695. <div
  3696. class="commentImg"
  3697. @click="commentOther(w, toolIndex, wIndex)"
  3698. >
  3699. <img
  3700. src="../assets/icon/comment/comment.png"
  3701. alt=""
  3702. />
  3703. </div>
  3704. <div>{{ w.commentCount }}</div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3711. 未提交
  3712. </div>
  3713. <div
  3714. class="noWorksS"
  3715. v-if="noWorksS && noWorksS[toolIndex].length"
  3716. >
  3717. <div
  3718. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3719. :key="sIndex"
  3720. class="noWorksName"
  3721. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3722. >
  3723. <el-tooltip effect="dark" :content="s.student" placement="top">
  3724. <span>{{ s.student }}</span>
  3725. </el-tooltip>
  3726. </div>
  3727. </div>
  3728. </div>
  3729. <div
  3730. v-if="
  3731. tType &&
  3732. ((tType == 2 && sIsOpen == true) ||
  3733. tType == 1 ||
  3734. tType == 4) &&
  3735. tool.tool.indexOf(4) != -1 &&
  3736. (tool.askJson[0].answer ||
  3737. tool.askJson[0].answer === 0) &&
  3738. checkJson[toolIndex].length
  3739. "
  3740. class="xuan_right_box"
  3741. >
  3742. <div
  3743. class="tool_right_box"
  3744. v-for="(item, index) in tool.askJson"
  3745. :key="index"
  3746. >
  3747. <div style="width: calc(100% - 30px);">
  3748. <el-tooltip
  3749. effect="light"
  3750. :content="index + 1 + '、' + item.askstitle"
  3751. placement="top"
  3752. popper-class="text_tooltip"
  3753. >
  3754. <div
  3755. style="
  3756. width: calc(100% - 130px);
  3757. display: block;
  3758. white-space: nowrap;
  3759. overflow: hidden;
  3760. text-overflow: ellipsis;
  3761. word-break: break-word;
  3762. cursor: pointer;
  3763. "
  3764. >
  3765. {{ index + 1 + "、" + item.askstitle }}
  3766. </div>
  3767. </el-tooltip>
  3768. </div>
  3769. <div class="right_box_xuan">
  3770. <span>正确率</span>
  3771. <span>{{
  3772. (checkJson[toolIndex][index].right
  3773. ? checkJson[toolIndex][index].right
  3774. : 0) + "%"
  3775. }}</span>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div
  3780. class="xuan_right_box"
  3781. style="background: unset; padding: 0 10px"
  3782. v-if="
  3783. tType &&
  3784. ((tType == 2 && sIsOpen == true) ||
  3785. tType == 1 ||
  3786. tType == 4) &&
  3787. tool.tool.indexOf(4) != -1
  3788. "
  3789. >
  3790. <AskStatic
  3791. v-if="
  3792. worksStudent.length &&
  3793. worksStudent[toolIndex].length > 0
  3794. "
  3795. :askJSON="tool"
  3796. :checkJson="checkJson[toolIndex]"
  3797. ></AskStatic>
  3798. </div>
  3799. <div
  3800. v-if="
  3801. tType &&
  3802. ((tType == 2 && sIsOpen == true) ||
  3803. tType == 1 ||
  3804. tType == 4) &&
  3805. tool.tool.indexOf(4) != -1
  3806. "
  3807. class="worksBox"
  3808. >
  3809. <div
  3810. class="zuoyeYulan"
  3811. v-if="
  3812. worksStudent.length &&
  3813. worksStudent[toolIndex].length > 0
  3814. "
  3815. >
  3816. <div class="worksTop">
  3817. <div>作业预览</div>
  3818. <div
  3819. class="corOpen"
  3820. @click="contract(toolIndex)"
  3821. v-if="
  3822. (isCloseList[toolIndex].isCloseBoolean) &&
  3823. isCloseList[toolIndex].isClose == 0
  3824. "
  3825. >
  3826. 折叠
  3827. </div>
  3828. <div
  3829. class="corOpen"
  3830. @click="contract(toolIndex)"
  3831. v-if="isCloseList[toolIndex].isClose == 1"
  3832. >
  3833. 展开
  3834. </div>
  3835. </div>
  3836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3837. </div>
  3838. <div>
  3839. <div
  3840. :id="'tool-' + toolIndex"
  3841. :style="{
  3842. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3843. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3844. }"
  3845. class="worksDetailBox"
  3846. v-if="
  3847. worksStudent.length &&
  3848. worksStudent[toolIndex].length > 0
  3849. "
  3850. >
  3851. <div
  3852. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3853. :key="wIndex"
  3854. class="isWorksName2"
  3855. @click="
  3856. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3857. "
  3858. >
  3859. {{ w.sName }}
  3860. <img
  3861. class="deleteImg deleteImg2"
  3862. src="../assets/deleteworks.png"
  3863. v-if="
  3864. w.userid == userid || tType == 1 || tType == 4
  3865. "
  3866. @click.stop="deleteWorks(w.wid)"
  3867. alt
  3868. />
  3869. </div>
  3870. <!-- <div class="works" style="
  3871. width: 200px;
  3872. height: 140px;
  3873. border-radius: 10px;
  3874. box-shadow: 0 0 6px 1px #dfdada;
  3875. overflow: hidden;
  3876. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3877. <div class="workImg">
  3878. <img src="../assets/icon/works/noImg.png" @click="
  3879. openTools(
  3880. 4,
  3881. toolIndex,
  3882. taskCount,
  3883. w.works,
  3884. w.sName
  3885. )
  3886. " alt />
  3887. </div>
  3888. <div class="worksName">
  3889. <div>{{ w.sName }}</div>
  3890. <div>{{ w.time }}</div>
  3891. </div>
  3892. </div> -->
  3893. </div>
  3894. </div>
  3895. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3896. 未提交
  3897. </div>
  3898. <div
  3899. class="noWorksS"
  3900. v-if="noWorksS && noWorksS[toolIndex].length"
  3901. >
  3902. <div
  3903. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3904. :key="sIndex"
  3905. class="noWorksName"
  3906. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3907. >
  3908. <el-tooltip effect="dark" :content="s.student" placement="top">
  3909. <span>{{ s.student }}</span>
  3910. </el-tooltip>
  3911. </div>
  3912. </div>
  3913. </div>
  3914. <div
  3915. v-if="
  3916. tType &&
  3917. ((tType == 2 && sIsOpen == true) ||
  3918. tType == 1 ||
  3919. tType == 4) &&
  3920. tool.tool.indexOf(45) != -1 &&
  3921. (tool.testJson.testJson[0].answer ||
  3922. tool.testJson.testJson[0].answer === 0) &&
  3923. checkJson[toolIndex].length
  3924. "
  3925. class="xuan_right_box"
  3926. >
  3927. <div
  3928. class="tool_right_box"
  3929. v-for="(item, index) in tool.testJson.testJson"
  3930. :key="index"
  3931. >
  3932. <div class="right_box_xuan" style="margin-right: 10px">
  3933. <span>正确率</span>
  3934. <span>{{
  3935. (checkJson[toolIndex][index].right
  3936. ? checkJson[toolIndex][index].right
  3937. : 0) + "%"
  3938. }}</span>
  3939. </div>
  3940. <div style="width: calc(100% - 30px);">
  3941. <el-tooltip
  3942. effect="light"
  3943. :content="index + 1 + '、' + item.teststitle"
  3944. placement="top"
  3945. popper-class="text_tooltip"
  3946. >
  3947. <div
  3948. style="
  3949. width: calc(100% - 130px);
  3950. display: block;
  3951. white-space: nowrap;
  3952. overflow: hidden;
  3953. text-overflow: ellipsis;
  3954. word-break: break-word;
  3955. cursor: pointer;
  3956. "
  3957. >
  3958. {{ index + 1 + "、" + item.teststitle }}
  3959. </div>
  3960. </el-tooltip>
  3961. </div>
  3962. </div>
  3963. </div>
  3964. <div
  3965. class="xuan_right_box"
  3966. style="background: unset; padding: 0 10px; width: 91.5%"
  3967. v-if="
  3968. tType &&
  3969. ((tType == 2 && sIsOpen == true) ||
  3970. tType == 1 ||
  3971. tType == 4) &&
  3972. tool.tool.indexOf(45) != -1
  3973. "
  3974. >
  3975. <AskStatic2
  3976. v-if="
  3977. worksStudent.length &&
  3978. worksStudent[toolIndex].length > 0
  3979. "
  3980. :askJSON="tool"
  3981. :checkJson="checkJson[toolIndex]"
  3982. ></AskStatic2>
  3983. </div>
  3984. <div
  3985. v-if="
  3986. tType &&
  3987. ((tType == 2 && sIsOpen == true) ||
  3988. tType == 1 ||
  3989. tType == 4) &&
  3990. tool.tool.indexOf(45) != -1
  3991. "
  3992. class="worksBox"
  3993. >
  3994. <div
  3995. class="zuoyeYulan"
  3996. v-if="
  3997. worksStudent.length &&
  3998. worksStudent[toolIndex].length > 0
  3999. "
  4000. >
  4001. <div class="worksTop">
  4002. <div>作业预览</div>
  4003. <div
  4004. class="corOpen"
  4005. @click="contract(toolIndex)"
  4006. v-if="
  4007. (isCloseList[toolIndex].isCloseBoolean) &&
  4008. isCloseList[toolIndex].isClose == 0
  4009. "
  4010. >
  4011. 折叠
  4012. </div>
  4013. <div
  4014. class="corOpen"
  4015. @click="contract(toolIndex)"
  4016. v-if="isCloseList[toolIndex].isClose == 1"
  4017. >
  4018. 展开
  4019. </div>
  4020. </div>
  4021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4022. </div>
  4023. <div>
  4024. <div
  4025. :id="'tool-' + toolIndex"
  4026. :style="{
  4027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4029. }"
  4030. class="worksDetailBox"
  4031. v-if="
  4032. worksStudent.length &&
  4033. worksStudent[toolIndex].length > 0
  4034. "
  4035. >
  4036. <div
  4037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4038. :key="wIndex"
  4039. class="isWorksName2"
  4040. @click="
  4041. openTools(
  4042. 45,
  4043. toolIndex,
  4044. taskCount,
  4045. w.works,
  4046. w.sName
  4047. )
  4048. "
  4049. >
  4050. {{ w.sName }}
  4051. <img
  4052. class="deleteImg deleteImg2"
  4053. src="../assets/deleteworks.png"
  4054. v-if="
  4055. w.userid == userid || tType == 1 || tType == 4
  4056. "
  4057. @click.stop="deleteWorks(w.wid)"
  4058. alt
  4059. />
  4060. </div>
  4061. </div>
  4062. </div>
  4063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4064. 未提交
  4065. </div>
  4066. <div
  4067. class="noWorksS"
  4068. v-if="noWorksS && noWorksS[toolIndex].length"
  4069. >
  4070. <div
  4071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4072. :key="sIndex"
  4073. class="noWorksName"
  4074. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4075. >
  4076. <el-tooltip effect="dark" :content="s.student" placement="top">
  4077. <span>{{ s.student }}</span>
  4078. </el-tooltip>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. <div
  4083. v-if="
  4084. tType &&
  4085. ((tType == 2 && sIsOpen == true) ||
  4086. tType == 1 ||
  4087. tType == 4) &&
  4088. tool.tool.indexOf(69) != -1
  4089. "
  4090. class="worksBox"
  4091. >
  4092. <div
  4093. class="zuoyeYulan"
  4094. v-if="
  4095. worksStudent.length &&
  4096. worksStudent[toolIndex].length > 0
  4097. "
  4098. >
  4099. <div class="worksTop">
  4100. <div>作业预览</div>
  4101. <div
  4102. class="corOpen"
  4103. @click="contract(toolIndex)"
  4104. v-if="
  4105. (isCloseList[toolIndex].isCloseBoolean) &&
  4106. isCloseList[toolIndex].isClose == 0
  4107. "
  4108. >
  4109. 折叠
  4110. </div>
  4111. <div
  4112. class="corOpen"
  4113. @click="contract(toolIndex)"
  4114. v-if="isCloseList[toolIndex].isClose == 1"
  4115. >
  4116. 展开
  4117. </div>
  4118. </div>
  4119. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4120. </div>
  4121. <div>
  4122. <div
  4123. :id="'tool-' + toolIndex"
  4124. :style="{
  4125. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4126. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4127. }"
  4128. class="worksDetailBox"
  4129. v-if="
  4130. worksStudent.length &&
  4131. worksStudent[toolIndex].length > 0
  4132. "
  4133. >
  4134. <div
  4135. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4136. :key="wIndex"
  4137. class="isWorksName2"
  4138. style="width: 160px;height: 65px;line-height: 65px;"
  4139. @click="
  4140. openTools(
  4141. 69,
  4142. toolIndex,
  4143. taskCount,
  4144. w.works,
  4145. w.sName,
  4146. w.wid
  4147. )
  4148. "
  4149. >
  4150. {{ w.sName }}
  4151. <img
  4152. class="deleteImg1"
  4153. src="../assets/evaEnglish.png"
  4154. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4155. alt
  4156. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4157. />
  4158. <img
  4159. class="deleteImg deleteImg2"
  4160. src="../assets/deleteworks.png"
  4161. v-if="
  4162. w.userid == userid || tType == 1 || tType == 4
  4163. "
  4164. @click.stop="deleteWorks(w.wid)"
  4165. alt
  4166. />
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4171. 未提交
  4172. </div>
  4173. <div
  4174. class="noWorksS"
  4175. v-if="noWorksS && noWorksS[toolIndex].length"
  4176. >
  4177. <div
  4178. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4179. :key="sIndex"
  4180. class="noWorksName"
  4181. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4182. >
  4183. <el-tooltip effect="dark" :content="s.student" placement="top">
  4184. <span>{{ s.student }}</span>
  4185. </el-tooltip>
  4186. </div>
  4187. </div>
  4188. </div>
  4189. <div
  4190. v-if="
  4191. tType &&
  4192. ((tType == 2 && sIsOpen == true) ||
  4193. tType == 1 ||
  4194. tType == 4) &&
  4195. tool.tool.indexOf(15) != -1
  4196. "
  4197. class="worksBox"
  4198. >
  4199. <div
  4200. class="zuoyeYulan"
  4201. v-if="
  4202. (worksStudent.length &&
  4203. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4204. "
  4205. >
  4206. <div class="worksTop">
  4207. <div>作业预览</div>
  4208. <div
  4209. class="corOpen"
  4210. @click="contract(toolIndex)"
  4211. v-if="
  4212. (isCloseList[toolIndex].isCloseBoolean) &&
  4213. isCloseList[toolIndex].isClose == 0
  4214. "
  4215. >
  4216. 折叠
  4217. </div>
  4218. <div
  4219. class="corOpen"
  4220. @click="contract(toolIndex)"
  4221. v-if="isCloseList[toolIndex].isClose == 1"
  4222. >
  4223. 展开
  4224. </div>
  4225. </div>
  4226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4227. </div>
  4228. <div
  4229. class="group_workBox"
  4230. v-for="(g, gindex) in courseGroup.group"
  4231. :key="gindex"
  4232. >
  4233. <div class="group_box">
  4234. <div class="group_title">
  4235. <el-tooltip
  4236. class="item"
  4237. effect="light"
  4238. :content="g.name"
  4239. placement="top"
  4240. >
  4241. <div class="group_name">{{ g.name }}</div>
  4242. </el-tooltip>
  4243. </div>
  4244. <div
  4245. class="group_work"
  4246. v-if="
  4247. g.works &&
  4248. g.works.length &&
  4249. g.works[toolIndex].length
  4250. "
  4251. >
  4252. <div
  4253. class="works"
  4254. v-for="(w, wIndex) in g.works[toolIndex]"
  4255. :key="wIndex"
  4256. >
  4257. <div
  4258. class="workImg"
  4259. style="
  4260. border-radius: 15px;
  4261. box-shadow: 0px 0px 5px 5px #eee;
  4262. "
  4263. >
  4264. <div
  4265. class="answerBg"
  4266. style="border-radius: 15px 15px 0 0"
  4267. @click="
  4268. commentOther(w, toolIndex, wIndex, null, g.id)
  4269. "
  4270. >
  4271. <div class="answerContent">
  4272. {{ JSON.parse(w.works)[0].answer }}
  4273. </div>
  4274. <div
  4275. class="answerScore"
  4276. v-if="w.score"
  4277. @click.stop="openScore(w)"
  4278. :class="{
  4279. rightW:
  4280. w.userid == userid ||
  4281. tType == 1 ||
  4282. tType == 4,
  4283. }"
  4284. >
  4285. {{ JSON.parse(w.score).wScore }}分
  4286. </div>
  4287. <div
  4288. class="answerScore"
  4289. @click.stop="openScore(w)"
  4290. v-else-if="courseDetail.userid == userid"
  4291. :class="{
  4292. rightW:
  4293. w.userid == userid ||
  4294. tType == 1 ||
  4295. tType == 4,
  4296. }"
  4297. >
  4298. 评分
  4299. </div>
  4300. <img
  4301. class="deleteImg"
  4302. src="../assets/deleteworks.png"
  4303. v-if="
  4304. w.userid == userid ||
  4305. tType == 1 ||
  4306. tType == 4
  4307. "
  4308. @click.stop="deleteWorks(w.wid)"
  4309. alt
  4310. />
  4311. </div>
  4312. <div class="comment">
  4313. <div class="worksName">
  4314. <div>{{ w.sName }}</div>
  4315. </div>
  4316. <div class="commentList">
  4317. <div
  4318. class="commentImg"
  4319. @click="
  4320. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4321. "
  4322. >
  4323. <img
  4324. :src="w.isLikes == true ? likes : noLikes"
  4325. alt=""
  4326. />
  4327. </div>
  4328. <div>{{ w.likesCount }}</div>
  4329. </div>
  4330. <div
  4331. class="commentList"
  4332. style="margin-right: 15px"
  4333. >
  4334. <div
  4335. class="commentImg"
  4336. @click="
  4337. commentOther(
  4338. w,
  4339. toolIndex,
  4340. wIndex,
  4341. null,
  4342. g.id
  4343. )
  4344. "
  4345. >
  4346. <img
  4347. src="../assets/icon/comment/comment.png"
  4348. alt=""
  4349. />
  4350. </div>
  4351. <div>{{ w.commentCount }}</div>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. <div class="group_work" v-else>暂无提交作业</div>
  4358. </div>
  4359. </div>
  4360. <div
  4361. :id="'tool-' + toolIndex"
  4362. :style="{
  4363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4365. }"
  4366. class="worksDetailBox"
  4367. v-if="
  4368. worksStudent.length &&
  4369. worksStudent[toolIndex].length > 0
  4370. "
  4371. >
  4372. <div
  4373. class="works"
  4374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4375. :key="wIndex"
  4376. >
  4377. <div
  4378. class="workImg"
  4379. style="
  4380. border-radius: 15px;
  4381. box-shadow: 0px 0px 5px 5px #eee;
  4382. "
  4383. >
  4384. <!-- <img
  4385. src="../assets/icon/works/noImg.png"
  4386. @click="openTools(15, toolIndex, taskCount, w.works)"
  4387. alt=""
  4388. />-->
  4389. <div
  4390. class="answerBg"
  4391. style="border-radius: 15px 15px 0 0"
  4392. @click="commentOther(w, toolIndex, wIndex)"
  4393. >
  4394. <!-- <div>{{ w.sName }}</div> -->
  4395. <div class="answerContent">
  4396. {{ JSON.parse(w.works)[0].answer }}
  4397. </div>
  4398. <div
  4399. class="answerScore"
  4400. v-if="w.score"
  4401. @click.stop="openScore(w)"
  4402. :class="{
  4403. rightW:
  4404. w.userid == userid ||
  4405. tType == 1 ||
  4406. tType == 4,
  4407. }"
  4408. >
  4409. {{ JSON.parse(w.score).wScore }}分
  4410. </div>
  4411. <div
  4412. class="answerScore"
  4413. @click.stop="openScore(w)"
  4414. v-else-if="courseDetail.userid == userid"
  4415. :class="{
  4416. rightW:
  4417. w.userid == userid ||
  4418. tType == 1 ||
  4419. tType == 4,
  4420. }"
  4421. >
  4422. 评分
  4423. </div>
  4424. <img
  4425. class="deleteImg"
  4426. src="../assets/deleteworks.png"
  4427. v-if="
  4428. w.userid == userid || tType == 1 || tType == 4
  4429. "
  4430. @click.stop="deleteWorks(w.wid)"
  4431. alt
  4432. />
  4433. </div>
  4434. <div class="comment">
  4435. <div class="worksName">
  4436. <div>{{ w.sName }}</div>
  4437. </div>
  4438. <div class="commentList">
  4439. <div
  4440. class="commentImg"
  4441. @click="
  4442. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4443. "
  4444. >
  4445. <img
  4446. :src="w.isLikes == true ? likes : noLikes"
  4447. alt=""
  4448. />
  4449. </div>
  4450. <div>{{ w.likesCount }}</div>
  4451. </div>
  4452. <div class="commentList" style="margin-right: 15px">
  4453. <div
  4454. class="commentImg"
  4455. @click="commentOther(w, toolIndex, wIndex)"
  4456. >
  4457. <img
  4458. src="../assets/icon/comment/comment.png"
  4459. alt=""
  4460. />
  4461. </div>
  4462. <div>{{ w.commentCount }}</div>
  4463. </div>
  4464. </div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4469. 未提交
  4470. </div>
  4471. <div
  4472. class="noWorksS"
  4473. v-if="noWorksS && noWorksS[toolIndex].length"
  4474. >
  4475. <div
  4476. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4477. :key="sIndex"
  4478. class="noWorksName"
  4479. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4480. >
  4481. <el-tooltip effect="dark" :content="s.student" placement="top">
  4482. <span>{{ s.student }}</span>
  4483. </el-tooltip>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. <div
  4488. v-if="
  4489. tType &&
  4490. ((tType == 2 && sIsOpen == true) ||
  4491. tType == 1 ||
  4492. tType == 4) &&
  4493. tool.tool.indexOf(1) != -1
  4494. "
  4495. class="worksBox"
  4496. >
  4497. <div
  4498. class="zuoyeYulan"
  4499. v-if="
  4500. (worksStudent.length &&
  4501. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4502. "
  4503. >
  4504. <div class="worksTop">
  4505. <div>作业预览</div>
  4506. <div
  4507. class="corOpen"
  4508. @click="contract(toolIndex)"
  4509. v-if="
  4510. (isCloseList[toolIndex].isCloseBoolean) &&
  4511. isCloseList[toolIndex].isClose == 0
  4512. "
  4513. >
  4514. 折叠
  4515. </div>
  4516. <div
  4517. class="corOpen"
  4518. @click="contract(toolIndex)"
  4519. v-if="isCloseList[toolIndex].isClose == 1"
  4520. >
  4521. 展开
  4522. </div>
  4523. </div>
  4524. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4525. </div>
  4526. <div
  4527. class="group_workBox"
  4528. v-for="(g, gindex) in courseGroup.group"
  4529. :key="gindex"
  4530. >
  4531. <div class="group_box">
  4532. <div class="group_title">
  4533. <el-tooltip
  4534. class="item"
  4535. effect="light"
  4536. :content="g.name"
  4537. placement="top"
  4538. >
  4539. <div class="group_name">{{ g.name }}</div>
  4540. </el-tooltip>
  4541. </div>
  4542. <div
  4543. class="group_work"
  4544. v-if="
  4545. g.works &&
  4546. g.works.length &&
  4547. g.works[toolIndex].length
  4548. "
  4549. >
  4550. <div
  4551. class="works"
  4552. style="
  4553. width: 200px;
  4554. height: 140px;
  4555. margin: 10px 10px 10px 0;
  4556. border-radius: 15px;
  4557. box-shadow: 0 0 6px 1px #dfdada;
  4558. "
  4559. v-for="(w, wIndex) in g.works[toolIndex]"
  4560. :key="wIndex"
  4561. :class="w.type == 1 ? 'isTypeOne' : ''"
  4562. >
  4563. <div class="workImg">
  4564. <img
  4565. :src="w.works"
  4566. @click="previewImg(w.works,w)"
  4567. alt
  4568. />
  4569. <div
  4570. class="answerScore"
  4571. v-if="w.score"
  4572. @click.stop="openScore(w)"
  4573. :class="{
  4574. rightW:
  4575. w.userid == userid ||
  4576. tType == 1 ||
  4577. tType == 4,
  4578. }"
  4579. >
  4580. {{ JSON.parse(w.score).wScore }}分
  4581. </div>
  4582. <div
  4583. class="answerScore"
  4584. @click.stop="openScore(w)"
  4585. v-else-if="courseDetail.userid == userid"
  4586. :class="{
  4587. rightW:
  4588. w.userid == userid ||
  4589. tType == 1 ||
  4590. tType == 4,
  4591. }"
  4592. >
  4593. 评分
  4594. </div>
  4595. <img
  4596. class="deleteImg"
  4597. src="../assets/deleteworks.png"
  4598. v-if="
  4599. w.userid == userid || tType == 1 || tType == 4
  4600. "
  4601. @click.stop="deleteWorks(w.wid)"
  4602. alt
  4603. />
  4604. </div>
  4605. <div class="comment" style="min-width: 200px">
  4606. <div class="worksName">
  4607. <div>{{ w.sName }}</div>
  4608. </div>
  4609. <div class="commentList">
  4610. <div class="commentList">
  4611. <div
  4612. class="commentImg"
  4613. @click="
  4614. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4615. "
  4616. >
  4617. <img
  4618. :src="w.isLikes == true ? likes : noLikes"
  4619. alt=""
  4620. />
  4621. </div>
  4622. <div>{{ w.likesCount }}</div>
  4623. </div>
  4624. <div
  4625. class="commentList"
  4626. style="margin-right: 15px"
  4627. >
  4628. <div
  4629. class="commentImg"
  4630. @click="
  4631. commentOther(
  4632. w,
  4633. toolIndex,
  4634. wIndex,
  4635. null,
  4636. g.id
  4637. )
  4638. "
  4639. >
  4640. <img
  4641. src="../assets/icon/comment/comment.png"
  4642. alt=""
  4643. />
  4644. </div>
  4645. <div>{{ w.commentCount }}</div>
  4646. </div>
  4647. </div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. <div class="group_work" v-else>暂无提交作业</div>
  4652. </div>
  4653. </div>
  4654. <div
  4655. :id="'tool-' + toolIndex"
  4656. :style="{
  4657. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4658. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4659. }"
  4660. class="worksDetailBox"
  4661. v-if="
  4662. worksStudent.length &&
  4663. worksStudent[toolIndex].length > 0
  4664. "
  4665. >
  4666. <div
  4667. class="works"
  4668. style="
  4669. width: 200px;
  4670. height: 140px;
  4671. margin: 10px 10px 10px 0;
  4672. border-radius: 15px;
  4673. box-shadow: 0 0 6px 1px #dfdada;
  4674. "
  4675. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4676. :key="wIndex"
  4677. >
  4678. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4679. <div class="workImg">
  4680. <img
  4681. :src="w.works"
  4682. @click="previewImg(w.works,w)"
  4683. alt
  4684. />
  4685. <div
  4686. class="answerScore"
  4687. v-if="w.score"
  4688. @click.stop="openScore(w)"
  4689. :class="{
  4690. rightW:
  4691. w.userid == userid || tType == 1 || tType == 4,
  4692. }"
  4693. >
  4694. {{ JSON.parse(w.score).wScore }}分
  4695. </div>
  4696. <div
  4697. class="answerScore"
  4698. @click.stop="openScore(w)"
  4699. v-else-if="courseDetail.userid == userid"
  4700. :class="{
  4701. rightW:
  4702. w.userid == userid || tType == 1 || tType == 4,
  4703. }"
  4704. >
  4705. 评分
  4706. </div>
  4707. <img
  4708. class="deleteImg"
  4709. src="../assets/deleteworks.png"
  4710. v-if="
  4711. w.userid == userid || tType == 1 || tType == 4
  4712. "
  4713. @click.stop="deleteWorks(w.wid)"
  4714. alt
  4715. />
  4716. </div>
  4717. <div class="comment" style="min-width: 200px">
  4718. <div class="worksName">
  4719. <div>{{ w.sName }}</div>
  4720. </div>
  4721. <div class="commentList">
  4722. <div class="commentList">
  4723. <div
  4724. class="commentImg"
  4725. @click="
  4726. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4727. "
  4728. >
  4729. <img
  4730. :src="w.isLikes == true ? likes : noLikes"
  4731. alt=""
  4732. />
  4733. </div>
  4734. <div>{{ w.likesCount }}</div>
  4735. </div>
  4736. <div class="commentList" style="margin-right: 15px">
  4737. <div
  4738. class="commentImg"
  4739. @click="commentOther(w, toolIndex, wIndex)"
  4740. >
  4741. <img
  4742. src="../assets/icon/comment/comment.png"
  4743. alt=""
  4744. />
  4745. </div>
  4746. <div>{{ w.commentCount }}</div>
  4747. </div>
  4748. </div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4753. 未提交
  4754. </div>
  4755. <div
  4756. class="noWorksS"
  4757. v-if="noWorksS && noWorksS[toolIndex].length"
  4758. >
  4759. <div
  4760. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4761. :key="sIndex"
  4762. class="noWorksName"
  4763. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4764. >
  4765. <el-tooltip effect="dark" :content="s.student" placement="top">
  4766. <span>{{ s.student }}</span>
  4767. </el-tooltip>
  4768. </div>
  4769. </div>
  4770. </div>
  4771. <div
  4772. v-if="
  4773. tType &&
  4774. ((tType == 2 && sIsOpen == true) ||
  4775. tType == 1 ||
  4776. tType == 4) &&
  4777. tool.tool.indexOf(3) != -1
  4778. "
  4779. class="worksBox"
  4780. >
  4781. <div
  4782. class="zuoyeYulan"
  4783. v-if="
  4784. (worksStudent.length &&
  4785. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4786. "
  4787. >
  4788. <div class="worksTop">
  4789. <div>作业预览</div>
  4790. <div
  4791. class="corOpen"
  4792. @click="contract(toolIndex)"
  4793. v-if="
  4794. (isCloseList[toolIndex].isCloseBoolean) &&
  4795. isCloseList[toolIndex].isClose == 0
  4796. "
  4797. >
  4798. 折叠
  4799. </div>
  4800. <div
  4801. class="corOpen"
  4802. @click="contract(toolIndex)"
  4803. v-if="isCloseList[toolIndex].isClose == 1"
  4804. >
  4805. 展开
  4806. </div>
  4807. </div>
  4808. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4809. </div>
  4810. <div
  4811. class="group_workBox"
  4812. v-for="(g, gindex) in courseGroup.group"
  4813. :key="gindex"
  4814. >
  4815. <div class="group_box">
  4816. <div class="group_title">
  4817. <el-tooltip
  4818. class="item"
  4819. effect="light"
  4820. :content="g.name"
  4821. placement="top"
  4822. >
  4823. <div class="group_name">{{ g.name }}</div>
  4824. </el-tooltip>
  4825. </div>
  4826. <div
  4827. class="group_work"
  4828. v-if="
  4829. g.works &&
  4830. g.works.length &&
  4831. g.works[toolIndex].length
  4832. "
  4833. >
  4834. <div
  4835. class="works"
  4836. style="
  4837. width: 200px;
  4838. height: 140px;
  4839. margin: 10px 10px 10px 0;
  4840. border-radius: 15px;
  4841. box-shadow: 0 0 6px 1px #dfdada;
  4842. "
  4843. v-for="(w, wIndex) in g.works[toolIndex]"
  4844. :key="wIndex"
  4845. :class="w.type == 1 ? 'isTypeOne' : ''"
  4846. >
  4847. <div class="workImg">
  4848. <img
  4849. :src="w.works"
  4850. @click="previewImg(w.works,w)"
  4851. alt
  4852. />
  4853. <div
  4854. class="answerScore"
  4855. v-if="w.score"
  4856. @click.stop="openScore(w)"
  4857. :class="{
  4858. rightW:
  4859. w.userid == userid ||
  4860. tType == 1 ||
  4861. tType == 4,
  4862. }"
  4863. >
  4864. {{ JSON.parse(w.score).wScore }}分
  4865. </div>
  4866. <div
  4867. class="answerScore"
  4868. @click.stop="openScore(w)"
  4869. v-else-if="courseDetail.userid == userid"
  4870. :class="{
  4871. rightW:
  4872. w.userid == userid ||
  4873. tType == 1 ||
  4874. tType == 4,
  4875. }"
  4876. >
  4877. 评分
  4878. </div>
  4879. <img
  4880. class="deleteImg"
  4881. src="../assets/deleteworks.png"
  4882. v-if="
  4883. w.userid == userid || tType == 1 || tType == 4
  4884. "
  4885. @click.stop="deleteWorks(w.wid)"
  4886. alt
  4887. />
  4888. </div>
  4889. <div class="comment" style="min-width: 200px">
  4890. <div class="worksName">
  4891. <div>{{ w.sName }}</div>
  4892. </div>
  4893. <div class="commentList">
  4894. <div class="commentList">
  4895. <div
  4896. class="commentImg"
  4897. @click="
  4898. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4899. "
  4900. >
  4901. <img
  4902. :src="w.isLikes == true ? likes : noLikes"
  4903. alt=""
  4904. />
  4905. </div>
  4906. <div>{{ w.likesCount }}</div>
  4907. </div>
  4908. <div
  4909. class="commentList"
  4910. style="margin-right: 15px"
  4911. >
  4912. <div
  4913. class="commentImg"
  4914. @click="
  4915. commentOther(
  4916. w,
  4917. toolIndex,
  4918. wIndex,
  4919. null,
  4920. g.id
  4921. )
  4922. "
  4923. >
  4924. <img
  4925. src="../assets/icon/comment/comment.png"
  4926. alt=""
  4927. />
  4928. </div>
  4929. <div>{{ w.commentCount }}</div>
  4930. </div>
  4931. </div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. <div class="group_work" v-else>暂无提交作业</div>
  4936. </div>
  4937. </div>
  4938. <div
  4939. :id="'tool-' + toolIndex"
  4940. :style="{
  4941. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4942. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4943. }"
  4944. class="worksDetailBox"
  4945. v-if="
  4946. worksStudent.length &&
  4947. worksStudent[toolIndex].length > 0
  4948. "
  4949. >
  4950. <div
  4951. class="works"
  4952. style="
  4953. width: 200px;
  4954. height: 140px;
  4955. margin: 10px 10px 10px 0;
  4956. border-radius: 15px;
  4957. box-shadow: 0 0 6px 1px #dfdada;
  4958. "
  4959. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4960. :key="wIndex"
  4961. >
  4962. <!-- @click="previewImg(w.works)" -->
  4963. <div class="workImg">
  4964. <img
  4965. :src="w.works"
  4966. @click="previewImg(w.works,w)"
  4967. alt
  4968. />
  4969. <div
  4970. class="answerScore"
  4971. v-if="w.score"
  4972. @click.stop="openScore(w)"
  4973. :class="{
  4974. rightW:
  4975. w.userid == userid || tType == 1 || tType == 4,
  4976. }"
  4977. >
  4978. {{ JSON.parse(w.score).wScore }}分
  4979. </div>
  4980. <div
  4981. class="answerScore"
  4982. @click.stop="openScore(w)"
  4983. v-else-if="courseDetail.userid == userid"
  4984. :class="{
  4985. rightW:
  4986. w.userid == userid || tType == 1 || tType == 4,
  4987. }"
  4988. >
  4989. 评分
  4990. </div>
  4991. <img
  4992. class="deleteImg"
  4993. src="../assets/deleteworks.png"
  4994. v-if="
  4995. w.userid == userid || tType == 1 || tType == 4
  4996. "
  4997. @click.stop="deleteWorks(w.wid)"
  4998. alt
  4999. />
  5000. </div>
  5001. <div class="comment" style="min-width: 200px">
  5002. <div class="worksName">
  5003. <div>{{ w.sName }}</div>
  5004. </div>
  5005. <div class="commentList">
  5006. <div class="commentList">
  5007. <div
  5008. class="commentImg"
  5009. @click="
  5010. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5011. "
  5012. >
  5013. <img
  5014. :src="w.isLikes == true ? likes : noLikes"
  5015. alt=""
  5016. />
  5017. </div>
  5018. <div>{{ w.likesCount }}</div>
  5019. </div>
  5020. <div class="commentList" style="margin-right: 15px">
  5021. <div
  5022. class="commentImg"
  5023. @click="commentOther(w, toolIndex, wIndex)"
  5024. >
  5025. <img
  5026. src="../assets/icon/comment/comment.png"
  5027. alt=""
  5028. />
  5029. </div>
  5030. <div>{{ w.commentCount }}</div>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5037. 未提交
  5038. </div>
  5039. <div
  5040. class="noWorksS"
  5041. v-if="noWorksS && noWorksS[toolIndex].length"
  5042. >
  5043. <div
  5044. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5045. :key="sIndex"
  5046. class="noWorksName"
  5047. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5048. >
  5049. <el-tooltip effect="dark" :content="s.student" placement="top">
  5050. <span>{{ s.student }}</span>
  5051. </el-tooltip>
  5052. </div>
  5053. </div>
  5054. </div>
  5055. <div
  5056. v-if="
  5057. tType &&
  5058. ((tType == 2 && sIsOpen == true) ||
  5059. tType == 1 ||
  5060. tType == 4) &&
  5061. tool.tool.indexOf(6) != -1
  5062. "
  5063. class="worksBox"
  5064. >
  5065. <div
  5066. class="zuoyeYulan"
  5067. v-if="
  5068. (worksStudent.length &&
  5069. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5070. "
  5071. >
  5072. <div class="worksTop">
  5073. <div>作业预览</div>
  5074. <div
  5075. class="corOpen"
  5076. @click="contract(toolIndex)"
  5077. v-if="
  5078. (isCloseList[toolIndex].isCloseBoolean) &&
  5079. isCloseList[toolIndex].isClose == 0
  5080. "
  5081. >
  5082. 折叠
  5083. </div>
  5084. <div
  5085. class="corOpen"
  5086. @click="contract(toolIndex)"
  5087. v-if="isCloseList[toolIndex].isClose == 1"
  5088. >
  5089. 展开
  5090. </div>
  5091. </div>
  5092. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5093. </div>
  5094. <div
  5095. class="group_workBox"
  5096. v-for="(g, gindex) in courseGroup.group"
  5097. :key="gindex"
  5098. >
  5099. <div class="group_box">
  5100. <div class="group_title">
  5101. <el-tooltip
  5102. class="item"
  5103. effect="light"
  5104. :content="g.name"
  5105. placement="top"
  5106. >
  5107. <div class="group_name">{{ g.name }}</div>
  5108. </el-tooltip>
  5109. </div>
  5110. <div
  5111. class="group_work"
  5112. v-if="
  5113. g.works &&
  5114. g.works.length &&
  5115. g.works[toolIndex].length
  5116. "
  5117. >
  5118. <div
  5119. class="works"
  5120. style="
  5121. width: 200px;
  5122. height: 140px;
  5123. margin: 10px 10px 10px 0;
  5124. border-radius: 15px;
  5125. box-shadow: 0 0 6px 1px #dfdada;
  5126. "
  5127. v-for="(w, wIndex) in g.works[toolIndex]"
  5128. :key="wIndex"
  5129. :class="w.type == 1 ? 'isTypeOne' : ''"
  5130. >
  5131. <div class="workImg">
  5132. <img
  5133. :src="w.works"
  5134. @click="previewImg(w.works,w)"
  5135. alt
  5136. />
  5137. <div
  5138. class="answerScore"
  5139. v-if="w.score"
  5140. @click.stop="openScore(w)"
  5141. :class="{
  5142. rightW:
  5143. w.userid == userid ||
  5144. tType == 1 ||
  5145. tType == 4,
  5146. }"
  5147. >
  5148. {{ JSON.parse(w.score).wScore }}分
  5149. </div>
  5150. <div
  5151. class="answerScore"
  5152. @click.stop="openScore(w)"
  5153. v-else-if="courseDetail.userid == userid"
  5154. :class="{
  5155. rightW:
  5156. w.userid == userid ||
  5157. tType == 1 ||
  5158. tType == 4,
  5159. }"
  5160. >
  5161. 评分
  5162. </div>
  5163. <img
  5164. class="deleteImg"
  5165. src="../assets/deleteworks.png"
  5166. v-if="
  5167. w.userid == userid || tType == 1 || tType == 4
  5168. "
  5169. @click.stop="deleteWorks(w.wid)"
  5170. alt
  5171. />
  5172. </div>
  5173. <div class="comment" style="min-width: 200px">
  5174. <div class="worksName">
  5175. <div>{{ w.sName }}</div>
  5176. </div>
  5177. <div class="commentList">
  5178. <div class="commentList">
  5179. <div
  5180. class="commentImg"
  5181. @click="
  5182. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5183. "
  5184. >
  5185. <img
  5186. :src="w.isLikes == true ? likes : noLikes"
  5187. alt=""
  5188. />
  5189. </div>
  5190. <div>{{ w.likesCount }}</div>
  5191. </div>
  5192. <div
  5193. class="commentList"
  5194. style="margin-right: 15px"
  5195. >
  5196. <div
  5197. class="commentImg"
  5198. @click="
  5199. commentOther(
  5200. w,
  5201. toolIndex,
  5202. wIndex,
  5203. null,
  5204. g.id
  5205. )
  5206. "
  5207. >
  5208. <img
  5209. src="../assets/icon/comment/comment.png"
  5210. alt=""
  5211. />
  5212. </div>
  5213. <div>{{ w.commentCount }}</div>
  5214. </div>
  5215. </div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. <div class="group_work" v-else>暂无提交作业</div>
  5220. </div>
  5221. </div>
  5222. <div
  5223. :id="'tool-' + toolIndex"
  5224. :style="{
  5225. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5226. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5227. }"
  5228. class="worksDetailBox"
  5229. v-if="
  5230. worksStudent.length &&
  5231. worksStudent[toolIndex].length > 0
  5232. "
  5233. >
  5234. <div
  5235. class="works"
  5236. style="
  5237. width: 200px;
  5238. height: 140px;
  5239. margin: 10px 10px 10px 0;
  5240. border-radius: 15px;
  5241. box-shadow: 0 0 6px 1px #dfdada;
  5242. "
  5243. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5244. :key="wIndex"
  5245. >
  5246. <!-- @click="previewImg(w.works)" -->
  5247. <div class="workImg">
  5248. <img
  5249. :src="w.works"
  5250. @click="previewImg(w.works,w)"
  5251. alt
  5252. />
  5253. <div
  5254. class="answerScore"
  5255. v-if="w.score"
  5256. @click.stop="openScore(w)"
  5257. :class="{
  5258. rightW:
  5259. w.userid == userid || tType == 1 || tType == 4,
  5260. }"
  5261. >
  5262. {{ JSON.parse(w.score).wScore }}分
  5263. </div>
  5264. <div
  5265. class="answerScore"
  5266. @click.stop="openScore(w)"
  5267. v-else-if="courseDetail.userid == userid"
  5268. :class="{
  5269. rightW:
  5270. w.userid == userid || tType == 1 || tType == 4,
  5271. }"
  5272. >
  5273. 评分
  5274. </div>
  5275. <img
  5276. class="deleteImg"
  5277. src="../assets/deleteworks.png"
  5278. v-if="
  5279. w.userid == userid || tType == 1 || tType == 4
  5280. "
  5281. @click.stop="deleteWorks(w.wid)"
  5282. alt
  5283. />
  5284. </div>
  5285. <div class="comment" style="min-width: 200px">
  5286. <div class="worksName">
  5287. <div>{{ w.sName }}</div>
  5288. </div>
  5289. <div class="commentList">
  5290. <div class="commentList">
  5291. <div
  5292. class="commentImg"
  5293. @click="
  5294. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5295. "
  5296. >
  5297. <img
  5298. :src="w.isLikes == true ? likes : noLikes"
  5299. alt=""
  5300. />
  5301. </div>
  5302. <div>{{ w.likesCount }}</div>
  5303. </div>
  5304. <div class="commentList" style="margin-right: 15px">
  5305. <div
  5306. class="commentImg"
  5307. @click="commentOther(w, toolIndex, wIndex)"
  5308. >
  5309. <img
  5310. src="../assets/icon/comment/comment.png"
  5311. alt=""
  5312. />
  5313. </div>
  5314. <div>{{ w.commentCount }}</div>
  5315. </div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5321. 未提交
  5322. </div>
  5323. <div
  5324. class="noWorksS"
  5325. v-if="noWorksS && noWorksS[toolIndex].length"
  5326. >
  5327. <div
  5328. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5329. :key="sIndex"
  5330. class="noWorksName"
  5331. >
  5332. <el-tooltip effect="dark" :content="s.student" placement="top">
  5333. <span>{{ s.student }}</span>
  5334. </el-tooltip>
  5335. </div>
  5336. </div>
  5337. </div>
  5338. <div
  5339. v-if="
  5340. tType &&
  5341. ((tType == 2 && sIsOpen == true) ||
  5342. tType == 1 ||
  5343. tType == 4) &&
  5344. tool.tool.indexOf(7) != -1
  5345. "
  5346. class="worksBox"
  5347. >
  5348. <div
  5349. class="zuoyeYulan"
  5350. v-if="
  5351. (worksStudent.length &&
  5352. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5353. "
  5354. >
  5355. <div class="worksTop">
  5356. <div>作业预览</div>
  5357. <div
  5358. class="corOpen"
  5359. @click="contract(toolIndex)"
  5360. v-if="
  5361. (isCloseList[toolIndex].isCloseBoolean) &&
  5362. isCloseList[toolIndex].isClose == 0
  5363. "
  5364. >
  5365. 折叠
  5366. </div>
  5367. <div
  5368. class="corOpen"
  5369. @click="contract(toolIndex)"
  5370. v-if="isCloseList[toolIndex].isClose == 1"
  5371. >
  5372. 展开
  5373. </div>
  5374. </div>
  5375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5376. </div>
  5377. <div
  5378. class="group_workBox"
  5379. v-for="(g, gindex) in courseGroup.group"
  5380. :key="gindex"
  5381. >
  5382. <div class="group_box">
  5383. <div class="group_title">
  5384. <el-tooltip
  5385. class="item"
  5386. effect="light"
  5387. :content="g.name"
  5388. placement="top"
  5389. >
  5390. <div class="group_name">{{ g.name }}</div>
  5391. </el-tooltip>
  5392. </div>
  5393. <div
  5394. class="group_work"
  5395. v-if="
  5396. g.works &&
  5397. g.works.length &&
  5398. g.works[toolIndex].length
  5399. "
  5400. >
  5401. <div
  5402. class="works"
  5403. style="
  5404. width: 200px;
  5405. height: 140px;
  5406. margin: 10px 10px 10px 0;
  5407. border-radius: 15px;
  5408. box-shadow: 0 0 6px 1px #dfdada;
  5409. "
  5410. v-for="(w, wIndex) in g.works[toolIndex]"
  5411. :key="wIndex"
  5412. :class="w.type == 1 ? 'isTypeOne' : ''"
  5413. >
  5414. <div class="workImg">
  5415. <img
  5416. :src="w.works"
  5417. @click="previewImg(w.works,w)"
  5418. alt
  5419. />
  5420. <div
  5421. class="answerScore"
  5422. v-if="w.score"
  5423. @click.stop="openScore(w)"
  5424. :class="{
  5425. rightW:
  5426. w.userid == userid ||
  5427. tType == 1 ||
  5428. tType == 4,
  5429. }"
  5430. >
  5431. {{ JSON.parse(w.score).wScore }}分
  5432. </div>
  5433. <div
  5434. class="answerScore"
  5435. @click.stop="openScore(w)"
  5436. v-else-if="courseDetail.userid == userid"
  5437. :class="{
  5438. rightW:
  5439. w.userid == userid ||
  5440. tType == 1 ||
  5441. tType == 4,
  5442. }"
  5443. >
  5444. 评分
  5445. </div>
  5446. <img
  5447. class="deleteImg"
  5448. src="../assets/deleteworks.png"
  5449. v-if="
  5450. w.userid == userid || tType == 1 || tType == 4
  5451. "
  5452. @click.stop="deleteWorks(w.wid)"
  5453. alt
  5454. />
  5455. </div>
  5456. <div class="comment" style="min-width: 200px">
  5457. <div class="worksName">
  5458. <div>{{ w.sName }}</div>
  5459. </div>
  5460. <div class="commentList">
  5461. <div class="commentList">
  5462. <div
  5463. class="commentImg"
  5464. @click="
  5465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5466. "
  5467. >
  5468. <img
  5469. :src="w.isLikes == true ? likes : noLikes"
  5470. alt=""
  5471. />
  5472. </div>
  5473. <div>{{ w.likesCount }}</div>
  5474. </div>
  5475. <div
  5476. class="commentList"
  5477. style="margin-right: 15px"
  5478. >
  5479. <div
  5480. class="commentImg"
  5481. @click="
  5482. commentOther(
  5483. w,
  5484. toolIndex,
  5485. wIndex,
  5486. null,
  5487. g.id
  5488. )
  5489. "
  5490. >
  5491. <img
  5492. src="../assets/icon/comment/comment.png"
  5493. alt=""
  5494. />
  5495. </div>
  5496. <div>{{ w.commentCount }}</div>
  5497. </div>
  5498. </div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. <div class="group_work" v-else>暂无提交作业</div>
  5503. </div>
  5504. </div>
  5505. <div
  5506. :id="'tool-' + toolIndex"
  5507. :style="{
  5508. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5509. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5510. }"
  5511. class="worksDetailBox"
  5512. v-if="
  5513. worksStudent.length &&
  5514. worksStudent[toolIndex].length > 0
  5515. "
  5516. >
  5517. <div
  5518. class="works"
  5519. style="
  5520. width: 200px;
  5521. height: 140px;
  5522. margin: 10px 10px 10px 0;
  5523. border-radius: 15px;
  5524. box-shadow: 0 0 6px 1px #dfdada;
  5525. "
  5526. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5527. :key="wIndex"
  5528. >
  5529. <!-- @click="previewImg(w.works)" -->
  5530. <div class="workImg">
  5531. <img
  5532. :src="w.works"
  5533. @click="previewImg(w.works,w)"
  5534. alt
  5535. />
  5536. <div
  5537. class="answerScore"
  5538. v-if="w.score"
  5539. @click.stop="openScore(w)"
  5540. :class="{
  5541. rightW:
  5542. w.userid == userid || tType == 1 || tType == 4,
  5543. }"
  5544. >
  5545. {{ JSON.parse(w.score).wScore }}分
  5546. </div>
  5547. <div
  5548. class="answerScore"
  5549. @click.stop="openScore(w)"
  5550. v-else-if="courseDetail.userid == userid"
  5551. :class="{
  5552. rightW:
  5553. w.userid == userid || tType == 1 || tType == 4,
  5554. }"
  5555. >
  5556. 评分
  5557. </div>
  5558. <img
  5559. class="deleteImg"
  5560. src="../assets/deleteworks.png"
  5561. v-if="
  5562. w.userid == userid || tType == 1 || tType == 4
  5563. "
  5564. @click.stop="deleteWorks(w.wid)"
  5565. alt
  5566. />
  5567. </div>
  5568. <div class="comment" style="min-width: 200px">
  5569. <div class="worksName">
  5570. <div>{{ w.sName }}</div>
  5571. </div>
  5572. <div class="commentList">
  5573. <div class="commentList">
  5574. <div
  5575. class="commentImg"
  5576. @click="
  5577. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5578. "
  5579. >
  5580. <img
  5581. :src="w.isLikes == true ? likes : noLikes"
  5582. alt=""
  5583. />
  5584. </div>
  5585. <div>{{ w.likesCount }}</div>
  5586. </div>
  5587. <div class="commentList" style="margin-right: 15px">
  5588. <div
  5589. class="commentImg"
  5590. @click="commentOther(w, toolIndex, wIndex)"
  5591. >
  5592. <img
  5593. src="../assets/icon/comment/comment.png"
  5594. alt=""
  5595. />
  5596. </div>
  5597. <div>{{ w.commentCount }}</div>
  5598. </div>
  5599. </div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5604. 未提交
  5605. </div>
  5606. <div
  5607. class="noWorksS"
  5608. v-if="noWorksS && noWorksS[toolIndex].length"
  5609. >
  5610. <div
  5611. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5612. :key="sIndex"
  5613. class="noWorksName"
  5614. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5615. >
  5616. <el-tooltip effect="dark" :content="s.student" placement="top">
  5617. <span>{{ s.student }}</span>
  5618. </el-tooltip>
  5619. </div>
  5620. </div>
  5621. </div>
  5622. <div
  5623. v-if="
  5624. tType &&
  5625. ((tType == 2 && sIsOpen == true) ||
  5626. tType == 1 ||
  5627. tType == 4) &&
  5628. tool.tool.indexOf(26) != -1
  5629. "
  5630. class="worksBox"
  5631. >
  5632. <div
  5633. class="zuoyeYulan"
  5634. v-if="
  5635. worksStudent.length &&
  5636. worksStudent[toolIndex].length > 0
  5637. "
  5638. >
  5639. <div class="worksTop">
  5640. <div>作业预览</div>
  5641. <div
  5642. class="corOpen"
  5643. @click="contract(toolIndex)"
  5644. v-if="
  5645. (isCloseList[toolIndex].isCloseBoolean) &&
  5646. isCloseList[toolIndex].isClose == 0
  5647. "
  5648. >
  5649. 折叠
  5650. </div>
  5651. <div
  5652. class="corOpen"
  5653. @click="contract(toolIndex)"
  5654. v-if="isCloseList[toolIndex].isClose == 1"
  5655. >
  5656. 展开
  5657. </div>
  5658. </div>
  5659. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5660. </div>
  5661. <div
  5662. :id="'tool-' + toolIndex"
  5663. :style="{
  5664. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5665. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5666. }"
  5667. class="worksDetailBox"
  5668. v-if="
  5669. worksStudent.length &&
  5670. worksStudent[toolIndex].length > 0
  5671. "
  5672. >
  5673. <div
  5674. class="works"
  5675. style="width: 240px; height: 140px; overflow: hidden"
  5676. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5677. :key="wIndex"
  5678. :class="w.type == 1 ? 'isTypeOne' : ''"
  5679. >
  5680. <div class="workImg" v-if="w.type == 0">
  5681. <img
  5682. :src="w.works"
  5683. @click="previewImg(w.works,w)"
  5684. alt
  5685. />
  5686. <img
  5687. class="deleteImg"
  5688. src="../assets/deleteworks.png"
  5689. v-if="
  5690. w.userid == userid || tType == 1 || tType == 4
  5691. "
  5692. @click.stop="deleteWorks(w.wid)"
  5693. alt
  5694. />
  5695. </div>
  5696. <div class="workImg" v-if="w.type == 1">
  5697. <img :src="word" @click="openFile(w.works,w)" alt />
  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="worksName">
  5709. <div>{{ w.sName }}</div>
  5710. </div>
  5711. </div>
  5712. </div>
  5713. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5714. 未提交
  5715. </div>
  5716. <div
  5717. class="noWorksS"
  5718. v-if="noWorksS && noWorksS[toolIndex].length"
  5719. >
  5720. <div
  5721. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5722. :key="sIndex"
  5723. class="noWorksName"
  5724. >
  5725. <el-tooltip effect="dark" :content="s.student" placement="top">
  5726. <span>{{ s.student }}</span>
  5727. </el-tooltip>
  5728. </div>
  5729. </div>
  5730. </div>
  5731. <div
  5732. v-if="
  5733. tType &&
  5734. ((tType == 2 && sIsOpen == true) ||
  5735. tType == 1 ||
  5736. tType == 4) &&
  5737. tool.tool.indexOf(40) != -1
  5738. "
  5739. class="worksBox"
  5740. >
  5741. <div
  5742. class="zuoyeYulan"
  5743. v-if="
  5744. worksStudent.length &&
  5745. worksStudent[toolIndex].length > 0
  5746. "
  5747. >
  5748. <div class="worksTop">
  5749. <div>作业预览</div>
  5750. <div
  5751. class="corOpen"
  5752. @click="contract(toolIndex)"
  5753. v-if="
  5754. (isCloseList[toolIndex].isCloseBoolean) &&
  5755. isCloseList[toolIndex].isClose == 0
  5756. "
  5757. >
  5758. 折叠
  5759. </div>
  5760. <div
  5761. class="corOpen"
  5762. @click="contract(toolIndex)"
  5763. v-if="isCloseList[toolIndex].isClose == 1"
  5764. >
  5765. 展开
  5766. </div>
  5767. </div>
  5768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5769. </div>
  5770. <div
  5771. :id="'tool-' + toolIndex"
  5772. :style="{
  5773. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5774. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5775. }"
  5776. class="worksDetailBox"
  5777. v-if="
  5778. worksStudent.length &&
  5779. worksStudent[toolIndex].length > 0
  5780. "
  5781. >
  5782. <div
  5783. class="works"
  5784. style="
  5785. width: 200px;
  5786. height: 140px;
  5787. margin: 10px 10px 10px 0;
  5788. border-radius: 15px;
  5789. box-shadow: 0 0 6px 1px #dfdada;
  5790. "
  5791. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5792. :key="wIndex"
  5793. :class="w.type == 1 ? 'isTypeOne' : ''"
  5794. >
  5795. <div class="workImg">
  5796. <img
  5797. src="../assets/icon/works/noImg.png"
  5798. @click="openPj(w.works, toolIndex)"
  5799. alt
  5800. />
  5801. <img
  5802. class="deleteImg"
  5803. src="../assets/deleteworks.png"
  5804. v-if="
  5805. w.userid == userid || tType == 1 || tType == 4
  5806. "
  5807. @click.stop="deleteWorks(w.wid)"
  5808. alt
  5809. />
  5810. </div>
  5811. <div class="comment" style="min-width: 200px">
  5812. <div class="worksName">
  5813. <div>{{ w.sName }}</div>
  5814. </div>
  5815. <div class="commentList">
  5816. <div class="commentList">
  5817. <div
  5818. class="commentImg"
  5819. @click="
  5820. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5821. "
  5822. >
  5823. <img
  5824. :src="w.isLikes == true ? likes : noLikes"
  5825. alt=""
  5826. />
  5827. </div>
  5828. <div>{{ w.likesCount }}</div>
  5829. </div>
  5830. <div class="commentList" style="margin-right: 15px">
  5831. <div
  5832. class="commentImg"
  5833. @click="commentOther(w, toolIndex, wIndex)"
  5834. >
  5835. <img
  5836. src="../assets/icon/comment/comment.png"
  5837. alt=""
  5838. />
  5839. </div>
  5840. <div>{{ w.commentCount }}</div>
  5841. </div>
  5842. </div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5847. 未提交
  5848. </div>
  5849. <div
  5850. class="noWorksS"
  5851. v-if="noWorksS && noWorksS[toolIndex].length"
  5852. >
  5853. <div
  5854. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5855. :key="sIndex"
  5856. class="noWorksName"
  5857. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5858. >
  5859. <el-tooltip effect="dark" :content="s.student" placement="top">
  5860. <span>{{ s.student }}</span>
  5861. </el-tooltip>
  5862. </div>
  5863. </div>
  5864. </div>
  5865. <div
  5866. v-if="
  5867. tType &&
  5868. tType == 2 &&
  5869. !sIsOpen &&
  5870. tool.tool.indexOf(40) != -1
  5871. "
  5872. class="worksBox"
  5873. >
  5874. <div
  5875. class="zuoyeYulan"
  5876. v-if="workStudent[toolIndex].length > 0"
  5877. >
  5878. <span class="worksTitle">作业预览</span>
  5879. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5880. </div>
  5881. <div
  5882. class="worksDetailBox"
  5883. v-if="workStudent[toolIndex].length > 0"
  5884. >
  5885. <div
  5886. class="works"
  5887. style="
  5888. width: 200px;
  5889. height: 140px;
  5890. margin: 10px 10px 10px 0;
  5891. "
  5892. v-for="(w, wIndex) in workStudent[toolIndex]"
  5893. :key="wIndex"
  5894. >
  5895. <div class="workImg">
  5896. <img
  5897. src="../assets/icon/works/noImg.png"
  5898. @click="openPj(w.works, toolIndex)"
  5899. alt
  5900. />
  5901. <img
  5902. class="deleteImg"
  5903. src="../assets/deleteworks.png"
  5904. v-if="
  5905. w.userid == userid || tType == 1 || tType == 4
  5906. "
  5907. @click.stop="deleteWorks(w.wid)"
  5908. alt
  5909. />
  5910. </div>
  5911. <div class="worksName">
  5912. <div>{{ w.sName }}</div>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. <div
  5918. v-if="
  5919. tType &&
  5920. ((tType == 2 && sIsOpen == true) ||
  5921. tType == 1 ||
  5922. tType == 4) &&
  5923. tool.tool.indexOf(41) != -1
  5924. "
  5925. >
  5926. <AnswerData2
  5927. v-if="
  5928. worksStudent.length &&
  5929. worksStudent[toolIndex].length > 0
  5930. "
  5931. :problemJson="tool.selectJson.answer"
  5932. :people="worksStudent[toolIndex]"
  5933. ></AnswerData2>
  5934. </div>
  5935. <div
  5936. v-if="
  5937. tType &&
  5938. ((tType == 2 && sIsOpen == true) ||
  5939. tType == 1 ||
  5940. tType == 4) &&
  5941. tool.tool.indexOf(41) != -1
  5942. "
  5943. class="worksBox"
  5944. >
  5945. <div
  5946. class="zuoyeYulan"
  5947. v-if="
  5948. worksStudent.length &&
  5949. worksStudent[toolIndex].length > 0
  5950. "
  5951. >
  5952. <div class="worksTop">
  5953. <div>作业预览</div>
  5954. <div
  5955. class="corOpen"
  5956. @click="contract(toolIndex)"
  5957. v-if="
  5958. (isCloseList[toolIndex].isCloseBoolean) &&
  5959. isCloseList[toolIndex].isClose == 0
  5960. "
  5961. >
  5962. 折叠
  5963. </div>
  5964. <div
  5965. class="corOpen"
  5966. @click="contract(toolIndex)"
  5967. v-if="isCloseList[toolIndex].isClose == 1"
  5968. >
  5969. 展开
  5970. </div>
  5971. </div>
  5972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5973. </div>
  5974. <div
  5975. :id="'tool-' + toolIndex"
  5976. :style="{
  5977. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5978. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5979. }"
  5980. class="worksDetailBox"
  5981. v-if="
  5982. worksStudent.length &&
  5983. worksStudent[toolIndex].length > 0
  5984. "
  5985. >
  5986. <div
  5987. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5988. :key="wIndex"
  5989. class="isWorksName2"
  5990. @click="openXz(w, toolIndex)"
  5991. >
  5992. {{ w.sName }}
  5993. <img
  5994. class="deleteImg deleteImg2"
  5995. src="../assets/deleteworks.png"
  5996. v-if="w.userid == userid || tType == 1 || tType == 4"
  5997. @click.stop="deleteWorks(w.wid)"
  5998. alt
  5999. />
  6000. </div>
  6001. <!-- <div
  6002. class="works"
  6003. style="
  6004. width: 200px;
  6005. height: 140px;
  6006. margin: 10px 10px 10px 0;
  6007. border-radius: 15px;
  6008. box-shadow: 0 0 6px 1px #dfdada;
  6009. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6010. :class="w.type == 5 ? 'isTypeOne' : ''">
  6011. <div class="workImg">
  6012. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6013. </div>
  6014. <div class="worksName">
  6015. <div>{{ w.sName }}</div>
  6016. </div>
  6017. </div> -->
  6018. </div>
  6019. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6020. 未提交
  6021. </div>
  6022. <div
  6023. class="noWorksS"
  6024. v-if="noWorksS && noWorksS[toolIndex].length"
  6025. >
  6026. <div
  6027. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6028. :key="sIndex"
  6029. class="noWorksName"
  6030. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6031. >
  6032. <el-tooltip effect="dark" :content="s.student" placement="top">
  6033. <span>{{ s.student }}</span>
  6034. </el-tooltip>
  6035. </div>
  6036. </div>
  6037. </div>
  6038. <div
  6039. v-if="
  6040. tType &&
  6041. tType == 2 &&
  6042. !sIsOpen &&
  6043. tool.tool.indexOf(41) != -1
  6044. "
  6045. class="worksBox"
  6046. >
  6047. <div
  6048. class="zuoyeYulan"
  6049. v-if="workStudent[toolIndex].length > 0"
  6050. >
  6051. <span class="worksTitle">作业预览</span>
  6052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6053. </div>
  6054. <div
  6055. class="worksDetailBox"
  6056. v-if="workStudent[toolIndex].length > 0"
  6057. >
  6058. <div
  6059. class="works"
  6060. style="
  6061. width: 200px;
  6062. height: 140px;
  6063. margin: 10px 10px 10px 0;
  6064. "
  6065. v-for="(w, wIndex) in workStudent[toolIndex]"
  6066. :key="wIndex"
  6067. >
  6068. <div class="workImg">
  6069. <img
  6070. src="../assets/icon/works/noImg.png"
  6071. @click="openXz(w, toolIndex)"
  6072. alt
  6073. />
  6074. <img
  6075. class="deleteImg"
  6076. src="../assets/deleteworks.png"
  6077. v-if="
  6078. w.userid == userid || tType == 1 || tType == 4
  6079. "
  6080. @click.stop="deleteWorks(w.wid)"
  6081. alt
  6082. />
  6083. </div>
  6084. <div class="worksName">
  6085. <div>{{ w.sName }}</div>
  6086. </div>
  6087. </div>
  6088. </div>
  6089. </div>
  6090. <div v-if="false" class="xuan_right_box">
  6091. <div
  6092. class="tool_right_box"
  6093. v-for="(item, index) in tool.sentenceList"
  6094. :key="index"
  6095. >
  6096. <div>
  6097. <span
  6098. style="word-break: break-all; white-space: normal"
  6099. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6100. >
  6101. </div>
  6102. <div class="right_box_xuan">
  6103. <span>正确率</span>
  6104. <span>{{
  6105. (checkJson[toolIndex][index].right
  6106. ? checkJson[toolIndex][index].right
  6107. : 0) + "%"
  6108. }}</span>
  6109. </div>
  6110. <div class="right_box_xuan">
  6111. <span>答对人数</span>
  6112. <span>{{
  6113. checkJson[toolIndex][index].rightPerson.length
  6114. }}</span>
  6115. </div>
  6116. </div>
  6117. </div>
  6118. <div
  6119. v-if="
  6120. tType &&
  6121. ((tType == 2 && sIsOpen == true) ||
  6122. tType == 1 ||
  6123. tType == 4) &&
  6124. tool.tool.indexOf(47) != -1
  6125. "
  6126. >
  6127. <AnswerData
  6128. v-if="
  6129. checkJson[toolIndex].length &&
  6130. (tool.sentenceList || tool.sentenceList.length > 0)
  6131. "
  6132. :people="checkJson[toolIndex]"
  6133. ></AnswerData>
  6134. </div>
  6135. <div
  6136. v-if="
  6137. tType &&
  6138. tType == 2 &&
  6139. !sIsOpen &&
  6140. tool.tool.indexOf(47) != -1
  6141. "
  6142. class="worksBox"
  6143. >
  6144. <div
  6145. class="zuoyeYulan"
  6146. v-if="workStudent[toolIndex].length > 0"
  6147. >
  6148. <span class="worksTitle">作业预览</span>
  6149. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6150. </div>
  6151. <div
  6152. class="worksDetailBox"
  6153. v-if="workStudent[toolIndex].length > 0"
  6154. >
  6155. <div
  6156. class="works"
  6157. style="
  6158. width: 200px;
  6159. height: 140px;
  6160. margin: 10px 10px 10px 0;
  6161. "
  6162. v-for="(w, wIndex) in workStudent[toolIndex]"
  6163. :key="wIndex"
  6164. >
  6165. <!-- @click="openXz(w, toolIndex)" -->
  6166. <div class="workImg" @click="openSen(w, toolIndex)">
  6167. <img src="../assets/icon/works/noImg.png" alt />
  6168. <img
  6169. class="deleteImg"
  6170. src="../assets/deleteworks.png"
  6171. v-if="
  6172. w.userid == userid || tType == 1 || tType == 4
  6173. "
  6174. @click.stop="deleteWorks(w.wid)"
  6175. alt
  6176. />
  6177. </div>
  6178. <div class="worksName">
  6179. <div>
  6180. {{ w.sName }}
  6181. </div>
  6182. </div>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div
  6187. v-if="
  6188. tType &&
  6189. ((tType == 2 && sIsOpen == true) ||
  6190. tType == 1 ||
  6191. tType == 4) &&
  6192. tool.tool.indexOf(47) != -1
  6193. "
  6194. class="worksBox"
  6195. >
  6196. <div
  6197. class="zuoyeYulan"
  6198. v-if="
  6199. worksStudent.length &&
  6200. worksStudent[toolIndex].length > 0
  6201. "
  6202. >
  6203. <div class="worksTop">
  6204. <div>作业预览</div>
  6205. <div
  6206. class="corOpen"
  6207. @click="contract(toolIndex)"
  6208. v-if="
  6209. (isCloseList[toolIndex].isCloseBoolean) &&
  6210. isCloseList[toolIndex].isClose == 0
  6211. "
  6212. >
  6213. 折叠
  6214. </div>
  6215. <div
  6216. class="corOpen"
  6217. @click="contract(toolIndex)"
  6218. v-if="isCloseList[toolIndex].isClose == 1"
  6219. >
  6220. 展开
  6221. </div>
  6222. </div>
  6223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6224. </div>
  6225. <div
  6226. :id="'tool-' + toolIndex"
  6227. :style="{
  6228. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6229. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6230. }"
  6231. class="worksDetailBox"
  6232. v-if="
  6233. worksStudent.length &&
  6234. worksStudent[toolIndex].length > 0
  6235. "
  6236. >
  6237. <!-- @click="openXz(w, toolIndex)" -->
  6238. <div
  6239. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6240. :key="wIndex"
  6241. class="isWorksName2"
  6242. @click="openSen(w, toolIndex)"
  6243. >
  6244. {{ w.sName }}
  6245. <img
  6246. class="deleteImg deleteImg2"
  6247. src="../assets/deleteworks.png"
  6248. v-if="w.userid == userid || tType == 1 || tType == 4"
  6249. @click.stop="deleteWorks(w.wid)"
  6250. alt
  6251. />
  6252. </div>
  6253. </div>
  6254. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6255. 未提交
  6256. </div>
  6257. <div
  6258. class="noWorksS"
  6259. v-if="noWorksS && noWorksS[toolIndex].length"
  6260. >
  6261. <div
  6262. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6263. :key="sIndex"
  6264. class="noWorksName"
  6265. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6266. >
  6267. <el-tooltip effect="dark" :content="s.student" placement="top">
  6268. <span>{{ s.student }}</span>
  6269. </el-tooltip>
  6270. </div>
  6271. </div>
  6272. </div>
  6273. <div
  6274. v-if="
  6275. tType &&
  6276. ((tType == 2 && sIsOpen == true) ||
  6277. tType == 1 ||
  6278. tType == 4) &&
  6279. tool.tool.indexOf(48) != -1
  6280. "
  6281. class="worksBox"
  6282. >
  6283. <div
  6284. class="zuoyeYulan"
  6285. v-if="
  6286. worksStudent.length &&
  6287. worksStudent[toolIndex].length > 0
  6288. "
  6289. >
  6290. <div class="worksTop">
  6291. <div>作业预览</div>
  6292. <div
  6293. class="corOpen"
  6294. @click="contract(toolIndex)"
  6295. v-if="
  6296. (isCloseList[toolIndex].isCloseBoolean) &&
  6297. isCloseList[toolIndex].isClose == 0
  6298. "
  6299. >
  6300. 折叠
  6301. </div>
  6302. <div
  6303. class="corOpen"
  6304. @click="contract(toolIndex)"
  6305. v-if="isCloseList[toolIndex].isClose == 1"
  6306. >
  6307. 展开
  6308. </div>
  6309. </div>
  6310. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6311. </div>
  6312. <div
  6313. :id="'tool-' + toolIndex"
  6314. :style="{
  6315. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6316. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6317. }"
  6318. class="worksDetailBox"
  6319. v-if="
  6320. worksStudent.length &&
  6321. worksStudent[toolIndex].length > 0
  6322. "
  6323. >
  6324. <div
  6325. class="works"
  6326. style="
  6327. width: 200px;
  6328. height: 140px;
  6329. margin: 10px 10px 10px 0;
  6330. border-radius: 15px;
  6331. box-shadow: 0 0 6px 1px #dfdada;
  6332. "
  6333. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6334. :key="wIndex"
  6335. :class="w.type == 1 ? 'isTypeOne' : ''"
  6336. >
  6337. <div class="workImg">
  6338. <img :src="word" @click="openTable(w)" alt />
  6339. <!-- @click="openFile(w.works)" -->
  6340. <div
  6341. class="answerScore"
  6342. v-if="w.score"
  6343. @click.stop="openScore(w)"
  6344. :class="{
  6345. rightW:
  6346. w.userid == userid ||
  6347. tType == 1 ||
  6348. tType == 4 ||
  6349. w.ateacher == userid,
  6350. }"
  6351. >
  6352. {{ JSON.parse(w.score).wScore }}分
  6353. </div>
  6354. <div
  6355. class="answerScore"
  6356. @click.stop="openScore(w)"
  6357. v-else-if="courseDetail.userid == userid"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid ||
  6361. tType == 1 ||
  6362. tType == 4 ||
  6363. w.ateacher == userid,
  6364. }"
  6365. >
  6366. 评分
  6367. </div>
  6368. <img
  6369. class="deleteImg"
  6370. src="../assets/deleteworks.png"
  6371. v-if="
  6372. w.userid == userid || tType == 1 || tType == 4
  6373. "
  6374. @click.stop="deleteWorks(w.wid)"
  6375. alt
  6376. />
  6377. </div>
  6378. <div class="comment" style="min-width: 200px">
  6379. <div class="worksName">
  6380. <div>{{ w.sName }}</div>
  6381. </div>
  6382. <div class="commentList">
  6383. <div class="commentList">
  6384. <div
  6385. class="commentImg"
  6386. @click="
  6387. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6388. "
  6389. >
  6390. <img
  6391. :src="w.isLikes == true ? likes : noLikes"
  6392. alt=""
  6393. />
  6394. </div>
  6395. <div>{{ w.likesCount }}</div>
  6396. </div>
  6397. <div class="commentList" style="margin-right: 15px">
  6398. <div
  6399. class="commentImg"
  6400. @click="commentOther(w, toolIndex, wIndex)"
  6401. >
  6402. <img
  6403. src="../assets/icon/comment/comment.png"
  6404. alt=""
  6405. />
  6406. </div>
  6407. <div>{{ w.commentCount }}</div>
  6408. </div>
  6409. </div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6414. 未提交
  6415. </div>
  6416. <div
  6417. class="noWorksS"
  6418. v-if="noWorksS && noWorksS[toolIndex].length"
  6419. >
  6420. <div
  6421. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6422. :key="sIndex"
  6423. class="noWorksName"
  6424. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6425. >
  6426. <el-tooltip effect="dark" :content="s.student" placement="top">
  6427. <span>{{ s.student }}</span>
  6428. </el-tooltip>
  6429. </div>
  6430. </div>
  6431. </div>
  6432. <div
  6433. v-if="
  6434. tType &&
  6435. tType == 2 &&
  6436. !sIsOpen &&
  6437. tool.tool.indexOf(48) != -1
  6438. "
  6439. class="worksBox"
  6440. >
  6441. <div
  6442. class="zuoyeYulan"
  6443. v-if="workStudent[toolIndex].length > 0"
  6444. >
  6445. <span class="worksTitle">作业预览</span>
  6446. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6447. </div>
  6448. <div
  6449. class="worksDetailBox"
  6450. v-if="workStudent[toolIndex].length > 0"
  6451. >
  6452. <div
  6453. class="works"
  6454. style="
  6455. width: 200px;
  6456. height: 140px;
  6457. margin: 10px 10px 10px 0;
  6458. box-shadow: 0 0 6px 1px #dfdada;
  6459. "
  6460. v-for="(w, wIndex) in workStudent[toolIndex]"
  6461. :key="wIndex"
  6462. >
  6463. <div class="workImg">
  6464. <img :src="word" @click="openTable(w)" alt />
  6465. <div
  6466. class="answerScore"
  6467. v-if="w.score"
  6468. @click.stop="openScore(w)"
  6469. :class="{
  6470. rightW:
  6471. w.userid == userid || tType == 1 || tType == 4,
  6472. }"
  6473. >
  6474. {{ JSON.parse(w.score).wScore }}分
  6475. </div>
  6476. <div
  6477. class="answerScore"
  6478. @click.stop="openScore(w)"
  6479. v-else-if="courseDetail.userid == userid"
  6480. :class="{
  6481. rightW:
  6482. w.userid == userid || tType == 1 || tType == 4,
  6483. }"
  6484. >
  6485. 评分
  6486. </div>
  6487. <img
  6488. class="deleteImg"
  6489. src="../assets/deleteworks.png"
  6490. v-if="
  6491. w.userid == userid || tType == 1 || tType == 4
  6492. "
  6493. @click.stop="deleteWorks(w.wid)"
  6494. alt
  6495. />
  6496. </div>
  6497. <div class="worksName">
  6498. <div>{{ w.sName }}</div>
  6499. </div>
  6500. </div>
  6501. </div>
  6502. </div>
  6503. <div
  6504. v-if="
  6505. tType &&
  6506. ((tType == 2 && sIsOpen == true) ||
  6507. tType == 1 ||
  6508. tType == 4) &&
  6509. tool.tool.indexOf(52) != -1
  6510. "
  6511. class="worksBox"
  6512. >
  6513. <div
  6514. class="zuoyeYulan"
  6515. v-if="
  6516. worksStudent.length &&
  6517. worksStudent[toolIndex].length > 0
  6518. "
  6519. >
  6520. <div class="worksTop">
  6521. <div>作业预览</div>
  6522. <div
  6523. class="corOpen"
  6524. @click="contract(toolIndex)"
  6525. v-if="
  6526. (isCloseList[toolIndex].isCloseBoolean) &&
  6527. isCloseList[toolIndex].isClose == 0
  6528. "
  6529. >
  6530. 折叠
  6531. </div>
  6532. <div
  6533. class="corOpen"
  6534. @click="contract(toolIndex)"
  6535. v-if="isCloseList[toolIndex].isClose == 1"
  6536. >
  6537. 展开
  6538. </div>
  6539. </div>
  6540. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6541. </div>
  6542. <div
  6543. :id="'tool-' + toolIndex"
  6544. :style="{
  6545. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6546. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6547. }"
  6548. class="worksDetailBox"
  6549. v-if="
  6550. worksStudent.length &&
  6551. worksStudent[toolIndex].length > 0
  6552. "
  6553. >
  6554. <div
  6555. class="works"
  6556. style="
  6557. width: 200px;
  6558. height: 140px;
  6559. margin: 10px 10px 10px 0;
  6560. border-radius: 15px;
  6561. box-shadow: 0 0 6px 1px #dfdada;
  6562. "
  6563. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6564. :key="wIndex"
  6565. :class="w.type == 1 ? 'isTypeOne' : ''"
  6566. >
  6567. <div class="workImg">
  6568. <img :src="word" @click="openWord(w)" alt />
  6569. <!-- @click="openFile(w.works)" -->
  6570. <div
  6571. class="answerScore"
  6572. v-if="w.score"
  6573. @click.stop="openScore(w)"
  6574. :class="{
  6575. rightW:
  6576. w.userid == userid ||
  6577. tType == 1 ||
  6578. tType == 4 ||
  6579. w.ateacher == userid,
  6580. }"
  6581. >
  6582. {{ JSON.parse(w.score).wScore }}分
  6583. </div>
  6584. <div
  6585. class="answerScore"
  6586. @click.stop="openScore(w)"
  6587. v-else-if="courseDetail.userid == userid"
  6588. :class="{
  6589. rightW:
  6590. w.userid == userid ||
  6591. tType == 1 ||
  6592. tType == 4 ||
  6593. w.ateacher == userid,
  6594. }"
  6595. >
  6596. 评分
  6597. </div>
  6598. <img
  6599. class="deleteImg"
  6600. src="../assets/deleteworks.png"
  6601. v-if="
  6602. w.userid == userid || tType == 1 || tType == 4
  6603. "
  6604. @click.stop="deleteWorks(w.wid)"
  6605. alt
  6606. />
  6607. </div>
  6608. <div class="comment" style="min-width: 200px">
  6609. <div class="worksName">
  6610. <div>{{ w.sName }}</div>
  6611. </div>
  6612. <div class="commentList">
  6613. <div class="commentList">
  6614. <div
  6615. class="commentImg"
  6616. @click="
  6617. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6618. "
  6619. >
  6620. <img
  6621. :src="w.isLikes == true ? likes : noLikes"
  6622. alt=""
  6623. />
  6624. </div>
  6625. <div>{{ w.likesCount }}</div>
  6626. </div>
  6627. <div class="commentList" style="margin-right: 15px">
  6628. <div
  6629. class="commentImg"
  6630. @click="commentOther(w, toolIndex, wIndex)"
  6631. >
  6632. <img
  6633. src="../assets/icon/comment/comment.png"
  6634. alt=""
  6635. />
  6636. </div>
  6637. <div>{{ w.commentCount }}</div>
  6638. </div>
  6639. </div>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6644. 未提交
  6645. </div>
  6646. <div
  6647. class="noWorksS"
  6648. v-if="noWorksS && noWorksS[toolIndex].length"
  6649. >
  6650. <div
  6651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6652. :key="sIndex"
  6653. class="noWorksName"
  6654. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6655. >
  6656. <el-tooltip effect="dark" :content="s.student" placement="top">
  6657. <span>{{ s.student }}</span>
  6658. </el-tooltip>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. <div
  6663. v-if="
  6664. tType &&
  6665. tType == 2 &&
  6666. !sIsOpen &&
  6667. tool.tool.indexOf(52) != -1
  6668. "
  6669. class="worksBox"
  6670. >
  6671. <div
  6672. class="zuoyeYulan"
  6673. v-if="workStudent[toolIndex].length > 0"
  6674. >
  6675. <span class="worksTitle">作业预览</span>
  6676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6677. </div>
  6678. <div
  6679. class="worksDetailBox"
  6680. v-if="workStudent[toolIndex].length > 0"
  6681. >
  6682. <div
  6683. class="works"
  6684. style="
  6685. width: 200px;
  6686. height: 140px;
  6687. margin: 10px 10px 10px 0;
  6688. box-shadow: 0 0 6px 1px #dfdada;
  6689. "
  6690. v-for="(w, wIndex) in workStudent[toolIndex]"
  6691. :key="wIndex"
  6692. >
  6693. <div class="workImg">
  6694. <img :src="word" @click="openWord(w)" alt />
  6695. <div
  6696. class="answerScore"
  6697. v-if="w.score"
  6698. @click.stop="openScore(w)"
  6699. :class="{
  6700. rightW:
  6701. w.userid == userid || tType == 1 || tType == 4,
  6702. }"
  6703. >
  6704. {{ JSON.parse(w.score).wScore }}分
  6705. </div>
  6706. <div
  6707. class="answerScore"
  6708. @click.stop="openScore(w)"
  6709. v-else-if="courseDetail.userid == userid"
  6710. :class="{
  6711. rightW:
  6712. w.userid == userid || tType == 1 || tType == 4,
  6713. }"
  6714. >
  6715. 评分
  6716. </div>
  6717. <img
  6718. class="deleteImg"
  6719. src="../assets/deleteworks.png"
  6720. v-if="
  6721. w.userid == userid || tType == 1 || tType == 4
  6722. "
  6723. @click.stop="deleteWorks(w.wid)"
  6724. alt
  6725. />
  6726. </div>
  6727. <div class="worksName">
  6728. <div>{{ w.sName }}</div>
  6729. </div>
  6730. </div>
  6731. </div>
  6732. </div>
  6733. <div
  6734. v-if="tool.tool.indexOf(49) != -1"
  6735. class="xuan_right_box"
  6736. style="margin: 0 15px 0 25px; width: 93%"
  6737. >
  6738. <div
  6739. v-if="courseDetail.userid == userid"
  6740. style="
  6741. display: flex;
  6742. justify-content: flex-end;
  6743. margin-right: 10px;
  6744. "
  6745. >
  6746. <el-button
  6747. type="primary"
  6748. size="small"
  6749. @click="addTools(49, toolIndex, taskCount)"
  6750. >分组设置</el-button
  6751. >
  6752. </div>
  6753. <div
  6754. v-if="groupStudentUid[toolIndex]"
  6755. class="group_staic_box"
  6756. >
  6757. <div
  6758. v-for="(gp, gd) in tool.groupJson.group"
  6759. :key="gd"
  6760. class="group_staic"
  6761. >
  6762. <span> {{ gp.name }}</span>
  6763. <span>
  6764. 目前人数{{
  6765. groupStudentUid[toolIndex][gd].length
  6766. }}人</span
  6767. >
  6768. </div>
  6769. </div>
  6770. </div>
  6771. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6772. <div
  6773. class="zuoyeYulan"
  6774. v-if="
  6775. worksStudent.length &&
  6776. worksStudent[toolIndex].length > 0
  6777. "
  6778. >
  6779. <span class="worksTitle">作业预览</span>
  6780. </div>
  6781. <div>
  6782. <div
  6783. class="group_workBox"
  6784. v-for="(g, gindex) in tool.groupJson.group"
  6785. :key="gindex"
  6786. >
  6787. <div
  6788. class="group_box"
  6789. v-if="
  6790. groupStudentUid[toolIndex] &&
  6791. worksStudent[toolIndex] &&
  6792. (worksStudent[toolIndex][gindex].length ||
  6793. groupStudentUid[toolIndex][gindex].indexOf(
  6794. userid
  6795. ) != -1)
  6796. "
  6797. >
  6798. <div class="group_title">
  6799. <el-tooltip
  6800. class="item"
  6801. effect="light"
  6802. :content="g.name"
  6803. placement="top"
  6804. >
  6805. <div class="group_name">{{ g.name }}</div>
  6806. </el-tooltip>
  6807. <el-button
  6808. type="primary"
  6809. v-if="
  6810. groupStudentUid[toolIndex][gindex].indexOf(
  6811. userid
  6812. ) != -1
  6813. "
  6814. @click="groupUpload(toolIndex, taskCount, gindex)"
  6815. >上传作业</el-button
  6816. >
  6817. </div>
  6818. <div class="group_work">
  6819. <div
  6820. class="works"
  6821. style="
  6822. width: 200px;
  6823. height: 140px;
  6824. margin: 10px 10px 10px 0;
  6825. border-radius: 15px;
  6826. box-shadow: 0 0 6px 1px #dfdada;
  6827. "
  6828. v-for="(w, wIndex) in worksStudent[toolIndex][
  6829. gindex
  6830. ]"
  6831. :key="wIndex"
  6832. :class="w.type == 1 ? 'isTypeOne' : ''"
  6833. >
  6834. <div class="workImg" v-if="w.type == 0">
  6835. <img
  6836. :src="w.works"
  6837. @click="previewImg(w.works,w)"
  6838. alt
  6839. />
  6840. <div
  6841. class="answerScore"
  6842. v-if="w.score"
  6843. @click.stop="openScore(w)"
  6844. :class="{
  6845. rightW:
  6846. w.userid == userid ||
  6847. tType == 1 ||
  6848. tType == 4 ||
  6849. w.ateacher == userid,
  6850. }"
  6851. >
  6852. {{ JSON.parse(w.score).wScore }}分
  6853. </div>
  6854. <div
  6855. class="answerScore"
  6856. @click.stop="openScore(w)"
  6857. v-else-if="courseDetail.userid == userid"
  6858. :class="{
  6859. rightW:
  6860. w.userid == userid ||
  6861. tType == 1 ||
  6862. tType == 4 ||
  6863. w.ateacher == userid,
  6864. }"
  6865. >
  6866. 评分
  6867. </div>
  6868. <img
  6869. class="deleteImg"
  6870. src="../assets/deleteworks.png"
  6871. v-if="
  6872. w.userid == userid ||
  6873. tType == 1 ||
  6874. tType == 4
  6875. "
  6876. @click.stop="deleteWorks(w.wid)"
  6877. alt
  6878. />
  6879. </div>
  6880. <div class="workImg" v-if="w.type == 1">
  6881. <img
  6882. :src="word"
  6883. @click="openFile(w.works,w)"
  6884. alt
  6885. />
  6886. <!-- @click="openFile(w.works)" -->
  6887. <div
  6888. class="answerScore"
  6889. v-if="w.score"
  6890. @click.stop="openScore(w)"
  6891. :class="{
  6892. rightW:
  6893. w.userid == userid ||
  6894. tType == 1 ||
  6895. tType == 4 ||
  6896. w.ateacher == userid,
  6897. }"
  6898. >
  6899. {{ JSON.parse(w.score).wScore }}分
  6900. </div>
  6901. <div
  6902. class="answerScore"
  6903. @click.stop="openScore(w)"
  6904. v-else-if="courseDetail.userid == userid"
  6905. :class="{
  6906. rightW:
  6907. w.userid == userid ||
  6908. tType == 1 ||
  6909. tType == 4 ||
  6910. w.ateacher == userid,
  6911. }"
  6912. >
  6913. 评分
  6914. </div>
  6915. <img
  6916. class="deleteImg"
  6917. src="../assets/deleteworks.png"
  6918. v-if="
  6919. w.userid == userid ||
  6920. tType == 1 ||
  6921. tType == 4
  6922. "
  6923. @click.stop="deleteWorks(w.wid)"
  6924. alt
  6925. />
  6926. </div>
  6927. <div class="workImg" v-if="w.type == 3">
  6928. <img
  6929. style="cursor: pointer"
  6930. :src="video"
  6931. @click="openVideo(w)"
  6932. alt
  6933. />
  6934. <!-- @click="openVideo(w.works)" -->
  6935. <div
  6936. class="answerScore"
  6937. v-if="w.score"
  6938. @click.stop="openScore(w)"
  6939. :class="{
  6940. rightW:
  6941. w.userid == userid ||
  6942. tType == 1 ||
  6943. tType == 4 ||
  6944. w.ateacher == userid,
  6945. }"
  6946. >
  6947. {{ JSON.parse(w.score).wScore }}分
  6948. </div>
  6949. <div
  6950. class="answerScore"
  6951. @click.stop="openScore(w)"
  6952. v-else-if="courseDetail.userid == userid"
  6953. :class="{
  6954. rightW:
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4 ||
  6958. w.ateacher == userid,
  6959. }"
  6960. >
  6961. 评分
  6962. </div>
  6963. <img
  6964. class="deleteImg"
  6965. src="../assets/deleteworks.png"
  6966. v-if="
  6967. w.userid == userid ||
  6968. tType == 1 ||
  6969. tType == 4
  6970. "
  6971. @click.stop="deleteWorks(w.wid)"
  6972. alt
  6973. />
  6974. </div>
  6975. <div class="workImg" v-if="w.type == 12">
  6976. <img
  6977. style="cursor: pointer"
  6978. :src="word2"
  6979. @click="downloadFile(w.works)"
  6980. alt
  6981. />
  6982. <!-- @click="openVideo(w.works)" -->
  6983. <div
  6984. class="answerScore"
  6985. v-if="w.score"
  6986. @click.stop="openScore(w)"
  6987. :class="{
  6988. rightW:
  6989. w.userid == userid ||
  6990. tType == 1 ||
  6991. tType == 4 ||
  6992. w.ateacher == userid,
  6993. }"
  6994. >
  6995. {{ JSON.parse(w.score).wScore }}分
  6996. </div>
  6997. <div
  6998. class="answerScore"
  6999. @click.stop="openScore(w)"
  7000. v-else-if="courseDetail.userid == userid"
  7001. :class="{
  7002. rightW:
  7003. w.userid == userid ||
  7004. tType == 1 ||
  7005. tType == 4 ||
  7006. w.ateacher == userid,
  7007. }"
  7008. >
  7009. 评分
  7010. </div>
  7011. <img
  7012. class="deleteImg"
  7013. src="../assets/deleteworks.png"
  7014. v-if="
  7015. w.userid == userid ||
  7016. tType == 1 ||
  7017. tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="comment" style="min-width: 200px">
  7024. <div class="worksName">
  7025. <div>{{ w.sName }}</div>
  7026. </div>
  7027. <div class="commentList">
  7028. <div class="commentList">
  7029. <div
  7030. class="commentImg"
  7031. @click="
  7032. isLikes(
  7033. w.wid,
  7034. userid,
  7035. 1,
  7036. null,
  7037. w.isLikes,
  7038. w.sName
  7039. )
  7040. "
  7041. >
  7042. <img
  7043. :src="
  7044. w.isLikes == true ? likes : noLikes
  7045. "
  7046. alt=""
  7047. />
  7048. </div>
  7049. <div>{{ w.likesCount }}</div>
  7050. </div>
  7051. <div
  7052. class="commentList"
  7053. style="margin-right: 15px"
  7054. >
  7055. <div
  7056. class="commentImg"
  7057. @click="
  7058. commentOther(
  7059. w,
  7060. toolIndex,
  7061. wIndex,
  7062. gindex
  7063. )
  7064. "
  7065. >
  7066. <img
  7067. src="../assets/icon/comment/comment.png"
  7068. alt=""
  7069. />
  7070. </div>
  7071. <div>{{ w.commentCount }}</div>
  7072. </div>
  7073. </div>
  7074. </div>
  7075. </div>
  7076. </div>
  7077. </div>
  7078. </div>
  7079. </div>
  7080. </div>
  7081. </div>
  7082. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7083. 上传文件
  7084. <input
  7085. type="file"
  7086. accept="image/png, image/gif, image/jpeg"
  7087. style="display: none"
  7088. @change="beforeUpload1($event, 2, index)"
  7089. />
  7090. </div>-->
  7091. </div>
  7092. </div>
  7093. <!-- <div
  7094. class="vedioBox"
  7095. style="margin-top: 10px"
  7096. v-if="
  7097. courseDetail.userid == userid ||
  7098. (courseDetail.course_teacher &&
  7099. courseDetail.course_teacher.indexOf(userid) != -1)
  7100. "
  7101. :style="{
  7102. borderRadius:
  7103. !(
  7104. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7105. .toolChoose[0].tool &&
  7106. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7107. .toolChoose[0].tool.length > 0
  7108. ) &&
  7109. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7110. .taskDetail == '' &&
  7111. vChapterData[taskCount].length == 0 &&
  7112. fileC[taskCount].length == 0
  7113. ? '0 0 20px 20px'
  7114. : '20px',
  7115. }"
  7116. >
  7117. <div
  7118. class="queTop"
  7119. @click="isClose = !isClose"
  7120. style="
  7121. padding: 15px 0 15px 37px;
  7122. justify-content: space-between;
  7123. "
  7124. >
  7125. <div class="queTopTitle">新增工具</div>
  7126. <div class="queTopRight">
  7127. <div class="queTopClose" v-if="isClose == 0">
  7128. 展开
  7129. <div class="closeImg">
  7130. <img src="../assets/icon/newIcon/close.png" alt="" />
  7131. </div>
  7132. </div>
  7133. <div class="queTopClose" v-if="isClose == 1">
  7134. 折叠
  7135. <div class="openImg">
  7136. <img src="../assets/icon/newIcon/open.png" alt="" />
  7137. </div>
  7138. </div>
  7139. <el-button
  7140. style="margin: 0 30px 0 auto"
  7141. type="primary"
  7142. size="small"
  7143. v-if="isClose == 1 && checktoolArray.length > 0"
  7144. @click.stop="addToolChoose"
  7145. >确定</el-button
  7146. >
  7147. </div>
  7148. </div>
  7149. <div
  7150. class="tool_work_box"
  7151. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7152. >
  7153. <div class="tool_box">
  7154. <div class="tool_type_box">
  7155. <div class="chooseWho">
  7156. <div
  7157. :class="toolType == 0 ? 'isChooseActive' : ''"
  7158. @click="(toolType = 0), $forceUpdate()"
  7159. >
  7160. 互动类
  7161. </div>
  7162. <div
  7163. :class="toolType == 1 ? 'isChooseActive' : ''"
  7164. @click="(toolType = 1), $forceUpdate()"
  7165. >
  7166. 思维类
  7167. </div>
  7168. <div
  7169. :class="toolType == 2 ? 'isChooseActive' : ''"
  7170. @click="(toolType = 2), $forceUpdate()"
  7171. >
  7172. 测评类
  7173. </div>
  7174. <div
  7175. :class="toolType == 3 ? 'isChooseActive' : ''"
  7176. @click="(toolType = 3), $forceUpdate()"
  7177. >
  7178. 编程类
  7179. </div>
  7180. <div
  7181. :class="toolType == 5 ? 'isChooseActive' : ''"
  7182. @click="(toolType = 5), $forceUpdate()"
  7183. >
  7184. 学科类
  7185. </div>
  7186. </div>
  7187. </div>
  7188. <div>
  7189. <div class="toolSort" v-if="toolType == 0">
  7190. <div class="tool">
  7191. <div class="whiteBIcon" @click="addTools2(10)">
  7192. <img
  7193. src="../assets/icon/thirdToolList/time.png"
  7194. alt
  7195. />
  7196. <div style="margin: 5px 0">倒计时</div>
  7197. </div>
  7198. <div class="check" @click="addTools2(10)">
  7199. <img
  7200. src="../assets/icon/checkNo.png"
  7201. alt
  7202. v-if="checktoolArray.indexOf(10) == -1"
  7203. />
  7204. <div class="checkDiv" v-else>
  7205. <img src="../assets/icon/checkedIs.png" alt /><span
  7206. >已选择</span
  7207. >
  7208. </div>
  7209. </div>
  7210. </div>
  7211. <div class="tool">
  7212. <div class="whiteBIcon" @click="addTools2(65)">
  7213. <img
  7214. src="../assets/icon/firstToolList/pickPeople.png"
  7215. alt
  7216. />
  7217. <div style="margin: 5px 0">挑人</div>
  7218. </div>
  7219. <div class="check" @click="addTools2(65)">
  7220. <img
  7221. src="../assets/icon/checkNo.png"
  7222. alt
  7223. v-if="checktoolArray.indexOf(65) == -1"
  7224. />
  7225. <div class="checkDiv" v-else>
  7226. <img src="../assets/icon/checkedIs.png" alt /><span
  7227. >已选择</span
  7228. >
  7229. </div>
  7230. </div>
  7231. </div>
  7232. </div>
  7233. <div class="toolSort" v-if="toolType == 1">
  7234. <div class="tool">
  7235. <div class="whiteBIcon" @click="addTools2(7)">
  7236. <img
  7237. src="../assets/icon/secondToolList/mindNetwork.png"
  7238. alt
  7239. />
  7240. <div style="margin: 5px 0">思维网格</div>
  7241. </div>
  7242. <div class="check" @click="addTools2(7)">
  7243. <img
  7244. src="../assets/icon/checkNo.png"
  7245. alt
  7246. v-if="checktoolArray.indexOf(7) == -1"
  7247. />
  7248. <div class="checkDiv" v-else>
  7249. <img src="../assets/icon/checkedIs.png" alt /><span
  7250. >已选择</span
  7251. >
  7252. </div>
  7253. </div>
  7254. </div>
  7255. <div class="tool">
  7256. <div class="whiteBIcon" @click="addTools2(1)">
  7257. <img
  7258. src="../assets/icon/secondToolList/whiteBoard.png"
  7259. alt
  7260. />
  7261. <div style="margin: 5px 0">电子白板</div>
  7262. </div>
  7263. <div class="check" @click="addTools2(1)">
  7264. <img
  7265. src="../assets/icon/checkNo.png"
  7266. alt
  7267. v-if="checktoolArray.indexOf(1) == -1"
  7268. />
  7269. <div class="checkDiv" v-else>
  7270. <img src="../assets/icon/checkedIs.png" alt /><span
  7271. >已选择</span
  7272. >
  7273. </div>
  7274. </div>
  7275. </div>
  7276. <div class="tool">
  7277. <div class="whiteBIcon" @click="addTools2(52)">
  7278. <img
  7279. src="../assets/icon/fourthToolList/text.png"
  7280. alt
  7281. />
  7282. <div style="margin: 5px 0">文档</div>
  7283. </div>
  7284. <div class="check" @click="addTools2(52)">
  7285. <img
  7286. src="../assets/icon/checkNo.png"
  7287. alt
  7288. v-if="checktoolArray.indexOf(52) == -1"
  7289. />
  7290. <div class="checkDiv" v-else>
  7291. <img src="../assets/icon/checkedIs.png" alt /><span
  7292. >已选择</span
  7293. >
  7294. </div>
  7295. </div>
  7296. </div>
  7297. <div class="tool">
  7298. <div class="whiteBIcon" @click="addTools2(3)">
  7299. <img
  7300. src="../assets/icon/secondToolList/mindMapping.png"
  7301. alt
  7302. />
  7303. <div style="margin: 5px 0">思维导图</div>
  7304. </div>
  7305. <div class="check" @click="addTools2(3)">
  7306. <img
  7307. src="../assets/icon/checkNo.png"
  7308. alt
  7309. v-if="checktoolArray.indexOf(3) == -1"
  7310. />
  7311. <div class="checkDiv" v-else>
  7312. <img src="../assets/icon/checkedIs.png" alt /><span
  7313. >已选择</span
  7314. >
  7315. </div>
  7316. </div>
  7317. </div>
  7318. <div class="tool">
  7319. <div class="whiteBIcon" @click="addTools2(48)">
  7320. <img
  7321. src="../assets/icon/fourthToolList/table.png"
  7322. alt
  7323. />
  7324. <div style="margin: 5px 0">表格</div>
  7325. </div>
  7326. <div class="check" @click="addTools2(48)">
  7327. <img
  7328. src="../assets/icon/checkNo.png"
  7329. alt
  7330. v-if="checktoolArray.indexOf(48) == -1"
  7331. />
  7332. <div class="checkDiv" v-else>
  7333. <img src="../assets/icon/checkedIs.png" alt /><span
  7334. >已选择</span
  7335. >
  7336. </div>
  7337. </div>
  7338. </div>
  7339. </div>
  7340. <div class="toolSort" v-if="toolType == 6">
  7341. <div v-show="tooC == 49">
  7342. <img
  7343. @click="addTools(tooC, toolIndex, taskCount)"
  7344. src="../assets/icon/fourthToolList/group.png"
  7345. alt
  7346. />
  7347. <div style="margin: 5px 0">学生分组</div>
  7348. </div>
  7349. </div>
  7350. <div class="toolSort" v-if="toolType == 2">
  7351. <div class="tool">
  7352. <div class="whiteBIcon" @click="addTools2(16)">
  7353. <img
  7354. src="../assets/icon/thirdToolList/work.png"
  7355. alt
  7356. />
  7357. <div style="margin: 5px 0">作业提交</div>
  7358. </div>
  7359. <div class="check" @click="addTools2(16)">
  7360. <img
  7361. src="../assets/icon/checkNo.png"
  7362. alt
  7363. v-if="checktoolArray.indexOf(16) == -1"
  7364. />
  7365. <div class="checkDiv" v-else>
  7366. <img src="../assets/icon/checkedIs.png" alt /><span
  7367. >已选择</span
  7368. >
  7369. </div>
  7370. </div>
  7371. </div>
  7372. <div class="tool">
  7373. <div class="whiteBIcon" @click="addTools2(50)">
  7374. <img
  7375. src="../assets/icon/thirdToolList/plwork.png"
  7376. alt
  7377. />
  7378. <div style="margin: 5px 0">批量上传</div>
  7379. </div>
  7380. <div class="check" @click="addTools2(50)">
  7381. <img
  7382. src="../assets/icon/checkNo.png"
  7383. alt
  7384. v-if="checktoolArray.indexOf(50) == -1"
  7385. />
  7386. <div class="checkDiv" v-else>
  7387. <img src="../assets/icon/checkedIs.png" alt /><span
  7388. >已选择</span
  7389. >
  7390. </div>
  7391. </div>
  7392. </div>
  7393. </div>
  7394. <div class="toolSort" v-if="toolType == 3">
  7395. <div class="tool">
  7396. <div class="whiteBIcon" @click="addTools2(18)">
  7397. <img
  7398. src="../assets/icon/thirdToolList/trainPlatform.png"
  7399. alt
  7400. />
  7401. <div style="margin: 5px 0">训练平台</div>
  7402. </div>
  7403. <div class="check" @click="addTools2(18)">
  7404. <img
  7405. src="../assets/icon/checkNo.png"
  7406. alt
  7407. v-if="checktoolArray.indexOf(18) == -1"
  7408. />
  7409. <div class="checkDiv" v-else>
  7410. <img src="../assets/icon/checkedIs.png" alt /><span
  7411. >已选择</span
  7412. >
  7413. </div>
  7414. </div>
  7415. </div>
  7416. <div class="tool">
  7417. <div class="whiteBIcon" @click="addTools2(21)">
  7418. <img
  7419. src="../assets/icon/fourthToolList/program.png"
  7420. alt
  7421. />
  7422. <div style="margin: 5px 0">AIoT Blockly</div>
  7423. </div>
  7424. <div class="check" @click="addTools2(21)">
  7425. <img
  7426. src="../assets/icon/checkNo.png"
  7427. alt
  7428. v-if="checktoolArray.indexOf(21) == -1"
  7429. />
  7430. <div class="checkDiv" v-else>
  7431. <img src="../assets/icon/checkedIs.png" alt /><span
  7432. >已选择</span
  7433. >
  7434. </div>
  7435. </div>
  7436. </div>
  7437. <div class="tool">
  7438. <div class="whiteBIcon" @click="addTools2(23)">
  7439. <img
  7440. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7441. alt
  7442. />
  7443. <div style="margin: 5px 0">AI Python</div>
  7444. </div>
  7445. <div class="check" @click="addTools2(23)">
  7446. <img
  7447. src="../assets/icon/checkNo.png"
  7448. alt
  7449. v-if="checktoolArray.indexOf(23) == -1"
  7450. />
  7451. <div class="checkDiv" v-else>
  7452. <img src="../assets/icon/checkedIs.png" alt /><span
  7453. >已选择</span
  7454. >
  7455. </div>
  7456. </div>
  7457. </div>
  7458. <div class="tool">
  7459. <div class="whiteBIcon" @click="addTools2(24)">
  7460. <img
  7461. src="../assets/icon/fourthToolList/AIprogram.png"
  7462. alt
  7463. />
  7464. <div style="margin: 5px 0">AI Blockly</div>
  7465. </div>
  7466. <div class="check" @click="addTools2(24)">
  7467. <img
  7468. src="../assets/icon/checkNo.png"
  7469. alt
  7470. v-if="checktoolArray.indexOf(24) == -1"
  7471. />
  7472. <div class="checkDiv" v-else>
  7473. <img src="../assets/icon/checkedIs.png" alt /><span
  7474. >已选择</span
  7475. >
  7476. </div>
  7477. </div>
  7478. </div>
  7479. <div class="tool">
  7480. <div class="whiteBIcon" @click="addTools2(32)">
  7481. <img
  7482. src="../assets/icon/thirdToolList/code.png"
  7483. alt
  7484. />
  7485. <div style="margin: 5px 0">源码编辑</div>
  7486. </div>
  7487. <div class="check" @click="addTools2(32)">
  7488. <img
  7489. src="../assets/icon/checkNo.png"
  7490. alt
  7491. v-if="checktoolArray.indexOf(32) == -1"
  7492. />
  7493. <div class="checkDiv" v-else>
  7494. <img src="../assets/icon/checkedIs.png" alt /><span
  7495. >已选择</span
  7496. >
  7497. </div>
  7498. </div>
  7499. </div>
  7500. <div class="tool">
  7501. <div class="whiteBIcon" @click="addTools2(57)">
  7502. <img
  7503. src="../assets/icon/fourthToolList/cocopi.png"
  7504. alt
  7505. />
  7506. <div style="margin: 5px 0">CocoPi</div>
  7507. </div>
  7508. <div class="check" @click="addTools2(57)">
  7509. <img
  7510. src="../assets/icon/checkNo.png"
  7511. alt
  7512. v-if="checktoolArray.indexOf(57) == -1"
  7513. />
  7514. <div class="checkDiv" v-else>
  7515. <img src="../assets/icon/checkedIs.png" alt /><span
  7516. >已选择</span
  7517. >
  7518. </div>
  7519. </div>
  7520. </div>
  7521. <div class="tool">
  7522. <div class="whiteBIcon" @click="addTools2(63)">
  7523. <img
  7524. src="../assets/icon/fourthToolList/Wood.png"
  7525. alt
  7526. />
  7527. <div style="margin: 5px 0">海龟编程</div>
  7528. </div>
  7529. <div class="check" @click="addTools2(63)">
  7530. <img
  7531. src="../assets/icon/checkNo.png"
  7532. alt
  7533. v-if="checktoolArray.indexOf(63) == -1"
  7534. />
  7535. <div class="checkDiv" v-else>
  7536. <img src="../assets/icon/checkedIs.png" alt /><span
  7537. >已选择</span
  7538. >
  7539. </div>
  7540. </div>
  7541. </div>
  7542. </div>
  7543. <div class="toolSort" v-if="toolType == 5">
  7544. <div class="tool">
  7545. <div class="whiteBIcon" @click="addTools2(28)">
  7546. <img
  7547. src="../assets/icon/secondToolList/translation.png"
  7548. alt
  7549. />
  7550. <div style="margin: 5px 0">翻译</div>
  7551. </div>
  7552. <div class="check" @click="addTools2(28)">
  7553. <img
  7554. src="../assets/icon/checkNo.png"
  7555. alt
  7556. v-if="checktoolArray.indexOf(28) == -1"
  7557. />
  7558. <div class="checkDiv" v-else>
  7559. <img src="../assets/icon/checkedIs.png" alt /><span
  7560. >已选择</span
  7561. >
  7562. </div>
  7563. </div>
  7564. </div>
  7565. <div class="tool">
  7566. <div class="whiteBIcon" @click="addTools2(31)">
  7567. <img
  7568. src="../assets/icon/secondToolList/networkPanel.png"
  7569. alt
  7570. />
  7571. <div style="margin: 5px 0">数字画板</div>
  7572. </div>
  7573. <div class="check" @click="addTools2(31)">
  7574. <img
  7575. src="../assets/icon/checkNo.png"
  7576. alt
  7577. v-if="checktoolArray.indexOf(31) == -1"
  7578. />
  7579. <div class="checkDiv" v-else>
  7580. <img src="../assets/icon/checkedIs.png" alt /><span
  7581. >已选择</span
  7582. >
  7583. </div>
  7584. </div>
  7585. </div>
  7586. <div class="tool">
  7587. <div class="whiteBIcon" @click="addTools2(39)">
  7588. <img
  7589. src="../assets/icon/secondToolList/GeoGebra.png"
  7590. alt
  7591. />
  7592. <div style="margin: 5px 0">GeoGebra</div>
  7593. </div>
  7594. <div class="check" @click="addTools2(39)">
  7595. <img
  7596. src="../assets/icon/checkNo.png"
  7597. alt
  7598. v-if="checktoolArray.indexOf(39) == -1"
  7599. />
  7600. <div class="checkDiv" v-else>
  7601. <img src="../assets/icon/checkedIs.png" alt /><span
  7602. >已选择</span
  7603. >
  7604. </div>
  7605. </div>
  7606. </div>
  7607. <div class="tool">
  7608. <div class="whiteBIcon" @click="addTools2(66)">
  7609. <img
  7610. src="../assets/icon/secondToolList/formulaEdi.png"
  7611. alt
  7612. />
  7613. <div style="margin: 5px 0">公式编辑</div>
  7614. </div>
  7615. <div class="check" @click="addTools2(66)">
  7616. <img
  7617. src="../assets/icon/checkNo.png"
  7618. alt
  7619. v-if="checktoolArray.indexOf(66) == -1"
  7620. />
  7621. <div class="checkDiv" v-else>
  7622. <img src="../assets/icon/checkedIs.png" alt /><span
  7623. >已选择</span
  7624. >
  7625. </div>
  7626. </div>
  7627. </div>
  7628. <div class="tool">
  7629. <div class="whiteBIcon" @click="addTools2(67)">
  7630. <img
  7631. src="../assets/icon/secondToolList/molStr.png"
  7632. alt
  7633. />
  7634. <div style="margin: 5px 0">分子结构</div>
  7635. </div>
  7636. <div class="check" @click="addTools2(67)">
  7637. <img
  7638. src="../assets/icon/checkNo.png"
  7639. alt
  7640. v-if="checktoolArray.indexOf(67) == -1"
  7641. />
  7642. <div class="checkDiv" v-else>
  7643. <img src="../assets/icon/checkedIs.png" alt /><span
  7644. >已选择</span
  7645. >
  7646. </div>
  7647. </div>
  7648. </div>
  7649. <div class="tool">
  7650. <div class="whiteBIcon" @click="addTools2(68)">
  7651. <img
  7652. src="../assets/icon/secondToolList/timeAxis.png"
  7653. alt
  7654. />
  7655. <div style="margin: 5px 0">时间轴</div>
  7656. </div>
  7657. <div class="check" @click="addTools2(68)">
  7658. <img
  7659. src="../assets/icon/checkNo.png"
  7660. alt
  7661. v-if="checktoolArray.indexOf(68) == -1"
  7662. />
  7663. <div class="checkDiv" v-else>
  7664. <img src="../assets/icon/checkedIs.png" alt /><span
  7665. >已选择</span
  7666. >
  7667. </div>
  7668. </div>
  7669. </div>
  7670. </div>
  7671. <div class="toolSort" v-if="toolType == 7">
  7672. <div class="tool">
  7673. <div class="whiteBIcon" @click="addTools2(40)">
  7674. <img
  7675. src="../assets/icon/secondToolList/eval.png"
  7676. alt
  7677. />
  7678. <div style="margin: 5px 0">个人评价</div>
  7679. </div>
  7680. <div class="check" @click="addTools2(40)">
  7681. <img
  7682. src="../assets/icon/checkNo.png"
  7683. alt
  7684. v-if="checktoolArray.indexOf(40) == -1"
  7685. />
  7686. <div class="checkDiv" v-else>
  7687. <img src="../assets/icon/checkedIs.png" alt /><span
  7688. >已选择</span
  7689. >
  7690. </div>
  7691. </div>
  7692. </div>
  7693. </div>
  7694. <div class="toolSort" v-if="toolType == 4">
  7695. <div class="tool">
  7696. <div class="whiteBIcon" @click="addTools2(26)">
  7697. <img
  7698. src="../assets/icon/thirdToolList/courseDesign.png"
  7699. alt
  7700. />
  7701. <div style="margin: 5px 0">课程设计</div>
  7702. </div>
  7703. <div class="check" @click="addTools2(26)">
  7704. <img
  7705. src="../assets/icon/checkNo.png"
  7706. alt
  7707. v-if="checktoolArray.indexOf(26) == -1"
  7708. />
  7709. <div class="checkDiv" v-else>
  7710. <img src="../assets/icon/checkedIs.png" alt /><span
  7711. >已选择</span
  7712. >
  7713. </div>
  7714. </div>
  7715. </div>
  7716. <div class="tool">
  7717. <div class="whiteBIcon" @click="addTools2(25)">
  7718. <img
  7719. src="../assets/icon/thirdToolList/evalua.png"
  7720. alt
  7721. />
  7722. <div style="margin: 5px 0">目标管理</div>
  7723. </div>
  7724. <div class="check" @click="addTools2(25)">
  7725. <img
  7726. src="../assets/icon/checkNo.png"
  7727. alt
  7728. v-if="checktoolArray.indexOf(25) == -1"
  7729. />
  7730. <div class="checkDiv" v-else>
  7731. <img src="../assets/icon/checkedIs.png" alt /><span
  7732. >已选择</span
  7733. >
  7734. </div>
  7735. </div>
  7736. </div>
  7737. </div>
  7738. </div>
  7739. </div>
  7740. </div>
  7741. </div> -->
  7742. <div
  7743. class="vedioBox"
  7744. style="margin-top: 10px; border-radius: 20px"
  7745. v-if="
  7746. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7747. .eList &&
  7748. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7749. .eList.length &&
  7750. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7751. .eList.length > 0 &&
  7752. tType != 2
  7753. "
  7754. >
  7755. <div
  7756. class="queTop"
  7757. style="
  7758. font-size: 20px;
  7759. padding: 15px 0 15px 37px;
  7760. font-weight: bold;
  7761. "
  7762. >
  7763. <!-- <div class="question" style="width: 30px">
  7764. <img src="../assets/icon/toolIcon.png" alt />
  7765. </div>
  7766. <div class="queTitle">
  7767. <div>工具</div>
  7768. </div>-->
  7769. 评一评
  7770. </div>
  7771. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7772. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7773. <el-table
  7774. :data="
  7775. chapInfoList[courseType].chapterInfo[0].taskJson[
  7776. taskCount
  7777. ].eList
  7778. "
  7779. :header-cell-style="{ background: '#F0F4FA' }"
  7780. :row-class-name="tableRowClassName"
  7781. border
  7782. stripe
  7783. style="width: 100%"
  7784. >
  7785. <el-table-column
  7786. label="评价名称"
  7787. align="center"
  7788. >
  7789. <template slot-scope="scope"
  7790. ><div>{{ scope.row.value }}</div></template
  7791. >
  7792. </el-table-column>
  7793. <el-table-column
  7794. label="评价描述"
  7795. align="center"
  7796. >
  7797. <template slot-scope="scope"
  7798. ><div>
  7799. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7800. </div></template
  7801. >
  7802. </el-table-column>
  7803. <el-table-column label="目标" align="center">
  7804. <template slot-scope="scope"
  7805. ><div>
  7806. {{
  7807. scope.row.target
  7808. ? scope.row.target[scope.row.target.length - 1]
  7809. : "-"
  7810. }}
  7811. </div></template
  7812. ></el-table-column
  7813. >
  7814. </el-table>
  7815. <!-- <div
  7816. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7817. .chapterInfo[0].taskJson[taskCount].eList"
  7818. :key="eIndex"
  7819. class="elist_input_box"
  7820. >
  7821. <div style="width: 95%">
  7822. <div
  7823. style="
  7824. display: flex;
  7825. flex-direction: row;
  7826. flex-wrap: nowrap;
  7827. align-items: center;
  7828. "
  7829. >
  7830. <div style="max-width: calc(100% - 285px)">
  7831. <span>{{ eItem.value }}</span>
  7832. </div>
  7833. <div
  7834. style="
  7835. padding-left: 25px;
  7836. display: flex;
  7837. flex-direction: row;
  7838. align-items: center;
  7839. "
  7840. >
  7841. <el-rate
  7842. v-model="eItem.score"
  7843. :colors="colors"
  7844. disabled
  7845. ></el-rate>
  7846. </div>
  7847. </div>
  7848. <div class="elist_inptu_text" style="padding-left: 10px">
  7849. <span v-if="eItem.detail != ''">{{
  7850. eItem.detail
  7851. }}</span>
  7852. <span v-else style="color: #b2b1b3; font-size: 14px"
  7853. >暂无描述...</span
  7854. >
  7855. </div>
  7856. </div>
  7857. </div> -->
  7858. </div>
  7859. <div
  7860. v-if="evalua"
  7861. style="
  7862. border: 1px solid #e5e5e5;
  7863. max-width: 650px;
  7864. width: 100%;
  7865. margin-top: 20px;
  7866. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7867. "
  7868. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7869. >
  7870. <div class="e_add_top">
  7871. <div class="e_add_title" style="width: 100%">
  7872. <!-- <span>目标管理名称</span> -->
  7873. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7874. <img
  7875. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7876. src="../assets/line.png"
  7877. class="cru_line"
  7878. style="
  7879. width: 125px;
  7880. height: 20px;
  7881. bottom: -10px;
  7882. left: 5px;
  7883. "
  7884. />
  7885. <!-- <el-input
  7886. v-model="eTitle"
  7887. placeholder="请输入名称"
  7888. @change="setMindData"
  7889. ></el-input>-->
  7890. <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>
  7891. <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>
  7892. </div>
  7893. </div>
  7894. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7895. <div class="e_add_list_pbox">
  7896. <div class="e_add_list_pbox_title">
  7897. <!-- <span class="type_title">切换模式</span> -->
  7898. <div class="type_content">
  7899. <span
  7900. :class="{ active: typeMode == 1 }"
  7901. @click="typeMode = 1"
  7902. >目标树</span
  7903. >
  7904. <span
  7905. :class="{ active: typeMode == 2 }"
  7906. @click="typeMode = 2"
  7907. >目标罗盘</span
  7908. >
  7909. <!-- <span
  7910. :class="{ active: typeMode == 3 }"
  7911. @click="typeMode = 3"
  7912. >目标看板</span
  7913. > -->
  7914. </div>
  7915. </div>
  7916. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7917. <Mind
  7918. :showBar="false"
  7919. :mindData="data"
  7920. style="width: 100%"
  7921. v-show="typeMode == 1"
  7922. ></Mind>
  7923. <Sunburst
  7924. :Josn="eJson"
  7925. :num="eJSONNum"
  7926. style="width: 100%"
  7927. v-if="typeMode == 2"
  7928. ></Sunburst>
  7929. <SeeBoard
  7930. :Josn="eJson"
  7931. :num="eJSONNum"
  7932. :ename="eTitle"
  7933. style="width: 100%"
  7934. v-if="typeMode == 3"
  7935. >
  7936. </SeeBoard>
  7937. </div>
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>
  7942. </div>
  7943. <!-- <div
  7944. class="project_box"
  7945. style="margin-top: 15px; padding-bottom: 30px"
  7946. >
  7947. <div
  7948. style="
  7949. display: flex;
  7950. flex-wrap: nowrap;
  7951. flex-direction: column;
  7952. position: relative;
  7953. "
  7954. >
  7955. <div class="queTop">
  7956. <div class="question">
  7957. <img src="../assets/icon/homeWork.png" alt="" />
  7958. </div>
  7959. <div class="queTitle">
  7960. <div>作业提交<span>(提交图文视频等)</span></div>
  7961. <div>:任务:{{ task.task }}</div>
  7962. </div>
  7963. </div>
  7964. <div class="ediBottom">
  7965. <div
  7966. class="addEditor"
  7967. style="margin-top: 23px"
  7968. @click="openAddWork"
  7969. v-if="!isNoHomeWork"
  7970. >
  7971. 选择文件
  7972. </div>
  7973. <div
  7974. class="addEditor"
  7975. style="margin-top: 23px"
  7976. @click="openAddWork"
  7977. v-else
  7978. >
  7979. 已提交
  7980. </div>
  7981. </div>
  7982. </div>
  7983. </div>-->
  7984. </div>
  7985. </div>
  7986. <el-dialog
  7987. title="作业提交"
  7988. :visible.sync="dialogVisible"
  7989. :append-to-body="true"
  7990. width="500px"
  7991. :before-close="handleClose"
  7992. class="dialog_change"
  7993. >
  7994. <div class="marginT">
  7995. <div>上传文件</div>
  7996. <div
  7997. class="chapter_add"
  7998. @click="addImg($event)"
  7999. v-if="studyJuri[0].cover.length == 0"
  8000. >
  8001. <div class="up_photo">
  8002. <img src="../assets/icon/uploadImg.png" alt />
  8003. </div>
  8004. <!-- <input
  8005. type="file"
  8006. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8007. style="display: none"
  8008. @change="beforeUpload1($event, 1)"
  8009. /> -->
  8010. <input
  8011. type="file"
  8012. accept="*"
  8013. style="display: none"
  8014. @change="beforeUpload1($event, 1)"
  8015. />
  8016. <!-- <input
  8017. type="file"
  8018. accept="image/*"
  8019. capture="camera"
  8020. style="display: none"
  8021. @change="beforeUpload1($event, 1)"
  8022. /> -->
  8023. </div>
  8024. <div
  8025. class="chapter_add"
  8026. style="
  8027. display: flex;
  8028. width: 100%;
  8029. flex-direction: row;
  8030. flex-wrap: wrap;
  8031. justify-content: flex-start;
  8032. padding: 15px 0;
  8033. "
  8034. v-if="studyJuri[0].cover.length > 0"
  8035. >
  8036. <div class="upCover">
  8037. <img
  8038. :src="studyJuri[0].cover[0].url"
  8039. alt
  8040. v-if="fileType == 0"
  8041. />
  8042. <img :src="word" alt v-else-if="fileType == 1" />
  8043. <img :src="video" alt v-else-if="fileType == 2" />
  8044. <img :src="word2" alt v-else-if="fileType == 3" />
  8045. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8046. <div class="deleteWord" @click="clean(1)">
  8047. <img src="../assets/icon/deleteWorks.png" alt />
  8048. </div>
  8049. </div>
  8050. </div>
  8051. </div>
  8052. <div
  8053. class="upload_send"
  8054. @click="addCourseWorks(taskCount)"
  8055. v-if="!proVisible"
  8056. >
  8057. 提交
  8058. </div>
  8059. </el-dialog>
  8060. </div>
  8061. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8062. <classRoomHelper v-if="!['2'].includes(tType)" :videoStart="videoStart" @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(
  8063. '/courseDetail?userid=' +
  8064. userid +
  8065. '&oid=' +
  8066. oid +
  8067. '&org=' +
  8068. org +
  8069. '&cid=' +
  8070. classId +
  8071. '&courseId=' +
  8072. id +
  8073. '&tType=' +
  8074. tType +
  8075. '&screenType=' +
  8076. screenType
  8077. )"></classRoomHelper>
  8078. </div>
  8079. <div
  8080. class="pButton"
  8081. @click="(pzDialog = true), selectPz()"
  8082. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8083. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8084. >
  8085. <!-- 批 -->
  8086. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8087. </div>
  8088. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8089. <div class="pzTop2">
  8090. <!-- <div>评论</div>
  8091. <div @click="pzDialog = false">
  8092. <img src="../assets/close1.png" alt="" />
  8093. </div> -->
  8094. <div class="checkbox">
  8095. <!-- <div class="check" style="font-size: 25px; position: unset">
  8096. 评论
  8097. </div> -->
  8098. <div class="cb-tabList">
  8099. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8100. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8101. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8102. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8103. </div>
  8104. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8105. <el-option label="时间降序" :value="1"></el-option>
  8106. <el-option label="时间升序" :value="2"></el-option>
  8107. <el-option label="我的评课" :value="3"></el-option>
  8108. </el-select>
  8109. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8110. </div>
  8111. </div>
  8112. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8113. <div class="pzListBox" v-if="pzList && pzList.length">
  8114. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8115. <div class="pzNavTop">
  8116. <div>评</div>
  8117. <div>
  8118. {{
  8119. pz.username && pz.username.length > 5
  8120. ? pz.username.substring(0, 5) + "..."
  8121. : pz.username
  8122. }}的评论
  8123. </div>
  8124. <div
  8125. class="pzDelete"
  8126. v-if="pz.userid == userid"
  8127. @click="deletePz(pz.id)"
  8128. >
  8129. 删除
  8130. </div>
  8131. </div>
  8132. <div
  8133. @click="checkImg(getImgList(pz.content))"
  8134. class="pzContent cont"
  8135. v-html="pz.content"
  8136. v-if="pz.type == '1'"
  8137. ></div>
  8138. <div class="pzContent" v-if="pz.type == '2'">
  8139. <audio :src="pz.content" controls="controls" ref="audio">
  8140. Your browser does not support the audio element.
  8141. </audio>
  8142. </div>
  8143. <div class="pzContent" v-if="pz.type == '3'">
  8144. <img
  8145. :src="pz.content"
  8146. style="width: 90%; margin: 0 auto; display: block"
  8147. @click="previewImg(pz.content)"
  8148. />
  8149. </div>
  8150. <div class="timeAndReply">
  8151. <div class="time">
  8152. {{ pz.time }}
  8153. </div>
  8154. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8155. </div>
  8156. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8157. <div
  8158. v-for="(h, hIndex) in pz.hfList"
  8159. :key="hIndex"
  8160. class="hfItem"
  8161. >
  8162. <div class="whoReplyWho">
  8163. <div class="hfName">{{ h.username }}</div>
  8164. <div class="hfImg">
  8165. <img src="../assets/icon/newIcons/right.png" alt="" />
  8166. </div>
  8167. <div class="hfName">{{ pz.username }}</div>
  8168. </div>
  8169. <div class="hfContent" v-html="h.content"></div>
  8170. <div class="hfBottom">
  8171. <div class="hfTime">{{ h.time }}</div>
  8172. <div
  8173. class="deleteHfItem"
  8174. @click="deleteReply(h.id)"
  8175. v-if="userid == h.userid"
  8176. >
  8177. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8178. </div>
  8179. </div>
  8180. </div>
  8181. </div>
  8182. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8183. <div class="replyInput">
  8184. <el-input v-model="reply[pzIndex]"></el-input>
  8185. </div>
  8186. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8187. </div> -->
  8188. </div>
  8189. </div>
  8190. <div class="noPz" v-else>
  8191. <img src="../assets/icon/noPz.png" alt="" />
  8192. </div>
  8193. <div class="addPzButton">
  8194. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8195. 添加评论
  8196. </div>
  8197. <!-- <div class="img1">
  8198. <div @click="(addPzDialog = true), (pzType = 2)">
  8199. <img src="../assets/audio.png" /><span>音频</span>
  8200. </div>
  8201. </div> -->
  8202. </div>
  8203. </div>
  8204. <div class="scoreList" v-if="commentTagShow==1">
  8205. <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"/>
  8206. </div>
  8207. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8208. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8209. </div>
  8210. </div>
  8211. <div
  8212. v-if="toolDialogVisible == true"
  8213. class="toolMask"
  8214. @click="toolDialogVisible = false"
  8215. ></div>
  8216. <div v-if="toolDialogVisible == true" class="addToolCss">
  8217. <div class="toolTop">
  8218. <div style="font-weight: bold">新增工具</div>
  8219. <div @click="toolDialogVisible = false">
  8220. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8221. </div>
  8222. </div>
  8223. <div class="tool_box">
  8224. <div class="tool_type_box">
  8225. <div class="chooseWho">
  8226. <div
  8227. :class="toolType == 0 ? 'isChooseActive' : ''"
  8228. @click="(toolType = 0), $forceUpdate()"
  8229. >
  8230. 互动类
  8231. </div>
  8232. <div
  8233. :class="toolType == 1 ? 'isChooseActive' : ''"
  8234. @click="(toolType = 1), $forceUpdate()"
  8235. >
  8236. 思维类
  8237. </div>
  8238. <div
  8239. :class="toolType == 2 ? 'isChooseActive' : ''"
  8240. @click="(toolType = 2), $forceUpdate()"
  8241. >
  8242. 测评类
  8243. </div>
  8244. <div
  8245. :class="toolType == 3 ? 'isChooseActive' : ''"
  8246. @click="(toolType = 3), $forceUpdate()"
  8247. >
  8248. 编程类
  8249. </div>
  8250. <div
  8251. :class="toolType == 5 ? 'isChooseActive' : ''"
  8252. @click="(toolType = 5), $forceUpdate()"
  8253. >
  8254. 学科类
  8255. </div>
  8256. </div>
  8257. </div>
  8258. <div>
  8259. <div class="toolSort" v-if="toolType == 0">
  8260. <div
  8261. class="tool"
  8262. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8263. @click="addTools2(10)"
  8264. >
  8265. <div class="whiteBIcon">
  8266. <img src="../assets/icon/thirdToolList/time.png" alt />
  8267. <div style="margin: 5px 0">倒计时</div>
  8268. </div>
  8269. <div class="check">
  8270. <div
  8271. v-if="checktoolArray.indexOf(10) == -1"
  8272. class="noChoose"
  8273. ></div>
  8274. <div v-else class="isChoose"></div>
  8275. </div>
  8276. </div>
  8277. <div
  8278. class="tool"
  8279. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8280. @click="addTools2(65)"
  8281. >
  8282. <div class="whiteBIcon">
  8283. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8284. <div style="margin: 5px 0">挑人</div>
  8285. </div>
  8286. <div class="check">
  8287. <div
  8288. v-if="checktoolArray.indexOf(65) == -1"
  8289. class="noChoose"
  8290. ></div>
  8291. <div v-else class="isChoose"></div>
  8292. </div>
  8293. </div>
  8294. </div>
  8295. <div class="toolSort" v-if="toolType == 1">
  8296. <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8299. @click="addTools2(7)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8303. <div style="margin: 5px 0">思维网格</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(7) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div>
  8313. <div
  8314. class="tool"
  8315. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8316. @click="addTools2(1)"
  8317. >
  8318. <div class="whiteBIcon">
  8319. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8320. <div style="margin: 5px 0">电子白板</div>
  8321. </div>
  8322. <div class="check">
  8323. <div
  8324. v-if="checktoolArray.indexOf(1) == -1"
  8325. class="noChoose"
  8326. ></div>
  8327. <div v-else class="isChoose"></div>
  8328. </div>
  8329. </div>
  8330. <div
  8331. class="tool"
  8332. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8333. @click="addTools2(52)"
  8334. >
  8335. <div class="whiteBIcon">
  8336. <img src="../assets/icon/fourthToolList/text.png" alt />
  8337. <div style="margin: 5px 0">文档</div>
  8338. </div>
  8339. <div class="check">
  8340. <div
  8341. v-if="checktoolArray.indexOf(52) == -1"
  8342. class="noChoose"
  8343. ></div>
  8344. <div v-else class="isChoose"></div>
  8345. </div>
  8346. </div>
  8347. <div
  8348. class="tool"
  8349. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8350. @click="addTools2(3)"
  8351. >
  8352. <div class="whiteBIcon">
  8353. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8354. <div style="margin: 5px 0">思维导图</div>
  8355. </div>
  8356. <div class="check">
  8357. <div
  8358. v-if="checktoolArray.indexOf(3) == -1"
  8359. class="noChoose"
  8360. ></div>
  8361. <div v-else class="isChoose"></div>
  8362. </div>
  8363. </div>
  8364. <div
  8365. class="tool"
  8366. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8367. @click="addTools2(48)"
  8368. >
  8369. <div class="whiteBIcon">
  8370. <img src="../assets/icon/fourthToolList/table.png" alt />
  8371. <div style="margin: 5px 0">表格</div>
  8372. </div>
  8373. <div class="check">
  8374. <div
  8375. v-if="checktoolArray.indexOf(48) == -1"
  8376. class="noChoose"
  8377. ></div>
  8378. <div v-else class="isChoose"></div>
  8379. </div>
  8380. </div>
  8381. </div>
  8382. <div class="toolSort" v-if="toolType == 6">
  8383. <div v-show="tooC == 49">
  8384. <img
  8385. @click="addTools(tooC, toolIndex, taskCount)"
  8386. src="../assets/icon/fourthToolList/group.png"
  8387. alt
  8388. />
  8389. <div style="margin: 5px 0">学生分组</div>
  8390. </div>
  8391. </div>
  8392. <div class="toolSort" v-if="toolType == 2">
  8393. <div
  8394. class="tool"
  8395. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8396. @click="addTools2(16)"
  8397. >
  8398. <div class="whiteBIcon">
  8399. <img src="../assets/icon/thirdToolList/work.png" alt />
  8400. <div style="margin: 5px 0">作业提交</div>
  8401. </div>
  8402. <div class="check">
  8403. <div
  8404. v-if="checktoolArray.indexOf(16) == -1"
  8405. class="noChoose"
  8406. ></div>
  8407. <div v-else class="isChoose"></div>
  8408. </div>
  8409. </div>
  8410. <div
  8411. class="tool"
  8412. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8413. @click="addTools2(50)"
  8414. >
  8415. <div class="whiteBIcon">
  8416. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8417. <div style="margin: 5px 0">批量上传</div>
  8418. </div>
  8419. <div class="check">
  8420. <div
  8421. v-if="checktoolArray.indexOf(50) == -1"
  8422. class="noChoose"
  8423. ></div>
  8424. <div v-else class="isChoose"></div>
  8425. </div>
  8426. </div>
  8427. </div>
  8428. <div class="toolSort" v-if="toolType == 3">
  8429. <div
  8430. class="tool"
  8431. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8432. @click="addTools2(18)"
  8433. >
  8434. <div class="whiteBIcon">
  8435. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8436. <div style="margin: 5px 0">训练平台</div>
  8437. </div>
  8438. <div class="check">
  8439. <div
  8440. v-if="checktoolArray.indexOf(18) == -1"
  8441. class="noChoose"
  8442. ></div>
  8443. <div v-else class="isChoose"></div>
  8444. </div>
  8445. </div>
  8446. <div
  8447. class="tool"
  8448. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8449. @click="addTools2(21)"
  8450. >
  8451. <div class="whiteBIcon">
  8452. <img src="../assets/icon/fourthToolList/program.png" alt />
  8453. <div style="margin: 5px 0">AIoT Blockly</div>
  8454. </div>
  8455. <div class="check">
  8456. <div
  8457. v-if="checktoolArray.indexOf(21) == -1"
  8458. class="noChoose"
  8459. ></div>
  8460. <div v-else class="isChoose"></div>
  8461. </div>
  8462. </div>
  8463. <div
  8464. class="tool"
  8465. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8466. @click="addTools2(23)"
  8467. >
  8468. <div class="whiteBIcon">
  8469. <img
  8470. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8471. alt
  8472. />
  8473. <div style="margin: 5px 0">AI Python</div>
  8474. </div>
  8475. <div class="check">
  8476. <div
  8477. v-if="checktoolArray.indexOf(23) == -1"
  8478. class="noChoose"
  8479. ></div>
  8480. <div v-else class="isChoose"></div>
  8481. </div>
  8482. </div>
  8483. <div
  8484. class="tool"
  8485. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8486. @click="addTools2(24)"
  8487. >
  8488. <div class="whiteBIcon">
  8489. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8490. <div style="margin: 5px 0">AI Blockly</div>
  8491. </div>
  8492. <div class="check">
  8493. <div
  8494. v-if="checktoolArray.indexOf(24) == -1"
  8495. class="noChoose"
  8496. ></div>
  8497. <div v-else class="isChoose"></div>
  8498. </div>
  8499. </div>
  8500. <div
  8501. class="tool"
  8502. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8503. @click="addTools2(32)"
  8504. >
  8505. <div class="whiteBIcon">
  8506. <img src="../assets/icon/thirdToolList/code.png" alt />
  8507. <div style="margin: 5px 0">源码编辑</div>
  8508. </div>
  8509. <div class="check">
  8510. <div
  8511. v-if="checktoolArray.indexOf(32) == -1"
  8512. class="noChoose"
  8513. ></div>
  8514. <div v-else class="isChoose"></div>
  8515. </div>
  8516. </div>
  8517. <div
  8518. class="tool"
  8519. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8520. @click="addTools2(57)"
  8521. >
  8522. <div class="whiteBIcon">
  8523. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8524. <div style="margin: 5px 0">CocoPi</div>
  8525. </div>
  8526. <div class="check">
  8527. <div
  8528. v-if="checktoolArray.indexOf(57) == -1"
  8529. class="noChoose"
  8530. ></div>
  8531. <div v-else class="isChoose"></div>
  8532. </div>
  8533. </div>
  8534. <div
  8535. class="tool"
  8536. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8537. @click="addTools2(63)"
  8538. >
  8539. <div class="whiteBIcon">
  8540. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8541. <div style="margin: 5px 0">海龟编程</div>
  8542. </div>
  8543. <div class="check">
  8544. <div
  8545. v-if="checktoolArray.indexOf(63) == -1"
  8546. class="noChoose"
  8547. ></div>
  8548. <div v-else class="isChoose"></div>
  8549. </div>
  8550. </div>
  8551. <div
  8552. class="tool"
  8553. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8554. @click="addTools2(71)"
  8555. >
  8556. <div class="whiteBIcon">
  8557. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8558. <div style="margin: 5px 0">AI智能体</div>
  8559. </div>
  8560. <div class="check">
  8561. <div
  8562. v-if="checktoolArray.indexOf(71) == -1"
  8563. class="noChoose"
  8564. ></div>
  8565. <div v-else class="isChoose"></div>
  8566. </div>
  8567. </div>
  8568. </div>
  8569. <div class="toolSort" v-if="toolType == 7">
  8570. <div
  8571. class="tool"
  8572. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8573. @click="addTools2(40)"
  8574. >
  8575. <div class="whiteBIcon">
  8576. <img src="../assets/icon/secondToolList/eval.png" alt />
  8577. <div style="margin: 5px 0">个人评价</div>
  8578. </div>
  8579. <div class="check">
  8580. <div
  8581. v-if="checktoolArray.indexOf(40) == -1"
  8582. class="noChoose"
  8583. ></div>
  8584. <div v-else class="isChoose"></div>
  8585. </div>
  8586. </div>
  8587. </div>
  8588. <div class="toolSort" v-if="toolType == 5">
  8589. <div
  8590. class="tool"
  8591. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8592. @click="addTools2(28)"
  8593. >
  8594. <div class="whiteBIcon">
  8595. <img src="../assets/icon/secondToolList/translation.png" alt />
  8596. <div style="margin: 5px 0">翻译</div>
  8597. </div>
  8598. <div class="check">
  8599. <div
  8600. v-if="checktoolArray.indexOf(28) == -1"
  8601. class="noChoose"
  8602. ></div>
  8603. <div v-else class="isChoose"></div>
  8604. </div>
  8605. </div>
  8606. <div
  8607. class="tool"
  8608. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8609. @click="addTools2(31)"
  8610. >
  8611. <div class="whiteBIcon">
  8612. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8613. <div style="margin: 5px 0">数字画板</div>
  8614. </div>
  8615. <div class="check">
  8616. <div
  8617. v-if="checktoolArray.indexOf(31) == -1"
  8618. class="noChoose"
  8619. ></div>
  8620. <div v-else class="isChoose"></div>
  8621. </div>
  8622. </div>
  8623. <div
  8624. class="tool"
  8625. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8626. @click="addTools2(39)"
  8627. >
  8628. <div class="whiteBIcon">
  8629. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8630. <div style="margin: 5px 0">GeoGebra</div>
  8631. </div>
  8632. <div class="check">
  8633. <div
  8634. v-if="checktoolArray.indexOf(39) == -1"
  8635. class="noChoose"
  8636. ></div>
  8637. <div v-else class="isChoose"></div>
  8638. </div>
  8639. </div>
  8640. <div
  8641. class="tool"
  8642. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8643. @click="addTools2(66)"
  8644. >
  8645. <div class="whiteBIcon">
  8646. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8647. <div style="margin: 5px 0">公式编辑</div>
  8648. </div>
  8649. <div class="check">
  8650. <div
  8651. v-if="checktoolArray.indexOf(66) == -1"
  8652. class="noChoose"
  8653. ></div>
  8654. <div v-else class="isChoose"></div>
  8655. </div>
  8656. </div>
  8657. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8658. <div class="whiteBIcon" @click="addTools2(67)">
  8659. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8660. <div style="margin: 5px 0">分子结构</div>
  8661. </div>
  8662. <div class="check" @click="addTools2(67)">
  8663. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8664. <div v-else class="isChoose"></div>
  8665. </div>
  8666. </div> -->
  8667. <div
  8668. class="tool"
  8669. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8670. @click="addTools2(68)"
  8671. >
  8672. <div class="whiteBIcon">
  8673. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8674. <div style="margin: 5px 0">时间轴</div>
  8675. </div>
  8676. <div class="check">
  8677. <div
  8678. v-if="checktoolArray.indexOf(68) == -1"
  8679. class="noChoose"
  8680. ></div>
  8681. <div v-else class="isChoose"></div>
  8682. </div>
  8683. </div>
  8684. <!-- <div
  8685. class="tool"
  8686. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8687. @click="addTools2(69)"
  8688. >
  8689. <div class="whiteBIcon">
  8690. <img src="../assets/icon/secondToolList/english.png" alt />
  8691. <div style="margin: 5px 0">英语写作</div>
  8692. </div>
  8693. <div class="check">
  8694. <div
  8695. v-if="checktoolArray.indexOf(69) == -1"
  8696. class="noChoose"
  8697. ></div>
  8698. <div v-else class="isChoose"></div>
  8699. </div>
  8700. </div> -->
  8701. </div>
  8702. <div class="toolSort" v-if="toolType == 4">
  8703. <div
  8704. class="tool"
  8705. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8706. @click="addTools2(26)"
  8707. >
  8708. <div class="whiteBIcon">
  8709. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8710. <div style="margin: 5px 0">课程设计</div>
  8711. </div>
  8712. <div class="check">
  8713. <div
  8714. v-if="checktoolArray.indexOf(26) == -1"
  8715. class="noChoose"
  8716. ></div>
  8717. <div v-else class="isChoose"></div>
  8718. </div>
  8719. </div>
  8720. <div
  8721. class="tool"
  8722. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8723. @click="addTools2(25)"
  8724. >
  8725. <div class="whiteBIcon">
  8726. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8727. <div style="margin: 5px 0">目标管理</div>
  8728. </div>
  8729. <div class="check">
  8730. <div
  8731. v-if="checktoolArray.indexOf(25) == -1"
  8732. class="noChoose"
  8733. ></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. </div>
  8739. </div>
  8740. <span
  8741. slot="footer"
  8742. class="dialog-footer"
  8743. style="display: block; text-align: center; padding: 0 0 10px 0"
  8744. >
  8745. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8746. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8747. </span>
  8748. </div>
  8749. <div
  8750. v-if="replyDialogVisible == true"
  8751. class="addDialogCss"
  8752. v-el-drag-dialog
  8753. >
  8754. <div class="pzTop">
  8755. <div class="teacherPz">
  8756. <div class="teacherPzImg">
  8757. <img src="../assets/icon/teacherPz.png" alt="" />
  8758. </div>
  8759. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8760. </div>
  8761. <div @click="replyDialogVisible = false">
  8762. <img src="../assets/close1.png" class="pzClose" alt="" />
  8763. </div>
  8764. </div>
  8765. <div class="addPzBox">
  8766. <!-- <div class="addPzCheck">
  8767. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8768. >文本</span
  8769. >
  8770. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8771. >音频</span
  8772. >
  8773. </div> -->
  8774. <div style="height: calc(100% - 50px)">
  8775. <editor-bar
  8776. class="binfo_input pzConText"
  8777. style="width: 100% !important; margin: 0 auto"
  8778. placeholder="请输入回复描述"
  8779. v-model="reply"
  8780. @change="change"
  8781. ></editor-bar>
  8782. </div>
  8783. <div class="addTextCss" @click="addHf">确定</div>
  8784. </div>
  8785. </div>
  8786. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8787. <div class="pzTop">
  8788. <div class="teacherPz">
  8789. <div class="teacherPzImg">
  8790. <img src="../assets/icon/teacherPz.png" alt="" />
  8791. </div>
  8792. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8793. </div>
  8794. <div @click="addPzDialog = false">
  8795. <img src="../assets/close1.png" class="pzClose" alt="" />
  8796. </div>
  8797. </div>
  8798. <div class="addPzBox">
  8799. <div class="addPzCheck">
  8800. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8801. >文本</span
  8802. >
  8803. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8804. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8805. >音频</span
  8806. >
  8807. </div>
  8808. <div style="height: calc(100% - 95px)">
  8809. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8810. v-if="pzType == 1"></textarea> -->
  8811. <editor-bar
  8812. class="binfo_input pzConText"
  8813. style="width: 100% !important"
  8814. placeholder="请输入任务描述"
  8815. v-model="pzConText"
  8816. @change="change"
  8817. v-if="pzType == 1"
  8818. ></editor-bar>
  8819. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8820. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8821. <div @click="addImg($event)">
  8822. <el-button type="primary">上传图片</el-button>
  8823. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8824. @change="beforeUpload1($event, 4)" />
  8825. </div>
  8826. </div> -->
  8827. </div>
  8828. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8829. 确定
  8830. </div>
  8831. </div>
  8832. </div>
  8833. <div v-if="proVisible" class="mask">
  8834. <div class="progressBox">
  8835. <!-- <div id="closePro" class="closeCss">
  8836. <img src="../assets/icon/close.png" alt />
  8837. </div> -->
  8838. <div class="lbox">
  8839. <img src="../assets/loading.gif" />上传中,请稍后
  8840. </div>
  8841. <div style="margin-bottom: 10px">
  8842. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8843. </div>
  8844. <el-progress
  8845. :text-inside="true"
  8846. :stroke-width="20"
  8847. :percentage="progress"
  8848. style="width: 80%"
  8849. ></el-progress>
  8850. </div>
  8851. </div>
  8852. <div v-if="proVisible2" class="mask">
  8853. <div class="progressBox">
  8854. <div class="lbox">
  8855. <img src="../assets/loading.gif" />上传中,请稍后
  8856. </div>
  8857. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8858. </div>
  8859. </div>
  8860. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8861. <img width="100%" :src="dialogImageUrl" alt />
  8862. </el-dialog>
  8863. <el-dialog
  8864. :title="noteName != '' ? noteName : '查看问卷'"
  8865. :visible.sync="dialogVisible5"
  8866. :append-to-body="true"
  8867. width="1000px"
  8868. :before-close="handleClose"
  8869. class="dialog_diy dialog_diy3"
  8870. >
  8871. <div>
  8872. <div
  8873. class="a_add_title"
  8874. style="
  8875. display: flex;
  8876. flex-direction: row;
  8877. align-items: center;
  8878. justify-content: center;
  8879. "
  8880. >
  8881. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8882. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8883. </div>
  8884. <div class="a_addBox">
  8885. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8886. 题目内容
  8887. </div>
  8888. <div
  8889. class="a_add_box"
  8890. v-for="(item1, index1) in askJson.askCount"
  8891. :key="index1"
  8892. >
  8893. <div class="a_add_head">
  8894. <div style="display: flex">
  8895. <span class="askIndex"> {{ index1 + 1 }}</span>
  8896. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8897. </div>
  8898. <img
  8899. v-if="askJson.askJson[index1].img"
  8900. :src="askJson.askJson[index1].img"
  8901. style="height: 300px; margin-top: 10px; max-width: 100%"
  8902. />
  8903. </div>
  8904. <div class="a_add_body">
  8905. <div class="a_add_input">
  8906. <el-radio-group
  8907. v-model="radio[index1]"
  8908. v-if="
  8909. askJson.askJson[index1].type == '1' ||
  8910. !askJson.askJson[index1].type
  8911. "
  8912. >
  8913. <el-radio
  8914. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8915. .checkList"
  8916. :key="checkIndex"
  8917. :label="checkIndex"
  8918. :disabled="isAnswer"
  8919. class="redioStyle"
  8920. ><span v-html="item2"></span
  8921. ></el-radio>
  8922. </el-radio-group>
  8923. <el-checkbox-group
  8924. v-model="radio[index1]"
  8925. v-if="askJson.askJson[index1].type == '2'"
  8926. >
  8927. <el-checkbox
  8928. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8929. .checkList"
  8930. :key="checkIndex1"
  8931. :label="checkIndex1"
  8932. :disabled="isAnswer"
  8933. class="redioStyle"
  8934. ><span v-html="item2"></span>
  8935. </el-checkbox>
  8936. </el-checkbox-group>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. </div>
  8942. <span slot="footer" class="dialog-footer">
  8943. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8944. >取 消</el-button
  8945. >
  8946. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8947. >确 定</el-button
  8948. >
  8949. </span>
  8950. </el-dialog>
  8951. <el-dialog
  8952. :title="noteName != '' ? noteName : '查看问卷'"
  8953. :visible.sync="dialogVisible5Teacher"
  8954. :append-to-body="true"
  8955. width="1000px"
  8956. :before-close="handleClose"
  8957. class="dialog_diy dialog_diy3"
  8958. >
  8959. <div>
  8960. <div class="w_name">
  8961. 学生姓名:<span>{{ sStudent.student }}</span>
  8962. </div>
  8963. <div
  8964. class="a_add_title"
  8965. style="
  8966. display: flex;
  8967. flex-direction: row;
  8968. align-items: center;
  8969. justify-content: center;
  8970. "
  8971. >
  8972. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8973. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8974. </div>
  8975. <div class="a_addBox">
  8976. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8977. 题目内容
  8978. </div>
  8979. <div
  8980. class="a_add_box"
  8981. v-for="(item1, index1) in askJson.askCount"
  8982. :key="index1"
  8983. >
  8984. <div class="a_add_head">
  8985. <div style="display: flex">
  8986. <span class="askIndex">{{ index1 + 1 }}</span>
  8987. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8988. </div>
  8989. <img
  8990. v-if="askJson.askJson[index1].img"
  8991. :src="askJson.askJson[index1].img"
  8992. style="height: 300px; margin-top: 10px; max-width: 100%"
  8993. />
  8994. </div>
  8995. <div class="a_add_body">
  8996. <div class="a_add_input">
  8997. <el-radio-group
  8998. v-model="radio[index1]"
  8999. v-if="
  9000. askJson.askJson[index1].type == '1' ||
  9001. !askJson.askJson[index1].type
  9002. "
  9003. >
  9004. <el-radio
  9005. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9006. .checkList"
  9007. :key="checkIndex"
  9008. :label="checkIndex"
  9009. :disabled="isAnswer"
  9010. class="redioStyle"
  9011. ><span v-html="item2"></span
  9012. ></el-radio>
  9013. </el-radio-group>
  9014. <el-checkbox-group
  9015. v-model="radio[index1]"
  9016. v-if="askJson.askJson[index1].type == '2'"
  9017. >
  9018. <el-checkbox
  9019. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9020. .checkList"
  9021. :key="checkIndex1"
  9022. :label="checkIndex1"
  9023. :disabled="isAnswer"
  9024. class="redioStyle"
  9025. ><span v-html="item2"></span>
  9026. </el-checkbox>
  9027. </el-checkbox-group>
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. </div>
  9033. <span slot="footer" class="dialog-footer">
  9034. <el-button
  9035. @click="dialogVisible5Teacher = false"
  9036. v-show="noteName == ''"
  9037. >取 消</el-button
  9038. >
  9039. <el-button
  9040. type="primary"
  9041. @click="addStudentAskTeacher"
  9042. v-show="noteName == ''"
  9043. >确 定</el-button
  9044. >
  9045. </span>
  9046. </el-dialog>
  9047. <el-dialog
  9048. :title="noteName != '' ? noteName : '查看选择题'"
  9049. :visible.sync="dialogVisibleChoice"
  9050. :append-to-body="true"
  9051. width="1000px"
  9052. :before-close="handleClose"
  9053. class="dialog_diy dialog_diy3"
  9054. >
  9055. <div>
  9056. <!-- <div class="a_add_title" style="
  9057. display: flex;
  9058. flex-direction: row;
  9059. align-items: center;
  9060. justify-content: center;
  9061. ">
  9062. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9063. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9064. </div> -->
  9065. <div class="a_addBox">
  9066. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9067. 题目内容
  9068. </div>
  9069. <div
  9070. class="a_add_box"
  9071. v-for="(item1, index1) in testJson.testCount"
  9072. :key="index1"
  9073. >
  9074. <div class="a_add_head">
  9075. <div style="display: flex">
  9076. <span class="askIndex">{{ index1 + 1 }}</span>
  9077. <div
  9078. v-if="testJson.testJson[index1].type == '1'"
  9079. style="margin-right: 5px; min-width: 70px"
  9080. >
  9081. (单选题)
  9082. </div>
  9083. <div
  9084. v-if="testJson.testJson[index1].type == '2'"
  9085. style="margin-right: 5px; min-width: 70px"
  9086. >
  9087. (多选题)
  9088. </div>
  9089. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9090. </div>
  9091. <img
  9092. v-if="testJson.testJson[index1].img"
  9093. :src="testJson.testJson[index1].img"
  9094. style="height: 300px; margin-top: 10px; max-width: 100%"
  9095. />
  9096. </div>
  9097. <div
  9098. class="timuImgBox"
  9099. v-if="
  9100. testJson.testJson[index1].timuList &&
  9101. testJson.testJson[index1].timuList.length
  9102. "
  9103. >
  9104. <div
  9105. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9106. :key="tIndex"
  9107. class="timuImg"
  9108. @click.stop="previewImg(timg.src)"
  9109. >
  9110. <img :src="timg.src" alt="" />
  9111. </div>
  9112. </div>
  9113. <div class="a_add_body">
  9114. <div class="a_add_input">
  9115. <el-radio-group
  9116. v-model="radio[index1]"
  9117. v-if="testJson.testJson[index1].type == '1'"
  9118. >
  9119. <div class="radioBox">
  9120. <el-radio
  9121. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9122. .checkList"
  9123. :key="checkIndex"
  9124. :label="checkIndex"
  9125. :disabled="isAnswer"
  9126. class="redioStyle"
  9127. >
  9128. <div
  9129. style="margin-right: 10px"
  9130. v-if="item2 && item2.imgType && item2.imgType == 1"
  9131. >
  9132. <div class="inImg" @click.stop="previewImg(item2.src)">
  9133. <img :src="item2.src" alt="" />
  9134. </div>
  9135. </div>
  9136. <span v-else v-html="item2"></span>
  9137. </el-radio>
  9138. </div>
  9139. </el-radio-group>
  9140. <el-checkbox-group
  9141. v-model="radio[index1]"
  9142. v-if="testJson.testJson[index1].type == '2'"
  9143. >
  9144. <div class="radioBox">
  9145. <el-checkbox
  9146. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9147. .checkList"
  9148. :key="checkIndex"
  9149. :label="checkIndex"
  9150. :disabled="isAnswer"
  9151. class="redioStyle"
  9152. >
  9153. <div
  9154. style="margin-right: 10px"
  9155. v-if="item2 && item2.imgType && item2.imgType == 1"
  9156. >
  9157. <div class="inImg" @click.stop="previewImg(item2.src)">
  9158. <img :src="item2.src" alt="" />
  9159. </div>
  9160. </div>
  9161. <span v-else v-html="item2"></span>
  9162. </el-checkbox>
  9163. </div>
  9164. </el-checkbox-group>
  9165. </div>
  9166. </div>
  9167. </div>
  9168. </div>
  9169. </div>
  9170. <span slot="footer" class="dialog-footer">
  9171. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9172. >取 消</el-button
  9173. >
  9174. <el-button
  9175. type="primary"
  9176. @click="addStudentTest"
  9177. v-show="noteName == ''"
  9178. >确 定</el-button
  9179. >
  9180. </span>
  9181. </el-dialog>
  9182. <el-dialog
  9183. :title="noteName != '' ? noteName : '查看选择题'"
  9184. :visible.sync="dialogVisibleChoiceTeacher"
  9185. :append-to-body="true"
  9186. width="1000px"
  9187. :before-close="handleClose"
  9188. class="dialog_diy dialog_diy3"
  9189. >
  9190. <div>
  9191. <div class="w_name">
  9192. 学生姓名:<span>{{ sStudent.student }}</span>
  9193. </div>
  9194. <div class="a_addBox">
  9195. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9196. 题目内容
  9197. </div>
  9198. <div
  9199. class="a_add_box"
  9200. v-for="(item1, index1) in testJson.testCount"
  9201. :key="index1"
  9202. >
  9203. <div class="a_add_head">
  9204. <div style="display: flex">
  9205. <span class="askIndex">{{ index1 + 1 }}</span>
  9206. <div
  9207. v-if="testJson.testJson[index1].type == '1'"
  9208. style="margin-right: 5px; min-width: 70px"
  9209. >
  9210. (单选题)
  9211. </div>
  9212. <div
  9213. v-if="testJson.testJson[index1].type == '2'"
  9214. style="margin-right: 5px; min-width: 70px"
  9215. >
  9216. (多选题)
  9217. </div>
  9218. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9219. </div>
  9220. <img
  9221. v-if="testJson.testJson[index1].img"
  9222. :src="testJson.testJson[index1].img"
  9223. style="height: 300px; margin-top: 10px; max-width: 100%"
  9224. />
  9225. </div>
  9226. <div
  9227. class="timuImgBox"
  9228. v-if="
  9229. testJson.testJson[index1].timuList &&
  9230. testJson.testJson[index1].timuList.length
  9231. "
  9232. >
  9233. <div
  9234. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9235. :key="tIndex"
  9236. class="timuImg"
  9237. @click.stop="previewImg(timg.src)"
  9238. >
  9239. <img :src="timg.src" alt="" />
  9240. </div>
  9241. </div>
  9242. <div class="a_add_body">
  9243. <div class="a_add_input">
  9244. <el-radio-group
  9245. v-model="radio[index1]"
  9246. v-if="testJson.testJson[index1].type == '1'"
  9247. >
  9248. <div class="radioBox">
  9249. <el-radio
  9250. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9251. .checkList"
  9252. :key="checkIndex"
  9253. :label="checkIndex"
  9254. :disabled="isAnswer"
  9255. class="redioStyle"
  9256. >
  9257. <div
  9258. style="margin-right: 10px"
  9259. v-if="item2 && item2.imgType && item2.imgType == 1"
  9260. >
  9261. <div class="inImg" @click.stop="previewImg(item2.src)">
  9262. <img :src="item2.src" alt="" />
  9263. </div>
  9264. </div>
  9265. <span v-else v-html="item2"></span>
  9266. </el-radio>
  9267. </div>
  9268. </el-radio-group>
  9269. <el-checkbox-group
  9270. v-model="radio[index1]"
  9271. v-if="testJson.testJson[index1].type == '2'"
  9272. >
  9273. <div class="radioBox">
  9274. <el-checkbox
  9275. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9276. .checkList"
  9277. :key="checkIndex"
  9278. :label="checkIndex"
  9279. :disabled="isAnswer"
  9280. class="redioStyle"
  9281. >
  9282. <div
  9283. style="margin-right: 10px"
  9284. v-if="item2 && item2.imgType && item2.imgType == 1"
  9285. >
  9286. <div class="inImg" @click.stop="previewImg(item2.src)">
  9287. <img :src="item2.src" alt="" />
  9288. </div>
  9289. </div>
  9290. <span v-else v-html="item2"></span>
  9291. </el-checkbox>
  9292. </div>
  9293. </el-checkbox-group>
  9294. </div>
  9295. </div>
  9296. </div>
  9297. </div>
  9298. </div>
  9299. <span slot="footer" class="dialog-footer">
  9300. <el-button
  9301. @click="dialogVisibleChoiceTeacher = false"
  9302. v-show="noteName == ''"
  9303. >取 消</el-button
  9304. >
  9305. <el-button
  9306. type="primary"
  9307. @click="addStudentTestTeacher"
  9308. v-show="noteName == ''"
  9309. >确 定</el-button
  9310. >
  9311. </span>
  9312. </el-dialog>
  9313. <el-dialog
  9314. title="查看富文本"
  9315. :visible.sync="dialogVisible1"
  9316. :append-to-body="true"
  9317. width="500px"
  9318. :before-close="handleClose"
  9319. class="dialog_diy textCss"
  9320. >
  9321. <el-form style="font-size: 20px">
  9322. <el-form-item label="文本标题" class="textTitle">
  9323. <div style="font-size: 20px">{{ text.name }}</div>
  9324. </el-form-item>
  9325. <div>富文本内容</div>
  9326. <div
  9327. v-html="text.url"
  9328. style="font-size: 18px; padding: 40px 0 0 0"
  9329. ></div>
  9330. </el-form>
  9331. <span slot="footer" class="dialog-footer">
  9332. <el-button type="primary" @click="dialogVisible1 = false"
  9333. >确定</el-button
  9334. >
  9335. </span>
  9336. </el-dialog>
  9337. <el-dialog
  9338. title="文件预览"
  9339. :visible.sync="dialogVisible3"
  9340. width="50%"
  9341. :before-close="handleClose"
  9342. class="dialog_diy"
  9343. :class="{ fullStyle: full }"
  9344. >
  9345. <div slot="title" class="header-title">
  9346. <div style="color: #fff">文件预览</div>
  9347. <div style="position: absolute; top: 19px; right: 50px">
  9348. <img
  9349. src="../assets/full.png"
  9350. style="height: 16px; cursor: pointer"
  9351. alt=""
  9352. @click="fullTools"
  9353. />
  9354. </div>
  9355. </div>
  9356. <pdf
  9357. v-if="showPDF"
  9358. :pdfUrl="pptImgUrl"
  9359. style="width: 100%; height: 520px; overflow: auto"
  9360. :class="{ fullStyle: full }"
  9361. ></pdf>
  9362. <iframe
  9363. v-else
  9364. :src="pptImgUrl"
  9365. frameborder="0"
  9366. width="100%"
  9367. height="600"
  9368. :class="{ fullStyle: full }"
  9369. ></iframe>
  9370. </el-dialog>
  9371. <el-dialog
  9372. title="文件预览"
  9373. :visible.sync="dialogVisible6"
  9374. width="50%"
  9375. :before-close="handleClose"
  9376. class="dialog_diy"
  9377. >
  9378. <iframe
  9379. :src="pptImgUrl1"
  9380. frameborder="0"
  9381. width="100%"
  9382. height="600"
  9383. ></iframe>
  9384. </el-dialog>
  9385. <el-dialog
  9386. title="提示"
  9387. :visible.sync="dialogVisible4"
  9388. :append-to-body="true"
  9389. width="800px"
  9390. :before-close="handleClose"
  9391. class="dialog_diy notice"
  9392. >
  9393. <div>此功能暂未开放!</div>
  9394. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9395. </el-dialog>
  9396. <el-dialog
  9397. title="问答"
  9398. :visible.sync="answerDialogVisible"
  9399. :append-to-body="true"
  9400. width="800px"
  9401. :before-close="handleClose"
  9402. class="dialog_diy"
  9403. >
  9404. <div>
  9405. <div
  9406. style="
  9407. display: flex;
  9408. flex-wrap: nowrap;
  9409. flex-direction: column;
  9410. position: relative;
  9411. "
  9412. >
  9413. <div class="queTop" style="padding: 20px 0 20px 0">
  9414. <div class="question">
  9415. <img src="../assets/icon/question.png" alt />
  9416. </div>
  9417. <div class="queTitle">
  9418. <div style="width: 90px; min-width: 90px">提问:</div>
  9419. <div>{{ answerQ }}</div>
  9420. </div>
  9421. </div>
  9422. <div class="ediBottom">
  9423. <textarea
  9424. rows="6"
  9425. class="binfo_input"
  9426. cols
  9427. style="width: 95%; height: 120px"
  9428. v-model="questionAnswer"
  9429. ></textarea>
  9430. </div>
  9431. </div>
  9432. </div>
  9433. <div slot="footer">
  9434. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9435. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9436. </div>
  9437. </el-dialog>
  9438. <el-dialog
  9439. title="问答"
  9440. :visible.sync="answerDialogVisibleTeacher"
  9441. :append-to-body="true"
  9442. width="800px"
  9443. :before-close="handleClose"
  9444. class="dialog_diy"
  9445. >
  9446. <div>
  9447. <div class="w_name">
  9448. 学生姓名:<span>{{ sStudent.student }}</span>
  9449. </div>
  9450. <div
  9451. style="
  9452. display: flex;
  9453. flex-wrap: nowrap;
  9454. flex-direction: column;
  9455. position: relative;
  9456. "
  9457. >
  9458. <div class="queTop" style="padding: 20px 0 20px 0">
  9459. <div class="question">
  9460. <img src="../assets/icon/question.png" alt />
  9461. </div>
  9462. <div class="queTitle">
  9463. <div style="width: 90px; min-width: 90px">提问:</div>
  9464. <div>{{ answerQ }}</div>
  9465. </div>
  9466. </div>
  9467. <div class="ediBottom">
  9468. <textarea
  9469. rows="6"
  9470. class="binfo_input"
  9471. cols
  9472. style="width: 95%; height: 120px"
  9473. v-model="questionAnswer"
  9474. ></textarea>
  9475. </div>
  9476. </div>
  9477. </div>
  9478. <div slot="footer">
  9479. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9480. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9481. </div>
  9482. </el-dialog>
  9483. <el-dialog
  9484. title="倒计时"
  9485. :visible.sync="timeDialogVisible"
  9486. :append-to-body="true"
  9487. width="800px"
  9488. :before-close="handleClose"
  9489. class="dialog_diy"
  9490. >
  9491. <div>
  9492. <div style="margin-bottom: 20px; color: #999">
  9493. 提示:点击“+”或“-”修改倒计时时长。
  9494. </div>
  9495. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9496. </div>
  9497. <div slot="footer">
  9498. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9499. </div>
  9500. </el-dialog>
  9501. <el-dialog
  9502. title="权限设置"
  9503. :visible.sync="juriVisible"
  9504. :append-to-body="true"
  9505. width="400px"
  9506. :before-close="handleClose"
  9507. class="dialog_diy"
  9508. >
  9509. <div>
  9510. <div class="open_box">
  9511. <div class="switch_box">
  9512. <span>允许学生查看所有作业</span>
  9513. <el-switch
  9514. v-model="sIsOpen"
  9515. active-text=""
  9516. class="switchCss"
  9517. @change="updateSLook"
  9518. ></el-switch>
  9519. </div>
  9520. <div
  9521. class="switch_box"
  9522. v-if="
  9523. courseDetail.userid == userid ||
  9524. (courseDetail.course_teacher &&
  9525. courseDetail.course_teacher.indexOf(userid) != -1)
  9526. "
  9527. >
  9528. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9529. <span>禁止学生查看所有阶段</span>
  9530. <el-switch
  9531. v-model="IsLookOpen"
  9532. active-text=""
  9533. class="switchCss"
  9534. @change="updateLookOpen"
  9535. ></el-switch>
  9536. </div>
  9537. <div class="switch_box" v-if="courseDetail.userid == userid">
  9538. <span>开启跟随模式</span>
  9539. <el-switch
  9540. v-model="IsFollow"
  9541. active-text=""
  9542. class="switchCss"
  9543. @change="updateFollow"
  9544. ></el-switch>
  9545. </div>
  9546. </div>
  9547. </div>
  9548. <div slot="footer">
  9549. <el-button
  9550. style="background: #409efe; color: #fff"
  9551. @click="juriVisible = false"
  9552. >关 闭</el-button
  9553. >
  9554. </div>
  9555. </el-dialog>
  9556. <el-dialog
  9557. title="查看视频"
  9558. :visible.sync="videoVisible"
  9559. :append-to-body="true"
  9560. width="1000px"
  9561. :before-close="handleClose"
  9562. class="dialog_diy1"
  9563. >
  9564. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9565. <video-player
  9566. class="video-player vjs-custom-skin"
  9567. :playsinline="true"
  9568. :options="videoDetail"
  9569. @play="onPlayerPlay($event)"
  9570. style="width: 100%; height: 100%"
  9571. ></video-player>
  9572. </div>
  9573. <div slot="footer">
  9574. <el-button
  9575. style="background: #409efe; color: #fff"
  9576. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9577. >
  9578. 关 闭</el-button
  9579. >
  9580. </div>
  9581. </el-dialog>
  9582. <el-dialog
  9583. title="查看详情"
  9584. :visible.sync="commentDialogVisible"
  9585. :append-to-body="true"
  9586. width="800px"
  9587. :before-close="handleClose"
  9588. class="dialog_diy"
  9589. >
  9590. <div class="commentTop">
  9591. <div class="studentDetail">
  9592. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9593. <div class="nameAndTime">
  9594. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9595. <div>{{ commentDetail.time }}</div>
  9596. </div>
  9597. <div
  9598. class="returnBtn"
  9599. style="margin-left: auto; width: 80px"
  9600. v-if="
  9601. commentDetail.works &&
  9602. commentDetail.type == 0 &&
  9603. (tType == 1 || tType == 4)
  9604. "
  9605. @click="
  9606. showPicturePaint(
  9607. commentDetail.img ? commentDetail.img : commentDetail.works
  9608. )
  9609. "
  9610. >
  9611. 教师批注
  9612. </div>
  9613. </div>
  9614. <div
  9615. class="worksAnswer"
  9616. v-if="commentDetail.works && commentDetail.type == 2"
  9617. >
  9618. {{ JSON.parse(commentDetail.works)[0].answer }}
  9619. </div>
  9620. <div
  9621. class="worksAnswer"
  9622. v-if="commentDetail.works && commentDetail.type == 1"
  9623. >
  9624. <img
  9625. src="../assets/teacherWork.png"
  9626. v-if="commentDetail.ateacher"
  9627. class="w_teachert"
  9628. />
  9629. <pdf
  9630. v-if="showPDF"
  9631. :pdfUrl="pptImgUrl"
  9632. style="width: 100%; height: 520px; overflow: auto"
  9633. :class="{ fullStyle: full }"
  9634. ></pdf>
  9635. <iframe
  9636. v-else
  9637. :src="pptImgUrl"
  9638. frameborder="0"
  9639. width="100%"
  9640. height="600"
  9641. :class="{ fullStyle: full }"
  9642. ></iframe>
  9643. </div>
  9644. <div
  9645. class="worksAnswer"
  9646. v-if="commentDetail.works && commentDetail.type == 0"
  9647. >
  9648. <img
  9649. src="../assets/teacherWork.png"
  9650. v-if="commentDetail.ateacher"
  9651. class="w_teachert"
  9652. style="right: 105px"
  9653. />
  9654. <img
  9655. :src="commentDetail.works"
  9656. alt=""
  9657. @click="previewImg(commentDetail.works)"
  9658. />
  9659. </div>
  9660. <div
  9661. class="worksAnswer"
  9662. v-if="commentDetail.works && commentDetail.type == 3"
  9663. >
  9664. <img
  9665. src="../assets/teacherWork.png"
  9666. v-if="commentDetail.ateacher"
  9667. class="w_teachert"
  9668. />
  9669. <video-player
  9670. class="video-player vjs-custom-skin"
  9671. :playsinline="true"
  9672. :options="videoDetail"
  9673. @play="onPlayerPlay($event)"
  9674. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9675. ></video-player>
  9676. </div>
  9677. <div
  9678. class="worksAnswer"
  9679. v-if="commentDetail.works && commentDetail.type == 10"
  9680. >
  9681. <div class="cont" v-html="commentDetail.works.text"></div>
  9682. </div>
  9683. <div
  9684. class="worksAnswer codeFileBox"
  9685. v-if="commentDetail.works && commentDetail.type == 12"
  9686. @click="downloadFile(commentDetail.works)"
  9687. >
  9688. <img src="../assets/icon/codeFile.png" />
  9689. <div>点击下载文件</div>
  9690. </div>
  9691. <div
  9692. class="worksAnswer codeFileBox"
  9693. v-if="commentDetail.works && commentDetail.type == 15"
  9694. @click="
  9695. openCocoPi(
  9696. 57,
  9697. commentIndexJson.toolIndex,
  9698. commentDetail.userid,
  9699. commentDetail.sName
  9700. )
  9701. "
  9702. >
  9703. <img src="../assets/icon/codeFile.png" />
  9704. <div>点击打开CocoPi</div>
  9705. </div>
  9706. <div
  9707. class="worksAnswer"
  9708. v-if="commentDetail.works && commentDetail.type == 13"
  9709. >
  9710. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9711. </div>
  9712. <div
  9713. class="worksAnswer"
  9714. v-if="commentDetail.works && commentDetail.type == 4"
  9715. >
  9716. <div class="evalCss">
  9717. <div class="nav">请选择星星进行评分</div>
  9718. <div class="middleBox" v-if="eScore.eStar">
  9719. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9720. <div class="nameAndrate">
  9721. <div>{{ e.value }}</div>
  9722. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9723. </div>
  9724. <div v-if="e.detail">{{ e.detail }}</div>
  9725. </div>
  9726. <div class="bz">
  9727. <textarea
  9728. disabled
  9729. rows="4"
  9730. class="pj"
  9731. style="
  9732. padding: 10px 5px;
  9733. width: 70%;
  9734. background: #f7f6f9;
  9735. font-size: 14px;
  9736. text-indent: 10px;
  9737. color: #000;
  9738. "
  9739. cols
  9740. v-model="eScore.eBzText"
  9741. placeholder="请输入评价内容..."
  9742. ></textarea>
  9743. </div>
  9744. </div>
  9745. </div>
  9746. </div>
  9747. <div class="comment">
  9748. <div class="commentList">
  9749. <div class="commentImg">
  9750. <img
  9751. @click="
  9752. isLikes(
  9753. commentDetail.wid,
  9754. userid,
  9755. 1,
  9756. null,
  9757. commentDetail.isLikes,
  9758. commentDetail.sName
  9759. )
  9760. "
  9761. :src="commentDetail.isLikes == true ? likes : noLikes"
  9762. alt=""
  9763. />
  9764. </div>
  9765. <div>{{ commentDetail.likesCount }}</div>
  9766. </div>
  9767. <div class="commentList">
  9768. <div class="commentImg">
  9769. <img src="../assets/icon/comment/comment.png" alt="" />
  9770. </div>
  9771. <div>{{ commentDetail.commentCount }}</div>
  9772. </div>
  9773. </div>
  9774. <div class="drawPBox" v-if="commentDetail.img">
  9775. <span>教师批注</span>
  9776. <img
  9777. :src="commentDetail.img"
  9778. alt=""
  9779. @click="previewImg(commentDetail.img)"
  9780. />
  9781. <span
  9782. class="deleteImg"
  9783. v-if="tType == 1 || tType == 4"
  9784. @click.stop="deletePicturePaint(commentDetail.wid)"
  9785. style="
  9786. font-size: 14px;
  9787. width: auto !important;
  9788. color: #b4b4b4;
  9789. top: unset;
  9790. bottom: 0;
  9791. border: none;
  9792. padding: 0;
  9793. height: auto !important;
  9794. margin: 0;
  9795. "
  9796. >删除</span
  9797. >
  9798. </div>
  9799. </div>
  9800. <div class="commentBox">
  9801. <div class="pl">评论:</div>
  9802. <div style="max-height: 200px; overflow: auto">
  9803. <div
  9804. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9805. style="padding: 10px 0 0 0"
  9806. >
  9807. <div
  9808. class="studentDetail"
  9809. style="padding-top: 10px"
  9810. v-for="(co, coIndex) in commentDetail.commentJson"
  9811. :key="coIndex"
  9812. >
  9813. <div class="tx" style="min-width: 50px">
  9814. <img src="../assets/avatar.png" alt="" />
  9815. </div>
  9816. <div class="plPerson">
  9817. <div class="plName">
  9818. <div>{{ co.commentPeople }}</div>
  9819. <div style="margin-left: 5px">
  9820. {{ co.commentTime }}
  9821. </div>
  9822. <div
  9823. class="deleteComment"
  9824. v-if="userid == co.userid"
  9825. @click="deleteComment(co.wid)"
  9826. >
  9827. 删除
  9828. </div>
  9829. </div>
  9830. <div class="plContent">{{ co.commentText }}</div>
  9831. </div>
  9832. </div>
  9833. </div>
  9834. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9835. </div>
  9836. </div>
  9837. <div style="margin-top: 10px">
  9838. <div class="displayBox">
  9839. <div
  9840. style="
  9841. color: #556db4;
  9842. font-size: 14px;
  9843. font-weight: bold;
  9844. padding-bottom: 10px;
  9845. "
  9846. >
  9847. 评价
  9848. </div>
  9849. <div class="easy_comment" v-if="false">
  9850. <div
  9851. v-for="(p, pIndex) in PlTextList"
  9852. :key="pIndex"
  9853. @click="fastText(p, 1)"
  9854. >
  9855. {{ p }}
  9856. </div>
  9857. </div>
  9858. </div>
  9859. <div>
  9860. <textarea
  9861. rows="3"
  9862. class="pj"
  9863. style="padding: 10px 5px"
  9864. cols
  9865. v-model="commentText"
  9866. placeholder="请输入评论"
  9867. ></textarea>
  9868. </div>
  9869. </div>
  9870. <div slot="footer">
  9871. <el-button
  9872. @click="
  9873. (commentDialogVisible = false),
  9874. (commentIndexJson = {}),
  9875. videoDetail.sources && videoDetail.sources[0]
  9876. ? (videoDetail.sources[0].src = '')
  9877. : ''
  9878. "
  9879. >取 消</el-button
  9880. >
  9881. <el-button
  9882. type="primary"
  9883. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9884. >确 定</el-button
  9885. >
  9886. </div>
  9887. </el-dialog>
  9888. <el-dialog
  9889. title="查看文档"
  9890. :visible.sync="fullDialogVisible"
  9891. :append-to-body="true"
  9892. width="100%"
  9893. :before-close="handleClose"
  9894. :show-close="false"
  9895. class="dialog_diy full_diy"
  9896. :class="{ full_diy2: fulltype == 3 }"
  9897. >
  9898. <div slot="title" class="header-title">
  9899. <div style="color: #fff">查看文档</div>
  9900. <div
  9901. @click="fullDialogVisible = false"
  9902. style="
  9903. cursor: pointer;
  9904. position: absolute;
  9905. top: 20px;
  9906. right: 20px;
  9907. color: #fff;
  9908. "
  9909. >
  9910. 退出全屏
  9911. </div>
  9912. </div>
  9913. <div style="height: 100%">
  9914. <div
  9915. class="wheel"
  9916. v-if="
  9917. fulltype == 2 &&
  9918. fullUrl.indexOf(
  9919. 'https://view.officeapps.live.com/op/view.aspx?src='
  9920. ) != -1
  9921. "
  9922. style="width: 95%; margin: 0 auto"
  9923. >
  9924. <iframe
  9925. style="width: 100%; height: 100%; border: none"
  9926. :src="fullUrl"
  9927. ></iframe>
  9928. </div>
  9929. <iframe
  9930. v-else-if="fulltype == 2"
  9931. style="width: 100%; height: 100%; border: none"
  9932. :src="fullUrl"
  9933. security="restricted"
  9934. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9935. ></iframe>
  9936. <pdf
  9937. v-else-if="fulltype == 3"
  9938. :pdfUrl="fullUrl"
  9939. style="width: 100%; height: 100%; overflow: auto"
  9940. ></pdf>
  9941. <div
  9942. class="wheel"
  9943. v-if="fulltype == 1"
  9944. style="
  9945. box-shadow: 0 0 6px 1px #f2f2f2;
  9946. width: 100%;
  9947. background: #f1f1f1;
  9948. "
  9949. >
  9950. <div class="title" style="width: 100%; box-sizing: border-box">
  9951. 查看文档
  9952. </div>
  9953. <el-form class="textBox" style="height: 90%">
  9954. <el-form-item class="textTitle">
  9955. <div style="font-size: 22px">
  9956. {{ fullUrl.name }}
  9957. </div>
  9958. </el-form-item>
  9959. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9960. <div
  9961. v-html="fullUrl.url"
  9962. class="textContent"
  9963. style="height: auto"
  9964. ></div>
  9965. </el-form>
  9966. </div>
  9967. </div>
  9968. <!-- <div slot="footer">
  9969. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9970. </div> -->
  9971. </el-dialog>
  9972. <el-dialog
  9973. title="个人评价"
  9974. :visible.sync="studentEvalDialogVisible"
  9975. :append-to-body="true"
  9976. width="800px"
  9977. :before-close="handleClose"
  9978. class="dialog_diy"
  9979. >
  9980. <div class="evalCss">
  9981. <div class="nav">请选择星星进行评分</div>
  9982. <div class="middleBox" v-if="eScore.eStar">
  9983. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9984. <div class="nameAndrate">
  9985. <div>{{ e.value }}</div>
  9986. <el-rate
  9987. v-model="eScore.eStar[eIndex]"
  9988. :disabled="isStar"
  9989. ></el-rate>
  9990. </div>
  9991. <div v-if="e.detail">{{ e.detail }}</div>
  9992. </div>
  9993. <div class="easy_comment" v-if="false">
  9994. <div
  9995. v-for="(p, pIndex) in PlTextList"
  9996. :key="pIndex"
  9997. @click="fastText(p, 2)"
  9998. >
  9999. {{ p }}
  10000. </div>
  10001. </div>
  10002. <div class="bz">
  10003. <textarea
  10004. :disabled="isStar"
  10005. rows="4"
  10006. class="pj"
  10007. style="
  10008. padding: 10px 5px;
  10009. width: 70%;
  10010. background: #f7f6f9;
  10011. font-size: 14px;
  10012. text-indent: 10px;
  10013. "
  10014. cols
  10015. v-model="eScore.eBzText"
  10016. placeholder="请输入评价内容..."
  10017. ></textarea>
  10018. </div>
  10019. </div>
  10020. </div>
  10021. <div slot="footer">
  10022. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10023. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10024. >确 定</el-button
  10025. >
  10026. </div>
  10027. </el-dialog>
  10028. <el-dialog
  10029. title="个人评价"
  10030. :visible.sync="studentEvalDialogVisibleTeacher"
  10031. :append-to-body="true"
  10032. width="800px"
  10033. :before-close="handleClose"
  10034. class="dialog_diy"
  10035. >
  10036. <div class="w_name">
  10037. 学生姓名:<span>{{ sStudent.student }}</span>
  10038. </div>
  10039. <div class="evalCss">
  10040. <div class="nav">请选择星星进行评分</div>
  10041. <div class="middleBox" v-if="eScore.eStar">
  10042. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10043. <div class="nameAndrate">
  10044. <div>{{ e.value }}</div>
  10045. <el-rate
  10046. v-model="eScore.eStar[eIndex]"
  10047. :disabled="isStar"
  10048. ></el-rate>
  10049. </div>
  10050. <div v-if="e.detail">{{ e.detail }}</div>
  10051. </div>
  10052. <div class="easy_comment" v-if="false">
  10053. <div
  10054. v-for="(p, pIndex) in PlTextList"
  10055. :key="pIndex"
  10056. @click="fastText(p, 2)"
  10057. >
  10058. {{ p }}
  10059. </div>
  10060. </div>
  10061. <div class="bz">
  10062. <textarea
  10063. :disabled="isStar"
  10064. rows="4"
  10065. class="pj"
  10066. style="
  10067. padding: 10px 5px;
  10068. width: 70%;
  10069. background: #f7f6f9;
  10070. font-size: 14px;
  10071. text-indent: 10px;
  10072. "
  10073. cols
  10074. v-model="eScore.eBzText"
  10075. placeholder="请输入评价内容..."
  10076. ></textarea>
  10077. </div>
  10078. </div>
  10079. </div>
  10080. <div slot="footer">
  10081. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10082. >取 消</el-button
  10083. >
  10084. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10085. >确 定</el-button
  10086. >
  10087. </div>
  10088. </el-dialog>
  10089. <el-dialog
  10090. title="选择匹配"
  10091. :visible.sync="dialogVisibleSelect"
  10092. :append-to-body="true"
  10093. width="90%"
  10094. :before-close="handleClose"
  10095. class="dialog_diy dialog_diy3"
  10096. >
  10097. <div v-if="selectJson">
  10098. <div class="select_box2">
  10099. <div class="select_box2_title">
  10100. <div>选择匹配</div>
  10101. <div>请选择对应的答案进行答题!</div>
  10102. </div>
  10103. <div class="select_box2_box">
  10104. <div class="select_box2_img">
  10105. <img
  10106. :src="selectJson.url"
  10107. @click="previewImg(selectJson.url)"
  10108. alt=""
  10109. />
  10110. </div>
  10111. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10112. <div style="padding-top: 15px">
  10113. <div class="select_answer_title" v-if="isSelect">
  10114. {{ selectAnswer.stu }}
  10115. </div>
  10116. <div class="select_answer_title" v-else>
  10117. 根据题目选择对应答案
  10118. </div>
  10119. <div
  10120. class="select_box2_answer_box"
  10121. v-for="(item2, checkIndex) in selectJson.select"
  10122. :key="checkIndex"
  10123. >
  10124. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10125. <el-select
  10126. :disabled="isSelect"
  10127. v-model="selectAnswer.answer[checkIndex]"
  10128. placeholder="请选择正确答案"
  10129. >
  10130. <el-option
  10131. v-for="(e, eIndex) in selectJson.select"
  10132. :key="eIndex"
  10133. :label="e"
  10134. :value="eIndex"
  10135. >
  10136. </el-option>
  10137. </el-select>
  10138. </div>
  10139. </div>
  10140. <div
  10141. class="rightAnswerCss"
  10142. v-if="isSelect && (tType == 1 || tType == 4)"
  10143. >
  10144. <div
  10145. v-for="(a, aIndex) in selectJson.answer"
  10146. :key="aIndex"
  10147. class="rightAnswer"
  10148. >
  10149. <div
  10150. v-if="selectAnswer.answer[aIndex] === a"
  10151. style="color: #767de1"
  10152. >
  10153. 回答正确
  10154. </div>
  10155. <div v-else>回答错误</div>
  10156. <div
  10157. style="margin-left: 10px"
  10158. v-if="selectAnswer.answer[aIndex] !== a"
  10159. >
  10160. 正确答案:
  10161. </div>
  10162. <div
  10163. :class="
  10164. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10165. "
  10166. >
  10167. {{ selectJson.select[a] }}
  10168. </div>
  10169. </div>
  10170. </div>
  10171. </div>
  10172. <div class="upAnswerCss">
  10173. <el-button
  10174. type="primary"
  10175. @click="addSelectAnswer"
  10176. v-if="!isSelect"
  10177. >提交答案</el-button
  10178. >
  10179. </div>
  10180. </div>
  10181. </div>
  10182. </div>
  10183. </el-dialog>
  10184. <el-dialog
  10185. title="选择匹配"
  10186. :visible.sync="dialogVisibleSelectTeacher"
  10187. :append-to-body="true"
  10188. width="90%"
  10189. :before-close="handleClose"
  10190. class="dialog_diy dialog_diy3"
  10191. >
  10192. <div v-if="selectJson">
  10193. <div class="w_name">
  10194. 学生姓名:<span>{{ sStudent.student }}</span>
  10195. </div>
  10196. <div class="select_box2">
  10197. <div class="select_box2_title">
  10198. <div>选择匹配</div>
  10199. <div>请选择对应的答案进行答题!</div>
  10200. </div>
  10201. <div class="select_box2_box">
  10202. <div class="select_box2_img">
  10203. <img
  10204. :src="selectJson.url"
  10205. @click="previewImg(selectJson.url)"
  10206. alt=""
  10207. />
  10208. </div>
  10209. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10210. <div style="padding-top: 15px">
  10211. <div class="select_answer_title" v-if="isSelect">
  10212. {{ selectAnswer.stu }}
  10213. </div>
  10214. <div class="select_answer_title" v-else>
  10215. 根据题目选择对应答案
  10216. </div>
  10217. <div
  10218. class="select_box2_answer_box"
  10219. v-for="(item2, checkIndex) in selectJson.select"
  10220. :key="checkIndex"
  10221. >
  10222. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10223. <el-select
  10224. :disabled="isSelect"
  10225. v-model="selectAnswer.answer[checkIndex]"
  10226. placeholder="请选择正确答案"
  10227. >
  10228. <el-option
  10229. v-for="(e, eIndex) in selectJson.select"
  10230. :key="eIndex"
  10231. :label="e"
  10232. :value="eIndex"
  10233. >
  10234. </el-option>
  10235. </el-select>
  10236. </div>
  10237. </div>
  10238. <div
  10239. class="rightAnswerCss"
  10240. v-if="isSelect && (tType == 1 || tType == 4)"
  10241. >
  10242. <div
  10243. v-for="(a, aIndex) in selectJson.answer"
  10244. :key="aIndex"
  10245. class="rightAnswer"
  10246. >
  10247. <div
  10248. v-if="selectAnswer.answer[aIndex] === a"
  10249. style="color: #767de1"
  10250. >
  10251. 回答正确
  10252. </div>
  10253. <div v-else>回答错误</div>
  10254. <div
  10255. style="margin-left: 10px"
  10256. v-if="selectAnswer.answer[aIndex] !== a"
  10257. >
  10258. 正确答案:
  10259. </div>
  10260. <div
  10261. :class="
  10262. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10263. "
  10264. >
  10265. {{ selectJson.select[a] }}
  10266. </div>
  10267. </div>
  10268. </div>
  10269. </div>
  10270. <div class="upAnswerCss">
  10271. <el-button
  10272. type="primary"
  10273. @click="addSelectAnswerTeacher"
  10274. v-if="!isSelect"
  10275. >提交答案</el-button
  10276. >
  10277. </div>
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </el-dialog>
  10282. <el-dialog
  10283. title="教师评分"
  10284. :visible.sync="dialogVisibleScore"
  10285. :append-to-body="true"
  10286. width="800px"
  10287. :before-close="handleClose"
  10288. class="dialog_diy"
  10289. >
  10290. <div>
  10291. <div class="studentDetail">
  10292. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10293. <div class="nameAndTime">
  10294. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10295. <div>{{ commentDetail.time }}</div>
  10296. </div>
  10297. </div>
  10298. <div
  10299. class="worksAnswer"
  10300. v-if="commentDetail.works && commentDetail.type == 2"
  10301. >
  10302. {{ JSON.parse(commentDetail.works)[0].answer }}
  10303. </div>
  10304. <div
  10305. class="worksAnswer"
  10306. v-if="commentDetail.works && commentDetail.type == 1"
  10307. >
  10308. <pdf
  10309. v-if="showPDF"
  10310. :pdfUrl="pptImgUrl"
  10311. style="width: 100%; height: 520px; overflow: auto"
  10312. :class="{ fullStyle: full }"
  10313. ></pdf>
  10314. <iframe
  10315. v-else
  10316. :src="pptImgUrl"
  10317. frameborder="0"
  10318. width="100%"
  10319. height="600"
  10320. :class="{ fullStyle: full }"
  10321. ></iframe>
  10322. </div>
  10323. <div
  10324. class="worksAnswer"
  10325. v-if="commentDetail.works && commentDetail.type == 0"
  10326. >
  10327. <img
  10328. :src="commentDetail.works"
  10329. alt=""
  10330. @click="previewImg(commentDetail.works)"
  10331. />
  10332. </div>
  10333. <div
  10334. class="worksAnswer"
  10335. v-if="commentDetail.works && commentDetail.type == 3"
  10336. >
  10337. <video-player
  10338. class="video-player vjs-custom-skin"
  10339. :playsinline="true"
  10340. :options="videoDetail"
  10341. @play="onPlayerPlay($event)"
  10342. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10343. ></video-player>
  10344. </div>
  10345. <div
  10346. class="worksAnswer codeFileBox"
  10347. v-if="commentDetail.works && commentDetail.type == 12"
  10348. @click="downloadFile(commentDetail.works)"
  10349. >
  10350. <img src="../assets/icon/codeFile.png" />
  10351. <div>点击下载文件</div>
  10352. </div>
  10353. <div
  10354. class="worksAnswer codeFileBox"
  10355. v-if="commentDetail.works && commentDetail.type == 15"
  10356. @click="
  10357. openCocoPi(
  10358. 57,
  10359. commentIndexJson.toolIndex,
  10360. commentDetail.userid,
  10361. commentDetail.sName
  10362. )
  10363. "
  10364. >
  10365. <img src="../assets/icon/codeFile.png" />
  10366. <div>点击打开CocoPi</div>
  10367. </div>
  10368. <div
  10369. class="worksAnswer"
  10370. v-if="commentDetail.works && commentDetail.type == 13"
  10371. >
  10372. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10373. </div>
  10374. <div class="scoreBox">
  10375. <span class="t">请输入分数</span>
  10376. <el-input-number
  10377. :disabled="courseDetail.userid != userid"
  10378. v-model="wScore"
  10379. :controls="false"
  10380. :min="0"
  10381. :max="100"
  10382. ></el-input-number>
  10383. </div>
  10384. <div class="scoreDetailBox">
  10385. <span class="t">评分评论</span>
  10386. <el-input
  10387. type="textarea"
  10388. :rows="5"
  10389. :disabled="courseDetail.userid != userid"
  10390. resize="none"
  10391. v-model="scoreDetail"
  10392. placeholder="请输入对学生的评价"
  10393. >
  10394. </el-input>
  10395. </div>
  10396. </div>
  10397. <span slot="footer" class="dialog-footer">
  10398. <el-button
  10399. @click="
  10400. (dialogVisibleScore = false),
  10401. (commentIndexJson = {}),
  10402. videoDetail.sources && videoDetail.sources[0]
  10403. ? (videoDetail.sources[0].src = '')
  10404. : ''
  10405. "
  10406. >取 消</el-button
  10407. >
  10408. <el-button
  10409. type="primary"
  10410. v-if="courseDetail.userid == userid"
  10411. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10412. >确 定
  10413. </el-button>
  10414. </span>
  10415. </el-dialog>
  10416. <el-dialog
  10417. title="排序"
  10418. :visible.sync="dialogVisibleSentence"
  10419. :append-to-body="true"
  10420. width="1000px"
  10421. :before-close="handleClose"
  10422. class="dialog_diy dialog_diy3"
  10423. >
  10424. <div>
  10425. <div class="sentenBox">
  10426. <div
  10427. v-for="(st, stIndex) in sentenceList"
  10428. :key="stIndex"
  10429. style="padding-bottom: 20px"
  10430. >
  10431. <div
  10432. style="padding: 15px 0 10px 20px"
  10433. class="sentenceTitle"
  10434. :index="stIndex + 1"
  10435. >
  10436. 题目{{ stIndex + 1 }}:请选择正确顺序
  10437. </div>
  10438. <div class="cardList" v-if="st.chooseSenList">
  10439. <div class="cardBox">
  10440. <div
  10441. v-for="(r, rIndex) in st.chooseSenList"
  10442. :key="rIndex"
  10443. @click="returnCard(r, stIndex, rIndex)"
  10444. >
  10445. <el-tooltip
  10446. class="item"
  10447. effect="light"
  10448. :content="r"
  10449. placement="top"
  10450. v-if="r != '' && r != undefined"
  10451. >
  10452. <div
  10453. :class="{
  10454. isCard: r,
  10455. isChooseCard: r == '' || r == undefined,
  10456. }"
  10457. >
  10458. <div>{{ r }}</div>
  10459. </div>
  10460. </el-tooltip>
  10461. <div
  10462. :class="{
  10463. isCard: r,
  10464. isChooseCard: r == '' || r == undefined,
  10465. }"
  10466. v-else
  10467. >
  10468. <div>{{ r }}</div>
  10469. </div>
  10470. </div>
  10471. </div>
  10472. </div>
  10473. <div class="cardList" v-if="st.addChangeSen">
  10474. <div class="cardBox">
  10475. <div
  10476. v-for="(s, sIndex) in st.addChangeSen"
  10477. :key="sIndex"
  10478. @click="setRightAnswer(s, stIndex, sIndex)"
  10479. >
  10480. <el-tooltip
  10481. class="item"
  10482. effect="light"
  10483. :content="s"
  10484. placement="top"
  10485. v-if="s != '' && s != undefined"
  10486. >
  10487. <div
  10488. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10489. >
  10490. <div>{{ s }}</div>
  10491. </div>
  10492. </el-tooltip>
  10493. <div
  10494. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10495. v-else
  10496. >
  10497. <div>{{ s }}</div>
  10498. </div>
  10499. </div>
  10500. </div>
  10501. </div>
  10502. </div>
  10503. </div>
  10504. </div>
  10505. <span slot="footer" class="dialog-footer">
  10506. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10507. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10508. </span>
  10509. </el-dialog>
  10510. <el-dialog
  10511. title="排序"
  10512. :visible.sync="dialogVisibleSentenceTeacher"
  10513. :append-to-body="true"
  10514. width="1000px"
  10515. :before-close="handleClose"
  10516. class="dialog_diy dialog_diy3"
  10517. >
  10518. <div>
  10519. <div class="w_name">
  10520. 学生姓名:<span>{{ sStudent.student }}</span>
  10521. </div>
  10522. <div class="sentenBox">
  10523. <div
  10524. v-for="(st, stIndex) in sentenceList"
  10525. :key="stIndex"
  10526. style="padding-bottom: 20px"
  10527. >
  10528. <div
  10529. style="padding: 15px 0 10px 20px"
  10530. class="sentenceTitle"
  10531. :index="stIndex + 1"
  10532. >
  10533. 题目{{ stIndex + 1 }}:请选择正确顺序
  10534. </div>
  10535. <div class="cardList" v-if="st.chooseSenList">
  10536. <div class="cardBox">
  10537. <div
  10538. v-for="(r, rIndex) in st.chooseSenList"
  10539. :key="rIndex"
  10540. @click="returnCard(r, stIndex, rIndex)"
  10541. >
  10542. <el-tooltip
  10543. class="item"
  10544. effect="light"
  10545. :content="r"
  10546. placement="top"
  10547. v-if="r != '' && r != undefined"
  10548. >
  10549. <div
  10550. :class="{
  10551. isCard: r,
  10552. isChooseCard: r == '' || r == undefined,
  10553. }"
  10554. >
  10555. <div>{{ r }}</div>
  10556. </div>
  10557. </el-tooltip>
  10558. <div
  10559. :class="{
  10560. isCard: r,
  10561. isChooseCard: r == '' || r == undefined,
  10562. }"
  10563. v-else
  10564. >
  10565. <div>{{ r }}</div>
  10566. </div>
  10567. </div>
  10568. </div>
  10569. </div>
  10570. <div class="cardList" v-if="st.addChangeSen">
  10571. <div class="cardBox">
  10572. <div
  10573. v-for="(s, sIndex) in st.addChangeSen"
  10574. :key="sIndex"
  10575. @click="setRightAnswer(s, stIndex, sIndex)"
  10576. >
  10577. <el-tooltip
  10578. class="item"
  10579. effect="light"
  10580. :content="s"
  10581. placement="top"
  10582. v-if="s != '' && s != undefined"
  10583. >
  10584. <div
  10585. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10586. >
  10587. <div>{{ s }}</div>
  10588. </div>
  10589. </el-tooltip>
  10590. <div
  10591. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10592. v-else
  10593. >
  10594. <div>{{ s }}</div>
  10595. </div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. </div>
  10601. </div>
  10602. <span slot="footer" class="dialog-footer">
  10603. <el-button @click="dialogVisibleSentenceTeacher = false"
  10604. >取 消</el-button
  10605. >
  10606. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10607. </span>
  10608. </el-dialog>
  10609. <el-dialog
  10610. title="排序"
  10611. :visible.sync="dialogVisibleSentence1"
  10612. :append-to-body="true"
  10613. width="1000px"
  10614. :before-close="handleClose"
  10615. class="dialog_diy dialog_diy3"
  10616. >
  10617. <div>
  10618. <div class="sentenBox">
  10619. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10620. {{ sentenceList1.stuName }}的作业
  10621. </div>
  10622. <div
  10623. v-for="(st, stIndex) in sentenceList1"
  10624. :key="stIndex"
  10625. style="padding-bottom: 20px"
  10626. >
  10627. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10628. 第{{ stIndex + 1 }}题
  10629. </div>
  10630. <div class="isWrong">
  10631. <div class="cardList1" v-if="st.chooseSenList">
  10632. <div class="cardBox">
  10633. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10634. <el-tooltip
  10635. class="item"
  10636. effect="light"
  10637. :content="s"
  10638. placement="top"
  10639. >
  10640. <div class="isCard">
  10641. <div>{{ s }}</div>
  10642. </div>
  10643. </el-tooltip>
  10644. </div>
  10645. </div>
  10646. <div class="cardAnswerBox">
  10647. 组成句子:{{ st.chooseSenList.join(" ") }}
  10648. </div>
  10649. </div>
  10650. <div v-if="tType == 2" class="isTj">
  10651. <div class="isTjImg">
  10652. <img src="../assets/icon/conSentences/right.png" alt="" />
  10653. </div>
  10654. <div>已提交</div>
  10655. </div>
  10656. <div
  10657. class="answerRight isTj"
  10658. v-if="
  10659. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10660. (tType == 1 || tType == 4)
  10661. "
  10662. >
  10663. <div class="isTjImg">
  10664. <img src="../assets/icon/conSentences/right.png" alt="" />
  10665. </div>
  10666. <div>回答正确</div>
  10667. </div>
  10668. <div
  10669. class="answerRight isTj"
  10670. v-if="
  10671. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10672. (tType == 1 || tType == 4)
  10673. "
  10674. >
  10675. <div class="isTjImg">
  10676. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10677. </div>
  10678. <div>回答错误</div>
  10679. </div>
  10680. </div>
  10681. <div
  10682. v-if="
  10683. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10684. (tType == 1 || tType == 4)
  10685. "
  10686. >
  10687. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10688. <div
  10689. class="cardList"
  10690. v-if="st.rightAnswer"
  10691. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10692. >
  10693. <div class="cardBox">
  10694. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10695. <el-tooltip
  10696. class="item"
  10697. effect="light"
  10698. :content="r"
  10699. placement="top"
  10700. >
  10701. <div class="isCard1">
  10702. <div>{{ r }}</div>
  10703. </div>
  10704. </el-tooltip>
  10705. </div>
  10706. </div>
  10707. <div class="cardAnswerBox">
  10708. 组成句子:{{ st.rightAnswer.join(" ") }}
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. </div>
  10715. <span slot="footer" class="dialog-footer">
  10716. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10717. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10718. >确 定</el-button
  10719. >
  10720. </span>
  10721. </el-dialog>
  10722. <el-dialog
  10723. title="教师提交作业"
  10724. :visible.sync="dialogVisibleWorks"
  10725. :append-to-body="true"
  10726. width="500px"
  10727. :before-close="handleClose"
  10728. class="dialog_change"
  10729. >
  10730. <div class="marginT">
  10731. <div class="w_name">
  10732. 学生姓名:<span>{{ sStudent.student }}</span>
  10733. </div>
  10734. <div>上传文件</div>
  10735. <div
  10736. class="chapter_add"
  10737. @click="addImg($event)"
  10738. v-if="studyJuri[0].cover.length == 0"
  10739. >
  10740. <div class="up_photo">
  10741. <img src="../assets/uploadImg2.png" alt />
  10742. </div>
  10743. <!-- <input
  10744. type="file"
  10745. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10746. style="display: none"
  10747. @change="beforeUpload1($event, 1)"
  10748. /> -->
  10749. <input
  10750. type="file"
  10751. accept="*"
  10752. style="display: none"
  10753. @change="beforeUpload1($event, 1)"
  10754. />
  10755. </div>
  10756. <!-- capture="camera" -->
  10757. <div
  10758. class="chapter_add"
  10759. style="
  10760. display: flex;
  10761. width: 100%;
  10762. flex-direction: row;
  10763. flex-wrap: wrap;
  10764. justify-content: flex-start;
  10765. padding: 15px 0;
  10766. "
  10767. v-if="studyJuri[0].cover.length > 0"
  10768. >
  10769. <div class="upCover">
  10770. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10771. <img :src="word" alt v-else-if="fileType == 1" />
  10772. <img :src="video" alt v-else-if="fileType == 2" />
  10773. <img :src="word2" alt v-else-if="fileType == 3" />
  10774. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10775. <div class="deleteWord" @click="clean(1)">
  10776. <img src="../assets/icon/deleteWorks.png" alt />
  10777. </div>
  10778. </div>
  10779. </div>
  10780. </div>
  10781. <div
  10782. class="upload_send"
  10783. @click="addCourseWorksTeacher(taskCount)"
  10784. v-if="!proVisible"
  10785. >
  10786. 提交
  10787. </div>
  10788. </el-dialog>
  10789. <ImgDraw
  10790. :drawShow="drawShow"
  10791. @closeDraw="closeDraw"
  10792. @addImgDraw="addImgDraw"
  10793. :bg="bg"
  10794. ></ImgDraw>
  10795. <el-dialog
  10796. title="表格"
  10797. :visible.sync="dialogVisibleTable"
  10798. :append-to-body="true"
  10799. width="95%"
  10800. :before-close="handleClose"
  10801. class="dialog_diy"
  10802. >
  10803. <el-form>
  10804. <div
  10805. style="
  10806. display: flex;
  10807. align-items: center;
  10808. justify-content: space-between;
  10809. "
  10810. >
  10811. <span>表格内容</span>
  10812. <el-button type="primary" size="small" @click="returnTableText"
  10813. >还原模板</el-button
  10814. >
  10815. </div>
  10816. <Table
  10817. v-model="tableJson.text"
  10818. @change="change"
  10819. v-if="dialogVisibleTable"
  10820. ></Table>
  10821. </el-form>
  10822. <span slot="footer" class="dialog-footer">
  10823. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10824. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10825. </span>
  10826. </el-dialog>
  10827. <el-dialog
  10828. title="表格"
  10829. :visible.sync="dialogVisibleTableTeacher"
  10830. :append-to-body="true"
  10831. width="95%"
  10832. :before-close="handleClose"
  10833. class="dialog_diy"
  10834. >
  10835. <el-form>
  10836. <div class="w_name">
  10837. 学生姓名:<span>{{ sStudent.student }}</span>
  10838. </div>
  10839. <div>表格内容</div>
  10840. <Table
  10841. v-model="tableJson.text"
  10842. @change="change"
  10843. v-if="dialogVisibleTableTeacher"
  10844. ></Table>
  10845. </el-form>
  10846. <span slot="footer" class="dialog-footer">
  10847. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10848. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10849. </span>
  10850. </el-dialog>
  10851. <el-dialog
  10852. title="文档"
  10853. :visible.sync="dialogVisibleWord"
  10854. :append-to-body="true"
  10855. width="95%"
  10856. :before-close="handleClose"
  10857. class="dialog_diy"
  10858. >
  10859. <el-form>
  10860. <div
  10861. style="
  10862. display: flex;
  10863. align-items: center;
  10864. justify-content: space-between;
  10865. "
  10866. >
  10867. <span>文档内容</span>
  10868. <el-button type="primary" size="small" @click="returnWordText"
  10869. >还原模板</el-button
  10870. >
  10871. </div>
  10872. <editor-bar
  10873. v-model="wordJson.text"
  10874. v-if="dialogVisibleWord"
  10875. ></editor-bar>
  10876. </el-form>
  10877. <span slot="footer" class="dialog-footer">
  10878. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10879. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10880. </span>
  10881. </el-dialog>
  10882. <el-dialog
  10883. title="文档"
  10884. :visible.sync="dialogVisibleWordTeacher"
  10885. :append-to-body="true"
  10886. width="95%"
  10887. :before-close="handleClose"
  10888. class="dialog_diy"
  10889. >
  10890. <el-form>
  10891. <div class="w_name">
  10892. 学生姓名:<span>{{ sStudent.student }}</span>
  10893. </div>
  10894. <div>文档内容</div>
  10895. <editor-bar
  10896. v-model="wordJson.text"
  10897. v-if="dialogVisibleWordTeacher"
  10898. ></editor-bar>
  10899. </el-form>
  10900. <span slot="footer" class="dialog-footer">
  10901. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10902. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10903. </span>
  10904. </el-dialog>
  10905. <el-dialog
  10906. title="表格"
  10907. :visible.sync="dialogVisibleTable2"
  10908. :append-to-body="true"
  10909. width="95%"
  10910. :before-close="handleClose"
  10911. class="dialog_diy"
  10912. >
  10913. <el-form>
  10914. <div class="cont" v-html="tableJson.text"></div>
  10915. </el-form>
  10916. <span slot="footer" class="dialog-footer">
  10917. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10918. </span>
  10919. </el-dialog>
  10920. <el-dialog
  10921. title="文档"
  10922. :visible.sync="dialogVisibleTable3"
  10923. :append-to-body="true"
  10924. width="95%"
  10925. :before-close="handleClose"
  10926. class="dialog_diy"
  10927. >
  10928. <el-form>
  10929. <div class="cont" v-html="tableJson.text"></div>
  10930. </el-form>
  10931. <span slot="footer" class="dialog-footer">
  10932. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10933. </span>
  10934. </el-dialog>
  10935. <el-dialog
  10936. title="分组设置"
  10937. :visible.sync="dialogVisibleGroup"
  10938. :append-to-body="true"
  10939. width="95%"
  10940. :before-close="handleClose"
  10941. class="dialog_diy"
  10942. >
  10943. <div v-if="dialogVisibleGroup">
  10944. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10945. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10946. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10947. </div>
  10948. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10949. @click="lockChair">
  10950. 锁定位置
  10951. </div>
  10952. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10953. 解锁位置
  10954. </div> -->
  10955. <div class="group_switch">
  10956. <span>开放选座</span>
  10957. <el-switch
  10958. v-model="islock"
  10959. active-text=""
  10960. class="switchCss"
  10961. @change="lockChair"
  10962. ></el-switch>
  10963. </div>
  10964. <div
  10965. type="primary"
  10966. @click="updateGroup"
  10967. class="returnBtn"
  10968. style="background-color: #225bc7"
  10969. >
  10970. 分组设置
  10971. </div>
  10972. </div>
  10973. <div>
  10974. <div
  10975. class="g_d_box"
  10976. v-if="groupJson.group && groupStudent[toolindex]"
  10977. >
  10978. <div
  10979. class="g_d_group"
  10980. v-for="(g, gindex) in groupJson.group"
  10981. :key="gindex"
  10982. >
  10983. <div class="g_d_group_chair">
  10984. <div v-if="groupJson.number > 1">
  10985. <span
  10986. :class="{
  10987. isChair:
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][0],
  10990. updateChair:
  10991. courseDetail.userid == userid &&
  10992. groupStudent[toolindex][gindex] &&
  10993. groupStudent[toolindex][gindex][0] &&
  10994. groupJson.islock == 2,
  10995. }"
  10996. ><span
  10997. class="updateChairBtn"
  10998. @click="
  10999. updateGroupChair(
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][0]
  11002. )
  11003. "
  11004. >修改</span
  11005. ></span
  11006. ><span>{{
  11007. groupStudent[toolindex][gindex] &&
  11008. groupStudent[toolindex][gindex][0]
  11009. ? groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][0].name
  11011. : "空位置"
  11012. }}</span>
  11013. </div>
  11014. <div v-if="groupJson.number > 4">
  11015. <span
  11016. :class="{
  11017. isChair:
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][4],
  11020. updateChair:
  11021. courseDetail.userid == userid &&
  11022. groupStudent[toolindex][gindex] &&
  11023. groupStudent[toolindex][gindex][4] &&
  11024. groupJson.islock == 2,
  11025. }"
  11026. ><span
  11027. class="updateChairBtn"
  11028. @click="
  11029. updateGroupChair(
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][4]
  11032. )
  11033. "
  11034. >修改</span
  11035. ></span
  11036. ><span>{{
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][4]
  11039. ? groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][4].name
  11041. : "空位置"
  11042. }}</span>
  11043. </div>
  11044. <div v-if="groupJson.number > 8">
  11045. <span
  11046. :class="{
  11047. isChair:
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][8],
  11050. updateChair:
  11051. courseDetail.userid == userid &&
  11052. groupStudent[toolindex][gindex] &&
  11053. groupStudent[toolindex][gindex][8] &&
  11054. groupJson.islock == 2,
  11055. }"
  11056. ><span
  11057. class="updateChairBtn"
  11058. @click="
  11059. updateGroupChair(
  11060. groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][8]
  11062. )
  11063. "
  11064. >修改</span
  11065. ></span
  11066. ><span>{{
  11067. groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][8]
  11069. ? groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][8].name
  11071. : "空位置"
  11072. }}</span>
  11073. </div>
  11074. </div>
  11075. <div class="g_d_group_tableBox">
  11076. <div class="g_d_group_chair2">
  11077. <div v-if="groupJson.number > 2">
  11078. <span
  11079. :class="{
  11080. isChair:
  11081. groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][2],
  11083. updateChair:
  11084. courseDetail.userid == userid &&
  11085. groupStudent[toolindex][gindex] &&
  11086. groupStudent[toolindex][gindex][2] &&
  11087. groupJson.islock == 2,
  11088. }"
  11089. ><span
  11090. class="updateChairBtn"
  11091. @click="
  11092. updateGroupChair(
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][2]
  11095. )
  11096. "
  11097. >修改</span
  11098. ></span
  11099. ><span>{{
  11100. groupStudent[toolindex][gindex] &&
  11101. groupStudent[toolindex][gindex][2]
  11102. ? groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][2].name
  11104. : "空位置"
  11105. }}</span>
  11106. </div>
  11107. <div v-if="groupJson.number > 6">
  11108. <span
  11109. :class="{
  11110. isChair:
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][6],
  11113. updateChair:
  11114. courseDetail.userid == userid &&
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][6] &&
  11117. groupJson.islock == 2,
  11118. }"
  11119. ><span
  11120. class="updateChairBtn"
  11121. @click="
  11122. updateGroupChair(
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][6]
  11125. )
  11126. "
  11127. >修改</span
  11128. ></span
  11129. ><span>{{
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][6]
  11132. ? groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][6].name
  11134. : "空位置"
  11135. }}</span>
  11136. </div>
  11137. </div>
  11138. <div class="g_d_group_table">
  11139. <div>
  11140. {{ g.name }}
  11141. </div>
  11142. <div>
  11143. <div
  11144. v-if="
  11145. courseDetail.userid == userid && groupJson.islock == 2
  11146. "
  11147. @click="deleteGroupChair(gindex)"
  11148. >
  11149. 移除组员
  11150. </div>
  11151. <div
  11152. @click="selectGroup(gindex)"
  11153. v-else-if="
  11154. groupStudentUid[toolindex] &&
  11155. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11156. "
  11157. >
  11158. 加入分组
  11159. </div>
  11160. <div
  11161. @click="
  11162. exitGroup(
  11163. groupStudent[toolindex][gindex] &&
  11164. groupStudent[toolindex][gindex][
  11165. groupStudentUid[toolindex][gindex].indexOf(userid)
  11166. ].id
  11167. )
  11168. "
  11169. v-else-if="
  11170. groupStudentUid[toolindex] &&
  11171. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11172. "
  11173. >
  11174. 退出分组
  11175. </div>
  11176. </div>
  11177. </div>
  11178. <div class="g_d_group_chair2">
  11179. <div v-if="groupJson.number > 3">
  11180. <span
  11181. :class="{
  11182. isChair:
  11183. groupStudent[toolindex][gindex] &&
  11184. groupStudent[toolindex][gindex][3],
  11185. updateChair:
  11186. courseDetail.userid == userid &&
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][3] &&
  11189. groupJson.islock == 2,
  11190. }"
  11191. ><span
  11192. class="updateChairBtn"
  11193. @click="
  11194. updateGroupChair(
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][3]
  11197. )
  11198. "
  11199. >修改</span
  11200. ></span
  11201. ><span>{{
  11202. groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][3]
  11204. ? groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][3].name
  11206. : "空位置"
  11207. }}</span>
  11208. </div>
  11209. <div v-if="groupJson.number > 7">
  11210. <span
  11211. :class="{
  11212. isChair:
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][7],
  11215. updateChair:
  11216. courseDetail.userid == userid &&
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][7] &&
  11219. groupJson.islock == 2,
  11220. }"
  11221. ><span
  11222. class="updateChairBtn"
  11223. @click="
  11224. updateGroupChair(
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][7]
  11227. )
  11228. "
  11229. >修改</span
  11230. ></span
  11231. ><span>{{
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][7]
  11234. ? groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][7].name
  11236. : "空位置"
  11237. }}</span>
  11238. </div>
  11239. </div>
  11240. </div>
  11241. <div class="g_d_group_chair">
  11242. <div v-if="groupJson.number > 1">
  11243. <span
  11244. :class="{
  11245. isChair:
  11246. groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][1],
  11248. updateChair:
  11249. courseDetail.userid == userid &&
  11250. groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][1] &&
  11252. groupJson.islock == 2,
  11253. }"
  11254. ><span
  11255. class="updateChairBtn"
  11256. @click="
  11257. updateGroupChair(
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][1]
  11260. )
  11261. "
  11262. >修改</span
  11263. ></span
  11264. ><span>{{
  11265. groupStudent[toolindex][gindex] &&
  11266. groupStudent[toolindex][gindex][1]
  11267. ? groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][1].name
  11269. : "空位置"
  11270. }}</span>
  11271. </div>
  11272. <div v-if="groupJson.number > 5">
  11273. <span
  11274. :class="{
  11275. isChair:
  11276. groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][5],
  11278. updateChair:
  11279. courseDetail.userid == userid &&
  11280. groupStudent[toolindex][gindex] &&
  11281. groupStudent[toolindex][gindex][5] &&
  11282. groupJson.islock == 2,
  11283. }"
  11284. ><span
  11285. class="updateChairBtn"
  11286. @click="
  11287. updateGroupChair(
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][5]
  11290. )
  11291. "
  11292. >修改</span
  11293. ></span
  11294. ><span>{{
  11295. groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][5]
  11297. ? groupStudent[toolindex][gindex] &&
  11298. groupStudent[toolindex][gindex][5].name
  11299. : "空位置"
  11300. }}</span>
  11301. </div>
  11302. <div v-if="groupJson.number > 9">
  11303. <span
  11304. :class="{
  11305. isChair:
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][9],
  11308. updateChair:
  11309. courseDetail.userid == userid &&
  11310. groupStudent[toolindex][gindex] &&
  11311. groupStudent[toolindex][gindex][9] &&
  11312. groupJson.islock == 2,
  11313. }"
  11314. ><span
  11315. class="updateChairBtn"
  11316. @click="
  11317. updateGroupChair(
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][9]
  11320. )
  11321. "
  11322. >修改</span
  11323. ></span
  11324. ><span>{{
  11325. groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][9]
  11327. ? groupStudent[toolindex][gindex] &&
  11328. groupStudent[toolindex][gindex][9].name
  11329. : "空位置"
  11330. }}</span>
  11331. </div>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. </div>
  11336. </div>
  11337. <span slot="footer" class="dialog-footer">
  11338. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11339. </span>
  11340. </el-dialog>
  11341. <el-dialog
  11342. title="分组设置"
  11343. :visible.sync="dialogVisibleGroup2"
  11344. :append-to-body="true"
  11345. width="650px"
  11346. :before-close="handleClose"
  11347. class="dialog_diy"
  11348. >
  11349. <div class="groupBox">
  11350. <div v-if="groupJson2.group" class="groupContent">
  11351. <div class="groupTitle">请设置小组数量及名称</div>
  11352. <div
  11353. v-for="(item, index) in groupJson2.group"
  11354. :key="index"
  11355. class="groupName"
  11356. >
  11357. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11358. <el-input
  11359. v-model="item.name"
  11360. placeholder="请输入名称..."
  11361. style="width: 250px"
  11362. ></el-input>
  11363. <!-- <div class="groupBtn">
  11364. <el-button type="primary" size="small" @click="addGroup(index)">
  11365. 添加</el-button>
  11366. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11367. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11368. </div> -->
  11369. </div>
  11370. </div>
  11371. <div class="groupContent">
  11372. <div class="groupTitle">请设置每组人数</div>
  11373. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11374. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11375. <el-input
  11376. v-model="groupJson.number"
  11377. style="width: 150px"
  11378. placeholder="请输入2-10的数字"
  11379. @change="numberPan"
  11380. ></el-input>
  11381. </div>
  11382. </div>
  11383. <span slot="footer" class="dialog-footer">
  11384. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11385. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11386. </span>
  11387. </el-dialog>
  11388. <el-dialog
  11389. title="作业提交"
  11390. :visible.sync="dialogVisibleGroupWork"
  11391. :append-to-body="true"
  11392. width="500px"
  11393. :before-close="handleClose"
  11394. class="dialog_change"
  11395. >
  11396. <div class="marginT">
  11397. <div>上传文件</div>
  11398. <div
  11399. class="chapter_add"
  11400. @click="addImg($event)"
  11401. v-if="studyJuri[0].cover.length == 0"
  11402. >
  11403. <div class="up_photo">
  11404. <img src="../assets/icon/uploadImg.png" alt />
  11405. </div>
  11406. <!-- <input
  11407. type="file"
  11408. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11409. style="display: none"
  11410. @change="beforeUpload1($event, 1)"
  11411. /> -->
  11412. <input
  11413. type="file"
  11414. accept="*"
  11415. style="display: none"
  11416. @change="beforeUpload1($event, 1)"
  11417. />
  11418. </div>
  11419. <!-- capture="camera" -->
  11420. <div
  11421. class="chapter_add"
  11422. style="
  11423. display: flex;
  11424. width: 100%;
  11425. flex-direction: row;
  11426. flex-wrap: wrap;
  11427. justify-content: flex-start;
  11428. padding: 15px 0;
  11429. "
  11430. v-if="studyJuri[0].cover.length > 0"
  11431. >
  11432. <div class="upCover">
  11433. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11434. <img :src="word" alt v-else-if="fileType == 1" />
  11435. <img :src="video" alt v-else-if="fileType == 2" />
  11436. <img :src="word2" alt v-else-if="fileType == 3" />
  11437. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11438. <div class="deleteWord" @click="clean(1)">
  11439. <img src="../assets/icon/deleteWorks.png" alt />
  11440. </div>
  11441. </div>
  11442. </div>
  11443. </div>
  11444. <div
  11445. class="upload_send"
  11446. @click="addCourseWorks2(taskCount)"
  11447. v-if="!proVisible"
  11448. >
  11449. 提交
  11450. </div>
  11451. </el-dialog>
  11452. <el-dialog
  11453. title="修改分组"
  11454. :visible.sync="dialogVisibleUpdateGroup"
  11455. :append-to-body="true"
  11456. width="350px"
  11457. :before-close="handleClose"
  11458. class="dialog_diy"
  11459. >
  11460. <div>
  11461. <h2>
  11462. {{ this.updateGroupUser.name }}
  11463. </h2>
  11464. <div style="color: rgb(171 171 171); margin-top: 10px">
  11465. 请选择要进入的分组
  11466. </div>
  11467. <el-radio-group v-model="checkChair">
  11468. <el-radio
  11469. style="display: block; margin-top: 20px"
  11470. v-for="(item, index) in updateGroupArray"
  11471. :label="item.label"
  11472. :key="index"
  11473. >{{ item.name }}</el-radio
  11474. >
  11475. </el-radio-group>
  11476. </div>
  11477. <span slot="footer" class="dialog-footer">
  11478. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11479. <el-button type="primary" @click="updateChair">确定</el-button>
  11480. </span>
  11481. </el-dialog>
  11482. <el-dialog
  11483. title="移除组员"
  11484. :visible.sync="dialogVisibleDeleteGroup"
  11485. :append-to-body="true"
  11486. width="350px"
  11487. :before-close="handleClose"
  11488. class="dialog_diy"
  11489. >
  11490. <div>
  11491. <h2>
  11492. {{ this.deleteGroupArray.name }}
  11493. </h2>
  11494. <div style="color: rgb(171 171 171); margin-top: 10px">
  11495. 请选择要删除的组员
  11496. </div>
  11497. <el-checkbox-group v-model="checkDeleteGroup">
  11498. <el-checkbox
  11499. style="display: flex; margin-top: 20px"
  11500. v-for="(item, index) in deleteGroupUser"
  11501. :label="item.userid"
  11502. :key="index"
  11503. >{{ item.name }}</el-checkbox
  11504. >
  11505. </el-checkbox-group>
  11506. </div>
  11507. <span slot="footer" class="dialog-footer">
  11508. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11509. <el-button type="primary" @click="deleteChair">确定</el-button>
  11510. </span>
  11511. </el-dialog>
  11512. <el-dialog
  11513. title="批量上传"
  11514. :visible.sync="dialogVisiblePl"
  11515. :append-to-body="true"
  11516. width="700px"
  11517. :before-close="handleClose"
  11518. class="dialog_change"
  11519. >
  11520. <div class="marginT">
  11521. <div class="plworkBox">
  11522. <div
  11523. class="chapter_add"
  11524. style="
  11525. display: flex;
  11526. width: 150px;
  11527. flex-direction: row;
  11528. flex-wrap: wrap;
  11529. justify-content: flex-start;
  11530. margin: 0 10px 10px 0;
  11531. "
  11532. v-for="(item, index) in plworkFile"
  11533. :key="index"
  11534. >
  11535. <div class="upCover2">
  11536. <img
  11537. :src="item.url"
  11538. alt
  11539. v-if="item.fileType == 1"
  11540. @click="previewImg(item.url)"
  11541. />
  11542. <img :src="word" alt v-else-if="item.fileType == 4" />
  11543. <img :src="video" alt v-else />
  11544. <!-- <span class="picName">{{ item.name }}</span> -->
  11545. <!-- <el-input
  11546. v-model="item.username"
  11547. placeholder="请输入学生名字"
  11548. style="margin-top: 10px"
  11549. ></el-input> -->
  11550. <div
  11551. class="pl_select_box"
  11552. @click="
  11553. getUpdateMore(true, checkUpload(), item.username, index)
  11554. "
  11555. >
  11556. {{ getSName(item.username) }}
  11557. </div>
  11558. <!-- <el-select
  11559. style="margin-top: 10px"
  11560. v-model="item.username"
  11561. filterable
  11562. allow-create
  11563. placeholder="请选择学生"
  11564. >
  11565. <el-option
  11566. v-for="item1 in checkUpload()"
  11567. :key="item1.userid"
  11568. :label="item1.name ? item1.name : item1.username"
  11569. :value="item1.userid"
  11570. >
  11571. </el-option>
  11572. </el-select> -->
  11573. <div class="deleteWord" @click="clean2(index)">
  11574. <img src="../assets/icon/deleteWorks.png" alt />
  11575. </div>
  11576. </div>
  11577. </div>
  11578. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11579. <div class="up_photo2">
  11580. <img src="../assets/icon/plwork.png" alt />
  11581. <span>点击上传文件</span>
  11582. </div>
  11583. <input
  11584. type="file"
  11585. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11586. multiple="multiple"
  11587. style="display: none"
  11588. @change="beforeUpload3($event, 6)"
  11589. />
  11590. </div>
  11591. </div>
  11592. </div>
  11593. <!-- capture="camera" -->
  11594. <div
  11595. class="upload_send"
  11596. @click="addCourseWorksPl(taskCount)"
  11597. v-if="!proVisible2"
  11598. >
  11599. 提交
  11600. </div>
  11601. </el-dialog>
  11602. <el-dialog
  11603. title="修改名称"
  11604. :visible.sync="dialogVisibleSname"
  11605. width="500px"
  11606. :before-close="handleClose"
  11607. class="dialog_diy"
  11608. center
  11609. >
  11610. <div
  11611. style="
  11612. text-align: center;
  11613. display: flex;
  11614. align-items: center;
  11615. justify-content: center;
  11616. "
  11617. >
  11618. <span class="tian1">名称</span>
  11619. <div
  11620. class="pl_select_box"
  11621. style="margin-left: 10px; width: 200px"
  11622. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11623. >
  11624. {{ getSName(worksSName) }}
  11625. </div>
  11626. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11627. placeholder="请选择学生">
  11628. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11629. :value="item.userid">
  11630. </el-option>
  11631. </el-select> -->
  11632. <!-- <el-input
  11633. v-model="worksSName"
  11634. style="width: 250px; margin: 15px 0px"
  11635. ></el-input> -->
  11636. </div>
  11637. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11638. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11639. <el-button type="primary" @click="updateName">确 定</el-button>
  11640. </span>
  11641. </el-dialog>
  11642. <el-dialog
  11643. title="英语写作"
  11644. :visible.sync="engDialogVisible"
  11645. :append-to-body="true"
  11646. width="800px"
  11647. :before-close="handleClose"
  11648. class="dialog_diy"
  11649. >
  11650. <onlineWrite
  11651. v-if="engDialogVisible"
  11652. :englishList="englishList"
  11653. :myAnswerList1="myAnswerList1"
  11654. :userid="userid"
  11655. ref="engJson"
  11656. ></onlineWrite>
  11657. <span slot="footer" class="dialog-footer">
  11658. <el-button @click="engDialogVisible = false">取 消</el-button>
  11659. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11660. </span>
  11661. </el-dialog>
  11662. <el-dialog
  11663. title="英语写作"
  11664. :visible.sync="engUpdateDialogVisible"
  11665. :append-to-body="true"
  11666. width="800px"
  11667. :before-close="handleClose"
  11668. class="dialog_diy fullStyle"
  11669. >
  11670. <div class="engUpBox">
  11671. <div class="engUpTop">
  11672. <div class="engTitle">
  11673. <div>作文题目:</div>
  11674. <div>{{ englishList1.engTitle }}</div>
  11675. </div>
  11676. <div class="engText">
  11677. <div>作文内容:</div>
  11678. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11679. </div>
  11680. </div>
  11681. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11682. <div class="oldBox">
  11683. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11684. <div class="oldText">
  11685. <div class="detailBox">
  11686. <div class="oldDetail">
  11687. <div>标题:</div>
  11688. <div>{{ oldEnglishJson.engTitle }} </div>
  11689. </div>
  11690. <div class="oldDetail1">
  11691. <div>正文:</div>
  11692. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11693. </div>
  11694. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11695. <div>图片:</div>
  11696. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11697. </div>
  11698. </div>
  11699. </div>
  11700. </div>
  11701. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11702. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11703. <div class="oldText">
  11704. <div class="detailBox" style="position: relative;">
  11705. <div class="oldDetail">
  11706. <div>标题:</div>
  11707. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11708. <div v-else v-html="newEnglishList.engTitle"></div>
  11709. </div>
  11710. <div class="oldDetail">
  11711. <div>正文:</div>
  11712. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11713. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11714. </div>
  11715. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11716. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11717. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11718. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11719. </div>
  11720. </div>
  11721. </div>
  11722. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11723. <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">
  11724. <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>
  11725. <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>
  11726. </div>
  11727. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11728. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11729. <div class="detailBox" style="position: relative;">
  11730. <div class="oldDetail">
  11731. <div>标题:</div>
  11732. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11733. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11734. </div>
  11735. <div class="oldDetail">
  11736. <div>正文:</div>
  11737. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11738. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11739. </div>
  11740. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11741. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11742. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11743. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11744. </div>
  11745. </div>
  11746. <div class="oldText" v-else-if="newEngIndex == -1">
  11747. <div class="detailBox" style="position: relative;">
  11748. <div class="oldDetail">
  11749. <div>标题:</div>
  11750. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11751. <div v-else v-html="newEnglishList.engTitle"></div>
  11752. </div>
  11753. <div class="oldDetail">
  11754. <div>正文:</div>
  11755. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11756. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11757. </div>
  11758. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11759. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11760. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11761. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11762. </div>
  11763. </div>
  11764. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11765. <div class="detailBox" style="position: relative;">
  11766. <div class="oldDetail">
  11767. <div>标题:</div>
  11768. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11769. <div v-else>
  11770. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11771. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11772. </div>
  11773. </div>
  11774. <div class="oldDetail">
  11775. <div>正文:</div>
  11776. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11777. <div v-else>
  11778. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11779. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11780. </div>
  11781. </div>
  11782. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11783. <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>
  11784. <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>
  11785. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11786. </div>
  11787. </div>
  11788. </div>
  11789. </div>
  11790. </div>
  11791. <span slot="footer" class="dialog-footer">
  11792. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11793. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11794. </span>
  11795. </el-dialog>
  11796. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11797. <interVideo
  11798. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11799. :videoJson="videoJson"
  11800. :userid="userid"
  11801. :id="id"
  11802. :courseType="courseType"
  11803. :taskCount="taskCount"
  11804. :toolindex="toolindex"
  11805. :videoType="videoType"
  11806. ></interVideo>
  11807. <UpdateMore
  11808. :dialogVisibleMember.sync="dialogVisibleMember"
  11809. :cList="uploadStudentJuri"
  11810. :userid="userid"
  11811. :searchTN="worksSName2"
  11812. @setPlname="setPlname"
  11813. ></UpdateMore>
  11814. <wordCloud
  11815. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11816. :data="wordCloudData"
  11817. ></wordCloud>
  11818. <el-dialog
  11819. title="挑人"
  11820. :visible.sync="dialogVisiblePickPeople"
  11821. width="650px"
  11822. :before-close="handleClose"
  11823. class="dialog_diy"
  11824. center
  11825. >
  11826. <div class="pick_box">
  11827. <div
  11828. class="noWorksName"
  11829. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11830. v-for="(item, index) in uploadStudentJuri"
  11831. :key="index"
  11832. @click="pickStudent(item)"
  11833. >
  11834. {{ item.name }}
  11835. </div>
  11836. </div>
  11837. </el-dialog>
  11838. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11839. :englishVoiceJson='englishVoiceJson'
  11840. :userid="userid"
  11841. :id="id"
  11842. :courseType="courseType"
  11843. :taskCount="taskCount"
  11844. :toolindex="toolindex"
  11845. @selectSWorks="selectSWorks"
  11846. @selectStudent="selectStudent"
  11847. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11848. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11849. :userid="userid"
  11850. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11851. :commentDetail="commentDetail"
  11852. :courseDetail="courseDetail"
  11853. :wScore="wScore"
  11854. :scoreDetail="scoreDetail"
  11855. @selectSWorks="selectSWorks"
  11856. @selectStudent="selectStudent"></checkEnglishVoice>
  11857. </div>
  11858. </template>
  11859. <script>
  11860. import "../common/aws-sdk-2.235.1.min.js";
  11861. // import pdf from "./components/pdf3";
  11862. import pdf from "./components/vpdf";
  11863. import AskStatic from "./components/askStatic";
  11864. import AskStatic2 from "./components/askStatic2";
  11865. import AnswerData2 from "./components/answerData2";
  11866. import AnswerData from "./components/answerData";
  11867. import EditorBar from "./tools/wangEnduit.vue";
  11868. import Table from "./tools/table.vue";
  11869. import Time from "./tools/time.vue";
  11870. import Mind from "./tools/jsmind.vue";
  11871. import Sunburst from "./tools/sunburst";
  11872. import SeeBoard from "./tools/seeBoard";
  11873. import * as imageConversion from "image-conversion";
  11874. import Audio from "./components/audio.vue";
  11875. import ImgDraw from "./tools/imgDraw/imgDraw";
  11876. import { Empty } from "element-ui";
  11877. import RecordRTC from "recordrtc";
  11878. import interVideo from "./interVideo/index.vue";
  11879. import UpdateMore from "./updateMore/updateMore.vue";
  11880. import wordCloud from "./wordCloud/index.vue";
  11881. import axios from "axios";
  11882. import JSZip from "jszip";
  11883. import FileSaver from "file-saver";
  11884. import onlineWrite from "./components/onlineWrite";
  11885. import englishEva from "./components/englishEva";
  11886. import * as Diff from 'diff'
  11887. import EnglishVoice from './EnglishVoice2/index.vue'
  11888. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11889. import correctText from './components/correctText.vue'
  11890. import scoreItem from './scoreList/scoreItem.vue'
  11891. import scoreZong from './scoreZong/index.vue'
  11892. import classRoomHelper from './classRoomHelper/index.vue'
  11893. const getFile = (url) => {
  11894. return new Promise((resolve, reject) => {
  11895. var credentials = {
  11896. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11897. secretAccessKey: "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",
  11898. }; //秘钥形式的登录上传
  11899. window.AWS.config.update(credentials);
  11900. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11901. let url2 = url;
  11902. let _url2 = "";
  11903. if (
  11904. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11905. ) {
  11906. _url2 = url2.split(
  11907. "https://view.officeapps.live.com/op/view.aspx?src="
  11908. )[1];
  11909. } else {
  11910. _url2 = url2;
  11911. }
  11912. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11913. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11914. var params = {
  11915. Bucket: "ccrb",
  11916. Key: name
  11917. };
  11918. s3.getObject(params, function (err, data) {
  11919. if (err) {
  11920. console.log(err, err.stack)
  11921. resolve({ data: 1 });
  11922. }else {
  11923. resolve({ data: data.Body });
  11924. console.log(data);
  11925. } // sxuccessful response
  11926. });
  11927. // axios({
  11928. // method: "get",
  11929. // url,
  11930. // responseType: "blob",
  11931. // })
  11932. // .then((data) => {
  11933. // resolve({ data: data.data });
  11934. // })
  11935. // .catch((error) => {
  11936. // resolve({ data: 1 });
  11937. // // reject(error.toString());
  11938. // });
  11939. });
  11940. };
  11941. export default {
  11942. components: {
  11943. EditorBar,
  11944. Time,
  11945. pdf,
  11946. AskStatic,
  11947. AskStatic2,
  11948. Mind,
  11949. Sunburst,
  11950. SeeBoard,
  11951. AnswerData2,
  11952. AnswerData,
  11953. Audio,
  11954. ImgDraw,
  11955. Table,
  11956. interVideo,
  11957. UpdateMore,
  11958. wordCloud,
  11959. onlineWrite,
  11960. englishEva,
  11961. EnglishVoice,
  11962. checkEnglishVoice,
  11963. correctText,
  11964. scoreItem,
  11965. classRoomHelper,
  11966. scoreZong
  11967. },
  11968. data() {
  11969. return {
  11970. bg: null,
  11971. drawShow: false,
  11972. dialogVisible: false,
  11973. dialogVisiblePl: false,
  11974. commentDialogVisible: false,
  11975. dialogVisibleMember: false,
  11976. dialogVisibleWordCloud: false,
  11977. videoVisible: false,
  11978. isStar: false,
  11979. studentEvalDialogVisible: false,
  11980. studentEvalDialogVisibleTeacher: false,
  11981. dialogVisibleSelect: false,
  11982. dialogVisibleSelectTeacher: false,
  11983. dialogVisibleScore: false,
  11984. dialogVisibleENScore: false,
  11985. dialogVisibleSentence: false,
  11986. dialogVisibleSentenceTeacher: false,
  11987. dialogVisibleSentence1: false,
  11988. dialogVisibleWorks: false,
  11989. dialogVisibleTable: false,
  11990. dialogVisibleTableTeacher: false,
  11991. dialogVisibleWord: false,
  11992. dialogVisibleWordTeacher: false,
  11993. dialogVisibleTable2: false,
  11994. dialogVisibleTable3: false,
  11995. dialogVisibleGroupWork: false,
  11996. dialogVisibleUpdateGroup: false,
  11997. dialogVisibleDeleteGroup: false,
  11998. dialogVisibleSname: false,
  11999. dialogVisibleVideo: false,
  12000. dialogVisiblePickPeople: false,
  12001. engDialogVisible: false,
  12002. engUpdateDialogVisible: false,
  12003. engEvaDialogVisible: false,
  12004. evaEngJson: {
  12005. teacherJson: {},
  12006. studentJson: {},
  12007. message: {},
  12008. },
  12009. isNoUserid:false,
  12010. engListLength:0,
  12011. engWid:"",
  12012. newEnglishList:{
  12013. engTitle:"",
  12014. engText:"",
  12015. },
  12016. newEnglishList1:[],
  12017. oldEnglishJson:{},
  12018. oldEnglishJson1:{},
  12019. englishList1:{},
  12020. englishList:{},
  12021. myAnswerList1:{},
  12022. topHeight:0,
  12023. newEngIndex:-1,
  12024. englishToolIndex:0,
  12025. worksSName: "",
  12026. classJuri: [],
  12027. uploadStudentJuri: [],
  12028. uploadCid: "",
  12029. snameWid: "",
  12030. sStudent: {},
  12031. sTool: "",
  12032. bzText: "",
  12033. commentDetail: [],
  12034. selectAnswer: [],
  12035. videoDetail: {},
  12036. selectJson: {},
  12037. eScore: { eBzText: "", eStar: [] },
  12038. id: this.$route.query.courseId,
  12039. userid: this.$route.query.userid,
  12040. classId: this.$route.query.cid,
  12041. // courseTypeLine: this.$route.query.type,
  12042. oid: this.$route.query.oid,
  12043. org: this.$route.query.org,
  12044. tType: this.$route.query.tType,
  12045. courseType: this.$route.query.type,
  12046. screenType: this.$route.query.screenType,
  12047. tcid2: this.$route.query.tcid,
  12048. tcid: "",
  12049. pptImgUrl: "",
  12050. pptImgUrl1: "",
  12051. commentText: "",
  12052. full: false,
  12053. sIsOpen: false,
  12054. IsLookOpen: false,
  12055. IsFollow: false,
  12056. pzDialog: false,
  12057. contentDialog: false,
  12058. mlDialog: false,
  12059. type: 1,
  12060. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12061. sentenceList1: [],
  12062. tableJson: [],
  12063. tableJsonO: [],
  12064. wordJson: [],
  12065. wordJsonO: [],
  12066. vedio: [],
  12067. text: [],
  12068. textList: [],
  12069. line: [],
  12070. lineList: [],
  12071. chapTools: [],
  12072. chapToolList: [],
  12073. file: [],
  12074. fileC: [],
  12075. vedioTime: [],
  12076. upToolImg: "",
  12077. preTime: 0,
  12078. rateList: {
  12079. ca: 0,
  12080. },
  12081. rateParams: [],
  12082. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12083. studyJuri: [
  12084. {
  12085. content: "",
  12086. cover: [],
  12087. upVedio: [],
  12088. upFile: [],
  12089. },
  12090. ],
  12091. isClose: 0,
  12092. plworkFile: [],
  12093. mr: require("../assets/vedioPic.png"),
  12094. word: require("../assets/icon/isWord.png"),
  12095. word2: require("../assets/icon/word2.png"),
  12096. video: require("../assets/icon/isVideo.png"),
  12097. noLikes: require("../assets/icon/comment/noLikes.png"),
  12098. likes: require("../assets/icon/comment/likes.png"),
  12099. scoreImg: require("../assets/score.png"),
  12100. courseDetail: {},
  12101. reply: "",
  12102. isSelect: false,
  12103. chapInfo: [],
  12104. chapInfoList: [],
  12105. taskCount: 0,
  12106. imgList: [],
  12107. noImgList: [],
  12108. pzList: [],
  12109. timeWorkList: [],
  12110. PlTextList: [
  12111. "Excellent!",
  12112. "nice!",
  12113. "很有创意!",
  12114. "还不错哦~",
  12115. "继续努力哦~",
  12116. ],
  12117. isClickNav: "",
  12118. navId: "",
  12119. playerOptions: {
  12120. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12121. autoplay: false, //如果true,浏览器准备好时开始回放。
  12122. muted: false, // 默认情况下将会消除任何音频。
  12123. loop: false, // 导致视频一结束就重新开始。
  12124. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12125. language: "zh-CN",
  12126. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12127. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12128. sources: [
  12129. {
  12130. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12131. src: "", //url地址require("../../assets/media/aaa.mp4")
  12132. },
  12133. ],
  12134. // poster: require("../../assets/tu31.png"), //你的封面地址
  12135. // poster: dataRes.imgUrl, //你的封面地址
  12136. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12137. controlBar: {
  12138. timeDivider: true, //当前时间和持续时间的分隔符
  12139. durationDisplay: true, //显示持续时间
  12140. remainingTimeDisplay: false, //是否显示剩余时间功能
  12141. fullscreenToggle: true, //全屏按钮
  12142. },
  12143. },
  12144. playerOptions1: {
  12145. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12146. autoplay: false, //如果true,浏览器准备好时开始回放。
  12147. muted: false, // 默认情况下将会消除任何音频。
  12148. loop: false, // 导致视频一结束就重新开始。
  12149. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12150. language: "zh-CN",
  12151. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12152. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12153. sources: [
  12154. {
  12155. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12156. src: "", //url地址require("../../assets/media/aaa.mp4")
  12157. },
  12158. ],
  12159. // poster: require("../../assets/tu31.png"), //你的封面地址
  12160. // poster: dataRes.imgUrl, //你的封面地址
  12161. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12162. controlBar: {
  12163. timeDivider: true, //当前时间和持续时间的分隔符
  12164. durationDisplay: true, //显示持续时间
  12165. remainingTimeDisplay: false, //是否显示剩余时间功能
  12166. fullscreenToggle: true, //全屏按钮
  12167. },
  12168. },
  12169. playerO: {},
  12170. noneBtnImg: false,
  12171. proVisible: false,
  12172. proVisible2: false,
  12173. progress: 0,
  12174. isFinishSize: 0,
  12175. isAllSize: 0,
  12176. questionAnswer: "",
  12177. answerQ: "", //问答标题
  12178. rateJson: [],
  12179. wbCount: 0,
  12180. wordCount: 0,
  12181. mindCount: 0,
  12182. askCount: 0,
  12183. noteCount: 0,
  12184. mindNetWorkCount: 0,
  12185. libraryCount: 0,
  12186. workCount: 0,
  12187. timeCount: 0,
  12188. answerCount: 0,
  12189. trainCount: 0,
  12190. evalCount: 0,
  12191. dialogImageUrl: "",
  12192. pictureDialog: false,
  12193. toolTypeList: [],
  12194. dialogVisible1: false,
  12195. dialogVisible2: false,
  12196. dialogVisible3: false,
  12197. dialogVisible6: false,
  12198. dialogVisible4: false,
  12199. isNoHomeWork: false,
  12200. dialogVisible5: false,
  12201. dialogVisible5Teacher: false,
  12202. dialogVisibleChoice: false,
  12203. dialogVisibleChoiceTeacher: false,
  12204. answerDialogVisible: false,
  12205. answerDialogVisibleTeacher: false,
  12206. juriVisible: false,
  12207. timeDialogVisible: false,
  12208. replyDialogVisible: false,
  12209. toolDialogVisible: false,
  12210. replyIndex: 0,
  12211. replyPid: "",
  12212. radio: [],
  12213. isAsk: false,
  12214. askJson: {
  12215. askCount: 1,
  12216. askTitle: "",
  12217. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12218. },
  12219. testJson: {},
  12220. videoType:0,
  12221. checkJson: [],
  12222. askList: [],
  12223. answerList: [],
  12224. navList: [],
  12225. addPzDialog: false,
  12226. pzConText: "",
  12227. worksStudent: [],
  12228. isCloseList: [],
  12229. workStudent: [],
  12230. groupStudent: [],
  12231. groupStudentUid: [],
  12232. noWorksS: [],
  12233. isWorksS: [],
  12234. noWorksStudent: [],
  12235. toolindex: 0,
  12236. toolDetailIndex: null,
  12237. groupIndex: 0,
  12238. workTypeB: false,
  12239. workTypeC: false,
  12240. isAnswer: false,
  12241. isHovered: false,
  12242. isHovered1: false,
  12243. isHovered2: false,
  12244. commentTagShow:0,
  12245. timer: null,
  12246. opertimer: null,
  12247. showType: 0,
  12248. fileType: 0,
  12249. showPDF: false,
  12250. noteName: "",
  12251. evaJuri: [],
  12252. evalua: "",
  12253. eTitle: "",
  12254. eName: "",
  12255. eJson: {},
  12256. fid: "", //一级
  12257. sid: "", //二级
  12258. tid: "", //二级
  12259. typeMode: 1,
  12260. eJSONNum: 0,
  12261. Etype: 1,
  12262. data: {
  12263. meta: {
  12264. name: "example",
  12265. author: "dd@163.com",
  12266. version: "0.2",
  12267. },
  12268. format: "node_array",
  12269. data: [{ id: "root", isroot: true, topic: "" }],
  12270. },
  12271. fullDialogVisible: false,
  12272. fulltype: "",
  12273. fullUrl: "",
  12274. commentIndexJson: {},
  12275. Stbodywidth: 0,
  12276. ispzType: 0,
  12277. pzType: 1,
  12278. wScore: 0,
  12279. scoreDetail: "",
  12280. videoStart: false,
  12281. recorder: null,
  12282. groupJson: {},
  12283. islock: false,
  12284. groupJson2: {},
  12285. dialogVisibleGroup: false,
  12286. dialogVisibleGroup2: false,
  12287. updateGroupArray: [],
  12288. updateGroupUser: {},
  12289. deleteGroupUser: [],
  12290. deleteGroupArray: {},
  12291. checkChair: "",
  12292. checkDeleteGroup: [],
  12293. inviteCode: "",
  12294. courseGroupStudent: [],
  12295. courseGroupStudentUid: [],
  12296. courseGroup: {},
  12297. isGroup: false,
  12298. // toolIndex: null,
  12299. tool: {},
  12300. isWorkTool: [
  12301. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12302. ], //, 40
  12303. videoJson: {},
  12304. toolType: 0,
  12305. checktoolArray: [],
  12306. vChapterData: [],
  12307. isUpdateToolDetail: false,
  12308. isUpdateToolDetail1: false,
  12309. updateToolDetailInner: "",
  12310. checkboxList: [],
  12311. plIndex: "",
  12312. worksSName2: "",
  12313. worksSid: "",
  12314. wordCloudData: [],
  12315. isPickStudent: [],
  12316. pzStype: 1,
  12317. myAnList: {},
  12318. userMes:{},
  12319. downLoading: false,
  12320. greyType: false,
  12321. correctWord: [],
  12322. isUpdateText: "",
  12323. EnglishVoiceDialog: false,
  12324. englishVoiceJson: {},
  12325. englishVoiceJsonWork:[],
  12326. scoreList:{
  12327. listdata:[],
  12328. isScoreList:[],
  12329. },
  12330. classRoomHelperWidth: '85px',
  12331. orgArray:[],
  12332. oidArray:[],
  12333. toolsList:{
  12334. 58: "模拟驾驶",
  12335. 59: "路径搜索",
  12336. 60: "深度学习",
  12337. 10: "倒计时",
  12338. 65: "挑人",
  12339. 7: "思维网格",
  12340. 1: "电子白板",
  12341. 52: "文档",
  12342. 3: "思维导图",
  12343. 48: "表格",
  12344. 49: "学生分组",
  12345. 4: "卷调查",
  12346. 45: "选择题",
  12347. 15: "问答",
  12348. 16: "作业提交",
  12349. 50: "批量上传",
  12350. 41: "选择匹配",
  12351. 47: "排序",
  12352. 40: "个人评价",
  12353. 18: "训练平台",
  12354. 21: "AIoT Blockly",
  12355. 23: "AI Python",
  12356. 24: "AI Blockly",
  12357. 32: "源码编辑",
  12358. 57: "CocoPi",
  12359. 63: "海龟编程",
  12360. 28: "翻译",
  12361. 31: "数字画板",
  12362. 39: "GeoGebra",
  12363. 66: "公式编辑",
  12364. 67: "分子结构",
  12365. 68: "时间轴",
  12366. 69: "英语写作",
  12367. 70: "英语口语",
  12368. 25: "目标管理",
  12369. 26: "课程设计",
  12370. 62: "交互视频",
  12371. 71: "AI智能体"
  12372. }
  12373. };
  12374. },
  12375. methods: {
  12376. getAIJ(){
  12377. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12378. let oid = res.data[0];
  12379. let org = res.data[1];
  12380. let oidArray = [];
  12381. let orgArray = [];
  12382. oid.forEach(i=>oidArray.push(i.oid))
  12383. org.forEach(i=>orgArray.push(i.oid))
  12384. this.orgArray = orgArray;
  12385. this.oidArray = oidArray;
  12386. })
  12387. },
  12388. insertMemorandum(_html){//保存行为操作
  12389. //variable
  12390. //btn
  12391. let params = [{
  12392. uid:this.userid,
  12393. courseId:this.id+(this.tcid2?this.tcid2:''),
  12394. content:_html
  12395. }]
  12396. console.log("👇👇")
  12397. console.log(params)
  12398. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12399. if(res.data==1){
  12400. console.log('保存操作成功')
  12401. }else{
  12402. console.log('保存操作失败')
  12403. }
  12404. }).catch(e=>{
  12405. console.log('保存操作失败')
  12406. console.log(e)
  12407. })
  12408. },
  12409. gx(){
  12410. this.$forceUpdate();
  12411. },
  12412. isUpdateCorrect(t,p){
  12413. if(this.greyType == false){
  12414. this.isUpdateText = t;
  12415. this.greyType = true;
  12416. }else{
  12417. if(p == 1){
  12418. this.newEnglishList.engText = this.isUpdateText;
  12419. }else if(p == 2){
  12420. this.oldEnglishJson1.engText = this.isUpdateText;
  12421. }else if(p == 3){
  12422. this.newEnglishList.engText = this.isUpdateText;
  12423. }else{
  12424. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12425. }
  12426. this.greyType = false
  12427. }
  12428. },
  12429. aiCorrect(t,p){
  12430. let aiText = "";
  12431. const loading = this.$loading.service({
  12432. background: "rgba(255, 255, 255)",
  12433. target: document.querySelectorAll(".loadingText")[0],
  12434. });
  12435. let param = {
  12436. model: "gpt-3.5-turbo",
  12437. temperature: 0,
  12438. max_tokens: 2048,
  12439. top_p: 1,
  12440. frequency_penalty: 0,
  12441. presence_penalty: 0,
  12442. messages: [
  12443. {
  12444. role: "user",
  12445. content:
  12446.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12447. },
  12448. ],
  12449. uid: this.userid,
  12450. stream: false,
  12451. };
  12452. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12453. (res) => {
  12454. if (
  12455. res.data.FunctionResponse &&
  12456. res.data.FunctionResponse.result &&
  12457. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12458. ) {
  12459. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12460. return;
  12461. }
  12462. aiText =
  12463. res.data.FunctionResponse.choices[0].message.content;
  12464. aiText = aiText.replace(/%/g,"%25");
  12465. // let w = "";
  12466. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12467. // for(var k = 0;k<a.length;k++){
  12468. // //diffWordsWithSpace
  12469. // if(a.length > 1){
  12470. // if(a[k].added == true){
  12471. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12472. // }else if(a[k].removed == true){
  12473. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12474. // }else{
  12475. // w += '<span>' + a[k].value + '</span>';
  12476. // }
  12477. // }else{
  12478. // if(p == 1){
  12479. // w = this.newEnglishList.engText;
  12480. // }else if(p == 2){
  12481. // w = this.oldEnglishJson1.engText;
  12482. // }else if(p == 3){
  12483. // w = this.newEnglishList.engText;
  12484. // }else{
  12485. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12486. // }
  12487. // }
  12488. // }
  12489. if(p == 1){
  12490. this.newEnglishList.engText = aiText;
  12491. }else if(p == 2){
  12492. this.oldEnglishJson1.engText = aiText;
  12493. }else if(p == 3){
  12494. this.newEnglishList.engText = aiText;
  12495. }else{
  12496. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12497. }
  12498. loading.close();
  12499. },
  12500. (err) => {
  12501. console.log(err);
  12502. loading.close();
  12503. }
  12504. );
  12505. },
  12506. addToolChoose() {
  12507. if (!this.checktoolArray.length) {
  12508. this.$message.error("请选择要添加的任务");
  12509. return;
  12510. }
  12511. if (
  12512. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12513. this.taskCount
  12514. ].toolChoose[0].tool.length
  12515. ) {
  12516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12517. this.taskCount
  12518. ].toolChoose[0].tool = this.checktoolArray;
  12519. } else {
  12520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12521. this.taskCount
  12522. ].toolChoose.push({
  12523. tool: this.checktoolArray,
  12524. toolDetail: "",
  12525. toolType: 0,
  12526. askCount: 1,
  12527. askTitle: "",
  12528. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12529. });
  12530. }
  12531. let params = [
  12532. {
  12533. cid: this.id,
  12534. chapters: JSON.stringify(this.chapInfoList),
  12535. uid: this.userid,
  12536. unitIndex: this.courseType,
  12537. },
  12538. ];
  12539. this.ajax
  12540. .post(this.$store.state.api + "updateWorkNew4", params)
  12541. .then((res) => {
  12542. this.$message({
  12543. message: "添加成功",
  12544. type: "success",
  12545. });
  12546. this.checktoolArray = [];
  12547. this.getCourseDetail(2);
  12548. this.checkBz(
  12549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12550. this.taskCount
  12551. ].toolChoose.length - 1
  12552. );
  12553. this.toolDialogVisible = false;
  12554. this.refreshCourse();
  12555. this.$forceUpdate();
  12556. })
  12557. .catch((err) => {
  12558. console.error(err);
  12559. });
  12560. },
  12561. checkBz(index) {
  12562. this.isUpdateToolDetail = false;
  12563. this.$forceUpdate();
  12564. setTimeout(() => {
  12565. document.scrollingElement.scrollTop =
  12566. document.querySelectorAll(".filebox")[index].offsetTop +
  12567. document.querySelector(".student_body").offsetTop;
  12568. }, 500);
  12569. },
  12570. updateToolDetail(i, type) {
  12571. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12572. this.toolDetailIndex = i
  12573. this.isUpdateToolDetail1 = true;
  12574. setTimeout(() => {
  12575. this.updateToolDetailInner = JSON.parse(
  12576. JSON.stringify(
  12577. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12578. this.taskCount
  12579. ].toolChoose[i].toolDetail
  12580. )
  12581. );
  12582. document.querySelector(".checkTextArea").focus();
  12583. }, 0);
  12584. } else if((this.isUpdateToolDetail1 && type != 2)){
  12585. // this.toolDetailIndex = i;
  12586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12587. this.taskCount
  12588. ].toolChoose[i].toolDetail = JSON.parse(
  12589. JSON.stringify(this.updateToolDetailInner)
  12590. );
  12591. let params = [
  12592. {
  12593. cid: this.id,
  12594. chapters: JSON.stringify(this.chapInfoList),
  12595. uid: this.userid,
  12596. unitIndex: this.courseType,
  12597. },
  12598. ];
  12599. this.ajax
  12600. .post(this.$store.state.api + "updateWorkNew4", params)
  12601. .then((res) => {
  12602. this.isUpdateToolDetail1 = false;
  12603. this.$message({
  12604. message: "修改成功",
  12605. type: "success",
  12606. });
  12607. this.toolDetailIndex = null;
  12608. this.updateToolDetailInner = "";
  12609. this.getCourseDetail(2);
  12610. this.$forceUpdate();
  12611. })
  12612. .catch((err) => {
  12613. console.error(err);
  12614. });
  12615. } else if((this.isUpdateToolDetail1 && type == 2)){
  12616. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12617. this.taskCount
  12618. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12619. JSON.stringify(this.updateToolDetailInner)
  12620. );
  12621. let params = [
  12622. {
  12623. cid: this.id,
  12624. chapters: JSON.stringify(this.chapInfoList),
  12625. uid: this.userid,
  12626. unitIndex: this.courseType,
  12627. },
  12628. ];
  12629. this.ajax
  12630. .post(this.$store.state.api + "updateWorkNew4", params)
  12631. .then((res) => {
  12632. this.$message({
  12633. message: "修改成功",
  12634. type: "success",
  12635. });
  12636. this.toolDetailIndex = i;
  12637. this.isUpdateToolDetail1 = true;
  12638. setTimeout(() => {
  12639. this.updateToolDetailInner = JSON.parse(
  12640. JSON.stringify(
  12641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12642. this.taskCount
  12643. ].toolChoose[i].toolDetail
  12644. )
  12645. );
  12646. document.querySelector(".checkTextArea").focus();
  12647. }, 0);
  12648. this.getCourseDetail(2);
  12649. this.$forceUpdate();
  12650. })
  12651. .catch((err) => {
  12652. console.error(err);
  12653. });
  12654. }
  12655. },
  12656. jumpGj(i, j, k, l) {
  12657. for (var z = 0; z < this.navList.length; z++) {
  12658. for (var q = 0; q < this.navList[z].task.length; q++) {
  12659. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12660. this.navList[z].task[q].tool[w].isTool = false;
  12661. }
  12662. }
  12663. }
  12664. this.navList[i].task[j].tool[k].isTool =
  12665. !this.navList[i].task[j].tool[k].isTool;
  12666. var a = document.scrollingElement;
  12667. this.navId = ""
  12668. let target = document.querySelector(`#gj${k}`);
  12669. if (target) {
  12670. target.scrollIntoView(true);
  12671. setTimeout(() => {
  12672. a.scrollTop = a.scrollTop - 150;
  12673. }, 0);
  12674. }
  12675. let flag = this.courseType == i;
  12676. let flag2 = this.taskCount == j
  12677. if (l) {
  12678. this.courseType = i;
  12679. // this.navId = l;
  12680. this.taskCount = j;
  12681. this.selectPz();
  12682. this.getHomeWork();
  12683. this.getCourseDetail(2);
  12684. if(flag){
  12685. if(flag2){
  12686. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12687. }else{
  12688. 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>`)
  12689. }
  12690. }else{
  12691. 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>`)
  12692. }
  12693. }
  12694. // var b = this.$refs["bz" + k][0];
  12695. // a.scrollTop = b.offsetTop;
  12696. },
  12697. addTools2(i) {
  12698. if (i == 4) {
  12699. // this.openTools2(4);
  12700. this.$message.error("暂未开放");
  12701. return;
  12702. }
  12703. if (i == 45) {
  12704. // this.openTools2(45);
  12705. this.$message.error("暂未开放");
  12706. return;
  12707. }
  12708. if (i == 47) {
  12709. // this.openTools2(47);
  12710. this.$message.error("暂未开放");
  12711. return;
  12712. }
  12713. if (i == 49) {
  12714. // this.openTools2(49);
  12715. this.$message.error("暂未开放");
  12716. return;
  12717. }
  12718. if (i == 62) {
  12719. // this.openTools(itemTaskIndex, 62, toolIndex);
  12720. this.$message.error("暂未开放");
  12721. return;
  12722. }
  12723. if (i == 15) {
  12724. // this.openTools(itemTaskIndex, 15, toolIndex);
  12725. this.$message.error("暂未开放");
  12726. return;
  12727. }
  12728. if (i == 40) {
  12729. // this.openTools(itemTaskIndex, 40, toolIndex);
  12730. this.$message.error("暂未开放");
  12731. return;
  12732. }
  12733. if (i == 41) {
  12734. // this.openTools(itemTaskIndex, 41, toolIndex);
  12735. this.$message.error("暂未开放");
  12736. return;
  12737. }
  12738. if (i == 42) {
  12739. // this.openTools(itemTaskIndex, 42, toolIndex);
  12740. this.$message.error("暂未开放");
  12741. return;
  12742. }
  12743. if (this.checktoolArray.length > 0) {
  12744. if (this.checktoolArray.indexOf(i) != -1) {
  12745. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12746. } else {
  12747. this.checktoolArray = [];
  12748. this.checktoolArray.push(i);
  12749. }
  12750. } else {
  12751. this.checktoolArray.push(i);
  12752. }
  12753. this.$forceUpdate();
  12754. },
  12755. jump() {
  12756. window.parent.postMessage({ tools: "43" }, "*");
  12757. },
  12758. getUpdateMore(f, checkboxList, searchTN, index) {
  12759. this.dialogVisibleMember = f;
  12760. this.checkboxList = checkboxList;
  12761. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12762. this.plIndex = index;
  12763. },
  12764. setPlname(a) {
  12765. if (this.plworkFile.length) {
  12766. this.plworkFile[this.plIndex].username = a;
  12767. } else {
  12768. this.worksSName = a;
  12769. }
  12770. this.dialogVisibleMember = false;
  12771. },
  12772. previewImg(url,w=null) {
  12773. this.$hevueImgPreview(url);
  12774. if(w){
  12775. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12776. }
  12777. },
  12778. checkImg(list) {
  12779. if (!list.length) {
  12780. return;
  12781. }
  12782. this.$hevueImgPreview({
  12783. multiple: true, // 开启多图预览模式
  12784. imgList: list, // 需要预览的多图数组
  12785. });
  12786. },
  12787. change(val) {
  12788. console.log(val);
  12789. },
  12790. goTo(path) {
  12791. this.$router.push(path);
  12792. },
  12793. handlePictureCardPreview(url) {
  12794. this.dialogImageUrl = url;
  12795. this.pictureDialog = true;
  12796. },
  12797. clean(type) {
  12798. if (type == 1) {
  12799. this.studyJuri[0].cover.splice(0, 1);
  12800. } else if (type == 2) {
  12801. this.studyJuri[0].upVedio.splice(0, 1);
  12802. } else {
  12803. this.studyJuri[0].upFile.splice(0, 1);
  12804. }
  12805. },
  12806. clean2(index) {
  12807. this.plworkFile.splice(index, 1);
  12808. },
  12809. handleClose(done) {
  12810. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12811. this.videoDetail.sources[0].src = "";
  12812. }
  12813. this.commentIndexJson = {};
  12814. done();
  12815. },
  12816. fullTools() {
  12817. this.full = !this.full;
  12818. },
  12819. imgChange(file, fileList, type) {
  12820. if (type == 1) {
  12821. var _tmp = this.studyJuri[0].cover;
  12822. } else if (type == 2) {
  12823. var _tmp = this.studyJuri[0].upVedio;
  12824. } else {
  12825. var _tmp = this.studyJuri[0].upFile;
  12826. }
  12827. this.noneBtnImg = _tmp.length >= 1;
  12828. },
  12829. setContent(bool) {
  12830. this.contentDialog = bool;
  12831. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12832. document.querySelector(".workd_media").style.height = "650px";
  12833. } else if (document.querySelector(".workd_media")) {
  12834. document.querySelector(".workd_media").style.height = "auto";
  12835. }
  12836. },
  12837. setContent2(bool) {
  12838. this.mlDialog = bool;
  12839. if (
  12840. bool &&
  12841. this.contentDialog &&
  12842. document.querySelector(".workd_media")
  12843. ) {
  12844. document.querySelector(".workd_media").style.height = "650px";
  12845. } else if (document.querySelector(".workd_media")) {
  12846. document.querySelector(".workd_media").style.height = "auto";
  12847. }
  12848. this.$forceUpdate();
  12849. },
  12850. openToolAll() {
  12851. this.toolDialogVisible = true;
  12852. },
  12853. addImg(e) {
  12854. var el = e.currentTarget;
  12855. // this.$message.success('触发上传')
  12856. el.getElementsByTagName("input")[0].click();
  12857. e.target.value = "";
  12858. },
  12859. addSelectAnswer() {
  12860. let params = [
  12861. {
  12862. uid: this.userid,
  12863. cid: this.id,
  12864. stage: this.courseType,
  12865. task: this.taskCount,
  12866. tool: this.toolindex,
  12867. content: this.selectAnswer.answer,
  12868. type: 7,
  12869. },
  12870. ];
  12871. this.ajax
  12872. .post(this.$store.state.api + "addCourseWorks", params)
  12873. .then((res) => {
  12874. this.$message({
  12875. message: "提交成功",
  12876. type: "success",
  12877. });
  12878. this.dialogVisibleSelect = false;
  12879. // this.selectAnswer = {};
  12880. this.selectSWorks();
  12881. this.selectStudent();
  12882. })
  12883. .catch((err) => {
  12884. this.$message.error("提交失败");
  12885. console.error(err);
  12886. });
  12887. },
  12888. addSelectAnswerTeacher() {
  12889. let params = [
  12890. {
  12891. uid: this.sStudent.userid,
  12892. cid: this.id,
  12893. stage: this.courseType,
  12894. task: this.taskCount,
  12895. tool: this.toolindex,
  12896. content: this.selectAnswer.answer,
  12897. type: 7,
  12898. },
  12899. ];
  12900. this.ajax
  12901. .post(this.$store.state.api + "addCourseWorks", params)
  12902. .then((res) => {
  12903. this.$message({
  12904. message: "提交成功",
  12905. type: "success",
  12906. });
  12907. this.dialogVisibleSelectTeacher = false;
  12908. // this.selectAnswer = {};
  12909. this.selectSWorks();
  12910. this.selectStudent();
  12911. })
  12912. .catch((err) => {
  12913. this.$message.error("提交失败");
  12914. console.error(err);
  12915. });
  12916. },
  12917. addSenWorks() {
  12918. for (var i = 0; i < this.sentenceList.length; i++) {
  12919. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12920. if (
  12921. this.sentenceList[i].chooseSenList[j] == undefined ||
  12922. this.sentenceList[i].chooseSenList[j] == ""
  12923. ) {
  12924. this.$message.error("请将答案填写完整!");
  12925. return;
  12926. }
  12927. }
  12928. }
  12929. let params = [
  12930. {
  12931. uid: this.userid,
  12932. cid: this.id,
  12933. stage: this.courseType,
  12934. task: this.taskCount,
  12935. tool: this.toolindex,
  12936. content: JSON.stringify(this.sentenceList),
  12937. type: 9,
  12938. },
  12939. ];
  12940. this.ajax
  12941. .post(this.$store.state.api + "addCourseWorks", params)
  12942. .then((res) => {
  12943. this.$message({
  12944. message: "提交成功",
  12945. type: "success",
  12946. });
  12947. this.dialogVisibleSentence = false;
  12948. // this.selectAnswer = {};
  12949. this.selectSWorks();
  12950. this.selectStudent();
  12951. })
  12952. .catch((err) => {
  12953. this.$message.error("提交失败");
  12954. console.error(err);
  12955. });
  12956. },
  12957. addSenWorksTeacher() {
  12958. for (var i = 0; i < this.sentenceList.length; i++) {
  12959. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12960. if (
  12961. this.sentenceList[i].chooseSenList[j] == undefined ||
  12962. this.sentenceList[i].chooseSenList[j] == ""
  12963. ) {
  12964. this.$message.error("请将答案填写完整!");
  12965. return;
  12966. }
  12967. }
  12968. }
  12969. let params = [
  12970. {
  12971. uid: this.sStudent.userid,
  12972. cid: this.id,
  12973. stage: this.courseType,
  12974. task: this.taskCount,
  12975. tool: this.toolindex,
  12976. content: JSON.stringify(this.sentenceList),
  12977. type: 9,
  12978. },
  12979. ];
  12980. this.ajax
  12981. .post(this.$store.state.api + "addCourseWorks", params)
  12982. .then((res) => {
  12983. this.$message({
  12984. message: "提交成功",
  12985. type: "success",
  12986. });
  12987. this.dialogVisibleSentenceTeacher = false;
  12988. // this.selectAnswer = {};
  12989. this.selectSWorks();
  12990. this.selectStudent();
  12991. })
  12992. .catch((err) => {
  12993. this.$message.error("提交失败");
  12994. console.error(err);
  12995. });
  12996. },
  12997. returnTableText() {
  12998. this.$confirm("确定还原此模板吗?", "提示", {
  12999. confirmButtonText: "确定",
  13000. cancelButtonText: "取消",
  13001. type: "warning",
  13002. })
  13003. .then(() => {
  13004. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13005. })
  13006. .catch(() => {});
  13007. },
  13008. addTableWorks() {
  13009. let params = [
  13010. {
  13011. uid: this.userid,
  13012. cid: this.id,
  13013. stage: this.courseType,
  13014. task: this.taskCount,
  13015. tool: this.toolindex,
  13016. content: JSON.stringify(this.tableJson),
  13017. type: 10,
  13018. },
  13019. ];
  13020. this.ajax
  13021. .post(this.$store.state.api + "addCourseWorks", params)
  13022. .then((res) => {
  13023. this.$message({
  13024. message: "提交成功",
  13025. type: "success",
  13026. });
  13027. this.dialogVisibleTable = false;
  13028. // this.selectAnswer = {};
  13029. this.selectSWorks();
  13030. this.selectStudent();
  13031. })
  13032. .catch((err) => {
  13033. this.$message.error("提交失败");
  13034. console.error(err);
  13035. });
  13036. },
  13037. tableRowClassName({ row, rowIndex }) {
  13038. if ((rowIndex + 1) % 2 === 0) {
  13039. return "even_row";
  13040. } else {
  13041. return "";
  13042. }
  13043. },
  13044. addTableWorksTeacher() {
  13045. let params = [
  13046. {
  13047. uid: this.sStudent.userid,
  13048. cid: this.id,
  13049. stage: this.courseType,
  13050. task: this.taskCount,
  13051. tool: this.toolindex,
  13052. content: JSON.stringify(this.tableJson),
  13053. type: 10,
  13054. },
  13055. ];
  13056. this.ajax
  13057. .post(this.$store.state.api + "addCourseWorks", params)
  13058. .then((res) => {
  13059. this.$message({
  13060. message: "提交成功",
  13061. type: "success",
  13062. });
  13063. this.dialogVisibleTableTeacher = false;
  13064. // this.selectAnswer = {};
  13065. this.selectSWorks();
  13066. this.selectStudent();
  13067. })
  13068. .catch((err) => {
  13069. this.$message.error("提交失败");
  13070. console.error(err);
  13071. });
  13072. },
  13073. returnWordText() {
  13074. this.$confirm("确定还原此模板吗?", "提示", {
  13075. confirmButtonText: "确定",
  13076. cancelButtonText: "取消",
  13077. type: "warning",
  13078. })
  13079. .then(() => {
  13080. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13081. })
  13082. .catch(() => {});
  13083. },
  13084. addWordWorks() {
  13085. let params = [
  13086. {
  13087. uid: this.userid,
  13088. cid: this.id,
  13089. stage: this.courseType,
  13090. task: this.taskCount,
  13091. tool: this.toolindex,
  13092. content: JSON.stringify(this.wordJson),
  13093. type: 13,
  13094. atool: 52,
  13095. },
  13096. ];
  13097. this.ajax
  13098. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13099. .then((res) => {
  13100. this.$message({
  13101. message: "提交成功",
  13102. type: "success",
  13103. });
  13104. this.dialogVisibleWord = false;
  13105. // this.selectAnswer = {};
  13106. this.selectSWorks();
  13107. this.selectStudent();
  13108. })
  13109. .catch((err) => {
  13110. this.$message.error("提交失败");
  13111. console.error(err);
  13112. });
  13113. },
  13114. addWordWorksTeacher() {
  13115. let params = [
  13116. {
  13117. uid: this.sStudent.userid,
  13118. cid: this.id,
  13119. stage: this.courseType,
  13120. task: this.taskCount,
  13121. tool: this.toolindex,
  13122. content: JSON.stringify(this.wordJson),
  13123. type: 13,
  13124. atool: 52,
  13125. },
  13126. ];
  13127. this.ajax
  13128. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13129. .then((res) => {
  13130. this.$message({
  13131. message: "提交成功",
  13132. type: "success",
  13133. });
  13134. this.dialogVisibleWordTeacher = false;
  13135. // this.selectAnswer = {};
  13136. this.selectSWorks();
  13137. this.selectStudent();
  13138. })
  13139. .catch((err) => {
  13140. this.$message.error("提交失败");
  13141. console.error(err);
  13142. });
  13143. },
  13144. addCourseWorks(i) {
  13145. var typesql;
  13146. if (this.fileType === 0) {
  13147. typesql = 1;
  13148. } else if (this.fileType === 1) {
  13149. typesql = 4;
  13150. } else if (this.fileType === 2) {
  13151. typesql = 5;
  13152. } else if (this.fileType === 3) {
  13153. typesql = 12;
  13154. }
  13155. if (!this.studyJuri[0].cover[0].url) {
  13156. this.$message.error("请上传文件");
  13157. return;
  13158. }
  13159. let params = [
  13160. {
  13161. uid: this.userid,
  13162. cid: this.id,
  13163. stage: this.courseType,
  13164. task: i,
  13165. tool: this.toolindex,
  13166. content: this.studyJuri[0].cover[0].url,
  13167. type: typesql,
  13168. },
  13169. ];
  13170. this.ajax
  13171. .post(this.$store.state.api + "addCourseWorksR", params)
  13172. .then((res) => {
  13173. this.$message({
  13174. message: "提交成功",
  13175. type: "success",
  13176. });
  13177. this.studyJuri[0].cover = [];
  13178. this.dialogVisible = false;
  13179. this.getCourseDetail(2);
  13180. })
  13181. .catch((err) => {
  13182. this.$message.error("提交失败");
  13183. console.error(err);
  13184. });
  13185. },
  13186. addCourseWorksPl(i) {
  13187. let _files = this.plworkFile;
  13188. var c = 1;
  13189. for (var k = 0; k < _files.length; k++) {
  13190. if (!_files[k].username) {
  13191. c = 2;
  13192. }
  13193. }
  13194. if (c == 2) {
  13195. this.$message.error("请填写学生姓名");
  13196. return;
  13197. }
  13198. let params = [
  13199. {
  13200. ateacher: this.userid,
  13201. cid: this.id,
  13202. stage: this.courseType,
  13203. task: i,
  13204. tool: this.toolindex,
  13205. content: JSON.stringify(_files),
  13206. },
  13207. ];
  13208. this.ajax
  13209. .post(this.$store.state.api + "addCourseWorksPl", params)
  13210. .then((res) => {
  13211. this.$message({
  13212. message: "提交成功",
  13213. type: "success",
  13214. });
  13215. this.plworkFile = [];
  13216. this.dialogVisiblePl = false;
  13217. this.getCourseDetail(2);
  13218. })
  13219. .catch((err) => {
  13220. this.$message.error("提交失败");
  13221. console.error(err);
  13222. });
  13223. },
  13224. addCourseWorks2(i) {
  13225. var typesql;
  13226. if (this.fileType === 0) {
  13227. typesql = 0;
  13228. } else if (this.fileType === 1) {
  13229. typesql = 1;
  13230. } else if (this.fileType === 2) {
  13231. typesql = 3;
  13232. } else if (this.fileType === 3) {
  13233. typesql = 12;
  13234. }
  13235. if (!this.studyJuri[0].cover[0].url) {
  13236. this.$message.error("请上传文件");
  13237. return;
  13238. }
  13239. let params = [
  13240. {
  13241. uid: this.userid,
  13242. cid: this.id,
  13243. stage: this.courseType,
  13244. task: i,
  13245. tool: this.toolindex,
  13246. content: JSON.stringify({
  13247. type: typesql,
  13248. groupIndex: this.groupIndex,
  13249. url: this.studyJuri[0].cover[0].url,
  13250. }),
  13251. type: 11,
  13252. atool: 49,
  13253. text: "",
  13254. },
  13255. ];
  13256. this.ajax
  13257. .post(this.$store.state.api + "addCourseWorks5", params)
  13258. .then((res) => {
  13259. this.$message({
  13260. message: "提交成功",
  13261. type: "success",
  13262. });
  13263. this.studyJuri[0].cover = [];
  13264. this.dialogVisibleGroupWork = false;
  13265. this.getCourseDetail(2);
  13266. })
  13267. .catch((err) => {
  13268. this.$message.error("提交失败");
  13269. console.error(err);
  13270. });
  13271. },
  13272. addEnglishWork() {
  13273. this.myAnList = this.$refs['engJson'].myAnswerList;
  13274. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13275. this.$message.error("请输入作文标题和正文!");
  13276. return;
  13277. }
  13278. let params = [
  13279. {
  13280. uid: this.userid,
  13281. cid: this.id,
  13282. stage: this.courseType,
  13283. task: this.taskCount,
  13284. tool: this.englishToolIndex,
  13285. content: JSON.stringify(this.myAnList),
  13286. type: 16,
  13287. atool: 69,
  13288. text: "",
  13289. },
  13290. ];
  13291. this.ajax
  13292. .post(this.$store.state.api + "addCourseWorks5", params)
  13293. .then((res) => {
  13294. this.$message({
  13295. message: "提交成功",
  13296. type: "success",
  13297. });
  13298. this.myAnList = {};
  13299. this.englishList = {};
  13300. this.englishToolIndex = 0;
  13301. this.engDialogVisible = false;
  13302. this.selectSWorks();
  13303. this.selectStudent();
  13304. })
  13305. .catch((err) => {
  13306. this.$message.error("提交失败");
  13307. console.error(err);
  13308. });
  13309. },
  13310. addCourseWorksGong(i, data, tool) {
  13311. let params = [
  13312. {
  13313. uid: this.userid,
  13314. cid: this.id,
  13315. stage: this.courseType,
  13316. task: this.taskCount,
  13317. tool: i,
  13318. content: data,
  13319. type: 12,
  13320. atool: tool,
  13321. text: "",
  13322. },
  13323. ];
  13324. this.ajax
  13325. .post(this.$store.state.api + "addCourseWorks5", params)
  13326. .then((res) => {
  13327. this.$message({
  13328. message: "提交成功",
  13329. type: "success",
  13330. });
  13331. this.studyJuri[0].cover = [];
  13332. this.selectSWorks();
  13333. this.selectStudent();
  13334. })
  13335. .catch((err) => {
  13336. this.$message.error("提交失败");
  13337. console.error(err);
  13338. });
  13339. },
  13340. addCourseWorksGongTeacher(i, data, tool) {
  13341. let params = [
  13342. {
  13343. uid: this.sStudent.userid,
  13344. cid: this.id,
  13345. stage: this.courseType,
  13346. task: this.taskCount,
  13347. tool: i,
  13348. content: data,
  13349. type: 12,
  13350. atool: tool,
  13351. text: "",
  13352. },
  13353. ];
  13354. this.ajax
  13355. .post(this.$store.state.api + "addCourseWorks5", params)
  13356. .then((res) => {
  13357. this.$message({
  13358. message: "提交成功",
  13359. type: "success",
  13360. });
  13361. this.studyJuri[0].cover = [];
  13362. this.dialogVisibleWorks = false;
  13363. this.selectSWorks();
  13364. this.selectStudent();
  13365. })
  13366. .catch((err) => {
  13367. this.$message.error("提交失败");
  13368. console.error(err);
  13369. });
  13370. },
  13371. addCourseWorksGongPl(i, data, tool, type) {
  13372. let params = [
  13373. {
  13374. uid: this.sStudent.userid,
  13375. cid: this.id,
  13376. stage: this.courseType,
  13377. task: this.taskCount,
  13378. tool: i,
  13379. content: data,
  13380. type: type,
  13381. atool: tool,
  13382. text: "",
  13383. },
  13384. ];
  13385. this.ajax
  13386. .post(this.$store.state.api + "addCourseWorks5", params)
  13387. .then((res) => {
  13388. this.$message({
  13389. message: "提交成功",
  13390. type: "success",
  13391. });
  13392. this.studyJuri[0].cover = [];
  13393. this.dialogVisibleWorks = false;
  13394. this.selectSWorks();
  13395. this.selectStudent();
  13396. })
  13397. .catch((err) => {
  13398. this.$message.error("提交失败");
  13399. console.error(err);
  13400. });
  13401. },
  13402. addCourseWorksTeacher(i) {
  13403. var typesql;
  13404. if (this.sTool == 32) {
  13405. this.addCourseWorksGongTeacher(
  13406. this.toolindex,
  13407. this.studyJuri[0].cover[0].url,
  13408. this.sTool
  13409. );
  13410. return;
  13411. }
  13412. if (this.fileType === 0) {
  13413. typesql = 1;
  13414. } else if (this.fileType === 1) {
  13415. typesql = 4;
  13416. } else if (this.fileType === 2) {
  13417. typesql = 5;
  13418. } else if (this.fileType === 3) {
  13419. typesql = 12;
  13420. }
  13421. if (this.sTool == 50) {
  13422. this.addCourseWorksGongPl(
  13423. this.toolindex,
  13424. this.studyJuri[0].cover[0].url,
  13425. this.sTool,
  13426. typesql
  13427. );
  13428. return;
  13429. }
  13430. if (!this.studyJuri[0].cover[0].url) {
  13431. this.$message.error("请上传文件");
  13432. return;
  13433. }
  13434. let params = [
  13435. {
  13436. uid: this.sStudent.userid,
  13437. cid: this.id,
  13438. stage: this.courseType,
  13439. task: i,
  13440. tool: this.toolindex,
  13441. content: this.studyJuri[0].cover[0].url,
  13442. type: typesql,
  13443. ateacher: this.userid,
  13444. },
  13445. ];
  13446. this.ajax
  13447. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13448. .then((res) => {
  13449. this.$message({
  13450. message: "提交成功",
  13451. type: "success",
  13452. });
  13453. this.studyJuri[0].cover = [];
  13454. this.dialogVisibleWorks = false;
  13455. this.getCourseDetail(2);
  13456. })
  13457. .catch((err) => {
  13458. this.$message.error("提交失败");
  13459. console.error(err);
  13460. });
  13461. },
  13462. selectUploadStudent(type) {
  13463. const loading = this.$loading.service({
  13464. background: "rgba(255, 255, 255, 0.7)",
  13465. target: document.body,
  13466. });
  13467. let params = {
  13468. cid: this.uploadCid,
  13469. oid: this.oid,
  13470. cn: "",
  13471. };
  13472. this.ajax
  13473. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13474. .then((res) => {
  13475. loading.close();
  13476. var studentK = [];
  13477. if (this.isWorksS[this.toolindex].length > 0) {
  13478. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13479. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13480. }
  13481. studentK = studentK.join(",");
  13482. }
  13483. this.uploadStudentJuri = res.data[0].filter((el) => {
  13484. return studentK.indexOf(el.userid) == -1;
  13485. });
  13486. if (this.worksSName && this.worksSid) {
  13487. this.uploadStudentJuri.push({
  13488. userid: this.worksSid,
  13489. name: this.worksSName,
  13490. });
  13491. }
  13492. if (type == 1) {
  13493. this.plworkFile = [];
  13494. this.dialogVisibleSname = true;
  13495. } else if (type == 2) {
  13496. this.dialogVisiblePl = true;
  13497. }
  13498. })
  13499. .catch((err) => {
  13500. loading.close();
  13501. console.error(err);
  13502. });
  13503. },
  13504. selectPickStudent() {
  13505. const loading = this.$loading.service({
  13506. background: "rgba(255, 255, 255, 0.7)",
  13507. target: document.body,
  13508. });
  13509. let params = {
  13510. cid: this.uploadCid,
  13511. oid: this.oid,
  13512. cn: "",
  13513. };
  13514. this.ajax
  13515. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13516. .then((res) => {
  13517. loading.close();
  13518. this.uploadStudentJuri = res.data[0];
  13519. this.dialogVisiblePickPeople = true;
  13520. })
  13521. .catch((err) => {
  13522. loading.close();
  13523. console.error(err);
  13524. });
  13525. },
  13526. arrayToArray(arrayo, arrayt) {
  13527. let array1 = arrayo;
  13528. let array2 = arrayt;
  13529. let commonElements = [];
  13530. for (let i = 0; i < array1.length; i++) {
  13531. for (let j = 0; j < array2.length; j++) {
  13532. if (array1[i] === array2[j]) {
  13533. commonElements.push(array1[i]);
  13534. }
  13535. }
  13536. }
  13537. return commonElements;
  13538. },
  13539. selectWorksStudent() {
  13540. let params = {
  13541. oid: this.oid,
  13542. cid: this.courseDetail.juri,
  13543. };
  13544. this.ajax
  13545. .get(this.$store.state.api + "selectWorksStudent", params)
  13546. .then((res) => {
  13547. var a = res.data[0];
  13548. for (var i = 0; i < this.isWorksS.length; i++) {
  13549. this.noWorksS[i] = [];
  13550. var studentK = [];
  13551. if (this.isWorksS[i].length > 0) {
  13552. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13553. studentK.push(this.isWorksS[i][z].uid);
  13554. }
  13555. studentK = studentK.join(",");
  13556. for (var j = 0; j < a.length; j++) {
  13557. if (studentK.indexOf(a[j].userid) == -1) {
  13558. if (this.tcid) {
  13559. // a[j].classid.indexOf(this.tcid) != -1
  13560. if (
  13561. this.arrayToArray(
  13562. a[j].classid.split(","),
  13563. this.tcid.split(",")
  13564. ).length
  13565. ) {
  13566. this.noWorksS[i].push({
  13567. student: a[j].name,
  13568. userid: a[j].userid,
  13569. });
  13570. }
  13571. } else {
  13572. this.noWorksS[i].push({
  13573. student: a[j].name,
  13574. userid: a[j].userid,
  13575. });
  13576. }
  13577. }
  13578. }
  13579. } else {
  13580. for (var k = 0; k < a.length; k++) {
  13581. if (this.tcid) {
  13582. if (
  13583. this.arrayToArray(
  13584. a[k].classid.split(","),
  13585. this.tcid.split(",")
  13586. ).length
  13587. ) {
  13588. this.noWorksS[i].push({
  13589. student: a[k].name,
  13590. userid: a[k].userid,
  13591. });
  13592. }
  13593. } else {
  13594. this.noWorksS[i].push({
  13595. student: a[k].name,
  13596. userid: a[k].userid,
  13597. });
  13598. }
  13599. }
  13600. }
  13601. }
  13602. this.$forceUpdate();
  13603. if (
  13604. Object.keys(this.commentDetail).length &&
  13605. Object.keys(this.commentIndexJson).length &&
  13606. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13607. ) {
  13608. let a = 1;
  13609. let c = this.commentIndexJson;
  13610. if (
  13611. this.commentIndexJson.gindex ||
  13612. this.commentIndexJson.gindex === 0
  13613. ) {
  13614. for (
  13615. var i = 0;
  13616. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13617. i++
  13618. ) {
  13619. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13620. groupA: for (var k = 0; k < _el.length; k++) {
  13621. let el = _el[k];
  13622. if (el.wid == this.commentDetail.wid) {
  13623. a = 2;
  13624. this.commentOther(
  13625. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13626. this.commentIndexJson.toolIndex,
  13627. k,
  13628. this.commentIndexJson.gindex
  13629. );
  13630. break groupA;
  13631. }
  13632. }
  13633. }
  13634. if (a === 1) {
  13635. this.commentDetail = [];
  13636. this.commentIndexJson = {};
  13637. this.commentDialogVisible = false;
  13638. this.$message("此作业已被删除");
  13639. }
  13640. } else {
  13641. if (this.isGroup && this.commentIndexJson.gid) {
  13642. groupA: for (
  13643. var i = 0;
  13644. i < this.courseGroup.group.length;
  13645. i++
  13646. ) {
  13647. let _group = this.courseGroup.group[i];
  13648. if (_group.id == this.commentIndexJson.gid) {
  13649. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13650. for (var k = 0; k < _el2.length; k++) {
  13651. let el2 = _el2[k];
  13652. if (el2.wid == this.commentDetail.wid) {
  13653. a = 2;
  13654. this.commentOther(
  13655. _el2[k],
  13656. this.commentIndexJson.toolIndex,
  13657. k,
  13658. null,
  13659. this.commentIndexJson.gid
  13660. );
  13661. break groupA;
  13662. }
  13663. }
  13664. }
  13665. }
  13666. }
  13667. if (a == 1) {
  13668. for (
  13669. var i = 0;
  13670. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13671. i++
  13672. ) {
  13673. let el =
  13674. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13675. if (el.wid == this.commentDetail.wid) {
  13676. a = 2;
  13677. this.commentOther(
  13678. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13679. this.commentIndexJson.toolIndex,
  13680. i
  13681. );
  13682. break;
  13683. }
  13684. }
  13685. }
  13686. if (a === 1) {
  13687. this.commentDetail = [];
  13688. this.commentIndexJson = {};
  13689. this.commentDialogVisible = false;
  13690. this.$message("此作业已被删除");
  13691. }
  13692. }
  13693. }
  13694. })
  13695. .catch((err) => {
  13696. console.error(err);
  13697. });
  13698. },
  13699. selectStudent() {
  13700. //学生查看自己作业
  13701. let params = {
  13702. uid: this.userid,
  13703. cid: this.id,
  13704. s: this.courseType,
  13705. t: this.taskCount,
  13706. };
  13707. this.ajax
  13708. .get(this.$store.state.api + "selectStudentWorks", params)
  13709. .then((res) => {
  13710. var a =
  13711. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13712. this.taskCount
  13713. ].toolChoose;
  13714. var b = res.data[0];
  13715. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13716. var y = [
  13717. "AVI",
  13718. "NAVI",
  13719. "MPEG",
  13720. "ASF",
  13721. "MOV",
  13722. "WMV",
  13723. "3GP",
  13724. "RM",
  13725. "RMVB",
  13726. "FLV",
  13727. "F4V",
  13728. "H.264",
  13729. "H.265",
  13730. "REAL VIDEO",
  13731. "MKV",
  13732. "WebM",
  13733. "HDDVD",
  13734. "MP4",
  13735. "MPG",
  13736. "M4V",
  13737. "MGV",
  13738. "OGV",
  13739. "QTM",
  13740. "STR",
  13741. "AMC",
  13742. "DVX",
  13743. "EVO",
  13744. "DAT",
  13745. "OGG",
  13746. "OGM",
  13747. ];
  13748. for (var i = 0; i < a.length; i++) {
  13749. this.workStudent[i] = [];
  13750. for (var j = 0; j < b.length; j++) {
  13751. if (i == b[j].tool) {
  13752. if (
  13753. (b[j].type == 1 ||
  13754. b[j].type == 4 ||
  13755. b[j].type == 5 ||
  13756. b[j].type == 6 ||
  13757. b[j].type == 12 ||
  13758. b[j].type == 7) &&
  13759. a[i].tool[0] != 15 &&
  13760. a[i].tool[0] != 4 &&
  13761. a[i].tool[0] != 45 &&
  13762. a[i].tool[0] != 50 &&
  13763. a[i].tool[0] != 32 &&
  13764. a[i].tool[0] != 57 &&
  13765. a[i].tool[0] != 52 &&
  13766. a[i].tool[0] != 69
  13767. ) {
  13768. if (
  13769. c.indexOf(
  13770. b[j].content
  13771. .split(".")
  13772. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13773. ) != -1 &&
  13774. a[i].tool[0] == 16 &&
  13775. b[j].atool != 50
  13776. ) {
  13777. this.workStudent[i].push({
  13778. works: b[j].content,
  13779. sName: b[j].name,
  13780. score: b[j].score,
  13781. img: b[j].img,
  13782. type: 1,
  13783. time: b[j].time,
  13784. userid: b[j].userid,
  13785. wid: b[j].id,
  13786. });
  13787. } else if (
  13788. y.indexOf(
  13789. b[j].content
  13790. .split(".")
  13791. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13792. ) != -1 &&
  13793. a[i].tool[0] == 16 &&
  13794. b[j].atool != 50
  13795. ) {
  13796. this.workStudent[i].push({
  13797. userid: b[j].userid,
  13798. wid: b[j].id,
  13799. works: b[j].content,
  13800. sName: b[j].name,
  13801. score: b[j].score,
  13802. img: b[j].img,
  13803. type: 3,
  13804. time: b[j].time,
  13805. });
  13806. } else if (b[j].type == 6 && b[j].atool != 50) {
  13807. this.workStudent[i].push({
  13808. userid: b[j].userid,
  13809. wid: b[j].id,
  13810. works: b[j].content,
  13811. sName: b[j].name,
  13812. score: b[j].score,
  13813. img: b[j].img,
  13814. type: 4,
  13815. time: b[j].time,
  13816. });
  13817. } else if (b[j].type == 7 && b[j].atool != 50) {
  13818. this.workStudent[i].push({
  13819. userid: b[j].userid,
  13820. wid: b[j].id,
  13821. works: b[j].content,
  13822. sName: b[j].name,
  13823. score: b[j].score,
  13824. img: b[j].img,
  13825. type: 5,
  13826. time: b[j].time,
  13827. });
  13828. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13829. this.workStudent[i].push({
  13830. works: b[j].content,
  13831. sName: b[j].name,
  13832. score: b[j].score,
  13833. img: b[j].img,
  13834. type: 12,
  13835. time: b[j].time,
  13836. userid: b[j].userid,
  13837. wid: b[j].id,
  13838. });
  13839. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13840. this.workStudent[i].push({
  13841. works: b[j].content,
  13842. sName: b[j].name,
  13843. score: b[j].score,
  13844. img: b[j].img,
  13845. type: 0,
  13846. time: b[j].time,
  13847. userid: b[j].userid,
  13848. wid: b[j].id,
  13849. });
  13850. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13851. this.workStudent[i].push({
  13852. works: b[j].content,
  13853. sName: b[j].name,
  13854. score: b[j].score,
  13855. img: b[j].img,
  13856. type: 0,
  13857. time: b[j].time,
  13858. userid: b[j].userid,
  13859. wid: b[j].id,
  13860. });
  13861. }
  13862. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13863. this.workStudent[i].push({
  13864. works: b[j].content,
  13865. sName: b[j].name,
  13866. score: b[j].score,
  13867. img: b[j].img,
  13868. type: 2,
  13869. time: b[j].time,
  13870. userid: b[j].userid,
  13871. wid: b[j].id,
  13872. });
  13873. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13874. //问卷
  13875. this.workStudent[i].push({
  13876. works: b[j].content,
  13877. sName: b[j].name,
  13878. score: b[j].score,
  13879. img: b[j].img,
  13880. type: 2,
  13881. time: b[j].time,
  13882. userid: b[j].userid,
  13883. wid: b[j].id,
  13884. });
  13885. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13886. //选择题
  13887. this.workStudent[i].push({
  13888. works: b[j].content,
  13889. sName: b[j].name,
  13890. score: b[j].score,
  13891. img: b[j].img,
  13892. type: 8,
  13893. time: b[j].time,
  13894. userid: b[j].userid,
  13895. wid: b[j].id,
  13896. });
  13897. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13898. //选择题
  13899. this.workStudent[i].push({
  13900. works: b[j].content,
  13901. sName: b[j].name,
  13902. score: b[j].score,
  13903. img: b[j].img,
  13904. type: 9,
  13905. time: b[j].time,
  13906. userid: b[j].userid,
  13907. wid: b[j].id,
  13908. });
  13909. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13910. //选择题
  13911. this.workStudent[i].push({
  13912. works: b[j].content,
  13913. sName: b[j].name,
  13914. score: b[j].score,
  13915. img: b[j].img,
  13916. type: 10,
  13917. time: b[j].time,
  13918. userid: b[j].userid,
  13919. wid: b[j].id,
  13920. });
  13921. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13922. //选择题
  13923. this.workStudent[i].push({
  13924. works: b[j].content,
  13925. sName: b[j].name,
  13926. score: b[j].score,
  13927. img: b[j].img,
  13928. type: 13,
  13929. time: b[j].time,
  13930. userid: b[j].userid,
  13931. wid: b[j].id,
  13932. });
  13933. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13934. //选择题
  13935. this.workStudent[i].push({
  13936. works: b[j].content,
  13937. sName: b[j].name,
  13938. score: b[j].score,
  13939. img: b[j].img,
  13940. type: 12,
  13941. time: b[j].time,
  13942. userid: b[j].userid,
  13943. wid: b[j].id,
  13944. });
  13945. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13946. //选择题
  13947. this.workStudent[i].push({
  13948. works: b[j].content,
  13949. sName: b[j].name,
  13950. score: b[j].score,
  13951. img: b[j].img,
  13952. type: 12,
  13953. time: b[j].time,
  13954. userid: b[j].userid,
  13955. wid: b[j].id,
  13956. });
  13957. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13958. //选择题
  13959. this.workStudent[i].push({
  13960. works: b[j].content,
  13961. sName: b[j].name,
  13962. score: b[j].score,
  13963. img: b[j].img,
  13964. type: 15,
  13965. time: b[j].time,
  13966. userid: b[j].userid,
  13967. wid: b[j].id,
  13968. });
  13969. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13970. //英语写作
  13971. this.workStudent[i].push({
  13972. works: b[j].content,
  13973. sName: b[j].name,
  13974. score: b[j].score,
  13975. img: b[j].img,
  13976. type: 16,
  13977. time: b[j].time,
  13978. userid: b[j].userid,
  13979. wid: b[j].id,
  13980. aiCode: b[j].aiCode,
  13981. teacherCode: b[j].teacherCode
  13982. });
  13983. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13984. //英语口语
  13985. this.workStudent[i].push({
  13986. works: b[j].content,
  13987. sName: b[j].name,
  13988. score: b[j].score,
  13989. img: b[j].img,
  13990. type: 17,
  13991. time: b[j].time,
  13992. userid: b[j].userid,
  13993. wid: b[j].id,
  13994. });
  13995. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13996. //英语口语
  13997. this.workStudent[i].push({
  13998. works: b[j].content,
  13999. sName: b[j].name,
  14000. score: b[j].score,
  14001. img: b[j].img,
  14002. type: 14,
  14003. time: b[j].time,
  14004. userid: b[j].userid,
  14005. wid: b[j].id,
  14006. });
  14007. }
  14008. }
  14009. }
  14010. }
  14011. })
  14012. .catch((err) => {
  14013. console.error(err);
  14014. });
  14015. },
  14016. openVideo(w) {
  14017. this.videoDetail = {};
  14018. this.playerOptions1.sources[0].src = w.works;
  14019. this.videoDetail = this.playerOptions1;
  14020. this.videoVisible = true;
  14021. },
  14022. isLikes(wid, uid, t, c, isLikes,sName) {
  14023. if (isLikes == false) {
  14024. let params = [
  14025. {
  14026. wid: wid,
  14027. lid: uid,
  14028. t: t,
  14029. c: c,
  14030. },
  14031. ];
  14032. this.ajax
  14033. .post(this.$store.state.api + "insertComment", params)
  14034. .then((res) => {
  14035. this.$message({
  14036. message: "点赞成功",
  14037. type: "success",
  14038. });
  14039. this.selectSWorks();
  14040. this.selectStudent();
  14041. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14042. })
  14043. .catch((err) => {
  14044. this.$message.error("点赞失败");
  14045. console.error(err);
  14046. });
  14047. } else {
  14048. let params = {
  14049. wid: wid,
  14050. lid: uid,
  14051. type: t,
  14052. };
  14053. this.ajax
  14054. .get(this.$store.state.api + "deleteComment", params)
  14055. .then((res) => {
  14056. this.$message({
  14057. message: "取消点赞成功",
  14058. type: "success",
  14059. });
  14060. this.selectSWorks();
  14061. this.selectStudent();
  14062. })
  14063. .catch((err) => {
  14064. console.error(err);
  14065. });
  14066. }
  14067. },
  14068. deleteComment(wid) {
  14069. this.$confirm("确定删除此评论吗?", "提示", {
  14070. confirmButtonText: "确定",
  14071. cancelButtonText: "取消",
  14072. type: "warning",
  14073. })
  14074. .then(() => {
  14075. let params = {
  14076. id: wid,
  14077. };
  14078. this.ajax
  14079. .get(this.$store.state.api + "deleteComment2", params)
  14080. .then((res) => {
  14081. this.$message({
  14082. message: "删除评论成功",
  14083. type: "success",
  14084. });
  14085. this.selectSWorks();
  14086. this.selectStudent();
  14087. })
  14088. .catch((err) => {
  14089. console.error(err);
  14090. });
  14091. })
  14092. .catch(() => {});
  14093. },
  14094. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14095. this.commentIndexJson = {
  14096. toolIndex: toolIndex,
  14097. wIndex: wIndex,
  14098. gindex: gindex,
  14099. gid: gid,
  14100. };
  14101. this.commentDetail = [];
  14102. this.commentDialogVisible = true;
  14103. this.commentDetail = w;
  14104. if (w.works && w.type == 1) {
  14105. // this.pptImgUrl = "";
  14106. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14107. if (
  14108. a.indexOf(
  14109. w.works
  14110. .split(".")
  14111. [w.works.split(".").length - 1].toLocaleUpperCase()
  14112. ) != -1
  14113. ) {
  14114. let _uuurl = await this.checkLink(w.works);
  14115. this.pptImgUrl =
  14116. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14117. this.showPDF = false;
  14118. } else if (
  14119. w.works
  14120. .split(".")
  14121. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14122. ) {
  14123. this.pptImgUrl = w.works;
  14124. this.showPDF = true;
  14125. }
  14126. } else if (w.works && w.type == 3) {
  14127. this.videoDetail = {};
  14128. this.playerOptions1.sources[0].src = w.works;
  14129. this.videoDetail = this.playerOptions1;
  14130. // this.videoVisible = true;
  14131. } else if (w.works && w.type == 4) {
  14132. this.eScore = JSON.parse(w.works);
  14133. this.rateJson =
  14134. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14135. this.taskCount
  14136. ].toolChoose[toolIndex].rateJson;
  14137. } else if (w.works && w.type == 10) {
  14138. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14139. } else if (w.works && w.type == 13) {
  14140. this.wordJson =
  14141. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14142. this.taskCount
  14143. ].toolChoose[toolIndex].wordJson;
  14144. }
  14145. },
  14146. async openScore(w, index) {
  14147. this.wScore = 0;
  14148. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14149. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14150. this.commentDetail = [];
  14151. if(w.type == 17){
  14152. this.dialogVisibleENScore = true;
  14153. }else{
  14154. this.dialogVisibleScore = true;
  14155. }
  14156. this.commentDetail = w;
  14157. if (w.works && w.type == 1) {
  14158. this.pptImgUrl = "";
  14159. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14160. if (
  14161. a.indexOf(
  14162. w.works
  14163. .split(".")
  14164. [w.works.split(".").length - 1].toLocaleUpperCase()
  14165. ) != -1
  14166. ) {
  14167. let _uuurl = await this.checkLink(w.works);
  14168. this.pptImgUrl =
  14169. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14170. this.showPDF = false;
  14171. } else if (
  14172. w.works
  14173. .split(".")
  14174. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14175. ) {
  14176. this.pptImgUrl = w.works;
  14177. this.showPDF = true;
  14178. }
  14179. } else if (w.works && w.type == 3) {
  14180. this.videoDetail = {};
  14181. this.playerOptions1.sources[0].src = w.works;
  14182. this.videoDetail = this.playerOptions1;
  14183. }else if(w.type == 17){
  14184. let englishVoiceJson = {}
  14185. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14186. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14187. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14188. .toolChoose[index].englishVoiceJson
  14189. : {};
  14190. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14191. }
  14192. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14193. },
  14194. addComment(wid, uid, t,detail) {
  14195. if (this.commentText == "") {
  14196. this.$message.error("请输入评论");
  14197. return;
  14198. }
  14199. let params2 = [
  14200. {
  14201. wid: wid,
  14202. lid: uid,
  14203. t: t,
  14204. },
  14205. ];
  14206. this.ajax
  14207. .post(this.$store.state.api + "getComment", params2)
  14208. .then((res) => {
  14209. if (res.data[0].length > 0) {
  14210. this.$message.error("一个作业只能评论一条");
  14211. } else {
  14212. let params = [
  14213. {
  14214. wid: wid,
  14215. lid: uid,
  14216. t: t,
  14217. c: this.commentText,
  14218. },
  14219. ];
  14220. this.ajax
  14221. .post(this.$store.state.api + "insertComment", params)
  14222. .then((res) => {
  14223. this.$message({
  14224. message: "评论成功",
  14225. type: "success",
  14226. });
  14227. this.commentText = "";
  14228. this.selectSWorks();
  14229. this.selectStudent();
  14230. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14231. })
  14232. .catch((err) => {
  14233. this.$message.error("评论失败");
  14234. console.error(err);
  14235. });
  14236. }
  14237. })
  14238. .catch((err) => {
  14239. // this.$message.error("评论失败");
  14240. console.error(err);
  14241. });
  14242. },
  14243. scoreWork(wid,sName) {
  14244. if (this.wScore == 0) {
  14245. this.$message.error("请评分");
  14246. return;
  14247. }
  14248. let params = [
  14249. {
  14250. wid: wid,
  14251. score: JSON.stringify({
  14252. wScore: this.wScore,
  14253. detail: this.scoreDetail,
  14254. }),
  14255. },
  14256. ];
  14257. this.ajax
  14258. .post(this.$store.state.api + "scoreWork", params)
  14259. .then((res) => {
  14260. this.$message({
  14261. message: "评分成功",
  14262. type: "success",
  14263. });
  14264. this.wScore = 0;
  14265. this.scoreDetail = "";
  14266. this.dialogVisibleScore = false;
  14267. this.selectSWorks();
  14268. this.selectStudent();
  14269. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14270. })
  14271. .catch((err) => {
  14272. this.$message.error("评分失败");
  14273. console.error(err);
  14274. });
  14275. },
  14276. openXz(w, i) {
  14277. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14278. .taskJson[this.taskCount].toolChoose[i].selectJson
  14279. ? JSON.parse(
  14280. JSON.stringify(
  14281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14282. this.taskCount
  14283. ].toolChoose[i].selectJson
  14284. )
  14285. )
  14286. : { url: "", select: [], answer: [] };
  14287. var a = w.works.split(",");
  14288. for (var k = 0; k < a.length; k++) {
  14289. a[k] = parseInt(a[k]);
  14290. }
  14291. this.selectAnswer = { answer: a, stu: w.sName };
  14292. this.isSelect = true;
  14293. this.dialogVisibleSelect = true;
  14294. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14295. },
  14296. openSen(w, i) {
  14297. console.log("openSen")
  14298. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14299. this.sentenceList1 = JSON.parse(w.works);
  14300. this.sentenceList1.stuName = w.sName;
  14301. this.dialogVisibleSentence1 = true;
  14302. },
  14303. openPj(w, toolindex) {
  14304. console.log("openPJ")
  14305. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14306. this.isStar = true;
  14307. this.eScore = JSON.parse(w);
  14308. this.rateJson =
  14309. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14310. this.taskCount
  14311. ].toolChoose[toolindex].rateJson;
  14312. this.studentEvalDialogVisible = true;
  14313. },
  14314. openEnglishEva(id,i){
  14315. let params = {
  14316. wid: id
  14317. };
  14318. this.ajax
  14319. .get(this.$store.state.api + "selectEngWork", params)
  14320. .then((res) => {
  14321. this.evaEngJson.message = res.data[0][0];
  14322. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14323. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14324. .toolChoose[i].englishList;
  14325. this.engEvaDialogVisible = true;
  14326. })
  14327. .catch((err) => {
  14328. console.error(err);
  14329. });
  14330. },
  14331. deleteWorks(id) {
  14332. this.$confirm("确定删除此作业吗?", "提示", {
  14333. confirmButtonText: "确定",
  14334. cancelButtonText: "取消",
  14335. type: "warning",
  14336. })
  14337. .then(() => {
  14338. let params = [
  14339. {
  14340. id: id,
  14341. },
  14342. ];
  14343. this.ajax
  14344. .post(this.$store.state.api + "deleteCourseWork", params)
  14345. .then((res) => {
  14346. this.$message({
  14347. message: "删除成功",
  14348. type: "success",
  14349. });
  14350. this.selectStudent();
  14351. this.selectSWorks();
  14352. this.selectSLook();
  14353. })
  14354. .catch((err) => {
  14355. this.$message.error("网络异常");
  14356. console.error(err);
  14357. });
  14358. })
  14359. .catch(() => {});
  14360. },
  14361. selectSWorks(gindex) {
  14362. //教师查看全部作业
  14363. let params = {
  14364. cid: this.id,
  14365. s: this.courseType,
  14366. t: this.taskCount,
  14367. };
  14368. this.ajax
  14369. .get(this.$store.state.api + "selectSWorks", params)
  14370. .then((res) => {
  14371. var a =
  14372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14373. this.taskCount
  14374. ].toolChoose;
  14375. var b = res.data[0];
  14376. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14377. var y = [
  14378. "AVI",
  14379. "NAVI",
  14380. "MPEG",
  14381. "ASF",
  14382. "MOV",
  14383. "WMV",
  14384. "3GP",
  14385. "RM",
  14386. "RMVB",
  14387. "FLV",
  14388. "F4V",
  14389. "H.264",
  14390. "H.265",
  14391. "REAL VIDEO",
  14392. "MKV",
  14393. "WebM",
  14394. "HDDVD",
  14395. "MP4",
  14396. "MPG",
  14397. "M4V",
  14398. "MGV",
  14399. "OGV",
  14400. "QTM",
  14401. "STR",
  14402. "AMC",
  14403. "DVX",
  14404. "EVO",
  14405. "DAT",
  14406. "OGG",
  14407. "OGM",
  14408. ];
  14409. var d = res.data[1];
  14410. var e = res.data[2];
  14411. var f = res.data[3];
  14412. let _worksStudent = [];
  14413. var _worksStudent2 = [];
  14414. for (var i = 0; i < a.length; i++) {
  14415. _worksStudent[i] = [];
  14416. _worksStudent2[i] = [];
  14417. if (
  14418. !this.isCloseList[i] ||
  14419. this.isCloseList[i].isClose == undefined
  14420. ) {
  14421. this.isCloseList[i] = { isClose: 0 };
  14422. }
  14423. this.groupStudent[i] = [];
  14424. this.groupStudentUid[i] = [];
  14425. if (this.isGroup) {
  14426. for (
  14427. var groupI = 0;
  14428. groupI < this.courseGroup.group.length;
  14429. groupI++
  14430. ) {
  14431. this.courseGroup.group[groupI].works[i] = [];
  14432. }
  14433. }
  14434. this.isWorksS[i] = [];
  14435. this.checkJson[i] = [];
  14436. if (a[i].tool[0] == 49) {
  14437. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14438. this.groupStudent[i][gA] = [];
  14439. this.groupStudentUid[i][gA] = [];
  14440. _worksStudent[i][gA] = [];
  14441. _worksStudent2[i][gA] = [];
  14442. this.isCloseList[i][gA] = [];
  14443. // debugger
  14444. for (var g = 0; g < f.length; g++) {
  14445. if (
  14446. f[g].ttype == 2 &&
  14447. this.tcid &&
  14448. this.arrayToArray(
  14449. (f[g].classid ? f[g].classid.split(",") : []),
  14450. this.tcid.split(",")
  14451. ).length == 0
  14452. ) {
  14453. continue;
  14454. }
  14455. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14456. (f[g].classid ? f[g].classid.split(",") : []),
  14457. this.tcid.split(",")
  14458. ).length !== 0 || this.arrayToArray(
  14459. (f[g].classid ? f[g].classid.split(",") : []),
  14460. this.classId ? this.classId.split(",") : []
  14461. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14462. this.groupStudent[i][gA].push(f[g]);
  14463. this.groupStudentUid[i][gA].push(f[g].userid);
  14464. }
  14465. }
  14466. }
  14467. this.$forceUpdate();
  14468. }
  14469. for (var j = 0; j < b.length; j++) {
  14470. if (
  14471. b[j].ttype == 2 &&
  14472. this.tcid &&
  14473. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14474. .length == 0
  14475. ) {
  14476. continue;
  14477. }
  14478. var likesCount = 0;
  14479. var commentCount = 0;
  14480. var isLikes = false;
  14481. var commentJson = [];
  14482. var likeJson = [];
  14483. var data = b[j];
  14484. if (i == b[j].tool) {
  14485. if (data.type == 2 && a[i].tool[0] == 4) {
  14486. // if(JSON.parse(data.content)[0].anwer){
  14487. var checkL =
  14488. JSON.parse(data.content)[0].anwer instanceof Array
  14489. ? JSON.parse(data.content)[0].anwer
  14490. : JSON.parse(data.content)[0].anwer.split(",");
  14491. for (var z = 0; z < checkL.length; z++) {
  14492. if (!this.checkJson[i][z]) {
  14493. this.checkJson[i].push({
  14494. checkCount: [],
  14495. checkPerson: [],
  14496. rightPerson: [],
  14497. });
  14498. }
  14499. if (!this.checkJson[i][z].checkCount.length) {
  14500. this.checkJson[i][z].checkCount = [];
  14501. let _askItemCount = JSON.parse(data.content)[0].askJson
  14502. .askJson[z].askItem;
  14503. for (var aic = 0; aic < _askItemCount; aic++) {
  14504. this.checkJson[i][z].checkCount.push(0);
  14505. }
  14506. }
  14507. if (checkL[z] instanceof Array) {
  14508. if (
  14509. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14510. checkL[z].sort().join(",")
  14511. ) {
  14512. this.checkJson[i][z].rightPerson.push(data.name);
  14513. }
  14514. for (var q = 0; q < checkL[z].length; q++) {
  14515. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14516. ? this.checkJson[i][z].checkPerson[
  14517. parseInt(checkL[z][q])
  14518. ].push(data.name)
  14519. : (this.checkJson[i][z].checkPerson[
  14520. parseInt(checkL[z][q])
  14521. ] = [data.name]);
  14522. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14523. ? this.checkJson[i][z].checkCount[
  14524. parseInt(checkL[z][q])
  14525. ]++
  14526. : (this.checkJson[i][z].checkCount[
  14527. parseInt(checkL[z][q])
  14528. ] = 1);
  14529. }
  14530. } else {
  14531. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14532. this.checkJson[i][z].rightPerson.push(data.name);
  14533. }
  14534. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14535. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14536. ? this.checkJson[i][z].checkPerson[
  14537. parseInt(checkL[z])
  14538. ].push(data.name)
  14539. : (this.checkJson[i][z].checkPerson[
  14540. parseInt(checkL[z])
  14541. ] = [data.name]);
  14542. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14543. ? this.checkJson[i][z].checkCount[
  14544. parseInt(checkL[z])
  14545. ]++
  14546. : (this.checkJson[i][z].checkCount[
  14547. parseInt(checkL[z])
  14548. ] = 1);
  14549. }
  14550. }
  14551. }
  14552. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14553. var checkL = JSON.parse(data.content)[0].anwer;
  14554. for (var z = 0; z < checkL.length; z++) {
  14555. if (!this.checkJson[i][z]) {
  14556. this.checkJson[i].push({
  14557. checkCount: [],
  14558. checkPerson: [],
  14559. rightPerson: [],
  14560. });
  14561. }
  14562. if (!this.checkJson[i][z].checkCount.length) {
  14563. this.checkJson[i][z].checkCount = [];
  14564. let _askItemCount = JSON.parse(data.content)[0].testJson
  14565. .testJson[z].testItem;
  14566. for (var aic = 0; aic < _askItemCount; aic++) {
  14567. this.checkJson[i][z].checkCount.push(0);
  14568. }
  14569. }
  14570. if (checkL[z] instanceof Array) {
  14571. if (
  14572. JSON.parse(data.content)[0]
  14573. .testJson.testJson[z].answer.sort()
  14574. .join(",") == checkL[z].sort().join(",")
  14575. ) {
  14576. this.checkJson[i][z].rightPerson.push(data.name);
  14577. }
  14578. for (var q = 0; q < checkL[z].length; q++) {
  14579. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14580. ? this.checkJson[i][z].checkPerson[
  14581. parseInt(checkL[z][q])
  14582. ].push(data.name)
  14583. : (this.checkJson[i][z].checkPerson[
  14584. parseInt(checkL[z][q])
  14585. ] = [data.name]);
  14586. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14587. ? this.checkJson[i][z].checkCount[
  14588. parseInt(checkL[z][q])
  14589. ]++
  14590. : (this.checkJson[i][z].checkCount[
  14591. parseInt(checkL[z][q])
  14592. ] = 1);
  14593. }
  14594. } else {
  14595. if (
  14596. JSON.parse(data.content)[0].testJson.testJson[z]
  14597. .answer == checkL[z]
  14598. ) {
  14599. this.checkJson[i][z].rightPerson.push(data.name);
  14600. }
  14601. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14602. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14603. ? this.checkJson[i][z].checkPerson[
  14604. parseInt(checkL[z])
  14605. ].push(data.name)
  14606. : (this.checkJson[i][z].checkPerson[
  14607. parseInt(checkL[z])
  14608. ] = [data.name]);
  14609. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14610. ? this.checkJson[i][z].checkCount[
  14611. parseInt(checkL[z])
  14612. ]++
  14613. : (this.checkJson[i][z].checkCount[
  14614. parseInt(checkL[z])
  14615. ] = 1);
  14616. }
  14617. }
  14618. }
  14619. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14620. var checkL = JSON.parse(data.content);
  14621. for (var z = 0; z < checkL.length; z++) {
  14622. if (!this.checkJson[i][z]) {
  14623. this.checkJson[i].push({
  14624. checkCount: [],
  14625. checkPerson: [],
  14626. rightPerson: [],
  14627. });
  14628. }
  14629. this.checkJson[i][z].checkPerson.push(data.name);
  14630. if (
  14631. checkL[z].chooseSenList.toString() ==
  14632. checkL[z].rightAnswer.toString()
  14633. ) {
  14634. this.checkJson[i][z].rightPerson.push(data.name);
  14635. }
  14636. }
  14637. }
  14638. for (var k = 0; k < d.length; k++) {
  14639. //点赞
  14640. if (d[k].workId == b[j].id) {
  14641. likesCount++;
  14642. likeJson.push(d[k])
  14643. if (d[k].likesId == this.userid) {
  14644. isLikes = true;
  14645. }
  14646. }
  14647. }
  14648. for (var l = 0; l < e.length; l++) {
  14649. //评论
  14650. if (e[l].workId == b[j].id) {
  14651. if (e[l].comment != "") {
  14652. commentCount++;
  14653. commentJson.push({
  14654. commentText: e[l].comment,
  14655. commentTime: e[l].commentTime,
  14656. commentPeople: e[l].commentPeople,
  14657. userid: e[l].userid,
  14658. wid: e[l].id,
  14659. });
  14660. }
  14661. }
  14662. }
  14663. if (
  14664. (b[j].type == 1 ||
  14665. b[j].type == 4 ||
  14666. b[j].type == 5 ||
  14667. b[j].type == 6 ||
  14668. b[j].type == 12 ||
  14669. b[j].type == 7) &&
  14670. a[i].tool[0] != 15 &&
  14671. a[i].tool[0] != 4 &&
  14672. a[i].tool[0] != 45 &&
  14673. a[i].tool[0] != 50 &&
  14674. a[i].tool[0] != 32 &&
  14675. a[i].tool[0] != 57 &&
  14676. a[i].tool[0] != 52
  14677. ) {
  14678. if (
  14679. c.indexOf(
  14680. b[j].content
  14681. .split(".")
  14682. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14683. ) != -1 &&
  14684. a[i].tool[0] == 16 &&
  14685. b[j].atool != 50
  14686. ) {
  14687. let _works = {
  14688. userid: b[j].userid,
  14689. ateacher: b[j].ateacher,
  14690. wid: b[j].id,
  14691. works: b[j].content,
  14692. sName: b[j].name,
  14693. type: 1,
  14694. ttype:b[j].ttype,
  14695. time: b[j].time,
  14696. score: b[j].score,
  14697. img: b[j].img,
  14698. likesCount: likesCount,
  14699. commentCount: commentCount,
  14700. isLikes: isLikes,
  14701. commentJson: commentJson,
  14702. likeJson:likeJson
  14703. };
  14704. if (this.isGroup) {
  14705. let isGw = 1;
  14706. for (
  14707. var groupI = 0;
  14708. groupI < this.courseGroup.group.length;
  14709. groupI++
  14710. ) {
  14711. let gid = this.courseGroup.group[groupI].id;
  14712. if (
  14713. this.courseGroupStudentUid[gid].indexOf(
  14714. b[j].userid
  14715. ) != -1
  14716. ) {
  14717. isGw = 2;
  14718. this.courseGroup.group[groupI].works[i].push(_works);
  14719. break;
  14720. }
  14721. }
  14722. if (isGw == 1) {
  14723. _worksStudent[i].push(_works);
  14724. }
  14725. } else {
  14726. _worksStudent[i].push(_works);
  14727. }
  14728. _worksStudent2[i].push(_works);
  14729. this.isWorksS[i].push({
  14730. uid: b[j].userid,
  14731. sName: b[j].name,
  14732. });
  14733. } else if (
  14734. y.indexOf(
  14735. b[j].content
  14736. .split(".")
  14737. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14738. ) != -1 &&
  14739. a[i].tool[0] == 16 &&
  14740. b[j].atool != 50
  14741. ) {
  14742. let _works = {
  14743. userid: b[j].userid,
  14744. ateacher: b[j].ateacher,
  14745. wid: b[j].id,
  14746. works: b[j].content,
  14747. sName: b[j].name,
  14748. type: 3,
  14749. ttype:b[j].ttype,
  14750. time: b[j].time,
  14751. score: b[j].score,
  14752. img: b[j].img,
  14753. likesCount: likesCount,
  14754. commentCount: commentCount,
  14755. isLikes: isLikes,
  14756. commentJson: commentJson,
  14757. likeJson:likeJson
  14758. };
  14759. if (this.isGroup) {
  14760. let isGw = 1;
  14761. for (
  14762. var groupI = 0;
  14763. groupI < this.courseGroup.group.length;
  14764. groupI++
  14765. ) {
  14766. let gid = this.courseGroup.group[groupI].id;
  14767. if (
  14768. this.courseGroupStudentUid[gid].indexOf(
  14769. b[j].userid
  14770. ) != -1
  14771. ) {
  14772. isGw = 2;
  14773. this.courseGroup.group[groupI].works[i].push(_works);
  14774. break;
  14775. }
  14776. }
  14777. if (isGw == 1) {
  14778. _worksStudent[i].push(_works);
  14779. }
  14780. } else {
  14781. _worksStudent[i].push(_works);
  14782. }
  14783. _worksStudent2[i].push(_works);
  14784. this.isWorksS[i].push({
  14785. uid: b[j].userid,
  14786. sName: b[j].name,
  14787. });
  14788. } else if (b[j].type == 6 && b[j].atool != 50) {
  14789. let _works = {
  14790. userid: b[j].userid,
  14791. ateacher: b[j].ateacher,
  14792. wid: b[j].id,
  14793. works: b[j].content,
  14794. sName: b[j].name,
  14795. type: 4,
  14796. ttype:b[j].ttype,
  14797. time: b[j].time,
  14798. score: b[j].score,
  14799. img: b[j].img,
  14800. likesCount: likesCount,
  14801. commentCount: commentCount,
  14802. isLikes: isLikes,
  14803. commentJson: commentJson,
  14804. likeJson:likeJson
  14805. };
  14806. _worksStudent[i].push(_works);
  14807. _worksStudent2[i].push(_works);
  14808. this.isWorksS[i].push({
  14809. uid: b[j].userid,
  14810. sName: b[j].name,
  14811. });
  14812. } else if (b[j].type == 7 && b[j].atool != 50) {
  14813. let _work = {
  14814. userid: b[j].userid,
  14815. ateacher: b[j].ateacher,
  14816. wid: b[j].id,
  14817. works: b[j].content,
  14818. sName: b[j].name,
  14819. type: 5,
  14820. ttype:b[j].ttype,
  14821. time: b[j].time,
  14822. score: b[j].score,
  14823. img: b[j].img,
  14824. likesCount: likesCount,
  14825. commentCount: commentCount,
  14826. isLikes: isLikes,
  14827. commentJson: commentJson,
  14828. likeJson:likeJson
  14829. };
  14830. _worksStudent[i].push(_work);
  14831. _worksStudent2[i].push(_work);
  14832. this.isWorksS[i].push({
  14833. uid: b[j].userid,
  14834. sName: b[j].name,
  14835. });
  14836. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14837. let _works = {
  14838. userid: b[j].userid,
  14839. ateacher: b[j].ateacher,
  14840. wid: b[j].id,
  14841. works: b[j].content,
  14842. sName: b[j].name,
  14843. type: 12,
  14844. ttype:b[j].ttype,
  14845. time: b[j].time,
  14846. score: b[j].score,
  14847. img: b[j].img,
  14848. likesCount: likesCount,
  14849. commentCount: commentCount,
  14850. isLikes: isLikes,
  14851. commentJson: commentJson,
  14852. likeJson:likeJson
  14853. };
  14854. if (this.isGroup) {
  14855. let isGw = 1;
  14856. for (
  14857. var groupI = 0;
  14858. groupI < this.courseGroup.group.length;
  14859. groupI++
  14860. ) {
  14861. let gid = this.courseGroup.group[groupI].id;
  14862. if (
  14863. this.courseGroupStudentUid[gid].indexOf(
  14864. b[j].userid
  14865. ) != -1
  14866. ) {
  14867. isGw = 2;
  14868. this.courseGroup.group[groupI].works[i].push(_works);
  14869. break;
  14870. }
  14871. }
  14872. if (isGw == 1) {
  14873. _worksStudent[i].push(_works);
  14874. }
  14875. } else {
  14876. _worksStudent[i].push(_works);
  14877. }
  14878. _worksStudent2[i].push(_works);
  14879. this.isWorksS[i].push({
  14880. uid: b[j].userid,
  14881. sName: b[j].name,
  14882. });
  14883. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14884. let _works = {
  14885. userid: b[j].userid,
  14886. ateacher: b[j].ateacher,
  14887. wid: b[j].id,
  14888. works: b[j].content,
  14889. sName: b[j].name,
  14890. type: 0,
  14891. ttype:b[j].ttype,
  14892. time: b[j].time,
  14893. score: b[j].score,
  14894. img: b[j].img,
  14895. likesCount: likesCount,
  14896. commentCount: commentCount,
  14897. isLikes: isLikes,
  14898. commentJson: commentJson,
  14899. likeJson:likeJson
  14900. };
  14901. if (this.isGroup) {
  14902. let isGw = 1;
  14903. for (
  14904. var groupI = 0;
  14905. groupI < this.courseGroup.group.length;
  14906. groupI++
  14907. ) {
  14908. let gid = this.courseGroup.group[groupI].id;
  14909. if (
  14910. this.courseGroupStudentUid[gid].indexOf(
  14911. b[j].userid
  14912. ) != -1
  14913. ) {
  14914. isGw = 2;
  14915. this.courseGroup.group[groupI].works[i].push(_works);
  14916. break;
  14917. }
  14918. }
  14919. if (isGw == 1) {
  14920. _worksStudent[i].push(_works);
  14921. }
  14922. } else {
  14923. _worksStudent[i].push(_works);
  14924. }
  14925. _worksStudent2[i].push(_works);
  14926. this.isWorksS[i].push({
  14927. uid: b[j].userid,
  14928. sName: b[j].name,
  14929. });
  14930. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14931. let _works = {
  14932. userid: b[j].userid,
  14933. ateacher: b[j].ateacher,
  14934. wid: b[j].id,
  14935. works: b[j].content,
  14936. sName: b[j].name,
  14937. type: 0,
  14938. ttype:b[j].ttype,
  14939. time: b[j].time,
  14940. score: b[j].score,
  14941. img: b[j].img,
  14942. likesCount: likesCount,
  14943. commentCount: commentCount,
  14944. isLikes: isLikes,
  14945. commentJson: commentJson,
  14946. likeJson:likeJson
  14947. };
  14948. if (this.isGroup) {
  14949. let isGw = 1;
  14950. for (
  14951. var groupI = 0;
  14952. groupI < this.courseGroup.group.length;
  14953. groupI++
  14954. ) {
  14955. let gid = this.courseGroup.group[groupI].id;
  14956. if (
  14957. this.courseGroupStudentUid[gid].indexOf(
  14958. b[j].userid
  14959. ) != -1
  14960. ) {
  14961. isGw = 2;
  14962. this.courseGroup.group[groupI].works[i].push(_works);
  14963. break;
  14964. }
  14965. }
  14966. if (isGw == 1) {
  14967. _worksStudent[i].push(_works);
  14968. }
  14969. } else {
  14970. _worksStudent[i].push(_works);
  14971. }
  14972. _worksStudent2[i].push(_works);
  14973. this.isWorksS[i].push({
  14974. uid: b[j].userid,
  14975. sName: b[j].name,
  14976. });
  14977. }
  14978. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14979. let _works = {
  14980. userid: b[j].userid,
  14981. ateacher: b[j].ateacher,
  14982. wid: b[j].id,
  14983. works: b[j].content,
  14984. sName: b[j].name,
  14985. type: 2,
  14986. ttype:b[j].ttype,
  14987. time: b[j].time,
  14988. score: b[j].score,
  14989. img: b[j].img,
  14990. likesCount: likesCount,
  14991. commentCount: commentCount,
  14992. isLikes: isLikes,
  14993. commentJson: commentJson,
  14994. likeJson:likeJson
  14995. };
  14996. if (this.isGroup) {
  14997. let isGw = 1;
  14998. for (
  14999. var groupI = 0;
  15000. groupI < this.courseGroup.group.length;
  15001. groupI++
  15002. ) {
  15003. let gid = this.courseGroup.group[groupI].id;
  15004. if (
  15005. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15006. -1
  15007. ) {
  15008. isGw = 2;
  15009. this.courseGroup.group[groupI].works[i].push(_works);
  15010. break;
  15011. }
  15012. }
  15013. if (isGw == 1) {
  15014. _worksStudent[i].push(_works);
  15015. }
  15016. } else {
  15017. _worksStudent[i].push(_works);
  15018. }
  15019. _worksStudent2[i].push(_works);
  15020. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15021. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15022. //问卷
  15023. let _work = {
  15024. userid: b[j].userid,
  15025. ateacher: b[j].ateacher,
  15026. wid: b[j].id,
  15027. works: b[j].content,
  15028. sName: b[j].name,
  15029. type: 2,
  15030. ttype:b[j].ttype,
  15031. time: b[j].time,
  15032. score: b[j].score,
  15033. img: b[j].img,
  15034. likesCount: likesCount,
  15035. commentCount: commentCount,
  15036. isLikes: isLikes,
  15037. commentJson: commentJson,
  15038. likeJson:likeJson
  15039. };
  15040. _worksStudent[i].push(_work);
  15041. _worksStudent2[i].push(_work);
  15042. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15043. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15044. //选择题
  15045. let _work = {
  15046. userid: b[j].userid,
  15047. ateacher: b[j].ateacher,
  15048. wid: b[j].id,
  15049. works: b[j].content,
  15050. sName: b[j].name,
  15051. type: 8,
  15052. ttype:b[j].ttype,
  15053. time: b[j].time,
  15054. score: b[j].score,
  15055. img: b[j].img,
  15056. likesCount: likesCount,
  15057. commentCount: commentCount,
  15058. isLikes: isLikes,
  15059. commentJson: commentJson,
  15060. likeJson:likeJson
  15061. };
  15062. _worksStudent[i].push(_work);
  15063. _worksStudent2[i].push(_work);
  15064. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15065. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15066. //选择题
  15067. let _work = {
  15068. userid: b[j].userid,
  15069. ateacher: b[j].ateacher,
  15070. wid: b[j].id,
  15071. works: b[j].content,
  15072. sName: b[j].name,
  15073. type: 9,
  15074. ttype:b[j].ttype,
  15075. time: b[j].time,
  15076. score: b[j].score,
  15077. img: b[j].img,
  15078. likesCount: likesCount,
  15079. commentCount: commentCount,
  15080. isLikes: isLikes,
  15081. commentJson: commentJson,
  15082. likeJson:likeJson
  15083. };
  15084. _worksStudent[i].push(_work);
  15085. _worksStudent2[i].push(_work);
  15086. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15087. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15088. //选择题
  15089. let _work = {
  15090. userid: b[j].userid,
  15091. ateacher: b[j].ateacher,
  15092. wid: b[j].id,
  15093. works: b[j].content,
  15094. sName: b[j].name,
  15095. type: 10,
  15096. ttype:b[j].ttype,
  15097. time: b[j].time,
  15098. score: b[j].score,
  15099. img: b[j].img,
  15100. likesCount: likesCount,
  15101. commentCount: commentCount,
  15102. isLikes: isLikes,
  15103. commentJson: commentJson,
  15104. likeJson:likeJson
  15105. };
  15106. _worksStudent[i].push(_work);
  15107. _worksStudent2[i].push(_work);
  15108. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15109. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15110. //选择题
  15111. let _work = {
  15112. userid: b[j].userid,
  15113. ateacher: b[j].ateacher,
  15114. wid: b[j].id,
  15115. works: b[j].content,
  15116. sName: b[j].name,
  15117. type: 13,
  15118. ttype:b[j].ttype,
  15119. time: b[j].time,
  15120. score: b[j].score,
  15121. img: b[j].img,
  15122. likesCount: likesCount,
  15123. commentCount: commentCount,
  15124. isLikes: isLikes,
  15125. commentJson: commentJson,
  15126. likeJson:likeJson
  15127. };
  15128. _worksStudent[i].push(_work);
  15129. _worksStudent2[i].push(_work);
  15130. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15131. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15132. //选择题
  15133. let _work = {
  15134. userid: b[j].userid,
  15135. ateacher: b[j].ateacher,
  15136. wid: b[j].id,
  15137. works: b[j].content,
  15138. sName: b[j].name,
  15139. type: 16,
  15140. ttype:b[j].ttype,
  15141. time: b[j].time,
  15142. score: b[j].score,
  15143. img: b[j].img,
  15144. likesCount: likesCount,
  15145. commentCount: commentCount,
  15146. isLikes: isLikes,
  15147. commentJson: commentJson,
  15148. aiCode: b[j].aiCode,
  15149. teacherCode: b[j].teacherCode,
  15150. likeJson:likeJson
  15151. };
  15152. _worksStudent[i].push(_work);
  15153. _worksStudent2[i].push(_work);
  15154. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15155. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15156. //英语口语
  15157. let _work = {
  15158. userid: b[j].userid,
  15159. ateacher: b[j].ateacher,
  15160. wid: b[j].id,
  15161. works: b[j].content,
  15162. sName: b[j].name,
  15163. type: 17,
  15164. ttype:b[j].ttype,
  15165. time: b[j].time,
  15166. score: b[j].score,
  15167. img: b[j].img,
  15168. likesCount: likesCount,
  15169. commentCount: commentCount,
  15170. isLikes: isLikes,
  15171. commentJson: commentJson,
  15172. likeJson:likeJson
  15173. };
  15174. _worksStudent[i].push(_work);
  15175. _worksStudent2[i].push(_work);
  15176. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15177. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15178. //交互视频
  15179. let _work = {
  15180. userid: b[j].userid,
  15181. ateacher: b[j].ateacher,
  15182. wid: b[j].id,
  15183. works: b[j].content,
  15184. sName: b[j].name,
  15185. type: 14,
  15186. ttype:b[j].ttype,
  15187. time: b[j].time,
  15188. score: b[j].score,
  15189. img: b[j].img,
  15190. likesCount: likesCount,
  15191. commentCount: commentCount,
  15192. isLikes: isLikes,
  15193. commentJson: commentJson,
  15194. likeJson:likeJson
  15195. };
  15196. _worksStudent[i].push(_work);
  15197. _worksStudent2[i].push(_work);
  15198. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15199. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15200. let _gindex = JSON.parse(b[j].content);
  15201. if (
  15202. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15203. b[j].userid
  15204. ) != -1
  15205. ) {
  15206. let _work = {
  15207. userid: b[j].userid,
  15208. ateacher: b[j].ateacher,
  15209. wid: b[j].id,
  15210. works: _gindex.url,
  15211. sName: b[j].name,
  15212. type: _gindex.type,
  15213. ttype:b[j].ttype,
  15214. time: b[j].time,
  15215. score: b[j].score,
  15216. img: b[j].img,
  15217. likesCount: likesCount,
  15218. commentCount: commentCount,
  15219. isLikes: isLikes,
  15220. commentJson: commentJson,
  15221. likeJson:likeJson
  15222. };
  15223. _worksStudent[i][_gindex.groupIndex].push(_work);
  15224. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15225. }
  15226. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15227. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15228. let _work = {
  15229. userid: b[j].userid,
  15230. ateacher: b[j].ateacher,
  15231. wid: b[j].id,
  15232. works: b[j].content,
  15233. sName: b[j].name ? b[j].name : b[j].userid,
  15234. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15235. ttype:b[j].ttype,
  15236. time: b[j].time,
  15237. score: b[j].score,
  15238. img: b[j].img,
  15239. likesCount: likesCount,
  15240. commentCount: commentCount,
  15241. isLikes: isLikes,
  15242. commentJson: commentJson,
  15243. likeJson:likeJson
  15244. };
  15245. _worksStudent[i].push(_work);
  15246. _worksStudent2[i].push(_work);
  15247. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15248. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15249. let _work = {
  15250. userid: b[j].userid,
  15251. ateacher: b[j].ateacher,
  15252. wid: b[j].id,
  15253. works: b[j].content,
  15254. sName: b[j].name ? b[j].name : b[j].userid,
  15255. type: 12,
  15256. ttype:b[j].ttype,
  15257. time: b[j].time,
  15258. score: b[j].score,
  15259. img: b[j].img,
  15260. likesCount: likesCount,
  15261. commentCount: commentCount,
  15262. isLikes: isLikes,
  15263. commentJson: commentJson,
  15264. likeJson:likeJson
  15265. };
  15266. _worksStudent[i].push(_work);
  15267. _worksStudent2[i].push(_work);
  15268. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15269. } else if (
  15270. a[i].tool[0] == 57 &&
  15271. b[j].atool == 57 &&
  15272. b[j].type == 12
  15273. ) {
  15274. let _work = {
  15275. userid: b[j].userid,
  15276. ateacher: b[j].ateacher,
  15277. wid: b[j].id,
  15278. works: b[j].content,
  15279. sName: b[j].name ? b[j].name : b[j].userid,
  15280. type: 12,
  15281. ttype:b[j].ttype,
  15282. time: b[j].time,
  15283. score: b[j].score,
  15284. img: b[j].img,
  15285. likesCount: likesCount,
  15286. commentCount: commentCount,
  15287. isLikes: isLikes,
  15288. commentJson: commentJson,
  15289. likeJson:likeJson
  15290. };
  15291. _worksStudent[i].push(_work);
  15292. _worksStudent2[i].push(_work);
  15293. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15294. } else if (
  15295. a[i].tool[0] == 57 &&
  15296. b[j].atool == 57 &&
  15297. b[j].type == 15
  15298. ) {
  15299. let _work = {
  15300. userid: b[j].userid,
  15301. ateacher: b[j].ateacher,
  15302. wid: b[j].id,
  15303. works: b[j].content,
  15304. sName: b[j].name ? b[j].name : b[j].userid,
  15305. type: 15,
  15306. ttype:b[j].ttype,
  15307. time: b[j].time,
  15308. score: b[j].score,
  15309. img: b[j].img,
  15310. likesCount: likesCount,
  15311. commentCount: commentCount,
  15312. isLikes: isLikes,
  15313. commentJson: commentJson,
  15314. likeJson:likeJson
  15315. };
  15316. _worksStudent[i].push(_work);
  15317. _worksStudent2[i].push(_work);
  15318. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15319. }
  15320. }
  15321. }
  15322. if (_worksStudent[i] && _worksStudent[i].length) {
  15323. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15324. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15325. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15326. var scoreA = parseFloat(jscoreA);
  15327. var scoreB = parseFloat(jscoreB);
  15328. if (scoreA == scoreB) {
  15329. return b.likesCount - a.likesCount;
  15330. }
  15331. return scoreB - scoreA;
  15332. });
  15333. if (this.isGroup) {
  15334. for (
  15335. var groupI = 0;
  15336. groupI < this.courseGroup.group.length;
  15337. groupI++
  15338. ) {
  15339. this.courseGroup.group[groupI].works[i] =
  15340. this.courseGroup.group[groupI].works[i].sort(function (
  15341. a,
  15342. b
  15343. ) {
  15344. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15345. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15346. var scoreA = parseFloat(jscoreA);
  15347. var scoreB = parseFloat(jscoreB);
  15348. if (scoreA == scoreB) {
  15349. return b.likesCount - a.likesCount;
  15350. }
  15351. return scoreB - scoreA;
  15352. });
  15353. }
  15354. }
  15355. }
  15356. }
  15357. this.timeWorkList = _worksStudent2;
  15358. for (var i = 0; i < a.length; i++) {
  15359. for (var j = 0; j < b.length; j++) {
  15360. var data = b[j];
  15361. if (i == b[j].tool) {
  15362. if (data.type == 2 || data.type == 8) {
  15363. for (var z = 0; z < this.checkJson[i].length; z++) {
  15364. this.checkJson[i][z].checkPerent = [];
  15365. this.checkJson[i][z].right = Math.round(
  15366. (this.checkJson[i][z].rightPerson.length /
  15367. parseInt(_worksStudent[i].length)) *
  15368. 100
  15369. );
  15370. let aaaa = this.checkJson[i][z];
  15371. for (
  15372. var k = 0;
  15373. k < this.checkJson[i][z].checkCount.length;
  15374. k++
  15375. ) {
  15376. this.checkJson[i][z].checkPerent.push(
  15377. Math.round(
  15378. (this.checkJson[i][z].checkCount[k] /
  15379. parseInt(_worksStudent[i].length)) *
  15380. 100
  15381. )
  15382. );
  15383. }
  15384. }
  15385. } else if (data.type == 9) {
  15386. for (var z = 0; z < this.checkJson[i].length; z++) {
  15387. this.checkJson[i][z].checkPerent = [];
  15388. this.checkJson[i][z].right = Math.round(
  15389. (this.checkJson[i][z].rightPerson.length /
  15390. this.checkJson[i][z].checkPerson.length) *
  15391. 100
  15392. );
  15393. }
  15394. }
  15395. }
  15396. }
  15397. }
  15398. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15399. this.joinGroup(gindex);
  15400. }
  15401. this.worksStudent = _worksStudent;
  15402. this.selectWorksStudent();
  15403. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15404. this.$nextTick(()=>{
  15405. setTimeout(()=>{
  15406. setTimeout(()=>{
  15407. this.panToolHeight('tool-'+ci);
  15408. }, 500)
  15409. }, 0)
  15410. })
  15411. }
  15412. })
  15413. .catch((err) => {
  15414. console.error(err);
  15415. });
  15416. },
  15417. pngToWhiteBg(file) {
  15418. const _file = file;
  15419. let read = new FileReader();
  15420. read.readAsDataURL(file); // 文件转base64
  15421. return new Promise((resolve, reject) => {
  15422. read.onload = (e) => {
  15423. let img = new Image();
  15424. img.src = e.target.result;
  15425. img.onload = async () => {
  15426. // 生成canvas
  15427. let canvas = document.createElement("canvas");
  15428. let context = canvas.getContext("2d");
  15429. // 绘制图片到canvas上
  15430. canvas.width = img.width;
  15431. canvas.height = img.height;
  15432. // 在canvas绘制前填充白色背景
  15433. context.fillStyle = "#fff";
  15434. context.fillRect(0, 0, canvas.width, canvas.height);
  15435. context.drawImage(img, 0, 0);
  15436. let base64 = canvas.toDataURL(file["type"], 1);
  15437. let newFile = this.dataUrlToFile(base64, _file);
  15438. resolve(newFile);
  15439. };
  15440. };
  15441. });
  15442. },
  15443. dataUrlToFile(dataurl, file) {
  15444. let arr = dataurl.split(","),
  15445. mime = arr[0].match(/:(.*?);/)[1],
  15446. bstr = atob(arr[1]),
  15447. n = bstr.length,
  15448. u8arr = new Uint8Array(n);
  15449. while (n--) {
  15450. u8arr[n] = bstr.charCodeAt(n);
  15451. }
  15452. // return new Blob([u8arr], { type: mime });
  15453. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15454. type: mime,
  15455. });
  15456. },
  15457. async beforeUpload1(event, type, i) {
  15458. // this.$message.success('进入上传')
  15459. var file = "";
  15460. if (type == 5) {
  15461. file = event;
  15462. } else {
  15463. file = event.target.files[0];
  15464. }
  15465. var credentials = {
  15466. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15467. secretAccessKey: "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",
  15468. }; //秘钥形式的登录上传
  15469. window.AWS.config.update(credentials);
  15470. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15471. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15472. var _this = this;
  15473. _this.progress = 0;
  15474. _this.proVisible = true;
  15475. _this.isFinishSize = 0;
  15476. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15477. var b = [
  15478. "DOC",
  15479. "DOCX",
  15480. "DOCM",
  15481. "DOTM",
  15482. "DOTX",
  15483. "PPTX",
  15484. "PPSX",
  15485. "PPT",
  15486. "PPS",
  15487. "PPTM",
  15488. "POTM",
  15489. "PPAM",
  15490. "POTX",
  15491. "PPSM",
  15492. ];
  15493. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15494. var photoA = [
  15495. "BMP",
  15496. "GIF",
  15497. "PNG",
  15498. "JPEG",
  15499. "JPEG",
  15500. "JPG",
  15501. "TIF",
  15502. "PCX",
  15503. "TGA",
  15504. "EXIF",
  15505. "FPX",
  15506. "SVG",
  15507. "APNG",
  15508. ];
  15509. // if (
  15510. // b.indexOf(
  15511. // file.name
  15512. // .split(".")
  15513. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15514. // ) != -1
  15515. // ) {
  15516. // if (file.size / 1024 / 1024 > 10) {
  15517. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15518. // return;
  15519. // }
  15520. // } else if (
  15521. // excelA.indexOf(
  15522. // file.name
  15523. // .split(".")
  15524. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15525. // ) != "-1"
  15526. // ) {
  15527. // if (file.size / 1024 / 1024 > 5) {
  15528. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15529. // return;
  15530. // }
  15531. // }
  15532. if (
  15533. photoA.indexOf(
  15534. file.name
  15535. .split(".")
  15536. [file.name.split(".").length - 1].toLocaleUpperCase()
  15537. ) != -1 &&
  15538. type != 4
  15539. ) {
  15540. // const blob = await imageConversion.compress(file, 0.8)
  15541. file = await this.pngToWhiteBg(file);
  15542. const blob = await imageConversion.compressAccurately(file, 256);
  15543. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15544. file = new File([blob], file.name, { type: file.type });
  15545. }
  15546. if (file) {
  15547. var params = {
  15548. Key:
  15549. file.name.split(".")[0] +
  15550. new Date().getTime() +
  15551. "." +
  15552. file.name.split(".")[file.name.split(".").length - 1],
  15553. ContentType: file.type,
  15554. Body: file,
  15555. "Access-Control-Allow-Credentials": "*",
  15556. ACL: "public-read",
  15557. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15558. var options = {
  15559. // partSize: 2048 * 1024 * 1024,
  15560. partSize: 1024 * 1024 * 1024,
  15561. queueSize: 2,
  15562. leavePartsOnError: true,
  15563. };
  15564. bucket
  15565. .upload(params, options)
  15566. .on("httpUploadProgress", function (evt) {
  15567. //这里可以写进度条
  15568. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15569. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15570. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15571. })
  15572. .send(function (err, data) {
  15573. _this.progress = 100;
  15574. _this.isFinishSize = _this.isAllSize;
  15575. setTimeout(() => {
  15576. _this.proVisible = false;
  15577. }, 1000);
  15578. if (err) {
  15579. var a = _this.$refs.upload1.uploadFiles;
  15580. a.splice(a.length - 1, a.length);
  15581. _this.$message.error("上传失败");
  15582. } else {
  15583. // _this.$message.success('上传成功')
  15584. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15585. var c = [
  15586. "AVI",
  15587. "NAVI",
  15588. "MPEG",
  15589. "ASF",
  15590. "MOV",
  15591. "WMV",
  15592. "3GP",
  15593. "RM",
  15594. "RMVB",
  15595. "FLV",
  15596. "F4V",
  15597. "H.264",
  15598. "H.265",
  15599. "REAL VIDEO",
  15600. "MKV",
  15601. "WebM",
  15602. "HDDVD",
  15603. "MP4",
  15604. "MPG",
  15605. "M4V",
  15606. "MGV",
  15607. "OGV",
  15608. "QTM",
  15609. "STR",
  15610. "AMC",
  15611. "DVX",
  15612. "EVO",
  15613. "DAT",
  15614. "OGG",
  15615. "OGM",
  15616. ];
  15617. if (type == 1) {
  15618. _this.studyJuri[0].cover.push({
  15619. name: file.name,
  15620. url: data.Location,
  15621. uid: file.uid,
  15622. });
  15623. if (
  15624. c.indexOf(
  15625. _this.studyJuri[0].cover[0].url
  15626. .split(".")
  15627. [
  15628. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15629. ].toLocaleUpperCase()
  15630. ) != -1
  15631. ) {
  15632. _this.fileType = 2;
  15633. } else if (
  15634. b.indexOf(
  15635. _this.studyJuri[0].cover[0].url
  15636. .split(".")
  15637. [
  15638. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15639. ].toLocaleUpperCase()
  15640. ) != -1
  15641. ) {
  15642. _this.fileType = 1;
  15643. } else if (
  15644. photoA.indexOf(
  15645. _this.studyJuri[0].cover[0].url
  15646. .split(".")
  15647. [
  15648. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15649. ].toLocaleUpperCase()
  15650. ) != -1
  15651. ) {
  15652. _this.fileType = 0;
  15653. } else {
  15654. _this.fileType = 3;
  15655. }
  15656. _this.imgChange(null, null, type);
  15657. } else if (type == 2) {
  15658. _this.upToolImg = data.Location;
  15659. _this.imgChange(null, null, type);
  15660. _this.addCourseWorks(i);
  15661. } else if (type == 4) {
  15662. _this.addPz("3", data.Location);
  15663. } else if (type == 5) {
  15664. _this.addImgDrawImG(data.Location);
  15665. } else if (type == 6) {
  15666. var _ftype = 1;
  15667. if (
  15668. c.indexOf(
  15669. data.Location.split(".")[
  15670. data.Location.split(".").length - 1
  15671. ].toLocaleUpperCase()
  15672. ) != -1
  15673. ) {
  15674. _ftype = 5;
  15675. } else if (
  15676. b.indexOf(
  15677. data.Location.split(".")[
  15678. data.Location.split(".").length - 1
  15679. ].toLocaleUpperCase()
  15680. ) != -1
  15681. ) {
  15682. _ftype = 4;
  15683. } else {
  15684. _ftype = 1;
  15685. }
  15686. _this.plworkFile.push({
  15687. name: file.name,
  15688. url: data.Location,
  15689. uid: file.uid,
  15690. fileType: _ftype,
  15691. username:
  15692. _this.plworkFile.length > 10
  15693. ? _this.plworkFile.length + 1
  15694. : "0" + (_this.plworkFile.length + 1),
  15695. });
  15696. } else if (type == 7) {
  15697. _this.addCourseWorksGong(i, data.Location, 32);
  15698. } else if (type == 8) {
  15699. _this.addCourseWorksGong(i, data.Location, 57);
  15700. }
  15701. _this.imgChange(null, null, type);
  15702. console.log(data.Location);
  15703. // _this.$message.success('上传成功'+data.Location)
  15704. }
  15705. });
  15706. }
  15707. },
  15708. async beforeUpload3(event, type, i) {
  15709. // this.$message.success('进入上传')
  15710. let file = "";
  15711. let cfindex2 = 0;
  15712. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15713. file = event.target.files[cfindex];
  15714. var credentials = {
  15715. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15716. secretAccessKey: "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",
  15717. }; //秘钥形式的登录上传
  15718. window.AWS.config.update(credentials);
  15719. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15720. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15721. var _this = this;
  15722. // _this.progress = 0;
  15723. _this.proVisible2 = true;
  15724. var b = [
  15725. "DOC",
  15726. "DOCX",
  15727. "DOCM",
  15728. "DOTM",
  15729. "DOTX",
  15730. "PPTX",
  15731. "PPSX",
  15732. "PPT",
  15733. "PPS",
  15734. "PPTM",
  15735. "POTM",
  15736. "PPAM",
  15737. "POTX",
  15738. "PPSM",
  15739. ];
  15740. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15741. var photoA = [
  15742. "BMP",
  15743. "GIF",
  15744. "PNG",
  15745. "JPEG",
  15746. "JPG",
  15747. "TIF",
  15748. "PCX",
  15749. "TGA",
  15750. "EXIF",
  15751. "FPX",
  15752. "SVG",
  15753. "APNG",
  15754. ];
  15755. if (
  15756. photoA.indexOf(
  15757. file.name
  15758. .split(".")
  15759. [file.name.split(".").length - 1].toLocaleUpperCase()
  15760. ) != -1 &&
  15761. type != 4
  15762. ) {
  15763. // const blob = await imageConversion.compress(file, 0.8)
  15764. file = await this.pngToWhiteBg(file);
  15765. const blob = await imageConversion.compressAccurately(file, 256);
  15766. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15767. file = new File([blob], file.name, { type: file.type });
  15768. }
  15769. if (file) {
  15770. var params = {
  15771. Key:
  15772. file.name.split(".")[0] +
  15773. new Date().getTime() +
  15774. "." +
  15775. file.name.split(".")[file.name.split(".").length - 1],
  15776. ContentType: file.type,
  15777. Body: file,
  15778. "Access-Control-Allow-Credentials": "*",
  15779. ACL: "public-read",
  15780. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15781. var options = {
  15782. // partSize: 2048 * 1024 * 1024,
  15783. partSize: 1024 * 1024 * 1024,
  15784. queueSize: 2,
  15785. leavePartsOnError: true,
  15786. };
  15787. bucket
  15788. .upload(params, options)
  15789. .on("httpUploadProgress", function (evt) {
  15790. //这里可以写进度条
  15791. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15792. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15793. })
  15794. .send(function (err, data) {
  15795. // _this.progress = 100;
  15796. cfindex2++;
  15797. setTimeout(() => {
  15798. if (
  15799. cfindex2 == event.target.files.length - 1 ||
  15800. cfindex2 > event.target.files.length - 1
  15801. ) {
  15802. _this.proVisible2 = false;
  15803. }
  15804. }, 1000);
  15805. if (err) {
  15806. var a = _this.$refs.upload1.uploadFiles;
  15807. a.splice(a.length - 1, a.length);
  15808. _this.$message.error("上传失败");
  15809. } else {
  15810. // _this.$message.success('上传成功')
  15811. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15812. var c = [
  15813. "AVI",
  15814. "NAVI",
  15815. "MPEG",
  15816. "ASF",
  15817. "MOV",
  15818. "WMV",
  15819. "3GP",
  15820. "RM",
  15821. "RMVB",
  15822. "FLV",
  15823. "F4V",
  15824. "H.264",
  15825. "H.265",
  15826. "REAL VIDEO",
  15827. "MKV",
  15828. "WebM",
  15829. "HDDVD",
  15830. "MP4",
  15831. "MPG",
  15832. "M4V",
  15833. "MGV",
  15834. "OGV",
  15835. "QTM",
  15836. "STR",
  15837. "AMC",
  15838. "DVX",
  15839. "EVO",
  15840. "DAT",
  15841. "OGG",
  15842. "OGM",
  15843. ];
  15844. if (type == 1) {
  15845. _this.studyJuri[0].cover.push({
  15846. name: file.name,
  15847. url: data.Location,
  15848. uid: file.uid,
  15849. });
  15850. if (
  15851. c.indexOf(
  15852. _this.studyJuri[0].cover[0].url
  15853. .split(".")
  15854. [
  15855. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15856. ].toLocaleUpperCase()
  15857. ) != -1
  15858. ) {
  15859. _this.fileType = 2;
  15860. } else if (
  15861. b.indexOf(
  15862. _this.studyJuri[0].cover[0].url
  15863. .split(".")
  15864. [
  15865. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15866. ].toLocaleUpperCase()
  15867. ) != -1
  15868. ) {
  15869. _this.fileType = 1;
  15870. } else {
  15871. _this.fileType = 0;
  15872. }
  15873. _this.imgChange(null, null, type);
  15874. } else if (type == 2) {
  15875. _this.upToolImg = data.Location;
  15876. _this.imgChange(null, null, type);
  15877. _this.addCourseWorks(i);
  15878. } else if (type == 4) {
  15879. _this.addPz("3", data.Location);
  15880. } else if (type == 5) {
  15881. _this.addImgDrawImG(data.Location);
  15882. } else if (type == 6) {
  15883. var _ftype = 1;
  15884. if (
  15885. c.indexOf(
  15886. data.Location.split(".")[
  15887. data.Location.split(".").length - 1
  15888. ].toLocaleUpperCase()
  15889. ) != -1
  15890. ) {
  15891. _ftype = 5;
  15892. } else if (
  15893. b.indexOf(
  15894. data.Location.split(".")[
  15895. data.Location.split(".").length - 1
  15896. ].toLocaleUpperCase()
  15897. ) != -1
  15898. ) {
  15899. _ftype = 4;
  15900. } else {
  15901. _ftype = 1;
  15902. }
  15903. _this.plworkFile.push({
  15904. name: file.name,
  15905. url: data.Location,
  15906. uid: file.uid,
  15907. fileType: _ftype,
  15908. username:
  15909. _this.plworkFile.length + 1 > 9
  15910. ? _this.plworkFile.length + 1
  15911. : "0" + (_this.plworkFile.length + 1),
  15912. });
  15913. }
  15914. _this.imgChange(null, null, type);
  15915. console.log(data.Location);
  15916. // _this.$message.success('上传成功'+data.Location)
  15917. }
  15918. });
  15919. }
  15920. }
  15921. },
  15922. beforeUpload2(event, type) {
  15923. var file = event.target.files[0];
  15924. var credentials = {
  15925. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15926. secretAccessKey: "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",
  15927. }; //秘钥形式的登录上传
  15928. window.AWS.config.update(credentials);
  15929. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15930. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15931. var _this = this;
  15932. _this.progress = 0;
  15933. _this.proVisible = true;
  15934. if (file) {
  15935. var params = {
  15936. Key:
  15937. file.name.split(".")[0] +
  15938. new Date().getTime() +
  15939. "." +
  15940. file.name.split(".")[file.name.split(".").length - 1],
  15941. ContentType: file.type,
  15942. Body: file,
  15943. "Access-Control-Allow-Credentials": "*",
  15944. ACL: "public-read",
  15945. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15946. var options = {
  15947. partSize: 2048 * 1024 * 1024,
  15948. queueSize: 2,
  15949. leavePartsOnError: true,
  15950. };
  15951. bucket
  15952. .upload(params, options)
  15953. .on("httpUploadProgress", function (evt) {
  15954. //这里可以写进度条
  15955. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15956. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15957. })
  15958. .send(function (err, data) {
  15959. _this.progress = 100;
  15960. setTimeout(() => {
  15961. _this.proVisible = false;
  15962. }, 1000);
  15963. if (err) {
  15964. var a = _this.$refs.upload1.uploadFiles;
  15965. a.splice(a.length - 1, a.length);
  15966. _this.$message.error("上传失败");
  15967. } else {
  15968. if (type == 2) {
  15969. _this.studyJuri[0].upVedio.push({
  15970. name: file.name,
  15971. url: data.Location,
  15972. uid: file.uid,
  15973. });
  15974. _this.imgChange(null, null, type);
  15975. } else if (type == 3) {
  15976. _this.studyJuri[0].upFile.push({
  15977. name: file.name,
  15978. url: data.Location,
  15979. uid: file.uid,
  15980. });
  15981. _this.imgChange(null, null, type);
  15982. }
  15983. console.log(data.Location);
  15984. }
  15985. });
  15986. }
  15987. },
  15988. allScrell() {
  15989. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15990. },
  15991. nextOrpreSteps(t) {
  15992. if (this.IsFollow && this.tType == 2) {
  15993. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15994. return;
  15995. }
  15996. var b = this.chapInfoList.length - 1;
  15997. if (t == 0) {
  15998. if (this.courseType == 0) {
  15999. if (this.taskCount == 0) {
  16000. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16001. if (this.IsLookOpen) {
  16002. if (
  16003. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16004. ) {
  16005. if (
  16006. this.courseDetail.userid != this.userid &&
  16007. (!this.courseDetail.course_teacher ||
  16008. (this.courseDetail.course_teacher &&
  16009. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16010. ) {
  16011. this.$message.error("任务未解锁");
  16012. } else {
  16013. this.$message.error("上一任务未解锁");
  16014. }
  16015. return;
  16016. }
  16017. }
  16018. this.navList[this.courseType].isOpen = false;
  16019. this.courseType = b;
  16020. this.taskCount =
  16021. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16022. .length - 1;
  16023. this.navList[this.courseType].isOpen = true;
  16024. } else {
  16025. this.taskCount--;
  16026. }
  16027. } else {
  16028. if (this.taskCount == 0) {
  16029. this.navList[this.courseType].isOpen = false;
  16030. this.courseType--;
  16031. this.taskCount =
  16032. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16033. .length - 1;
  16034. this.navList[this.courseType].isOpen = true;
  16035. } else {
  16036. this.taskCount--;
  16037. }
  16038. }
  16039. } else {
  16040. if (this.courseType == b) {
  16041. if (
  16042. this.taskCount ==
  16043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16044. 1
  16045. ) {
  16046. this.navList[this.courseType].isOpen = false;
  16047. this.courseType = 0;
  16048. this.taskCount = 0;
  16049. this.navList[this.courseType].isOpen = true;
  16050. } else {
  16051. var bbb = parseInt(this.taskCount) + 1;
  16052. if (
  16053. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16054. .isLook &&
  16055. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16056. (this.courseDetail.course_teacher &&
  16057. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16058. this.IsLookOpen
  16059. ) {
  16060. this.$message.error("任务未解锁");
  16061. return;
  16062. }
  16063. this.taskCount++;
  16064. if (this.IsLookOpen) {
  16065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16066. this.taskCount
  16067. ].isLook = true;
  16068. this.addCourseState(3);
  16069. }
  16070. }
  16071. } else {
  16072. if (
  16073. this.taskCount ==
  16074. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16075. 1
  16076. ) {
  16077. var bbb = parseInt(this.courseType) + 1;
  16078. if (
  16079. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16080. this.courseDetail.userid != this.userid &&
  16081. (!this.courseDetail.course_teacher ||
  16082. (this.courseDetail.course_teacher &&
  16083. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16084. this.IsLookOpen
  16085. ) {
  16086. this.$message.error("任务未解锁");
  16087. return;
  16088. }
  16089. this.navList[this.courseType].isOpen = false;
  16090. this.courseType++;
  16091. this.taskCount = 0;
  16092. this.navList[this.courseType].isOpen = true;
  16093. } else {
  16094. var bbb = parseInt(this.taskCount) + 1;
  16095. if (
  16096. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16097. .isLook &&
  16098. this.courseDetail.userid != this.userid &&
  16099. (!this.courseDetail.course_teacher ||
  16100. (this.courseDetail.course_teacher &&
  16101. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16102. this.IsLookOpen
  16103. ) {
  16104. this.$message.error("任务未解锁");
  16105. return;
  16106. }
  16107. this.taskCount++;
  16108. }
  16109. if (this.IsLookOpen) {
  16110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16111. this.taskCount
  16112. ].isLook = true;
  16113. this.addCourseState(3);
  16114. }
  16115. }
  16116. // if (
  16117. // this.taskCount ==
  16118. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16119. // ) {
  16120. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16121. // } else {
  16122. // this.taskCount++;
  16123. // }
  16124. }
  16125. document.scrollingElement.scrollTop = 0;
  16126. this.showType = 7;
  16127. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16128. // if (this.vedio[this.taskCount].length > 0) {
  16129. // var a =
  16130. // document.getElementsByClassName("box_course")[this.taskCount]
  16131. // .offsetHeight;
  16132. // document.getElementsByClassName("vedioList")[
  16133. // this.taskCount
  16134. // ].style.height = a + "px";
  16135. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16136. // a - 40 + "px";
  16137. // }
  16138. this.isNoHomeWork = false;
  16139. (this.studyJuri = [
  16140. {
  16141. content: "",
  16142. cover: [],
  16143. upVedio: [],
  16144. upFile: [],
  16145. },
  16146. ]),
  16147. (this.radio = []);
  16148. this.isClickNav = "";
  16149. this.selectPz();
  16150. this.getHomeWork();
  16151. this.getCourseDetail(2);
  16152. this.$forceUpdate();
  16153. },
  16154. openTask(s, n, i,ctype) {
  16155. console.log(s, n, i,ctype)
  16156. if (this.IsFollow && this.tType == 2) {
  16157. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16158. return;
  16159. }
  16160. if (this.IsLookOpen) {
  16161. if (
  16162. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16163. this.courseDetail.userid != this.userid &&
  16164. (!this.courseDetail.course_teacher ||
  16165. (this.courseDetail.course_teacher &&
  16166. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16167. ) {
  16168. this.$message.error("任务未解锁");
  16169. return;
  16170. }
  16171. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16172. if (
  16173. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16174. .isLook
  16175. ) {
  16176. this.$message.error("上一任务未解锁");
  16177. return;
  16178. }
  16179. } else if (s > this.courseType) {
  16180. if (n > 0) {
  16181. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16182. this.$message.error("上一任务未解锁");
  16183. return;
  16184. }
  16185. } else {
  16186. if (
  16187. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16188. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16189. ].isLook
  16190. ) {
  16191. this.$message.error("上一任务未解锁");
  16192. return;
  16193. }
  16194. }
  16195. }
  16196. }
  16197. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16198. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16199. return;
  16200. }
  16201. let flag = this.courseType==s;
  16202. this.courseType = s;
  16203. this.navId = i;
  16204. this.taskCount = n;
  16205. if(ctype == 2){
  16206. this.navList[s].task[n].isOpen = true
  16207. }else{
  16208. this.navList[this.courseType].task[this.taskCount].isOpen =
  16209. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16210. }
  16211. if (this.IsLookOpen) {
  16212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16213. this.taskCount
  16214. ].isLook = true;
  16215. this.addCourseState(3);
  16216. }
  16217. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16218. this.isCloseList[ci].isClose = 0;
  16219. this.isCloseList[ci].isCloseBoolean = false;
  16220. this.$nextTick(()=>{
  16221. setTimeout(()=>{
  16222. setTimeout(()=>{
  16223. this.panToolHeight('tool-'+ci);
  16224. }, 0)
  16225. }, 0)
  16226. })
  16227. }
  16228. this.showType = 0;
  16229. this.isNoHomeWork = false;
  16230. (this.studyJuri = [
  16231. {
  16232. content: "",
  16233. cover: [],
  16234. upVedio: [],
  16235. upFile: [],
  16236. },
  16237. ]),
  16238. (this.radio = []);
  16239. document.scrollingElement.scrollTop = 0;
  16240. // setTimeout(() => {
  16241. // let a = document.getElementById(i);
  16242. // if (a.offsetTop - 110 == 0) {
  16243. // window.scrollTo(0, 0);
  16244. // } else {
  16245. // window.scrollTo(0, a.offsetTop);
  16246. // }
  16247. // }, 0);
  16248. for (var z = 0; z < this.navList.length; z++) {
  16249. for (var q = 0; q < this.navList[z].task.length; q++) {
  16250. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16251. this.navList[z].task[q].tool[w].isTool = false;
  16252. }
  16253. }
  16254. }
  16255. this.selectPz();
  16256. this.getHomeWork();
  16257. this.getCourseDetail(2);
  16258. if(flag){
  16259. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16260. }else{
  16261. 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>`)
  16262. }
  16263. },
  16264. get(i) {
  16265. if (this.IsFollow && this.tType == 2) {
  16266. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16267. return;
  16268. }
  16269. // for(var k=0;k<this.navList.length;k++){
  16270. // this.navList[k].isOpen = false;
  16271. // }
  16272. // this.navList[i].isOpen = true;
  16273. let a = this.navList[i].isOpen
  16274. this.navList[i].isOpen = !this.navList[i].isOpen;
  16275. this.$forceUpdate()
  16276. if (this.navList[i].isOpen) {
  16277. this.openTask(i, 0, (i + "-0"),2);
  16278. }
  16279. },
  16280. addQuestion() {
  16281. this.answerList.push({
  16282. answerTitle: this.answerQ,
  16283. answer: this.questionAnswer,
  16284. });
  16285. let params = [
  16286. {
  16287. uid: this.userid,
  16288. cid: this.id,
  16289. stage: this.courseType,
  16290. task: this.taskCount,
  16291. tool: this.toolindex,
  16292. content: JSON.stringify(this.answerList),
  16293. type: 3,
  16294. },
  16295. ];
  16296. this.ajax
  16297. .post(this.$store.state.api + "addCourseWorks", params)
  16298. .then((res) => {
  16299. this.$message({
  16300. message: "提交成功",
  16301. type: "success",
  16302. });
  16303. this.answerList = [];
  16304. this.answerDialogVisible = false;
  16305. this.selectStudent();
  16306. this.selectSWorks();
  16307. this.selectSLook();
  16308. })
  16309. .catch((err) => {
  16310. this.$message.error("提交失败");
  16311. console.error(err);
  16312. });
  16313. },
  16314. addQuestionTeacher() {
  16315. this.answerList.push({
  16316. answerTitle: this.answerQ,
  16317. answer: this.questionAnswer,
  16318. });
  16319. let params = [
  16320. {
  16321. uid: this.sStudent.userid,
  16322. cid: this.id,
  16323. stage: this.courseType,
  16324. task: this.taskCount,
  16325. tool: this.toolindex,
  16326. content: JSON.stringify(this.answerList),
  16327. type: 3,
  16328. ateacher: this.userid,
  16329. },
  16330. ];
  16331. this.ajax
  16332. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16333. .then((res) => {
  16334. this.$message({
  16335. message: "提交成功",
  16336. type: "success",
  16337. });
  16338. this.answerList = [];
  16339. this.questionAnswer = "";
  16340. this.answerDialogVisibleTeacher = false;
  16341. this.selectStudent();
  16342. this.selectSWorks();
  16343. this.selectSLook();
  16344. })
  16345. .catch((err) => {
  16346. this.$message.error("提交失败");
  16347. console.error(err);
  16348. });
  16349. },
  16350. refreshCourse() {
  16351. // window.location.reload();
  16352. this.navList = [];
  16353. this.getCourseDetail(1);
  16354. },
  16355. getCourseDetail(type, gindex) {
  16356. let loading;
  16357. if (type != 2) {
  16358. loading = this.$loading.service({
  16359. background: "rgba(255, 255, 255, 0.7)",
  16360. target: document.querySelector(".student_table"),
  16361. });
  16362. }
  16363. this.downLoading = false
  16364. // this.navList[0].isOpen = false;
  16365. // this.navList[this.courseType].isOpen = true;
  16366. // this.courseType = this.courseTypeLine;
  16367. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16368. let params = {
  16369. courseId: this.id,
  16370. };
  16371. this.ajax
  16372. .get(this.$store.state.api + "selectCourseDetail3", params)
  16373. .then((res) => {
  16374. if (type != 2) {
  16375. loading.close();
  16376. if (
  16377. this.courseType >
  16378. JSON.parse(res.data[0][0].chapters).length - 1
  16379. ) {
  16380. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16381. }
  16382. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16383. .chapterInfo[0].taskJson;
  16384. var b = [
  16385. "AVI",
  16386. "NAVI",
  16387. "MPEG",
  16388. "ASF",
  16389. "MOV",
  16390. "WMV",
  16391. "3GP",
  16392. "RM",
  16393. "RMVB",
  16394. "FLV",
  16395. "F4V",
  16396. "H.264",
  16397. "H.265",
  16398. "REAL VIDEO",
  16399. "MKV",
  16400. "WebM",
  16401. "HDDVD",
  16402. "MP4",
  16403. "MPG",
  16404. "M4V",
  16405. "MGV",
  16406. "OGV",
  16407. "QTM",
  16408. "STR",
  16409. "AMC",
  16410. "DVX",
  16411. "EVO",
  16412. "DAT",
  16413. "OGG",
  16414. "OGM",
  16415. "MP3",
  16416. ];
  16417. let _chapterData = [];
  16418. for (var i = 0; i < a.length; i++) {
  16419. var c = a[i].chapterData;
  16420. this.vedio[i] = [];
  16421. this.textList[i] = [];
  16422. this.lineList[i] = [];
  16423. this.chapToolList[i] = [];
  16424. this.file[i] = [];
  16425. this.fileC[i] = [];
  16426. _chapterData[i] = c.filter((el) => {
  16427. return el.type != 12;
  16428. });
  16429. this.fileC[i] = c.filter((el) => {
  16430. return el.type == 12;
  16431. });
  16432. // else if (c[j].type == 12) {
  16433. // this.fileC[i].push(c[j]);
  16434. // }
  16435. for (var j = 0; j < c.length; j++) {
  16436. if (c[j].type == 7) {
  16437. this.chapToolList[i].push(c[j]);
  16438. } else if (c[j].type == 8 || c[j].type == 14) {
  16439. this.lineList[i].push(c[j]);
  16440. } else if (c[j].type == 6) {
  16441. this.textList[i].push(c[j]);
  16442. } else {
  16443. if (
  16444. b.indexOf(
  16445. c[j].url
  16446. .split(".")
  16447. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16448. ) != -1
  16449. ) {
  16450. this.vedio[i].push(c[j]);
  16451. } else {
  16452. this.file[i].push(c[j]);
  16453. }
  16454. }
  16455. }
  16456. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16457. d.sources[0].src =
  16458. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16459. this.playerO[i] = d;
  16460. }
  16461. this.courseDetail = res.data[0][0];
  16462. this.tcid = this.arrayToArray(
  16463. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16464. this.tcid2 ? this.tcid2.split(",") : []
  16465. ).join(",");
  16466. this.evalua = res.data[0][0].evaId;
  16467. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16468. this.courseType
  16469. ];
  16470. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16471. if (this.tcid && res.data[1].length) {
  16472. let _inviteA = [];
  16473. for (var ik = 0; ik < res.data[1].length; ik++) {
  16474. _inviteA.push({
  16475. cid: res.data[1][ik].classid,
  16476. ic: res.data[1][ik].code,
  16477. });
  16478. }
  16479. for (var ik = 0; ik < _inviteA.length; ik++) {
  16480. if (
  16481. this.arrayToArray(
  16482. _inviteA[ik].cid.split(","),
  16483. this.tcid.split(",")
  16484. ).length
  16485. ) {
  16486. this.inviteCode = _inviteA[ik].ic;
  16487. break;
  16488. }
  16489. }
  16490. }
  16491. for (var l = 0; l < this.chapInfoList.length; l++) {
  16492. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16493. for (var m = 0; m < w.length; m++) {
  16494. w[m].id = l + "-" + m;
  16495. }
  16496. }
  16497. if (
  16498. _chapterData[this.taskCount].length &&
  16499. _chapterData[this.taskCount][0].type == 2
  16500. ) {
  16501. this.showType = 0;
  16502. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16503. } else {
  16504. if (_chapterData[this.taskCount].length > 0) {
  16505. let _url = _chapterData[this.taskCount][0].url;
  16506. if (
  16507. _chapterData[this.taskCount][0].type == 8 ||
  16508. _chapterData[this.taskCount][0].type == 14
  16509. ) {
  16510. this.showType = 2;
  16511. if (
  16512. _url.indexOf("https://") == -1 &&
  16513. _url.indexOf("http://") == -1
  16514. ) {
  16515. _url = "https://" + _url;
  16516. }
  16517. this.pptImgUrl1 = _url;
  16518. } else if (_chapterData[this.taskCount][0].type == 3) {
  16519. if (
  16520. _url
  16521. .split(".")
  16522. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16523. ) {
  16524. this.showType = 3;
  16525. this.pptImgUrl1 = _url;
  16526. } else if (
  16527. this.isAssetTypeAnImage(
  16528. _url
  16529. .split(".")
  16530. [_url.split(".").length - 1].toLocaleLowerCase()
  16531. )
  16532. ) {
  16533. this.showType = 4;
  16534. this.pptImgUrl1 = _url;
  16535. } else {
  16536. this.showType = 2;
  16537. this.pptImgUrl1 =
  16538. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16539. encodeURIComponent(_url);
  16540. }
  16541. } else if (_chapterData[this.taskCount][0].type == 13) {
  16542. this.showType = 4;
  16543. this.pptImgUrl1 = _url;
  16544. } else if (_chapterData[this.taskCount][0].type == 6) {
  16545. this.showType = 1;
  16546. this.text = this.textList[this.taskCount][0];
  16547. }
  16548. }
  16549. }
  16550. this.isClickNav = 0;
  16551. if (
  16552. !_chapterData[this.taskCount].length ||
  16553. _chapterData[this.taskCount][0].type == 12
  16554. ) {
  16555. this.isClickNav = "";
  16556. this.showType = "";
  16557. }
  16558. this.vChapterData = _chapterData;
  16559. } else {
  16560. this.showType = 0;
  16561. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16562. .chapterInfo[0].taskJson;
  16563. var b = [
  16564. "AVI",
  16565. "NAVI",
  16566. "MPEG",
  16567. "ASF",
  16568. "MOV",
  16569. "WMV",
  16570. "3GP",
  16571. "RM",
  16572. "RMVB",
  16573. "FLV",
  16574. "F4V",
  16575. "H.264",
  16576. "H.265",
  16577. "REAL VIDEO",
  16578. "MKV",
  16579. "WebM",
  16580. "HDDVD",
  16581. "MP4",
  16582. "MPG",
  16583. "M4V",
  16584. "MGV",
  16585. "OGV",
  16586. "QTM",
  16587. "STR",
  16588. "AMC",
  16589. "DVX",
  16590. "EVO",
  16591. "DAT",
  16592. "OGG",
  16593. "OGM",
  16594. "MP3",
  16595. ];
  16596. let _chapterData = [];
  16597. for (var i = 0; i < a.length; i++) {
  16598. var c = a[i].chapterData;
  16599. this.vedio[i] = [];
  16600. this.textList[i] = [];
  16601. this.lineList[i] = [];
  16602. this.chapToolList[i] = [];
  16603. this.file[i] = [];
  16604. this.fileC[i] = [];
  16605. _chapterData[i] = c.filter((el) => {
  16606. return el.type != 12;
  16607. });
  16608. this.fileC[i] = c.filter((el) => {
  16609. return el.type == 12;
  16610. });
  16611. for (var j = 0; j < c.length; j++) {
  16612. if (c[j].type == 7) {
  16613. this.chapToolList[i].push(c[j]);
  16614. } else if (c[j].type == 8 || c[j].type == 14) {
  16615. this.lineList[i].push(c[j]);
  16616. } else if (c[j].type == 6) {
  16617. this.textList[i].push(c[j]);
  16618. } else {
  16619. if (
  16620. b.indexOf(
  16621. c[j].url
  16622. .split(".")
  16623. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16624. ) != -1
  16625. ) {
  16626. this.vedio[i].push(c[j]);
  16627. } else {
  16628. this.file[i].push(c[j]);
  16629. }
  16630. }
  16631. }
  16632. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16633. d.sources[0].src =
  16634. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16635. this.playerO[i] = d;
  16636. }
  16637. if (
  16638. _chapterData[this.taskCount].length &&
  16639. _chapterData[this.taskCount][0].type == 2
  16640. ) {
  16641. this.showType = 0;
  16642. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16643. } else {
  16644. if (_chapterData[this.taskCount].length > 0) {
  16645. let _url = _chapterData[this.taskCount][0].url;
  16646. if (
  16647. _chapterData[this.taskCount][0].type == 8 ||
  16648. _chapterData[this.taskCount][0].type == 14
  16649. ) {
  16650. this.showType = 2;
  16651. if (
  16652. _url.indexOf("https://") == -1 &&
  16653. _url.indexOf("http://") == -1
  16654. ) {
  16655. _url = "https://" + _url;
  16656. }
  16657. this.pptImgUrl1 = _url;
  16658. } else if (_chapterData[this.taskCount][0].type == 3) {
  16659. if (
  16660. _url
  16661. .split(".")
  16662. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16663. ) {
  16664. this.showType = 3;
  16665. this.pptImgUrl1 = _url;
  16666. } else if (
  16667. this.isAssetTypeAnImage(
  16668. _url
  16669. .split(".")
  16670. [_url.split(".").length - 1].toLocaleLowerCase()
  16671. )
  16672. ) {
  16673. this.showType = 4;
  16674. this.pptImgUrl1 = _url;
  16675. } else {
  16676. this.showType = 2;
  16677. this.pptImgUrl1 =
  16678. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16679. encodeURIComponent(_url);
  16680. }
  16681. } else if (_chapterData[this.taskCount][0].type == 13) {
  16682. this.showType = 4;
  16683. this.pptImgUrl1 = _url;
  16684. } else if (_chapterData[this.taskCount][0].type == 6) {
  16685. this.showType = 1;
  16686. this.text = this.textList[this.taskCount][0];
  16687. }
  16688. }
  16689. }
  16690. this.isClickNav = 0;
  16691. if (
  16692. !_chapterData[this.taskCount].length ||
  16693. _chapterData[this.taskCount][0].type == 12
  16694. ) {
  16695. this.isClickNav = "";
  16696. this.showType = "";
  16697. }
  16698. this.vChapterData = _chapterData;
  16699. this.$forceUpdate();
  16700. }
  16701. // else {
  16702. // this.courseDetail = res.data[0][0];
  16703. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16704. // }
  16705. let _this = this;
  16706. if (_this.timer) {
  16707. clearInterval(_this.timer);
  16708. _this.timer = null;
  16709. }
  16710. if (_this.tcid) {
  16711. _this.getCourseGroup(gindex);
  16712. } else {
  16713. _this.selectSWorks(gindex);
  16714. }
  16715. _this.selectStudent();
  16716. _this.selectSLook();
  16717. _this.getPick();
  16718. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16719. _this.setCTask();
  16720. }
  16721. if (_this.dialogVisibleGroup) {
  16722. _this.groupJson =
  16723. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16724. _this.taskCount
  16725. ].toolChoose[_this.toolindex].groupJson;
  16726. }
  16727. _this.$nextTick(() => {
  16728. setTimeout(() => {
  16729. _this.checkEva();
  16730. }, 1000);
  16731. });
  16732. _this.timer = setInterval(function () {
  16733. // _this.getCourseDetail(2);
  16734. if (_this.tcid) {
  16735. _this.getCourseGroup(gindex);
  16736. } else {
  16737. _this.selectSWorks(gindex);
  16738. }
  16739. _this.selectStudent();
  16740. _this.selectSLook();
  16741. _this.getPick();
  16742. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16743. _this.setCTask();
  16744. }
  16745. if (_this.dialogVisibleGroup) {
  16746. _this.groupJson =
  16747. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16748. _this.taskCount
  16749. ].toolChoose[_this.toolindex].groupJson;
  16750. }
  16751. if (_this.tType == 4 || _this.ispzType == 4) {
  16752. _this.selectPz();
  16753. }
  16754. }, 5000);
  16755. _this.$nextTick(function () {
  16756. setTimeout(() => {
  16757. // var a =
  16758. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16759. // document.getElementsByClassName("vedioList")[0].style.height =
  16760. // a + "px";
  16761. // document.getElementsByClassName("navBox")[0].style.height =
  16762. // a - 40 + "px";
  16763. // if (_this.vedio[_this.taskCount].length > 0) {
  16764. // _this.vedioTime = [];
  16765. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16766. // _this.vedioTime[i] = document.getElementsByClassName(
  16767. // "vjs-duration-display"
  16768. // )[i].textContent;
  16769. // }
  16770. // }
  16771. }, 1000);
  16772. });
  16773. })
  16774. .catch((err) => {
  16775. loading.close();
  16776. console.error(err);
  16777. });
  16778. },
  16779. getCourseGroup(gindex) {
  16780. let params = {
  16781. cid: this.id,
  16782. classid: this.tcid ? this.tcid : "1",
  16783. };
  16784. this.ajax
  16785. .get(this.$store.state.api + "getCourseGroup", params)
  16786. .then((res) => {
  16787. if (res.data && res.data[0].length) {
  16788. if (!this.isGroup) {
  16789. let courseGroup = JSON.parse(res.data[0][0].group);
  16790. courseGroup.group = courseGroup.group.filter((el) => {
  16791. el.works = [];
  16792. return el;
  16793. });
  16794. if (courseGroup.isopen == 2) {
  16795. this.isGroup = false;
  16796. this.selectSWorks(gindex);
  16797. return;
  16798. }
  16799. this.courseGroup = courseGroup;
  16800. let groupPerson = res.data[1];
  16801. let group = JSON.parse(res.data[0][0].group).group;
  16802. let courseGroupStudent = {};
  16803. let courseGroupStudentUid = {};
  16804. for (var i = 0; i < group.length; i++) {
  16805. courseGroupStudent[group[i].id] = [];
  16806. courseGroupStudentUid[group[i].id] = [];
  16807. for (var j = 0; j < groupPerson.length; j++) {
  16808. if (groupPerson[j].groupCid == group[i].id) {
  16809. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16810. courseGroupStudentUid[group[i].id].push(
  16811. groupPerson[j].userid
  16812. );
  16813. }
  16814. }
  16815. }
  16816. this.courseGroupStudent = courseGroupStudent;
  16817. this.courseGroupStudentUid = courseGroupStudentUid;
  16818. }
  16819. if (this.courseGroup.isopen == 2) {
  16820. this.isGroup = false;
  16821. } else {
  16822. this.isGroup = true;
  16823. }
  16824. this.selectSWorks(gindex);
  16825. } else {
  16826. this.selectSWorks(gindex);
  16827. this.isGroup = false;
  16828. }
  16829. })
  16830. .catch((err) => {
  16831. // this.$message.error("网络不佳");
  16832. console.error(err);
  16833. });
  16834. },
  16835. setOperationTime() {
  16836. let _this = this;
  16837. if (_this.opertimer) {
  16838. clearInterval(_this.opertimer);
  16839. _this.opertimer = null;
  16840. }
  16841. _this.opertimer = setInterval(() => {
  16842. _this.setoTime("600");
  16843. }, 600000);
  16844. },
  16845. setoTime(time) {
  16846. let params = [
  16847. {
  16848. uid: this.userid,
  16849. cid: this.id,
  16850. type: "2",
  16851. time: time,
  16852. },
  16853. ];
  16854. this.ajax
  16855. .post(this.$store.state.api + "addOperationTimeT2", params)
  16856. .then((res) => {})
  16857. .catch((err) => {
  16858. console.error(err);
  16859. });
  16860. },
  16861. addPz(type, content) {
  16862. if (type == "1" && this.pzConText == "") {
  16863. this.$message.error("评论不能为空!");
  16864. return;
  16865. }
  16866. let params = [
  16867. {
  16868. cid: this.id,
  16869. uid: this.userid,
  16870. s: this.courseType,
  16871. t: this.taskCount,
  16872. c: type == "1" ? this.pzConText : content,
  16873. type: type,
  16874. },
  16875. ];
  16876. this.ajax
  16877. .post(this.$store.state.api + "addPz2", params)
  16878. .then((res) => {
  16879. this.$message({
  16880. message: "添加成功",
  16881. type: "success",
  16882. });
  16883. this.pzConText = "";
  16884. this.addPzDialog = false;
  16885. this.selectPz();
  16886. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16887. })
  16888. .catch((err) => {
  16889. this.$message.error("添加失败");
  16890. console.error(err);
  16891. });
  16892. },
  16893. setReplyIndex(id, i) {
  16894. this.replyIndex = i;
  16895. this.replyPid = id;
  16896. this.replyDialogVisible = true;
  16897. },
  16898. addHf() {
  16899. if (this.reply == "") {
  16900. this.$message.error("回复不能为空!");
  16901. return;
  16902. }
  16903. let params = [
  16904. {
  16905. cid: this.id,
  16906. uid: this.userid,
  16907. s: this.courseType,
  16908. t: this.taskCount,
  16909. type: "1",
  16910. ct: 2,
  16911. pid: this.replyPid,
  16912. c: this.reply,
  16913. },
  16914. ];
  16915. this.ajax
  16916. .post(this.$store.state.api + "addHf", params)
  16917. .then((res) => {
  16918. this.reply = "";
  16919. this.$message({
  16920. message: "回复成功",
  16921. type: "success",
  16922. });
  16923. this.replyDialogVisible = false;
  16924. this.selectPz();
  16925. })
  16926. .catch((err) => {
  16927. this.$message.error("回复失败");
  16928. console.error(err);
  16929. });
  16930. },
  16931. deletePz(id) {
  16932. this.$confirm("确定删除此评论吗?", "提示", {
  16933. confirmButtonText: "确定",
  16934. cancelButtonText: "取消",
  16935. type: "warning",
  16936. })
  16937. .then(() => {
  16938. let params = [
  16939. {
  16940. id: id,
  16941. },
  16942. ];
  16943. this.ajax
  16944. .post(this.$store.state.api + "deletePz", params)
  16945. .then((res) => {
  16946. this.$message({
  16947. message: "删除成功",
  16948. type: "success",
  16949. });
  16950. this.selectPz();
  16951. })
  16952. .catch((err) => {
  16953. this.$message.error("网络异常");
  16954. console.error(err);
  16955. });
  16956. })
  16957. .catch(() => {});
  16958. },
  16959. deleteReply(id) {
  16960. this.$confirm("确定删除此回复吗?", "提示", {
  16961. confirmButtonText: "确定",
  16962. cancelButtonText: "取消",
  16963. type: "warning",
  16964. })
  16965. .then(() => {
  16966. let params = [
  16967. {
  16968. id: id,
  16969. },
  16970. ];
  16971. this.ajax
  16972. .post(this.$store.state.api + "deleteReply", params)
  16973. .then((res) => {
  16974. this.$message({
  16975. message: "删除成功",
  16976. type: "success",
  16977. });
  16978. this.selectPz();
  16979. })
  16980. .catch((err) => {
  16981. this.$message.error("网络异常");
  16982. console.error(err);
  16983. });
  16984. })
  16985. .catch(() => {});
  16986. },
  16987. setPz() {
  16988. if (this.ispzType == 4) {
  16989. this.ispzType = 0;
  16990. this.pzDialog = false;
  16991. return;
  16992. }
  16993. this.ispzType = 4;
  16994. this.pzDialog = true;
  16995. this.selectPz();
  16996. },
  16997. selectPz() {
  16998. let params = {
  16999. cid: this.id,
  17000. s: this.courseType,
  17001. t: this.taskCount,
  17002. type: this.pzStype,
  17003. uid: this.userid,
  17004. };
  17005. this.ajax
  17006. .get(this.$store.state.api + "selectPzListType", params)
  17007. .then((res) => {
  17008. this.pzList = res.data[0];
  17009. var a = res.data[1];
  17010. for (var i = 0; i < a.length; i++) {
  17011. for (var j = 0; j < this.pzList.length; j++) {
  17012. if (!this.pzList[j].hfList) {
  17013. this.pzList[j].hfList = [];
  17014. }
  17015. if (a[i].pid == this.pzList[j].id) {
  17016. this.pzList[j].hfList.push(a[i]);
  17017. }
  17018. }
  17019. }
  17020. })
  17021. .catch((err) => {
  17022. console.error(err);
  17023. });
  17024. },
  17025. // selectHf() {
  17026. // let params = {
  17027. // cid: this.id,
  17028. // s: this.courseType,
  17029. // t: this.taskCount,
  17030. // };
  17031. // this.ajax
  17032. // .get(this.$store.state.api + "selectHfList", params)
  17033. // .then((res) => {
  17034. // var a = res.data[0];
  17035. // for (var i = 0; i < a.length; i++) {
  17036. // for (var j = 0; j < this.pzList.length; j++) {
  17037. // if (!this.pzList[i].hfList) {
  17038. // this.pzList[i].hfList = [];
  17039. // }
  17040. // if (a[i].pid == this.pzList[j].id) {
  17041. // this.pzList[i].hfList.push(a[i]);
  17042. // }
  17043. // }
  17044. // }
  17045. // })
  17046. // .catch((err) => {
  17047. // console.error(err);
  17048. // });
  17049. // },
  17050. updateSLook() {
  17051. let params = {
  17052. sopen: this.sIsOpen == false ? 1 : 2,
  17053. cid: this.id,
  17054. };
  17055. this.ajax
  17056. .get(this.$store.state.api + "updateCourseSLook", params)
  17057. .then((res) => {
  17058. if (this.sIsOpen == true) {
  17059. this.$message({
  17060. message: "权限设置成功",
  17061. type: "success",
  17062. });
  17063. } else {
  17064. this.$message({
  17065. message: "权限关闭成功",
  17066. type: "success",
  17067. });
  17068. }
  17069. })
  17070. .catch((err) => {
  17071. console.error(err);
  17072. });
  17073. },
  17074. updateFollow() {
  17075. let params = [
  17076. {
  17077. sopen: this.IsFollow == false ? 1 : 2,
  17078. cid: this.id,
  17079. },
  17080. ];
  17081. this.ajax
  17082. .post(this.$store.state.api + "updateCourseFollow", params)
  17083. .then((res) => {
  17084. if (this.IsFollow == true) {
  17085. this.$message({
  17086. message: "开启成功",
  17087. type: "success",
  17088. });
  17089. } else {
  17090. this.$message({
  17091. message: "关闭成功",
  17092. type: "success",
  17093. });
  17094. }
  17095. this.setCTask();
  17096. })
  17097. .catch((err) => {
  17098. console.error(err);
  17099. });
  17100. },
  17101. setCTask() {
  17102. let params = [
  17103. {
  17104. sopen: this.courseType + "-" + this.taskCount,
  17105. cid: this.id,
  17106. },
  17107. ];
  17108. this.ajax
  17109. .post(this.$store.state.api + "updateCourseFollowC", params)
  17110. .then((res) => {})
  17111. .catch((err) => {
  17112. console.error(err);
  17113. });
  17114. },
  17115. updateLookOpen() {
  17116. let params = [
  17117. {
  17118. sopen: this.IsLookOpen == false ? 1 : 2,
  17119. cid: this.id,
  17120. },
  17121. ];
  17122. this.ajax
  17123. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17124. .then((res) => {
  17125. if (this.IsLookOpen == true) {
  17126. // if (this.courseType != 0 && this.taskCount != 0) {
  17127. // this.openTask(0, 0, "0-0");
  17128. // }
  17129. this.$message({
  17130. message: "权限设置成功",
  17131. type: "success",
  17132. });
  17133. } else {
  17134. this.$message({
  17135. message: "权限关闭成功",
  17136. type: "success",
  17137. });
  17138. }
  17139. this.getCourseState(2);
  17140. })
  17141. .catch((err) => {
  17142. console.error(err);
  17143. });
  17144. },
  17145. selectSLook() {
  17146. let params = {
  17147. cid: this.id,
  17148. };
  17149. this.ajax
  17150. .get(this.$store.state.api + "selectCourseSLook", params)
  17151. .then((res) => {
  17152. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17153. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17154. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17155. if (!this.IsLookOpen) {
  17156. this.setNavList();
  17157. } else {
  17158. this.getCourseState(1);
  17159. }
  17160. if (this.IsFollow && this.tType == 2) {
  17161. this.setContent2(false);
  17162. let _followC = res.data[0][0].followC.split("-");
  17163. if (
  17164. this.courseType != _followC[0] ||
  17165. this.taskCount != _followC[1]
  17166. ) {
  17167. this.navList[this.courseType].isOpen = false;
  17168. this.courseType = _followC[0];
  17169. this.navList[this.courseType].isOpen = true;
  17170. this.taskCount = parseInt(_followC[1]);
  17171. this.navId = res.data[0][0].followC;
  17172. document.scrollingElement.scrollTop = 0;
  17173. this.getCourseDetail(2);
  17174. }
  17175. }
  17176. })
  17177. .catch((err) => {
  17178. console.error(err);
  17179. });
  17180. },
  17181. setNavList() {
  17182. if (this.navList.length == 0) {
  17183. this.navList = [];
  17184. var copyList = [];
  17185. for (var l = 0; l < this.chapInfoList.length; l++) {
  17186. var q = this.chapInfoList[l].dyName;
  17187. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17188. var e;
  17189. copyList.push({
  17190. dyName: q,
  17191. isOpen: l === 0 ? true : false,
  17192. task: [],
  17193. });
  17194. for (var r = 0; r < w.length; r++) {
  17195. e = w[r].task;
  17196. if (this.chapInfoList[l].easy == 1) {
  17197. copyList[l].task.push({
  17198. taskName: q,
  17199. id: l + "-" + r,
  17200. isLook: w[r].isLook,
  17201. isOpen: r === 0 ? true : false,
  17202. tool: [],
  17203. });
  17204. } else {
  17205. copyList[l].task.push({
  17206. taskName: e,
  17207. id: l + "-" + r,
  17208. isLook: w[r].isLook,
  17209. isOpen: r === 0 ? true : false,
  17210. tool: [],
  17211. });
  17212. }
  17213. var t = w[r].toolChoose;
  17214. for (var k = 0; k < t.length; k++) {
  17215. var tool = t[k].tool[0];
  17216. copyList[l].task[r].tool.push({
  17217. tool: tool,
  17218. isTool: false,
  17219. });
  17220. }
  17221. // this.navId = this.navId ? this.navId : l + "-" + r;
  17222. // this.navId = l + "-" + r;
  17223. }
  17224. }
  17225. this.navList = copyList;
  17226. this.navList[0].isOpen = false;
  17227. this.navList[this.courseType].isOpen = true;
  17228. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17229. } else {
  17230. this.setNavList2();
  17231. }
  17232. },
  17233. setNavList2() {
  17234. for (var l = 0; l < this.chapInfoList.length; l++) {
  17235. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17236. for (var r = 0; r < w.length; r++) {
  17237. this.navList[l].task[r].isLook = w[r].isLook;
  17238. }
  17239. }
  17240. if (
  17241. this.IsLookOpen &&
  17242. !this.navList[this.courseType].task[this.taskCount].isLook
  17243. ) {
  17244. this.openTask(0, 0, "0-0");
  17245. }
  17246. this.$forceUpdate();
  17247. },
  17248. getCourseState(type) {
  17249. let params = {
  17250. cid: this.id,
  17251. };
  17252. this.ajax
  17253. .get(this.$store.state.api + "getCourseState", params)
  17254. .then((res) => {
  17255. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17256. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17257. this.setNavList();
  17258. this.$forceUpdate();
  17259. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17260. this.addCourseState(2);
  17261. } else {
  17262. this.addCourseState(1);
  17263. }
  17264. })
  17265. .catch((err) => {
  17266. console.error(err);
  17267. });
  17268. },
  17269. addCourseState(type) {
  17270. let _state = this.chapInfoList;
  17271. // this.courseType this.taskCount
  17272. if (type == 1 || type == 2) {
  17273. for (var i = 0; i < _state.length; i++) {
  17274. let el = _state[i].chapterInfo[0].taskJson;
  17275. for (var j = 0; j < el.length; j++) {
  17276. // if (i == 0 && j == 0) {
  17277. // el[j].isLook = true;
  17278. // } else {
  17279. // el[j].isLook = false;
  17280. // }
  17281. if (
  17282. this.courseType > i ||
  17283. (this.courseType == i && this.taskCount + 1 > j)
  17284. ) {
  17285. el[j].isLook = true;
  17286. } else {
  17287. el[j].isLook = false;
  17288. }
  17289. }
  17290. }
  17291. }
  17292. let params = [
  17293. {
  17294. cid: this.id,
  17295. state: JSON.stringify(_state),
  17296. },
  17297. ];
  17298. this.ajax
  17299. .post(
  17300. this.$store.state.api +
  17301. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17302. params
  17303. )
  17304. .then((res) => {
  17305. if (this.IsLookOpen) {
  17306. this.setNavList();
  17307. }
  17308. if (type == 3 && type == 2) {
  17309. this.getCourseState(1);
  17310. }
  17311. })
  17312. .catch((err) => {
  17313. console.error(err);
  17314. });
  17315. },
  17316. getHomeWork() {
  17317. let params = {
  17318. cid: this.id,
  17319. stage: this.courseType,
  17320. task: this.taskCount,
  17321. uid: this.userid,
  17322. };
  17323. this.ajax
  17324. .get(this.$store.state.api + "selectWork", params)
  17325. .then((res) => {
  17326. if (res.data[0].length > 0) {
  17327. this.studyJuri = JSON.parse(res.data[0][0].content);
  17328. this.isNoHomeWork = true;
  17329. }
  17330. })
  17331. .catch((err) => {
  17332. console.error(err);
  17333. });
  17334. },
  17335. isAssetTypeAnImage(ext) {
  17336. return (
  17337. [
  17338. "png",
  17339. "jpg",
  17340. "jpeg",
  17341. "bmp",
  17342. "gif",
  17343. "webp",
  17344. "psd",
  17345. "svg",
  17346. "tiff",
  17347. ].indexOf(ext) !== -1
  17348. );
  17349. },
  17350. switchVideo(media) {
  17351. this.playerO = {};
  17352. this.playerOptions.poster = "";
  17353. this.playerOptions.sources[0].src = media;
  17354. this.playerO = this.playerOptions;
  17355. },
  17356. onPlayerPlay() {},
  17357. onPlayerTimeupdate(player) {
  17358. let gklog = player.cache_.currentTime; //当前播放的秒数
  17359. let a = player.cache_.duration; //视频的总时长
  17360. let gklog2 = parseInt(gklog);
  17361. // if(gklog2 == '3'){
  17362. // player.pause()
  17363. // setTimeout(()=>{
  17364. // player.currentTime(gklog2+1)
  17365. // player.play()
  17366. // },1000)
  17367. // }
  17368. console.log(" onPlayerTimeupdate!", gklog);
  17369. console.log(" onPlayerTimeupdate!", gklog2);
  17370. },
  17371. lookVedio(u, i) {
  17372. this.isClickNav = "";
  17373. // this.playerOptions.sources[0].src = u;
  17374. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17375. d.sources[0].src = u;
  17376. this.playerO[this.taskCount] = d;
  17377. this.showType = 0;
  17378. // this.isClickNav = "video" + i;
  17379. this.isClickNav = i;
  17380. this.$forceUpdate();
  17381. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17382. },
  17383. lookText(i, t) {
  17384. this.isClickNav = "";
  17385. // this.text = this.textList[i][t];
  17386. this.text = this.vChapterData[i][t];
  17387. // this.dialogVisible1 = true;
  17388. this.showType = 1;
  17389. // this.isClickNav = "text" + t;
  17390. this.isClickNav = t;
  17391. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17392. },
  17393. lookTools(i, t) {
  17394. this.chapTools = this.chapToolList[i][t];
  17395. this.dialogVisible2 = true;
  17396. },
  17397. async openFile(f,w) {
  17398. this.pptImgUrl = "";
  17399. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17400. if (
  17401. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17402. -1
  17403. ) {
  17404. let _uuurl = await this.checkLink(f);
  17405. this.pptImgUrl =
  17406. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17407. this.showPDF = false;
  17408. this.dialogVisible3 = true;
  17409. } else if (
  17410. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17411. ) {
  17412. this.pptImgUrl = f;
  17413. this.showPDF = true;
  17414. this.dialogVisible3 = true;
  17415. }
  17416. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17417. },
  17418. openTable(f) {
  17419. this.tableJson = JSON.parse(f.works);
  17420. this.dialogVisibleTable2 = true;
  17421. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17422. },
  17423. openWord(f) {
  17424. this.tableJson = JSON.parse(f.works);
  17425. this.dialogVisibleTable3 = true;
  17426. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17427. },
  17428. doUrl(url, i) {
  17429. this.isClickNav = "";
  17430. this.pptImgUrl1 = "";
  17431. this.showType = 2;
  17432. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17433. url = "https://" + url;
  17434. }
  17435. this.pptImgUrl1 = "";
  17436. setTimeout(() => {
  17437. this.pptImgUrl1 = url;
  17438. }, 500);
  17439. // this.isClickNav = "line" + i;
  17440. this.isClickNav = i;
  17441. this.$forceUpdate();
  17442. },
  17443. checkPhoto(f, i) {
  17444. this.showType = 4;
  17445. this.pptImgUrl1 = f.url;
  17446. this.isClickNav = i;
  17447. this.$forceUpdate();
  17448. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17449. },
  17450. async downFile(f, i) {
  17451. this.isClickNav = "";
  17452. this.pptImgUrl1 = "";
  17453. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17454. if (
  17455. a.indexOf(
  17456. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17457. ) != -1
  17458. ) {
  17459. let _uuurl = await this.checkLink(f.url);
  17460. this.pptImgUrl1 =
  17461. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17462. // this.dialogVisible3 = true;
  17463. this.showType = 2;
  17464. } else if (
  17465. this.isAssetTypeAnImage(
  17466. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17467. )
  17468. ) {
  17469. this.showType = 4;
  17470. this.pptImgUrl1 = f.url;
  17471. } else if (
  17472. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17473. "PDF"
  17474. ) {
  17475. this.pptImgUrl1 = f.url;
  17476. // this.dialogVisible3 = true;
  17477. this.showType = 3;
  17478. } else {
  17479. window.open(this.file[i].url);
  17480. }
  17481. // this.isClickNav = "word" + i;
  17482. this.isClickNav = i;
  17483. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17484. },
  17485. downFileList(i) {
  17486. window.open(this.noImgList[i].url);
  17487. },
  17488. openAddWork() {
  17489. this.dialogVisible = true;
  17490. },
  17491. addBzWorks() {
  17492. let params = [
  17493. {
  17494. uid: this.userid,
  17495. cid: this.id,
  17496. stage: this.courseType,
  17497. task: this.taskCount,
  17498. tool: this.toolindex,
  17499. content: JSON.stringify(this.eScore),
  17500. type: 6,
  17501. },
  17502. ];
  17503. this.ajax
  17504. .post(this.$store.state.api + "addCourseWorks", params)
  17505. .then((res) => {
  17506. this.$message({
  17507. message: "提交成功",
  17508. type: "success",
  17509. });
  17510. this.eScore = { eBzText: "", eStar: [] };
  17511. this.studentEvalDialogVisible = false;
  17512. this.selectSWorks();
  17513. })
  17514. .catch((err) => {
  17515. this.$message.error("提交失败");
  17516. console.error(err);
  17517. });
  17518. },
  17519. addBzWorksTeacher() {
  17520. let params = [
  17521. {
  17522. uid: this.sStudent.userid,
  17523. cid: this.id,
  17524. stage: this.courseType,
  17525. task: this.taskCount,
  17526. tool: this.toolindex,
  17527. content: JSON.stringify(this.eScore),
  17528. type: 6,
  17529. },
  17530. ];
  17531. this.ajax
  17532. .post(this.$store.state.api + "addCourseWorks", params)
  17533. .then((res) => {
  17534. this.$message({
  17535. message: "提交成功",
  17536. type: "success",
  17537. });
  17538. this.eScore = { eBzText: "", eStar: [] };
  17539. this.studentEvalDialogVisibleTeacher = false;
  17540. this.selectSWorks();
  17541. })
  17542. .catch((err) => {
  17543. this.$message.error("提交失败");
  17544. console.error(err);
  17545. });
  17546. },
  17547. addStudentAsk() {
  17548. if (!this.radio.length) {
  17549. this.$message.error("请选择选项");
  17550. return;
  17551. }
  17552. for (var i = 0; i < this.askJson.askCount; i++) {
  17553. if (
  17554. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17555. (this.radio[i] !== 0 && !this.radio[i])
  17556. ) {
  17557. this.$message.error("请选择选项");
  17558. return;
  17559. }
  17560. }
  17561. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17562. let params = [
  17563. {
  17564. uid: this.userid,
  17565. cid: this.id,
  17566. stage: this.courseType,
  17567. task: this.taskCount,
  17568. tool: this.toolindex,
  17569. content: JSON.stringify(this.askList),
  17570. type: 2,
  17571. },
  17572. ];
  17573. this.ajax
  17574. .post(this.$store.state.api + "addCourseWorks", params)
  17575. .then((res) => {
  17576. this.$message({
  17577. message: "提交成功",
  17578. type: "success",
  17579. });
  17580. this.askList = [];
  17581. this.dialogVisible5 = false;
  17582. this.selectStudent();
  17583. this.selectSWorks();
  17584. this.selectSLook();
  17585. })
  17586. .catch((err) => {
  17587. this.$message.error("提交失败");
  17588. console.error(err);
  17589. });
  17590. },
  17591. addStudentAskTeacher() {
  17592. if (!this.radio.length) {
  17593. this.$message.error("请选择选项");
  17594. return;
  17595. }
  17596. for (var i = 0; i < this.askJson.askCount; i++) {
  17597. if (
  17598. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17599. (this.radio[i] !== 0 && !this.radio[i])
  17600. ) {
  17601. this.$message.error("请选择选项");
  17602. return;
  17603. }
  17604. }
  17605. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17606. let params = [
  17607. {
  17608. uid: this.sStudent.userid,
  17609. cid: this.id,
  17610. stage: this.courseType,
  17611. task: this.taskCount,
  17612. tool: this.toolindex,
  17613. content: JSON.stringify(this.askList),
  17614. type: 2,
  17615. },
  17616. ];
  17617. this.ajax
  17618. .post(this.$store.state.api + "addCourseWorks", params)
  17619. .then((res) => {
  17620. this.$message({
  17621. message: "提交成功",
  17622. type: "success",
  17623. });
  17624. this.askList = [];
  17625. this.dialogVisible5Teacher = false;
  17626. this.selectStudent();
  17627. this.selectSWorks();
  17628. this.selectSLook();
  17629. })
  17630. .catch((err) => {
  17631. this.$message.error("提交失败");
  17632. console.error(err);
  17633. });
  17634. },
  17635. addStudentTest() {
  17636. if (!this.radio.length) {
  17637. this.$message.error("请选择选项");
  17638. return;
  17639. }
  17640. for (var i = 0; i < this.testJson.testCount; i++) {
  17641. if (
  17642. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17643. (this.radio[i] !== 0 && !this.radio[i])
  17644. ) {
  17645. this.$message.error("请选择选项");
  17646. return;
  17647. }
  17648. }
  17649. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17650. let params = [
  17651. {
  17652. uid: this.userid,
  17653. cid: this.id,
  17654. stage: this.courseType,
  17655. task: this.taskCount,
  17656. tool: this.toolindex,
  17657. content: JSON.stringify(this.askList),
  17658. type: 8,
  17659. },
  17660. ];
  17661. this.ajax
  17662. .post(this.$store.state.api + "addCourseWorks", params)
  17663. .then((res) => {
  17664. this.$message({
  17665. message: "提交成功",
  17666. type: "success",
  17667. });
  17668. this.askList = [];
  17669. this.dialogVisibleChoice = false;
  17670. this.selectStudent();
  17671. this.selectSWorks();
  17672. this.selectSLook();
  17673. })
  17674. .catch((err) => {
  17675. this.$message.error("提交失败");
  17676. console.error(err);
  17677. });
  17678. },
  17679. addStudentTestTeacher() {
  17680. if (!this.radio.length) {
  17681. this.$message.error("请选择选项");
  17682. return;
  17683. }
  17684. for (var i = 0; i < this.testJson.testCount; i++) {
  17685. if (
  17686. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17687. (this.radio[i] !== 0 && !this.radio[i])
  17688. ) {
  17689. this.$message.error("请选择选项");
  17690. return;
  17691. }
  17692. }
  17693. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17694. let params = [
  17695. {
  17696. uid: this.sStudent.userid,
  17697. cid: this.id,
  17698. stage: this.courseType,
  17699. task: this.taskCount,
  17700. tool: this.toolindex,
  17701. content: JSON.stringify(this.askList),
  17702. type: 8,
  17703. },
  17704. ];
  17705. this.ajax
  17706. .post(this.$store.state.api + "addCourseWorks", params)
  17707. .then((res) => {
  17708. this.$message({
  17709. message: "提交成功",
  17710. type: "success",
  17711. });
  17712. this.askList = [];
  17713. this.dialogVisibleChoiceTeacher = false;
  17714. this.selectStudent();
  17715. this.selectSWorks();
  17716. this.selectSLook();
  17717. })
  17718. .catch((err) => {
  17719. this.$message.error("提交失败");
  17720. console.error(err);
  17721. });
  17722. },
  17723. addWork() {
  17724. if (this.studyJuri[0].content == "") {
  17725. this.$message.error("请将信息填写完整");
  17726. return;
  17727. } else if (this.studyJuri[0].cover.length == 0) {
  17728. this.$message.error("请将信息填写完整");
  17729. return;
  17730. } else if (this.studyJuri[0].upVedio.length == 0) {
  17731. this.$message.error("请将信息填写完整");
  17732. return;
  17733. }
  17734. if (this.isNoHomeWork) {
  17735. this.$confirm(
  17736. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17737. "提示",
  17738. {
  17739. confirmButtonText: "确定",
  17740. cancelButtonText: "取消",
  17741. type: "warning",
  17742. }
  17743. )
  17744. .then(() => {
  17745. let params = [
  17746. {
  17747. uid: this.userid,
  17748. cid: this.id,
  17749. stage: this.courseType,
  17750. task: this.taskCount,
  17751. content: JSON.stringify(this.studyJuri),
  17752. },
  17753. ];
  17754. this.ajax
  17755. .post(this.$store.state.api + "addWorks", params)
  17756. .then((res) => {
  17757. this.$message({
  17758. message: "提交成功",
  17759. type: "success",
  17760. });
  17761. this.isNoHomeWork = true;
  17762. this.dialogVisible = false;
  17763. })
  17764. .catch((err) => {
  17765. this.$message.error("提交失败");
  17766. console.error(err);
  17767. });
  17768. })
  17769. .catch(() => {});
  17770. } else {
  17771. let params = [
  17772. {
  17773. uid: this.userid,
  17774. cid: this.id,
  17775. stage: this.courseType,
  17776. task: this.taskCount,
  17777. content: JSON.stringify(this.studyJuri),
  17778. },
  17779. ];
  17780. this.ajax
  17781. .post(this.$store.state.api + "addWorks", params)
  17782. .then((res) => {
  17783. this.$message({
  17784. message: "提交成功",
  17785. type: "success",
  17786. });
  17787. this.isNoHomeWork = true;
  17788. this.dialogVisible = false;
  17789. })
  17790. .catch((err) => {
  17791. this.$message.error("提交失败");
  17792. console.error(err);
  17793. });
  17794. }
  17795. },
  17796. selectCount() {
  17797. let params = {
  17798. cid: this.id,
  17799. chid: this.courseType,
  17800. uid: this.userid,
  17801. };
  17802. this.ajax
  17803. .get(this.$store.state.api + "selectToolsCount", params)
  17804. .then((res) => {
  17805. for (var i = 0; i < res.data[0].length; i++) {
  17806. if (res.data[0][i].tools == 1) {
  17807. this.wbCount = res.data[0][i].count;
  17808. } else if (res.data[0][i].tools == 2) {
  17809. this.wordCount = res.data[0][i].count;
  17810. } else if (res.data[0][i].tools == 3) {
  17811. this.mindCount = res.data[0][i].count;
  17812. } else if (res.data[0][i].tools == 4) {
  17813. this.askCount = res.data[0][i].count;
  17814. } else if (res.data[0][i].tools == 6) {
  17815. this.noteCount = res.data[0][i].count;
  17816. } else if (res.data[0][i].tools == 7) {
  17817. this.mindNetWorkCount = res.data[0][i].count;
  17818. } else if (res.data[0][i].tools == 8) {
  17819. this.libraryCount = res.data[0][i].count;
  17820. } else if (res.data[0][i].tools == 16) {
  17821. this.workCount = res.data[0][i].count;
  17822. } else if (res.data[0][i].tools == 10) {
  17823. this.timeCount = res.data[0][i].count;
  17824. } else if (res.data[0][i].tools == 15) {
  17825. this.answerCount = res.data[0][i].count;
  17826. } else if (res.data[0][i].tools == 18) {
  17827. this.trainCount = res.data[0][i].count;
  17828. }
  17829. }
  17830. })
  17831. .catch((err) => {
  17832. console.error(err);
  17833. });
  17834. },
  17835. openTools(t, i, index, c, sName,id) {
  17836. var z = JSON.parse(c);
  17837. this.noteName = sName;
  17838. if (t == 4) {
  17839. this.radio = [];
  17840. this.isAnswer = false;
  17841. let b = z[0].anwer;
  17842. this.radio = b;
  17843. this.askJson = z[0].askJson;
  17844. this.isAnswer = true;
  17845. this.dialogVisible5 = true;
  17846. } else if (t == 45) {
  17847. this.radio = [];
  17848. this.isAnswer = false;
  17849. let b = z[0].anwer;
  17850. this.radio = b;
  17851. this.testJson = z[0].testJson;
  17852. this.isAnswer = true;
  17853. this.dialogVisibleChoice = true;
  17854. }else if(t == 69){
  17855. this.oldEnglishJson1 = {}
  17856. this.oldEnglishJson = {}
  17857. this.englishList1 = {}
  17858. this.newEngIndex = -1;
  17859. this.isNoUserid = false;
  17860. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17861. .toolChoose[i].englishList;
  17862. this.oldEnglishJson = z;
  17863. this.engWid = id;
  17864. this.newEnglishList = { engTitle:"",engText:"" }
  17865. this.newEnglishList1 = []
  17866. this.selectEngC(id,z);
  17867. }else if(t == 62){
  17868. this.videoType = 1;
  17869. this.videoJson = {};
  17870. this.videoJson = JSON.parse(c);
  17871. // this.videoJson =
  17872. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17873. // index
  17874. // ].toolChoose[i].videoJson;
  17875. this.dialogVisibleVideo = true;
  17876. //this.dialog
  17877. }
  17878. // else if (t == 15) {
  17879. // this.answerQ = "";
  17880. // this.questionAnswer = "";
  17881. // this.answerQ = z[0].answerTitle;
  17882. // this.questionAnswer = z[0].answer;
  17883. // this.answerDialogVisible = true;
  17884. // }
  17885. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17886. },
  17887. fastText(p, t) {
  17888. if (t == 1) {
  17889. this.commentText += p;
  17890. } else {
  17891. this.eScore.eBzText += p;
  17892. }
  17893. },
  17894. addTools(t, i, index) {
  17895. var a = 0;
  17896. // this.taskCount = index;
  17897. this.toolindex = i;
  17898. if (t == 1) {
  17899. if (this.wbCount > 0) {
  17900. this.updateCount(this.wbCount, t);
  17901. } else {
  17902. this.wbCount++;
  17903. a = this.wbCount;
  17904. this.toolsCount(a, t);
  17905. }
  17906. window.parent.postMessage(
  17907. {
  17908. tools: "1",
  17909. cid: this.id,
  17910. stage: this.courseType,
  17911. task: this.taskCount,
  17912. tool: i,
  17913. },
  17914. "*"
  17915. );
  17916. } else if (t == 2) {
  17917. if (this.wordCount > 0) {
  17918. this.updateCount(this.wordCount, t);
  17919. } else {
  17920. this.wordCount++;
  17921. a = this.wordCount;
  17922. this.toolsCount(a, t);
  17923. }
  17924. window.parent.postMessage({ tools: "2" }, "*");
  17925. } else if (t == 3) {
  17926. if (this.mindCount > 0) {
  17927. this.updateCount(this.mindCount, t);
  17928. } else {
  17929. this.mindCount++;
  17930. a = this.mindCount;
  17931. this.toolsCount(a, t);
  17932. }
  17933. window.parent.postMessage(
  17934. {
  17935. tools: "3",
  17936. cid: this.id,
  17937. stage: this.courseType,
  17938. task: this.taskCount,
  17939. tool: i,
  17940. },
  17941. "*"
  17942. );
  17943. } else if (t == 4) {
  17944. this.radio = [];
  17945. this.noteName = "";
  17946. this.isAnswer = false;
  17947. if (this.askCount > 0) {
  17948. this.updateCount(this.askCount, t);
  17949. } else {
  17950. this.askCount++;
  17951. a = this.askCount;
  17952. this.toolsCount(a, t);
  17953. }
  17954. if (!this.dialogVisible2) {
  17955. this.askJson.askJson =
  17956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17957. index
  17958. ].toolChoose[i].askJson;
  17959. this.askJson.askTitle =
  17960. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17961. index
  17962. ].toolChoose[i].askTitle;
  17963. this.askJson.askCount =
  17964. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17965. index
  17966. ].toolChoose[i].askCount;
  17967. } else {
  17968. this.askJson.askJson = this.chapTools.askJson.askJson;
  17969. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17970. this.askJson.askCount = this.chapTools.askJson.askCount;
  17971. }
  17972. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17973. if (this.askJson.askJson[k].type == "2") {
  17974. this.radio.push([]);
  17975. } else {
  17976. this.radio.push("");
  17977. }
  17978. }
  17979. this.dialogVisible5 = true;
  17980. // window.parent.postMessage({ tools: "4" }, "*");
  17981. } else if (t == 45) {
  17982. this.noteName = "";
  17983. this.radio = [];
  17984. this.isAnswer = false;
  17985. if (this.askCount > 0) {
  17986. this.updateCount(this.askCount, t);
  17987. } else {
  17988. this.askCount++;
  17989. a = this.askCount;
  17990. this.toolsCount(a, t);
  17991. }
  17992. this.testJson =
  17993. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17994. index
  17995. ].toolChoose[i].testJson;
  17996. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17997. if (this.testJson.testJson[k].type == "2") {
  17998. this.radio.push([]);
  17999. } else {
  18000. this.radio.push("");
  18001. }
  18002. }
  18003. this.dialogVisibleChoice = true;
  18004. // window.parent.postMessage({ tools: "4" }, "*");
  18005. } else if (t == 5) {
  18006. if (this.scoreCount > 0) {
  18007. this.updateCount(this.scoreCount, t);
  18008. } else {
  18009. this.scoreCount++;
  18010. a = this.scoreCount;
  18011. this.toolsCount(a, t);
  18012. }
  18013. this.dialogVisible4 = true;
  18014. // window.parent.postMessage({ tools: "5" }, "*");
  18015. } else if (t == 6) {
  18016. if (this.noteCount > 0) {
  18017. this.updateCount(this.noteCount, t);
  18018. } else {
  18019. this.noteCount++;
  18020. a = this.noteCount;
  18021. this.toolsCount(a, t);
  18022. }
  18023. window.parent.postMessage(
  18024. {
  18025. tools: "6",
  18026. cid: this.id,
  18027. stage: this.courseType,
  18028. task: this.taskCount,
  18029. tool: i,
  18030. },
  18031. "*"
  18032. );
  18033. } else if (t == 7) {
  18034. if (this.mindNetWorkCount > 0) {
  18035. this.updateCount(this.mindNetWorkCount, t);
  18036. } else {
  18037. this.mindNetWorkCount++;
  18038. a = this.mindNetWorkCount;
  18039. this.toolsCount(a, t);
  18040. }
  18041. window.parent.postMessage(
  18042. {
  18043. tools: "7",
  18044. cid: this.id,
  18045. stage: this.courseType,
  18046. task: this.taskCount,
  18047. tool: i,
  18048. },
  18049. "*"
  18050. );
  18051. } else if (t == 16) {
  18052. if (this.workCount > 0) {
  18053. this.updateCount(this.workCount, t);
  18054. } else {
  18055. this.workCount++;
  18056. a = this.workCount;
  18057. this.toolsCount(a, t);
  18058. }
  18059. this.dialogVisible = true;
  18060. } else if (t == 50) {
  18061. if (this.tType == 2) {
  18062. this.$message.error("不支持学生使用");
  18063. return;
  18064. }
  18065. this.plworkFile = [];
  18066. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18067. if (!this.uploadCid) {
  18068. this.$message.error(
  18069. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18070. );
  18071. return;
  18072. }
  18073. // this.uploadCid =
  18074. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18075. // index
  18076. // ].toolChoose[i].uploadJson[0];
  18077. this.selectUploadStudent(2);
  18078. } else if (t == 8) {
  18079. if (this.libraryCount > 0) {
  18080. this.updateCount(this.libraryCount, t);
  18081. } else {
  18082. this.libraryCount++;
  18083. a = this.libraryCount;
  18084. this.toolsCount(a, t);
  18085. }
  18086. window.parent.postMessage({ tools: "8" }, "*");
  18087. } else if (t == 17) {
  18088. if (this.libraryCount > 0) {
  18089. this.updateCount(this.libraryCount, t);
  18090. } else {
  18091. this.libraryCount++;
  18092. a = this.libraryCount;
  18093. this.toolsCount(a, t);
  18094. }
  18095. window.parent.postMessage({ tools: "17" }, "*");
  18096. } else if (t == 18) {
  18097. if (this.trainCount > 0) {
  18098. this.updateCount(this.trainCount, t);
  18099. } else {
  18100. this.trainCount++;
  18101. a = this.trainCount;
  18102. this.toolsCount(a, t);
  18103. }
  18104. window.parent.postMessage({ tools: "18" }, "*");
  18105. } else if (t == 10) {
  18106. if (this.timeCount > 0) {
  18107. this.updateCount(this.timeCount, t);
  18108. } else {
  18109. this.timeCount++;
  18110. a = this.timeCount;
  18111. this.toolsCount(a, t);
  18112. }
  18113. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18114. .taskJson[index].toolChoose[i].preTime
  18115. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18116. .toolChoose[i].preTime
  18117. : "";
  18118. this.timeDialogVisible = true;
  18119. } else if (t == 15) {
  18120. this.answerQ = "";
  18121. this.questionAnswer = "";
  18122. if (this.answerCount > 0) {
  18123. this.updateCount(this.answerCount, t);
  18124. } else {
  18125. this.answerCount++;
  18126. a = this.answerCount;
  18127. this.toolsCount(a, t);
  18128. }
  18129. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18130. .taskJson[index].toolChoose[i].answerQ
  18131. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18132. .toolChoose[i].answerQ
  18133. : "";
  18134. this.answerDialogVisible = true;
  18135. } else if (t == 21) {
  18136. window.parent.postMessage({ tools: "21" }, "*");
  18137. } else if (t == 22) {
  18138. window.parent.postMessage({ tools: "22" }, "*");
  18139. } else if (t == 23) {
  18140. window.parent.postMessage({ tools: "23" }, "*");
  18141. } else if (t == 24) {
  18142. window.parent.postMessage({ tools: "24" }, "*");
  18143. } else if (t == 25) {
  18144. window.parent.postMessage({ tools: "25" }, "*");
  18145. } else if (t == 31) {
  18146. window.parent.postMessage({ tools: "31" }, "*");
  18147. } else if (t == 28) {
  18148. window.parent.postMessage({ tools: "28" }, "*");
  18149. } else if (t == 37) {
  18150. window.parent.postMessage({ tools: "37" }, "*");
  18151. } else if (t == 38) {
  18152. window.parent.postMessage({ tools: "38" }, "*");
  18153. } else if (t == 39) {
  18154. window.parent.postMessage({ tools: "39" }, "*");
  18155. } else if (t == 32) {
  18156. window.parent.postMessage({ tools: "32" }, "*");
  18157. } else if (t == 66) {
  18158. window.parent.postMessage({ tools: "66" }, "*");
  18159. } else if (t == 67) {
  18160. window.parent.postMessage({ tools: "67" }, "*");
  18161. } else if (t == 68) {
  18162. window.parent.postMessage({ tools: "68" }, "*");
  18163. } else if (t == 57) {
  18164. // window.parent.postMessage({ tools: "57" }, "*");
  18165. window.parent.postMessage(
  18166. {
  18167. tools: "57u",
  18168. cid: this.id,
  18169. stage: this.courseType,
  18170. task: this.taskCount,
  18171. tool: i,
  18172. },
  18173. "*"
  18174. );
  18175. } else if (t == 58) {
  18176. window.parent.postMessage({ tools: "58" }, "*");
  18177. } else if (t == 59) {
  18178. window.parent.postMessage({ tools: "59" }, "*");
  18179. } else if (t == 60) {
  18180. window.parent.postMessage({ tools: "60" }, "*");
  18181. } else if (t == 61) {
  18182. window.parent.postMessage({ tools: "61" }, "*");
  18183. } else if (t == 63) {
  18184. window.parent.postMessage({ tools: "63" }, "*");
  18185. } else if (t == 71) {
  18186. window.parent.postMessage({ tools: "71" }, "*");
  18187. } else if (t == 69) {
  18188. if (this.worksStudent[i].length) {
  18189. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18190. if (this.userid == this.worksStudent[i][k].userid) {
  18191. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18192. break;
  18193. } else {
  18194. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18195. }
  18196. }
  18197. } else {
  18198. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18199. }
  18200. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18201. .taskJson[index].toolChoose[i].englishList
  18202. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18203. .toolChoose[i].englishList
  18204. : {};
  18205. this.englishToolIndex = i;
  18206. this.myAnList = this.myAnswerList1;
  18207. this.engDialogVisible = true;
  18208. } else if (t == 70) {
  18209. if (this.worksStudent[i].length) {
  18210. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18211. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18212. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18213. break;
  18214. } else {
  18215. this.englishVoiceJsonWork = [];
  18216. }
  18217. }
  18218. } else {
  18219. this.englishVoiceJsonWork = [];
  18220. }
  18221. let englishVoiceJson = {}
  18222. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18223. .taskJson[index].toolChoose[i].englishVoiceJson
  18224. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18225. .toolChoose[i].englishVoiceJson
  18226. : {};
  18227. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18228. this.EnglishVoiceDialog = true;
  18229. } else if (t == 65) {
  18230. if (this.tType == 2) {
  18231. this.$message.error("不支持学生使用");
  18232. return;
  18233. }
  18234. this.uploadCid = this.tcid;
  18235. if (!this.uploadCid) {
  18236. this.$message.error(
  18237. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18238. );
  18239. return;
  18240. }
  18241. this.selectPickStudent();
  18242. } else if (t == 26) {
  18243. window.parent.postMessage(
  18244. {
  18245. tools: "26",
  18246. cid: this.id,
  18247. stage: this.courseType,
  18248. task: this.taskCount,
  18249. tool: i,
  18250. },
  18251. "*"
  18252. );
  18253. } else if (t == 40) {
  18254. if (this.evalCount > 0) {
  18255. this.updateCount(this.evalCount, t);
  18256. } else {
  18257. this.evalCount++;
  18258. a = this.evalCount;
  18259. this.toolsCount(a, t);
  18260. }
  18261. this.eScore = { eBzText: "", eStar: [] };
  18262. if (this.worksStudent[i].length) {
  18263. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18264. if (this.userid == this.worksStudent[i][k].userid) {
  18265. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18266. this.rateJson =
  18267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18268. index
  18269. ].toolChoose[i].rateJson;
  18270. break;
  18271. } else {
  18272. this.rateJson =
  18273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18274. index
  18275. ].toolChoose[i].rateJson;
  18276. }
  18277. }
  18278. } else {
  18279. this.rateJson =
  18280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18281. index
  18282. ].toolChoose[i].rateJson;
  18283. }
  18284. this.isStar = false;
  18285. this.studentEvalDialogVisible = true;
  18286. } else if (t == 41) {
  18287. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18288. .taskJson[index].toolChoose[i].selectJson
  18289. ? JSON.parse(
  18290. JSON.stringify(
  18291. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18292. index
  18293. ].toolChoose[i].selectJson
  18294. )
  18295. )
  18296. : { url: "", select: [], answer: [] };
  18297. if (this.worksStudent[i].length) {
  18298. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18299. if (this.userid == this.worksStudent[i][k].userid) {
  18300. var a = this.worksStudent[i][k].works.split(",");
  18301. for (var ki = 0; ki < a.length; ki++) {
  18302. a[ki] = parseInt(a[ki]);
  18303. }
  18304. this.selectAnswer = {
  18305. answer: a,
  18306. stu: this.worksStudent[i][k].sName,
  18307. };
  18308. break;
  18309. } else {
  18310. this.selectAnswer = { answer: [], stu: "" };
  18311. }
  18312. }
  18313. } else {
  18314. this.selectAnswer = { answer: [], stu: "" };
  18315. }
  18316. this.isSelect = false;
  18317. this.dialogVisibleSelect = true;
  18318. } else if (t == 44) {
  18319. window.parent.postMessage({ tools: "44" }, "*");
  18320. } else if (t == 47) {
  18321. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18322. .taskJson[index].toolChoose[i].sentenceList
  18323. ? JSON.parse(
  18324. JSON.stringify(
  18325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18326. index
  18327. ].toolChoose[i].sentenceList
  18328. )
  18329. )
  18330. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18331. for (var q = 0; q < this.sentenceList.length; q++) {
  18332. this.sentenceList[q].chooseSenList = [];
  18333. this.sentenceList[q].addChangeSen = [];
  18334. this.sentenceList[q].addChangeSen = JSON.parse(
  18335. JSON.stringify(this.sentenceList[q].addSentence)
  18336. );
  18337. this.sentenceList[q].chooseSenList.length =
  18338. this.sentenceList[q].rightAnswer.length;
  18339. }
  18340. this.dialogVisibleSentence = true;
  18341. } else if (t == 48) {
  18342. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18343. .taskJson[index].toolChoose[i].tableJson
  18344. ? JSON.parse(
  18345. JSON.stringify(
  18346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18347. index
  18348. ].toolChoose[i].tableJson
  18349. )
  18350. )
  18351. : { text: "" };
  18352. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18353. if (this.worksStudent[i].length) {
  18354. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18355. if (this.userid == this.worksStudent[i][k].userid) {
  18356. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18357. break;
  18358. }
  18359. }
  18360. }
  18361. this.dialogVisibleTable = true;
  18362. } else if (t == 52) {
  18363. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18364. .taskJson[index].toolChoose[i].wordJson
  18365. ? JSON.parse(
  18366. JSON.stringify(
  18367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18368. index
  18369. ].toolChoose[i].wordJson
  18370. )
  18371. )
  18372. : { text: "" };
  18373. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18374. if (this.worksStudent[i].length) {
  18375. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18376. if (this.userid == this.worksStudent[i][k].userid) {
  18377. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18378. break;
  18379. }
  18380. }
  18381. }
  18382. this.dialogVisibleWord = true;
  18383. } else if (t == 49) {
  18384. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18385. return
  18386. }
  18387. this.groupJson =
  18388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18389. index
  18390. ].toolChoose[i].groupJson;
  18391. this.islock = this.groupJson.islock == 1 ? true : false;
  18392. this.dialogVisibleGroup = true;
  18393. } else if (t == 62) {
  18394. this.videoType = 0;
  18395. this.videoJson = {};
  18396. this.videoJson =
  18397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18398. index
  18399. ].toolChoose[i].videoJson;
  18400. this.dialogVisibleVideo = true;
  18401. }
  18402. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18403. },
  18404. teacherWorkSubmit(t, i, index, s) {
  18405. this.sStudent = s;
  18406. this.toolindex = i;
  18407. this.sTool = t;
  18408. if (this.tType !== "1" && this.tType !== "4") {
  18409. return;
  18410. }
  18411. if (t == 16 || t == 32 || t == 50) {
  18412. this.dialogVisibleWorks = true;
  18413. } else if (t == 15) {
  18414. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18415. .taskJson[index].toolChoose[i].answerQ
  18416. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18417. .toolChoose[i].answerQ
  18418. : "";
  18419. this.questionAnswer = "";
  18420. this.answerDialogVisibleTeacher = true; //问答
  18421. } else if (t == 52) {
  18422. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18423. .taskJson[index].toolChoose[i].wordJson
  18424. ? JSON.parse(
  18425. JSON.stringify(
  18426. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18427. index
  18428. ].toolChoose[i].wordJson
  18429. )
  18430. )
  18431. : { text: "" };
  18432. if (this.worksStudent[i].length) {
  18433. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18434. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18435. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18436. break;
  18437. }
  18438. }
  18439. }
  18440. this.dialogVisibleWordTeacher = true; //文档
  18441. } else if (t == 4) {
  18442. this.radio = [];
  18443. this.noteName = "";
  18444. this.isAnswer = false;
  18445. if (this.askCount > 0) {
  18446. this.updateCount(this.askCount, t);
  18447. } else {
  18448. this.askCount++;
  18449. a = this.askCount;
  18450. this.toolsCount(a, t);
  18451. }
  18452. if (!this.dialogVisible2) {
  18453. this.askJson.askJson =
  18454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18455. index
  18456. ].toolChoose[i].askJson;
  18457. this.askJson.askTitle =
  18458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18459. index
  18460. ].toolChoose[i].askTitle;
  18461. this.askJson.askCount =
  18462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18463. index
  18464. ].toolChoose[i].askCount;
  18465. } else {
  18466. this.askJson.askJson = this.chapTools.askJson.askJson;
  18467. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18468. this.askJson.askCount = this.chapTools.askJson.askCount;
  18469. }
  18470. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18471. if (this.askJson.askJson[k].type == "2") {
  18472. this.radio.push([]);
  18473. } else {
  18474. this.radio.push("");
  18475. }
  18476. }
  18477. this.dialogVisible5Teacher = true;
  18478. } else if (t == 45) {
  18479. this.noteName = "";
  18480. this.radio = [];
  18481. this.isAnswer = false;
  18482. if (this.askCount > 0) {
  18483. this.updateCount(this.askCount, t);
  18484. } else {
  18485. this.askCount++;
  18486. a = this.askCount;
  18487. this.toolsCount(a, t);
  18488. }
  18489. this.testJson =
  18490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18491. index
  18492. ].toolChoose[i].testJson;
  18493. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18494. if (this.testJson.testJson[k].type == "2") {
  18495. this.radio.push([]);
  18496. } else {
  18497. this.radio.push("");
  18498. }
  18499. }
  18500. this.dialogVisibleChoiceTeacher = true;
  18501. } else if (t == 41) {
  18502. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18503. .taskJson[index].toolChoose[i].selectJson
  18504. ? JSON.parse(
  18505. JSON.stringify(
  18506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18507. index
  18508. ].toolChoose[i].selectJson
  18509. )
  18510. )
  18511. : { url: "", select: [], answer: [] };
  18512. if (this.worksStudent[i].length) {
  18513. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18514. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18515. var a = this.worksStudent[i][k].works.split(",");
  18516. for (var ki = 0; ki < a.length; ki++) {
  18517. a[ki] = parseInt(a[ki]);
  18518. }
  18519. this.selectAnswer = {
  18520. answer: a,
  18521. stu: this.worksStudent[i][k].sName,
  18522. };
  18523. break;
  18524. } else {
  18525. this.selectAnswer = { answer: [], stu: "" };
  18526. }
  18527. }
  18528. } else {
  18529. this.selectAnswer = { answer: [], stu: "" };
  18530. }
  18531. this.isSelect = false;
  18532. this.dialogVisibleSelectTeacher = true;
  18533. } else if (t == 47) {
  18534. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18535. .taskJson[index].toolChoose[i].sentenceList
  18536. ? JSON.parse(
  18537. JSON.stringify(
  18538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18539. index
  18540. ].toolChoose[i].sentenceList
  18541. )
  18542. )
  18543. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18544. for (var q = 0; q < this.sentenceList.length; q++) {
  18545. this.sentenceList[q].chooseSenList = [];
  18546. this.sentenceList[q].addChangeSen = [];
  18547. this.sentenceList[q].addChangeSen = JSON.parse(
  18548. JSON.stringify(this.sentenceList[q].addSentence)
  18549. );
  18550. this.sentenceList[q].chooseSenList.length =
  18551. this.sentenceList[q].rightAnswer.length;
  18552. }
  18553. this.dialogVisibleSentenceTeacher = true;
  18554. } else if (t == 48) {
  18555. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18556. .taskJson[index].toolChoose[i].tableJson
  18557. ? JSON.parse(
  18558. JSON.stringify(
  18559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18560. index
  18561. ].toolChoose[i].tableJson
  18562. )
  18563. )
  18564. : { text: "" };
  18565. if (this.worksStudent[i].length) {
  18566. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18567. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18568. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18569. break;
  18570. }
  18571. }
  18572. }
  18573. this.dialogVisibleTableTeacher = true;
  18574. } else if (t == 40) {
  18575. if (this.evalCount > 0) {
  18576. this.updateCount(this.evalCount, t);
  18577. } else {
  18578. this.evalCount++;
  18579. a = this.evalCount;
  18580. this.toolsCount(a, t);
  18581. }
  18582. this.eScore = { eBzText: "", eStar: [] };
  18583. if (this.worksStudent[i].length) {
  18584. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18585. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18586. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18587. this.rateJson =
  18588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18589. index
  18590. ].toolChoose[i].rateJson;
  18591. break;
  18592. } else {
  18593. this.rateJson =
  18594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18595. index
  18596. ].toolChoose[i].rateJson;
  18597. }
  18598. }
  18599. } else {
  18600. this.rateJson =
  18601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18602. index
  18603. ].toolChoose[i].rateJson;
  18604. }
  18605. this.isStar = false;
  18606. this.studentEvalDialogVisibleTeacher = true;
  18607. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18608. window.parent.postMessage(
  18609. {
  18610. tools: t + "teacher",
  18611. cid: this.id,
  18612. stage: this.courseType,
  18613. task: this.taskCount,
  18614. tool: i,
  18615. student: this.sStudent,
  18616. },
  18617. "*"
  18618. );
  18619. }
  18620. },
  18621. openCocoPi(tool, i, uid, uname) {
  18622. let student = {
  18623. userid: uid,
  18624. student: uname,
  18625. };
  18626. if (tool == 57) {
  18627. window.parent.postMessage(
  18628. {
  18629. tools: tool + "teacher",
  18630. cid: this.id,
  18631. stage: this.courseType,
  18632. task: this.taskCount,
  18633. tool: i,
  18634. student: student,
  18635. },
  18636. "*"
  18637. );
  18638. }
  18639. },
  18640. setRightAnswer(s, i, j) {
  18641. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18642. if (
  18643. this.sentenceList[i].chooseSenList[q] == undefined ||
  18644. this.sentenceList[i].chooseSenList[q] == ""
  18645. ) {
  18646. this.sentenceList[i].chooseSenList[q] = s;
  18647. this.sentenceList[i].addChangeSen[j] = "";
  18648. break;
  18649. }
  18650. }
  18651. this.$forceUpdate();
  18652. },
  18653. returnCard(r, i, j) {
  18654. var a = this.sentenceList[i].addSentence.indexOf(r);
  18655. this.sentenceList[i].chooseSenList[j] = "";
  18656. this.sentenceList[i].addChangeSen[a] = r;
  18657. this.$forceUpdate();
  18658. },
  18659. // addSentenceTool() {
  18660. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18661. // this.taskCount
  18662. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18663. // this.sentenceList = [
  18664. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18665. // ];
  18666. // this.dialogVisibleSentence = false;
  18667. // },
  18668. toolsCount(a, t) {
  18669. let params = {
  18670. cid: this.id,
  18671. chid: this.courseType,
  18672. uid: this.userid,
  18673. tid: t,
  18674. count: a,
  18675. };
  18676. this.ajax
  18677. .get(this.$store.state.api + "insertToolsCount", params)
  18678. .then((res) => {
  18679. this.selectCount();
  18680. })
  18681. .catch((err) => {
  18682. console.error(err);
  18683. });
  18684. },
  18685. updateCount(c, t) {
  18686. c++;
  18687. let params = {
  18688. cid: this.id,
  18689. chid: this.courseType,
  18690. uid: this.userid,
  18691. tid: t,
  18692. count: c,
  18693. };
  18694. this.ajax
  18695. .get(this.$store.state.api + "updateToolsCount", params)
  18696. .then((res) => {
  18697. this.selectCount();
  18698. })
  18699. .catch((err) => {
  18700. console.error(err);
  18701. });
  18702. },
  18703. checkEva() {
  18704. if (this.evalua != "") {
  18705. for (var i = 0; i < this.evaJuri.length; i++) {
  18706. if (this.evalua == this.evaJuri[i].id) {
  18707. this.eTitle = this.evaJuri[i].title;
  18708. this.eJson = JSON.parse(this.evaJuri[i].content);
  18709. }
  18710. }
  18711. this.$forceUpdate();
  18712. setTimeout(() => {
  18713. this.setMindData();
  18714. }, 0);
  18715. }
  18716. },
  18717. selectEva() {
  18718. let params = {
  18719. oid: this.oid,
  18720. };
  18721. this.ajax
  18722. .get(this.$store.state.api + "selectAllEvaluation", params)
  18723. .then((res) => {
  18724. this.evaJuri = res.data[0];
  18725. })
  18726. .catch((err) => {
  18727. console.error(err);
  18728. });
  18729. },
  18730. setMindData() {
  18731. this.data.data = [];
  18732. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18733. let _eJson = Object.keys(this.eJson);
  18734. let _e = this.eJson;
  18735. for (let i = 0; i < _eJson.length; i++) {
  18736. let element = _e[_eJson[i]];
  18737. this.data.data.push({
  18738. id: element.id,
  18739. parentid: "root",
  18740. topic: element.name,
  18741. });
  18742. let _eJsonc = Object.keys(element.child);
  18743. let _e2 = element.child;
  18744. for (let j = 0; j < _eJsonc.length; j++) {
  18745. let _ec = _e2[_eJsonc[j]];
  18746. this.data.data.push({
  18747. id: _ec.id,
  18748. parentid: element.id,
  18749. topic: _ec.name,
  18750. });
  18751. let _eJsonz = Object.keys(_ec.child);
  18752. let _e3 = _ec.child;
  18753. for (let z = 0; z < _eJsonz.length; z++) {
  18754. let _ez = _e3[_eJsonz[z]];
  18755. this.data.data.push({
  18756. id: _ez.id,
  18757. parentid: _ec.id,
  18758. topic: _ez.name,
  18759. });
  18760. }
  18761. }
  18762. }
  18763. this.$forceUpdate();
  18764. },
  18765. checkFileFull(type, url) {
  18766. this.fullDialogVisible = true;
  18767. this.fulltype = type;
  18768. this.fullUrl = url;
  18769. },
  18770. async checkFileFull1(t, f) {
  18771. this.fullDialogVisible = true;
  18772. if (t == 6) {
  18773. this.fulltype = 1;
  18774. this.fullUrl = JSON.parse(JSON.stringify(f));
  18775. } else if (t == 8) {
  18776. this.fulltype = 2;
  18777. this.fullUrl = f.url;
  18778. } else if (
  18779. t == 3 &&
  18780. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18781. "PDF"
  18782. ) {
  18783. this.fulltype = 3;
  18784. this.fullUrl = f.url;
  18785. } else if (t == 3) {
  18786. this.fulltype = 2;
  18787. let _uuurl = await this.checkLink(f.url);
  18788. this.fullUrl =
  18789. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18790. }
  18791. },
  18792. openSname(n, id, i, uid) {
  18793. this.snameWid = id;
  18794. this.worksSName = n;
  18795. this.worksSid = uid == n ? "" : uid;
  18796. this.toolindex = i;
  18797. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18798. if (!this.uploadCid) {
  18799. this.$message.error(
  18800. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18801. );
  18802. return;
  18803. }
  18804. this.selectUploadStudent(1);
  18805. },
  18806. updateName() {
  18807. let params = {
  18808. n: this.worksSName,
  18809. cid: this.snameWid,
  18810. };
  18811. this.ajax
  18812. .get(this.$store.state.api + "updateCourseWorksName", params)
  18813. .then((res) => {
  18814. this.$message({
  18815. message: "修改成功",
  18816. type: "success",
  18817. });
  18818. this.dialogVisibleSname = false;
  18819. this.getCourseDetail(2);
  18820. this.snameWid = "";
  18821. this.worksSName = "";
  18822. })
  18823. .catch((err) => {
  18824. console.error(err);
  18825. });
  18826. },
  18827. downloadFile2(f) {
  18828. // const loading = this.$loading.service({
  18829. // background: "rgba(255, 255, 255, 0.7)",
  18830. // target: document.body,
  18831. // text: "文件加载中...",
  18832. // });
  18833. // let url2 = f.url;
  18834. // let _url2 = "";
  18835. // if (
  18836. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18837. // ) {
  18838. // _url2 = url2.split(
  18839. // "https://view.officeapps.live.com/op/view.aspx?src="
  18840. // )[1];
  18841. // } else {
  18842. // _url2 = url2;
  18843. // }
  18844. // let params = {
  18845. // url: _url2,
  18846. // name: f.name,
  18847. // };
  18848. // this.ajax
  18849. // .get(this.$store.state.api + "download", params)
  18850. // .then((res) => {
  18851. // loading.close();
  18852. // let content = res.data.data.data;
  18853. // let ab = new ArrayBuffer(content.length);
  18854. // let view = new Uint8Array(ab);
  18855. // for (var i = 0; i < content.length; ++i) {
  18856. // view[i] = content[i];
  18857. // }
  18858. // let elink = document.createElement("a");
  18859. // elink.download = f.name;
  18860. // elink.style.display = "none";
  18861. // let blob = new Blob([ab], {
  18862. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18863. // });
  18864. // elink.href = URL.createObjectURL(blob);
  18865. // document.body.appendChild(elink);
  18866. // elink.click();
  18867. // document.body.removeChild(elink);
  18868. // })
  18869. // .catch((err) => {
  18870. // loading.close();
  18871. // console.error(err);
  18872. // });
  18873. var credentials = {
  18874. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18875. secretAccessKey: "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",
  18876. }; //秘钥形式的登录上传
  18877. window.AWS.config.update(credentials);
  18878. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18879. let url2 = f.url;
  18880. let _url2 = "";
  18881. if (
  18882. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18883. ) {
  18884. _url2 = url2.split(
  18885. "https://view.officeapps.live.com/op/view.aspx?src="
  18886. )[1];
  18887. } else {
  18888. _url2 = url2;
  18889. }
  18890. let _this = this;
  18891. _this.downLoading = true
  18892. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18893. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18894. var params = {
  18895. Bucket: "ccrb",
  18896. Key: name
  18897. };
  18898. s3.getObject(params, function (err, data) {
  18899. _this.downLoading = false
  18900. if (err) console.log(err, err.stack); // an error occurred
  18901. else {
  18902. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18903. let a = document.createElement("a");
  18904. a.name = f.name;
  18905. a.href = url;
  18906. a.download = f.name;
  18907. a.click();
  18908. console.log(data);
  18909. } // sxuccessful response
  18910. });
  18911. return;
  18912. let url = f.url;
  18913. let _url = "";
  18914. if (
  18915. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18916. ) {
  18917. _url = url.split(
  18918. "https://view.officeapps.live.com/op/view.aspx?src="
  18919. )[1];
  18920. } else {
  18921. _url = url;
  18922. }
  18923. _this.downLoading = true
  18924. let x = new XMLHttpRequest();
  18925. x.open("GET", _url, true);
  18926. x.responseType = "blob";
  18927. x.onload = function () {
  18928. _this.downLoading = false
  18929. let url = window.URL.createObjectURL(new Blob([x.response]));
  18930. let a = document.createElement("a");
  18931. a.name = f.name;
  18932. a.href = url;
  18933. a.download = f.name;
  18934. a.click();
  18935. };
  18936. x.send();
  18937. },
  18938. downloadFile(url) {
  18939. // this.$message.info("查看作业-下载文件")
  18940. var credentials = {
  18941. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18942. secretAccessKey: "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",
  18943. }; //秘钥形式的登录上传
  18944. window.AWS.config.update(credentials);
  18945. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18946. let url2 = url;
  18947. let _url2 = "";
  18948. if (
  18949. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18950. ) {
  18951. _url2 = url2.split(
  18952. "https://view.officeapps.live.com/op/view.aspx?src="
  18953. )[1];
  18954. } else {
  18955. _url2 = url2;
  18956. }
  18957. const loading2 = this.$loading.service({
  18958. background: "rgba(255, 255, 255, 0.7)",
  18959. target: document.body,
  18960. text: "文件加载中...",
  18961. });
  18962. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18963. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18964. var params = {
  18965. Bucket: "ccrb",
  18966. Key: name
  18967. };
  18968. s3.getObject(params, function (err, data) {
  18969. loading2.close();
  18970. if (err) console.log(err, err.stack); // an error occurred
  18971. else {
  18972. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18973. let a = document.createElement("a");
  18974. a.name = name;
  18975. a.href = url;
  18976. a.download = name;
  18977. a.click();
  18978. console.log(data);
  18979. } // sxuccessful response
  18980. });
  18981. return;
  18982. let _this = this;
  18983. let _url = "";
  18984. if (
  18985. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18986. ) {
  18987. _url = url.split(
  18988. "https://view.officeapps.live.com/op/view.aspx?src="
  18989. )[1];
  18990. } else {
  18991. _url = url;
  18992. }
  18993. const x = new XMLHttpRequest();
  18994. x.open("GET", _url, true);
  18995. x.responseType = "blob";
  18996. // this.downLoading = true
  18997. const loading = _this.$loading.service({
  18998. background: "rgba(255, 255, 255, 0.7)",
  18999. target: document.body,
  19000. text: "文件加载中...",
  19001. });
  19002. // _this.$message.success("文件下载中...");
  19003. x.onload = function (e) {
  19004. loading.close();
  19005. let content = x.response;
  19006. let elink = document.createElement("a");
  19007. elink.download = decodeURI(
  19008. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19009. );
  19010. elink.style.display = "none";
  19011. let blob = new Blob([content]);
  19012. elink.href = URL.createObjectURL(blob);
  19013. document.body.appendChild(elink);
  19014. elink.click();
  19015. document.body.removeChild(elink);
  19016. };
  19017. x.send();
  19018. },
  19019. openLine(url) {
  19020. window.open(url);
  19021. },
  19022. resize() {
  19023. if (document.getElementsByClassName("box_course").length) {
  19024. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19025. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19026. if (this.showType == 2 || this.showType == 3) {
  19027. document.getElementsByClassName("navBox")[0].style.height =
  19028. a - 40 + 0+ "px";
  19029. } else {
  19030. document.getElementsByClassName("navBox")[0].style.height =
  19031. a - 40 + "px";
  19032. }
  19033. }
  19034. this.Stbodywidth =
  19035. document.getElementsByClassName("student_body").length &&
  19036. document.getElementsByClassName("student_body")[0].offsetWidth;
  19037. },
  19038. closeDraw() {
  19039. this.bg = null;
  19040. this.drawShow = false;
  19041. },
  19042. showPicturePaint(url) {
  19043. let params = {
  19044. img: url,
  19045. };
  19046. this.ajax
  19047. .get(this.$store.state.api + "imgToBase64", params)
  19048. .then((res) => {
  19049. this.drawShow = true;
  19050. this.bg = res.data[0].img;
  19051. })
  19052. .catch((err) => {
  19053. console.error(err);
  19054. });
  19055. },
  19056. addImgDraw(base64) {
  19057. let file = { name: "批注图.png" };
  19058. let img = this.dataUrlToFile(base64, file);
  19059. this.beforeUpload1(img, 5);
  19060. },
  19061. addImgDrawImG(url) {
  19062. // console.log(url);
  19063. let params = [
  19064. {
  19065. wid: this.commentDetail.wid,
  19066. img: url,
  19067. },
  19068. ];
  19069. this.ajax
  19070. .post(this.$store.state.api + "updateCourseWorks", params)
  19071. .then((res) => {
  19072. this.$message({
  19073. message: "提交成功",
  19074. type: "success",
  19075. });
  19076. this.drawShow = false;
  19077. this.bg = "";
  19078. this.selectSWorks();
  19079. this.selectStudent();
  19080. })
  19081. .catch((err) => {
  19082. this.$message.error("提交失败");
  19083. console.error(err);
  19084. });
  19085. },
  19086. deletePicturePaint() {
  19087. this.$confirm("确定删除此批注吗?", "提示", {
  19088. confirmButtonText: "确定",
  19089. cancelButtonText: "取消",
  19090. type: "warning",
  19091. })
  19092. .then(() => {
  19093. let params = [
  19094. {
  19095. wid: this.commentDetail.wid,
  19096. img: "",
  19097. },
  19098. ];
  19099. this.ajax
  19100. .post(this.$store.state.api + "updateCourseWorks", params)
  19101. .then((res) => {
  19102. this.$message({
  19103. message: "删除成功",
  19104. type: "success",
  19105. });
  19106. this.selectSWorks();
  19107. this.selectStudent();
  19108. })
  19109. .catch((err) => {
  19110. this.$message.error("删除失败");
  19111. console.error(err);
  19112. });
  19113. })
  19114. .catch(() => {});
  19115. },
  19116. getAudioVideo(constraintsData) {
  19117. if (navigator.mediaDevices === undefined) {
  19118. navigator.mediaDevices = {};
  19119. }
  19120. if (navigator.mediaDevices.getUserMedia === undefined) {
  19121. navigator.mediaDevices.getUserMedia = function (constraints) {
  19122. // 首先,如果有getUserMedia的话,就获得它
  19123. var getUserMedia =
  19124. navigator.getUserMedia ||
  19125. navigator.webkitGetUserMedia ||
  19126. navigator.mozGetUserMedia ||
  19127. navigator.msGetUserMedia;
  19128. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19129. if (!getUserMedia) {
  19130. return Promise.reject({ code: 404 });
  19131. }
  19132. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19133. return new Promise(function (resolve, reject) {
  19134. getUserMedia.call(navigator, constraints, resolve, reject);
  19135. });
  19136. };
  19137. }
  19138. return navigator.mediaDevices.getUserMedia(constraintsData);
  19139. },
  19140. /**
  19141. * 开始录制
  19142. */
  19143. startRecording(callback) {
  19144. let _function = (screenStream) => {
  19145. this.addStreamStopListener(screenStream, () => {
  19146. console.log("流停止监听");
  19147. this.stopRecording();
  19148. this.$emit("streamStop", {});
  19149. // this.stopRecording();
  19150. });
  19151. var options = {
  19152. type: "video",
  19153. mimeType: "video/webm",
  19154. disableLogs: false,
  19155. getNativeBlob: false, // enable it for longer recordings
  19156. ignoreMutedMedia: false,
  19157. };
  19158. // this.video.srcObject = screenStream;
  19159. this.recorder = RecordRTC(screenStream, options);
  19160. this.recorder.startRecording();
  19161. this.recorder.screen = screenStream;
  19162. this.videoStart = true;
  19163. // callback(true);
  19164. };
  19165. this.getAudioVideo({ audio: true })
  19166. .then((res) => {
  19167. this.captureScreen(_function, true);
  19168. console.log("已点击允许,开启成功");
  19169. })
  19170. .catch((err) => {
  19171. // console.log('浏览器不支持,请更换浏览器')
  19172. // } else {
  19173. this.captureScreen(_function, false);
  19174. console.log("请检查是否存在麦克风");
  19175. });
  19176. },
  19177. /**
  19178. * 停止录制
  19179. */
  19180. stopRecording(callback) {
  19181. this.recorder.stopRecording(() => {
  19182. // this.video.src = this.video.srcObject = null;
  19183. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19184. const url = URL.createObjectURL(this.recorder.getBlob());
  19185. const a = document.createElement("a"); //this.fileName+
  19186. let videoFile = new File(
  19187. [this.recorder.getBlob()],
  19188. this.courseDetail.title + "录屏.mp4",
  19189. {
  19190. type: "video/mp4",
  19191. }
  19192. );
  19193. let downloadUrl = URL.createObjectURL(videoFile);
  19194. document.body.appendChild(a);
  19195. a.style.display = "none";
  19196. a.href = url;
  19197. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19198. a.click();
  19199. this.recorder.screen.stop();
  19200. this.recorder.destroy();
  19201. this.recorder = null;
  19202. this.videoStart = false;
  19203. // callback(false);
  19204. });
  19205. },
  19206. //初始化
  19207. captureScreen(callback, type) {
  19208. if (navigator.getDisplayMedia) {
  19209. //录制结束,文件下载
  19210. navigator
  19211. .getDisplayMedia({
  19212. video: true,
  19213. })
  19214. .then((screenStream) => {
  19215. if (type) {
  19216. navigator.mediaDevices
  19217. .getUserMedia({ audio: true })
  19218. .then((mic) => {
  19219. screenStream.addTrack(mic.getTracks()[0]);
  19220. callback(screenStream);
  19221. });
  19222. } else {
  19223. callback(screenStream);
  19224. }
  19225. })
  19226. .catch(function (error) {
  19227. console.log("error", error);
  19228. });
  19229. } else if (navigator.mediaDevices.getDisplayMedia) {
  19230. navigator.mediaDevices
  19231. .getDisplayMedia({
  19232. video: true,
  19233. })
  19234. .then((screenStream) => {
  19235. if (type) {
  19236. navigator.mediaDevices
  19237. .getUserMedia({ audio: true })
  19238. .then((mic) => {
  19239. screenStream.addTrack(mic.getTracks()[0]);
  19240. callback(screenStream);
  19241. });
  19242. } else {
  19243. callback(screenStream);
  19244. }
  19245. })
  19246. .catch(function (error) {
  19247. console.log("error", error);
  19248. });
  19249. } else {
  19250. var error = "getDisplayMedia API are not supported in this browser.";
  19251. console.log("error", error);
  19252. alert(error);
  19253. }
  19254. },
  19255. //流监听
  19256. addStreamStopListener(stream, callback) {
  19257. stream.addEventListener(
  19258. "ended",
  19259. function () {
  19260. callback();
  19261. callback = function () {};
  19262. },
  19263. false
  19264. );
  19265. stream.addEventListener(
  19266. "inactive",
  19267. function () {
  19268. callback();
  19269. callback = function () {};
  19270. },
  19271. false
  19272. );
  19273. stream.getTracks().forEach(function (track) {
  19274. track.addEventListener(
  19275. "ended",
  19276. function () {
  19277. callback();
  19278. callback = function () {};
  19279. },
  19280. false
  19281. );
  19282. track.addEventListener(
  19283. "inactive",
  19284. function () {
  19285. callback();
  19286. callback = function () {};
  19287. },
  19288. false
  19289. );
  19290. });
  19291. },
  19292. updateGroup() {
  19293. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19294. this.dialogVisibleGroup2 = true;
  19295. },
  19296. numberPan() {
  19297. if (
  19298. /[^\d]/.test(this.groupJson.number) ||
  19299. this.groupJson.number < 2 ||
  19300. this.groupJson.number > 10
  19301. ) {
  19302. this.$message.error("请输入2-10的数字");
  19303. this.groupJson.number = "";
  19304. }
  19305. },
  19306. updateGroupJson() {
  19307. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19308. if (
  19309. this.groupStudentUid[this.toolindex][i].length >
  19310. this.groupJson2.number
  19311. ) {
  19312. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19313. return;
  19314. }
  19315. }
  19316. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19317. this.islock = this.groupJson.islock == 1 ? true : false;
  19318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19319. this.taskCount
  19320. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19321. let params = [
  19322. {
  19323. cid: this.id,
  19324. chapters: JSON.stringify(this.chapInfoList),
  19325. uid: this.userid,
  19326. unitIndex: this.courseType,
  19327. },
  19328. ];
  19329. this.ajax
  19330. .post(this.$store.state.api + "updateWorkNew4", params)
  19331. .then((res) => {
  19332. this.$message.success("设置成功");
  19333. this.getCourseDetail(2);
  19334. this.dialogVisibleGroup2 = false;
  19335. this.groupJson2 = {};
  19336. this.$forceUpdate();
  19337. })
  19338. .catch((err) => {
  19339. this.$message.error("网络不佳");
  19340. console.error(err);
  19341. });
  19342. },
  19343. lockChair() {
  19344. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19345. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19346. this.updateGroupJson();
  19347. },
  19348. selectGroup(index) {
  19349. this.getCourseDetail(2, index);
  19350. },
  19351. joinGroup(index) {
  19352. if (this.groupJson.islock == 2) {
  19353. this.$message.error("位置已被锁定,无法加入");
  19354. return;
  19355. }
  19356. if (
  19357. this.groupStudent[this.toolindex][index].length >
  19358. this.groupJson.number ||
  19359. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19360. ) {
  19361. this.$message.error("位置已满,无法加入");
  19362. return;
  19363. }
  19364. let params = [
  19365. {
  19366. cid: this.id,
  19367. stage: this.courseType,
  19368. task: this.taskCount,
  19369. tool: this.toolindex,
  19370. g: index,
  19371. uid: this.userid,
  19372. },
  19373. ];
  19374. this.ajax
  19375. .post(this.$store.state.api + "joinGroup", params)
  19376. .then((res) => {
  19377. this.$message.success("加入成功");
  19378. this.getCourseDetail(2);
  19379. })
  19380. .catch((err) => {
  19381. this.$message.error("网络不佳");
  19382. console.error(err);
  19383. });
  19384. },
  19385. exitGroup(id) {
  19386. if (this.groupJson.islock == 2) {
  19387. this.$message.error("位置已被锁定,无法退出");
  19388. return;
  19389. }
  19390. let params = [
  19391. {
  19392. gid: id,
  19393. },
  19394. ];
  19395. this.ajax
  19396. .post(this.$store.state.api + "exitGroup", params)
  19397. .then((res) => {
  19398. this.$message.success("退出成功");
  19399. this.getCourseDetail(2);
  19400. })
  19401. .catch((err) => {
  19402. this.$message.error("网络不佳");
  19403. console.error(err);
  19404. });
  19405. },
  19406. groupUpload(index, task, gindex) {
  19407. this.taskCount = task;
  19408. this.toolindex = index;
  19409. this.groupIndex = gindex;
  19410. this.dialogVisibleGroupWork = true;
  19411. },
  19412. updateGroupChair(user) {
  19413. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19414. el.label = index;
  19415. return index != user.group;
  19416. });
  19417. this.updateGroupUser = user;
  19418. this.dialogVisibleUpdateGroup = true;
  19419. },
  19420. updateChair() {
  19421. if (
  19422. this.groupStudent[this.toolindex][this.checkChair].length >
  19423. this.groupJson.number ||
  19424. this.groupStudent[this.toolindex][this.checkChair].length ==
  19425. this.groupJson.number
  19426. ) {
  19427. this.$message.error("位置已满,无法加入");
  19428. return;
  19429. }
  19430. let params = [
  19431. {
  19432. cid: this.id,
  19433. stage: this.courseType,
  19434. task: this.taskCount,
  19435. tool: this.toolindex,
  19436. g: this.checkChair,
  19437. uid: this.updateGroupUser.userid,
  19438. },
  19439. ];
  19440. this.ajax
  19441. .post(this.$store.state.api + "joinGroup", params)
  19442. .then((res) => {
  19443. this.$message.success("修改成功");
  19444. this.updateGroupUser = {};
  19445. this.checkChair = "";
  19446. this.updateGroupArray = {};
  19447. this.dialogVisibleUpdateGroup = false;
  19448. this.getCourseDetail(2);
  19449. })
  19450. .catch((err) => {
  19451. this.$message.error("网络不佳");
  19452. console.error(err);
  19453. });
  19454. },
  19455. deleteGroupChair(gindex) {
  19456. this.checkDeleteGroup = [];
  19457. this.deleteGroupUser = JSON.parse(
  19458. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19459. );
  19460. this.deleteGroupArray = this.groupJson.group[gindex];
  19461. this.groupIndex = gindex;
  19462. this.dialogVisibleDeleteGroup = true;
  19463. },
  19464. async deleteChair() {
  19465. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19466. const gid =
  19467. this.groupStudent[this.toolindex][this.groupIndex][
  19468. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19469. this.checkDeleteGroup[i]
  19470. )
  19471. ];
  19472. let params = [
  19473. {
  19474. gid: gid.id,
  19475. },
  19476. ];
  19477. var a = await this.deleteChairA(params);
  19478. if (i == this.checkDeleteGroup.length - 1) {
  19479. this.$message.success("退出成功");
  19480. this.dialogVisibleDeleteGroup = false;
  19481. this.deleteGroupUser = [];
  19482. this.deleteGroupArray = {};
  19483. this.groupIndex = "";
  19484. this.checkDeleteGroup = [];
  19485. this.getCourseDetail(2);
  19486. }
  19487. }
  19488. },
  19489. deleteChairA(params) {
  19490. return new Promise((resolve, reject) => {
  19491. this.ajax
  19492. .post(this.$store.state.api + "exitGroup", params)
  19493. .then((res) => {
  19494. resolve(1);
  19495. })
  19496. .catch((err) => {
  19497. this.$message.error("网络不佳");
  19498. console.error(err);
  19499. });
  19500. });
  19501. },
  19502. contract(i) {
  19503. if (this.isCloseList[i].isClose == 0) {
  19504. this.isCloseList[i].isClose = 1;
  19505. } else {
  19506. this.isCloseList[i].isClose = 0;
  19507. }
  19508. this.$forceUpdate();
  19509. },
  19510. openWordCloud(toolindex) {
  19511. let array = [];
  19512. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19513. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19514. array.push({ name: works });
  19515. }
  19516. if (this.isGroup) {
  19517. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19518. let works = this.courseGroup.group[i].works[toolindex];
  19519. for (var j = 0; j < works.length; j++) {
  19520. let answer = JSON.parse(works[j].works)[0].answer;
  19521. array.push({ name: answer });
  19522. }
  19523. }
  19524. }
  19525. this.wordCloudData = array;
  19526. this.dialogVisibleWordCloud = true;
  19527. },
  19528. uploadWorks(i) {
  19529. this.$confirm("确定导出作业吗?", "提示", {
  19530. confirmButtonText: "确定",
  19531. cancelButtonText: "取消",
  19532. type: "warning",
  19533. })
  19534. .then(() => {
  19535. const loading = this.$loading.service({
  19536. background: "rgba(255, 255, 255, 0.7)",
  19537. target: document.body,
  19538. text: "文件加载中...",
  19539. });
  19540. const _worksStudent = this.worksStudent;
  19541. let url = [];
  19542. var counts = {};
  19543. for (var l = 0; l < _worksStudent[i].length; l++) {
  19544. var item = _worksStudent[i][l];
  19545. var name = item.sName;
  19546. if (!counts.hasOwnProperty(name)) {
  19547. counts[name] = 0;
  19548. } else {
  19549. counts[name]++;
  19550. }
  19551. if (counts[name] > 0) {
  19552. item.sName += " (" + counts[name] + ")";
  19553. }
  19554. }
  19555. for (var l = 0; l < _worksStudent[i].length; l++) {
  19556. var item = _worksStudent[i][l];
  19557. if (
  19558. item.works.indexOf(
  19559. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19560. ) !== -1 &&
  19561. item.works.indexOf("img") === -1
  19562. ) {
  19563. url.push({ name: item.sName, url: item.works });
  19564. }
  19565. }
  19566. // var toolList = [
  19567. // { name: "电子白板", tool: 1 },
  19568. // { name: "思维导图", tool: 3 },
  19569. // { name: "协同文档", tool: 6 },
  19570. // { name: "思维网格", tool: 7 },
  19571. // { name: "素材库", tool: 8 },
  19572. // { name: "学习资料", tool: 17 },
  19573. // { name: "便签", tool: 2 },
  19574. // { name: "问卷调查", tool: 4 },
  19575. // { name: "选择题", tool: 45 },
  19576. // { name: "倒计时", tool: 10 },
  19577. // { name: "问答", tool: 15 },
  19578. // { name: "课程设计", tool: 26 },
  19579. // { name: "训练服务器", tool: 18 },
  19580. // { name: "作业提交", tool: 16 },
  19581. // { name: "批量上传", tool: 50 },
  19582. // { name: "AIoT Blockly", tool: 21 },
  19583. // { name: "AI Python", tool: 23 },
  19584. // { name: "AI Blockly", tool: 24 },
  19585. // { name: "目标管理", tool: 25 },
  19586. // { name: "数学画板", tool: 31 },
  19587. // { name: "翻译", tool: 28 },
  19588. // { name: "魔盒识字", tool: 37 },
  19589. // { name: "数学画板", tool: 31 },
  19590. // { name: "24点", tool: 38 },
  19591. // { name: "GeoGebra", tool: 39 },
  19592. // { name: "源码编辑", tool: 32 },
  19593. // { name: "个人评价", tool: 40 },
  19594. // { name: "选择匹配", tool: 41 },
  19595. // { name: "汉字宫", tool: 44 },
  19596. // { name: "排序", tool: 47 },
  19597. // { name: "表格", tool: 48 },
  19598. // { name: "文档", tool: 52 },
  19599. // { name: "学生分组", tool: 49 },
  19600. // { name: "CocoPi", tool: 57 },
  19601. // { name: "模拟驾驶", tool: 58 },
  19602. // { name: "路径搜索", tool: 59 },
  19603. // { name: "深度学习", tool: 60 },
  19604. // { name: "全历史", tool: 61 },
  19605. // { name: "交互视频", tool: 62 },
  19606. // { name: "海龟编程", tool: 63 },
  19607. // { name: "挑人", tool: 65 },
  19608. // { name: "公式编辑", tool: 66 },
  19609. // { name: "分子结构", tool: 67 },
  19610. // { name: "时间轴", tool: 68 },
  19611. // ];
  19612. // var toolName = "";
  19613. // for(var w = 0;w<toolList.length;w++){
  19614. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19615. // toolName = toolList[w].name;
  19616. // }
  19617. // }
  19618. console.log(url);
  19619. this.downLoadAll(url, loading);
  19620. })
  19621. .catch(() => {});
  19622. },
  19623. downLoadAll(url, loading) {
  19624. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19625. const zip = new JSZip();
  19626. const cache = {};
  19627. const promises = [];
  19628. data.forEach((item) => {
  19629. const promise = getFile(item.url).then((data) => {
  19630. if (data.data != 1) {
  19631. // 下载文件, 并存成ArrayBuffer对象
  19632. const file_name =
  19633. item.name +
  19634. "." +
  19635. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19636. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19637. cache[file_name] = data.data;
  19638. }
  19639. });
  19640. promises.push(promise);
  19641. });
  19642. Promise.all(promises).then(() => {
  19643. zip.generateAsync({ type: "blob" }).then((content) => {
  19644. // 生成二进制流
  19645. FileSaver.saveAs(
  19646. content,
  19647. this.courseDetail.title + "-" + "作业提交工具.zip"
  19648. ); // 利用file-saver保存文件 自定义文件名
  19649. setTimeout(() => {
  19650. loading.close();
  19651. }, 2000);
  19652. });
  19653. });
  19654. },
  19655. pickStudent(stu) {
  19656. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19657. return;
  19658. }
  19659. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19660. confirmButtonText: "确定",
  19661. cancelButtonText: "取消",
  19662. type: "warning",
  19663. })
  19664. .then(() => {
  19665. let params = [
  19666. {
  19667. uid: stu.userid,
  19668. cid: this.id,
  19669. stage: this.courseType,
  19670. task: this.taskCount,
  19671. tool: this.toolindex,
  19672. },
  19673. ];
  19674. this.ajax
  19675. .post(this.$store.state.api + "updateCoursePick", params)
  19676. .then((res) => {
  19677. this.$message.success("操作成功");
  19678. this.getPick();
  19679. })
  19680. .catch((err) => {
  19681. this.$message.error("网络不佳");
  19682. console.error(err);
  19683. });
  19684. })
  19685. .catch(() => {});
  19686. },
  19687. selectUser(){
  19688. let params = {
  19689. userid: this.userid,
  19690. };
  19691. this.ajax
  19692. .get(this.$store.state.api + "selectUser", params)
  19693. .then((res) => {
  19694. this.userMes = res.data[0];
  19695. })
  19696. .catch((err) => {
  19697. console.error(err);
  19698. });
  19699. },
  19700. setEngText(i){
  19701. this.newEngIndex = i;
  19702. this.$forceUpdate();
  19703. },
  19704. addCorrect(){
  19705. this.$confirm("你确定提交批改嘛?", "提示", {
  19706. confirmButtonText: "确定",
  19707. showCancelButton: false,
  19708. closeOnClickModal: false,
  19709. type: "warning",
  19710. })
  19711. .then(() => {
  19712. let params = {
  19713. cid: this.id,
  19714. s: parseInt(this.courseType),
  19715. t: this.taskCount,
  19716. tool: this.toolindex,
  19717. wid: this.engWid,
  19718. c: this.userid,
  19719. 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) : "",
  19720. };
  19721. this.ajax
  19722. .get(this.$store.state.api + "addEngC", params)
  19723. .then((res) => {
  19724. this.$message.success("提交成功");
  19725. this.engUpdateDialogVisible = false;
  19726. })
  19727. .catch((err) => {
  19728. console.error(err);
  19729. });
  19730. })
  19731. .catch(() => {});
  19732. },
  19733. selectEngC(id,z){
  19734. let params = {
  19735. workid: id,
  19736. };
  19737. this.ajax
  19738. .get(this.$store.state.api + "selectEngC", params)
  19739. .then((res) => {
  19740. if(res.data[0].length == 0){
  19741. this.newEnglishList.engTitle = z.engTitle;
  19742. this.newEnglishList.engText = z.engText;
  19743. }else{
  19744. var a = res.data[0];
  19745. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19746. if(this.userMes[0].type == 2){
  19747. var snum = 0;
  19748. for(var i = 0;i<a.length;i++){
  19749. if(this.userMes[0].userid == a[i].correct){
  19750. this.newEnglishList = JSON.parse(a[i].cWork);
  19751. snum = 1;
  19752. }
  19753. }
  19754. if(snum == 0){
  19755. this.newEnglishList = { engTitle:"",engText:"" };
  19756. this.newEnglishList.engTitle = z.engTitle;
  19757. this.newEnglishList.engText = z.engText;
  19758. }
  19759. }else if(this.userMes[0].type == 1){
  19760. var num = 0;
  19761. for(var w= 0;w<a.length;w++){
  19762. if(this.userMes[0].userid == a[w].correct){
  19763. num = 1;
  19764. }
  19765. }
  19766. if(num == 0){
  19767. this.isNoUserid = true;
  19768. var c = JSON.parse(JSON.stringify(z));
  19769. this.oldEnglishJson1 = c;
  19770. }else{
  19771. this.isNoUserid = false;
  19772. }
  19773. var b = a.sort((item, index) => {
  19774. console.log(item)
  19775. if (item.correct === this.userMes[0].userid) {
  19776. return -1; // 将a移到前面
  19777. } else if (index.correct === this.userMes[0].userid) {
  19778. return 1; // 将b移到前面
  19779. } else {
  19780. return 0; // 保持默认顺序
  19781. }
  19782. });
  19783. for(var p = 0;p<b.length;p++){
  19784. for(var y = 0;y<ppp.length;y++){
  19785. if(b[p].id == ppp[y].id){
  19786. b[p].cWork = JSON.parse(ppp[y].cWork);
  19787. break
  19788. }
  19789. }
  19790. }
  19791. this.newEnglishList1 = b;
  19792. }
  19793. }
  19794. this.greyType = false;
  19795. setTimeout(() => {
  19796. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19797. if(this.newEnglishList1.length > 0){
  19798. if(this.isNoUserid == true){
  19799. this.engListLength = this.newEnglishList1.length + 1;
  19800. this.newEngIndex = -1;
  19801. }else{
  19802. this.engListLength = this.newEnglishList1.length;
  19803. this.newEngIndex = 0;
  19804. }
  19805. }
  19806. if(this.userMes[0].type == 2){
  19807. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19808. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19809. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19810. }else if(this.newEngIndex == -1){
  19811. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19812. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19813. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19814. }
  19815. }, 500);
  19816. this.engUpdateDialogVisible = true;
  19817. this.$forceUpdate();
  19818. })
  19819. .catch((err) => {
  19820. console.error(err);
  19821. });
  19822. },
  19823. getPick() {
  19824. let params = {
  19825. cid: this.id,
  19826. };
  19827. this.ajax
  19828. .get(this.$store.state.api + "getPick", params)
  19829. .then((res) => {
  19830. let array = [];
  19831. for (var i = 0; i < res.data[0].length; i++) {
  19832. array.push(res.data[0][i].userid);
  19833. }
  19834. this.isPickStudent = array;
  19835. if (array.indexOf(this.userid) !== -1) {
  19836. this.$confirm("你被老师选到啦!", "提示", {
  19837. confirmButtonText: "确定",
  19838. showCancelButton: false,
  19839. closeOnClickModal: false,
  19840. type: "warning",
  19841. })
  19842. .then(() => {
  19843. let pa = [
  19844. {
  19845. uid: this.userid,
  19846. cid: this.id,
  19847. },
  19848. ];
  19849. this.ajax
  19850. .post(this.$store.state.api + "deletePick", pa)
  19851. .then((res) => {
  19852. this.getPick();
  19853. })
  19854. .catch((err) => {
  19855. this.$message.error("网络不佳");
  19856. console.error(err);
  19857. });
  19858. })
  19859. .catch(() => {});
  19860. }
  19861. })
  19862. .catch((err) => {
  19863. this.$message.error("网络不佳");
  19864. console.error(err);
  19865. });
  19866. },
  19867. foldEva() {
  19868. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19869. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19870. } else {
  19871. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19872. setTimeout(() => {
  19873. this.checkEva();
  19874. setTimeout(() => {
  19875. this.checkEva();
  19876. }, 500);
  19877. }, 0);
  19878. }
  19879. this.$forceUpdate();
  19880. },
  19881. panToolHeight(tool) {
  19882. var _tool = document.querySelectorAll('#'+tool)[0]
  19883. var _toolA = _tool ? _tool.offsetHeight : 0
  19884. var _toolC = 0
  19885. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19886. let boolean2 = (_toolA > _toolC) ? true : false
  19887. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19888. this.$forceUpdate();
  19889. },
  19890. async checkLink(url) {
  19891. console.log(url)
  19892. let _url = url
  19893. try {
  19894. const response = await fetch(url);
  19895. if(!response.ok){
  19896. _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]))
  19897. }
  19898. console.log(response.ok)
  19899. } catch (error) {
  19900. console.error('Error checking link:', error);
  19901. // console.log(false)
  19902. _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]))
  19903. }
  19904. // console.log(_url)
  19905. return _url
  19906. },
  19907. getScoreList(){
  19908. let params = {
  19909. cid: this.id,
  19910. };
  19911. this.ajax
  19912. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19913. .then((res) => {
  19914. let result = res.data;
  19915. this.scoreList.datalist = result[0];
  19916. this.scoreList.isScoreList = result[1];
  19917. })
  19918. .catch((err) => {
  19919. console.error(err);
  19920. });
  19921. },
  19922. setClassRoomHelperWidth(width){
  19923. this.classRoomHelperWidth = width
  19924. }
  19925. },
  19926. directives: {
  19927. // 使用局部注册指令的方式
  19928. resize: {
  19929. // 指令的名称
  19930. bind(el, binding) {
  19931. // el为绑定的元素,binding为绑定给指令的对象
  19932. let width = "",
  19933. height = "";
  19934. function isReize() {
  19935. const style = document.defaultView.getComputedStyle(el);
  19936. if (width !== style.width || height !== style.height) {
  19937. binding.value(); // 关键
  19938. }
  19939. width = style.width;
  19940. height = style.height;
  19941. }
  19942. el.__vueSetInterval__ = setInterval(isReize, 300);
  19943. },
  19944. unbind(el) {
  19945. clearInterval(el.__vueSetInterval__);
  19946. },
  19947. },
  19948. autoHeight: {
  19949. update(el, binding) {
  19950. const { value } = binding
  19951. if (value && typeof value === 'number') {
  19952. el.style.height = `${value}px`
  19953. } else {
  19954. el.style.height = 'auto'
  19955. }
  19956. },
  19957. componentUpdated(el) {
  19958. el.style.height = `${el.scrollHeight}px`
  19959. },
  19960. },
  19961. },
  19962. beforeDestroy() {
  19963. window.onresize = null;
  19964. clearInterval(this.timer);
  19965. this.timer = null;
  19966. clearInterval(this.opertimer);
  19967. this.opertimer = null;
  19968. },
  19969. computed: {
  19970. contentConvent() {
  19971. return function (c) {
  19972. return c
  19973. ? c
  19974. .replaceAll(/\r\n/g, "<br/>")
  19975. .replaceAll(/\n/g, "<br/>")
  19976. .replaceAll(/\s/g, " &nbsp")
  19977. : "";
  19978. };
  19979. },
  19980. commentRight(){
  19981. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  19982. return "35px";
  19983. }
  19984. return `calc(${this.classRoomHelperWidth} + 5px)`
  19985. // if(this.$refs["classRoomHelperRef"].type==0){
  19986. // return "100px";
  19987. // }else if(this.$refs["classRoomHelperRef"].type==1){
  19988. // return "502px"
  19989. // }else{
  19990. // return "0px"
  19991. // }
  19992. },
  19993. checkUpload() {
  19994. return function () {
  19995. var studentK = [];
  19996. if (this.plworkFile.length > 0) {
  19997. for (var z = 0; z < this.plworkFile.length; z++) {
  19998. studentK.push(this.plworkFile[z].username);
  19999. }
  20000. studentK = studentK.join(",");
  20001. }
  20002. var a = this.uploadStudentJuri.filter((el) => {
  20003. return studentK.indexOf(el.userid) == -1;
  20004. });
  20005. return a;
  20006. };
  20007. },
  20008. getSName() {
  20009. return function (name) {
  20010. var check = name;
  20011. this.uploadStudentJuri.forEach((el) => {
  20012. if (el.userid == check) {
  20013. check = el.name ? el.name : el.username;
  20014. }
  20015. });
  20016. return check;
  20017. };
  20018. },
  20019. getImgList() {
  20020. return function (val) {
  20021. let srcList = []; // 定义一个数组用来接收后面的img地址
  20022. val.replace(
  20023. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20024. function (match, capture) {
  20025. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20026. srcList.push(capture);
  20027. }
  20028. );
  20029. return srcList;
  20030. };
  20031. },
  20032. retrnToolHeight(){
  20033. return function (tool) {
  20034. var _tool = document.querySelectorAll('#'+tool)[0]
  20035. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20036. };
  20037. },
  20038. Correct() {
  20039. return function (c) {
  20040. let w = "";
  20041. let a = this.correctWord;
  20042. for(var k = 0;k<a.length;k++){
  20043. //diffWordsWithSpace
  20044. if(a.length > 1){
  20045. if(a[k].added == true){
  20046. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20047. }else if(a[k].removed == true){
  20048. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20049. }else{
  20050. w += '<span>' + a[k].value + '</span>';
  20051. }
  20052. }else{
  20053. w = c
  20054. }
  20055. //diffChars方法
  20056. // if(a.length > 1){
  20057. // if(w == ""){
  20058. // if(a[k].added == true){
  20059. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20060. // }else if(a[k].removed == true){
  20061. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20062. // }
  20063. // }else{
  20064. // if(k == a.length - 1){
  20065. // if(a[k].added == true){
  20066. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20067. // }else if(a[k].removed == true){
  20068. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20069. // }
  20070. // }else{
  20071. // if(a[k].added == true){
  20072. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20073. // }else if(a[k].removed == true){
  20074. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20075. // }
  20076. // }
  20077. // }
  20078. // }else{
  20079. // w = c
  20080. // }
  20081. }
  20082. c = w;
  20083. return c;
  20084. };
  20085. },
  20086. },
  20087. mounted() {
  20088. document.body.addEventListener("click", (e) => {
  20089. if (this.isUpdateToolDetail1) {
  20090. this.updateToolDetail(this.toolDetailIndex);
  20091. }
  20092. });
  20093. if (this.screenType == 2) {
  20094. window.parent.postMessage({ allScreen: 4 }, "*");
  20095. } else if (this.screenType == 3) {
  20096. window.parent.postMessage({ allScreen: 5 }, "*");
  20097. } else if (this.screenType == 1) {
  20098. window.parent.postMessage({ allScreen: 6 }, "*");
  20099. }
  20100. this.setOperationTime();
  20101. this.selectEva();
  20102. this.getCourseDetail();
  20103. this.selectCount();
  20104. this.getHomeWork();
  20105. this.selectUser();
  20106. this.getAIJ();
  20107. this.contentDialog = true;
  20108. this.setContent2(true);
  20109. if (this.tType == 4) {
  20110. this.pzDialog = true;
  20111. this.selectPz();
  20112. }
  20113. // 获取评分列表
  20114. this.getScoreList()
  20115. document.scrollingElement.scrollTop = 0;
  20116. window.addEventListener("resize", () => {
  20117. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20118. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20119. if (this.showType == 2 || this.showType == 3) {
  20120. document.getElementsByClassName("navBox")[0].style.height =
  20121. a - 40 + 0+ "px";
  20122. } else {
  20123. document.getElementsByClassName("navBox")[0].style.height =
  20124. a - 40 + "px";
  20125. }
  20126. });
  20127. let _this = this;
  20128. setTimeout(() => {
  20129. // _this.vedioTime = [];
  20130. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20131. // _this.vedioTime[i] = document.getElementsByClassName(
  20132. // "vjs-duration-display"
  20133. // )[i].textContent;
  20134. // }
  20135. }, 1000);
  20136. },
  20137. };
  20138. </script>
  20139. <style scoped>
  20140. @media screen and (max-width: 1280px) {
  20141. /* .courseIndex > div:first-child(2) {
  20142. width: 15% !important;
  20143. } */
  20144. /* .navText {
  20145. width: 120px !important;
  20146. } */
  20147. .evaCss {
  20148. flex-direction: column !important;
  20149. align-items: center !important;
  20150. }
  20151. .elist_input {
  20152. width: 90% !important;
  20153. }
  20154. .dialog_diy1 >>> .el-dialog {
  20155. width: 100% !important;
  20156. }
  20157. .rightWidthCss {
  20158. width: 100% !important;
  20159. }
  20160. .dialog_diy3 >>> .el-dialog {
  20161. width: 100% !important;
  20162. }
  20163. .addToolCss {
  20164. right: 0 !important;
  20165. width: 100% !important;
  20166. min-width: unset !important;
  20167. }
  20168. }
  20169. .evaCssMax {
  20170. flex-direction: column !important;
  20171. align-items: center !important;
  20172. }
  20173. .dialog_diy >>> .el-dialog {
  20174. margin-top: 10vh !important;
  20175. }
  20176. .body_student {
  20177. width: 77%;
  20178. height: 100%;
  20179. position: absolute;
  20180. left: 22%;
  20181. top: 0;
  20182. }
  20183. .student_head {
  20184. width: 100%;
  20185. margin: 20px auto 0;
  20186. padding-bottom: 20px;
  20187. display: flex;
  20188. flex-direction: column;
  20189. flex-wrap: nowrap;
  20190. align-items: flex-start;
  20191. justify-content: flex-start;
  20192. }
  20193. .pb_left {
  20194. width: 20%;
  20195. margin-right: 10px;
  20196. background: rgb(255, 255, 255);
  20197. position: fixed;
  20198. height: calc(100% - 40px);
  20199. border-radius: 20px;
  20200. padding-bottom: 15px;
  20201. box-sizing: border-box;
  20202. }
  20203. .wheel > img,
  20204. .project > img,
  20205. .star > img,
  20206. .evaluate > img,
  20207. .up_photo > img,
  20208. .chapter_add > img,
  20209. .deleteWord > img,
  20210. .question > img,
  20211. .homework > img {
  20212. width: 100%;
  20213. height: 100%;
  20214. }
  20215. .upCover > img {
  20216. width: 131px;
  20217. height: 69px;
  20218. object-fit: cover;
  20219. }
  20220. .upCover {
  20221. width: calc(100% / 3.5);
  20222. position: relative;
  20223. margin: 0 15px 10px 0;
  20224. display: flex;
  20225. flex-direction: column;
  20226. flex-wrap: nowrap;
  20227. justify-content: center;
  20228. align-content: center;
  20229. align-items: center;
  20230. height: fit-content;
  20231. }
  20232. .upCover2 {
  20233. width: 100%;
  20234. position: relative;
  20235. margin: 0 15px 10px 0;
  20236. display: flex;
  20237. flex-direction: column;
  20238. flex-wrap: nowrap;
  20239. justify-content: center;
  20240. align-content: center;
  20241. align-items: center;
  20242. }
  20243. .upCover2 > img {
  20244. width: 100%;
  20245. height: 90px;
  20246. object-fit: contain;
  20247. }
  20248. .chapter_add {
  20249. width: 120px;
  20250. position: relative;
  20251. text-align: center;
  20252. }
  20253. .isAddThings {
  20254. margin-top: 20px;
  20255. position: relative;
  20256. text-align: center;
  20257. background: #f7f8fa;
  20258. height: 90px;
  20259. width: 90px;
  20260. display: flex;
  20261. flex-direction: column;
  20262. justify-content: center;
  20263. }
  20264. .deleteWord {
  20265. width: 22px;
  20266. height: 22px;
  20267. position: absolute;
  20268. right: -5px;
  20269. top: -5px;
  20270. cursor: pointer;
  20271. }
  20272. .box_course {
  20273. /* width: 60%; */
  20274. width: calc(100% - 300px);
  20275. }
  20276. .wheel {
  20277. width: 100%;
  20278. /* height: 100%; */
  20279. height: 650px;
  20280. }
  20281. .right_box {
  20282. display: flex;
  20283. flex-direction: column;
  20284. margin-left: 30px;
  20285. justify-content: space-around;
  20286. }
  20287. .right_box_title {
  20288. font-size: 23px;
  20289. }
  20290. .people {
  20291. display: flex;
  20292. }
  20293. .student_body {
  20294. width: 100%;
  20295. margin: 0 auto;
  20296. margin-top: 10px;
  20297. padding: 0 0 20px;
  20298. }
  20299. .study_top {
  20300. margin-top: 100px;
  20301. width: 100%;
  20302. height: auto;
  20303. padding-bottom: 20px;
  20304. }
  20305. .study_top .checkbox {
  20306. display: flex;
  20307. align-items: center;
  20308. padding: 15px 0 15px 30px;
  20309. flex: 0 0 auto;
  20310. font-weight: bold;
  20311. border-bottom: 1px solid #eee;
  20312. }
  20313. .study_top .check {
  20314. padding-bottom: 5px;
  20315. text-align: center;
  20316. cursor: pointer;
  20317. height: 30px;
  20318. box-sizing: border-box;
  20319. display: flex;
  20320. }
  20321. .study_top .checked {
  20322. border-bottom: 4px solid #3fc6a0;
  20323. padding-bottom: 5px;
  20324. color: #3fc6a0;
  20325. display: flex;
  20326. height: 35px;
  20327. }
  20328. .study_top .checked > div,
  20329. .study_top .check > div {
  20330. margin-right: 5px;
  20331. }
  20332. .videoTop {
  20333. display: flex;
  20334. flex-direction: row;
  20335. justify-content: space-between;
  20336. background: #fff;
  20337. align-items: center;
  20338. width: 95%;
  20339. padding: 20px;
  20340. }
  20341. .filebox {
  20342. display: flex;
  20343. flex-wrap: wrap;
  20344. flex-direction: column;
  20345. padding: 0 0 5px;
  20346. position: relative;
  20347. }
  20348. .filebox:before {
  20349. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20350. position: absolute;
  20351. top: 20px;
  20352. left: 13px;
  20353. border-left: 2px dotted #cad1dc;
  20354. height: calc(100% - 15px);
  20355. }
  20356. .toolHeng2 > div:last-child::before {
  20357. height: calc(100% - 43px);
  20358. }
  20359. .filebox .tooldetail {
  20360. width: calc(100%);
  20361. margin: 0px 12px;
  20362. padding: 12px;
  20363. line-height: 30px;
  20364. word-break: break-word;
  20365. background: #ffffff;
  20366. border-radius: 8px 8px 8px 8px;
  20367. opacity: 1;
  20368. border: 1px solid #cad1dc;
  20369. overflow:hidden;
  20370. box-sizing:border-box;
  20371. }
  20372. .file {
  20373. display: flex;
  20374. flex-direction: column;
  20375. align-items: center;
  20376. justify-content: center;
  20377. cursor: pointer;
  20378. width: 200px;
  20379. }
  20380. .file div {
  20381. margin-top: 10px;
  20382. width: 150px;
  20383. text-align: center;
  20384. overflow: hidden;
  20385. white-space: nowrap;
  20386. text-overflow: ellipsis;
  20387. }
  20388. .media {
  20389. display: flex;
  20390. flex-direction: column;
  20391. align-items: center;
  20392. justify-content: center;
  20393. margin: 0 20px 20px 0;
  20394. cursor: pointer;
  20395. margin: 12px 0 5px 15px;
  20396. overflow: hidden;
  20397. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20398. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20399. box-sizing: border-box;
  20400. }
  20401. .media img {
  20402. height: 90px;
  20403. width: 160px;
  20404. object-fit: cover;
  20405. }
  20406. .media .title {
  20407. padding: 5px;
  20408. text-align: left;
  20409. width: 100%;
  20410. box-sizing: border-box;
  20411. }
  20412. .media .btn {
  20413. width: 100%;
  20414. height: 35px;
  20415. line-height: 35px;
  20416. color: #fff;
  20417. background: #606060;
  20418. text-align: center;
  20419. overflow: hidden;
  20420. white-space: nowrap;
  20421. text-overflow: ellipsis;
  20422. }
  20423. .detail_content_top {
  20424. width: 100%;
  20425. padding: 25px 0 25px 0;
  20426. }
  20427. .detail_title {
  20428. text-align: center;
  20429. font-size: 24px;
  20430. }
  20431. .detail_time {
  20432. font-size: 13px;
  20433. padding: 15px 0 0 40px;
  20434. }
  20435. .detail_content {
  20436. line-height: 2pc;
  20437. width: 90%;
  20438. margin: 0 auto;
  20439. padding-top: 30px;
  20440. text-indent: 30px;
  20441. overflow: auto;
  20442. height: 200px;
  20443. }
  20444. .score_box >>> .el-rate {
  20445. margin-left: 10px;
  20446. }
  20447. .dialog_change >>> .el-dialog {
  20448. border-radius: 5px;
  20449. }
  20450. .dialog_change >>> .el-dialog__header {
  20451. background: #f2f2f2;
  20452. text-align: center;
  20453. }
  20454. .dialog_change >>> .el-dialog__title {
  20455. line-height: 5px;
  20456. }
  20457. .dialog_change >>> .el-dialog__body {
  20458. background: #fff;
  20459. padding: 10px 20px;
  20460. }
  20461. .score_box {
  20462. display: flex;
  20463. align-items: center;
  20464. margin-bottom: 18px;
  20465. margin-top: 20px;
  20466. }
  20467. .up_photo {
  20468. width: 120px;
  20469. cursor: pointer;
  20470. margin-top: 10px;
  20471. }
  20472. .up_photo2 {
  20473. width: 180px;
  20474. box-sizing: border-box;
  20475. min-width: 180px;
  20476. height: 180px;
  20477. max-height: 180px;
  20478. min-height: 180px;
  20479. cursor: pointer;
  20480. display: flex;
  20481. flex-direction: column;
  20482. align-items: center;
  20483. justify-content: center;
  20484. background: rgb(242, 246, 255);
  20485. /* padding: 25px; */
  20486. margin-bottom: 10px;
  20487. }
  20488. .up_photo2 img {
  20489. width: 50%;
  20490. height: auto;
  20491. }
  20492. .up_photo2 span {
  20493. color: #898989;
  20494. }
  20495. .plworkBox {
  20496. display: flex;
  20497. align-items: center;
  20498. margin-top: 10px;
  20499. flex-wrap: wrap;
  20500. }
  20501. .upload_send {
  20502. margin: 30px auto 30px;
  20503. width: 60%;
  20504. background: #3681fc;
  20505. text-align: center;
  20506. height: 35px;
  20507. line-height: 35px;
  20508. color: #fff;
  20509. border-radius: 5px;
  20510. cursor: pointer;
  20511. }
  20512. .marginT {
  20513. margin-top: 20px;
  20514. }
  20515. .cd_content_steps {
  20516. display: flex;
  20517. width: 90%;
  20518. justify-content: space-around;
  20519. border-top: 1px solid #eeeeee;
  20520. }
  20521. .cd_steps_box {
  20522. display: flex;
  20523. justify-content: center;
  20524. align-items: center;
  20525. flex-direction: column;
  20526. cursor: pointer;
  20527. }
  20528. .first {
  20529. display: flex;
  20530. align-items: center;
  20531. margin: 15px 0 20px 0;
  20532. font-size: 20px;
  20533. }
  20534. .first > div:nth-child(2) {
  20535. font-size: 16px !important;
  20536. padding-left: 10px;
  20537. line-height: 26px;
  20538. box-sizing: border-box;
  20539. }
  20540. .blue_box_one {
  20541. text-align: center;
  20542. color: #fff;
  20543. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20544. border-radius: 7px;
  20545. margin: 10px;
  20546. cursor: pointer;
  20547. width: 95%;
  20548. height: 45px;
  20549. display: flex;
  20550. flex-direction: row;
  20551. justify-content: flex-start;
  20552. align-items: center;
  20553. }
  20554. .blue_box_one > div:nth-child(1) {
  20555. line-height: 30px;
  20556. margin: 0 5px 0 10px;
  20557. width: 30%;
  20558. min-width: 70px;
  20559. border-radius: 4px;
  20560. }
  20561. .blue_box_one > div:nth-child(2) {
  20562. white-space: nowrap;
  20563. text-overflow: ellipsis;
  20564. overflow: hidden;
  20565. word-break: break-all;
  20566. width: 70%;
  20567. text-align: left;
  20568. margin-right: 10px;
  20569. max-width: calc(100% - 85px);
  20570. }
  20571. .blue_box_one > div:nth-child(2):hover {
  20572. overflow: hidden;
  20573. text-overflow: ellipsis;
  20574. white-space: nowrap;
  20575. cursor: pointer;
  20576. }
  20577. .upFile {
  20578. margin: 0 auto;
  20579. width: 120px;
  20580. background: #3681fc;
  20581. color: #fff;
  20582. height: 30px;
  20583. text-align: center;
  20584. line-height: 30px;
  20585. border-radius: 5px;
  20586. font-size: 14px;
  20587. cursor: pointer;
  20588. }
  20589. .courseTitle {
  20590. width: 85%;
  20591. margin: 10px auto 26px auto;
  20592. display: flex;
  20593. flex-direction: row;
  20594. align-items: center;
  20595. justify-content: space-between;
  20596. text-align: center;
  20597. }
  20598. .courseTitle .ctitle {
  20599. font-size: 20px;
  20600. font-weight: bold;
  20601. color: #0e1e33;
  20602. white-space: nowrap;
  20603. overflow: hidden;
  20604. text-overflow: ellipsis;
  20605. }
  20606. .inviteBox {
  20607. font-size: 14px;
  20608. /* margin-top: 5px; */
  20609. color: #00000099;
  20610. text-align: center;
  20611. }
  20612. .courseTitle >>> .el-tooltip {
  20613. width: 100%;
  20614. white-space: nowrap;
  20615. overflow: hidden;
  20616. text-overflow: ellipsis;
  20617. word-break: break-word;
  20618. }
  20619. .ml {
  20620. margin-left: 20px;
  20621. color: #5b7dba;
  20622. border-left: 3px solid #5b7dba;
  20623. padding-left: 5px;
  20624. font-weight: bold;
  20625. }
  20626. .return {
  20627. width: 2rem;
  20628. height: 2rem;
  20629. cursor: pointer;
  20630. }
  20631. .return > img {
  20632. width: 100%;
  20633. height: 100%;
  20634. }
  20635. .returnBtn {
  20636. width: 86px;
  20637. height: 36px;
  20638. background: #3681fc;
  20639. border-radius: 4px;
  20640. color: #fff;
  20641. text-align: center;
  20642. line-height: 36px;
  20643. margin-right: 20px;
  20644. cursor: pointer;
  20645. font-size: 14px;
  20646. font-weight: 400;
  20647. display: flex;
  20648. flex-direction: row;
  20649. flex-wrap: nowrap;
  20650. align-items: center;
  20651. justify-content: center;
  20652. }
  20653. .reBtnIcon,
  20654. .commentIcon,
  20655. .vedioIcon,
  20656. .vedioIcon1 {
  20657. /* width: 36px; */
  20658. height: 36px;
  20659. border-radius: 4px;
  20660. position: relative;
  20661. /* background: #e0eafb; */
  20662. background: #0061ff;
  20663. cursor: pointer;
  20664. margin-right: 12px;
  20665. display: flex;
  20666. align-items: center;
  20667. padding: 0 10px;
  20668. box-sizing: border-box;
  20669. font-size: 14px;
  20670. color: #fff;
  20671. }
  20672. .reBtnIcon::before,
  20673. .commentIcon::before,
  20674. .vedioIcon::before,
  20675. .vedioIcon1::before {
  20676. content: "";
  20677. display: block;
  20678. background-size: 100% 100%;
  20679. background-repeat: no-repeat;
  20680. width: 20px;
  20681. height: 20px;
  20682. margin-right: 5px;
  20683. /* position: absolute; */
  20684. /* top: 8px;
  20685. left: 8px; */
  20686. }
  20687. .vedioIcon1 {
  20688. background: #f63564;
  20689. }
  20690. .reBtnIcon::before {
  20691. background-image: url("../assets/icon/newIcons/refresh.png");
  20692. }
  20693. .commentIcon::before {
  20694. background-image: url("../assets/icon/newIcons/comment.png");
  20695. }
  20696. .vedioIcon::before {
  20697. background-image: url("../assets/icon/newIcons/transcribe.png");
  20698. }
  20699. .vedioIcon1::before {
  20700. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20701. background-image: url("../assets/icon/newIcons/transcribe.png");
  20702. }
  20703. .tool {
  20704. display: flex;
  20705. flex-direction: column;
  20706. flex-wrap: nowrap;
  20707. width: 13%;
  20708. margin: 0 30px;
  20709. align-items: center;
  20710. position: relative;
  20711. padding: 10px 25px;
  20712. cursor: pointer;
  20713. }
  20714. .whiteBIcon {
  20715. width: 150px;
  20716. }
  20717. .whiteBIcon > img {
  20718. width: 100%;
  20719. height: 100%;
  20720. }
  20721. .mask {
  20722. background-color: rgba(0, 0, 0, 0);
  20723. position: fixed;
  20724. top: 0;
  20725. left: 0;
  20726. width: 100%;
  20727. height: 100%;
  20728. z-index: 20000;
  20729. display: flex;
  20730. align-items: center;
  20731. justify-content: center;
  20732. }
  20733. .progressBox {
  20734. width: 500px;
  20735. height: 180px;
  20736. background: #fff;
  20737. border-radius: 10px;
  20738. box-shadow: 0 0 6px 1px #bfbfbf;
  20739. display: flex;
  20740. align-items: center;
  20741. justify-content: center;
  20742. flex-direction: column;
  20743. position: relative;
  20744. color: #6c6c6c;
  20745. }
  20746. .progressBox >>> .el-progress-bar__outer {
  20747. background-color: #d1dfff !important;
  20748. }
  20749. .progressBox .lbox {
  20750. height: 50px;
  20751. font-size: 19px;
  20752. display: flex;
  20753. align-items: center;
  20754. color: #747474;
  20755. }
  20756. .progressBox .lbox img {
  20757. width: 40px;
  20758. margin-right: 20px;
  20759. }
  20760. .closeCss {
  20761. position: absolute;
  20762. top: 8px;
  20763. right: 8px;
  20764. cursor: pointer;
  20765. width: 20px;
  20766. height: 20px;
  20767. }
  20768. .closeCss > img {
  20769. width: 100%;
  20770. height: 100%;
  20771. }
  20772. .uploadVedio {
  20773. display: flex;
  20774. flex-direction: column;
  20775. flex-wrap: nowrap;
  20776. justify-content: center;
  20777. align-items: center;
  20778. margin: 0 15px 10px 0;
  20779. }
  20780. .uploadVedio > img {
  20781. width: 30px;
  20782. height: 30px;
  20783. }
  20784. .uploadVedio > span {
  20785. white-space: nowrap;
  20786. overflow: hidden;
  20787. text-overflow: ellipsis;
  20788. width: 75px;
  20789. margin-top: 7px;
  20790. }
  20791. .picName {
  20792. white-space: nowrap;
  20793. overflow: hidden;
  20794. text-overflow: ellipsis;
  20795. width: 75px;
  20796. margin-top: 7px;
  20797. }
  20798. .new_top {
  20799. display: flex;
  20800. background: #fff;
  20801. flex-direction: row;
  20802. justify-content: flex-start;
  20803. align-items: center;
  20804. height: 60px;
  20805. position: fixed;
  20806. top: 20px;
  20807. left: 22%;
  20808. width: 77%;
  20809. z-index: 999;
  20810. border-radius: 12px 12px 0 0;
  20811. border-bottom: 1px solid #cad1dc;
  20812. padding: 10px 0;
  20813. }
  20814. .new_topFixed {
  20815. width: 100%;
  20816. height: 40px;
  20817. position: fixed;
  20818. top: 0px;
  20819. display: block;
  20820. background: #f2f2f2;
  20821. z-index: 998;
  20822. }
  20823. .before {
  20824. position: absolute;
  20825. background: #c3dad4;
  20826. width: 6px;
  20827. height: 100%;
  20828. }
  20829. .courseIndex {
  20830. display: flex;
  20831. flex-direction: row;
  20832. align-items: center;
  20833. width: calc(100% - 745px);
  20834. }
  20835. .courseIndex > div:nth-child(1) {
  20836. margin: 0 0 0 10px;
  20837. font-size: 20px;
  20838. min-width: 100px;
  20839. font-weight: bold;
  20840. border-left: 4px solid #3363b9;
  20841. height: 32px;
  20842. text-align: center;
  20843. line-height: 35px;
  20844. }
  20845. .courseIndex > div:nth-child(2) {
  20846. font-size: 20px;
  20847. /* width: 300px; */
  20848. max-width: calc(100% - 105px);
  20849. white-space: nowrap;
  20850. overflow: hidden;
  20851. text-overflow: ellipsis;
  20852. }
  20853. .courseIndex > div:nth-child(3) {
  20854. border-bottom: 1px solid #d7d7d7;
  20855. padding-bottom: 5px;
  20856. background: #3681fc;
  20857. width: 55px;
  20858. min-width: 55px;
  20859. border-radius: 5px;
  20860. color: #fff;
  20861. text-align: center;
  20862. height: 20px;
  20863. line-height: 26px;
  20864. font-size: 14px;
  20865. margin: 0 0 0 10px;
  20866. }
  20867. .course_text {
  20868. padding: 20px 0 0 15px;
  20869. text-indent: 30px;
  20870. width: 80%;
  20871. min-height: 20px;
  20872. }
  20873. .vedioList {
  20874. background: #f2f2f2;
  20875. border: 1px solid #ececec;
  20876. /* width: 38.8%; */
  20877. /* width: 300px; */
  20878. width: 100%;
  20879. height: 445px;
  20880. border-radius: 10px;
  20881. overflow: hidden;
  20882. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20883. }
  20884. .vedioNav {
  20885. margin: 10px 0 0 15px;
  20886. border-bottom: 1px solid #d7d7d7;
  20887. padding-bottom: 5px;
  20888. background: #3681fc;
  20889. width: 55px;
  20890. min-width: 55px;
  20891. border-radius: 5px;
  20892. color: #fff;
  20893. text-align: center;
  20894. height: 20px;
  20895. line-height: 26px;
  20896. font-size: 14px;
  20897. }
  20898. .queTop {
  20899. display: flex;
  20900. padding: 20px 0 20px 30px;
  20901. width: 100%;
  20902. flex-direction: row;
  20903. justify-content: flex-start;
  20904. align-items: center;
  20905. box-sizing: border-box;
  20906. }
  20907. .queTopTitle {
  20908. display: flex;
  20909. flex-direction: row;
  20910. flex-wrap: nowrap;
  20911. align-items: center;
  20912. font-weight: bold;
  20913. font-size: 20px;
  20914. color: rgb(14, 30, 51);
  20915. }
  20916. .queTopTitle::before {
  20917. content: "";
  20918. width: 2px;
  20919. height: 22px;
  20920. background: #3681fc;
  20921. border-radius: 3px;
  20922. display: block;
  20923. margin: 2px 6px 0 0;
  20924. }
  20925. .queTopRight {
  20926. display: flex;
  20927. flex-direction: row;
  20928. flex-wrap: nowrap;
  20929. align-items: center;
  20930. }
  20931. .queTopClose {
  20932. margin-right: 20px;
  20933. cursor: pointer;
  20934. position: relative;
  20935. display: flex;
  20936. }
  20937. .closeImg,
  20938. .openImg {
  20939. width: 25px;
  20940. height: 25px;
  20941. position: absolute;
  20942. left: -20px;
  20943. top: -1px;
  20944. }
  20945. .closeImg > img,
  20946. .openImg > img {
  20947. width: 100%;
  20948. height: 100%;
  20949. }
  20950. .question {
  20951. width: 40px;
  20952. margin-right: 10px;
  20953. margin-top: 7px;
  20954. }
  20955. .queTitle {
  20956. margin-left: 5px;
  20957. font-size: 25px;
  20958. display: flex;
  20959. align-items: center;
  20960. }
  20961. .addEditor {
  20962. width: 100px;
  20963. height: 30px;
  20964. background: #42cda6;
  20965. color: #fff;
  20966. border-radius: 5px;
  20967. text-align: center;
  20968. line-height: 30px;
  20969. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20970. cursor: pointer;
  20971. }
  20972. /* .vedioName {
  20973. cursor: pointer;
  20974. margin: 0px 0px 10px 5px;
  20975. white-space: nowrap;
  20976. overflow: hidden;
  20977. text-overflow: ellipsis;
  20978. width: 100%;
  20979. } */
  20980. .vedioTime {
  20981. width: 35px;
  20982. position: absolute;
  20983. color: #fff;
  20984. bottom: 0px;
  20985. right: 0px;
  20986. text-align: center;
  20987. background: #46411f;
  20988. height: 20px;
  20989. font-size: 14px;
  20990. line-height: 20px;
  20991. }
  20992. .homework {
  20993. width: 200px;
  20994. display: flex;
  20995. flex-direction: column;
  20996. flex-wrap: nowrap;
  20997. align-items: center;
  20998. cursor: pointer;
  20999. }
  21000. .homebox {
  21001. display: flex;
  21002. flex-wrap: wrap;
  21003. flex-direction: row;
  21004. justify-content: flex-start;
  21005. align-items: center;
  21006. padding: 15px 0;
  21007. }
  21008. .isChooseActive {
  21009. color: #3681fc !important;
  21010. font-weight: bold !important;
  21011. }
  21012. .chooseWho {
  21013. display: flex;
  21014. width: 100%;
  21015. flex-direction: row;
  21016. flex-wrap: nowrap;
  21017. justify-content: flex-start;
  21018. padding-bottom: 10px;
  21019. }
  21020. .chooseWho > div {
  21021. cursor: pointer;
  21022. padding-bottom: 10px;
  21023. margin: 0 30px 0 0;
  21024. font-weight: 400;
  21025. color: #0e1e33;
  21026. }
  21027. .addPoint > div > img {
  21028. cursor: pointer;
  21029. width: 85px;
  21030. border-radius: 15px;
  21031. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21032. }
  21033. .addPoint > div {
  21034. display: flex;
  21035. flex-direction: column;
  21036. flex-wrap: nowrap;
  21037. align-items: center;
  21038. }
  21039. .isBorder > div {
  21040. margin: 0 0 10px 0;
  21041. align-items: flex-start !important;
  21042. }
  21043. .noiframeBox {
  21044. display: flex;
  21045. flex-wrap: wrap;
  21046. }
  21047. .iframeBox iframe {
  21048. width: 100%;
  21049. height: 800px;
  21050. border: none;
  21051. margin-bottom: 20px;
  21052. border: 1px solid #ccc;
  21053. }
  21054. .upload_toolBtn {
  21055. background: #3681fc;
  21056. color: #fff;
  21057. width: 110px;
  21058. text-align: center;
  21059. height: 35px;
  21060. line-height: 35px;
  21061. font-size: 14px;
  21062. border-radius: 5px;
  21063. cursor: pointer;
  21064. position: absolute;
  21065. right: 10px;
  21066. bottom: 0;
  21067. }
  21068. .binfo_input,
  21069. .pj {
  21070. font: inherit;
  21071. color: currentColor;
  21072. width: 100%;
  21073. margin: 0;
  21074. padding: 15px 14px;
  21075. display: block;
  21076. min-width: 0;
  21077. outline: none;
  21078. box-sizing: content-box;
  21079. background: none;
  21080. -webkit-tap-highlight-color: transparent;
  21081. border: 1px solid rgba(0, 0, 0, 0.23);
  21082. border-radius: 4px;
  21083. box-sizing: border-box;
  21084. resize: none;
  21085. }
  21086. .binfo_input:focus-visible {
  21087. border: 1px solid rgba(61, 103, 188);
  21088. }
  21089. .dialog_diy >>> .el-dialog__header,
  21090. .dialog_diy1 >>> .el-dialog__header {
  21091. background: #454545 !important;
  21092. padding: 15px 20px;
  21093. }
  21094. .dialog_diy >>> .el-dialog__title,
  21095. .dialog_diy1 >>> .el-dialog__title {
  21096. color: #fff;
  21097. }
  21098. .dialog_diy >>> .el-dialog__headerbtn,
  21099. .dialog_diy1 >>> .el-dialog__headerbtn {
  21100. top: 19px;
  21101. }
  21102. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21103. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21104. color: #fff;
  21105. }
  21106. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21107. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21108. color: #fff;
  21109. }
  21110. .dialog_diy1 >>> .el-dialog__body {
  21111. padding: 0;
  21112. }
  21113. .dialog_diy >>> .el-dialog__body,
  21114. .dialog_diy >>> .el-dialog__footer,
  21115. .dialog_diy1 >>> .el-dialog__footer {
  21116. background: #fafafa;
  21117. }
  21118. .a_addBox {
  21119. padding: 0 0 0 15px;
  21120. }
  21121. .a_add_box {
  21122. padding: 10px;
  21123. background: #fff;
  21124. margin-bottom: 10px;
  21125. border-radius: 5px;
  21126. box-shadow: 0 0 5px 0 #d5d5d5;
  21127. }
  21128. .a_add_head {
  21129. display: flex;
  21130. align-items: flex-start;
  21131. /* justify-content: space-between; */
  21132. flex-direction: column;
  21133. /* flex-direction: row; */
  21134. margin: 10px 0 20px 0;
  21135. font-size: 18px;
  21136. width: 100%;
  21137. }
  21138. .askIndex {
  21139. background: #3681fc;
  21140. border-radius: 50%;
  21141. color: #fff;
  21142. width: 25px;
  21143. height: 25px;
  21144. min-width: 25px;
  21145. min-height: 25px;
  21146. text-align: center;
  21147. line-height: 25px;
  21148. margin-right: 5px;
  21149. }
  21150. .a_add_head .a_add_head_input {
  21151. width: 300px;
  21152. }
  21153. .a_add_head .a_add_head_div {
  21154. display: flex;
  21155. align-items: center;
  21156. justify-content: space-between;
  21157. }
  21158. .a_add_body {
  21159. display: flex;
  21160. align-items: center;
  21161. }
  21162. .a_add_input {
  21163. display: flex;
  21164. align-items: center;
  21165. flex-wrap: wrap;
  21166. width: 100%;
  21167. }
  21168. .a_add_input >>> .el-radio-group,
  21169. .a_add_input >>> .el-checkbox-group {
  21170. width: 100%;
  21171. }
  21172. .a_add_input >>> .el-radio,
  21173. .a_add_input >>> .el-checkbox {
  21174. display: flex;
  21175. flex-direction: row;
  21176. flex-wrap: nowrap;
  21177. align-items: center;
  21178. padding: 15px 0;
  21179. }
  21180. .a_add_input >>> .el-radio:not(:last-child),
  21181. .a_add_input >>> .el-checkbox:not(:last-child) {
  21182. width: 100%;
  21183. border-bottom: 1px solid #efefef;
  21184. }
  21185. .redioStyle >>> .el-radio__label {
  21186. font-size: 18px;
  21187. }
  21188. .redioStyle >>> .el-radio__label > span,
  21189. .redioStyle >>> .el-checkbox__label > span {
  21190. word-break: break-all;
  21191. white-space: normal;
  21192. }
  21193. .redioStyle >>> .el-checkbox__label {
  21194. font-size: 18px;
  21195. }
  21196. .toolHeng2 {
  21197. width: 100%;
  21198. padding-left: 15px;
  21199. box-sizing: border-box;
  21200. }
  21201. .workNav {
  21202. font-size: 20px;
  21203. font-weight: bold;
  21204. color: #0e1e33;
  21205. display: flex;
  21206. flex-direction: row;
  21207. flex-wrap: nowrap;
  21208. align-items: center;
  21209. padding: 15px 0 15px 0;
  21210. }
  21211. .workNav::before {
  21212. content: "";
  21213. width: 2px;
  21214. height: 22px;
  21215. background: #3681fc;
  21216. border-radius: 3px;
  21217. display: block;
  21218. margin: 2px 6px 0 0;
  21219. }
  21220. .toolHeng {
  21221. display: flex;
  21222. flex-direction: row;
  21223. flex-wrap: wrap;
  21224. justify-content: flex-start;
  21225. align-items: center;
  21226. width: 100%;
  21227. }
  21228. .toolHeng > div {
  21229. padding-left: 20px;
  21230. }
  21231. .isWidth {
  21232. width: 20%;
  21233. }
  21234. .textTitle {
  21235. display: flex;
  21236. flex-direction: row;
  21237. flex-wrap: nowrap;
  21238. align-items: center;
  21239. width: 95%;
  21240. }
  21241. .textTitle >>> .el-form-item__label {
  21242. font-size: 22px;
  21243. color: #918f8f;
  21244. width: 100px;
  21245. }
  21246. .textTitle >>> .el-form-item__content {
  21247. width: calc(100% - 100px);
  21248. }
  21249. .textCss >>> .el-dialog {
  21250. width: 800px !important;
  21251. height: 400px;
  21252. background: #fafafa;
  21253. }
  21254. .textCss >>> .el-dialog__body {
  21255. margin: 55px 8% 0 8%;
  21256. padding: 0 !important;
  21257. }
  21258. .textCss >>> .el-dialog__footer {
  21259. padding-top: 38px;
  21260. }
  21261. .toolsCss >>> .el-dialog__body {
  21262. padding: 20px;
  21263. }
  21264. .lineCss >>> .el-dialog__body {
  21265. display: flex;
  21266. flex-direction: row;
  21267. align-items: center;
  21268. justify-content: center;
  21269. }
  21270. .newNav {
  21271. display: flex;
  21272. flex-direction: row;
  21273. align-items: baseline;
  21274. justify-content: flex-start;
  21275. }
  21276. .navListItem {
  21277. width: calc(100% - 20px);
  21278. height: 50px;
  21279. margin: 0px auto 10px;
  21280. display: flex;
  21281. flex-direction: row;
  21282. flex-wrap: nowrap;
  21283. align-items: center;
  21284. justify-content: space-between;
  21285. background: #f0f4fa;
  21286. border-radius: 6px 6px 6px 6px;
  21287. }
  21288. .navText {
  21289. cursor: pointer;
  21290. white-space: nowrap;
  21291. overflow: hidden;
  21292. text-overflow: ellipsis;
  21293. width: 220px;
  21294. padding: 0 10px;
  21295. font-weight: 400;
  21296. color: #0e1e33;
  21297. }
  21298. .downIcon {
  21299. width: 20px;
  21300. min-width: 20px;
  21301. height: 20px;
  21302. margin-right: 15px;
  21303. cursor: pointer;
  21304. }
  21305. .downIcon > img {
  21306. width: 100%;
  21307. height: 100%;
  21308. }
  21309. .noVedio {
  21310. display: flex;
  21311. flex-direction: row;
  21312. justify-content: center;
  21313. align-content: center;
  21314. }
  21315. .noNavText {
  21316. cursor: pointer;
  21317. margin: 0px 0px 10px 5px;
  21318. width: 112px;
  21319. }
  21320. .listNoVedio {
  21321. margin: 0 0 0 30px;
  21322. width: 97%;
  21323. }
  21324. .video-player >>> .video-js {
  21325. height: 100%;
  21326. }
  21327. .hangVedioList {
  21328. width: 90% !important;
  21329. height: 150px !important;
  21330. margin: 20px 0 0 30px;
  21331. }
  21332. .hangVedio {
  21333. width: 100%;
  21334. height: 170px !important;
  21335. align-items: flex-start !important;
  21336. }
  21337. .hangHand {
  21338. height: 150px !important;
  21339. }
  21340. .twoChild {
  21341. width: 95%;
  21342. margin: 10px;
  21343. border-radius: 5px;
  21344. background: #f2f2f2;
  21345. display: flex;
  21346. flex-direction: column;
  21347. flex-wrap: nowrap;
  21348. justify-content: flex-start;
  21349. align-items: flex-start;
  21350. transition: all 0.5s;
  21351. overflow: hidden;
  21352. height: 0;
  21353. background: #e7f3ff;
  21354. }
  21355. .twoChild > div:nth-child(1) {
  21356. margin-top: 5px;
  21357. }
  21358. .navChild {
  21359. width: 100%;
  21360. cursor: pointer;
  21361. margin-bottom: 10px;
  21362. position: relative;
  21363. }
  21364. .navChild img {
  21365. position: absolute;
  21366. right: 11px;
  21367. width: 15px;
  21368. top: 50%;
  21369. transform: translateY(-50%);
  21370. }
  21371. .navActive,
  21372. .toolActive {
  21373. height: auto !important;
  21374. overflow: auto !important;
  21375. /* padding-bottom: 16px; */
  21376. }
  21377. .toolActive {
  21378. padding: 0;
  21379. }
  21380. .navTask {
  21381. display: flex;
  21382. flex-direction: row;
  21383. flex-wrap: nowrap;
  21384. align-items: center;
  21385. align-content: flex-start;
  21386. height: 40px;
  21387. justify-content: flex-start;
  21388. padding: 0 10px;
  21389. width: 100%;
  21390. box-sizing: border-box;
  21391. }
  21392. .navTaskname {
  21393. white-space: nowrap;
  21394. text-overflow: ellipsis;
  21395. overflow: hidden;
  21396. word-break: break-all;
  21397. padding-left: 5px;
  21398. }
  21399. .openTaskActive {
  21400. /* background-color: #e0eafb !important;
  21401. color: #0061ff; */
  21402. color:#fff;
  21403. background: rgb(55, 129, 252) !important;
  21404. }
  21405. .iframeName {
  21406. margin: 5px 0;
  21407. border-left: 4px solid #41c4a4;
  21408. padding-left: 4px;
  21409. }
  21410. .toolTitle {
  21411. margin: 0px 0px 20px;
  21412. font-size: 20px;
  21413. font-weight: 500;
  21414. border-left: 4px solid #41c4a4;
  21415. padding-left: 4px;
  21416. }
  21417. .cru_selectBox {
  21418. overflow: auto;
  21419. width: 95%;
  21420. margin: 17px auto 0;
  21421. height: calc(100% - 40px - 21px - 20px - 17px);
  21422. background: #fff;
  21423. border-radius: 8px;
  21424. }
  21425. .cru_selectBox::-webkit-scrollbar,
  21426. .study_top::-webkit-scrollbar,
  21427. .textContent::-webkit-scrollbar {
  21428. /*滚动条整体样式*/
  21429. width: 6px;
  21430. /*高宽分别对应横竖滚动条的尺寸*/
  21431. height: 6px;
  21432. }
  21433. /*定义滚动条轨道 内阴影+圆角*/
  21434. .cru_selectBox::-webkit-scrollbar-track,
  21435. .study_top::-webkit-scrollbar-track,
  21436. .textContent::-webkit-scrollbar {
  21437. border-radius: 10px;
  21438. background-color: #b8bdc9;
  21439. }
  21440. /*定义滑块 内阴影+圆角*/
  21441. .cru_selectBox::-webkit-scrollbar-thumb,
  21442. .study_top::-webkit-scrollbar-thumb,
  21443. .textContent::-webkit-scrollbar-thumb {
  21444. border-radius: 10px;
  21445. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21446. background-color: #2c5ab3;
  21447. }
  21448. .vedioBox {
  21449. border-radius: 0 0 20px 20px;
  21450. background: #fff;
  21451. overflow: auto;
  21452. }
  21453. .taskBox {
  21454. width: 98%;
  21455. background: #f0f4fa;
  21456. margin: 10px auto;
  21457. padding: 0 10px;
  21458. border-radius: 4px;
  21459. box-sizing: border-box;
  21460. }
  21461. .vedioTaskBox {
  21462. width: 100%;
  21463. display: flex;
  21464. flex-direction: row;
  21465. flex-wrap: nowrap;
  21466. align-items: flex-start;
  21467. position: relative;
  21468. }
  21469. .toolBox {
  21470. margin: 15px 0 0 25px;
  21471. display: flex;
  21472. position: relative;
  21473. padding: 18px 20px;
  21474. border-top-left-radius: 5px;
  21475. border-top-right-radius: 5px;
  21476. width: 90%;
  21477. }
  21478. .btnAll {
  21479. position: absolute;
  21480. right: 0;
  21481. display: flex;
  21482. flex-direction: row;
  21483. flex-wrap: nowrap;
  21484. align-items: center;
  21485. }
  21486. .btnLeft,
  21487. .btnRight {
  21488. display: flex;
  21489. flex-direction: row;
  21490. flex-wrap: nowrap;
  21491. align-items: center;
  21492. padding: 5px 0;
  21493. }
  21494. .btnLeft {
  21495. border-right: 1px solid #cad1dc;
  21496. }
  21497. .btnLeft > .custom-tooltip {
  21498. background: #3681fc;
  21499. color: #fff;
  21500. }
  21501. .last:hover {
  21502. background: #3383fa !important;
  21503. color: #fff;
  21504. border: 1px solid #3383fa !important;
  21505. }
  21506. .last,
  21507. .returnBtn1 {
  21508. width: 90px;
  21509. height: 36px;
  21510. background: #ffffff;
  21511. border-radius: 4px;
  21512. border: 1px solid #0061ff;
  21513. color: #0061ff;
  21514. cursor: pointer;
  21515. display: flex;
  21516. flex-direction: row;
  21517. flex-wrap: nowrap;
  21518. align-items: center;
  21519. justify-content: center;
  21520. margin-left: 12px;
  21521. }
  21522. .returnBtn1 {
  21523. background: #f0f4fa;
  21524. border-radius: 4px;
  21525. border: 1px solid #cad1dc;
  21526. margin: 0 12px;
  21527. }
  21528. .lastImg {
  21529. min-width: 15px;
  21530. width: 15px;
  21531. height: 15px;
  21532. display: flex;
  21533. }
  21534. .lastText {
  21535. padding: 0 5px 0 5px;
  21536. box-sizing: border-box;
  21537. font-size: 14px;
  21538. }
  21539. .lastImg > img {
  21540. width: 100%;
  21541. height: 100%;
  21542. }
  21543. /* .vedioTimeBox {
  21544. display: flex;
  21545. flex-direction: row;
  21546. align-items: center;
  21547. flex-wrap: nowrap;
  21548. position: relative;
  21549. } */
  21550. .navBox {
  21551. background: #fff;
  21552. height: calc(100% - 40px);
  21553. overflow-y: auto;
  21554. overflow-x: hidden;
  21555. }
  21556. .worksBox {
  21557. margin: 0 0 10px 25px;
  21558. border-bottom: 1px solid #eeeeee;
  21559. padding: 18px 20px;
  21560. border-radius: 4px;
  21561. width: 90%;
  21562. }
  21563. .worksBTitle {
  21564. font-size: 20px;
  21565. padding-bottom: 15px;
  21566. border-bottom: 1px solid #eeeeee;
  21567. display: flex;
  21568. align-items: center;
  21569. }
  21570. .greenBox {
  21571. width: 5px;
  21572. height: 30px;
  21573. background: #63b6fa;
  21574. margin-right: 5px;
  21575. }
  21576. .worksDetailBox {
  21577. display: flex;
  21578. width: 100%;
  21579. flex-direction: row;
  21580. flex-wrap: wrap;
  21581. align-items: flex-end;
  21582. justify-content: flex-start;
  21583. padding: 15px 5px;
  21584. box-sizing: border-box;
  21585. }
  21586. .works {
  21587. display: flex;
  21588. flex-direction: column;
  21589. flex-wrap: nowrap;
  21590. align-items: flex-start;
  21591. justify-content: flex-start;
  21592. align-content: center;
  21593. max-width: 240px;
  21594. width: calc(100% / 3 - 10px);
  21595. height: auto;
  21596. margin-right: 10px;
  21597. margin-bottom: 10px;
  21598. overflow: hidden;
  21599. height: 140px;
  21600. box-shadow: 0 0 6px 1px #dfdada;
  21601. border-radius: 15px;
  21602. }
  21603. .workImg {
  21604. width: 100%;
  21605. /* height: calc(100% - 40px); */
  21606. height: 105px;
  21607. position: relative;
  21608. }
  21609. .workImg > img {
  21610. width: 100%;
  21611. height: 100%;
  21612. object-fit: contain;
  21613. cursor: pointer;
  21614. }
  21615. .worksName {
  21616. height: 40px;
  21617. line-height: 40px;
  21618. display: flex;
  21619. width: 100%;
  21620. flex-direction: row;
  21621. flex-wrap: nowrap;
  21622. justify-content: space-between;
  21623. align-items: center;
  21624. margin: 0 0 0 10px;
  21625. }
  21626. .worksName > div:nth-child(1) {
  21627. width: 110px;
  21628. white-space: nowrap;
  21629. overflow: hidden;
  21630. text-overflow: ellipsis;
  21631. }
  21632. .worksName > div:nth-child(2) {
  21633. color: #b7b4b5;
  21634. }
  21635. .noWorksS {
  21636. padding: 15px 0;
  21637. display: flex;
  21638. flex-direction: row;
  21639. flex-wrap: wrap;
  21640. align-items: center;
  21641. justify-content: flex-start;
  21642. }
  21643. .noWorksName,
  21644. .isWorksName,
  21645. .isWorksName2 {
  21646. background: #ddebf8;
  21647. color: #000;
  21648. width: 90px;
  21649. height: 25px;
  21650. text-align: center;
  21651. line-height: 25px;
  21652. border-radius: 4px;
  21653. margin: 10px 15px 10px 0;
  21654. white-space: nowrap;
  21655. overflow: hidden;
  21656. padding: 5px;
  21657. text-overflow: ellipsis;
  21658. cursor: pointer;
  21659. border: 1px solid #ddebf8;
  21660. }
  21661. .noWorksName {
  21662. background: #fff;
  21663. color: #0061ff;
  21664. border: 1px solid #0061ff;
  21665. }
  21666. .noWorksName > span{
  21667. max-width: 100%;
  21668. display: block;
  21669. overflow: hidden;
  21670. text-overflow: ellipsis;
  21671. white-space: nowrap;
  21672. }
  21673. .isWorksName2 {
  21674. width: 100px;
  21675. height: 40px;
  21676. line-height: 40px;
  21677. position: relative;
  21678. background: #dae6f9;
  21679. }
  21680. .isWorksName {
  21681. background: #e7ebf1 !important;
  21682. width: 100px;
  21683. height: 40px;
  21684. line-height: 40px;
  21685. position: relative;
  21686. color: #acb4bf;
  21687. border: 1px solid #cad1dc !important;
  21688. }
  21689. .isSelectName,
  21690. .noWorksName:hover {
  21691. background: #3383fa !important;
  21692. color: #fff !important;
  21693. border: 1px solid #3383fa !important;
  21694. }
  21695. .title {
  21696. background: #1e5cc9;
  21697. /* width: 98%; */
  21698. height: 45px;
  21699. color: #fff;
  21700. line-height: 45px;
  21701. padding-left: 20px;
  21702. box-sizing: border-box;
  21703. }
  21704. .textBox {
  21705. font-size: 20px;
  21706. width: 90%;
  21707. display: flex;
  21708. flex-direction: column;
  21709. align-items: center;
  21710. margin: 20px auto 0;
  21711. max-height: calc(100% - 75px);
  21712. overflow: auto;
  21713. }
  21714. .textContent {
  21715. font-size: 18px;
  21716. width: 95%;
  21717. max-width: 95%;
  21718. }
  21719. .answerBg {
  21720. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21721. background-size: 100% 100%;
  21722. width: 100%;
  21723. height: 100%;
  21724. color: #fff;
  21725. text-align: center;
  21726. display: flex;
  21727. flex-direction: column;
  21728. flex-wrap: nowrap;
  21729. align-items: center;
  21730. position: relative;
  21731. justify-content: center;
  21732. }
  21733. .answerBg > div:nth-child(1) {
  21734. /* font-size: 22px;
  21735. padding: 25px 0 10px; */
  21736. }
  21737. .answerContent {
  21738. width: 215px;
  21739. max-height: 60px;
  21740. word-break: break-all;
  21741. text-align: center;
  21742. /* white-space: nowrap; */
  21743. overflow: hidden;
  21744. text-overflow: ellipsis;
  21745. /* padding: 23px 0 0; */
  21746. -webkit-line-clamp: 3;
  21747. -webkit-box-orient: vertical;
  21748. display: -webkit-box;
  21749. font-size: 15px;
  21750. cursor: pointer;
  21751. }
  21752. .elist_input_box {
  21753. display: flex;
  21754. align-items: flex-start;
  21755. flex-wrap: nowrap;
  21756. padding: 10px 0 15px 30px;
  21757. flex-direction: column;
  21758. }
  21759. .elist_input {
  21760. /* width: 40%; */
  21761. width: 45%;
  21762. margin: 20px;
  21763. }
  21764. .elist_input .elist_input_box input {
  21765. font: inherit;
  21766. color: currentColor;
  21767. width: 200px;
  21768. padding: 8px 14px;
  21769. display: block;
  21770. min-width: 0;
  21771. outline: none;
  21772. border: 1px solid rgba(0, 0, 0, 0.23);
  21773. border-radius: 4px;
  21774. box-sizing: border-box;
  21775. background: #fff;
  21776. margin: 0 20px 0 0;
  21777. }
  21778. .elist_input .elist_input_box span {
  21779. height: 36px;
  21780. line-height: 36px;
  21781. color: rgb(82, 82, 82);
  21782. }
  21783. .elist_input .elist_input_box .remove {
  21784. height: 20px;
  21785. width: 20px;
  21786. background-size: 100% 100%;
  21787. background-position: unset;
  21788. margin-left: 5px;
  21789. }
  21790. .elist_input_box >>> .el-rate {
  21791. display: flex;
  21792. height: 36px;
  21793. align-items: center;
  21794. }
  21795. .elist_input_box .elist_inptu_text {
  21796. min-height: 50px;
  21797. /* width: 500px;
  21798. max-height: 150px; */
  21799. width: 100%;
  21800. line-height: 50px;
  21801. color: rgb(82, 82, 82);
  21802. overflow: auto;
  21803. text-indent: 5px;
  21804. background: #f7f6f9;
  21805. border-radius: 10px;
  21806. }
  21807. .elist_input_box .elist_inptu_text input {
  21808. width: 500px;
  21809. }
  21810. .elist_input_box >>> .el-rate__icon {
  21811. font-size: 24px;
  21812. }
  21813. .isClick {
  21814. background: #4d9def;
  21815. }
  21816. .bzBox {
  21817. display: flex;
  21818. flex-direction: row;
  21819. align-items: center;
  21820. }
  21821. .bzBox .yCss {
  21822. width: 7px;
  21823. height: 7px;
  21824. background: #fff;
  21825. margin: 0 16px 0 6px;
  21826. border-radius: 50%;
  21827. border: 5px solid #3681fc;
  21828. z-index: 99;
  21829. }
  21830. .bzBox > div:nth-child(2) {
  21831. font-size: 18px;
  21832. font-weight: bold;
  21833. color: #0e1e33;
  21834. }
  21835. .navTitile {
  21836. padding: 0 0px 0 15px;
  21837. font-size: 16px;
  21838. font-weight: bold;
  21839. color: #0e1e33;
  21840. height: 40px;
  21841. line-height: 40px;
  21842. }
  21843. .isTypeOne {
  21844. width: 240px;
  21845. height: 170px;
  21846. /* border: 1px solid #f8f8f8; */
  21847. border-radius: 10px;
  21848. box-shadow: 0 0 6px 1px #dfdada;
  21849. }
  21850. .e_add_top {
  21851. display: flex;
  21852. justify-content: space-between;
  21853. padding: 10px 20px;
  21854. border-radius: 3px;
  21855. background: #fff;
  21856. }
  21857. .e_add_title2 {
  21858. display: flex;
  21859. align-items: center;
  21860. }
  21861. .e_add_title2 span {
  21862. width: 40px;
  21863. }
  21864. .e_add_title {
  21865. display: flex;
  21866. align-items: center;
  21867. color: #b8b8b8;
  21868. font-size: 18px;
  21869. position: relative;
  21870. height: 40px;
  21871. width: 100%;
  21872. }
  21873. .e_add_title span {
  21874. margin-right: 10px;
  21875. }
  21876. .e_add_title .el_input {
  21877. width: 300px;
  21878. }
  21879. .e_add_title >>> .el-input__inner {
  21880. width: 400px;
  21881. }
  21882. .e_add_btn {
  21883. }
  21884. .e_add_content {
  21885. display: flex;
  21886. width: 100%;
  21887. max-width: 650px;
  21888. height: 550px;
  21889. }
  21890. .e_add_list {
  21891. background: #fff;
  21892. height: 500px;
  21893. width: 210px;
  21894. position: relative;
  21895. margin: 15px 5px 0 0;
  21896. flex-shrink: 0;
  21897. display: flex;
  21898. flex-direction: column;
  21899. }
  21900. .e_add_list_title {
  21901. font-size: 20px;
  21902. width: 100%;
  21903. box-sizing: border-box;
  21904. padding: 15px 40px;
  21905. text-align: center;
  21906. border-bottom: 1px solid #eaeaea;
  21907. position: relative;
  21908. display: flex;
  21909. align-items: center;
  21910. justify-content: center;
  21911. height: 57px;
  21912. background: #f6f6f6;
  21913. }
  21914. .e_add_list_title span {
  21915. overflow: hidden;
  21916. white-space: nowrap;
  21917. text-overflow: ellipsis;
  21918. }
  21919. .e_add_list_title img {
  21920. position: absolute;
  21921. right: 15px;
  21922. width: 25px;
  21923. cursor: pointer;
  21924. top: 50%;
  21925. transform: translateY(-50%);
  21926. }
  21927. .e_add_list_body {
  21928. height: calc(100% - 187px);
  21929. overflow: auto;
  21930. }
  21931. .e_add_list_child {
  21932. width: 100%;
  21933. display: flex;
  21934. align-items: center;
  21935. justify-content: center;
  21936. position: relative;
  21937. box-sizing: border-box;
  21938. padding: 15px 40px;
  21939. text-align: center;
  21940. }
  21941. .e_add_list_child span {
  21942. overflow: hidden;
  21943. white-space: nowrap;
  21944. text-overflow: ellipsis;
  21945. cursor: pointer;
  21946. }
  21947. .e_add_list_child img {
  21948. position: absolute;
  21949. right: 10px;
  21950. width: 21px;
  21951. cursor: pointer;
  21952. top: 50%;
  21953. transform: translateY(-50%);
  21954. }
  21955. .e_add_list_child + .e_add_list_child {
  21956. border-top: 1px solid #eaeaea;
  21957. }
  21958. .e_add_list_child .active {
  21959. color: #409eff;
  21960. }
  21961. .e_add_list_btn {
  21962. position: absolute;
  21963. bottom: 0;
  21964. height: 50px;
  21965. background: rgb(120, 120, 254);
  21966. width: 100%;
  21967. color: #fff;
  21968. font-size: 16px;
  21969. text-align: center;
  21970. line-height: 50px;
  21971. cursor: pointer;
  21972. }
  21973. .e_add_list_detail {
  21974. position: absolute;
  21975. bottom: 0;
  21976. height: 130px;
  21977. background: rgb(120, 120, 254);
  21978. width: 100%;
  21979. color: #fff;
  21980. font-size: 16px;
  21981. display: flex;
  21982. align-items: center;
  21983. justify-content: center;
  21984. }
  21985. .e_add_list_detail textarea {
  21986. height: 90%;
  21987. width: 95%;
  21988. border: none;
  21989. resize: none;
  21990. outline: none;
  21991. padding: 5px;
  21992. box-sizing: border-box;
  21993. }
  21994. .e_add_list_pbox {
  21995. width: 100%;
  21996. max-width: 650px;
  21997. /* height: 600px; */
  21998. }
  21999. .e_add_list_pbox_title {
  22000. height: 50px;
  22001. background: #fff;
  22002. display: flex;
  22003. align-items: center;
  22004. width: 100%;
  22005. box-sizing: border-box;
  22006. padding: 0 20px;
  22007. }
  22008. .type_title {
  22009. font-size: 18px;
  22010. font-weight: 700;
  22011. }
  22012. .type_content {
  22013. font-size: 16px;
  22014. /* margin-left: 30px; */
  22015. }
  22016. .type_content span + span {
  22017. margin-left: 20px;
  22018. }
  22019. .type_content span {
  22020. cursor: pointer;
  22021. padding-bottom: 5px;
  22022. box-sizing: border-box;
  22023. }
  22024. .type_content .active {
  22025. color: #409eff;
  22026. border-bottom: 2px solid #409eff;
  22027. }
  22028. .e_add_list_pbox_content {
  22029. height: calc(100% - 50px);
  22030. display: flex;
  22031. align-items: center;
  22032. width: 100%;
  22033. background: #fff;
  22034. }
  22035. .evaCss {
  22036. display: flex;
  22037. flex-direction: row;
  22038. flex-wrap: nowrap;
  22039. align-items: flex-start;
  22040. padding: 0 0 20px;
  22041. }
  22042. .cru_line {
  22043. position: absolute;
  22044. bottom: 0px;
  22045. transition: all 0.5s;
  22046. left: 0px;
  22047. width: 125px;
  22048. margin-left: -25px;
  22049. }
  22050. .isNoMessage {
  22051. width: 20%;
  22052. margin: 25% auto 0;
  22053. }
  22054. .isNoMessage > img {
  22055. width: 100%;
  22056. height: 100%;
  22057. }
  22058. .fullStyle >>> .el-dialog__body {
  22059. height: 100% !important;
  22060. }
  22061. .fullStyle >>> .el-dialog,
  22062. .fullStyle {
  22063. width: 100% !important;
  22064. max-width: 100% !important;
  22065. height: 100% !important;
  22066. margin: 0 !important;
  22067. }
  22068. .full_diy >>> .el-dialog {
  22069. margin: 0 !important;
  22070. height: 100%;
  22071. padding: 4px;
  22072. }
  22073. .full_diy >>> .el-dialog__body {
  22074. height: calc(100% - 100px);
  22075. }
  22076. .full_diy2 >>> .el-dialog__body {
  22077. height: calc(100% - 50px);
  22078. padding: 0;
  22079. }
  22080. .switchCss {
  22081. /* width: 100%; */
  22082. display: flex;
  22083. flex-direction: row;
  22084. flex-wrap: nowrap;
  22085. align-items: center;
  22086. /* justify-content: center; */
  22087. }
  22088. .isClickNav {
  22089. /* color: #499eef; */
  22090. color: #000;
  22091. }
  22092. .commentImg {
  22093. width: 25px;
  22094. height: 25px;
  22095. cursor: pointer;
  22096. }
  22097. .commentImg > img {
  22098. width: 100%;
  22099. height: 100%;
  22100. }
  22101. .comment {
  22102. background: #f9f9f9;
  22103. border-radius: 0 0 4px 4px;
  22104. display: flex;
  22105. flex-direction: row;
  22106. flex-wrap: nowrap;
  22107. align-items: center;
  22108. justify-content: flex-end;
  22109. height: 35px;
  22110. }
  22111. .commentList {
  22112. display: flex;
  22113. flex-direction: row;
  22114. flex-wrap: nowrap;
  22115. align-items: center;
  22116. justify-content: center;
  22117. align-content: center;
  22118. /* margin-left: 15px; */
  22119. /* margin-left: 8px; */
  22120. }
  22121. .scoreImg {
  22122. width: 17px;
  22123. height: 17px;
  22124. }
  22125. .studentDetail {
  22126. display: flex;
  22127. flex-direction: row;
  22128. flex-wrap: nowrap;
  22129. /* align-items: center; */
  22130. align-items: flex-start;
  22131. }
  22132. .tx {
  22133. width: 50px;
  22134. }
  22135. .tx > img {
  22136. width: 100%;
  22137. height: 100%;
  22138. }
  22139. .nameAndTime {
  22140. display: flex;
  22141. flex-direction: column;
  22142. flex-wrap: nowrap;
  22143. align-items: flex-start;
  22144. margin-left: 10px;
  22145. }
  22146. .worksAnswer {
  22147. color: #4078dd;
  22148. margin: 10px 0;
  22149. font-size: 16px;
  22150. position: relative;
  22151. }
  22152. .worksAnswer > img {
  22153. width: 500px;
  22154. height: 300px;
  22155. object-fit: contain;
  22156. margin: 0 auto;
  22157. display: block;
  22158. }
  22159. .commentTop {
  22160. border-bottom: 1px solid #eaeaea;
  22161. padding-bottom: 10px;
  22162. }
  22163. .commentBox {
  22164. padding-top: 15px;
  22165. }
  22166. .pl {
  22167. font-size: 18px;
  22168. }
  22169. .plPerson {
  22170. width: 100%;
  22171. }
  22172. .plName {
  22173. display: flex;
  22174. flex-direction: row;
  22175. flex-wrap: nowrap;
  22176. align-items: baseline;
  22177. color: #78787a;
  22178. width: 100%;
  22179. }
  22180. .deleteComment {
  22181. cursor: pointer;
  22182. margin-left: auto;
  22183. color: #237ade;
  22184. }
  22185. .plContent {
  22186. margin-top: 5px;
  22187. }
  22188. .evalCss {
  22189. background: #fff;
  22190. font-size: 18px;
  22191. }
  22192. .nav {
  22193. color: #9d9d9d;
  22194. padding: 5px 0 15px 20px;
  22195. }
  22196. .middleBox {
  22197. padding: 5px 0 15px 20px;
  22198. }
  22199. .pfBox {
  22200. padding-bottom: 30px;
  22201. }
  22202. .nameAndrate {
  22203. display: flex;
  22204. flex-direction: row;
  22205. flex-wrap: nowrap;
  22206. align-items: center;
  22207. padding-bottom: 10px;
  22208. height: 30px;
  22209. line-height: 30px;
  22210. }
  22211. .nameAndrate > div {
  22212. margin-left: 10px;
  22213. color: #000;
  22214. height: 30px;
  22215. }
  22216. .nameAndrate >>> .el-rate__icon {
  22217. font-size: 28px !important;
  22218. }
  22219. .pfBox > div:nth-child(2) {
  22220. background: #f7f6f9;
  22221. width: 400px;
  22222. min-height: 45px;
  22223. border-radius: 10px;
  22224. font-size: 16px;
  22225. display: flex;
  22226. flex-wrap: wrap;
  22227. align-items: center;
  22228. padding: 10px 20px;
  22229. box-sizing: border-box;
  22230. color: #000;
  22231. }
  22232. .bz {
  22233. display: flex;
  22234. flex-direction: row;
  22235. flex-wrap: nowrap;
  22236. align-items: flex-start;
  22237. }
  22238. .bz > div {
  22239. padding: 0 10px;
  22240. }
  22241. .select_box2_title {
  22242. background: #fff;
  22243. border-radius: 5px;
  22244. padding: 15px 10px;
  22245. box-sizing: border-box;
  22246. margin-bottom: 10px;
  22247. display: flex;
  22248. flex-direction: row;
  22249. flex-wrap: nowrap;
  22250. align-items: center;
  22251. }
  22252. .select_box2_title > div:nth-child(2) {
  22253. margin-left: 10px;
  22254. color: #c4c4c4;
  22255. }
  22256. .select_box2_box {
  22257. display: flex;
  22258. height: 500px;
  22259. }
  22260. .select_box2_img {
  22261. width: calc(100% - 310px);
  22262. height: 100%;
  22263. overflow: auto;
  22264. background: #fff;
  22265. border-radius: 5px;
  22266. }
  22267. .select_box2_img img {
  22268. width: 100%;
  22269. }
  22270. .select_box2_answer {
  22271. background: #fff;
  22272. margin-left: 10px;
  22273. border-radius: 5px;
  22274. width: 300px;
  22275. overflow: auto;
  22276. height: 90%;
  22277. display: flex;
  22278. flex-direction: column;
  22279. align-items: flex-start;
  22280. padding-top: 10px;
  22281. box-sizing: border-box;
  22282. position: relative;
  22283. }
  22284. .select_answer_title {
  22285. padding: 0 0 15px 20px;
  22286. color: #c4c4c4;
  22287. }
  22288. .select_box2_answer_box {
  22289. margin: 0 0 10px 20px;
  22290. width: 85%;
  22291. display: flex;
  22292. flex-direction: row;
  22293. flex-wrap: nowrap;
  22294. align-items: center;
  22295. }
  22296. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22297. color: #000;
  22298. }
  22299. .upAnswerCss {
  22300. position: absolute;
  22301. bottom: 15px;
  22302. right: 15px;
  22303. }
  22304. .upAnswerCss >>> .el-button {
  22305. width: 95px;
  22306. height: 35px;
  22307. line-height: 35px;
  22308. padding: 0;
  22309. }
  22310. .rightWidthCss {
  22311. width: 60%;
  22312. display: flex;
  22313. flex-direction: row;
  22314. align-items: flex-start;
  22315. }
  22316. .rightAnswer {
  22317. display: flex;
  22318. flex-direction: row;
  22319. flex-wrap: nowrap;
  22320. align-items: center;
  22321. color: red;
  22322. margin-bottom: 31px;
  22323. }
  22324. .rightAnswerCss {
  22325. display: flex;
  22326. flex-direction: column;
  22327. flex-wrap: nowrap;
  22328. padding-top: 60px;
  22329. }
  22330. .blueCss {
  22331. color: #767de1;
  22332. margin-left: 10px;
  22333. }
  22334. .redCss {
  22335. color: red;
  22336. }
  22337. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22338. color: rgb(0 123 255) !important;
  22339. }
  22340. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22341. color: rgb(0 123 255) !important;
  22342. }
  22343. .zuoyeYulan {
  22344. padding-top: 0;
  22345. font-size: 18px;
  22346. display: flex;
  22347. align-items: flex-end;
  22348. }
  22349. .buttonA {
  22350. margin-left: 10px;
  22351. padding: 0;
  22352. }
  22353. .displayBox {
  22354. margin-bottom: 10px;
  22355. display: block;
  22356. border-bottom: 3px solid #eee;
  22357. display: flex;
  22358. align-items: center;
  22359. }
  22360. .easy_comment {
  22361. width: calc(100% - 90px);
  22362. margin-left: 10px;
  22363. display: flex;
  22364. flex-wrap: wrap;
  22365. }
  22366. .easy_comment > div {
  22367. border: 1px solid #4a4a4a;
  22368. color: #666;
  22369. border-radius: 15px;
  22370. padding: 5px 10px;
  22371. font-size: 16px;
  22372. margin-bottom: 10px;
  22373. margin-right: 5px;
  22374. cursor: pointer;
  22375. }
  22376. .easy_comment div:hover {
  22377. border: 1px solid #f7ba2a;
  22378. color: #c69217;
  22379. }
  22380. .xuan_right_box {
  22381. padding: 10px 0;
  22382. background: #f0f4fa;
  22383. margin: 0 15px 0 25px;
  22384. border-bottom-left-radius: 5px;
  22385. border-bottom-right-radius: 5px;
  22386. width: 91.5%;
  22387. }
  22388. .tool_right_box {
  22389. display: flex;
  22390. align-items: center;
  22391. }
  22392. .tool_right_box + .tool_right_box {
  22393. margin-top: 10px;
  22394. }
  22395. .right_box_xuan {
  22396. border-radius: 5px;
  22397. padding: 5px;
  22398. margin-left: 10px;
  22399. min-width: 85px;
  22400. background: #fff;
  22401. color: #0061ff;
  22402. border: 1px solid #0061ff;
  22403. font-size: 14px;
  22404. }
  22405. .pButton:hover {
  22406. opacity: 1 !important;
  22407. }
  22408. .pButton {
  22409. position: fixed;
  22410. text-align: center;
  22411. cursor: pointer;
  22412. z-index: 999;
  22413. right: 20px;
  22414. top: 110px;
  22415. width: 50px;
  22416. height: 50px;
  22417. display: flex;
  22418. align-items: center;
  22419. justify-content: center;
  22420. border-radius: 5px;
  22421. }
  22422. .pzClass {
  22423. width: calc(100% - 340px);
  22424. }
  22425. .newDialogCss {
  22426. /* position: fixed;
  22427. right: 5%;
  22428. top: 50%;
  22429. width: 340px;
  22430. transform: translateY(-50%);
  22431. height: 60%;
  22432. box-shadow: 0px 0 8px 0px #555555;
  22433. border-radius: 15px;
  22434. z-index: 999; */
  22435. position: fixed;
  22436. right: 20px;
  22437. top: 101px;
  22438. width: 330px;
  22439. height: calc(100% - 80px);
  22440. z-index: 999;
  22441. background: #fff;
  22442. border-top-right-radius: 0px;
  22443. border-bottom-right-radius: 0px;
  22444. overflow: hidden;
  22445. }
  22446. .newDialogCss>.scoreList{
  22447. width:100%;
  22448. height:100%;
  22449. box-sizing:border-box;
  22450. padding:10px 15px;
  22451. overflow:auto;
  22452. padding-bottom:80px;
  22453. }
  22454. .pzTop {
  22455. color: #fff;
  22456. background: #000;
  22457. display: flex;
  22458. flex-direction: row;
  22459. flex-wrap: nowrap;
  22460. align-items: center;
  22461. justify-content: space-between;
  22462. height: 40px;
  22463. border-radius: 15px 15px 0 0;
  22464. user-select: none;
  22465. }
  22466. .pzTop2 .checkbox {
  22467. display: flex;
  22468. align-items: center;
  22469. padding: 5px 10px;
  22470. flex: 0 0 auto;
  22471. font-weight: bold;
  22472. border-bottom: 1px solid #eee;
  22473. justify-content: space-between;
  22474. }
  22475. .checkbox>.cb-tabList{
  22476. display:flex;
  22477. align-items:center;
  22478. }
  22479. .cb-tabList>div{
  22480. margin-right:20px;
  22481. font-weight:400;
  22482. cursor:pointer;
  22483. }
  22484. .cb-tabList>.cb-tabItem{
  22485. color:#1684FC;
  22486. position:relative;
  22487. }
  22488. .cb-tabItem::after{
  22489. content:"";
  22490. width:100%;
  22491. height:2px;
  22492. background:#1684FC;
  22493. position:absolute;
  22494. bottom:-5px;
  22495. left:0
  22496. }
  22497. .pzTop2 .check {
  22498. text-align: center;
  22499. cursor: pointer;
  22500. box-sizing: border-box;
  22501. display: flex;
  22502. }
  22503. .pzTop2 img {
  22504. width: 25px;
  22505. cursor: pointer;
  22506. }
  22507. .pzTop > div:nth-child(1) {
  22508. padding-left: 10px;
  22509. }
  22510. .pzTop > div:nth-child(2) {
  22511. width: 15px;
  22512. height: 15px;
  22513. padding-right: 10px;
  22514. cursor: pointer;
  22515. }
  22516. .pzTop > div:nth-child(2) > img {
  22517. width: 100%;
  22518. height: 100%;
  22519. }
  22520. .pzBox,
  22521. .noPzBox {
  22522. height: calc(100% - 60px);
  22523. /* background: #ededed; */
  22524. background: #fff;
  22525. /* border-radius: 0 0 15px 15px; */
  22526. }
  22527. .noPzBox {
  22528. display: flex;
  22529. flex-direction: column;
  22530. flex-wrap: nowrap;
  22531. justify-content: center;
  22532. align-items: center;
  22533. }
  22534. .pzList {
  22535. background: #f7f7f7;
  22536. width: 90%;
  22537. margin: 0 auto 15px;
  22538. border-radius: 5px;
  22539. }
  22540. .pzNavTop {
  22541. display: flex;
  22542. flex-direction: row;
  22543. flex-wrap: nowrap;
  22544. padding: 10px 10px 0 10px;
  22545. align-items: center;
  22546. }
  22547. .pzDelete {
  22548. cursor: pointer;
  22549. margin-left: auto;
  22550. font-size: 14px;
  22551. color: #afafaf;
  22552. }
  22553. .pzNavTop > div:nth-child(1) {
  22554. background: #3760af;
  22555. width: 35px;
  22556. height: 35px;
  22557. color: #fff;
  22558. text-align: center;
  22559. line-height: 35px;
  22560. border-radius: 50%;
  22561. font-size: 14px;
  22562. }
  22563. .pzNavTop > div:nth-child(2) {
  22564. font-size: 18px;
  22565. color: #959595;
  22566. margin-left: 5px;
  22567. }
  22568. .pzContent {
  22569. padding: 10px;
  22570. word-break: break-word;
  22571. }
  22572. .pzContent audio {
  22573. width: 100%;
  22574. }
  22575. .pzContent audio::-webkit-media-controls-panel {
  22576. background: #fff;
  22577. }
  22578. .pzContent >>> img {
  22579. max-width: 100%;
  22580. }
  22581. .pzListBox {
  22582. padding-top: 15px;
  22583. height: calc(100% - 110px);
  22584. overflow: auto;
  22585. }
  22586. .addPzButton {
  22587. position: relative;
  22588. margin-top: 3px;
  22589. width: 100%;
  22590. }
  22591. .addPzButton .img1 {
  22592. position: absolute;
  22593. top: 50%;
  22594. right: 25px;
  22595. transform: translateY(-50%);
  22596. height: 100%;
  22597. display: flex;
  22598. align-items: center;
  22599. }
  22600. .addPzButton .img1 div {
  22601. display: flex;
  22602. }
  22603. .addPzButton .img1 div img {
  22604. width: 28px;
  22605. margin-left: 10px;
  22606. cursor: pointer;
  22607. }
  22608. .addPzButton .img1 div span {
  22609. font-size: 14px;
  22610. margin: 4px 0 0 3px;
  22611. color: #afafaf;
  22612. }
  22613. .addPz {
  22614. background: #4b79ce;
  22615. width: 100px;
  22616. color: #fff;
  22617. font-size: 12px;
  22618. height: 30px;
  22619. margin: 0 auto;
  22620. text-align: center;
  22621. line-height: 30px;
  22622. border-radius: 10px;
  22623. cursor: pointer;
  22624. }
  22625. .addDialogCss {
  22626. position: fixed;
  22627. width: 600px;
  22628. height: 70%;
  22629. min-height: 450px;
  22630. box-shadow: 0px 0 8px 0px #555555;
  22631. border-radius: 15px;
  22632. z-index: 999;
  22633. left: 50%;
  22634. top: 50%;
  22635. margin: -18% 0 0 -300px;
  22636. }
  22637. .teacherPz {
  22638. display: flex;
  22639. flex-direction: row;
  22640. align-items: center;
  22641. flex-wrap: nowrap;
  22642. }
  22643. .teacherPzImg {
  22644. width: 30px;
  22645. height: 30px;
  22646. }
  22647. .teacherPzImg > img {
  22648. width: 100%;
  22649. height: 100%;
  22650. }
  22651. .addPzBox {
  22652. height: calc(100% - 40px);
  22653. background: #ededed;
  22654. border-bottom-left-radius: 15px;
  22655. border-bottom-right-radius: 15px;
  22656. }
  22657. .pzAudioClass {
  22658. margin: 15px 14px;
  22659. background: #fff;
  22660. height: 100%;
  22661. display: flex;
  22662. justify-content: center;
  22663. align-items: center;
  22664. }
  22665. .pzConText {
  22666. width: 95%;
  22667. height: 100%;
  22668. margin: 10px auto 0;
  22669. border: none;
  22670. background: #fff;
  22671. border-radius: 0px;
  22672. }
  22673. .pzConText >>> .text {
  22674. height: calc(100% - 82px);
  22675. }
  22676. .addTextCss {
  22677. background: #4b79ce;
  22678. width: 80px;
  22679. height: 30px;
  22680. text-align: center;
  22681. color: #fff;
  22682. line-height: 30px;
  22683. border-radius: 10px;
  22684. margin: 10px auto 0;
  22685. cursor: pointer;
  22686. }
  22687. .pzConText:focus-visible {
  22688. border: none !important;
  22689. }
  22690. .maxWidth {
  22691. width: 1000px;
  22692. }
  22693. .noPz {
  22694. width: 150px;
  22695. margin: 0 auto 20%;
  22696. }
  22697. .noPz > img {
  22698. width: 100%;
  22699. height: 100%;
  22700. }
  22701. .timeAndReply {
  22702. display: flex;
  22703. flex-direction: row;
  22704. flex-wrap: nowrap;
  22705. justify-content: space-between;
  22706. align-items: center;
  22707. font-size: 14px;
  22708. box-sizing: border-box;
  22709. padding: 0 10px 10px 0px;
  22710. }
  22711. .timeAndReply .time {
  22712. color: #bfbfbf;
  22713. padding: 0 0 0 10px;
  22714. box-sizing: border-box;
  22715. }
  22716. .timeAndReply > div:last-child {
  22717. cursor: pointer;
  22718. color: #777;
  22719. }
  22720. /* table 样式 */
  22721. .cont >>> table {
  22722. border-top: 1px solid #ccc;
  22723. border-left: 1px solid #ccc;
  22724. }
  22725. .cont >>> table td,
  22726. .cont >>> table th {
  22727. border-bottom: 1px solid #ccc;
  22728. border-right: 1px solid #ccc;
  22729. /* padding: 20px 5px; */
  22730. padding: 5px 10px;
  22731. max-width: 0px;
  22732. height: 30px;
  22733. vertical-align: baseline;
  22734. box-sizing: border-box;
  22735. }
  22736. .cont >>> table th {
  22737. border-bottom: 2px solid #ccc;
  22738. text-align: center;
  22739. }
  22740. /* blockquote 样式 */
  22741. .cont >>> blockquote {
  22742. display: block;
  22743. border-left: 8px solid #d0e5f2;
  22744. padding: 5px 10px;
  22745. margin: 10px 0;
  22746. line-height: 1.4;
  22747. font-size: 100%;
  22748. background-color: #f1f1f1;
  22749. }
  22750. /* code 样式 */
  22751. .cont >>> code {
  22752. display: inline-block;
  22753. /* *display: inline; */
  22754. zoom: 1;
  22755. background-color: #f1f1f1;
  22756. border-radius: 3px;
  22757. padding: 3px 5px;
  22758. margin: 0 3px;
  22759. }
  22760. .cont >>> pre code {
  22761. display: block;
  22762. }
  22763. /* ul ol 样式 */
  22764. .cont >>> ul,
  22765. ol {
  22766. margin: 10px 0 10px 20px;
  22767. }
  22768. .addPzCheck {
  22769. display: flex;
  22770. flex-direction: row;
  22771. flex-wrap: nowrap;
  22772. padding: 10px 15px 0;
  22773. }
  22774. .addPzCheck span {
  22775. cursor: pointer;
  22776. padding-bottom: 5px;
  22777. font-weight: bold;
  22778. }
  22779. .addPzCheck span + span {
  22780. margin-left: 10px;
  22781. }
  22782. .addPzCheck .isChooseActive {
  22783. color: #3e88f4;
  22784. border-bottom: 2px solid #2f80f3;
  22785. }
  22786. /* code 样式 */
  22787. .cont {
  22788. /* -webkit-user-modify: read-write; */
  22789. overflow-wrap: break-word;
  22790. -webkit-line-break: after-white-space;
  22791. word-break: break-word;
  22792. white-space: pre-line;
  22793. }
  22794. .scoreBox,
  22795. .scoreDetailBox {
  22796. display: flex;
  22797. align-items: center;
  22798. justify-content: flex-start;
  22799. margin-top: 20px;
  22800. font-size: 18px;
  22801. width: 100%;
  22802. }
  22803. .scoreBox .t,
  22804. .scoreDetailBox .t {
  22805. margin-right: 10px;
  22806. width: 100px;
  22807. text-align: right;
  22808. }
  22809. .scoreDetailBox {
  22810. align-items: flex-start;
  22811. }
  22812. .scoreDetailBox >>> .el-textarea {
  22813. width: calc(100% - 200px);
  22814. }
  22815. .scoreBox >>> .el-input {
  22816. width: 130px;
  22817. font-size: 38px;
  22818. }
  22819. .scoreBox >>> .el-input__inner {
  22820. height: 60px;
  22821. }
  22822. .answerScore {
  22823. position: absolute;
  22824. top: 10px;
  22825. right: 10px;
  22826. background: #0000008f;
  22827. border-radius: 5px;
  22828. padding: 3px 5px;
  22829. font-size: 14px;
  22830. color: #fff;
  22831. cursor: pointer;
  22832. }
  22833. .open_box .switch_box {
  22834. width: 100%;
  22835. margin: 0 auto;
  22836. display: flex;
  22837. justify-content: space-between;
  22838. }
  22839. .open_box .switch_box + .switch_box {
  22840. margin-top: 10px;
  22841. }
  22842. .deleteImg,.deleteImg1 {
  22843. width: 25px !important;
  22844. height: 25px !important;
  22845. cursor: pointer;
  22846. position: absolute;
  22847. top: 10px;
  22848. right: 10px;
  22849. }
  22850. .deleteImg2 {
  22851. width: 23px !important;
  22852. height: 23px !important;
  22853. top: 5px;
  22854. right: 5px;
  22855. }
  22856. .deleteImg1{
  22857. width: 23px !important;
  22858. height: 23px !important;
  22859. top: 5px !important;
  22860. right: 30px !important;
  22861. }
  22862. .rightW {
  22863. right: 40px;
  22864. }
  22865. .drawPBox {
  22866. display: flex;
  22867. flex-direction: column;
  22868. position: relative;
  22869. }
  22870. .drawPBox span {
  22871. font-size: 18px;
  22872. color: #606266;
  22873. padding-bottom: 10px;
  22874. margin: 10px 0;
  22875. border-bottom: 1px solid #eaeaea;
  22876. }
  22877. .drawPBox img {
  22878. width: 500px;
  22879. height: 300px;
  22880. object-fit: contain;
  22881. cursor: pointer;
  22882. margin: 0 auto;
  22883. }
  22884. .sentenBox {
  22885. background: #fff;
  22886. height: 450px;
  22887. overflow: auto;
  22888. background-image: url("../assets/icon/conSentences/stuBg.png");
  22889. background-position: 102%;
  22890. background-repeat: no-repeat;
  22891. background-size: 60%;
  22892. }
  22893. .addSen {
  22894. background: #409efe;
  22895. width: 90px;
  22896. color: #fff;
  22897. height: 35px;
  22898. text-align: center;
  22899. line-height: 35px;
  22900. border-radius: 5px;
  22901. float: right;
  22902. margin: 10px 20px 0 0;
  22903. cursor: pointer;
  22904. }
  22905. .sentenTop {
  22906. display: flex;
  22907. flex-direction: row;
  22908. flex-wrap: nowrap;
  22909. align-items: center;
  22910. padding: 55px 0 0 20px;
  22911. box-sizing: border-box;
  22912. }
  22913. .sentenTop > div:nth-child(2) {
  22914. width: 300px;
  22915. margin: 0 15px;
  22916. }
  22917. .sentenTop > div:nth-child(3) {
  22918. background: #409efe;
  22919. color: #fff;
  22920. width: 65px;
  22921. height: 35px;
  22922. text-align: center;
  22923. line-height: 35px;
  22924. border-radius: 5px;
  22925. cursor: pointer;
  22926. }
  22927. .cardList,
  22928. .cardList1 {
  22929. padding: 10px 0 10px 0;
  22930. display: flex;
  22931. flex-direction: row;
  22932. flex-wrap: wrap;
  22933. align-items: center;
  22934. box-sizing: border-box;
  22935. border-bottom: 1px solid #f4f4f4;
  22936. width: 98%;
  22937. margin: 0 auto;
  22938. min-width: 60%;
  22939. max-width: 85%;
  22940. }
  22941. .cardList1 {
  22942. padding: 10px 0 10px 10px !important;
  22943. margin: 0 !important;
  22944. }
  22945. .cardBox {
  22946. display: flex;
  22947. flex-direction: row;
  22948. flex-wrap: wrap;
  22949. align-items: center;
  22950. align-content: center;
  22951. }
  22952. .cardBox > div {
  22953. margin-bottom: 10px;
  22954. }
  22955. .isCard,
  22956. .isChooseCard,
  22957. .noCard,
  22958. .isCard1 {
  22959. min-width: 130px;
  22960. width: auto;
  22961. height: 60px;
  22962. text-align: center;
  22963. line-height: 60px;
  22964. font-size: 20px;
  22965. cursor: pointer;
  22966. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22967. background-size: cover;
  22968. transition: all 2s;
  22969. margin-right: 20px;
  22970. background-size: 100% 100%;
  22971. padding: 0 20px;
  22972. box-sizing: border-box;
  22973. }
  22974. .isCard > div,
  22975. .noCard > div,
  22976. .isCard1 > div {
  22977. white-space: nowrap;
  22978. overflow: hidden;
  22979. text-overflow: ellipsis;
  22980. width: 100%;
  22981. margin: 0 auto;
  22982. }
  22983. .noCard {
  22984. background-image: none;
  22985. }
  22986. .isCard1 {
  22987. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22988. }
  22989. .isChooseCard {
  22990. background-image: none;
  22991. border: 1px dashed #b9b9b9;
  22992. border-radius: 10px;
  22993. }
  22994. .card {
  22995. width: 130px;
  22996. height: 60px;
  22997. }
  22998. .card > img {
  22999. width: 100%;
  23000. height: 100%;
  23001. }
  23002. .rightCardBox {
  23003. margin: 10px 0 0 10px;
  23004. }
  23005. .rightCardBox > div:nth-child(1) {
  23006. margin-bottom: 10px;
  23007. }
  23008. .cardCss {
  23009. display: flex;
  23010. flex-direction: column;
  23011. flex-wrap: nowrap;
  23012. align-items: center;
  23013. border-bottom: 3px solid #b4c3d3;
  23014. padding: 0 0 5px 0;
  23015. margin-right: 10px;
  23016. }
  23017. .cardCss > div:nth-child(2) {
  23018. background: #5b7b9d;
  23019. color: #fff;
  23020. width: 20px;
  23021. height: 20px;
  23022. border-radius: 50%;
  23023. text-align: center;
  23024. line-height: 20px;
  23025. }
  23026. .isWrong {
  23027. display: flex;
  23028. flex-direction: row;
  23029. flex-wrap: nowrap;
  23030. align-content: center;
  23031. align-items: center;
  23032. }
  23033. .answerRight {
  23034. width: 25%;
  23035. }
  23036. .isTj {
  23037. display: flex;
  23038. flex-direction: row;
  23039. flex-wrap: nowrap;
  23040. align-items: center;
  23041. }
  23042. .isTj > div:nth-child(2) {
  23043. color: #727070;
  23044. margin-left: 10px;
  23045. }
  23046. .isTjImg {
  23047. width: 30px;
  23048. height: 30px;
  23049. }
  23050. .isTjImg > img {
  23051. width: 100%;
  23052. height: 100%;
  23053. }
  23054. .cardAnswerBox {
  23055. font-size: 18px;
  23056. width: 97%;
  23057. border: 5px;
  23058. padding: 0;
  23059. border-radius: 5px;
  23060. margin: 10px auto;
  23061. word-break: break-word;
  23062. }
  23063. .w_name {
  23064. margin-bottom: 10px;
  23065. }
  23066. .w_name span {
  23067. font-size: 16px;
  23068. }
  23069. .w_teachert {
  23070. width: 50px !important;
  23071. position: absolute;
  23072. height: auto !important;
  23073. z-index: 10;
  23074. right: 25px;
  23075. top: -25px;
  23076. }
  23077. .group_workBox {
  23078. }
  23079. .group_workBox + .group_workBox {
  23080. margin-top: 20px;
  23081. }
  23082. .group_box {
  23083. padding-bottom: 20px;
  23084. border-bottom: 2px solid #f0f0f0;
  23085. margin-top: 10px;
  23086. }
  23087. .group_title {
  23088. display: flex;
  23089. align-items: center;
  23090. justify-content: space-between;
  23091. width: 95%;
  23092. }
  23093. .group_name {
  23094. background-image: url(../assets/icon/groupN.png);
  23095. width: 220px;
  23096. background-size: 100% 100%;
  23097. height: 67px;
  23098. padding: 0 20px 0 43px;
  23099. box-sizing: border-box;
  23100. line-height: 63px;
  23101. color: #fff;
  23102. overflow: hidden;
  23103. white-space: nowrap;
  23104. text-overflow: ellipsis;
  23105. }
  23106. .group_work {
  23107. width: 100%;
  23108. padding: 0 10px;
  23109. box-sizing: border-box;
  23110. display: flex;
  23111. flex-wrap: wrap;
  23112. }
  23113. .g_d_box {
  23114. display: flex;
  23115. flex-flow: wrap;
  23116. justify-content: space-around;
  23117. }
  23118. .g_d_box .isChair {
  23119. background-image: url(../assets/avatar.png) !important;
  23120. }
  23121. .g_d_group {
  23122. width: 500px;
  23123. margin-bottom: 80px;
  23124. }
  23125. .g_d_group_chair {
  23126. display: flex;
  23127. align-items: center;
  23128. justify-content: center;
  23129. }
  23130. .g_d_group_chair > div + div {
  23131. margin-left: 30px;
  23132. }
  23133. .g_d_group_chair > div,
  23134. .g_d_group_chair2 > div {
  23135. display: flex;
  23136. flex-direction: column;
  23137. align-items: center;
  23138. }
  23139. .g_d_group_chair > div > span:nth-child(1),
  23140. .g_d_group_chair2 > div > span:nth-child(1) {
  23141. background-image: url(../assets/icon/chair.png);
  23142. width: 50px;
  23143. height: 50px;
  23144. display: block;
  23145. background-size: 100% 100%;
  23146. }
  23147. .g_d_group_tableBox {
  23148. display: flex;
  23149. align-items: center;
  23150. justify-content: center;
  23151. }
  23152. .g_d_group_chair2 {
  23153. display: flex;
  23154. flex-direction: column;
  23155. align-items: center;
  23156. justify-content: center;
  23157. }
  23158. .g_d_group_chair2 > div + div {
  23159. margin-top: 10px;
  23160. }
  23161. .g_d_group_table {
  23162. background-image: url(../assets/icon/groupBg.png);
  23163. width: 354px;
  23164. height: 196px;
  23165. background-size: 100% 100%;
  23166. display: flex;
  23167. align-items: center;
  23168. justify-content: center;
  23169. flex-direction: column;
  23170. color: #fff;
  23171. }
  23172. .g_d_group_table > div:nth-child(1) {
  23173. font-size: 24px;
  23174. margin-bottom: 5px;
  23175. }
  23176. .g_d_group_table > div:nth-child(2) div {
  23177. cursor: pointer;
  23178. background: #2e77bf;
  23179. padding: 4px 10px;
  23180. border-radius: 5px;
  23181. }
  23182. .groupBox {
  23183. }
  23184. .groupContent + .groupContent {
  23185. margin-top: 30px;
  23186. }
  23187. .groupTitle {
  23188. font-size: 24px;
  23189. color: rgb(80, 80, 80);
  23190. margin-bottom: 20px;
  23191. }
  23192. .groupName {
  23193. display: flex;
  23194. align-items: center;
  23195. }
  23196. .groupn {
  23197. font-size: 15px;
  23198. margin-right: 10px;
  23199. }
  23200. .groupName + .groupName {
  23201. margin-top: 15px;
  23202. }
  23203. .groupBtn {
  23204. margin-left: 10px;
  23205. }
  23206. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23207. text-align: left;
  23208. }
  23209. .g_d_btnBox {
  23210. display: flex;
  23211. justify-content: flex-end;
  23212. align-items: center;
  23213. margin-bottom: 20px;
  23214. }
  23215. .updateChair {
  23216. position: relative;
  23217. }
  23218. .updateChairBtn {
  23219. position: absolute;
  23220. width: 50px;
  23221. height: 50px;
  23222. overflow: hidden;
  23223. /* display: flex; */
  23224. align-items: center;
  23225. justify-content: center;
  23226. background: #00000087;
  23227. color: #fff;
  23228. border-radius: 50px;
  23229. display: none;
  23230. cursor: pointer;
  23231. }
  23232. .updateChair:hover .updateChairBtn {
  23233. display: flex;
  23234. }
  23235. .group_staic_box {
  23236. display: flex;
  23237. padding: 30px 40px 10px;
  23238. flex-wrap: wrap;
  23239. }
  23240. .group_staic {
  23241. /* width: 50%; */
  23242. margin-bottom: 20px;
  23243. display: flex;
  23244. align-items: center;
  23245. }
  23246. .group_staic span:nth-child(1) {
  23247. width: 150px;
  23248. text-align: right;
  23249. margin-right: 15px;
  23250. }
  23251. .group_staic span:nth-child(2) {
  23252. background: rgb(0 123 255);
  23253. color: #fff;
  23254. border-radius: 5px;
  23255. padding: 5px;
  23256. }
  23257. .codeFileBox {
  23258. height: 300px;
  23259. background: #fff;
  23260. display: flex;
  23261. align-items: center;
  23262. justify-content: center;
  23263. }
  23264. .codeFileBox img {
  23265. width: 200px;
  23266. margin: 0;
  23267. height: auto;
  23268. }
  23269. .codeFileBox div {
  23270. background: rgb(80, 142, 226);
  23271. color: #fff;
  23272. padding: 10px 20px;
  23273. border-radius: 25px;
  23274. cursor: pointer;
  23275. margin-left: 15px;
  23276. }
  23277. .radioBox {
  23278. display: flex;
  23279. flex-direction: column;
  23280. flex-wrap: nowrap;
  23281. align-items: flex-start;
  23282. }
  23283. .radioBox > div {
  23284. margin: 10px 0 0 10px;
  23285. }
  23286. /* .radioBox >>> .el-radio__input,
  23287. .radioBox >>> .el-checkbox__inner {
  23288. margin-left: 10px;
  23289. } */
  23290. .radioBox >>> .el-radio__label,
  23291. .radioBox >>> .el-checkbox__label {
  23292. display: flex;
  23293. align-items: center;
  23294. width: 100%;
  23295. }
  23296. .radioBox >>> .el-radio__label > span {
  23297. width: 100%;
  23298. display: -webkit-box;
  23299. overflow: hidden;
  23300. white-space: normal !important;
  23301. text-overflow: ellipsis;
  23302. word-wrap: break-word;
  23303. }
  23304. .inImg {
  23305. width: 100px;
  23306. cursor: pointer;
  23307. }
  23308. .inImg > img {
  23309. width: 100%;
  23310. height: 100%;
  23311. object-fit: cover;
  23312. }
  23313. .timuImgBox {
  23314. margin: 10px 0;
  23315. display: flex;
  23316. flex-direction: column;
  23317. flex-wrap: wrap;
  23318. align-items: flex-start;
  23319. }
  23320. .timuImg {
  23321. width: 150px;
  23322. margin: 5px 0;
  23323. cursor: pointer;
  23324. }
  23325. .timuImg > img {
  23326. width: 100%;
  23327. height: 100%;
  23328. object-fit: cover;
  23329. }
  23330. .worksTop {
  23331. display: flex;
  23332. flex-direction: row;
  23333. align-items: flex-end;
  23334. }
  23335. .worksTitle{
  23336. display: flex;
  23337. flex-direction: row;
  23338. flex-wrap: nowrap;
  23339. align-items: center;
  23340. }
  23341. .worksTitle::before,.worksTop::before{
  23342. content: '';
  23343. display: block;
  23344. width: 3px;
  23345. height: 20px;
  23346. background: #0061FF;
  23347. border-radius: 3px;
  23348. margin: 0 5px 0 0;
  23349. }
  23350. .corOpen {
  23351. margin: 0 0 0 10px;
  23352. font-size: 14px;
  23353. cursor: pointer;
  23354. color: #505050;
  23355. }
  23356. .corOpen:hover {
  23357. color: #499eef;
  23358. }
  23359. .navCorOpenBox {
  23360. display: flex;
  23361. flex-direction: row;
  23362. align-items: center;
  23363. justify-content: space-between;
  23364. height: 55px;
  23365. background: #ffffff;
  23366. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23367. border-radius: 8px 8px 0px 0px;
  23368. z-index: 9;
  23369. position: relative;
  23370. }
  23371. .navCorOpen {
  23372. padding-right: 15px;
  23373. cursor: pointer;
  23374. width: 45px;
  23375. display: flex;
  23376. }
  23377. .navCorOpen > img {
  23378. width: 100%;
  23379. height: 100%;
  23380. }
  23381. .mlImg {
  23382. width: 40px !important;
  23383. min-width: 40px;
  23384. cursor: pointer;
  23385. transform: rotate(180deg);
  23386. }
  23387. .mlImg > img {
  23388. width: 100%;
  23389. height: 100%;
  23390. }
  23391. .navLeftCss {
  23392. width: 100% !important;
  23393. left: 0 !important;
  23394. }
  23395. .isContentCss {
  23396. width: 100% !important;
  23397. }
  23398. .isAllWidth {
  23399. width: 100% !important;
  23400. }
  23401. .group_switch {
  23402. margin-right: 10px;
  23403. height: 30px;
  23404. display: flex;
  23405. align-items: center;
  23406. }
  23407. .group_switch > span {
  23408. margin-right: 5px;
  23409. }
  23410. .fileC_box {
  23411. padding-top: 15px;
  23412. }
  23413. .fileC_box > .fileC_title {
  23414. padding: 10px 5px 14px 10px;
  23415. border-top: 1px solid #cad1dc;
  23416. font-size: 14px;
  23417. font-weight: 400;
  23418. color: #cad1dc;
  23419. width: calc(100% - 20px);
  23420. margin: 0 auto;
  23421. box-sizing: border-box;
  23422. }
  23423. .pl_select_box {
  23424. height: 40px;
  23425. line-height: 40px;
  23426. width: 100%;
  23427. cursor: pointer;
  23428. padding: 0 20px;
  23429. box-sizing: border-box;
  23430. border-radius: 5px;
  23431. border: 1px solid #d6d6d6;
  23432. white-space: nowrap;
  23433. overflow: hidden;
  23434. text-overflow: ellipsis;
  23435. background: #fff;
  23436. text-align: left;
  23437. }
  23438. .newButton {
  23439. width: 102px;
  23440. height: 36px;
  23441. background: #e7ebf1;
  23442. border-radius: 4px;
  23443. color: #0e1e33;
  23444. font-weight: 400;
  23445. font-size: 14px;
  23446. border: none;
  23447. float: right;
  23448. margin-left: 10px;
  23449. }
  23450. .el-table >>> .even_row {
  23451. background-color: #f0f4fa;
  23452. }
  23453. .stageBoxCss,
  23454. .stageBoxIsCss {
  23455. display: flex;
  23456. flex-direction: row;
  23457. flex-wrap: nowrap;
  23458. align-items: center;
  23459. height: 50px;
  23460. border-bottom: 1px solid #e2f5fc;
  23461. cursor: pointer;
  23462. width: 100%;
  23463. }
  23464. .stageBoxIsCss {
  23465. background: #0061ff;
  23466. color: #fff;
  23467. border-radius: 8px;
  23468. }
  23469. .stageItemTitle {
  23470. display: flex;
  23471. flex-direction: row;
  23472. flex-wrap: nowrap;
  23473. align-items: center;
  23474. margin-left: 15px;
  23475. width: calc(100% - 50px);
  23476. }
  23477. .stageNav{
  23478. /* font-weight: bold; */
  23479. }
  23480. .stageItemTitle > div:first-child {
  23481. min-width: 55px;
  23482. }
  23483. .stageItemTitle > div:last-child {
  23484. max-width: 242px;
  23485. white-space: nowrap;
  23486. overflow: hidden;
  23487. text-overflow: ellipsis;
  23488. word-break: break-word;
  23489. width: calc(100% - 55px);
  23490. }
  23491. .closeTri,
  23492. .closeTri1 {
  23493. min-width: 15px;
  23494. width: 15px;
  23495. height: 15px;
  23496. transition: all .5s;
  23497. }
  23498. .closeTri1 {
  23499. padding-left: 10px;
  23500. cursor: pointer;
  23501. }
  23502. .closeTri > img,
  23503. .closeTri1 > img {
  23504. width: 100%;
  23505. height: 100%;
  23506. /* transition: all .5s; */
  23507. }
  23508. .noToolBlue {
  23509. min-width: 10px;
  23510. width: 10px;
  23511. height: 10px;
  23512. background: #0061ff;
  23513. border-radius: 50%;
  23514. margin-left: 13px;
  23515. }
  23516. .stageChild,
  23517. .toolChild {
  23518. height: 0;
  23519. overflow: hidden;
  23520. transition: all 0.5s;
  23521. }
  23522. .toolChild {
  23523. /* margin: 0 0 0 17px;
  23524. padding: 0 0 0 20px;
  23525. border-left: 1px solid #d7d7d7; */
  23526. }
  23527. .toolChild > div + div{
  23528. margin-top:5px;
  23529. }
  23530. .gjCss {
  23531. display: flex;
  23532. flex-direction: row;
  23533. flex-wrap: nowrap;
  23534. align-items: center;
  23535. padding: 10px 0 10px 40px;
  23536. box-sizing: border-box;
  23537. font-size: 14px;
  23538. cursor: pointer;
  23539. border-radius:5px;
  23540. }
  23541. .toolChild > div {
  23542. position: relative;
  23543. width:100%;
  23544. }
  23545. .toolChild > div::before {
  23546. /* content: "";
  23547. width: 15px;
  23548. height: 1px;
  23549. background: #cad1dc;
  23550. position: absolute;
  23551. top: 24px;
  23552. left: -20px;
  23553. display: block; */
  23554. }
  23555. .isGjCss {
  23556. /* color: #0061ff; */
  23557. color:#fff;
  23558. background: rgb(55, 129, 252);
  23559. /* background-color: #e0eafb !important;
  23560. color: #0061ff !important; */
  23561. }
  23562. .navItem {
  23563. background: #ffffff;
  23564. border-radius: 4px;
  23565. width: 100%;
  23566. margin: 10px auto;
  23567. position: relative;
  23568. height: 40px;
  23569. display: flex;
  23570. flex-direction: row;
  23571. flex-wrap: nowrap;
  23572. align-items: center;
  23573. }
  23574. .navItemList {
  23575. display: flex;
  23576. flex-direction: row;
  23577. flex-wrap: nowrap;
  23578. align-items: center;
  23579. padding: 0 13px;
  23580. cursor: pointer;
  23581. width: calc(100% - 60px);
  23582. height: 100%;
  23583. }
  23584. .navItemList > div:first-child {
  23585. min-width: 60px;
  23586. }
  23587. .navItemList > div:last-child {
  23588. width: calc(100% - 80px);
  23589. white-space: nowrap;
  23590. overflow: hidden;
  23591. text-overflow: ellipsis;
  23592. word-break: break-word;
  23593. }
  23594. /* .isItemList > div {
  23595. color: #fff !important;
  23596. } */
  23597. .tool_work_box {
  23598. width: 100%;
  23599. padding: 0 37px 0;
  23600. box-sizing: border-box;
  23601. }
  23602. .tool_box {
  23603. width: 100%;
  23604. padding: 0 0 0 20px;
  23605. }
  23606. .tool_type_box {
  23607. display: flex;
  23608. flex-direction: row;
  23609. align-items: baseline;
  23610. flex-wrap: nowrap;
  23611. justify-content: flex-start;
  23612. position: relative;
  23613. }
  23614. .toolSort {
  23615. display: flex;
  23616. flex-direction: row;
  23617. flex-wrap: wrap;
  23618. justify-content: flex-start;
  23619. align-items: flex-start;
  23620. padding: 0 0 15px 0;
  23621. }
  23622. .toolSort > div {
  23623. margin: 0 10px 0 0;
  23624. width: 135px;
  23625. box-sizing: border-box;
  23626. border: 2px solid transparent;
  23627. }
  23628. .tools {
  23629. width: 100%;
  23630. display: flex;
  23631. flex-direction: column;
  23632. flex-wrap: nowrap;
  23633. align-items: flex-start;
  23634. }
  23635. .whiteBIcon {
  23636. width: fit-content;
  23637. cursor: pointer;
  23638. display: flex;
  23639. flex-direction: column;
  23640. flex-wrap: nowrap;
  23641. align-items: center;
  23642. font-size: 14px;
  23643. }
  23644. .tool:hover {
  23645. border: 2px solid #a5c7ff;
  23646. border-radius: 5px;
  23647. }
  23648. .whiteBIcon > img {
  23649. width: 65px;
  23650. height: 100%;
  23651. }
  23652. .whiteBIcon > img {
  23653. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23654. border-radius: 15px;
  23655. }
  23656. .check {
  23657. /* width: 20px;
  23658. height: 20px; */
  23659. cursor: pointer;
  23660. margin: 10px 0;
  23661. position: absolute;
  23662. right: 2px;
  23663. top: -5px;
  23664. }
  23665. .noChoose,
  23666. .isChoose {
  23667. width: 15px;
  23668. height: 15px;
  23669. border-radius: 50%;
  23670. border: 1px solid #adadad;
  23671. }
  23672. .isChoose {
  23673. border: 4px solid #0363ff !important;
  23674. width: 10px;
  23675. height: 10px;
  23676. }
  23677. .isToolChoose {
  23678. border: 2px solid #5394ff !important;
  23679. border-radius: 5px;
  23680. box-shadow: 0 0 6px 0px #5394ff;
  23681. }
  23682. .checkDiv {
  23683. display: flex;
  23684. align-items: center;
  23685. }
  23686. .checkDiv span {
  23687. margin-left: 5px;
  23688. color: #858585;
  23689. }
  23690. .check img {
  23691. width: 20px;
  23692. height: 20px;
  23693. }
  23694. .lockTaskIcon {
  23695. width: 20px;
  23696. height: 20px;
  23697. position: absolute;
  23698. right: 10px;
  23699. top: 5px;
  23700. }
  23701. .lockTaskIcon > img {
  23702. width: 100%;
  23703. height: 100%;
  23704. }
  23705. .pick_box {
  23706. display: flex;
  23707. align-items: flex-start;
  23708. flex-wrap: wrap;
  23709. }
  23710. .selectBox {
  23711. width: 110px;
  23712. margin-left: 10px;
  23713. margin: 0 10px 0 auto;
  23714. }
  23715. .selectBox >>> .el-input__inner {
  23716. height: 30px;
  23717. line-height: 30px;
  23718. }
  23719. .selectBox >>> .el-input__icon {
  23720. line-height: 30px;
  23721. }
  23722. .sentenceTitle {
  23723. display: flex;
  23724. flex-direction: row;
  23725. flex-wrap: nowrap;
  23726. align-items: center;
  23727. }
  23728. .sentenceTitle::before {
  23729. content: attr(index);
  23730. background: #3681fc;
  23731. border-radius: 50%;
  23732. color: #fff;
  23733. width: 25px;
  23734. height: 25px;
  23735. min-width: 25px;
  23736. min-height: 25px;
  23737. text-align: center;
  23738. line-height: 25px;
  23739. margin-right: 5px;
  23740. }
  23741. .hfBox {
  23742. padding: 10px;
  23743. box-sizing: border-box;
  23744. }
  23745. .whoReplyWho {
  23746. display: flex;
  23747. flex-direction: row;
  23748. flex-wrap: nowrap;
  23749. align-items: baseline;
  23750. justify-content: flex-start;
  23751. }
  23752. .hfBottom {
  23753. display: flex;
  23754. flex-direction: row;
  23755. flex-wrap: nowrap;
  23756. align-items: center;
  23757. justify-content: space-between;
  23758. font-size: 14px;
  23759. }
  23760. .deleteHfItem {
  23761. cursor: pointer;
  23762. width: 20px;
  23763. height: 20px;
  23764. }
  23765. .deleteHfItem > img {
  23766. width: 100%;
  23767. height: 100%;
  23768. }
  23769. .whoReplyWho > .hfImg {
  23770. width: 12px;
  23771. height: 12px;
  23772. margin: 0 5px;
  23773. }
  23774. .whoReplyWho > .hfImg > img {
  23775. width: 100%;
  23776. height: 100%;
  23777. }
  23778. .hfContent {
  23779. padding-top: 10px;
  23780. box-sizing: border-box;
  23781. display: -webkit-box;
  23782. overflow: hidden;
  23783. white-space: normal !important;
  23784. text-overflow: ellipsis;
  23785. word-wrap: break-word;
  23786. -webkit-box-orient: vertical;
  23787. }
  23788. .hfTime {
  23789. text-align: left;
  23790. box-sizing: border-box;
  23791. padding: 10px 0 10px 0px;
  23792. color: #bfbfbf;
  23793. font-size: 14px;
  23794. }
  23795. .btnAllNT {
  23796. position: fixed;
  23797. bottom: 100px;
  23798. right: 40px;
  23799. z-index: 999;
  23800. display: flex;
  23801. flex-direction: row;
  23802. }
  23803. .btnAllNT > img {
  23804. cursor: pointer;
  23805. width: 80px;
  23806. }
  23807. .toolMask {
  23808. position: fixed;
  23809. width: 100%;
  23810. height: 100%;
  23811. background: #3f3c3c;
  23812. opacity: 0.5;
  23813. top: 0;
  23814. left: 0;
  23815. z-index: 999;
  23816. }
  23817. .addToolCss {
  23818. position: fixed;
  23819. z-index: 999;
  23820. background: #fff;
  23821. right: 5%;
  23822. bottom: 18%;
  23823. min-width: 1035px;
  23824. min-height: 300px;
  23825. border-radius: 10px;
  23826. box-shadow: 0 0 8px 1px #b2b2b2;
  23827. }
  23828. .toolTop {
  23829. display: flex;
  23830. flex-direction: row;
  23831. flex-wrap: nowrap;
  23832. justify-content: space-between;
  23833. align-items: center;
  23834. padding: 20px;
  23835. }
  23836. .toolTop > div:nth-child(2) {
  23837. width: 15px;
  23838. height: 15px;
  23839. padding-right: 10px;
  23840. cursor: pointer;
  23841. }
  23842. .toolTop > div:nth-child(2) > img {
  23843. width: 100%;
  23844. height: 100%;
  23845. }
  23846. .fullStyle>>>.el-dialog__body {
  23847. height: calc(100% - 125px) !important;
  23848. box-sizing: border-box;
  23849. padding: 30px 0 !important;
  23850. background: #fff !important;
  23851. }
  23852. .fullStyle>>>.el-dialog {
  23853. width: 100% !important;
  23854. max-width: 100% !important;
  23855. height: 100% !important;
  23856. margin: 0 !important;
  23857. }
  23858. .fullStyle {
  23859. width: 100% !important;
  23860. max-width: 100% !important;
  23861. height: 100% !important;
  23862. margin: 0 auto !important;
  23863. }
  23864. .fullStyle>>>.el-dialog__footer{
  23865. background: #fff !important;
  23866. }
  23867. .engUpBox {
  23868. width: 100%;
  23869. height: 100%;
  23870. }
  23871. .engTitle,
  23872. .engText {
  23873. display: flex;
  23874. flex-direction: row;
  23875. flex-wrap: nowrap;
  23876. align-items: flex-start;
  23877. padding: 0 20px 20px 20px;
  23878. box-sizing: border-box;
  23879. }
  23880. .engTitle > .div:first-child,
  23881. .engText > div:first-child {
  23882. min-width: 75px;
  23883. }
  23884. .correctBox{
  23885. width: 100%;
  23886. display: flex;
  23887. flex-direction: row;
  23888. flex-wrap: nowrap;
  23889. align-items: flex-start;
  23890. }
  23891. .oldBox{
  23892. width: 50%;
  23893. height: 100%;
  23894. display: flex;
  23895. flex-direction: column;
  23896. flex-wrap: nowrap;
  23897. align-items: center;
  23898. border-top: 1px solid #d9d9d9;
  23899. border-left: 1px solid #d9d9d9;
  23900. border-right: 1px solid #d9d9d9;
  23901. }
  23902. .oldBox>div:first-child{
  23903. width: 100%;
  23904. text-align: center;
  23905. background: #d9d9d9;
  23906. height: 35px;
  23907. line-height: 35px;
  23908. font-weight: bold;
  23909. }
  23910. .oldText{
  23911. width: 100%;
  23912. height: calc(100% - 35px);
  23913. overflow: auto;
  23914. margin: 10px 0;
  23915. display: flex;
  23916. flex-direction: column;
  23917. flex-wrap: nowrap;
  23918. align-content: center;
  23919. align-items: center;
  23920. }
  23921. .detailBox{
  23922. width: 50%;
  23923. padding: 10px;
  23924. background: #f6f6f6;
  23925. border-radius: 5px;
  23926. }
  23927. .oldDetail,.oldDetail1{
  23928. padding-bottom: 30px;
  23929. }
  23930. .oldImg{
  23931. width:30px;
  23932. height: 30px;
  23933. }
  23934. .oldImg>img{
  23935. width: 100%;
  23936. height: 100%;
  23937. }
  23938. .allName{
  23939. min-width: 200px;
  23940. white-space: nowrap;
  23941. overflow: hidden;
  23942. text-overflow: ellipsis;
  23943. word-break: break-word;
  23944. cursor: pointer;
  23945. text-align: center;
  23946. border: 1px solid #bcc2cc;
  23947. box-sizing: border-box;
  23948. }
  23949. .engUpTop{
  23950. max-height: 300px;
  23951. overflow: auto;
  23952. }
  23953. .isUpdateToolDetailClass{
  23954. padding: 0 !important;
  23955. }
  23956. .isUpdateToolDetailClass textarea{
  23957. padding:12px;
  23958. font-size: 16px;
  23959. min-height:100%;
  23960. width: 100%;
  23961. box-sizing:border-box;
  23962. outline: none;
  23963. border:none;
  23964. line-height: 30px;
  23965. resize: none;
  23966. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23967. color: #838383;
  23968. }
  23969. .show_taskD {
  23970. min-width: fit-content;
  23971. margin-left: 10px;
  23972. display: flex;
  23973. align-items: center;
  23974. font-size: 14px;
  23975. cursor: pointer;
  23976. color: #717c8d;
  23977. }
  23978. .show_taskD > img {
  23979. width: 15px;
  23980. margin-right: 5px;
  23981. transition: 0.2s all;
  23982. transform: rotate(-90deg);
  23983. }
  23984. .show_taskD.show > img {
  23985. transform: rotate(0deg);
  23986. }
  23987. .correctCss{
  23988. position: absolute;
  23989. bottom: -70px;
  23990. background: #409eff;
  23991. color: #fff;
  23992. }
  23993. </style>