studyStudent.vue 818 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663
  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% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) ? '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)"><!--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. <div style="height:100%;"
  1327. v-html="contentConvent(tool.toolDetail)"
  1328. v-if="toolDetailIndex != toolIndex"
  1329. @click.stop="updateToolDetail(toolIndex, 2)"
  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: -30px"
  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: -30px"
  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: -30px"
  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)"
  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)" 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)"
  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)"
  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)"
  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)"
  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)"
  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)"
  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)" 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)
  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)"
  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)" 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)
  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)
  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)
  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)"
  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)" 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)
  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)
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)
  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)"
  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)" 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)
  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)
  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)
  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)"
  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)"
  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. )
  7039. "
  7040. >
  7041. <img
  7042. :src="
  7043. w.isLikes == true ? likes : noLikes
  7044. "
  7045. alt=""
  7046. />
  7047. </div>
  7048. <div>{{ w.likesCount }}</div>
  7049. </div>
  7050. <div
  7051. class="commentList"
  7052. style="margin-right: 15px"
  7053. >
  7054. <div
  7055. class="commentImg"
  7056. @click="
  7057. commentOther(
  7058. w,
  7059. toolIndex,
  7060. wIndex,
  7061. gindex
  7062. )
  7063. "
  7064. >
  7065. <img
  7066. src="../assets/icon/comment/comment.png"
  7067. alt=""
  7068. />
  7069. </div>
  7070. <div>{{ w.commentCount }}</div>
  7071. </div>
  7072. </div>
  7073. </div>
  7074. </div>
  7075. </div>
  7076. </div>
  7077. </div>
  7078. </div>
  7079. </div>
  7080. </div>
  7081. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7082. 上传文件
  7083. <input
  7084. type="file"
  7085. accept="image/png, image/gif, image/jpeg"
  7086. style="display: none"
  7087. @change="beforeUpload1($event, 2, index)"
  7088. />
  7089. </div>-->
  7090. </div>
  7091. </div>
  7092. <!-- <div
  7093. class="vedioBox"
  7094. style="margin-top: 10px"
  7095. v-if="
  7096. courseDetail.userid == userid ||
  7097. (courseDetail.course_teacher &&
  7098. courseDetail.course_teacher.indexOf(userid) != -1)
  7099. "
  7100. :style="{
  7101. borderRadius:
  7102. !(
  7103. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7104. .toolChoose[0].tool &&
  7105. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7106. .toolChoose[0].tool.length > 0
  7107. ) &&
  7108. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7109. .taskDetail == '' &&
  7110. vChapterData[taskCount].length == 0 &&
  7111. fileC[taskCount].length == 0
  7112. ? '0 0 20px 20px'
  7113. : '20px',
  7114. }"
  7115. >
  7116. <div
  7117. class="queTop"
  7118. @click="isClose = !isClose"
  7119. style="
  7120. padding: 15px 0 15px 37px;
  7121. justify-content: space-between;
  7122. "
  7123. >
  7124. <div class="queTopTitle">新增工具</div>
  7125. <div class="queTopRight">
  7126. <div class="queTopClose" v-if="isClose == 0">
  7127. 展开
  7128. <div class="closeImg">
  7129. <img src="../assets/icon/newIcon/close.png" alt="" />
  7130. </div>
  7131. </div>
  7132. <div class="queTopClose" v-if="isClose == 1">
  7133. 折叠
  7134. <div class="openImg">
  7135. <img src="../assets/icon/newIcon/open.png" alt="" />
  7136. </div>
  7137. </div>
  7138. <el-button
  7139. style="margin: 0 30px 0 auto"
  7140. type="primary"
  7141. size="small"
  7142. v-if="isClose == 1 && checktoolArray.length > 0"
  7143. @click.stop="addToolChoose"
  7144. >确定</el-button
  7145. >
  7146. </div>
  7147. </div>
  7148. <div
  7149. class="tool_work_box"
  7150. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7151. >
  7152. <div class="tool_box">
  7153. <div class="tool_type_box">
  7154. <div class="chooseWho">
  7155. <div
  7156. :class="toolType == 0 ? 'isChooseActive' : ''"
  7157. @click="(toolType = 0), $forceUpdate()"
  7158. >
  7159. 互动类
  7160. </div>
  7161. <div
  7162. :class="toolType == 1 ? 'isChooseActive' : ''"
  7163. @click="(toolType = 1), $forceUpdate()"
  7164. >
  7165. 思维类
  7166. </div>
  7167. <div
  7168. :class="toolType == 2 ? 'isChooseActive' : ''"
  7169. @click="(toolType = 2), $forceUpdate()"
  7170. >
  7171. 测评类
  7172. </div>
  7173. <div
  7174. :class="toolType == 3 ? 'isChooseActive' : ''"
  7175. @click="(toolType = 3), $forceUpdate()"
  7176. >
  7177. 编程类
  7178. </div>
  7179. <div
  7180. :class="toolType == 5 ? 'isChooseActive' : ''"
  7181. @click="(toolType = 5), $forceUpdate()"
  7182. >
  7183. 学科类
  7184. </div>
  7185. </div>
  7186. </div>
  7187. <div>
  7188. <div class="toolSort" v-if="toolType == 0">
  7189. <div class="tool">
  7190. <div class="whiteBIcon" @click="addTools2(10)">
  7191. <img
  7192. src="../assets/icon/thirdToolList/time.png"
  7193. alt
  7194. />
  7195. <div style="margin: 5px 0">倒计时</div>
  7196. </div>
  7197. <div class="check" @click="addTools2(10)">
  7198. <img
  7199. src="../assets/icon/checkNo.png"
  7200. alt
  7201. v-if="checktoolArray.indexOf(10) == -1"
  7202. />
  7203. <div class="checkDiv" v-else>
  7204. <img src="../assets/icon/checkedIs.png" alt /><span
  7205. >已选择</span
  7206. >
  7207. </div>
  7208. </div>
  7209. </div>
  7210. <div class="tool">
  7211. <div class="whiteBIcon" @click="addTools2(65)">
  7212. <img
  7213. src="../assets/icon/firstToolList/pickPeople.png"
  7214. alt
  7215. />
  7216. <div style="margin: 5px 0">挑人</div>
  7217. </div>
  7218. <div class="check" @click="addTools2(65)">
  7219. <img
  7220. src="../assets/icon/checkNo.png"
  7221. alt
  7222. v-if="checktoolArray.indexOf(65) == -1"
  7223. />
  7224. <div class="checkDiv" v-else>
  7225. <img src="../assets/icon/checkedIs.png" alt /><span
  7226. >已选择</span
  7227. >
  7228. </div>
  7229. </div>
  7230. </div>
  7231. </div>
  7232. <div class="toolSort" v-if="toolType == 1">
  7233. <div class="tool">
  7234. <div class="whiteBIcon" @click="addTools2(7)">
  7235. <img
  7236. src="../assets/icon/secondToolList/mindNetwork.png"
  7237. alt
  7238. />
  7239. <div style="margin: 5px 0">思维网格</div>
  7240. </div>
  7241. <div class="check" @click="addTools2(7)">
  7242. <img
  7243. src="../assets/icon/checkNo.png"
  7244. alt
  7245. v-if="checktoolArray.indexOf(7) == -1"
  7246. />
  7247. <div class="checkDiv" v-else>
  7248. <img src="../assets/icon/checkedIs.png" alt /><span
  7249. >已选择</span
  7250. >
  7251. </div>
  7252. </div>
  7253. </div>
  7254. <div class="tool">
  7255. <div class="whiteBIcon" @click="addTools2(1)">
  7256. <img
  7257. src="../assets/icon/secondToolList/whiteBoard.png"
  7258. alt
  7259. />
  7260. <div style="margin: 5px 0">电子白板</div>
  7261. </div>
  7262. <div class="check" @click="addTools2(1)">
  7263. <img
  7264. src="../assets/icon/checkNo.png"
  7265. alt
  7266. v-if="checktoolArray.indexOf(1) == -1"
  7267. />
  7268. <div class="checkDiv" v-else>
  7269. <img src="../assets/icon/checkedIs.png" alt /><span
  7270. >已选择</span
  7271. >
  7272. </div>
  7273. </div>
  7274. </div>
  7275. <div class="tool">
  7276. <div class="whiteBIcon" @click="addTools2(52)">
  7277. <img
  7278. src="../assets/icon/fourthToolList/text.png"
  7279. alt
  7280. />
  7281. <div style="margin: 5px 0">文档</div>
  7282. </div>
  7283. <div class="check" @click="addTools2(52)">
  7284. <img
  7285. src="../assets/icon/checkNo.png"
  7286. alt
  7287. v-if="checktoolArray.indexOf(52) == -1"
  7288. />
  7289. <div class="checkDiv" v-else>
  7290. <img src="../assets/icon/checkedIs.png" alt /><span
  7291. >已选择</span
  7292. >
  7293. </div>
  7294. </div>
  7295. </div>
  7296. <div class="tool">
  7297. <div class="whiteBIcon" @click="addTools2(3)">
  7298. <img
  7299. src="../assets/icon/secondToolList/mindMapping.png"
  7300. alt
  7301. />
  7302. <div style="margin: 5px 0">思维导图</div>
  7303. </div>
  7304. <div class="check" @click="addTools2(3)">
  7305. <img
  7306. src="../assets/icon/checkNo.png"
  7307. alt
  7308. v-if="checktoolArray.indexOf(3) == -1"
  7309. />
  7310. <div class="checkDiv" v-else>
  7311. <img src="../assets/icon/checkedIs.png" alt /><span
  7312. >已选择</span
  7313. >
  7314. </div>
  7315. </div>
  7316. </div>
  7317. <div class="tool">
  7318. <div class="whiteBIcon" @click="addTools2(48)">
  7319. <img
  7320. src="../assets/icon/fourthToolList/table.png"
  7321. alt
  7322. />
  7323. <div style="margin: 5px 0">表格</div>
  7324. </div>
  7325. <div class="check" @click="addTools2(48)">
  7326. <img
  7327. src="../assets/icon/checkNo.png"
  7328. alt
  7329. v-if="checktoolArray.indexOf(48) == -1"
  7330. />
  7331. <div class="checkDiv" v-else>
  7332. <img src="../assets/icon/checkedIs.png" alt /><span
  7333. >已选择</span
  7334. >
  7335. </div>
  7336. </div>
  7337. </div>
  7338. </div>
  7339. <div class="toolSort" v-if="toolType == 6">
  7340. <div v-show="tooC == 49">
  7341. <img
  7342. @click="addTools(tooC, toolIndex, taskCount)"
  7343. src="../assets/icon/fourthToolList/group.png"
  7344. alt
  7345. />
  7346. <div style="margin: 5px 0">学生分组</div>
  7347. </div>
  7348. </div>
  7349. <div class="toolSort" v-if="toolType == 2">
  7350. <div class="tool">
  7351. <div class="whiteBIcon" @click="addTools2(16)">
  7352. <img
  7353. src="../assets/icon/thirdToolList/work.png"
  7354. alt
  7355. />
  7356. <div style="margin: 5px 0">作业提交</div>
  7357. </div>
  7358. <div class="check" @click="addTools2(16)">
  7359. <img
  7360. src="../assets/icon/checkNo.png"
  7361. alt
  7362. v-if="checktoolArray.indexOf(16) == -1"
  7363. />
  7364. <div class="checkDiv" v-else>
  7365. <img src="../assets/icon/checkedIs.png" alt /><span
  7366. >已选择</span
  7367. >
  7368. </div>
  7369. </div>
  7370. </div>
  7371. <div class="tool">
  7372. <div class="whiteBIcon" @click="addTools2(50)">
  7373. <img
  7374. src="../assets/icon/thirdToolList/plwork.png"
  7375. alt
  7376. />
  7377. <div style="margin: 5px 0">批量上传</div>
  7378. </div>
  7379. <div class="check" @click="addTools2(50)">
  7380. <img
  7381. src="../assets/icon/checkNo.png"
  7382. alt
  7383. v-if="checktoolArray.indexOf(50) == -1"
  7384. />
  7385. <div class="checkDiv" v-else>
  7386. <img src="../assets/icon/checkedIs.png" alt /><span
  7387. >已选择</span
  7388. >
  7389. </div>
  7390. </div>
  7391. </div>
  7392. </div>
  7393. <div class="toolSort" v-if="toolType == 3">
  7394. <div class="tool">
  7395. <div class="whiteBIcon" @click="addTools2(18)">
  7396. <img
  7397. src="../assets/icon/thirdToolList/trainPlatform.png"
  7398. alt
  7399. />
  7400. <div style="margin: 5px 0">训练平台</div>
  7401. </div>
  7402. <div class="check" @click="addTools2(18)">
  7403. <img
  7404. src="../assets/icon/checkNo.png"
  7405. alt
  7406. v-if="checktoolArray.indexOf(18) == -1"
  7407. />
  7408. <div class="checkDiv" v-else>
  7409. <img src="../assets/icon/checkedIs.png" alt /><span
  7410. >已选择</span
  7411. >
  7412. </div>
  7413. </div>
  7414. </div>
  7415. <div class="tool">
  7416. <div class="whiteBIcon" @click="addTools2(21)">
  7417. <img
  7418. src="../assets/icon/fourthToolList/program.png"
  7419. alt
  7420. />
  7421. <div style="margin: 5px 0">AIoT Blockly</div>
  7422. </div>
  7423. <div class="check" @click="addTools2(21)">
  7424. <img
  7425. src="../assets/icon/checkNo.png"
  7426. alt
  7427. v-if="checktoolArray.indexOf(21) == -1"
  7428. />
  7429. <div class="checkDiv" v-else>
  7430. <img src="../assets/icon/checkedIs.png" alt /><span
  7431. >已选择</span
  7432. >
  7433. </div>
  7434. </div>
  7435. </div>
  7436. <div class="tool">
  7437. <div class="whiteBIcon" @click="addTools2(23)">
  7438. <img
  7439. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7440. alt
  7441. />
  7442. <div style="margin: 5px 0">AI Python</div>
  7443. </div>
  7444. <div class="check" @click="addTools2(23)">
  7445. <img
  7446. src="../assets/icon/checkNo.png"
  7447. alt
  7448. v-if="checktoolArray.indexOf(23) == -1"
  7449. />
  7450. <div class="checkDiv" v-else>
  7451. <img src="../assets/icon/checkedIs.png" alt /><span
  7452. >已选择</span
  7453. >
  7454. </div>
  7455. </div>
  7456. </div>
  7457. <div class="tool">
  7458. <div class="whiteBIcon" @click="addTools2(24)">
  7459. <img
  7460. src="../assets/icon/fourthToolList/AIprogram.png"
  7461. alt
  7462. />
  7463. <div style="margin: 5px 0">AI Blockly</div>
  7464. </div>
  7465. <div class="check" @click="addTools2(24)">
  7466. <img
  7467. src="../assets/icon/checkNo.png"
  7468. alt
  7469. v-if="checktoolArray.indexOf(24) == -1"
  7470. />
  7471. <div class="checkDiv" v-else>
  7472. <img src="../assets/icon/checkedIs.png" alt /><span
  7473. >已选择</span
  7474. >
  7475. </div>
  7476. </div>
  7477. </div>
  7478. <div class="tool">
  7479. <div class="whiteBIcon" @click="addTools2(32)">
  7480. <img
  7481. src="../assets/icon/thirdToolList/code.png"
  7482. alt
  7483. />
  7484. <div style="margin: 5px 0">源码编辑</div>
  7485. </div>
  7486. <div class="check" @click="addTools2(32)">
  7487. <img
  7488. src="../assets/icon/checkNo.png"
  7489. alt
  7490. v-if="checktoolArray.indexOf(32) == -1"
  7491. />
  7492. <div class="checkDiv" v-else>
  7493. <img src="../assets/icon/checkedIs.png" alt /><span
  7494. >已选择</span
  7495. >
  7496. </div>
  7497. </div>
  7498. </div>
  7499. <div class="tool">
  7500. <div class="whiteBIcon" @click="addTools2(57)">
  7501. <img
  7502. src="../assets/icon/fourthToolList/cocopi.png"
  7503. alt
  7504. />
  7505. <div style="margin: 5px 0">CocoPi</div>
  7506. </div>
  7507. <div class="check" @click="addTools2(57)">
  7508. <img
  7509. src="../assets/icon/checkNo.png"
  7510. alt
  7511. v-if="checktoolArray.indexOf(57) == -1"
  7512. />
  7513. <div class="checkDiv" v-else>
  7514. <img src="../assets/icon/checkedIs.png" alt /><span
  7515. >已选择</span
  7516. >
  7517. </div>
  7518. </div>
  7519. </div>
  7520. <div class="tool">
  7521. <div class="whiteBIcon" @click="addTools2(63)">
  7522. <img
  7523. src="../assets/icon/fourthToolList/Wood.png"
  7524. alt
  7525. />
  7526. <div style="margin: 5px 0">海龟编程</div>
  7527. </div>
  7528. <div class="check" @click="addTools2(63)">
  7529. <img
  7530. src="../assets/icon/checkNo.png"
  7531. alt
  7532. v-if="checktoolArray.indexOf(63) == -1"
  7533. />
  7534. <div class="checkDiv" v-else>
  7535. <img src="../assets/icon/checkedIs.png" alt /><span
  7536. >已选择</span
  7537. >
  7538. </div>
  7539. </div>
  7540. </div>
  7541. </div>
  7542. <div class="toolSort" v-if="toolType == 5">
  7543. <div class="tool">
  7544. <div class="whiteBIcon" @click="addTools2(28)">
  7545. <img
  7546. src="../assets/icon/secondToolList/translation.png"
  7547. alt
  7548. />
  7549. <div style="margin: 5px 0">翻译</div>
  7550. </div>
  7551. <div class="check" @click="addTools2(28)">
  7552. <img
  7553. src="../assets/icon/checkNo.png"
  7554. alt
  7555. v-if="checktoolArray.indexOf(28) == -1"
  7556. />
  7557. <div class="checkDiv" v-else>
  7558. <img src="../assets/icon/checkedIs.png" alt /><span
  7559. >已选择</span
  7560. >
  7561. </div>
  7562. </div>
  7563. </div>
  7564. <div class="tool">
  7565. <div class="whiteBIcon" @click="addTools2(31)">
  7566. <img
  7567. src="../assets/icon/secondToolList/networkPanel.png"
  7568. alt
  7569. />
  7570. <div style="margin: 5px 0">数字画板</div>
  7571. </div>
  7572. <div class="check" @click="addTools2(31)">
  7573. <img
  7574. src="../assets/icon/checkNo.png"
  7575. alt
  7576. v-if="checktoolArray.indexOf(31) == -1"
  7577. />
  7578. <div class="checkDiv" v-else>
  7579. <img src="../assets/icon/checkedIs.png" alt /><span
  7580. >已选择</span
  7581. >
  7582. </div>
  7583. </div>
  7584. </div>
  7585. <div class="tool">
  7586. <div class="whiteBIcon" @click="addTools2(39)">
  7587. <img
  7588. src="../assets/icon/secondToolList/GeoGebra.png"
  7589. alt
  7590. />
  7591. <div style="margin: 5px 0">GeoGebra</div>
  7592. </div>
  7593. <div class="check" @click="addTools2(39)">
  7594. <img
  7595. src="../assets/icon/checkNo.png"
  7596. alt
  7597. v-if="checktoolArray.indexOf(39) == -1"
  7598. />
  7599. <div class="checkDiv" v-else>
  7600. <img src="../assets/icon/checkedIs.png" alt /><span
  7601. >已选择</span
  7602. >
  7603. </div>
  7604. </div>
  7605. </div>
  7606. <div class="tool">
  7607. <div class="whiteBIcon" @click="addTools2(66)">
  7608. <img
  7609. src="../assets/icon/secondToolList/formulaEdi.png"
  7610. alt
  7611. />
  7612. <div style="margin: 5px 0">公式编辑</div>
  7613. </div>
  7614. <div class="check" @click="addTools2(66)">
  7615. <img
  7616. src="../assets/icon/checkNo.png"
  7617. alt
  7618. v-if="checktoolArray.indexOf(66) == -1"
  7619. />
  7620. <div class="checkDiv" v-else>
  7621. <img src="../assets/icon/checkedIs.png" alt /><span
  7622. >已选择</span
  7623. >
  7624. </div>
  7625. </div>
  7626. </div>
  7627. <div class="tool">
  7628. <div class="whiteBIcon" @click="addTools2(67)">
  7629. <img
  7630. src="../assets/icon/secondToolList/molStr.png"
  7631. alt
  7632. />
  7633. <div style="margin: 5px 0">分子结构</div>
  7634. </div>
  7635. <div class="check" @click="addTools2(67)">
  7636. <img
  7637. src="../assets/icon/checkNo.png"
  7638. alt
  7639. v-if="checktoolArray.indexOf(67) == -1"
  7640. />
  7641. <div class="checkDiv" v-else>
  7642. <img src="../assets/icon/checkedIs.png" alt /><span
  7643. >已选择</span
  7644. >
  7645. </div>
  7646. </div>
  7647. </div>
  7648. <div class="tool">
  7649. <div class="whiteBIcon" @click="addTools2(68)">
  7650. <img
  7651. src="../assets/icon/secondToolList/timeAxis.png"
  7652. alt
  7653. />
  7654. <div style="margin: 5px 0">时间轴</div>
  7655. </div>
  7656. <div class="check" @click="addTools2(68)">
  7657. <img
  7658. src="../assets/icon/checkNo.png"
  7659. alt
  7660. v-if="checktoolArray.indexOf(68) == -1"
  7661. />
  7662. <div class="checkDiv" v-else>
  7663. <img src="../assets/icon/checkedIs.png" alt /><span
  7664. >已选择</span
  7665. >
  7666. </div>
  7667. </div>
  7668. </div>
  7669. </div>
  7670. <div class="toolSort" v-if="toolType == 7">
  7671. <div class="tool">
  7672. <div class="whiteBIcon" @click="addTools2(40)">
  7673. <img
  7674. src="../assets/icon/secondToolList/eval.png"
  7675. alt
  7676. />
  7677. <div style="margin: 5px 0">个人评价</div>
  7678. </div>
  7679. <div class="check" @click="addTools2(40)">
  7680. <img
  7681. src="../assets/icon/checkNo.png"
  7682. alt
  7683. v-if="checktoolArray.indexOf(40) == -1"
  7684. />
  7685. <div class="checkDiv" v-else>
  7686. <img src="../assets/icon/checkedIs.png" alt /><span
  7687. >已选择</span
  7688. >
  7689. </div>
  7690. </div>
  7691. </div>
  7692. </div>
  7693. <div class="toolSort" v-if="toolType == 4">
  7694. <div class="tool">
  7695. <div class="whiteBIcon" @click="addTools2(26)">
  7696. <img
  7697. src="../assets/icon/thirdToolList/courseDesign.png"
  7698. alt
  7699. />
  7700. <div style="margin: 5px 0">课程设计</div>
  7701. </div>
  7702. <div class="check" @click="addTools2(26)">
  7703. <img
  7704. src="../assets/icon/checkNo.png"
  7705. alt
  7706. v-if="checktoolArray.indexOf(26) == -1"
  7707. />
  7708. <div class="checkDiv" v-else>
  7709. <img src="../assets/icon/checkedIs.png" alt /><span
  7710. >已选择</span
  7711. >
  7712. </div>
  7713. </div>
  7714. </div>
  7715. <div class="tool">
  7716. <div class="whiteBIcon" @click="addTools2(25)">
  7717. <img
  7718. src="../assets/icon/thirdToolList/evalua.png"
  7719. alt
  7720. />
  7721. <div style="margin: 5px 0">目标管理</div>
  7722. </div>
  7723. <div class="check" @click="addTools2(25)">
  7724. <img
  7725. src="../assets/icon/checkNo.png"
  7726. alt
  7727. v-if="checktoolArray.indexOf(25) == -1"
  7728. />
  7729. <div class="checkDiv" v-else>
  7730. <img src="../assets/icon/checkedIs.png" alt /><span
  7731. >已选择</span
  7732. >
  7733. </div>
  7734. </div>
  7735. </div>
  7736. </div>
  7737. </div>
  7738. </div>
  7739. </div>
  7740. </div> -->
  7741. <div
  7742. class="vedioBox"
  7743. style="margin-top: 10px; border-radius: 20px"
  7744. v-if="
  7745. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7746. .eList &&
  7747. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7748. .eList.length &&
  7749. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7750. .eList.length > 0 &&
  7751. tType != 2
  7752. "
  7753. >
  7754. <div
  7755. class="queTop"
  7756. style="
  7757. font-size: 20px;
  7758. padding: 15px 0 15px 37px;
  7759. font-weight: bold;
  7760. "
  7761. >
  7762. <!-- <div class="question" style="width: 30px">
  7763. <img src="../assets/icon/toolIcon.png" alt />
  7764. </div>
  7765. <div class="queTitle">
  7766. <div>工具</div>
  7767. </div>-->
  7768. 评一评
  7769. </div>
  7770. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7771. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7772. <el-table
  7773. :data="
  7774. chapInfoList[courseType].chapterInfo[0].taskJson[
  7775. taskCount
  7776. ].eList
  7777. "
  7778. :header-cell-style="{ background: '#F0F4FA' }"
  7779. :row-class-name="tableRowClassName"
  7780. border
  7781. stripe
  7782. style="width: 100%"
  7783. >
  7784. <el-table-column
  7785. label="评价名称"
  7786. align="center"
  7787. >
  7788. <template slot-scope="scope"
  7789. ><div>{{ scope.row.value }}</div></template
  7790. >
  7791. </el-table-column>
  7792. <el-table-column
  7793. label="评价描述"
  7794. align="center"
  7795. >
  7796. <template slot-scope="scope"
  7797. ><div>
  7798. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7799. </div></template
  7800. >
  7801. </el-table-column>
  7802. <el-table-column label="目标" align="center">
  7803. <template slot-scope="scope"
  7804. ><div>
  7805. {{
  7806. scope.row.target
  7807. ? scope.row.target[scope.row.target.length - 1]
  7808. : "-"
  7809. }}
  7810. </div></template
  7811. ></el-table-column
  7812. >
  7813. </el-table>
  7814. <!-- <div
  7815. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7816. .chapterInfo[0].taskJson[taskCount].eList"
  7817. :key="eIndex"
  7818. class="elist_input_box"
  7819. >
  7820. <div style="width: 95%">
  7821. <div
  7822. style="
  7823. display: flex;
  7824. flex-direction: row;
  7825. flex-wrap: nowrap;
  7826. align-items: center;
  7827. "
  7828. >
  7829. <div style="max-width: calc(100% - 285px)">
  7830. <span>{{ eItem.value }}</span>
  7831. </div>
  7832. <div
  7833. style="
  7834. padding-left: 25px;
  7835. display: flex;
  7836. flex-direction: row;
  7837. align-items: center;
  7838. "
  7839. >
  7840. <el-rate
  7841. v-model="eItem.score"
  7842. :colors="colors"
  7843. disabled
  7844. ></el-rate>
  7845. </div>
  7846. </div>
  7847. <div class="elist_inptu_text" style="padding-left: 10px">
  7848. <span v-if="eItem.detail != ''">{{
  7849. eItem.detail
  7850. }}</span>
  7851. <span v-else style="color: #b2b1b3; font-size: 14px"
  7852. >暂无描述...</span
  7853. >
  7854. </div>
  7855. </div>
  7856. </div> -->
  7857. </div>
  7858. <div
  7859. v-if="evalua"
  7860. style="
  7861. border: 1px solid #e5e5e5;
  7862. max-width: 650px;
  7863. width: 100%;
  7864. margin-top: 20px;
  7865. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7866. "
  7867. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7868. >
  7869. <div class="e_add_top">
  7870. <div class="e_add_title" style="width: 100%">
  7871. <!-- <span>目标管理名称</span> -->
  7872. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7873. <img
  7874. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7875. src="../assets/line.png"
  7876. class="cru_line"
  7877. style="
  7878. width: 125px;
  7879. height: 20px;
  7880. bottom: -10px;
  7881. left: 5px;
  7882. "
  7883. />
  7884. <!-- <el-input
  7885. v-model="eTitle"
  7886. placeholder="请输入名称"
  7887. @change="setMindData"
  7888. ></el-input>-->
  7889. <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>
  7890. <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>
  7891. </div>
  7892. </div>
  7893. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7894. <div class="e_add_list_pbox">
  7895. <div class="e_add_list_pbox_title">
  7896. <!-- <span class="type_title">切换模式</span> -->
  7897. <div class="type_content">
  7898. <span
  7899. :class="{ active: typeMode == 1 }"
  7900. @click="typeMode = 1"
  7901. >目标树</span
  7902. >
  7903. <span
  7904. :class="{ active: typeMode == 2 }"
  7905. @click="typeMode = 2"
  7906. >目标罗盘</span
  7907. >
  7908. <!-- <span
  7909. :class="{ active: typeMode == 3 }"
  7910. @click="typeMode = 3"
  7911. >目标看板</span
  7912. > -->
  7913. </div>
  7914. </div>
  7915. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7916. <Mind
  7917. :showBar="false"
  7918. :mindData="data"
  7919. style="width: 100%"
  7920. v-show="typeMode == 1"
  7921. ></Mind>
  7922. <Sunburst
  7923. :Josn="eJson"
  7924. :num="eJSONNum"
  7925. style="width: 100%"
  7926. v-if="typeMode == 2"
  7927. ></Sunburst>
  7928. <SeeBoard
  7929. :Josn="eJson"
  7930. :num="eJSONNum"
  7931. :ename="eTitle"
  7932. style="width: 100%"
  7933. v-if="typeMode == 3"
  7934. >
  7935. </SeeBoard>
  7936. </div>
  7937. </div>
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <!-- <div
  7943. class="project_box"
  7944. style="margin-top: 15px; padding-bottom: 30px"
  7945. >
  7946. <div
  7947. style="
  7948. display: flex;
  7949. flex-wrap: nowrap;
  7950. flex-direction: column;
  7951. position: relative;
  7952. "
  7953. >
  7954. <div class="queTop">
  7955. <div class="question">
  7956. <img src="../assets/icon/homeWork.png" alt="" />
  7957. </div>
  7958. <div class="queTitle">
  7959. <div>作业提交<span>(提交图文视频等)</span></div>
  7960. <div>:任务:{{ task.task }}</div>
  7961. </div>
  7962. </div>
  7963. <div class="ediBottom">
  7964. <div
  7965. class="addEditor"
  7966. style="margin-top: 23px"
  7967. @click="openAddWork"
  7968. v-if="!isNoHomeWork"
  7969. >
  7970. 选择文件
  7971. </div>
  7972. <div
  7973. class="addEditor"
  7974. style="margin-top: 23px"
  7975. @click="openAddWork"
  7976. v-else
  7977. >
  7978. 已提交
  7979. </div>
  7980. </div>
  7981. </div>
  7982. </div>-->
  7983. </div>
  7984. </div>
  7985. <el-dialog
  7986. title="作业提交"
  7987. :visible.sync="dialogVisible"
  7988. :append-to-body="true"
  7989. width="500px"
  7990. :before-close="handleClose"
  7991. class="dialog_change"
  7992. >
  7993. <div class="marginT">
  7994. <div>上传文件</div>
  7995. <div
  7996. class="chapter_add"
  7997. @click="addImg($event)"
  7998. v-if="studyJuri[0].cover.length == 0"
  7999. >
  8000. <div class="up_photo">
  8001. <img src="../assets/icon/uploadImg.png" alt />
  8002. </div>
  8003. <!-- <input
  8004. type="file"
  8005. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8006. style="display: none"
  8007. @change="beforeUpload1($event, 1)"
  8008. /> -->
  8009. <input
  8010. type="file"
  8011. accept="*"
  8012. style="display: none"
  8013. @change="beforeUpload1($event, 1)"
  8014. />
  8015. <!-- <input
  8016. type="file"
  8017. accept="image/*"
  8018. capture="camera"
  8019. style="display: none"
  8020. @change="beforeUpload1($event, 1)"
  8021. /> -->
  8022. </div>
  8023. <div
  8024. class="chapter_add"
  8025. style="
  8026. display: flex;
  8027. width: 100%;
  8028. flex-direction: row;
  8029. flex-wrap: wrap;
  8030. justify-content: flex-start;
  8031. padding: 15px 0;
  8032. "
  8033. v-if="studyJuri[0].cover.length > 0"
  8034. >
  8035. <div class="upCover">
  8036. <img
  8037. :src="studyJuri[0].cover[0].url"
  8038. alt
  8039. v-if="fileType == 0"
  8040. />
  8041. <img :src="word" alt v-else-if="fileType == 1" />
  8042. <img :src="video" alt v-else-if="fileType == 2" />
  8043. <img :src="word2" alt v-else-if="fileType == 3" />
  8044. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8045. <div class="deleteWord" @click="clean(1)">
  8046. <img src="../assets/icon/deleteWorks.png" alt />
  8047. </div>
  8048. </div>
  8049. </div>
  8050. </div>
  8051. <div
  8052. class="upload_send"
  8053. @click="addCourseWorks(taskCount)"
  8054. v-if="!proVisible"
  8055. >
  8056. 提交
  8057. </div>
  8058. </el-dialog>
  8059. </div>
  8060. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8061. <classRoomHelper :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(
  8062. '/courseDetail?userid=' +
  8063. userid +
  8064. '&oid=' +
  8065. oid +
  8066. '&org=' +
  8067. org +
  8068. '&cid=' +
  8069. classId +
  8070. '&courseId=' +
  8071. id +
  8072. '&tType=' +
  8073. tType +
  8074. '&screenType=' +
  8075. screenType
  8076. )"></classRoomHelper>
  8077. </div>
  8078. <div
  8079. class="pButton"
  8080. @click="(pzDialog = true), selectPz()"
  8081. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8082. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8083. >
  8084. <!-- 批 -->
  8085. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8086. </div>
  8087. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8088. <div class="pzTop2">
  8089. <!-- <div>评论</div>
  8090. <div @click="pzDialog = false">
  8091. <img src="../assets/close1.png" alt="" />
  8092. </div> -->
  8093. <div class="checkbox">
  8094. <!-- <div class="check" style="font-size: 25px; position: unset">
  8095. 评论
  8096. </div> -->
  8097. <div class="cb-tabList">
  8098. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8099. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8100. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8101. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8102. </div>
  8103. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8104. <el-option label="时间降序" :value="1"></el-option>
  8105. <el-option label="时间升序" :value="2"></el-option>
  8106. <el-option label="我的评课" :value="3"></el-option>
  8107. </el-select>
  8108. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8109. </div>
  8110. </div>
  8111. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8112. <div class="pzListBox" v-if="pzList && pzList.length">
  8113. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8114. <div class="pzNavTop">
  8115. <div>评</div>
  8116. <div>
  8117. {{
  8118. pz.username && pz.username.length > 5
  8119. ? pz.username.substring(0, 5) + "..."
  8120. : pz.username
  8121. }}的评论
  8122. </div>
  8123. <div
  8124. class="pzDelete"
  8125. v-if="pz.userid == userid"
  8126. @click="deletePz(pz.id)"
  8127. >
  8128. 删除
  8129. </div>
  8130. </div>
  8131. <div
  8132. @click="checkImg(getImgList(pz.content))"
  8133. class="pzContent cont"
  8134. v-html="pz.content"
  8135. v-if="pz.type == '1'"
  8136. ></div>
  8137. <div class="pzContent" v-if="pz.type == '2'">
  8138. <audio :src="pz.content" controls="controls" ref="audio">
  8139. Your browser does not support the audio element.
  8140. </audio>
  8141. </div>
  8142. <div class="pzContent" v-if="pz.type == '3'">
  8143. <img
  8144. :src="pz.content"
  8145. style="width: 90%; margin: 0 auto; display: block"
  8146. @click="previewImg(pz.content)"
  8147. />
  8148. </div>
  8149. <div class="timeAndReply">
  8150. <div class="time">
  8151. {{ pz.time }}
  8152. </div>
  8153. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8154. </div>
  8155. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8156. <div
  8157. v-for="(h, hIndex) in pz.hfList"
  8158. :key="hIndex"
  8159. class="hfItem"
  8160. >
  8161. <div class="whoReplyWho">
  8162. <div class="hfName">{{ h.username }}</div>
  8163. <div class="hfImg">
  8164. <img src="../assets/icon/newIcons/right.png" alt="" />
  8165. </div>
  8166. <div class="hfName">{{ pz.username }}</div>
  8167. </div>
  8168. <div class="hfContent" v-html="h.content"></div>
  8169. <div class="hfBottom">
  8170. <div class="hfTime">{{ h.time }}</div>
  8171. <div
  8172. class="deleteHfItem"
  8173. @click="deleteReply(h.id)"
  8174. v-if="userid == h.userid"
  8175. >
  8176. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8177. </div>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8182. <div class="replyInput">
  8183. <el-input v-model="reply[pzIndex]"></el-input>
  8184. </div>
  8185. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8186. </div> -->
  8187. </div>
  8188. </div>
  8189. <div class="noPz" v-else>
  8190. <img src="../assets/icon/noPz.png" alt="" />
  8191. </div>
  8192. <div class="addPzButton">
  8193. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8194. 添加评论
  8195. </div>
  8196. <!-- <div class="img1">
  8197. <div @click="(addPzDialog = true), (pzType = 2)">
  8198. <img src="../assets/audio.png" /><span>音频</span>
  8199. </div>
  8200. </div> -->
  8201. </div>
  8202. </div>
  8203. <div class="scoreList" v-if="commentTagShow==1">
  8204. <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"/>
  8205. </div>
  8206. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8207. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8208. </div>
  8209. </div>
  8210. <div
  8211. v-if="toolDialogVisible == true"
  8212. class="toolMask"
  8213. @click="toolDialogVisible = false"
  8214. ></div>
  8215. <div v-if="toolDialogVisible == true" class="addToolCss">
  8216. <div class="toolTop">
  8217. <div style="font-weight: bold">新增工具</div>
  8218. <div @click="toolDialogVisible = false">
  8219. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8220. </div>
  8221. </div>
  8222. <div class="tool_box">
  8223. <div class="tool_type_box">
  8224. <div class="chooseWho">
  8225. <div
  8226. :class="toolType == 0 ? 'isChooseActive' : ''"
  8227. @click="(toolType = 0), $forceUpdate()"
  8228. >
  8229. 互动类
  8230. </div>
  8231. <div
  8232. :class="toolType == 1 ? 'isChooseActive' : ''"
  8233. @click="(toolType = 1), $forceUpdate()"
  8234. >
  8235. 思维类
  8236. </div>
  8237. <div
  8238. :class="toolType == 2 ? 'isChooseActive' : ''"
  8239. @click="(toolType = 2), $forceUpdate()"
  8240. >
  8241. 测评类
  8242. </div>
  8243. <div
  8244. :class="toolType == 3 ? 'isChooseActive' : ''"
  8245. @click="(toolType = 3), $forceUpdate()"
  8246. >
  8247. 编程类
  8248. </div>
  8249. <div
  8250. :class="toolType == 5 ? 'isChooseActive' : ''"
  8251. @click="(toolType = 5), $forceUpdate()"
  8252. >
  8253. 学科类
  8254. </div>
  8255. </div>
  8256. </div>
  8257. <div>
  8258. <div class="toolSort" v-if="toolType == 0">
  8259. <div
  8260. class="tool"
  8261. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8262. @click="addTools2(10)"
  8263. >
  8264. <div class="whiteBIcon">
  8265. <img src="../assets/icon/thirdToolList/time.png" alt />
  8266. <div style="margin: 5px 0">倒计时</div>
  8267. </div>
  8268. <div class="check">
  8269. <div
  8270. v-if="checktoolArray.indexOf(10) == -1"
  8271. class="noChoose"
  8272. ></div>
  8273. <div v-else class="isChoose"></div>
  8274. </div>
  8275. </div>
  8276. <div
  8277. class="tool"
  8278. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8279. @click="addTools2(65)"
  8280. >
  8281. <div class="whiteBIcon">
  8282. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8283. <div style="margin: 5px 0">挑人</div>
  8284. </div>
  8285. <div class="check">
  8286. <div
  8287. v-if="checktoolArray.indexOf(65) == -1"
  8288. class="noChoose"
  8289. ></div>
  8290. <div v-else class="isChoose"></div>
  8291. </div>
  8292. </div>
  8293. </div>
  8294. <div class="toolSort" v-if="toolType == 1">
  8295. <div
  8296. class="tool"
  8297. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8298. @click="addTools2(7)"
  8299. >
  8300. <div class="whiteBIcon">
  8301. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8302. <div style="margin: 5px 0">思维网格</div>
  8303. </div>
  8304. <div class="check">
  8305. <div
  8306. v-if="checktoolArray.indexOf(7) == -1"
  8307. class="noChoose"
  8308. ></div>
  8309. <div v-else class="isChoose"></div>
  8310. </div>
  8311. </div>
  8312. <div
  8313. class="tool"
  8314. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8315. @click="addTools2(1)"
  8316. >
  8317. <div class="whiteBIcon">
  8318. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8319. <div style="margin: 5px 0">电子白板</div>
  8320. </div>
  8321. <div class="check">
  8322. <div
  8323. v-if="checktoolArray.indexOf(1) == -1"
  8324. class="noChoose"
  8325. ></div>
  8326. <div v-else class="isChoose"></div>
  8327. </div>
  8328. </div>
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8332. @click="addTools2(52)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img src="../assets/icon/fourthToolList/text.png" alt />
  8336. <div style="margin: 5px 0">文档</div>
  8337. </div>
  8338. <div class="check">
  8339. <div
  8340. v-if="checktoolArray.indexOf(52) == -1"
  8341. class="noChoose"
  8342. ></div>
  8343. <div v-else class="isChoose"></div>
  8344. </div>
  8345. </div>
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8349. @click="addTools2(3)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8353. <div style="margin: 5px 0">思维导图</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(3) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. <div
  8364. class="tool"
  8365. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8366. @click="addTools2(48)"
  8367. >
  8368. <div class="whiteBIcon">
  8369. <img src="../assets/icon/fourthToolList/table.png" alt />
  8370. <div style="margin: 5px 0">表格</div>
  8371. </div>
  8372. <div class="check">
  8373. <div
  8374. v-if="checktoolArray.indexOf(48) == -1"
  8375. class="noChoose"
  8376. ></div>
  8377. <div v-else class="isChoose"></div>
  8378. </div>
  8379. </div>
  8380. </div>
  8381. <div class="toolSort" v-if="toolType == 6">
  8382. <div v-show="tooC == 49">
  8383. <img
  8384. @click="addTools(tooC, toolIndex, taskCount)"
  8385. src="../assets/icon/fourthToolList/group.png"
  8386. alt
  8387. />
  8388. <div style="margin: 5px 0">学生分组</div>
  8389. </div>
  8390. </div>
  8391. <div class="toolSort" v-if="toolType == 2">
  8392. <div
  8393. class="tool"
  8394. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8395. @click="addTools2(16)"
  8396. >
  8397. <div class="whiteBIcon">
  8398. <img src="../assets/icon/thirdToolList/work.png" alt />
  8399. <div style="margin: 5px 0">作业提交</div>
  8400. </div>
  8401. <div class="check">
  8402. <div
  8403. v-if="checktoolArray.indexOf(16) == -1"
  8404. class="noChoose"
  8405. ></div>
  8406. <div v-else class="isChoose"></div>
  8407. </div>
  8408. </div>
  8409. <div
  8410. class="tool"
  8411. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8412. @click="addTools2(50)"
  8413. >
  8414. <div class="whiteBIcon">
  8415. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8416. <div style="margin: 5px 0">批量上传</div>
  8417. </div>
  8418. <div class="check">
  8419. <div
  8420. v-if="checktoolArray.indexOf(50) == -1"
  8421. class="noChoose"
  8422. ></div>
  8423. <div v-else class="isChoose"></div>
  8424. </div>
  8425. </div>
  8426. </div>
  8427. <div class="toolSort" v-if="toolType == 3">
  8428. <div
  8429. class="tool"
  8430. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8431. @click="addTools2(18)"
  8432. >
  8433. <div class="whiteBIcon">
  8434. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8435. <div style="margin: 5px 0">训练平台</div>
  8436. </div>
  8437. <div class="check">
  8438. <div
  8439. v-if="checktoolArray.indexOf(18) == -1"
  8440. class="noChoose"
  8441. ></div>
  8442. <div v-else class="isChoose"></div>
  8443. </div>
  8444. </div>
  8445. <div
  8446. class="tool"
  8447. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8448. @click="addTools2(21)"
  8449. >
  8450. <div class="whiteBIcon">
  8451. <img src="../assets/icon/fourthToolList/program.png" alt />
  8452. <div style="margin: 5px 0">AIoT Blockly</div>
  8453. </div>
  8454. <div class="check">
  8455. <div
  8456. v-if="checktoolArray.indexOf(21) == -1"
  8457. class="noChoose"
  8458. ></div>
  8459. <div v-else class="isChoose"></div>
  8460. </div>
  8461. </div>
  8462. <div
  8463. class="tool"
  8464. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8465. @click="addTools2(23)"
  8466. >
  8467. <div class="whiteBIcon">
  8468. <img
  8469. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8470. alt
  8471. />
  8472. <div style="margin: 5px 0">AI Python</div>
  8473. </div>
  8474. <div class="check">
  8475. <div
  8476. v-if="checktoolArray.indexOf(23) == -1"
  8477. class="noChoose"
  8478. ></div>
  8479. <div v-else class="isChoose"></div>
  8480. </div>
  8481. </div>
  8482. <div
  8483. class="tool"
  8484. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8485. @click="addTools2(24)"
  8486. >
  8487. <div class="whiteBIcon">
  8488. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8489. <div style="margin: 5px 0">AI Blockly</div>
  8490. </div>
  8491. <div class="check">
  8492. <div
  8493. v-if="checktoolArray.indexOf(24) == -1"
  8494. class="noChoose"
  8495. ></div>
  8496. <div v-else class="isChoose"></div>
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="tool"
  8501. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8502. @click="addTools2(32)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img src="../assets/icon/thirdToolList/code.png" alt />
  8506. <div style="margin: 5px 0">源码编辑</div>
  8507. </div>
  8508. <div class="check">
  8509. <div
  8510. v-if="checktoolArray.indexOf(32) == -1"
  8511. class="noChoose"
  8512. ></div>
  8513. <div v-else class="isChoose"></div>
  8514. </div>
  8515. </div>
  8516. <div
  8517. class="tool"
  8518. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8519. @click="addTools2(57)"
  8520. >
  8521. <div class="whiteBIcon">
  8522. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8523. <div style="margin: 5px 0">CocoPi</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(57) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. <div
  8534. class="tool"
  8535. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8536. @click="addTools2(63)"
  8537. >
  8538. <div class="whiteBIcon">
  8539. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8540. <div style="margin: 5px 0">海龟编程</div>
  8541. </div>
  8542. <div class="check">
  8543. <div
  8544. v-if="checktoolArray.indexOf(63) == -1"
  8545. class="noChoose"
  8546. ></div>
  8547. <div v-else class="isChoose"></div>
  8548. </div>
  8549. </div>
  8550. <div
  8551. class="tool"
  8552. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8553. @click="addTools2(71)"
  8554. >
  8555. <div class="whiteBIcon">
  8556. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8557. <div style="margin: 5px 0">AI智能体</div>
  8558. </div>
  8559. <div class="check">
  8560. <div
  8561. v-if="checktoolArray.indexOf(71) == -1"
  8562. class="noChoose"
  8563. ></div>
  8564. <div v-else class="isChoose"></div>
  8565. </div>
  8566. </div>
  8567. </div>
  8568. <div class="toolSort" v-if="toolType == 7">
  8569. <div
  8570. class="tool"
  8571. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8572. @click="addTools2(40)"
  8573. >
  8574. <div class="whiteBIcon">
  8575. <img src="../assets/icon/secondToolList/eval.png" alt />
  8576. <div style="margin: 5px 0">个人评价</div>
  8577. </div>
  8578. <div class="check">
  8579. <div
  8580. v-if="checktoolArray.indexOf(40) == -1"
  8581. class="noChoose"
  8582. ></div>
  8583. <div v-else class="isChoose"></div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. <div class="toolSort" v-if="toolType == 5">
  8588. <div
  8589. class="tool"
  8590. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8591. @click="addTools2(28)"
  8592. >
  8593. <div class="whiteBIcon">
  8594. <img src="../assets/icon/secondToolList/translation.png" alt />
  8595. <div style="margin: 5px 0">翻译</div>
  8596. </div>
  8597. <div class="check">
  8598. <div
  8599. v-if="checktoolArray.indexOf(28) == -1"
  8600. class="noChoose"
  8601. ></div>
  8602. <div v-else class="isChoose"></div>
  8603. </div>
  8604. </div>
  8605. <div
  8606. class="tool"
  8607. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8608. @click="addTools2(31)"
  8609. >
  8610. <div class="whiteBIcon">
  8611. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8612. <div style="margin: 5px 0">数字画板</div>
  8613. </div>
  8614. <div class="check">
  8615. <div
  8616. v-if="checktoolArray.indexOf(31) == -1"
  8617. class="noChoose"
  8618. ></div>
  8619. <div v-else class="isChoose"></div>
  8620. </div>
  8621. </div>
  8622. <div
  8623. class="tool"
  8624. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8625. @click="addTools2(39)"
  8626. >
  8627. <div class="whiteBIcon">
  8628. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8629. <div style="margin: 5px 0">GeoGebra</div>
  8630. </div>
  8631. <div class="check">
  8632. <div
  8633. v-if="checktoolArray.indexOf(39) == -1"
  8634. class="noChoose"
  8635. ></div>
  8636. <div v-else class="isChoose"></div>
  8637. </div>
  8638. </div>
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8642. @click="addTools2(66)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8646. <div style="margin: 5px 0">公式编辑</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(66) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8657. <div class="whiteBIcon" @click="addTools2(67)">
  8658. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8659. <div style="margin: 5px 0">分子结构</div>
  8660. </div>
  8661. <div class="check" @click="addTools2(67)">
  8662. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8663. <div v-else class="isChoose"></div>
  8664. </div>
  8665. </div> -->
  8666. <div
  8667. class="tool"
  8668. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8669. @click="addTools2(68)"
  8670. >
  8671. <div class="whiteBIcon">
  8672. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8673. <div style="margin: 5px 0">时间轴</div>
  8674. </div>
  8675. <div class="check">
  8676. <div
  8677. v-if="checktoolArray.indexOf(68) == -1"
  8678. class="noChoose"
  8679. ></div>
  8680. <div v-else class="isChoose"></div>
  8681. </div>
  8682. </div>
  8683. <!-- <div
  8684. class="tool"
  8685. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8686. @click="addTools2(69)"
  8687. >
  8688. <div class="whiteBIcon">
  8689. <img src="../assets/icon/secondToolList/english.png" alt />
  8690. <div style="margin: 5px 0">英语写作</div>
  8691. </div>
  8692. <div class="check">
  8693. <div
  8694. v-if="checktoolArray.indexOf(69) == -1"
  8695. class="noChoose"
  8696. ></div>
  8697. <div v-else class="isChoose"></div>
  8698. </div>
  8699. </div> -->
  8700. </div>
  8701. <div class="toolSort" v-if="toolType == 4">
  8702. <div
  8703. class="tool"
  8704. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8705. @click="addTools2(26)"
  8706. >
  8707. <div class="whiteBIcon">
  8708. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8709. <div style="margin: 5px 0">课程设计</div>
  8710. </div>
  8711. <div class="check">
  8712. <div
  8713. v-if="checktoolArray.indexOf(26) == -1"
  8714. class="noChoose"
  8715. ></div>
  8716. <div v-else class="isChoose"></div>
  8717. </div>
  8718. </div>
  8719. <div
  8720. class="tool"
  8721. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8722. @click="addTools2(25)"
  8723. >
  8724. <div class="whiteBIcon">
  8725. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8726. <div style="margin: 5px 0">目标管理</div>
  8727. </div>
  8728. <div class="check">
  8729. <div
  8730. v-if="checktoolArray.indexOf(25) == -1"
  8731. class="noChoose"
  8732. ></div>
  8733. <div v-else class="isChoose"></div>
  8734. </div>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. </div>
  8739. <span
  8740. slot="footer"
  8741. class="dialog-footer"
  8742. style="display: block; text-align: center; padding: 0 0 10px 0"
  8743. >
  8744. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8745. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8746. </span>
  8747. </div>
  8748. <div
  8749. v-if="replyDialogVisible == true"
  8750. class="addDialogCss"
  8751. v-el-drag-dialog
  8752. >
  8753. <div class="pzTop">
  8754. <div class="teacherPz">
  8755. <div class="teacherPzImg">
  8756. <img src="../assets/icon/teacherPz.png" alt="" />
  8757. </div>
  8758. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8759. </div>
  8760. <div @click="replyDialogVisible = false">
  8761. <img src="../assets/close1.png" class="pzClose" alt="" />
  8762. </div>
  8763. </div>
  8764. <div class="addPzBox">
  8765. <!-- <div class="addPzCheck">
  8766. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8767. >文本</span
  8768. >
  8769. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8770. >音频</span
  8771. >
  8772. </div> -->
  8773. <div style="height: calc(100% - 50px)">
  8774. <editor-bar
  8775. class="binfo_input pzConText"
  8776. style="width: 100% !important; margin: 0 auto"
  8777. placeholder="请输入回复描述"
  8778. v-model="reply"
  8779. @change="change"
  8780. ></editor-bar>
  8781. </div>
  8782. <div class="addTextCss" @click="addHf">确定</div>
  8783. </div>
  8784. </div>
  8785. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8786. <div class="pzTop">
  8787. <div class="teacherPz">
  8788. <div class="teacherPzImg">
  8789. <img src="../assets/icon/teacherPz.png" alt="" />
  8790. </div>
  8791. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8792. </div>
  8793. <div @click="addPzDialog = false">
  8794. <img src="../assets/close1.png" class="pzClose" alt="" />
  8795. </div>
  8796. </div>
  8797. <div class="addPzBox">
  8798. <div class="addPzCheck">
  8799. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8800. >文本</span
  8801. >
  8802. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8803. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8804. >音频</span
  8805. >
  8806. </div>
  8807. <div style="height: calc(100% - 95px)">
  8808. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8809. v-if="pzType == 1"></textarea> -->
  8810. <editor-bar
  8811. class="binfo_input pzConText"
  8812. style="width: 100% !important"
  8813. placeholder="请输入任务描述"
  8814. v-model="pzConText"
  8815. @change="change"
  8816. v-if="pzType == 1"
  8817. ></editor-bar>
  8818. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8819. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8820. <div @click="addImg($event)">
  8821. <el-button type="primary">上传图片</el-button>
  8822. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8823. @change="beforeUpload1($event, 4)" />
  8824. </div>
  8825. </div> -->
  8826. </div>
  8827. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8828. 确定
  8829. </div>
  8830. </div>
  8831. </div>
  8832. <div v-if="proVisible" class="mask">
  8833. <div class="progressBox">
  8834. <!-- <div id="closePro" class="closeCss">
  8835. <img src="../assets/icon/close.png" alt />
  8836. </div> -->
  8837. <div class="lbox">
  8838. <img src="../assets/loading.gif" />上传中,请稍后
  8839. </div>
  8840. <div style="margin-bottom: 10px">
  8841. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8842. </div>
  8843. <el-progress
  8844. :text-inside="true"
  8845. :stroke-width="20"
  8846. :percentage="progress"
  8847. style="width: 80%"
  8848. ></el-progress>
  8849. </div>
  8850. </div>
  8851. <div v-if="proVisible2" class="mask">
  8852. <div class="progressBox">
  8853. <div class="lbox">
  8854. <img src="../assets/loading.gif" />上传中,请稍后
  8855. </div>
  8856. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8857. </div>
  8858. </div>
  8859. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8860. <img width="100%" :src="dialogImageUrl" alt />
  8861. </el-dialog>
  8862. <el-dialog
  8863. :title="noteName != '' ? noteName : '查看问卷'"
  8864. :visible.sync="dialogVisible5"
  8865. :append-to-body="true"
  8866. width="1000px"
  8867. :before-close="handleClose"
  8868. class="dialog_diy dialog_diy3"
  8869. >
  8870. <div>
  8871. <div
  8872. class="a_add_title"
  8873. style="
  8874. display: flex;
  8875. flex-direction: row;
  8876. align-items: center;
  8877. justify-content: center;
  8878. "
  8879. >
  8880. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8881. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8882. </div>
  8883. <div class="a_addBox">
  8884. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8885. 题目内容
  8886. </div>
  8887. <div
  8888. class="a_add_box"
  8889. v-for="(item1, index1) in askJson.askCount"
  8890. :key="index1"
  8891. >
  8892. <div class="a_add_head">
  8893. <div style="display: flex">
  8894. <span class="askIndex"> {{ index1 + 1 }}</span>
  8895. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8896. </div>
  8897. <img
  8898. v-if="askJson.askJson[index1].img"
  8899. :src="askJson.askJson[index1].img"
  8900. style="height: 300px; margin-top: 10px; max-width: 100%"
  8901. />
  8902. </div>
  8903. <div class="a_add_body">
  8904. <div class="a_add_input">
  8905. <el-radio-group
  8906. v-model="radio[index1]"
  8907. v-if="
  8908. askJson.askJson[index1].type == '1' ||
  8909. !askJson.askJson[index1].type
  8910. "
  8911. >
  8912. <el-radio
  8913. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8914. .checkList"
  8915. :key="checkIndex"
  8916. :label="checkIndex"
  8917. :disabled="isAnswer"
  8918. class="redioStyle"
  8919. ><span v-html="item2"></span
  8920. ></el-radio>
  8921. </el-radio-group>
  8922. <el-checkbox-group
  8923. v-model="radio[index1]"
  8924. v-if="askJson.askJson[index1].type == '2'"
  8925. >
  8926. <el-checkbox
  8927. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8928. .checkList"
  8929. :key="checkIndex1"
  8930. :label="checkIndex1"
  8931. :disabled="isAnswer"
  8932. class="redioStyle"
  8933. ><span v-html="item2"></span>
  8934. </el-checkbox>
  8935. </el-checkbox-group>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. <span slot="footer" class="dialog-footer">
  8942. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8943. >取 消</el-button
  8944. >
  8945. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8946. >确 定</el-button
  8947. >
  8948. </span>
  8949. </el-dialog>
  8950. <el-dialog
  8951. :title="noteName != '' ? noteName : '查看问卷'"
  8952. :visible.sync="dialogVisible5Teacher"
  8953. :append-to-body="true"
  8954. width="1000px"
  8955. :before-close="handleClose"
  8956. class="dialog_diy dialog_diy3"
  8957. >
  8958. <div>
  8959. <div class="w_name">
  8960. 学生姓名:<span>{{ sStudent.student }}</span>
  8961. </div>
  8962. <div
  8963. class="a_add_title"
  8964. style="
  8965. display: flex;
  8966. flex-direction: row;
  8967. align-items: center;
  8968. justify-content: center;
  8969. "
  8970. >
  8971. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8972. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8973. </div>
  8974. <div class="a_addBox">
  8975. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8976. 题目内容
  8977. </div>
  8978. <div
  8979. class="a_add_box"
  8980. v-for="(item1, index1) in askJson.askCount"
  8981. :key="index1"
  8982. >
  8983. <div class="a_add_head">
  8984. <div style="display: flex">
  8985. <span class="askIndex">{{ index1 + 1 }}</span>
  8986. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8987. </div>
  8988. <img
  8989. v-if="askJson.askJson[index1].img"
  8990. :src="askJson.askJson[index1].img"
  8991. style="height: 300px; margin-top: 10px; max-width: 100%"
  8992. />
  8993. </div>
  8994. <div class="a_add_body">
  8995. <div class="a_add_input">
  8996. <el-radio-group
  8997. v-model="radio[index1]"
  8998. v-if="
  8999. askJson.askJson[index1].type == '1' ||
  9000. !askJson.askJson[index1].type
  9001. "
  9002. >
  9003. <el-radio
  9004. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9005. .checkList"
  9006. :key="checkIndex"
  9007. :label="checkIndex"
  9008. :disabled="isAnswer"
  9009. class="redioStyle"
  9010. ><span v-html="item2"></span
  9011. ></el-radio>
  9012. </el-radio-group>
  9013. <el-checkbox-group
  9014. v-model="radio[index1]"
  9015. v-if="askJson.askJson[index1].type == '2'"
  9016. >
  9017. <el-checkbox
  9018. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9019. .checkList"
  9020. :key="checkIndex1"
  9021. :label="checkIndex1"
  9022. :disabled="isAnswer"
  9023. class="redioStyle"
  9024. ><span v-html="item2"></span>
  9025. </el-checkbox>
  9026. </el-checkbox-group>
  9027. </div>
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. <span slot="footer" class="dialog-footer">
  9033. <el-button
  9034. @click="dialogVisible5Teacher = false"
  9035. v-show="noteName == ''"
  9036. >取 消</el-button
  9037. >
  9038. <el-button
  9039. type="primary"
  9040. @click="addStudentAskTeacher"
  9041. v-show="noteName == ''"
  9042. >确 定</el-button
  9043. >
  9044. </span>
  9045. </el-dialog>
  9046. <el-dialog
  9047. :title="noteName != '' ? noteName : '查看选择题'"
  9048. :visible.sync="dialogVisibleChoice"
  9049. :append-to-body="true"
  9050. width="1000px"
  9051. :before-close="handleClose"
  9052. class="dialog_diy dialog_diy3"
  9053. >
  9054. <div>
  9055. <!-- <div class="a_add_title" style="
  9056. display: flex;
  9057. flex-direction: row;
  9058. align-items: center;
  9059. justify-content: center;
  9060. ">
  9061. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9062. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9063. </div> -->
  9064. <div class="a_addBox">
  9065. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9066. 题目内容
  9067. </div>
  9068. <div
  9069. class="a_add_box"
  9070. v-for="(item1, index1) in testJson.testCount"
  9071. :key="index1"
  9072. >
  9073. <div class="a_add_head">
  9074. <div style="display: flex">
  9075. <span class="askIndex">{{ index1 + 1 }}</span>
  9076. <div
  9077. v-if="testJson.testJson[index1].type == '1'"
  9078. style="margin-right: 5px; min-width: 70px"
  9079. >
  9080. (单选题)
  9081. </div>
  9082. <div
  9083. v-if="testJson.testJson[index1].type == '2'"
  9084. style="margin-right: 5px; min-width: 70px"
  9085. >
  9086. (多选题)
  9087. </div>
  9088. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9089. </div>
  9090. <img
  9091. v-if="testJson.testJson[index1].img"
  9092. :src="testJson.testJson[index1].img"
  9093. style="height: 300px; margin-top: 10px; max-width: 100%"
  9094. />
  9095. </div>
  9096. <div
  9097. class="timuImgBox"
  9098. v-if="
  9099. testJson.testJson[index1].timuList &&
  9100. testJson.testJson[index1].timuList.length
  9101. "
  9102. >
  9103. <div
  9104. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9105. :key="tIndex"
  9106. class="timuImg"
  9107. @click.stop="previewImg(timg.src)"
  9108. >
  9109. <img :src="timg.src" alt="" />
  9110. </div>
  9111. </div>
  9112. <div class="a_add_body">
  9113. <div class="a_add_input">
  9114. <el-radio-group
  9115. v-model="radio[index1]"
  9116. v-if="testJson.testJson[index1].type == '1'"
  9117. >
  9118. <div class="radioBox">
  9119. <el-radio
  9120. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9121. .checkList"
  9122. :key="checkIndex"
  9123. :label="checkIndex"
  9124. :disabled="isAnswer"
  9125. class="redioStyle"
  9126. >
  9127. <div
  9128. style="margin-right: 10px"
  9129. v-if="item2 && item2.imgType && item2.imgType == 1"
  9130. >
  9131. <div class="inImg" @click.stop="previewImg(item2.src)">
  9132. <img :src="item2.src" alt="" />
  9133. </div>
  9134. </div>
  9135. <span v-else v-html="item2"></span>
  9136. </el-radio>
  9137. </div>
  9138. </el-radio-group>
  9139. <el-checkbox-group
  9140. v-model="radio[index1]"
  9141. v-if="testJson.testJson[index1].type == '2'"
  9142. >
  9143. <div class="radioBox">
  9144. <el-checkbox
  9145. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9146. .checkList"
  9147. :key="checkIndex"
  9148. :label="checkIndex"
  9149. :disabled="isAnswer"
  9150. class="redioStyle"
  9151. >
  9152. <div
  9153. style="margin-right: 10px"
  9154. v-if="item2 && item2.imgType && item2.imgType == 1"
  9155. >
  9156. <div class="inImg" @click.stop="previewImg(item2.src)">
  9157. <img :src="item2.src" alt="" />
  9158. </div>
  9159. </div>
  9160. <span v-else v-html="item2"></span>
  9161. </el-checkbox>
  9162. </div>
  9163. </el-checkbox-group>
  9164. </div>
  9165. </div>
  9166. </div>
  9167. </div>
  9168. </div>
  9169. <span slot="footer" class="dialog-footer">
  9170. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9171. >取 消</el-button
  9172. >
  9173. <el-button
  9174. type="primary"
  9175. @click="addStudentTest"
  9176. v-show="noteName == ''"
  9177. >确 定</el-button
  9178. >
  9179. </span>
  9180. </el-dialog>
  9181. <el-dialog
  9182. :title="noteName != '' ? noteName : '查看选择题'"
  9183. :visible.sync="dialogVisibleChoiceTeacher"
  9184. :append-to-body="true"
  9185. width="1000px"
  9186. :before-close="handleClose"
  9187. class="dialog_diy dialog_diy3"
  9188. >
  9189. <div>
  9190. <div class="w_name">
  9191. 学生姓名:<span>{{ sStudent.student }}</span>
  9192. </div>
  9193. <div class="a_addBox">
  9194. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9195. 题目内容
  9196. </div>
  9197. <div
  9198. class="a_add_box"
  9199. v-for="(item1, index1) in testJson.testCount"
  9200. :key="index1"
  9201. >
  9202. <div class="a_add_head">
  9203. <div style="display: flex">
  9204. <span class="askIndex">{{ index1 + 1 }}</span>
  9205. <div
  9206. v-if="testJson.testJson[index1].type == '1'"
  9207. style="margin-right: 5px; min-width: 70px"
  9208. >
  9209. (单选题)
  9210. </div>
  9211. <div
  9212. v-if="testJson.testJson[index1].type == '2'"
  9213. style="margin-right: 5px; min-width: 70px"
  9214. >
  9215. (多选题)
  9216. </div>
  9217. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9218. </div>
  9219. <img
  9220. v-if="testJson.testJson[index1].img"
  9221. :src="testJson.testJson[index1].img"
  9222. style="height: 300px; margin-top: 10px; max-width: 100%"
  9223. />
  9224. </div>
  9225. <div
  9226. class="timuImgBox"
  9227. v-if="
  9228. testJson.testJson[index1].timuList &&
  9229. testJson.testJson[index1].timuList.length
  9230. "
  9231. >
  9232. <div
  9233. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9234. :key="tIndex"
  9235. class="timuImg"
  9236. @click.stop="previewImg(timg.src)"
  9237. >
  9238. <img :src="timg.src" alt="" />
  9239. </div>
  9240. </div>
  9241. <div class="a_add_body">
  9242. <div class="a_add_input">
  9243. <el-radio-group
  9244. v-model="radio[index1]"
  9245. v-if="testJson.testJson[index1].type == '1'"
  9246. >
  9247. <div class="radioBox">
  9248. <el-radio
  9249. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9250. .checkList"
  9251. :key="checkIndex"
  9252. :label="checkIndex"
  9253. :disabled="isAnswer"
  9254. class="redioStyle"
  9255. >
  9256. <div
  9257. style="margin-right: 10px"
  9258. v-if="item2 && item2.imgType && item2.imgType == 1"
  9259. >
  9260. <div class="inImg" @click.stop="previewImg(item2.src)">
  9261. <img :src="item2.src" alt="" />
  9262. </div>
  9263. </div>
  9264. <span v-else v-html="item2"></span>
  9265. </el-radio>
  9266. </div>
  9267. </el-radio-group>
  9268. <el-checkbox-group
  9269. v-model="radio[index1]"
  9270. v-if="testJson.testJson[index1].type == '2'"
  9271. >
  9272. <div class="radioBox">
  9273. <el-checkbox
  9274. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9275. .checkList"
  9276. :key="checkIndex"
  9277. :label="checkIndex"
  9278. :disabled="isAnswer"
  9279. class="redioStyle"
  9280. >
  9281. <div
  9282. style="margin-right: 10px"
  9283. v-if="item2 && item2.imgType && item2.imgType == 1"
  9284. >
  9285. <div class="inImg" @click.stop="previewImg(item2.src)">
  9286. <img :src="item2.src" alt="" />
  9287. </div>
  9288. </div>
  9289. <span v-else v-html="item2"></span>
  9290. </el-checkbox>
  9291. </div>
  9292. </el-checkbox-group>
  9293. </div>
  9294. </div>
  9295. </div>
  9296. </div>
  9297. </div>
  9298. <span slot="footer" class="dialog-footer">
  9299. <el-button
  9300. @click="dialogVisibleChoiceTeacher = false"
  9301. v-show="noteName == ''"
  9302. >取 消</el-button
  9303. >
  9304. <el-button
  9305. type="primary"
  9306. @click="addStudentTestTeacher"
  9307. v-show="noteName == ''"
  9308. >确 定</el-button
  9309. >
  9310. </span>
  9311. </el-dialog>
  9312. <el-dialog
  9313. title="查看富文本"
  9314. :visible.sync="dialogVisible1"
  9315. :append-to-body="true"
  9316. width="500px"
  9317. :before-close="handleClose"
  9318. class="dialog_diy textCss"
  9319. >
  9320. <el-form style="font-size: 20px">
  9321. <el-form-item label="文本标题" class="textTitle">
  9322. <div style="font-size: 20px">{{ text.name }}</div>
  9323. </el-form-item>
  9324. <div>富文本内容</div>
  9325. <div
  9326. v-html="text.url"
  9327. style="font-size: 18px; padding: 40px 0 0 0"
  9328. ></div>
  9329. </el-form>
  9330. <span slot="footer" class="dialog-footer">
  9331. <el-button type="primary" @click="dialogVisible1 = false"
  9332. >确定</el-button
  9333. >
  9334. </span>
  9335. </el-dialog>
  9336. <el-dialog
  9337. title="文件预览"
  9338. :visible.sync="dialogVisible3"
  9339. width="50%"
  9340. :before-close="handleClose"
  9341. class="dialog_diy"
  9342. :class="{ fullStyle: full }"
  9343. >
  9344. <div slot="title" class="header-title">
  9345. <div style="color: #fff">文件预览</div>
  9346. <div style="position: absolute; top: 19px; right: 50px">
  9347. <img
  9348. src="../assets/full.png"
  9349. style="height: 16px; cursor: pointer"
  9350. alt=""
  9351. @click="fullTools"
  9352. />
  9353. </div>
  9354. </div>
  9355. <pdf
  9356. v-if="showPDF"
  9357. :pdfUrl="pptImgUrl"
  9358. style="width: 100%; height: 520px; overflow: auto"
  9359. :class="{ fullStyle: full }"
  9360. ></pdf>
  9361. <iframe
  9362. v-else
  9363. :src="pptImgUrl"
  9364. frameborder="0"
  9365. width="100%"
  9366. height="600"
  9367. :class="{ fullStyle: full }"
  9368. ></iframe>
  9369. </el-dialog>
  9370. <el-dialog
  9371. title="文件预览"
  9372. :visible.sync="dialogVisible6"
  9373. width="50%"
  9374. :before-close="handleClose"
  9375. class="dialog_diy"
  9376. >
  9377. <iframe
  9378. :src="pptImgUrl1"
  9379. frameborder="0"
  9380. width="100%"
  9381. height="600"
  9382. ></iframe>
  9383. </el-dialog>
  9384. <el-dialog
  9385. title="提示"
  9386. :visible.sync="dialogVisible4"
  9387. :append-to-body="true"
  9388. width="800px"
  9389. :before-close="handleClose"
  9390. class="dialog_diy notice"
  9391. >
  9392. <div>此功能暂未开放!</div>
  9393. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9394. </el-dialog>
  9395. <el-dialog
  9396. title="问答"
  9397. :visible.sync="answerDialogVisible"
  9398. :append-to-body="true"
  9399. width="800px"
  9400. :before-close="handleClose"
  9401. class="dialog_diy"
  9402. >
  9403. <div>
  9404. <div
  9405. style="
  9406. display: flex;
  9407. flex-wrap: nowrap;
  9408. flex-direction: column;
  9409. position: relative;
  9410. "
  9411. >
  9412. <div class="queTop" style="padding: 20px 0 20px 0">
  9413. <div class="question">
  9414. <img src="../assets/icon/question.png" alt />
  9415. </div>
  9416. <div class="queTitle">
  9417. <div style="width: 90px; min-width: 90px">提问:</div>
  9418. <div>{{ answerQ }}</div>
  9419. </div>
  9420. </div>
  9421. <div class="ediBottom">
  9422. <textarea
  9423. rows="6"
  9424. class="binfo_input"
  9425. cols
  9426. style="width: 95%; height: 120px"
  9427. v-model="questionAnswer"
  9428. ></textarea>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. <div slot="footer">
  9433. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9434. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9435. </div>
  9436. </el-dialog>
  9437. <el-dialog
  9438. title="问答"
  9439. :visible.sync="answerDialogVisibleTeacher"
  9440. :append-to-body="true"
  9441. width="800px"
  9442. :before-close="handleClose"
  9443. class="dialog_diy"
  9444. >
  9445. <div>
  9446. <div class="w_name">
  9447. 学生姓名:<span>{{ sStudent.student }}</span>
  9448. </div>
  9449. <div
  9450. style="
  9451. display: flex;
  9452. flex-wrap: nowrap;
  9453. flex-direction: column;
  9454. position: relative;
  9455. "
  9456. >
  9457. <div class="queTop" style="padding: 20px 0 20px 0">
  9458. <div class="question">
  9459. <img src="../assets/icon/question.png" alt />
  9460. </div>
  9461. <div class="queTitle">
  9462. <div style="width: 90px; min-width: 90px">提问:</div>
  9463. <div>{{ answerQ }}</div>
  9464. </div>
  9465. </div>
  9466. <div class="ediBottom">
  9467. <textarea
  9468. rows="6"
  9469. class="binfo_input"
  9470. cols
  9471. style="width: 95%; height: 120px"
  9472. v-model="questionAnswer"
  9473. ></textarea>
  9474. </div>
  9475. </div>
  9476. </div>
  9477. <div slot="footer">
  9478. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9479. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9480. </div>
  9481. </el-dialog>
  9482. <el-dialog
  9483. title="倒计时"
  9484. :visible.sync="timeDialogVisible"
  9485. :append-to-body="true"
  9486. width="800px"
  9487. :before-close="handleClose"
  9488. class="dialog_diy"
  9489. >
  9490. <div>
  9491. <div style="margin-bottom: 20px; color: #999">
  9492. 提示:点击“+”或“-”修改倒计时时长。
  9493. </div>
  9494. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9495. </div>
  9496. <div slot="footer">
  9497. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9498. </div>
  9499. </el-dialog>
  9500. <el-dialog
  9501. title="权限设置"
  9502. :visible.sync="juriVisible"
  9503. :append-to-body="true"
  9504. width="400px"
  9505. :before-close="handleClose"
  9506. class="dialog_diy"
  9507. >
  9508. <div>
  9509. <div class="open_box">
  9510. <div class="switch_box">
  9511. <span>允许学生查看所有作业</span>
  9512. <el-switch
  9513. v-model="sIsOpen"
  9514. active-text=""
  9515. class="switchCss"
  9516. @change="updateSLook"
  9517. ></el-switch>
  9518. </div>
  9519. <div
  9520. class="switch_box"
  9521. v-if="
  9522. courseDetail.userid == userid ||
  9523. (courseDetail.course_teacher &&
  9524. courseDetail.course_teacher.indexOf(userid) != -1)
  9525. "
  9526. >
  9527. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9528. <span>禁止学生查看所有阶段</span>
  9529. <el-switch
  9530. v-model="IsLookOpen"
  9531. active-text=""
  9532. class="switchCss"
  9533. @change="updateLookOpen"
  9534. ></el-switch>
  9535. </div>
  9536. <div class="switch_box" v-if="courseDetail.userid == userid">
  9537. <span>开启跟随模式</span>
  9538. <el-switch
  9539. v-model="IsFollow"
  9540. active-text=""
  9541. class="switchCss"
  9542. @change="updateFollow"
  9543. ></el-switch>
  9544. </div>
  9545. </div>
  9546. </div>
  9547. <div slot="footer">
  9548. <el-button
  9549. style="background: #409efe; color: #fff"
  9550. @click="juriVisible = false"
  9551. >关 闭</el-button
  9552. >
  9553. </div>
  9554. </el-dialog>
  9555. <el-dialog
  9556. title="查看视频"
  9557. :visible.sync="videoVisible"
  9558. :append-to-body="true"
  9559. width="1000px"
  9560. :before-close="handleClose"
  9561. class="dialog_diy1"
  9562. >
  9563. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9564. <video-player
  9565. class="video-player vjs-custom-skin"
  9566. :playsinline="true"
  9567. :options="videoDetail"
  9568. @play="onPlayerPlay($event)"
  9569. style="width: 100%; height: 100%"
  9570. ></video-player>
  9571. </div>
  9572. <div slot="footer">
  9573. <el-button
  9574. style="background: #409efe; color: #fff"
  9575. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9576. >
  9577. 关 闭</el-button
  9578. >
  9579. </div>
  9580. </el-dialog>
  9581. <el-dialog
  9582. title="查看详情"
  9583. :visible.sync="commentDialogVisible"
  9584. :append-to-body="true"
  9585. width="800px"
  9586. :before-close="handleClose"
  9587. class="dialog_diy"
  9588. >
  9589. <div class="commentTop">
  9590. <div class="studentDetail">
  9591. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9592. <div class="nameAndTime">
  9593. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9594. <div>{{ commentDetail.time }}</div>
  9595. </div>
  9596. <div
  9597. class="returnBtn"
  9598. style="margin-left: auto; width: 80px"
  9599. v-if="
  9600. commentDetail.works &&
  9601. commentDetail.type == 0 &&
  9602. (tType == 1 || tType == 4)
  9603. "
  9604. @click="
  9605. showPicturePaint(
  9606. commentDetail.img ? commentDetail.img : commentDetail.works
  9607. )
  9608. "
  9609. >
  9610. 教师批注
  9611. </div>
  9612. </div>
  9613. <div
  9614. class="worksAnswer"
  9615. v-if="commentDetail.works && commentDetail.type == 2"
  9616. >
  9617. {{ JSON.parse(commentDetail.works)[0].answer }}
  9618. </div>
  9619. <div
  9620. class="worksAnswer"
  9621. v-if="commentDetail.works && commentDetail.type == 1"
  9622. >
  9623. <img
  9624. src="../assets/teacherWork.png"
  9625. v-if="commentDetail.ateacher"
  9626. class="w_teachert"
  9627. />
  9628. <pdf
  9629. v-if="showPDF"
  9630. :pdfUrl="pptImgUrl"
  9631. style="width: 100%; height: 520px; overflow: auto"
  9632. :class="{ fullStyle: full }"
  9633. ></pdf>
  9634. <iframe
  9635. v-else
  9636. :src="pptImgUrl"
  9637. frameborder="0"
  9638. width="100%"
  9639. height="600"
  9640. :class="{ fullStyle: full }"
  9641. ></iframe>
  9642. </div>
  9643. <div
  9644. class="worksAnswer"
  9645. v-if="commentDetail.works && commentDetail.type == 0"
  9646. >
  9647. <img
  9648. src="../assets/teacherWork.png"
  9649. v-if="commentDetail.ateacher"
  9650. class="w_teachert"
  9651. style="right: 105px"
  9652. />
  9653. <img
  9654. :src="commentDetail.works"
  9655. alt=""
  9656. @click="previewImg(commentDetail.works)"
  9657. />
  9658. </div>
  9659. <div
  9660. class="worksAnswer"
  9661. v-if="commentDetail.works && commentDetail.type == 3"
  9662. >
  9663. <img
  9664. src="../assets/teacherWork.png"
  9665. v-if="commentDetail.ateacher"
  9666. class="w_teachert"
  9667. />
  9668. <video-player
  9669. class="video-player vjs-custom-skin"
  9670. :playsinline="true"
  9671. :options="videoDetail"
  9672. @play="onPlayerPlay($event)"
  9673. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9674. ></video-player>
  9675. </div>
  9676. <div
  9677. class="worksAnswer"
  9678. v-if="commentDetail.works && commentDetail.type == 10"
  9679. >
  9680. <div class="cont" v-html="commentDetail.works.text"></div>
  9681. </div>
  9682. <div
  9683. class="worksAnswer codeFileBox"
  9684. v-if="commentDetail.works && commentDetail.type == 12"
  9685. @click="downloadFile(commentDetail.works)"
  9686. >
  9687. <img src="../assets/icon/codeFile.png" />
  9688. <div>点击下载文件</div>
  9689. </div>
  9690. <div
  9691. class="worksAnswer codeFileBox"
  9692. v-if="commentDetail.works && commentDetail.type == 15"
  9693. @click="
  9694. openCocoPi(
  9695. 57,
  9696. commentIndexJson.toolIndex,
  9697. commentDetail.userid,
  9698. commentDetail.sName
  9699. )
  9700. "
  9701. >
  9702. <img src="../assets/icon/codeFile.png" />
  9703. <div>点击打开CocoPi</div>
  9704. </div>
  9705. <div
  9706. class="worksAnswer"
  9707. v-if="commentDetail.works && commentDetail.type == 13"
  9708. >
  9709. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9710. </div>
  9711. <div
  9712. class="worksAnswer"
  9713. v-if="commentDetail.works && commentDetail.type == 4"
  9714. >
  9715. <div class="evalCss">
  9716. <div class="nav">请选择星星进行评分</div>
  9717. <div class="middleBox" v-if="eScore.eStar">
  9718. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9719. <div class="nameAndrate">
  9720. <div>{{ e.value }}</div>
  9721. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9722. </div>
  9723. <div v-if="e.detail">{{ e.detail }}</div>
  9724. </div>
  9725. <div class="bz">
  9726. <textarea
  9727. disabled
  9728. rows="4"
  9729. class="pj"
  9730. style="
  9731. padding: 10px 5px;
  9732. width: 70%;
  9733. background: #f7f6f9;
  9734. font-size: 14px;
  9735. text-indent: 10px;
  9736. color: #000;
  9737. "
  9738. cols
  9739. v-model="eScore.eBzText"
  9740. placeholder="请输入评价内容..."
  9741. ></textarea>
  9742. </div>
  9743. </div>
  9744. </div>
  9745. </div>
  9746. <div class="comment">
  9747. <div class="commentList">
  9748. <div class="commentImg">
  9749. <img
  9750. @click="
  9751. isLikes(
  9752. commentDetail.wid,
  9753. userid,
  9754. 1,
  9755. null,
  9756. commentDetail.isLikes
  9757. )
  9758. "
  9759. :src="commentDetail.isLikes == true ? likes : noLikes"
  9760. alt=""
  9761. />
  9762. </div>
  9763. <div>{{ commentDetail.likesCount }}</div>
  9764. </div>
  9765. <div class="commentList">
  9766. <div class="commentImg">
  9767. <img src="../assets/icon/comment/comment.png" alt="" />
  9768. </div>
  9769. <div>{{ commentDetail.commentCount }}</div>
  9770. </div>
  9771. </div>
  9772. <div class="drawPBox" v-if="commentDetail.img">
  9773. <span>教师批注</span>
  9774. <img
  9775. :src="commentDetail.img"
  9776. alt=""
  9777. @click="previewImg(commentDetail.img)"
  9778. />
  9779. <span
  9780. class="deleteImg"
  9781. v-if="tType == 1 || tType == 4"
  9782. @click.stop="deletePicturePaint(commentDetail.wid)"
  9783. style="
  9784. font-size: 14px;
  9785. width: auto !important;
  9786. color: #b4b4b4;
  9787. top: unset;
  9788. bottom: 0;
  9789. border: none;
  9790. padding: 0;
  9791. height: auto !important;
  9792. margin: 0;
  9793. "
  9794. >删除</span
  9795. >
  9796. </div>
  9797. </div>
  9798. <div class="commentBox">
  9799. <div class="pl">评论:</div>
  9800. <div style="max-height: 200px; overflow: auto">
  9801. <div
  9802. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9803. style="padding: 10px 0 0 0"
  9804. >
  9805. <div
  9806. class="studentDetail"
  9807. style="padding-top: 10px"
  9808. v-for="(co, coIndex) in commentDetail.commentJson"
  9809. :key="coIndex"
  9810. >
  9811. <div class="tx" style="min-width: 50px">
  9812. <img src="../assets/avatar.png" alt="" />
  9813. </div>
  9814. <div class="plPerson">
  9815. <div class="plName">
  9816. <div>{{ co.commentPeople }}</div>
  9817. <div style="margin-left: 5px">
  9818. {{ co.commentTime }}
  9819. </div>
  9820. <div
  9821. class="deleteComment"
  9822. v-if="userid == co.userid"
  9823. @click="deleteComment(co.wid)"
  9824. >
  9825. 删除
  9826. </div>
  9827. </div>
  9828. <div class="plContent">{{ co.commentText }}</div>
  9829. </div>
  9830. </div>
  9831. </div>
  9832. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9833. </div>
  9834. </div>
  9835. <div style="margin-top: 10px">
  9836. <div class="displayBox">
  9837. <div
  9838. style="
  9839. color: #556db4;
  9840. font-size: 14px;
  9841. font-weight: bold;
  9842. padding-bottom: 10px;
  9843. "
  9844. >
  9845. 评价
  9846. </div>
  9847. <div class="easy_comment" v-if="false">
  9848. <div
  9849. v-for="(p, pIndex) in PlTextList"
  9850. :key="pIndex"
  9851. @click="fastText(p, 1)"
  9852. >
  9853. {{ p }}
  9854. </div>
  9855. </div>
  9856. </div>
  9857. <div>
  9858. <textarea
  9859. rows="3"
  9860. class="pj"
  9861. style="padding: 10px 5px"
  9862. cols
  9863. v-model="commentText"
  9864. placeholder="请输入评论"
  9865. ></textarea>
  9866. </div>
  9867. </div>
  9868. <div slot="footer">
  9869. <el-button
  9870. @click="
  9871. (commentDialogVisible = false),
  9872. (commentIndexJson = {}),
  9873. videoDetail.sources && videoDetail.sources[0]
  9874. ? (videoDetail.sources[0].src = '')
  9875. : ''
  9876. "
  9877. >取 消</el-button
  9878. >
  9879. <el-button
  9880. type="primary"
  9881. @click="addComment(commentDetail.wid, userid, 2)"
  9882. >确 定</el-button
  9883. >
  9884. </div>
  9885. </el-dialog>
  9886. <el-dialog
  9887. title="查看文档"
  9888. :visible.sync="fullDialogVisible"
  9889. :append-to-body="true"
  9890. width="100%"
  9891. :before-close="handleClose"
  9892. :show-close="false"
  9893. class="dialog_diy full_diy"
  9894. :class="{ full_diy2: fulltype == 3 }"
  9895. >
  9896. <div slot="title" class="header-title">
  9897. <div style="color: #fff">查看文档</div>
  9898. <div
  9899. @click="fullDialogVisible = false"
  9900. style="
  9901. cursor: pointer;
  9902. position: absolute;
  9903. top: 20px;
  9904. right: 20px;
  9905. color: #fff;
  9906. "
  9907. >
  9908. 退出全屏
  9909. </div>
  9910. </div>
  9911. <div style="height: 100%">
  9912. <div
  9913. class="wheel"
  9914. v-if="
  9915. fulltype == 2 &&
  9916. fullUrl.indexOf(
  9917. 'https://view.officeapps.live.com/op/view.aspx?src='
  9918. ) != -1
  9919. "
  9920. style="width: 95%; margin: 0 auto"
  9921. >
  9922. <iframe
  9923. style="width: 100%; height: 100%; border: none"
  9924. :src="fullUrl"
  9925. ></iframe>
  9926. </div>
  9927. <iframe
  9928. v-else-if="fulltype == 2"
  9929. style="width: 100%; height: 100%; border: none"
  9930. :src="fullUrl"
  9931. security="restricted"
  9932. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9933. ></iframe>
  9934. <pdf
  9935. v-else-if="fulltype == 3"
  9936. :pdfUrl="fullUrl"
  9937. style="width: 100%; height: 100%; overflow: auto"
  9938. ></pdf>
  9939. <div
  9940. class="wheel"
  9941. v-if="fulltype == 1"
  9942. style="
  9943. box-shadow: 0 0 6px 1px #f2f2f2;
  9944. width: 100%;
  9945. background: #f1f1f1;
  9946. "
  9947. >
  9948. <div class="title" style="width: 100%; box-sizing: border-box">
  9949. 查看文档
  9950. </div>
  9951. <el-form class="textBox" style="height: 90%">
  9952. <el-form-item class="textTitle">
  9953. <div style="font-size: 22px">
  9954. {{ fullUrl.name }}
  9955. </div>
  9956. </el-form-item>
  9957. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9958. <div
  9959. v-html="fullUrl.url"
  9960. class="textContent"
  9961. style="height: auto"
  9962. ></div>
  9963. </el-form>
  9964. </div>
  9965. </div>
  9966. <!-- <div slot="footer">
  9967. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9968. </div> -->
  9969. </el-dialog>
  9970. <el-dialog
  9971. title="个人评价"
  9972. :visible.sync="studentEvalDialogVisible"
  9973. :append-to-body="true"
  9974. width="800px"
  9975. :before-close="handleClose"
  9976. class="dialog_diy"
  9977. >
  9978. <div class="evalCss">
  9979. <div class="nav">请选择星星进行评分</div>
  9980. <div class="middleBox" v-if="eScore.eStar">
  9981. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9982. <div class="nameAndrate">
  9983. <div>{{ e.value }}</div>
  9984. <el-rate
  9985. v-model="eScore.eStar[eIndex]"
  9986. :disabled="isStar"
  9987. ></el-rate>
  9988. </div>
  9989. <div v-if="e.detail">{{ e.detail }}</div>
  9990. </div>
  9991. <div class="easy_comment" v-if="false">
  9992. <div
  9993. v-for="(p, pIndex) in PlTextList"
  9994. :key="pIndex"
  9995. @click="fastText(p, 2)"
  9996. >
  9997. {{ p }}
  9998. </div>
  9999. </div>
  10000. <div class="bz">
  10001. <textarea
  10002. :disabled="isStar"
  10003. rows="4"
  10004. class="pj"
  10005. style="
  10006. padding: 10px 5px;
  10007. width: 70%;
  10008. background: #f7f6f9;
  10009. font-size: 14px;
  10010. text-indent: 10px;
  10011. "
  10012. cols
  10013. v-model="eScore.eBzText"
  10014. placeholder="请输入评价内容..."
  10015. ></textarea>
  10016. </div>
  10017. </div>
  10018. </div>
  10019. <div slot="footer">
  10020. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10021. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10022. >确 定</el-button
  10023. >
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="个人评价"
  10028. :visible.sync="studentEvalDialogVisibleTeacher"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div class="w_name">
  10035. 学生姓名:<span>{{ sStudent.student }}</span>
  10036. </div>
  10037. <div class="evalCss">
  10038. <div class="nav">请选择星星进行评分</div>
  10039. <div class="middleBox" v-if="eScore.eStar">
  10040. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10041. <div class="nameAndrate">
  10042. <div>{{ e.value }}</div>
  10043. <el-rate
  10044. v-model="eScore.eStar[eIndex]"
  10045. :disabled="isStar"
  10046. ></el-rate>
  10047. </div>
  10048. <div v-if="e.detail">{{ e.detail }}</div>
  10049. </div>
  10050. <div class="easy_comment" v-if="false">
  10051. <div
  10052. v-for="(p, pIndex) in PlTextList"
  10053. :key="pIndex"
  10054. @click="fastText(p, 2)"
  10055. >
  10056. {{ p }}
  10057. </div>
  10058. </div>
  10059. <div class="bz">
  10060. <textarea
  10061. :disabled="isStar"
  10062. rows="4"
  10063. class="pj"
  10064. style="
  10065. padding: 10px 5px;
  10066. width: 70%;
  10067. background: #f7f6f9;
  10068. font-size: 14px;
  10069. text-indent: 10px;
  10070. "
  10071. cols
  10072. v-model="eScore.eBzText"
  10073. placeholder="请输入评价内容..."
  10074. ></textarea>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. <div slot="footer">
  10079. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10080. >取 消</el-button
  10081. >
  10082. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10083. >确 定</el-button
  10084. >
  10085. </div>
  10086. </el-dialog>
  10087. <el-dialog
  10088. title="选择匹配"
  10089. :visible.sync="dialogVisibleSelect"
  10090. :append-to-body="true"
  10091. width="90%"
  10092. :before-close="handleClose"
  10093. class="dialog_diy dialog_diy3"
  10094. >
  10095. <div v-if="selectJson">
  10096. <div class="select_box2">
  10097. <div class="select_box2_title">
  10098. <div>选择匹配</div>
  10099. <div>请选择对应的答案进行答题!</div>
  10100. </div>
  10101. <div class="select_box2_box">
  10102. <div class="select_box2_img">
  10103. <img
  10104. :src="selectJson.url"
  10105. @click="previewImg(selectJson.url)"
  10106. alt=""
  10107. />
  10108. </div>
  10109. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10110. <div style="padding-top: 15px">
  10111. <div class="select_answer_title" v-if="isSelect">
  10112. {{ selectAnswer.stu }}
  10113. </div>
  10114. <div class="select_answer_title" v-else>
  10115. 根据题目选择对应答案
  10116. </div>
  10117. <div
  10118. class="select_box2_answer_box"
  10119. v-for="(item2, checkIndex) in selectJson.select"
  10120. :key="checkIndex"
  10121. >
  10122. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10123. <el-select
  10124. :disabled="isSelect"
  10125. v-model="selectAnswer.answer[checkIndex]"
  10126. placeholder="请选择正确答案"
  10127. >
  10128. <el-option
  10129. v-for="(e, eIndex) in selectJson.select"
  10130. :key="eIndex"
  10131. :label="e"
  10132. :value="eIndex"
  10133. >
  10134. </el-option>
  10135. </el-select>
  10136. </div>
  10137. </div>
  10138. <div
  10139. class="rightAnswerCss"
  10140. v-if="isSelect && (tType == 1 || tType == 4)"
  10141. >
  10142. <div
  10143. v-for="(a, aIndex) in selectJson.answer"
  10144. :key="aIndex"
  10145. class="rightAnswer"
  10146. >
  10147. <div
  10148. v-if="selectAnswer.answer[aIndex] === a"
  10149. style="color: #767de1"
  10150. >
  10151. 回答正确
  10152. </div>
  10153. <div v-else>回答错误</div>
  10154. <div
  10155. style="margin-left: 10px"
  10156. v-if="selectAnswer.answer[aIndex] !== a"
  10157. >
  10158. 正确答案:
  10159. </div>
  10160. <div
  10161. :class="
  10162. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10163. "
  10164. >
  10165. {{ selectJson.select[a] }}
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. <div class="upAnswerCss">
  10171. <el-button
  10172. type="primary"
  10173. @click="addSelectAnswer"
  10174. v-if="!isSelect"
  10175. >提交答案</el-button
  10176. >
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. </el-dialog>
  10182. <el-dialog
  10183. title="选择匹配"
  10184. :visible.sync="dialogVisibleSelectTeacher"
  10185. :append-to-body="true"
  10186. width="90%"
  10187. :before-close="handleClose"
  10188. class="dialog_diy dialog_diy3"
  10189. >
  10190. <div v-if="selectJson">
  10191. <div class="w_name">
  10192. 学生姓名:<span>{{ sStudent.student }}</span>
  10193. </div>
  10194. <div class="select_box2">
  10195. <div class="select_box2_title">
  10196. <div>选择匹配</div>
  10197. <div>请选择对应的答案进行答题!</div>
  10198. </div>
  10199. <div class="select_box2_box">
  10200. <div class="select_box2_img">
  10201. <img
  10202. :src="selectJson.url"
  10203. @click="previewImg(selectJson.url)"
  10204. alt=""
  10205. />
  10206. </div>
  10207. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10208. <div style="padding-top: 15px">
  10209. <div class="select_answer_title" v-if="isSelect">
  10210. {{ selectAnswer.stu }}
  10211. </div>
  10212. <div class="select_answer_title" v-else>
  10213. 根据题目选择对应答案
  10214. </div>
  10215. <div
  10216. class="select_box2_answer_box"
  10217. v-for="(item2, checkIndex) in selectJson.select"
  10218. :key="checkIndex"
  10219. >
  10220. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10221. <el-select
  10222. :disabled="isSelect"
  10223. v-model="selectAnswer.answer[checkIndex]"
  10224. placeholder="请选择正确答案"
  10225. >
  10226. <el-option
  10227. v-for="(e, eIndex) in selectJson.select"
  10228. :key="eIndex"
  10229. :label="e"
  10230. :value="eIndex"
  10231. >
  10232. </el-option>
  10233. </el-select>
  10234. </div>
  10235. </div>
  10236. <div
  10237. class="rightAnswerCss"
  10238. v-if="isSelect && (tType == 1 || tType == 4)"
  10239. >
  10240. <div
  10241. v-for="(a, aIndex) in selectJson.answer"
  10242. :key="aIndex"
  10243. class="rightAnswer"
  10244. >
  10245. <div
  10246. v-if="selectAnswer.answer[aIndex] === a"
  10247. style="color: #767de1"
  10248. >
  10249. 回答正确
  10250. </div>
  10251. <div v-else>回答错误</div>
  10252. <div
  10253. style="margin-left: 10px"
  10254. v-if="selectAnswer.answer[aIndex] !== a"
  10255. >
  10256. 正确答案:
  10257. </div>
  10258. <div
  10259. :class="
  10260. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10261. "
  10262. >
  10263. {{ selectJson.select[a] }}
  10264. </div>
  10265. </div>
  10266. </div>
  10267. </div>
  10268. <div class="upAnswerCss">
  10269. <el-button
  10270. type="primary"
  10271. @click="addSelectAnswerTeacher"
  10272. v-if="!isSelect"
  10273. >提交答案</el-button
  10274. >
  10275. </div>
  10276. </div>
  10277. </div>
  10278. </div>
  10279. </el-dialog>
  10280. <el-dialog
  10281. title="教师评分"
  10282. :visible.sync="dialogVisibleScore"
  10283. :append-to-body="true"
  10284. width="800px"
  10285. :before-close="handleClose"
  10286. class="dialog_diy"
  10287. >
  10288. <div>
  10289. <div class="studentDetail">
  10290. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10291. <div class="nameAndTime">
  10292. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10293. <div>{{ commentDetail.time }}</div>
  10294. </div>
  10295. </div>
  10296. <div
  10297. class="worksAnswer"
  10298. v-if="commentDetail.works && commentDetail.type == 2"
  10299. >
  10300. {{ JSON.parse(commentDetail.works)[0].answer }}
  10301. </div>
  10302. <div
  10303. class="worksAnswer"
  10304. v-if="commentDetail.works && commentDetail.type == 1"
  10305. >
  10306. <pdf
  10307. v-if="showPDF"
  10308. :pdfUrl="pptImgUrl"
  10309. style="width: 100%; height: 520px; overflow: auto"
  10310. :class="{ fullStyle: full }"
  10311. ></pdf>
  10312. <iframe
  10313. v-else
  10314. :src="pptImgUrl"
  10315. frameborder="0"
  10316. width="100%"
  10317. height="600"
  10318. :class="{ fullStyle: full }"
  10319. ></iframe>
  10320. </div>
  10321. <div
  10322. class="worksAnswer"
  10323. v-if="commentDetail.works && commentDetail.type == 0"
  10324. >
  10325. <img
  10326. :src="commentDetail.works"
  10327. alt=""
  10328. @click="previewImg(commentDetail.works)"
  10329. />
  10330. </div>
  10331. <div
  10332. class="worksAnswer"
  10333. v-if="commentDetail.works && commentDetail.type == 3"
  10334. >
  10335. <video-player
  10336. class="video-player vjs-custom-skin"
  10337. :playsinline="true"
  10338. :options="videoDetail"
  10339. @play="onPlayerPlay($event)"
  10340. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10341. ></video-player>
  10342. </div>
  10343. <div
  10344. class="worksAnswer codeFileBox"
  10345. v-if="commentDetail.works && commentDetail.type == 12"
  10346. @click="downloadFile(commentDetail.works)"
  10347. >
  10348. <img src="../assets/icon/codeFile.png" />
  10349. <div>点击下载文件</div>
  10350. </div>
  10351. <div
  10352. class="worksAnswer codeFileBox"
  10353. v-if="commentDetail.works && commentDetail.type == 15"
  10354. @click="
  10355. openCocoPi(
  10356. 57,
  10357. commentIndexJson.toolIndex,
  10358. commentDetail.userid,
  10359. commentDetail.sName
  10360. )
  10361. "
  10362. >
  10363. <img src="../assets/icon/codeFile.png" />
  10364. <div>点击打开CocoPi</div>
  10365. </div>
  10366. <div
  10367. class="worksAnswer"
  10368. v-if="commentDetail.works && commentDetail.type == 13"
  10369. >
  10370. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10371. </div>
  10372. <div class="scoreBox">
  10373. <span class="t">请输入分数</span>
  10374. <el-input-number
  10375. :disabled="courseDetail.userid != userid"
  10376. v-model="wScore"
  10377. :controls="false"
  10378. :min="0"
  10379. :max="100"
  10380. ></el-input-number>
  10381. </div>
  10382. <div class="scoreDetailBox">
  10383. <span class="t">评分评论</span>
  10384. <el-input
  10385. type="textarea"
  10386. :rows="5"
  10387. :disabled="courseDetail.userid != userid"
  10388. resize="none"
  10389. v-model="scoreDetail"
  10390. placeholder="请输入对学生的评价"
  10391. >
  10392. </el-input>
  10393. </div>
  10394. </div>
  10395. <span slot="footer" class="dialog-footer">
  10396. <el-button
  10397. @click="
  10398. (dialogVisibleScore = false),
  10399. (commentIndexJson = {}),
  10400. videoDetail.sources && videoDetail.sources[0]
  10401. ? (videoDetail.sources[0].src = '')
  10402. : ''
  10403. "
  10404. >取 消</el-button
  10405. >
  10406. <el-button
  10407. type="primary"
  10408. v-if="courseDetail.userid == userid"
  10409. @click="scoreWork(commentDetail.wid)"
  10410. >确 定
  10411. </el-button>
  10412. </span>
  10413. </el-dialog>
  10414. <el-dialog
  10415. title="排序"
  10416. :visible.sync="dialogVisibleSentence"
  10417. :append-to-body="true"
  10418. width="1000px"
  10419. :before-close="handleClose"
  10420. class="dialog_diy dialog_diy3"
  10421. >
  10422. <div>
  10423. <div class="sentenBox">
  10424. <div
  10425. v-for="(st, stIndex) in sentenceList"
  10426. :key="stIndex"
  10427. style="padding-bottom: 20px"
  10428. >
  10429. <div
  10430. style="padding: 15px 0 10px 20px"
  10431. class="sentenceTitle"
  10432. :index="stIndex + 1"
  10433. >
  10434. 题目{{ stIndex + 1 }}:请选择正确顺序
  10435. </div>
  10436. <div class="cardList" v-if="st.chooseSenList">
  10437. <div class="cardBox">
  10438. <div
  10439. v-for="(r, rIndex) in st.chooseSenList"
  10440. :key="rIndex"
  10441. @click="returnCard(r, stIndex, rIndex)"
  10442. >
  10443. <el-tooltip
  10444. class="item"
  10445. effect="light"
  10446. :content="r"
  10447. placement="top"
  10448. v-if="r != '' && r != undefined"
  10449. >
  10450. <div
  10451. :class="{
  10452. isCard: r,
  10453. isChooseCard: r == '' || r == undefined,
  10454. }"
  10455. >
  10456. <div>{{ r }}</div>
  10457. </div>
  10458. </el-tooltip>
  10459. <div
  10460. :class="{
  10461. isCard: r,
  10462. isChooseCard: r == '' || r == undefined,
  10463. }"
  10464. v-else
  10465. >
  10466. <div>{{ r }}</div>
  10467. </div>
  10468. </div>
  10469. </div>
  10470. </div>
  10471. <div class="cardList" v-if="st.addChangeSen">
  10472. <div class="cardBox">
  10473. <div
  10474. v-for="(s, sIndex) in st.addChangeSen"
  10475. :key="sIndex"
  10476. @click="setRightAnswer(s, stIndex, sIndex)"
  10477. >
  10478. <el-tooltip
  10479. class="item"
  10480. effect="light"
  10481. :content="s"
  10482. placement="top"
  10483. v-if="s != '' && s != undefined"
  10484. >
  10485. <div
  10486. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10487. >
  10488. <div>{{ s }}</div>
  10489. </div>
  10490. </el-tooltip>
  10491. <div
  10492. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10493. v-else
  10494. >
  10495. <div>{{ s }}</div>
  10496. </div>
  10497. </div>
  10498. </div>
  10499. </div>
  10500. </div>
  10501. </div>
  10502. </div>
  10503. <span slot="footer" class="dialog-footer">
  10504. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10505. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10506. </span>
  10507. </el-dialog>
  10508. <el-dialog
  10509. title="排序"
  10510. :visible.sync="dialogVisibleSentenceTeacher"
  10511. :append-to-body="true"
  10512. width="1000px"
  10513. :before-close="handleClose"
  10514. class="dialog_diy dialog_diy3"
  10515. >
  10516. <div>
  10517. <div class="w_name">
  10518. 学生姓名:<span>{{ sStudent.student }}</span>
  10519. </div>
  10520. <div class="sentenBox">
  10521. <div
  10522. v-for="(st, stIndex) in sentenceList"
  10523. :key="stIndex"
  10524. style="padding-bottom: 20px"
  10525. >
  10526. <div
  10527. style="padding: 15px 0 10px 20px"
  10528. class="sentenceTitle"
  10529. :index="stIndex + 1"
  10530. >
  10531. 题目{{ stIndex + 1 }}:请选择正确顺序
  10532. </div>
  10533. <div class="cardList" v-if="st.chooseSenList">
  10534. <div class="cardBox">
  10535. <div
  10536. v-for="(r, rIndex) in st.chooseSenList"
  10537. :key="rIndex"
  10538. @click="returnCard(r, stIndex, rIndex)"
  10539. >
  10540. <el-tooltip
  10541. class="item"
  10542. effect="light"
  10543. :content="r"
  10544. placement="top"
  10545. v-if="r != '' && r != undefined"
  10546. >
  10547. <div
  10548. :class="{
  10549. isCard: r,
  10550. isChooseCard: r == '' || r == undefined,
  10551. }"
  10552. >
  10553. <div>{{ r }}</div>
  10554. </div>
  10555. </el-tooltip>
  10556. <div
  10557. :class="{
  10558. isCard: r,
  10559. isChooseCard: r == '' || r == undefined,
  10560. }"
  10561. v-else
  10562. >
  10563. <div>{{ r }}</div>
  10564. </div>
  10565. </div>
  10566. </div>
  10567. </div>
  10568. <div class="cardList" v-if="st.addChangeSen">
  10569. <div class="cardBox">
  10570. <div
  10571. v-for="(s, sIndex) in st.addChangeSen"
  10572. :key="sIndex"
  10573. @click="setRightAnswer(s, stIndex, sIndex)"
  10574. >
  10575. <el-tooltip
  10576. class="item"
  10577. effect="light"
  10578. :content="s"
  10579. placement="top"
  10580. v-if="s != '' && s != undefined"
  10581. >
  10582. <div
  10583. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10584. >
  10585. <div>{{ s }}</div>
  10586. </div>
  10587. </el-tooltip>
  10588. <div
  10589. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10590. v-else
  10591. >
  10592. <div>{{ s }}</div>
  10593. </div>
  10594. </div>
  10595. </div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. <span slot="footer" class="dialog-footer">
  10601. <el-button @click="dialogVisibleSentenceTeacher = false"
  10602. >取 消</el-button
  10603. >
  10604. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10605. </span>
  10606. </el-dialog>
  10607. <el-dialog
  10608. title="排序"
  10609. :visible.sync="dialogVisibleSentence1"
  10610. :append-to-body="true"
  10611. width="1000px"
  10612. :before-close="handleClose"
  10613. class="dialog_diy dialog_diy3"
  10614. >
  10615. <div>
  10616. <div class="sentenBox">
  10617. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10618. {{ sentenceList1.stuName }}的作业
  10619. </div>
  10620. <div
  10621. v-for="(st, stIndex) in sentenceList1"
  10622. :key="stIndex"
  10623. style="padding-bottom: 20px"
  10624. >
  10625. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10626. 第{{ stIndex + 1 }}题
  10627. </div>
  10628. <div class="isWrong">
  10629. <div class="cardList1" v-if="st.chooseSenList">
  10630. <div class="cardBox">
  10631. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10632. <el-tooltip
  10633. class="item"
  10634. effect="light"
  10635. :content="s"
  10636. placement="top"
  10637. >
  10638. <div class="isCard">
  10639. <div>{{ s }}</div>
  10640. </div>
  10641. </el-tooltip>
  10642. </div>
  10643. </div>
  10644. <div class="cardAnswerBox">
  10645. 组成句子:{{ st.chooseSenList.join(" ") }}
  10646. </div>
  10647. </div>
  10648. <div v-if="tType == 2" class="isTj">
  10649. <div class="isTjImg">
  10650. <img src="../assets/icon/conSentences/right.png" alt="" />
  10651. </div>
  10652. <div>已提交</div>
  10653. </div>
  10654. <div
  10655. class="answerRight isTj"
  10656. v-if="
  10657. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10658. (tType == 1 || tType == 4)
  10659. "
  10660. >
  10661. <div class="isTjImg">
  10662. <img src="../assets/icon/conSentences/right.png" alt="" />
  10663. </div>
  10664. <div>回答正确</div>
  10665. </div>
  10666. <div
  10667. class="answerRight isTj"
  10668. v-if="
  10669. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10670. (tType == 1 || tType == 4)
  10671. "
  10672. >
  10673. <div class="isTjImg">
  10674. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10675. </div>
  10676. <div>回答错误</div>
  10677. </div>
  10678. </div>
  10679. <div
  10680. v-if="
  10681. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10682. (tType == 1 || tType == 4)
  10683. "
  10684. >
  10685. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10686. <div
  10687. class="cardList"
  10688. v-if="st.rightAnswer"
  10689. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10690. >
  10691. <div class="cardBox">
  10692. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10693. <el-tooltip
  10694. class="item"
  10695. effect="light"
  10696. :content="r"
  10697. placement="top"
  10698. >
  10699. <div class="isCard1">
  10700. <div>{{ r }}</div>
  10701. </div>
  10702. </el-tooltip>
  10703. </div>
  10704. </div>
  10705. <div class="cardAnswerBox">
  10706. 组成句子:{{ st.rightAnswer.join(" ") }}
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <span slot="footer" class="dialog-footer">
  10714. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10715. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10716. >确 定</el-button
  10717. >
  10718. </span>
  10719. </el-dialog>
  10720. <el-dialog
  10721. title="教师提交作业"
  10722. :visible.sync="dialogVisibleWorks"
  10723. :append-to-body="true"
  10724. width="500px"
  10725. :before-close="handleClose"
  10726. class="dialog_change"
  10727. >
  10728. <div class="marginT">
  10729. <div class="w_name">
  10730. 学生姓名:<span>{{ sStudent.student }}</span>
  10731. </div>
  10732. <div>上传文件</div>
  10733. <div
  10734. class="chapter_add"
  10735. @click="addImg($event)"
  10736. v-if="studyJuri[0].cover.length == 0"
  10737. >
  10738. <div class="up_photo">
  10739. <img src="../assets/uploadImg2.png" alt />
  10740. </div>
  10741. <!-- <input
  10742. type="file"
  10743. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10744. style="display: none"
  10745. @change="beforeUpload1($event, 1)"
  10746. /> -->
  10747. <input
  10748. type="file"
  10749. accept="*"
  10750. style="display: none"
  10751. @change="beforeUpload1($event, 1)"
  10752. />
  10753. </div>
  10754. <!-- capture="camera" -->
  10755. <div
  10756. class="chapter_add"
  10757. style="
  10758. display: flex;
  10759. width: 100%;
  10760. flex-direction: row;
  10761. flex-wrap: wrap;
  10762. justify-content: flex-start;
  10763. padding: 15px 0;
  10764. "
  10765. v-if="studyJuri[0].cover.length > 0"
  10766. >
  10767. <div class="upCover">
  10768. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10769. <img :src="word" alt v-else-if="fileType == 1" />
  10770. <img :src="video" alt v-else-if="fileType == 2" />
  10771. <img :src="word2" alt v-else-if="fileType == 3" />
  10772. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10773. <div class="deleteWord" @click="clean(1)">
  10774. <img src="../assets/icon/deleteWorks.png" alt />
  10775. </div>
  10776. </div>
  10777. </div>
  10778. </div>
  10779. <div
  10780. class="upload_send"
  10781. @click="addCourseWorksTeacher(taskCount)"
  10782. v-if="!proVisible"
  10783. >
  10784. 提交
  10785. </div>
  10786. </el-dialog>
  10787. <ImgDraw
  10788. :drawShow="drawShow"
  10789. @closeDraw="closeDraw"
  10790. @addImgDraw="addImgDraw"
  10791. :bg="bg"
  10792. ></ImgDraw>
  10793. <el-dialog
  10794. title="表格"
  10795. :visible.sync="dialogVisibleTable"
  10796. :append-to-body="true"
  10797. width="95%"
  10798. :before-close="handleClose"
  10799. class="dialog_diy"
  10800. >
  10801. <el-form>
  10802. <div
  10803. style="
  10804. display: flex;
  10805. align-items: center;
  10806. justify-content: space-between;
  10807. "
  10808. >
  10809. <span>表格内容</span>
  10810. <el-button type="primary" size="small" @click="returnTableText"
  10811. >还原模板</el-button
  10812. >
  10813. </div>
  10814. <Table
  10815. v-model="tableJson.text"
  10816. @change="change"
  10817. v-if="dialogVisibleTable"
  10818. ></Table>
  10819. </el-form>
  10820. <span slot="footer" class="dialog-footer">
  10821. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10822. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10823. </span>
  10824. </el-dialog>
  10825. <el-dialog
  10826. title="表格"
  10827. :visible.sync="dialogVisibleTableTeacher"
  10828. :append-to-body="true"
  10829. width="95%"
  10830. :before-close="handleClose"
  10831. class="dialog_diy"
  10832. >
  10833. <el-form>
  10834. <div class="w_name">
  10835. 学生姓名:<span>{{ sStudent.student }}</span>
  10836. </div>
  10837. <div>表格内容</div>
  10838. <Table
  10839. v-model="tableJson.text"
  10840. @change="change"
  10841. v-if="dialogVisibleTableTeacher"
  10842. ></Table>
  10843. </el-form>
  10844. <span slot="footer" class="dialog-footer">
  10845. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10846. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10847. </span>
  10848. </el-dialog>
  10849. <el-dialog
  10850. title="文档"
  10851. :visible.sync="dialogVisibleWord"
  10852. :append-to-body="true"
  10853. width="95%"
  10854. :before-close="handleClose"
  10855. class="dialog_diy"
  10856. >
  10857. <el-form>
  10858. <div
  10859. style="
  10860. display: flex;
  10861. align-items: center;
  10862. justify-content: space-between;
  10863. "
  10864. >
  10865. <span>文档内容</span>
  10866. <el-button type="primary" size="small" @click="returnWordText"
  10867. >还原模板</el-button
  10868. >
  10869. </div>
  10870. <editor-bar
  10871. v-model="wordJson.text"
  10872. v-if="dialogVisibleWord"
  10873. ></editor-bar>
  10874. </el-form>
  10875. <span slot="footer" class="dialog-footer">
  10876. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10877. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10878. </span>
  10879. </el-dialog>
  10880. <el-dialog
  10881. title="文档"
  10882. :visible.sync="dialogVisibleWordTeacher"
  10883. :append-to-body="true"
  10884. width="95%"
  10885. :before-close="handleClose"
  10886. class="dialog_diy"
  10887. >
  10888. <el-form>
  10889. <div class="w_name">
  10890. 学生姓名:<span>{{ sStudent.student }}</span>
  10891. </div>
  10892. <div>文档内容</div>
  10893. <editor-bar
  10894. v-model="wordJson.text"
  10895. v-if="dialogVisibleWordTeacher"
  10896. ></editor-bar>
  10897. </el-form>
  10898. <span slot="footer" class="dialog-footer">
  10899. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10900. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10901. </span>
  10902. </el-dialog>
  10903. <el-dialog
  10904. title="表格"
  10905. :visible.sync="dialogVisibleTable2"
  10906. :append-to-body="true"
  10907. width="95%"
  10908. :before-close="handleClose"
  10909. class="dialog_diy"
  10910. >
  10911. <el-form>
  10912. <div class="cont" v-html="tableJson.text"></div>
  10913. </el-form>
  10914. <span slot="footer" class="dialog-footer">
  10915. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10916. </span>
  10917. </el-dialog>
  10918. <el-dialog
  10919. title="文档"
  10920. :visible.sync="dialogVisibleTable3"
  10921. :append-to-body="true"
  10922. width="95%"
  10923. :before-close="handleClose"
  10924. class="dialog_diy"
  10925. >
  10926. <el-form>
  10927. <div class="cont" v-html="tableJson.text"></div>
  10928. </el-form>
  10929. <span slot="footer" class="dialog-footer">
  10930. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10931. </span>
  10932. </el-dialog>
  10933. <el-dialog
  10934. title="分组设置"
  10935. :visible.sync="dialogVisibleGroup"
  10936. :append-to-body="true"
  10937. width="95%"
  10938. :before-close="handleClose"
  10939. class="dialog_diy"
  10940. >
  10941. <div v-if="dialogVisibleGroup">
  10942. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10943. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10944. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10945. </div>
  10946. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10947. @click="lockChair">
  10948. 锁定位置
  10949. </div>
  10950. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10951. 解锁位置
  10952. </div> -->
  10953. <div class="group_switch">
  10954. <span>开放选座</span>
  10955. <el-switch
  10956. v-model="islock"
  10957. active-text=""
  10958. class="switchCss"
  10959. @change="lockChair"
  10960. ></el-switch>
  10961. </div>
  10962. <div
  10963. type="primary"
  10964. @click="updateGroup"
  10965. class="returnBtn"
  10966. style="background-color: #225bc7"
  10967. >
  10968. 分组设置
  10969. </div>
  10970. </div>
  10971. <div>
  10972. <div
  10973. class="g_d_box"
  10974. v-if="groupJson.group && groupStudent[toolindex]"
  10975. >
  10976. <div
  10977. class="g_d_group"
  10978. v-for="(g, gindex) in groupJson.group"
  10979. :key="gindex"
  10980. >
  10981. <div class="g_d_group_chair">
  10982. <div v-if="groupJson.number > 1">
  10983. <span
  10984. :class="{
  10985. isChair:
  10986. groupStudent[toolindex][gindex] &&
  10987. groupStudent[toolindex][gindex][0],
  10988. updateChair:
  10989. courseDetail.userid == userid &&
  10990. groupStudent[toolindex][gindex] &&
  10991. groupStudent[toolindex][gindex][0] &&
  10992. groupJson.islock == 2,
  10993. }"
  10994. ><span
  10995. class="updateChairBtn"
  10996. @click="
  10997. updateGroupChair(
  10998. groupStudent[toolindex][gindex] &&
  10999. groupStudent[toolindex][gindex][0]
  11000. )
  11001. "
  11002. >修改</span
  11003. ></span
  11004. ><span>{{
  11005. groupStudent[toolindex][gindex] &&
  11006. groupStudent[toolindex][gindex][0]
  11007. ? groupStudent[toolindex][gindex] &&
  11008. groupStudent[toolindex][gindex][0].name
  11009. : "空位置"
  11010. }}</span>
  11011. </div>
  11012. <div v-if="groupJson.number > 4">
  11013. <span
  11014. :class="{
  11015. isChair:
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][4],
  11018. updateChair:
  11019. courseDetail.userid == userid &&
  11020. groupStudent[toolindex][gindex] &&
  11021. groupStudent[toolindex][gindex][4] &&
  11022. groupJson.islock == 2,
  11023. }"
  11024. ><span
  11025. class="updateChairBtn"
  11026. @click="
  11027. updateGroupChair(
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][4]
  11030. )
  11031. "
  11032. >修改</span
  11033. ></span
  11034. ><span>{{
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][4]
  11037. ? groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][4].name
  11039. : "空位置"
  11040. }}</span>
  11041. </div>
  11042. <div v-if="groupJson.number > 8">
  11043. <span
  11044. :class="{
  11045. isChair:
  11046. groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][8],
  11048. updateChair:
  11049. courseDetail.userid == userid &&
  11050. groupStudent[toolindex][gindex] &&
  11051. groupStudent[toolindex][gindex][8] &&
  11052. groupJson.islock == 2,
  11053. }"
  11054. ><span
  11055. class="updateChairBtn"
  11056. @click="
  11057. updateGroupChair(
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][8]
  11060. )
  11061. "
  11062. >修改</span
  11063. ></span
  11064. ><span>{{
  11065. groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][8]
  11067. ? groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][8].name
  11069. : "空位置"
  11070. }}</span>
  11071. </div>
  11072. </div>
  11073. <div class="g_d_group_tableBox">
  11074. <div class="g_d_group_chair2">
  11075. <div v-if="groupJson.number > 2">
  11076. <span
  11077. :class="{
  11078. isChair:
  11079. groupStudent[toolindex][gindex] &&
  11080. groupStudent[toolindex][gindex][2],
  11081. updateChair:
  11082. courseDetail.userid == userid &&
  11083. groupStudent[toolindex][gindex] &&
  11084. groupStudent[toolindex][gindex][2] &&
  11085. groupJson.islock == 2,
  11086. }"
  11087. ><span
  11088. class="updateChairBtn"
  11089. @click="
  11090. updateGroupChair(
  11091. groupStudent[toolindex][gindex] &&
  11092. groupStudent[toolindex][gindex][2]
  11093. )
  11094. "
  11095. >修改</span
  11096. ></span
  11097. ><span>{{
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][2]
  11100. ? groupStudent[toolindex][gindex] &&
  11101. groupStudent[toolindex][gindex][2].name
  11102. : "空位置"
  11103. }}</span>
  11104. </div>
  11105. <div v-if="groupJson.number > 6">
  11106. <span
  11107. :class="{
  11108. isChair:
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][6],
  11111. updateChair:
  11112. courseDetail.userid == userid &&
  11113. groupStudent[toolindex][gindex] &&
  11114. groupStudent[toolindex][gindex][6] &&
  11115. groupJson.islock == 2,
  11116. }"
  11117. ><span
  11118. class="updateChairBtn"
  11119. @click="
  11120. updateGroupChair(
  11121. groupStudent[toolindex][gindex] &&
  11122. groupStudent[toolindex][gindex][6]
  11123. )
  11124. "
  11125. >修改</span
  11126. ></span
  11127. ><span>{{
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][6]
  11130. ? groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][6].name
  11132. : "空位置"
  11133. }}</span>
  11134. </div>
  11135. </div>
  11136. <div class="g_d_group_table">
  11137. <div>
  11138. {{ g.name }}
  11139. </div>
  11140. <div>
  11141. <div
  11142. v-if="
  11143. courseDetail.userid == userid && groupJson.islock == 2
  11144. "
  11145. @click="deleteGroupChair(gindex)"
  11146. >
  11147. 移除组员
  11148. </div>
  11149. <div
  11150. @click="selectGroup(gindex)"
  11151. v-else-if="
  11152. groupStudentUid[toolindex] &&
  11153. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11154. "
  11155. >
  11156. 加入分组
  11157. </div>
  11158. <div
  11159. @click="
  11160. exitGroup(
  11161. groupStudent[toolindex][gindex] &&
  11162. groupStudent[toolindex][gindex][
  11163. groupStudentUid[toolindex][gindex].indexOf(userid)
  11164. ].id
  11165. )
  11166. "
  11167. v-else-if="
  11168. groupStudentUid[toolindex] &&
  11169. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11170. "
  11171. >
  11172. 退出分组
  11173. </div>
  11174. </div>
  11175. </div>
  11176. <div class="g_d_group_chair2">
  11177. <div v-if="groupJson.number > 3">
  11178. <span
  11179. :class="{
  11180. isChair:
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][3],
  11183. updateChair:
  11184. courseDetail.userid == userid &&
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][3] &&
  11187. groupJson.islock == 2,
  11188. }"
  11189. ><span
  11190. class="updateChairBtn"
  11191. @click="
  11192. updateGroupChair(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][3]
  11195. )
  11196. "
  11197. >修改</span
  11198. ></span
  11199. ><span>{{
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][3]
  11202. ? groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][3].name
  11204. : "空位置"
  11205. }}</span>
  11206. </div>
  11207. <div v-if="groupJson.number > 7">
  11208. <span
  11209. :class="{
  11210. isChair:
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][7],
  11213. updateChair:
  11214. courseDetail.userid == userid &&
  11215. groupStudent[toolindex][gindex] &&
  11216. groupStudent[toolindex][gindex][7] &&
  11217. groupJson.islock == 2,
  11218. }"
  11219. ><span
  11220. class="updateChairBtn"
  11221. @click="
  11222. updateGroupChair(
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][7]
  11225. )
  11226. "
  11227. >修改</span
  11228. ></span
  11229. ><span>{{
  11230. groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][7]
  11232. ? groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][7].name
  11234. : "空位置"
  11235. }}</span>
  11236. </div>
  11237. </div>
  11238. </div>
  11239. <div class="g_d_group_chair">
  11240. <div v-if="groupJson.number > 1">
  11241. <span
  11242. :class="{
  11243. isChair:
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][1],
  11246. updateChair:
  11247. courseDetail.userid == userid &&
  11248. groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][1] &&
  11250. groupJson.islock == 2,
  11251. }"
  11252. ><span
  11253. class="updateChairBtn"
  11254. @click="
  11255. updateGroupChair(
  11256. groupStudent[toolindex][gindex] &&
  11257. groupStudent[toolindex][gindex][1]
  11258. )
  11259. "
  11260. >修改</span
  11261. ></span
  11262. ><span>{{
  11263. groupStudent[toolindex][gindex] &&
  11264. groupStudent[toolindex][gindex][1]
  11265. ? groupStudent[toolindex][gindex] &&
  11266. groupStudent[toolindex][gindex][1].name
  11267. : "空位置"
  11268. }}</span>
  11269. </div>
  11270. <div v-if="groupJson.number > 5">
  11271. <span
  11272. :class="{
  11273. isChair:
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][5],
  11276. updateChair:
  11277. courseDetail.userid == userid &&
  11278. groupStudent[toolindex][gindex] &&
  11279. groupStudent[toolindex][gindex][5] &&
  11280. groupJson.islock == 2,
  11281. }"
  11282. ><span
  11283. class="updateChairBtn"
  11284. @click="
  11285. updateGroupChair(
  11286. groupStudent[toolindex][gindex] &&
  11287. groupStudent[toolindex][gindex][5]
  11288. )
  11289. "
  11290. >修改</span
  11291. ></span
  11292. ><span>{{
  11293. groupStudent[toolindex][gindex] &&
  11294. groupStudent[toolindex][gindex][5]
  11295. ? groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][5].name
  11297. : "空位置"
  11298. }}</span>
  11299. </div>
  11300. <div v-if="groupJson.number > 9">
  11301. <span
  11302. :class="{
  11303. isChair:
  11304. groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][9],
  11306. updateChair:
  11307. courseDetail.userid == userid &&
  11308. groupStudent[toolindex][gindex] &&
  11309. groupStudent[toolindex][gindex][9] &&
  11310. groupJson.islock == 2,
  11311. }"
  11312. ><span
  11313. class="updateChairBtn"
  11314. @click="
  11315. updateGroupChair(
  11316. groupStudent[toolindex][gindex] &&
  11317. groupStudent[toolindex][gindex][9]
  11318. )
  11319. "
  11320. >修改</span
  11321. ></span
  11322. ><span>{{
  11323. groupStudent[toolindex][gindex] &&
  11324. groupStudent[toolindex][gindex][9]
  11325. ? groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][9].name
  11327. : "空位置"
  11328. }}</span>
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <span slot="footer" class="dialog-footer">
  11336. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11337. </span>
  11338. </el-dialog>
  11339. <el-dialog
  11340. title="分组设置"
  11341. :visible.sync="dialogVisibleGroup2"
  11342. :append-to-body="true"
  11343. width="650px"
  11344. :before-close="handleClose"
  11345. class="dialog_diy"
  11346. >
  11347. <div class="groupBox">
  11348. <div v-if="groupJson2.group" class="groupContent">
  11349. <div class="groupTitle">请设置小组数量及名称</div>
  11350. <div
  11351. v-for="(item, index) in groupJson2.group"
  11352. :key="index"
  11353. class="groupName"
  11354. >
  11355. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11356. <el-input
  11357. v-model="item.name"
  11358. placeholder="请输入名称..."
  11359. style="width: 250px"
  11360. ></el-input>
  11361. <!-- <div class="groupBtn">
  11362. <el-button type="primary" size="small" @click="addGroup(index)">
  11363. 添加</el-button>
  11364. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11365. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11366. </div> -->
  11367. </div>
  11368. </div>
  11369. <div class="groupContent">
  11370. <div class="groupTitle">请设置每组人数</div>
  11371. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11372. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11373. <el-input
  11374. v-model="groupJson.number"
  11375. style="width: 150px"
  11376. placeholder="请输入2-10的数字"
  11377. @change="numberPan"
  11378. ></el-input>
  11379. </div>
  11380. </div>
  11381. <span slot="footer" class="dialog-footer">
  11382. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11383. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11384. </span>
  11385. </el-dialog>
  11386. <el-dialog
  11387. title="作业提交"
  11388. :visible.sync="dialogVisibleGroupWork"
  11389. :append-to-body="true"
  11390. width="500px"
  11391. :before-close="handleClose"
  11392. class="dialog_change"
  11393. >
  11394. <div class="marginT">
  11395. <div>上传文件</div>
  11396. <div
  11397. class="chapter_add"
  11398. @click="addImg($event)"
  11399. v-if="studyJuri[0].cover.length == 0"
  11400. >
  11401. <div class="up_photo">
  11402. <img src="../assets/icon/uploadImg.png" alt />
  11403. </div>
  11404. <!-- <input
  11405. type="file"
  11406. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11407. style="display: none"
  11408. @change="beforeUpload1($event, 1)"
  11409. /> -->
  11410. <input
  11411. type="file"
  11412. accept="*"
  11413. style="display: none"
  11414. @change="beforeUpload1($event, 1)"
  11415. />
  11416. </div>
  11417. <!-- capture="camera" -->
  11418. <div
  11419. class="chapter_add"
  11420. style="
  11421. display: flex;
  11422. width: 100%;
  11423. flex-direction: row;
  11424. flex-wrap: wrap;
  11425. justify-content: flex-start;
  11426. padding: 15px 0;
  11427. "
  11428. v-if="studyJuri[0].cover.length > 0"
  11429. >
  11430. <div class="upCover">
  11431. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11432. <img :src="word" alt v-else-if="fileType == 1" />
  11433. <img :src="video" alt v-else-if="fileType == 2" />
  11434. <img :src="word2" alt v-else-if="fileType == 3" />
  11435. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11436. <div class="deleteWord" @click="clean(1)">
  11437. <img src="../assets/icon/deleteWorks.png" alt />
  11438. </div>
  11439. </div>
  11440. </div>
  11441. </div>
  11442. <div
  11443. class="upload_send"
  11444. @click="addCourseWorks2(taskCount)"
  11445. v-if="!proVisible"
  11446. >
  11447. 提交
  11448. </div>
  11449. </el-dialog>
  11450. <el-dialog
  11451. title="修改分组"
  11452. :visible.sync="dialogVisibleUpdateGroup"
  11453. :append-to-body="true"
  11454. width="350px"
  11455. :before-close="handleClose"
  11456. class="dialog_diy"
  11457. >
  11458. <div>
  11459. <h2>
  11460. {{ this.updateGroupUser.name }}
  11461. </h2>
  11462. <div style="color: rgb(171 171 171); margin-top: 10px">
  11463. 请选择要进入的分组
  11464. </div>
  11465. <el-radio-group v-model="checkChair">
  11466. <el-radio
  11467. style="display: block; margin-top: 20px"
  11468. v-for="(item, index) in updateGroupArray"
  11469. :label="item.label"
  11470. :key="index"
  11471. >{{ item.name }}</el-radio
  11472. >
  11473. </el-radio-group>
  11474. </div>
  11475. <span slot="footer" class="dialog-footer">
  11476. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11477. <el-button type="primary" @click="updateChair">确定</el-button>
  11478. </span>
  11479. </el-dialog>
  11480. <el-dialog
  11481. title="移除组员"
  11482. :visible.sync="dialogVisibleDeleteGroup"
  11483. :append-to-body="true"
  11484. width="350px"
  11485. :before-close="handleClose"
  11486. class="dialog_diy"
  11487. >
  11488. <div>
  11489. <h2>
  11490. {{ this.deleteGroupArray.name }}
  11491. </h2>
  11492. <div style="color: rgb(171 171 171); margin-top: 10px">
  11493. 请选择要删除的组员
  11494. </div>
  11495. <el-checkbox-group v-model="checkDeleteGroup">
  11496. <el-checkbox
  11497. style="display: flex; margin-top: 20px"
  11498. v-for="(item, index) in deleteGroupUser"
  11499. :label="item.userid"
  11500. :key="index"
  11501. >{{ item.name }}</el-checkbox
  11502. >
  11503. </el-checkbox-group>
  11504. </div>
  11505. <span slot="footer" class="dialog-footer">
  11506. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11507. <el-button type="primary" @click="deleteChair">确定</el-button>
  11508. </span>
  11509. </el-dialog>
  11510. <el-dialog
  11511. title="批量上传"
  11512. :visible.sync="dialogVisiblePl"
  11513. :append-to-body="true"
  11514. width="700px"
  11515. :before-close="handleClose"
  11516. class="dialog_change"
  11517. >
  11518. <div class="marginT">
  11519. <div class="plworkBox">
  11520. <div
  11521. class="chapter_add"
  11522. style="
  11523. display: flex;
  11524. width: 150px;
  11525. flex-direction: row;
  11526. flex-wrap: wrap;
  11527. justify-content: flex-start;
  11528. margin: 0 10px 10px 0;
  11529. "
  11530. v-for="(item, index) in plworkFile"
  11531. :key="index"
  11532. >
  11533. <div class="upCover2">
  11534. <img
  11535. :src="item.url"
  11536. alt
  11537. v-if="item.fileType == 1"
  11538. @click="previewImg(item.url)"
  11539. />
  11540. <img :src="word" alt v-else-if="item.fileType == 4" />
  11541. <img :src="video" alt v-else />
  11542. <!-- <span class="picName">{{ item.name }}</span> -->
  11543. <!-- <el-input
  11544. v-model="item.username"
  11545. placeholder="请输入学生名字"
  11546. style="margin-top: 10px"
  11547. ></el-input> -->
  11548. <div
  11549. class="pl_select_box"
  11550. @click="
  11551. getUpdateMore(true, checkUpload(), item.username, index)
  11552. "
  11553. >
  11554. {{ getSName(item.username) }}
  11555. </div>
  11556. <!-- <el-select
  11557. style="margin-top: 10px"
  11558. v-model="item.username"
  11559. filterable
  11560. allow-create
  11561. placeholder="请选择学生"
  11562. >
  11563. <el-option
  11564. v-for="item1 in checkUpload()"
  11565. :key="item1.userid"
  11566. :label="item1.name ? item1.name : item1.username"
  11567. :value="item1.userid"
  11568. >
  11569. </el-option>
  11570. </el-select> -->
  11571. <div class="deleteWord" @click="clean2(index)">
  11572. <img src="../assets/icon/deleteWorks.png" alt />
  11573. </div>
  11574. </div>
  11575. </div>
  11576. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11577. <div class="up_photo2">
  11578. <img src="../assets/icon/plwork.png" alt />
  11579. <span>点击上传文件</span>
  11580. </div>
  11581. <input
  11582. type="file"
  11583. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11584. multiple="multiple"
  11585. style="display: none"
  11586. @change="beforeUpload3($event, 6)"
  11587. />
  11588. </div>
  11589. </div>
  11590. </div>
  11591. <!-- capture="camera" -->
  11592. <div
  11593. class="upload_send"
  11594. @click="addCourseWorksPl(taskCount)"
  11595. v-if="!proVisible2"
  11596. >
  11597. 提交
  11598. </div>
  11599. </el-dialog>
  11600. <el-dialog
  11601. title="修改名称"
  11602. :visible.sync="dialogVisibleSname"
  11603. width="500px"
  11604. :before-close="handleClose"
  11605. class="dialog_diy"
  11606. center
  11607. >
  11608. <div
  11609. style="
  11610. text-align: center;
  11611. display: flex;
  11612. align-items: center;
  11613. justify-content: center;
  11614. "
  11615. >
  11616. <span class="tian1">名称</span>
  11617. <div
  11618. class="pl_select_box"
  11619. style="margin-left: 10px; width: 200px"
  11620. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11621. >
  11622. {{ getSName(worksSName) }}
  11623. </div>
  11624. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11625. placeholder="请选择学生">
  11626. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11627. :value="item.userid">
  11628. </el-option>
  11629. </el-select> -->
  11630. <!-- <el-input
  11631. v-model="worksSName"
  11632. style="width: 250px; margin: 15px 0px"
  11633. ></el-input> -->
  11634. </div>
  11635. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11636. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11637. <el-button type="primary" @click="updateName">确 定</el-button>
  11638. </span>
  11639. </el-dialog>
  11640. <el-dialog
  11641. title="英语写作"
  11642. :visible.sync="engDialogVisible"
  11643. :append-to-body="true"
  11644. width="800px"
  11645. :before-close="handleClose"
  11646. class="dialog_diy"
  11647. >
  11648. <onlineWrite
  11649. v-if="engDialogVisible"
  11650. :englishList="englishList"
  11651. :myAnswerList1="myAnswerList1"
  11652. :userid="userid"
  11653. ref="engJson"
  11654. ></onlineWrite>
  11655. <span slot="footer" class="dialog-footer">
  11656. <el-button @click="engDialogVisible = false">取 消</el-button>
  11657. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11658. </span>
  11659. </el-dialog>
  11660. <el-dialog
  11661. title="英语写作"
  11662. :visible.sync="engUpdateDialogVisible"
  11663. :append-to-body="true"
  11664. width="800px"
  11665. :before-close="handleClose"
  11666. class="dialog_diy fullStyle"
  11667. >
  11668. <div class="engUpBox">
  11669. <div class="engUpTop">
  11670. <div class="engTitle">
  11671. <div>作文题目:</div>
  11672. <div>{{ englishList1.engTitle }}</div>
  11673. </div>
  11674. <div class="engText">
  11675. <div>作文内容:</div>
  11676. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11677. </div>
  11678. </div>
  11679. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11680. <div class="oldBox">
  11681. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11682. <div class="oldText">
  11683. <div class="detailBox">
  11684. <div class="oldDetail">
  11685. <div>标题:</div>
  11686. <div>{{ oldEnglishJson.engTitle }} </div>
  11687. </div>
  11688. <div class="oldDetail1">
  11689. <div>正文:</div>
  11690. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11691. </div>
  11692. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11693. <div>图片:</div>
  11694. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11695. </div>
  11696. </div>
  11697. </div>
  11698. </div>
  11699. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11700. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11701. <div class="oldText">
  11702. <div class="detailBox" style="position: relative;">
  11703. <div class="oldDetail">
  11704. <div>标题:</div>
  11705. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11706. <div v-else v-html="newEnglishList.engTitle"></div>
  11707. </div>
  11708. <div class="oldDetail">
  11709. <div>正文:</div>
  11710. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11711. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11712. </div>
  11713. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11714. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11715. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11716. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11717. </div>
  11718. </div>
  11719. </div>
  11720. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11721. <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">
  11722. <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>
  11723. <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>
  11724. </div>
  11725. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11726. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11727. <div class="detailBox" style="position: relative;">
  11728. <div class="oldDetail">
  11729. <div>标题:</div>
  11730. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11731. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11732. </div>
  11733. <div class="oldDetail">
  11734. <div>正文:</div>
  11735. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11736. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11737. </div>
  11738. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11739. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11740. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11741. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11742. </div>
  11743. </div>
  11744. <div class="oldText" v-else-if="newEngIndex == -1">
  11745. <div class="detailBox" style="position: relative;">
  11746. <div class="oldDetail">
  11747. <div>标题:</div>
  11748. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11749. <div v-else v-html="newEnglishList.engTitle"></div>
  11750. </div>
  11751. <div class="oldDetail">
  11752. <div>正文:</div>
  11753. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11754. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11755. </div>
  11756. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11757. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11758. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11759. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11760. </div>
  11761. </div>
  11762. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11763. <div class="detailBox" style="position: relative;">
  11764. <div class="oldDetail">
  11765. <div>标题:</div>
  11766. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11767. <div v-else>
  11768. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11769. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11770. </div>
  11771. </div>
  11772. <div class="oldDetail">
  11773. <div>正文:</div>
  11774. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11775. <div v-else>
  11776. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11777. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11778. </div>
  11779. </div>
  11780. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11781. <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>
  11782. <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>
  11783. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11784. </div>
  11785. </div>
  11786. </div>
  11787. </div>
  11788. </div>
  11789. <span slot="footer" class="dialog-footer">
  11790. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11791. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11792. </span>
  11793. </el-dialog>
  11794. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11795. <interVideo
  11796. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11797. :videoJson="videoJson"
  11798. :userid="userid"
  11799. :id="id"
  11800. :courseType="courseType"
  11801. :taskCount="taskCount"
  11802. :toolindex="toolindex"
  11803. :videoType="videoType"
  11804. ></interVideo>
  11805. <UpdateMore
  11806. :dialogVisibleMember.sync="dialogVisibleMember"
  11807. :cList="uploadStudentJuri"
  11808. :userid="userid"
  11809. :searchTN="worksSName2"
  11810. @setPlname="setPlname"
  11811. ></UpdateMore>
  11812. <wordCloud
  11813. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11814. :data="wordCloudData"
  11815. ></wordCloud>
  11816. <el-dialog
  11817. title="挑人"
  11818. :visible.sync="dialogVisiblePickPeople"
  11819. width="650px"
  11820. :before-close="handleClose"
  11821. class="dialog_diy"
  11822. center
  11823. >
  11824. <div class="pick_box">
  11825. <div
  11826. class="noWorksName"
  11827. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11828. v-for="(item, index) in uploadStudentJuri"
  11829. :key="index"
  11830. @click="pickStudent(item)"
  11831. >
  11832. {{ item.name }}
  11833. </div>
  11834. </div>
  11835. </el-dialog>
  11836. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11837. :englishVoiceJson='englishVoiceJson'
  11838. :userid="userid"
  11839. :id="id"
  11840. :courseType="courseType"
  11841. :taskCount="taskCount"
  11842. :toolindex="toolindex"
  11843. @selectSWorks="selectSWorks"
  11844. @selectStudent="selectStudent"
  11845. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11846. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11847. :userid="userid"
  11848. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11849. :commentDetail="commentDetail"
  11850. :courseDetail="courseDetail"
  11851. :wScore="wScore"
  11852. :scoreDetail="scoreDetail"
  11853. @selectSWorks="selectSWorks"
  11854. @selectStudent="selectStudent"></checkEnglishVoice>
  11855. </div>
  11856. </template>
  11857. <script>
  11858. import "../common/aws-sdk-2.235.1.min.js";
  11859. // import pdf from "./components/pdf3";
  11860. import pdf from "./components/vpdf";
  11861. import AskStatic from "./components/askStatic";
  11862. import AskStatic2 from "./components/askStatic2";
  11863. import AnswerData2 from "./components/answerData2";
  11864. import AnswerData from "./components/answerData";
  11865. import EditorBar from "./tools/wangEnduit.vue";
  11866. import Table from "./tools/table.vue";
  11867. import Time from "./tools/time.vue";
  11868. import Mind from "./tools/jsmind.vue";
  11869. import Sunburst from "./tools/sunburst";
  11870. import SeeBoard from "./tools/seeBoard";
  11871. import * as imageConversion from "image-conversion";
  11872. import Audio from "./components/audio.vue";
  11873. import ImgDraw from "./tools/imgDraw/imgDraw";
  11874. import { Empty } from "element-ui";
  11875. import RecordRTC from "recordrtc";
  11876. import interVideo from "./interVideo/index.vue";
  11877. import UpdateMore from "./updateMore/updateMore.vue";
  11878. import wordCloud from "./wordCloud/index.vue";
  11879. import axios from "axios";
  11880. import JSZip from "jszip";
  11881. import FileSaver from "file-saver";
  11882. import onlineWrite from "./components/onlineWrite";
  11883. import englishEva from "./components/englishEva";
  11884. import * as Diff from 'diff'
  11885. import EnglishVoice from './EnglishVoice2/index.vue'
  11886. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11887. import correctText from './components/correctText.vue'
  11888. import scoreItem from './scoreList/scoreItem.vue'
  11889. import scoreZong from './scoreZong/index.vue'
  11890. import classRoomHelper from './classRoomHelper/index.vue'
  11891. const getFile = (url) => {
  11892. return new Promise((resolve, reject) => {
  11893. var credentials = {
  11894. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11895. secretAccessKey: "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",
  11896. }; //秘钥形式的登录上传
  11897. window.AWS.config.update(credentials);
  11898. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11899. let url2 = url;
  11900. let _url2 = "";
  11901. if (
  11902. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11903. ) {
  11904. _url2 = url2.split(
  11905. "https://view.officeapps.live.com/op/view.aspx?src="
  11906. )[1];
  11907. } else {
  11908. _url2 = url2;
  11909. }
  11910. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11911. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11912. var params = {
  11913. Bucket: "ccrb",
  11914. Key: name
  11915. };
  11916. s3.getObject(params, function (err, data) {
  11917. if (err) {
  11918. console.log(err, err.stack)
  11919. resolve({ data: 1 });
  11920. }else {
  11921. resolve({ data: data.Body });
  11922. console.log(data);
  11923. } // sxuccessful response
  11924. });
  11925. // axios({
  11926. // method: "get",
  11927. // url,
  11928. // responseType: "blob",
  11929. // })
  11930. // .then((data) => {
  11931. // resolve({ data: data.data });
  11932. // })
  11933. // .catch((error) => {
  11934. // resolve({ data: 1 });
  11935. // // reject(error.toString());
  11936. // });
  11937. });
  11938. };
  11939. export default {
  11940. components: {
  11941. EditorBar,
  11942. Time,
  11943. pdf,
  11944. AskStatic,
  11945. AskStatic2,
  11946. Mind,
  11947. Sunburst,
  11948. SeeBoard,
  11949. AnswerData2,
  11950. AnswerData,
  11951. Audio,
  11952. ImgDraw,
  11953. Table,
  11954. interVideo,
  11955. UpdateMore,
  11956. wordCloud,
  11957. onlineWrite,
  11958. englishEva,
  11959. EnglishVoice,
  11960. checkEnglishVoice,
  11961. correctText,
  11962. scoreItem,
  11963. classRoomHelper,
  11964. scoreZong
  11965. },
  11966. data() {
  11967. return {
  11968. bg: null,
  11969. drawShow: false,
  11970. dialogVisible: false,
  11971. dialogVisiblePl: false,
  11972. commentDialogVisible: false,
  11973. dialogVisibleMember: false,
  11974. dialogVisibleWordCloud: false,
  11975. videoVisible: false,
  11976. isStar: false,
  11977. studentEvalDialogVisible: false,
  11978. studentEvalDialogVisibleTeacher: false,
  11979. dialogVisibleSelect: false,
  11980. dialogVisibleSelectTeacher: false,
  11981. dialogVisibleScore: false,
  11982. dialogVisibleENScore: false,
  11983. dialogVisibleSentence: false,
  11984. dialogVisibleSentenceTeacher: false,
  11985. dialogVisibleSentence1: false,
  11986. dialogVisibleWorks: false,
  11987. dialogVisibleTable: false,
  11988. dialogVisibleTableTeacher: false,
  11989. dialogVisibleWord: false,
  11990. dialogVisibleWordTeacher: false,
  11991. dialogVisibleTable2: false,
  11992. dialogVisibleTable3: false,
  11993. dialogVisibleGroupWork: false,
  11994. dialogVisibleUpdateGroup: false,
  11995. dialogVisibleDeleteGroup: false,
  11996. dialogVisibleSname: false,
  11997. dialogVisibleVideo: false,
  11998. dialogVisiblePickPeople: false,
  11999. engDialogVisible: false,
  12000. engUpdateDialogVisible: false,
  12001. engEvaDialogVisible: false,
  12002. evaEngJson: {
  12003. teacherJson: {},
  12004. studentJson: {},
  12005. message: {},
  12006. },
  12007. isNoUserid:false,
  12008. engListLength:0,
  12009. engWid:"",
  12010. newEnglishList:{
  12011. engTitle:"",
  12012. engText:"",
  12013. },
  12014. newEnglishList1:[],
  12015. oldEnglishJson:{},
  12016. oldEnglishJson1:{},
  12017. englishList1:{},
  12018. englishList:{},
  12019. myAnswerList1:{},
  12020. topHeight:0,
  12021. newEngIndex:-1,
  12022. englishToolIndex:0,
  12023. worksSName: "",
  12024. classJuri: [],
  12025. uploadStudentJuri: [],
  12026. uploadCid: "",
  12027. snameWid: "",
  12028. sStudent: {},
  12029. sTool: "",
  12030. bzText: "",
  12031. commentDetail: [],
  12032. selectAnswer: [],
  12033. videoDetail: {},
  12034. selectJson: {},
  12035. eScore: { eBzText: "", eStar: [] },
  12036. id: this.$route.query.courseId,
  12037. userid: this.$route.query.userid,
  12038. classId: this.$route.query.cid,
  12039. // courseTypeLine: this.$route.query.type,
  12040. oid: this.$route.query.oid,
  12041. org: this.$route.query.org,
  12042. tType: this.$route.query.tType,
  12043. courseType: this.$route.query.type,
  12044. screenType: this.$route.query.screenType,
  12045. tcid2: this.$route.query.tcid,
  12046. tcid: "",
  12047. pptImgUrl: "",
  12048. pptImgUrl1: "",
  12049. commentText: "",
  12050. full: false,
  12051. sIsOpen: false,
  12052. IsLookOpen: false,
  12053. IsFollow: false,
  12054. pzDialog: false,
  12055. contentDialog: false,
  12056. mlDialog: false,
  12057. type: 1,
  12058. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12059. sentenceList1: [],
  12060. tableJson: [],
  12061. tableJsonO: [],
  12062. wordJson: [],
  12063. wordJsonO: [],
  12064. vedio: [],
  12065. text: [],
  12066. textList: [],
  12067. line: [],
  12068. lineList: [],
  12069. chapTools: [],
  12070. chapToolList: [],
  12071. file: [],
  12072. fileC: [],
  12073. vedioTime: [],
  12074. upToolImg: "",
  12075. preTime: 0,
  12076. rateList: {
  12077. ca: 0,
  12078. },
  12079. rateParams: [],
  12080. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12081. studyJuri: [
  12082. {
  12083. content: "",
  12084. cover: [],
  12085. upVedio: [],
  12086. upFile: [],
  12087. },
  12088. ],
  12089. isClose: 0,
  12090. plworkFile: [],
  12091. mr: require("../assets/vedioPic.png"),
  12092. word: require("../assets/icon/isWord.png"),
  12093. word2: require("../assets/icon/word2.png"),
  12094. video: require("../assets/icon/isVideo.png"),
  12095. noLikes: require("../assets/icon/comment/noLikes.png"),
  12096. likes: require("../assets/icon/comment/likes.png"),
  12097. scoreImg: require("../assets/score.png"),
  12098. courseDetail: {},
  12099. reply: "",
  12100. isSelect: false,
  12101. chapInfo: [],
  12102. chapInfoList: [],
  12103. taskCount: 0,
  12104. imgList: [],
  12105. noImgList: [],
  12106. pzList: [],
  12107. timeWorkList: [],
  12108. PlTextList: [
  12109. "Excellent!",
  12110. "nice!",
  12111. "很有创意!",
  12112. "还不错哦~",
  12113. "继续努力哦~",
  12114. ],
  12115. isClickNav: "",
  12116. navId: "",
  12117. playerOptions: {
  12118. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12119. autoplay: false, //如果true,浏览器准备好时开始回放。
  12120. muted: false, // 默认情况下将会消除任何音频。
  12121. loop: false, // 导致视频一结束就重新开始。
  12122. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12123. language: "zh-CN",
  12124. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12125. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12126. sources: [
  12127. {
  12128. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12129. src: "", //url地址require("../../assets/media/aaa.mp4")
  12130. },
  12131. ],
  12132. // poster: require("../../assets/tu31.png"), //你的封面地址
  12133. // poster: dataRes.imgUrl, //你的封面地址
  12134. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12135. controlBar: {
  12136. timeDivider: true, //当前时间和持续时间的分隔符
  12137. durationDisplay: true, //显示持续时间
  12138. remainingTimeDisplay: false, //是否显示剩余时间功能
  12139. fullscreenToggle: true, //全屏按钮
  12140. },
  12141. },
  12142. playerOptions1: {
  12143. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12144. autoplay: false, //如果true,浏览器准备好时开始回放。
  12145. muted: false, // 默认情况下将会消除任何音频。
  12146. loop: false, // 导致视频一结束就重新开始。
  12147. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12148. language: "zh-CN",
  12149. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12150. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12151. sources: [
  12152. {
  12153. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12154. src: "", //url地址require("../../assets/media/aaa.mp4")
  12155. },
  12156. ],
  12157. // poster: require("../../assets/tu31.png"), //你的封面地址
  12158. // poster: dataRes.imgUrl, //你的封面地址
  12159. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12160. controlBar: {
  12161. timeDivider: true, //当前时间和持续时间的分隔符
  12162. durationDisplay: true, //显示持续时间
  12163. remainingTimeDisplay: false, //是否显示剩余时间功能
  12164. fullscreenToggle: true, //全屏按钮
  12165. },
  12166. },
  12167. playerO: {},
  12168. noneBtnImg: false,
  12169. proVisible: false,
  12170. proVisible2: false,
  12171. progress: 0,
  12172. isFinishSize: 0,
  12173. isAllSize: 0,
  12174. questionAnswer: "",
  12175. answerQ: "", //问答标题
  12176. rateJson: [],
  12177. wbCount: 0,
  12178. wordCount: 0,
  12179. mindCount: 0,
  12180. askCount: 0,
  12181. noteCount: 0,
  12182. mindNetWorkCount: 0,
  12183. libraryCount: 0,
  12184. workCount: 0,
  12185. timeCount: 0,
  12186. answerCount: 0,
  12187. trainCount: 0,
  12188. evalCount: 0,
  12189. dialogImageUrl: "",
  12190. pictureDialog: false,
  12191. toolTypeList: [],
  12192. dialogVisible1: false,
  12193. dialogVisible2: false,
  12194. dialogVisible3: false,
  12195. dialogVisible6: false,
  12196. dialogVisible4: false,
  12197. isNoHomeWork: false,
  12198. dialogVisible5: false,
  12199. dialogVisible5Teacher: false,
  12200. dialogVisibleChoice: false,
  12201. dialogVisibleChoiceTeacher: false,
  12202. answerDialogVisible: false,
  12203. answerDialogVisibleTeacher: false,
  12204. juriVisible: false,
  12205. timeDialogVisible: false,
  12206. replyDialogVisible: false,
  12207. toolDialogVisible: false,
  12208. replyIndex: 0,
  12209. replyPid: "",
  12210. radio: [],
  12211. isAsk: false,
  12212. askJson: {
  12213. askCount: 1,
  12214. askTitle: "",
  12215. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12216. },
  12217. testJson: {},
  12218. videoType:0,
  12219. checkJson: [],
  12220. askList: [],
  12221. answerList: [],
  12222. navList: [],
  12223. addPzDialog: false,
  12224. pzConText: "",
  12225. worksStudent: [],
  12226. isCloseList: [],
  12227. workStudent: [],
  12228. groupStudent: [],
  12229. groupStudentUid: [],
  12230. noWorksS: [],
  12231. isWorksS: [],
  12232. noWorksStudent: [],
  12233. toolindex: 0,
  12234. toolDetailIndex: null,
  12235. groupIndex: 0,
  12236. workTypeB: false,
  12237. workTypeC: false,
  12238. isAnswer: false,
  12239. isHovered: false,
  12240. isHovered1: false,
  12241. isHovered2: false,
  12242. commentTagShow:0,
  12243. timer: null,
  12244. opertimer: null,
  12245. showType: 0,
  12246. fileType: 0,
  12247. showPDF: false,
  12248. noteName: "",
  12249. evaJuri: [],
  12250. evalua: "",
  12251. eTitle: "",
  12252. eName: "",
  12253. eJson: {},
  12254. fid: "", //一级
  12255. sid: "", //二级
  12256. tid: "", //二级
  12257. typeMode: 1,
  12258. eJSONNum: 0,
  12259. Etype: 1,
  12260. data: {
  12261. meta: {
  12262. name: "example",
  12263. author: "dd@163.com",
  12264. version: "0.2",
  12265. },
  12266. format: "node_array",
  12267. data: [{ id: "root", isroot: true, topic: "" }],
  12268. },
  12269. fullDialogVisible: false,
  12270. fulltype: "",
  12271. fullUrl: "",
  12272. commentIndexJson: {},
  12273. Stbodywidth: 0,
  12274. ispzType: 0,
  12275. pzType: 1,
  12276. wScore: 0,
  12277. scoreDetail: "",
  12278. videoStart: false,
  12279. recorder: null,
  12280. groupJson: {},
  12281. islock: false,
  12282. groupJson2: {},
  12283. dialogVisibleGroup: false,
  12284. dialogVisibleGroup2: false,
  12285. updateGroupArray: [],
  12286. updateGroupUser: {},
  12287. deleteGroupUser: [],
  12288. deleteGroupArray: {},
  12289. checkChair: "",
  12290. checkDeleteGroup: [],
  12291. inviteCode: "",
  12292. courseGroupStudent: [],
  12293. courseGroupStudentUid: [],
  12294. courseGroup: {},
  12295. isGroup: false,
  12296. // toolIndex: null,
  12297. tool: {},
  12298. isWorkTool: [
  12299. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12300. ], //, 40
  12301. videoJson: {},
  12302. toolType: 0,
  12303. checktoolArray: [],
  12304. vChapterData: [],
  12305. isUpdateToolDetail: false,
  12306. isUpdateToolDetail1: false,
  12307. updateToolDetailInner: "",
  12308. checkboxList: [],
  12309. plIndex: "",
  12310. worksSName2: "",
  12311. worksSid: "",
  12312. wordCloudData: [],
  12313. isPickStudent: [],
  12314. pzStype: 1,
  12315. myAnList: {},
  12316. userMes:{},
  12317. downLoading: false,
  12318. greyType: false,
  12319. correctWord: [],
  12320. isUpdateText: "",
  12321. EnglishVoiceDialog: false,
  12322. englishVoiceJson: {},
  12323. englishVoiceJsonWork:[],
  12324. scoreList:{
  12325. listdata:[],
  12326. isScoreList:[],
  12327. },
  12328. classRoomHelperWidth: '85px',
  12329. orgArray:[],
  12330. oidArray:[],
  12331. toolsList:{
  12332. 58: "模拟驾驶",
  12333. 59: "路径搜索",
  12334. 60: "深度学习",
  12335. 10: "倒计时",
  12336. 65: "挑人",
  12337. 7: "思维网格",
  12338. 1: "电子白板",
  12339. 52: "文档",
  12340. 3: "思维导图",
  12341. 48: "表格",
  12342. 49: "学生分组",
  12343. 4: "卷调查",
  12344. 45: "选择题",
  12345. 15: "问答",
  12346. 16: "作业提交",
  12347. 50: "批量上传",
  12348. 41: "选择匹配",
  12349. 47: "排序",
  12350. 40: "个人评价",
  12351. 18: "训练平台",
  12352. 21: "AIoT Blockly",
  12353. 23: "AI Python",
  12354. 24: "AI Blockly",
  12355. 32: "源码编辑",
  12356. 57: "CocoPi",
  12357. 63: "海龟编程",
  12358. 28: "翻译",
  12359. 31: "数字画板",
  12360. 39: "GeoGebra",
  12361. 66: "公式编辑",
  12362. 67: "分子结构",
  12363. 68: "时间轴",
  12364. 69: "英语写作",
  12365. 70: "英语口语",
  12366. 25: "目标管理",
  12367. 26: "课程设计",
  12368. 62: "交互视频",
  12369. 71: "AI智能体"
  12370. }
  12371. };
  12372. },
  12373. methods: {
  12374. getAIJ(){
  12375. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12376. let oid = res.data[0];
  12377. let org = res.data[1];
  12378. let oidArray = [];
  12379. let orgArray = [];
  12380. oid.forEach(i=>oidArray.push(i.oid))
  12381. org.forEach(i=>orgArray.push(i.oid))
  12382. this.orgArray = orgArray;
  12383. this.oidArray = oidArray;
  12384. })
  12385. },
  12386. insertMemorandum(_html){//保存行为操作
  12387. return;
  12388. //variable
  12389. //btn
  12390. let params = [{
  12391. uid:this.userid,
  12392. courseId:this.id,
  12393. content:_html
  12394. }]
  12395. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12396. if(res.data==1){
  12397. console.log('保存操作成功')
  12398. }else{
  12399. console.log('保存操作失败')
  12400. }
  12401. }).catch(e=>{
  12402. console.log('保存操作失败')
  12403. console.log(e)
  12404. })
  12405. },
  12406. gx(){
  12407. this.$forceUpdate();
  12408. },
  12409. isUpdateCorrect(t,p){
  12410. if(this.greyType == false){
  12411. this.isUpdateText = t;
  12412. this.greyType = true;
  12413. }else{
  12414. if(p == 1){
  12415. this.newEnglishList.engText = this.isUpdateText;
  12416. }else if(p == 2){
  12417. this.oldEnglishJson1.engText = this.isUpdateText;
  12418. }else if(p == 3){
  12419. this.newEnglishList.engText = this.isUpdateText;
  12420. }else{
  12421. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12422. }
  12423. this.greyType = false
  12424. }
  12425. },
  12426. aiCorrect(t,p){
  12427. let aiText = "";
  12428. const loading = this.$loading.service({
  12429. background: "rgba(255, 255, 255)",
  12430. target: document.querySelectorAll(".loadingText")[0],
  12431. });
  12432. let param = {
  12433. model: "gpt-3.5-turbo",
  12434. temperature: 0,
  12435. max_tokens: 2048,
  12436. top_p: 1,
  12437. frequency_penalty: 0,
  12438. presence_penalty: 0,
  12439. messages: [
  12440. {
  12441. role: "user",
  12442. content:
  12443.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12444. },
  12445. ],
  12446. uid: this.userid,
  12447. stream: false,
  12448. };
  12449. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12450. (res) => {
  12451. if (
  12452. res.data.FunctionResponse &&
  12453. res.data.FunctionResponse.result &&
  12454. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12455. ) {
  12456. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12457. return;
  12458. }
  12459. aiText =
  12460. res.data.FunctionResponse.choices[0].message.content;
  12461. aiText = aiText.replace(/%/g,"%25");
  12462. // let w = "";
  12463. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12464. // for(var k = 0;k<a.length;k++){
  12465. // //diffWordsWithSpace
  12466. // if(a.length > 1){
  12467. // if(a[k].added == true){
  12468. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12469. // }else if(a[k].removed == true){
  12470. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12471. // }else{
  12472. // w += '<span>' + a[k].value + '</span>';
  12473. // }
  12474. // }else{
  12475. // if(p == 1){
  12476. // w = this.newEnglishList.engText;
  12477. // }else if(p == 2){
  12478. // w = this.oldEnglishJson1.engText;
  12479. // }else if(p == 3){
  12480. // w = this.newEnglishList.engText;
  12481. // }else{
  12482. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12483. // }
  12484. // }
  12485. // }
  12486. if(p == 1){
  12487. this.newEnglishList.engText = aiText;
  12488. }else if(p == 2){
  12489. this.oldEnglishJson1.engText = aiText;
  12490. }else if(p == 3){
  12491. this.newEnglishList.engText = aiText;
  12492. }else{
  12493. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12494. }
  12495. loading.close();
  12496. },
  12497. (err) => {
  12498. console.log(err);
  12499. loading.close();
  12500. }
  12501. );
  12502. },
  12503. addToolChoose() {
  12504. if (!this.checktoolArray.length) {
  12505. this.$message.error("请选择要添加的任务");
  12506. return;
  12507. }
  12508. if (
  12509. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12510. this.taskCount
  12511. ].toolChoose[0].tool.length
  12512. ) {
  12513. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12514. this.taskCount
  12515. ].toolChoose[0].tool = this.checktoolArray;
  12516. } else {
  12517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12518. this.taskCount
  12519. ].toolChoose.push({
  12520. tool: this.checktoolArray,
  12521. toolDetail: "",
  12522. toolType: 0,
  12523. askCount: 1,
  12524. askTitle: "",
  12525. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12526. });
  12527. }
  12528. let params = [
  12529. {
  12530. cid: this.id,
  12531. chapters: JSON.stringify(this.chapInfoList),
  12532. uid: this.userid,
  12533. unitIndex: this.courseType,
  12534. },
  12535. ];
  12536. this.ajax
  12537. .post(this.$store.state.api + "updateWorkNew4", params)
  12538. .then((res) => {
  12539. this.$message({
  12540. message: "添加成功",
  12541. type: "success",
  12542. });
  12543. this.checktoolArray = [];
  12544. this.getCourseDetail(2);
  12545. this.checkBz(
  12546. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12547. this.taskCount
  12548. ].toolChoose.length - 1
  12549. );
  12550. this.toolDialogVisible = false;
  12551. this.refreshCourse();
  12552. this.$forceUpdate();
  12553. })
  12554. .catch((err) => {
  12555. console.error(err);
  12556. });
  12557. },
  12558. checkBz(index) {
  12559. this.isUpdateToolDetail = false;
  12560. this.$forceUpdate();
  12561. setTimeout(() => {
  12562. document.scrollingElement.scrollTop =
  12563. document.querySelectorAll(".filebox")[index].offsetTop +
  12564. document.querySelector(".student_body").offsetTop;
  12565. }, 500);
  12566. },
  12567. updateToolDetail(i, type) {
  12568. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12569. this.toolDetailIndex = i
  12570. this.isUpdateToolDetail1 = true;
  12571. setTimeout(() => {
  12572. this.updateToolDetailInner = JSON.parse(
  12573. JSON.stringify(
  12574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12575. this.taskCount
  12576. ].toolChoose[i].toolDetail
  12577. )
  12578. );
  12579. document.querySelector(".checkTextArea").focus();
  12580. }, 0);
  12581. } else if((this.isUpdateToolDetail1 && type != 2)){
  12582. // this.toolDetailIndex = i;
  12583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12584. this.taskCount
  12585. ].toolChoose[i].toolDetail = JSON.parse(
  12586. JSON.stringify(this.updateToolDetailInner)
  12587. );
  12588. let params = [
  12589. {
  12590. cid: this.id,
  12591. chapters: JSON.stringify(this.chapInfoList),
  12592. uid: this.userid,
  12593. unitIndex: this.courseType,
  12594. },
  12595. ];
  12596. this.ajax
  12597. .post(this.$store.state.api + "updateWorkNew4", params)
  12598. .then((res) => {
  12599. this.isUpdateToolDetail1 = false;
  12600. this.$message({
  12601. message: "修改成功",
  12602. type: "success",
  12603. });
  12604. this.toolDetailIndex = null;
  12605. this.updateToolDetailInner = "";
  12606. this.getCourseDetail(2);
  12607. this.$forceUpdate();
  12608. })
  12609. .catch((err) => {
  12610. console.error(err);
  12611. });
  12612. } else if((this.isUpdateToolDetail1 && type == 2)){
  12613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12614. this.taskCount
  12615. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12616. JSON.stringify(this.updateToolDetailInner)
  12617. );
  12618. let params = [
  12619. {
  12620. cid: this.id,
  12621. chapters: JSON.stringify(this.chapInfoList),
  12622. uid: this.userid,
  12623. unitIndex: this.courseType,
  12624. },
  12625. ];
  12626. this.ajax
  12627. .post(this.$store.state.api + "updateWorkNew4", params)
  12628. .then((res) => {
  12629. this.$message({
  12630. message: "修改成功",
  12631. type: "success",
  12632. });
  12633. this.toolDetailIndex = i;
  12634. this.isUpdateToolDetail1 = true;
  12635. setTimeout(() => {
  12636. this.updateToolDetailInner = JSON.parse(
  12637. JSON.stringify(
  12638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12639. this.taskCount
  12640. ].toolChoose[i].toolDetail
  12641. )
  12642. );
  12643. document.querySelector(".checkTextArea").focus();
  12644. }, 0);
  12645. this.getCourseDetail(2);
  12646. this.$forceUpdate();
  12647. })
  12648. .catch((err) => {
  12649. console.error(err);
  12650. });
  12651. }
  12652. },
  12653. jumpGj(i, j, k, l) {
  12654. for (var z = 0; z < this.navList.length; z++) {
  12655. for (var q = 0; q < this.navList[z].task.length; q++) {
  12656. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12657. this.navList[z].task[q].tool[w].isTool = false;
  12658. }
  12659. }
  12660. }
  12661. this.navList[i].task[j].tool[k].isTool =
  12662. !this.navList[i].task[j].tool[k].isTool;
  12663. var a = document.scrollingElement;
  12664. this.navId = ""
  12665. let target = document.querySelector(`#gj${k}`);
  12666. if (target) {
  12667. target.scrollIntoView(true);
  12668. setTimeout(() => {
  12669. a.scrollTop = a.scrollTop - 150;
  12670. }, 0);
  12671. }
  12672. let flag = this.courseType == i;
  12673. let flag2 = this.taskCount == j
  12674. if (l) {
  12675. this.courseType = i;
  12676. // this.navId = l;
  12677. this.taskCount = j;
  12678. if(flag){
  12679. if(flag2){
  12680. this.insertMemorandum(`选择<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12681. }else{
  12682. this.insertMemorandum(`选择<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12683. }
  12684. }else{
  12685. this.insertMemorandum(`选择<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>→<span class="variable">工具${w+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12686. }
  12687. this.selectPz();
  12688. this.getHomeWork();
  12689. this.getCourseDetail(2);
  12690. }
  12691. // var b = this.$refs["bz" + k][0];
  12692. // a.scrollTop = b.offsetTop;
  12693. },
  12694. addTools2(i) {
  12695. if (i == 4) {
  12696. // this.openTools2(4);
  12697. this.$message.error("暂未开放");
  12698. return;
  12699. }
  12700. if (i == 45) {
  12701. // this.openTools2(45);
  12702. this.$message.error("暂未开放");
  12703. return;
  12704. }
  12705. if (i == 47) {
  12706. // this.openTools2(47);
  12707. this.$message.error("暂未开放");
  12708. return;
  12709. }
  12710. if (i == 49) {
  12711. // this.openTools2(49);
  12712. this.$message.error("暂未开放");
  12713. return;
  12714. }
  12715. if (i == 62) {
  12716. // this.openTools(itemTaskIndex, 62, toolIndex);
  12717. this.$message.error("暂未开放");
  12718. return;
  12719. }
  12720. if (i == 15) {
  12721. // this.openTools(itemTaskIndex, 15, toolIndex);
  12722. this.$message.error("暂未开放");
  12723. return;
  12724. }
  12725. if (i == 40) {
  12726. // this.openTools(itemTaskIndex, 40, toolIndex);
  12727. this.$message.error("暂未开放");
  12728. return;
  12729. }
  12730. if (i == 41) {
  12731. // this.openTools(itemTaskIndex, 41, toolIndex);
  12732. this.$message.error("暂未开放");
  12733. return;
  12734. }
  12735. if (i == 42) {
  12736. // this.openTools(itemTaskIndex, 42, toolIndex);
  12737. this.$message.error("暂未开放");
  12738. return;
  12739. }
  12740. if (this.checktoolArray.length > 0) {
  12741. if (this.checktoolArray.indexOf(i) != -1) {
  12742. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12743. } else {
  12744. this.checktoolArray = [];
  12745. this.checktoolArray.push(i);
  12746. }
  12747. } else {
  12748. this.checktoolArray.push(i);
  12749. }
  12750. this.$forceUpdate();
  12751. },
  12752. jump() {
  12753. window.parent.postMessage({ tools: "43" }, "*");
  12754. },
  12755. getUpdateMore(f, checkboxList, searchTN, index) {
  12756. this.dialogVisibleMember = f;
  12757. this.checkboxList = checkboxList;
  12758. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12759. this.plIndex = index;
  12760. },
  12761. setPlname(a) {
  12762. if (this.plworkFile.length) {
  12763. this.plworkFile[this.plIndex].username = a;
  12764. } else {
  12765. this.worksSName = a;
  12766. }
  12767. this.dialogVisibleMember = false;
  12768. },
  12769. previewImg(url) {
  12770. this.$message.info('查看作业-图片')
  12771. this.$hevueImgPreview(url);
  12772. },
  12773. checkImg(list) {
  12774. if (!list.length) {
  12775. return;
  12776. }
  12777. this.$hevueImgPreview({
  12778. multiple: true, // 开启多图预览模式
  12779. imgList: list, // 需要预览的多图数组
  12780. });
  12781. },
  12782. change(val) {
  12783. console.log(val);
  12784. },
  12785. goTo(path) {
  12786. this.$router.push(path);
  12787. },
  12788. handlePictureCardPreview(url) {
  12789. this.dialogImageUrl = url;
  12790. this.pictureDialog = true;
  12791. },
  12792. clean(type) {
  12793. if (type == 1) {
  12794. this.studyJuri[0].cover.splice(0, 1);
  12795. } else if (type == 2) {
  12796. this.studyJuri[0].upVedio.splice(0, 1);
  12797. } else {
  12798. this.studyJuri[0].upFile.splice(0, 1);
  12799. }
  12800. },
  12801. clean2(index) {
  12802. this.plworkFile.splice(index, 1);
  12803. },
  12804. handleClose(done) {
  12805. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12806. this.videoDetail.sources[0].src = "";
  12807. }
  12808. this.commentIndexJson = {};
  12809. done();
  12810. },
  12811. fullTools() {
  12812. this.full = !this.full;
  12813. },
  12814. imgChange(file, fileList, type) {
  12815. if (type == 1) {
  12816. var _tmp = this.studyJuri[0].cover;
  12817. } else if (type == 2) {
  12818. var _tmp = this.studyJuri[0].upVedio;
  12819. } else {
  12820. var _tmp = this.studyJuri[0].upFile;
  12821. }
  12822. this.noneBtnImg = _tmp.length >= 1;
  12823. },
  12824. setContent(bool) {
  12825. this.contentDialog = bool;
  12826. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12827. document.querySelector(".workd_media").style.height = "650px";
  12828. } else if (document.querySelector(".workd_media")) {
  12829. document.querySelector(".workd_media").style.height = "auto";
  12830. }
  12831. },
  12832. setContent2(bool) {
  12833. this.mlDialog = bool;
  12834. if (
  12835. bool &&
  12836. this.contentDialog &&
  12837. document.querySelector(".workd_media")
  12838. ) {
  12839. document.querySelector(".workd_media").style.height = "650px";
  12840. } else if (document.querySelector(".workd_media")) {
  12841. document.querySelector(".workd_media").style.height = "auto";
  12842. }
  12843. this.$forceUpdate();
  12844. },
  12845. openToolAll() {
  12846. this.toolDialogVisible = true;
  12847. },
  12848. addImg(e) {
  12849. var el = e.currentTarget;
  12850. // this.$message.success('触发上传')
  12851. el.getElementsByTagName("input")[0].click();
  12852. e.target.value = "";
  12853. },
  12854. addSelectAnswer() {
  12855. let params = [
  12856. {
  12857. uid: this.userid,
  12858. cid: this.id,
  12859. stage: this.courseType,
  12860. task: this.taskCount,
  12861. tool: this.toolindex,
  12862. content: this.selectAnswer.answer,
  12863. type: 7,
  12864. },
  12865. ];
  12866. this.ajax
  12867. .post(this.$store.state.api + "addCourseWorks", params)
  12868. .then((res) => {
  12869. this.$message({
  12870. message: "提交成功",
  12871. type: "success",
  12872. });
  12873. this.dialogVisibleSelect = false;
  12874. // this.selectAnswer = {};
  12875. this.selectSWorks();
  12876. this.selectStudent();
  12877. })
  12878. .catch((err) => {
  12879. this.$message.error("提交失败");
  12880. console.error(err);
  12881. });
  12882. },
  12883. addSelectAnswerTeacher() {
  12884. let params = [
  12885. {
  12886. uid: this.sStudent.userid,
  12887. cid: this.id,
  12888. stage: this.courseType,
  12889. task: this.taskCount,
  12890. tool: this.toolindex,
  12891. content: this.selectAnswer.answer,
  12892. type: 7,
  12893. },
  12894. ];
  12895. this.ajax
  12896. .post(this.$store.state.api + "addCourseWorks", params)
  12897. .then((res) => {
  12898. this.$message({
  12899. message: "提交成功",
  12900. type: "success",
  12901. });
  12902. this.dialogVisibleSelectTeacher = false;
  12903. // this.selectAnswer = {};
  12904. this.selectSWorks();
  12905. this.selectStudent();
  12906. })
  12907. .catch((err) => {
  12908. this.$message.error("提交失败");
  12909. console.error(err);
  12910. });
  12911. },
  12912. addSenWorks() {
  12913. for (var i = 0; i < this.sentenceList.length; i++) {
  12914. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12915. if (
  12916. this.sentenceList[i].chooseSenList[j] == undefined ||
  12917. this.sentenceList[i].chooseSenList[j] == ""
  12918. ) {
  12919. this.$message.error("请将答案填写完整!");
  12920. return;
  12921. }
  12922. }
  12923. }
  12924. let params = [
  12925. {
  12926. uid: this.userid,
  12927. cid: this.id,
  12928. stage: this.courseType,
  12929. task: this.taskCount,
  12930. tool: this.toolindex,
  12931. content: JSON.stringify(this.sentenceList),
  12932. type: 9,
  12933. },
  12934. ];
  12935. this.ajax
  12936. .post(this.$store.state.api + "addCourseWorks", params)
  12937. .then((res) => {
  12938. this.$message({
  12939. message: "提交成功",
  12940. type: "success",
  12941. });
  12942. this.dialogVisibleSentence = false;
  12943. // this.selectAnswer = {};
  12944. this.selectSWorks();
  12945. this.selectStudent();
  12946. })
  12947. .catch((err) => {
  12948. this.$message.error("提交失败");
  12949. console.error(err);
  12950. });
  12951. },
  12952. addSenWorksTeacher() {
  12953. for (var i = 0; i < this.sentenceList.length; i++) {
  12954. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12955. if (
  12956. this.sentenceList[i].chooseSenList[j] == undefined ||
  12957. this.sentenceList[i].chooseSenList[j] == ""
  12958. ) {
  12959. this.$message.error("请将答案填写完整!");
  12960. return;
  12961. }
  12962. }
  12963. }
  12964. let params = [
  12965. {
  12966. uid: this.sStudent.userid,
  12967. cid: this.id,
  12968. stage: this.courseType,
  12969. task: this.taskCount,
  12970. tool: this.toolindex,
  12971. content: JSON.stringify(this.sentenceList),
  12972. type: 9,
  12973. },
  12974. ];
  12975. this.ajax
  12976. .post(this.$store.state.api + "addCourseWorks", params)
  12977. .then((res) => {
  12978. this.$message({
  12979. message: "提交成功",
  12980. type: "success",
  12981. });
  12982. this.dialogVisibleSentenceTeacher = false;
  12983. // this.selectAnswer = {};
  12984. this.selectSWorks();
  12985. this.selectStudent();
  12986. })
  12987. .catch((err) => {
  12988. this.$message.error("提交失败");
  12989. console.error(err);
  12990. });
  12991. },
  12992. returnTableText() {
  12993. this.$confirm("确定还原此模板吗?", "提示", {
  12994. confirmButtonText: "确定",
  12995. cancelButtonText: "取消",
  12996. type: "warning",
  12997. })
  12998. .then(() => {
  12999. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13000. })
  13001. .catch(() => {});
  13002. },
  13003. addTableWorks() {
  13004. let params = [
  13005. {
  13006. uid: this.userid,
  13007. cid: this.id,
  13008. stage: this.courseType,
  13009. task: this.taskCount,
  13010. tool: this.toolindex,
  13011. content: JSON.stringify(this.tableJson),
  13012. type: 10,
  13013. },
  13014. ];
  13015. this.ajax
  13016. .post(this.$store.state.api + "addCourseWorks", params)
  13017. .then((res) => {
  13018. this.$message({
  13019. message: "提交成功",
  13020. type: "success",
  13021. });
  13022. this.dialogVisibleTable = false;
  13023. // this.selectAnswer = {};
  13024. this.selectSWorks();
  13025. this.selectStudent();
  13026. })
  13027. .catch((err) => {
  13028. this.$message.error("提交失败");
  13029. console.error(err);
  13030. });
  13031. },
  13032. tableRowClassName({ row, rowIndex }) {
  13033. if ((rowIndex + 1) % 2 === 0) {
  13034. return "even_row";
  13035. } else {
  13036. return "";
  13037. }
  13038. },
  13039. addTableWorksTeacher() {
  13040. let params = [
  13041. {
  13042. uid: this.sStudent.userid,
  13043. cid: this.id,
  13044. stage: this.courseType,
  13045. task: this.taskCount,
  13046. tool: this.toolindex,
  13047. content: JSON.stringify(this.tableJson),
  13048. type: 10,
  13049. },
  13050. ];
  13051. this.ajax
  13052. .post(this.$store.state.api + "addCourseWorks", params)
  13053. .then((res) => {
  13054. this.$message({
  13055. message: "提交成功",
  13056. type: "success",
  13057. });
  13058. this.dialogVisibleTableTeacher = false;
  13059. // this.selectAnswer = {};
  13060. this.selectSWorks();
  13061. this.selectStudent();
  13062. })
  13063. .catch((err) => {
  13064. this.$message.error("提交失败");
  13065. console.error(err);
  13066. });
  13067. },
  13068. returnWordText() {
  13069. this.$confirm("确定还原此模板吗?", "提示", {
  13070. confirmButtonText: "确定",
  13071. cancelButtonText: "取消",
  13072. type: "warning",
  13073. })
  13074. .then(() => {
  13075. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13076. })
  13077. .catch(() => {});
  13078. },
  13079. addWordWorks() {
  13080. let params = [
  13081. {
  13082. uid: this.userid,
  13083. cid: this.id,
  13084. stage: this.courseType,
  13085. task: this.taskCount,
  13086. tool: this.toolindex,
  13087. content: JSON.stringify(this.wordJson),
  13088. type: 13,
  13089. atool: 52,
  13090. },
  13091. ];
  13092. this.ajax
  13093. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13094. .then((res) => {
  13095. this.$message({
  13096. message: "提交成功",
  13097. type: "success",
  13098. });
  13099. this.dialogVisibleWord = false;
  13100. // this.selectAnswer = {};
  13101. this.selectSWorks();
  13102. this.selectStudent();
  13103. })
  13104. .catch((err) => {
  13105. this.$message.error("提交失败");
  13106. console.error(err);
  13107. });
  13108. },
  13109. addWordWorksTeacher() {
  13110. let params = [
  13111. {
  13112. uid: this.sStudent.userid,
  13113. cid: this.id,
  13114. stage: this.courseType,
  13115. task: this.taskCount,
  13116. tool: this.toolindex,
  13117. content: JSON.stringify(this.wordJson),
  13118. type: 13,
  13119. atool: 52,
  13120. },
  13121. ];
  13122. this.ajax
  13123. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13124. .then((res) => {
  13125. this.$message({
  13126. message: "提交成功",
  13127. type: "success",
  13128. });
  13129. this.dialogVisibleWordTeacher = false;
  13130. // this.selectAnswer = {};
  13131. this.selectSWorks();
  13132. this.selectStudent();
  13133. })
  13134. .catch((err) => {
  13135. this.$message.error("提交失败");
  13136. console.error(err);
  13137. });
  13138. },
  13139. addCourseWorks(i) {
  13140. var typesql;
  13141. if (this.fileType === 0) {
  13142. typesql = 1;
  13143. } else if (this.fileType === 1) {
  13144. typesql = 4;
  13145. } else if (this.fileType === 2) {
  13146. typesql = 5;
  13147. } else if (this.fileType === 3) {
  13148. typesql = 12;
  13149. }
  13150. if (!this.studyJuri[0].cover[0].url) {
  13151. this.$message.error("请上传文件");
  13152. return;
  13153. }
  13154. let params = [
  13155. {
  13156. uid: this.userid,
  13157. cid: this.id,
  13158. stage: this.courseType,
  13159. task: i,
  13160. tool: this.toolindex,
  13161. content: this.studyJuri[0].cover[0].url,
  13162. type: typesql,
  13163. },
  13164. ];
  13165. this.ajax
  13166. .post(this.$store.state.api + "addCourseWorksR", params)
  13167. .then((res) => {
  13168. this.$message({
  13169. message: "提交成功",
  13170. type: "success",
  13171. });
  13172. this.studyJuri[0].cover = [];
  13173. this.dialogVisible = false;
  13174. this.getCourseDetail(2);
  13175. })
  13176. .catch((err) => {
  13177. this.$message.error("提交失败");
  13178. console.error(err);
  13179. });
  13180. },
  13181. addCourseWorksPl(i) {
  13182. let _files = this.plworkFile;
  13183. var c = 1;
  13184. for (var k = 0; k < _files.length; k++) {
  13185. if (!_files[k].username) {
  13186. c = 2;
  13187. }
  13188. }
  13189. if (c == 2) {
  13190. this.$message.error("请填写学生姓名");
  13191. return;
  13192. }
  13193. let params = [
  13194. {
  13195. ateacher: this.userid,
  13196. cid: this.id,
  13197. stage: this.courseType,
  13198. task: i,
  13199. tool: this.toolindex,
  13200. content: JSON.stringify(_files),
  13201. },
  13202. ];
  13203. this.ajax
  13204. .post(this.$store.state.api + "addCourseWorksPl", params)
  13205. .then((res) => {
  13206. this.$message({
  13207. message: "提交成功",
  13208. type: "success",
  13209. });
  13210. this.plworkFile = [];
  13211. this.dialogVisiblePl = false;
  13212. this.getCourseDetail(2);
  13213. })
  13214. .catch((err) => {
  13215. this.$message.error("提交失败");
  13216. console.error(err);
  13217. });
  13218. },
  13219. addCourseWorks2(i) {
  13220. var typesql;
  13221. if (this.fileType === 0) {
  13222. typesql = 0;
  13223. } else if (this.fileType === 1) {
  13224. typesql = 1;
  13225. } else if (this.fileType === 2) {
  13226. typesql = 3;
  13227. } else if (this.fileType === 3) {
  13228. typesql = 12;
  13229. }
  13230. if (!this.studyJuri[0].cover[0].url) {
  13231. this.$message.error("请上传文件");
  13232. return;
  13233. }
  13234. let params = [
  13235. {
  13236. uid: this.userid,
  13237. cid: this.id,
  13238. stage: this.courseType,
  13239. task: i,
  13240. tool: this.toolindex,
  13241. content: JSON.stringify({
  13242. type: typesql,
  13243. groupIndex: this.groupIndex,
  13244. url: this.studyJuri[0].cover[0].url,
  13245. }),
  13246. type: 11,
  13247. atool: 49,
  13248. text: "",
  13249. },
  13250. ];
  13251. this.ajax
  13252. .post(this.$store.state.api + "addCourseWorks5", params)
  13253. .then((res) => {
  13254. this.$message({
  13255. message: "提交成功",
  13256. type: "success",
  13257. });
  13258. this.studyJuri[0].cover = [];
  13259. this.dialogVisibleGroupWork = false;
  13260. this.getCourseDetail(2);
  13261. })
  13262. .catch((err) => {
  13263. this.$message.error("提交失败");
  13264. console.error(err);
  13265. });
  13266. },
  13267. addEnglishWork() {
  13268. this.myAnList = this.$refs['engJson'].myAnswerList;
  13269. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13270. this.$message.error("请输入作文标题和正文!");
  13271. return;
  13272. }
  13273. let params = [
  13274. {
  13275. uid: this.userid,
  13276. cid: this.id,
  13277. stage: this.courseType,
  13278. task: this.taskCount,
  13279. tool: this.englishToolIndex,
  13280. content: JSON.stringify(this.myAnList),
  13281. type: 16,
  13282. atool: 69,
  13283. text: "",
  13284. },
  13285. ];
  13286. this.ajax
  13287. .post(this.$store.state.api + "addCourseWorks5", params)
  13288. .then((res) => {
  13289. this.$message({
  13290. message: "提交成功",
  13291. type: "success",
  13292. });
  13293. this.myAnList = {};
  13294. this.englishList = {};
  13295. this.englishToolIndex = 0;
  13296. this.engDialogVisible = false;
  13297. this.selectSWorks();
  13298. this.selectStudent();
  13299. })
  13300. .catch((err) => {
  13301. this.$message.error("提交失败");
  13302. console.error(err);
  13303. });
  13304. },
  13305. addCourseWorksGong(i, data, tool) {
  13306. let params = [
  13307. {
  13308. uid: this.userid,
  13309. cid: this.id,
  13310. stage: this.courseType,
  13311. task: this.taskCount,
  13312. tool: i,
  13313. content: data,
  13314. type: 12,
  13315. atool: tool,
  13316. text: "",
  13317. },
  13318. ];
  13319. this.ajax
  13320. .post(this.$store.state.api + "addCourseWorks5", params)
  13321. .then((res) => {
  13322. this.$message({
  13323. message: "提交成功",
  13324. type: "success",
  13325. });
  13326. this.studyJuri[0].cover = [];
  13327. this.selectSWorks();
  13328. this.selectStudent();
  13329. })
  13330. .catch((err) => {
  13331. this.$message.error("提交失败");
  13332. console.error(err);
  13333. });
  13334. },
  13335. addCourseWorksGongTeacher(i, data, tool) {
  13336. let params = [
  13337. {
  13338. uid: this.sStudent.userid,
  13339. cid: this.id,
  13340. stage: this.courseType,
  13341. task: this.taskCount,
  13342. tool: i,
  13343. content: data,
  13344. type: 12,
  13345. atool: tool,
  13346. text: "",
  13347. },
  13348. ];
  13349. this.ajax
  13350. .post(this.$store.state.api + "addCourseWorks5", params)
  13351. .then((res) => {
  13352. this.$message({
  13353. message: "提交成功",
  13354. type: "success",
  13355. });
  13356. this.studyJuri[0].cover = [];
  13357. this.dialogVisibleWorks = false;
  13358. this.selectSWorks();
  13359. this.selectStudent();
  13360. })
  13361. .catch((err) => {
  13362. this.$message.error("提交失败");
  13363. console.error(err);
  13364. });
  13365. },
  13366. addCourseWorksGongPl(i, data, tool, type) {
  13367. let params = [
  13368. {
  13369. uid: this.sStudent.userid,
  13370. cid: this.id,
  13371. stage: this.courseType,
  13372. task: this.taskCount,
  13373. tool: i,
  13374. content: data,
  13375. type: type,
  13376. atool: tool,
  13377. text: "",
  13378. },
  13379. ];
  13380. this.ajax
  13381. .post(this.$store.state.api + "addCourseWorks5", params)
  13382. .then((res) => {
  13383. this.$message({
  13384. message: "提交成功",
  13385. type: "success",
  13386. });
  13387. this.studyJuri[0].cover = [];
  13388. this.dialogVisibleWorks = false;
  13389. this.selectSWorks();
  13390. this.selectStudent();
  13391. })
  13392. .catch((err) => {
  13393. this.$message.error("提交失败");
  13394. console.error(err);
  13395. });
  13396. },
  13397. addCourseWorksTeacher(i) {
  13398. var typesql;
  13399. if (this.sTool == 32) {
  13400. this.addCourseWorksGongTeacher(
  13401. this.toolindex,
  13402. this.studyJuri[0].cover[0].url,
  13403. this.sTool
  13404. );
  13405. return;
  13406. }
  13407. if (this.fileType === 0) {
  13408. typesql = 1;
  13409. } else if (this.fileType === 1) {
  13410. typesql = 4;
  13411. } else if (this.fileType === 2) {
  13412. typesql = 5;
  13413. } else if (this.fileType === 3) {
  13414. typesql = 12;
  13415. }
  13416. if (this.sTool == 50) {
  13417. this.addCourseWorksGongPl(
  13418. this.toolindex,
  13419. this.studyJuri[0].cover[0].url,
  13420. this.sTool,
  13421. typesql
  13422. );
  13423. return;
  13424. }
  13425. if (!this.studyJuri[0].cover[0].url) {
  13426. this.$message.error("请上传文件");
  13427. return;
  13428. }
  13429. let params = [
  13430. {
  13431. uid: this.sStudent.userid,
  13432. cid: this.id,
  13433. stage: this.courseType,
  13434. task: i,
  13435. tool: this.toolindex,
  13436. content: this.studyJuri[0].cover[0].url,
  13437. type: typesql,
  13438. ateacher: this.userid,
  13439. },
  13440. ];
  13441. this.ajax
  13442. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13443. .then((res) => {
  13444. this.$message({
  13445. message: "提交成功",
  13446. type: "success",
  13447. });
  13448. this.studyJuri[0].cover = [];
  13449. this.dialogVisibleWorks = false;
  13450. this.getCourseDetail(2);
  13451. })
  13452. .catch((err) => {
  13453. this.$message.error("提交失败");
  13454. console.error(err);
  13455. });
  13456. },
  13457. selectUploadStudent(type) {
  13458. const loading = this.$loading.service({
  13459. background: "rgba(255, 255, 255, 0.7)",
  13460. target: document.body,
  13461. });
  13462. let params = {
  13463. cid: this.uploadCid,
  13464. oid: this.oid,
  13465. cn: "",
  13466. };
  13467. this.ajax
  13468. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13469. .then((res) => {
  13470. loading.close();
  13471. var studentK = [];
  13472. if (this.isWorksS[this.toolindex].length > 0) {
  13473. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13474. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13475. }
  13476. studentK = studentK.join(",");
  13477. }
  13478. this.uploadStudentJuri = res.data[0].filter((el) => {
  13479. return studentK.indexOf(el.userid) == -1;
  13480. });
  13481. if (this.worksSName && this.worksSid) {
  13482. this.uploadStudentJuri.push({
  13483. userid: this.worksSid,
  13484. name: this.worksSName,
  13485. });
  13486. }
  13487. if (type == 1) {
  13488. this.plworkFile = [];
  13489. this.dialogVisibleSname = true;
  13490. } else if (type == 2) {
  13491. this.dialogVisiblePl = true;
  13492. }
  13493. })
  13494. .catch((err) => {
  13495. loading.close();
  13496. console.error(err);
  13497. });
  13498. },
  13499. selectPickStudent() {
  13500. const loading = this.$loading.service({
  13501. background: "rgba(255, 255, 255, 0.7)",
  13502. target: document.body,
  13503. });
  13504. let params = {
  13505. cid: this.uploadCid,
  13506. oid: this.oid,
  13507. cn: "",
  13508. };
  13509. this.ajax
  13510. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13511. .then((res) => {
  13512. loading.close();
  13513. this.uploadStudentJuri = res.data[0];
  13514. this.dialogVisiblePickPeople = true;
  13515. })
  13516. .catch((err) => {
  13517. loading.close();
  13518. console.error(err);
  13519. });
  13520. },
  13521. arrayToArray(arrayo, arrayt) {
  13522. let array1 = arrayo;
  13523. let array2 = arrayt;
  13524. let commonElements = [];
  13525. for (let i = 0; i < array1.length; i++) {
  13526. for (let j = 0; j < array2.length; j++) {
  13527. if (array1[i] === array2[j]) {
  13528. commonElements.push(array1[i]);
  13529. }
  13530. }
  13531. }
  13532. return commonElements;
  13533. },
  13534. selectWorksStudent() {
  13535. let params = {
  13536. oid: this.oid,
  13537. cid: this.courseDetail.juri,
  13538. };
  13539. this.ajax
  13540. .get(this.$store.state.api + "selectWorksStudent", params)
  13541. .then((res) => {
  13542. var a = res.data[0];
  13543. for (var i = 0; i < this.isWorksS.length; i++) {
  13544. this.noWorksS[i] = [];
  13545. var studentK = [];
  13546. if (this.isWorksS[i].length > 0) {
  13547. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13548. studentK.push(this.isWorksS[i][z].uid);
  13549. }
  13550. studentK = studentK.join(",");
  13551. for (var j = 0; j < a.length; j++) {
  13552. if (studentK.indexOf(a[j].userid) == -1) {
  13553. if (this.tcid) {
  13554. // a[j].classid.indexOf(this.tcid) != -1
  13555. if (
  13556. this.arrayToArray(
  13557. a[j].classid.split(","),
  13558. this.tcid.split(",")
  13559. ).length
  13560. ) {
  13561. this.noWorksS[i].push({
  13562. student: a[j].name,
  13563. userid: a[j].userid,
  13564. });
  13565. }
  13566. } else {
  13567. this.noWorksS[i].push({
  13568. student: a[j].name,
  13569. userid: a[j].userid,
  13570. });
  13571. }
  13572. }
  13573. }
  13574. } else {
  13575. for (var k = 0; k < a.length; k++) {
  13576. if (this.tcid) {
  13577. if (
  13578. this.arrayToArray(
  13579. a[k].classid.split(","),
  13580. this.tcid.split(",")
  13581. ).length
  13582. ) {
  13583. this.noWorksS[i].push({
  13584. student: a[k].name,
  13585. userid: a[k].userid,
  13586. });
  13587. }
  13588. } else {
  13589. this.noWorksS[i].push({
  13590. student: a[k].name,
  13591. userid: a[k].userid,
  13592. });
  13593. }
  13594. }
  13595. }
  13596. }
  13597. this.$forceUpdate();
  13598. if (
  13599. Object.keys(this.commentDetail).length &&
  13600. Object.keys(this.commentIndexJson).length &&
  13601. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13602. ) {
  13603. let a = 1;
  13604. let c = this.commentIndexJson;
  13605. if (
  13606. this.commentIndexJson.gindex ||
  13607. this.commentIndexJson.gindex === 0
  13608. ) {
  13609. for (
  13610. var i = 0;
  13611. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13612. i++
  13613. ) {
  13614. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13615. groupA: for (var k = 0; k < _el.length; k++) {
  13616. let el = _el[k];
  13617. if (el.wid == this.commentDetail.wid) {
  13618. a = 2;
  13619. this.commentOther(
  13620. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13621. this.commentIndexJson.toolIndex,
  13622. k,
  13623. this.commentIndexJson.gindex
  13624. );
  13625. break groupA;
  13626. }
  13627. }
  13628. }
  13629. if (a === 1) {
  13630. this.commentDetail = [];
  13631. this.commentIndexJson = {};
  13632. this.commentDialogVisible = false;
  13633. this.$message("此作业已被删除");
  13634. }
  13635. } else {
  13636. if (this.isGroup && this.commentIndexJson.gid) {
  13637. groupA: for (
  13638. var i = 0;
  13639. i < this.courseGroup.group.length;
  13640. i++
  13641. ) {
  13642. let _group = this.courseGroup.group[i];
  13643. if (_group.id == this.commentIndexJson.gid) {
  13644. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13645. for (var k = 0; k < _el2.length; k++) {
  13646. let el2 = _el2[k];
  13647. if (el2.wid == this.commentDetail.wid) {
  13648. a = 2;
  13649. this.commentOther(
  13650. _el2[k],
  13651. this.commentIndexJson.toolIndex,
  13652. k,
  13653. null,
  13654. this.commentIndexJson.gid
  13655. );
  13656. break groupA;
  13657. }
  13658. }
  13659. }
  13660. }
  13661. }
  13662. if (a == 1) {
  13663. for (
  13664. var i = 0;
  13665. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13666. i++
  13667. ) {
  13668. let el =
  13669. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13670. if (el.wid == this.commentDetail.wid) {
  13671. a = 2;
  13672. this.commentOther(
  13673. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13674. this.commentIndexJson.toolIndex,
  13675. i
  13676. );
  13677. break;
  13678. }
  13679. }
  13680. }
  13681. if (a === 1) {
  13682. this.commentDetail = [];
  13683. this.commentIndexJson = {};
  13684. this.commentDialogVisible = false;
  13685. this.$message("此作业已被删除");
  13686. }
  13687. }
  13688. }
  13689. })
  13690. .catch((err) => {
  13691. console.error(err);
  13692. });
  13693. },
  13694. selectStudent() {
  13695. //学生查看自己作业
  13696. let params = {
  13697. uid: this.userid,
  13698. cid: this.id,
  13699. s: this.courseType,
  13700. t: this.taskCount,
  13701. };
  13702. this.ajax
  13703. .get(this.$store.state.api + "selectStudentWorks", params)
  13704. .then((res) => {
  13705. var a =
  13706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13707. this.taskCount
  13708. ].toolChoose;
  13709. var b = res.data[0];
  13710. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13711. var y = [
  13712. "AVI",
  13713. "NAVI",
  13714. "MPEG",
  13715. "ASF",
  13716. "MOV",
  13717. "WMV",
  13718. "3GP",
  13719. "RM",
  13720. "RMVB",
  13721. "FLV",
  13722. "F4V",
  13723. "H.264",
  13724. "H.265",
  13725. "REAL VIDEO",
  13726. "MKV",
  13727. "WebM",
  13728. "HDDVD",
  13729. "MP4",
  13730. "MPG",
  13731. "M4V",
  13732. "MGV",
  13733. "OGV",
  13734. "QTM",
  13735. "STR",
  13736. "AMC",
  13737. "DVX",
  13738. "EVO",
  13739. "DAT",
  13740. "OGG",
  13741. "OGM",
  13742. ];
  13743. for (var i = 0; i < a.length; i++) {
  13744. this.workStudent[i] = [];
  13745. for (var j = 0; j < b.length; j++) {
  13746. if (i == b[j].tool) {
  13747. if (
  13748. (b[j].type == 1 ||
  13749. b[j].type == 4 ||
  13750. b[j].type == 5 ||
  13751. b[j].type == 6 ||
  13752. b[j].type == 12 ||
  13753. b[j].type == 7) &&
  13754. a[i].tool[0] != 15 &&
  13755. a[i].tool[0] != 4 &&
  13756. a[i].tool[0] != 45 &&
  13757. a[i].tool[0] != 50 &&
  13758. a[i].tool[0] != 32 &&
  13759. a[i].tool[0] != 57 &&
  13760. a[i].tool[0] != 52 &&
  13761. a[i].tool[0] != 69
  13762. ) {
  13763. if (
  13764. c.indexOf(
  13765. b[j].content
  13766. .split(".")
  13767. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13768. ) != -1 &&
  13769. a[i].tool[0] == 16 &&
  13770. b[j].atool != 50
  13771. ) {
  13772. this.workStudent[i].push({
  13773. works: b[j].content,
  13774. sName: b[j].name,
  13775. score: b[j].score,
  13776. img: b[j].img,
  13777. type: 1,
  13778. time: b[j].time,
  13779. userid: b[j].userid,
  13780. wid: b[j].id,
  13781. });
  13782. } else if (
  13783. y.indexOf(
  13784. b[j].content
  13785. .split(".")
  13786. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13787. ) != -1 &&
  13788. a[i].tool[0] == 16 &&
  13789. b[j].atool != 50
  13790. ) {
  13791. this.workStudent[i].push({
  13792. userid: b[j].userid,
  13793. wid: b[j].id,
  13794. works: b[j].content,
  13795. sName: b[j].name,
  13796. score: b[j].score,
  13797. img: b[j].img,
  13798. type: 3,
  13799. time: b[j].time,
  13800. });
  13801. } else if (b[j].type == 6 && b[j].atool != 50) {
  13802. this.workStudent[i].push({
  13803. userid: b[j].userid,
  13804. wid: b[j].id,
  13805. works: b[j].content,
  13806. sName: b[j].name,
  13807. score: b[j].score,
  13808. img: b[j].img,
  13809. type: 4,
  13810. time: b[j].time,
  13811. });
  13812. } else if (b[j].type == 7 && b[j].atool != 50) {
  13813. this.workStudent[i].push({
  13814. userid: b[j].userid,
  13815. wid: b[j].id,
  13816. works: b[j].content,
  13817. sName: b[j].name,
  13818. score: b[j].score,
  13819. img: b[j].img,
  13820. type: 5,
  13821. time: b[j].time,
  13822. });
  13823. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13824. this.workStudent[i].push({
  13825. works: b[j].content,
  13826. sName: b[j].name,
  13827. score: b[j].score,
  13828. img: b[j].img,
  13829. type: 12,
  13830. time: b[j].time,
  13831. userid: b[j].userid,
  13832. wid: b[j].id,
  13833. });
  13834. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13835. this.workStudent[i].push({
  13836. works: b[j].content,
  13837. sName: b[j].name,
  13838. score: b[j].score,
  13839. img: b[j].img,
  13840. type: 0,
  13841. time: b[j].time,
  13842. userid: b[j].userid,
  13843. wid: b[j].id,
  13844. });
  13845. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13846. this.workStudent[i].push({
  13847. works: b[j].content,
  13848. sName: b[j].name,
  13849. score: b[j].score,
  13850. img: b[j].img,
  13851. type: 0,
  13852. time: b[j].time,
  13853. userid: b[j].userid,
  13854. wid: b[j].id,
  13855. });
  13856. }
  13857. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13858. this.workStudent[i].push({
  13859. works: b[j].content,
  13860. sName: b[j].name,
  13861. score: b[j].score,
  13862. img: b[j].img,
  13863. type: 2,
  13864. time: b[j].time,
  13865. userid: b[j].userid,
  13866. wid: b[j].id,
  13867. });
  13868. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13869. //问卷
  13870. this.workStudent[i].push({
  13871. works: b[j].content,
  13872. sName: b[j].name,
  13873. score: b[j].score,
  13874. img: b[j].img,
  13875. type: 2,
  13876. time: b[j].time,
  13877. userid: b[j].userid,
  13878. wid: b[j].id,
  13879. });
  13880. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13881. //选择题
  13882. this.workStudent[i].push({
  13883. works: b[j].content,
  13884. sName: b[j].name,
  13885. score: b[j].score,
  13886. img: b[j].img,
  13887. type: 8,
  13888. time: b[j].time,
  13889. userid: b[j].userid,
  13890. wid: b[j].id,
  13891. });
  13892. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13893. //选择题
  13894. this.workStudent[i].push({
  13895. works: b[j].content,
  13896. sName: b[j].name,
  13897. score: b[j].score,
  13898. img: b[j].img,
  13899. type: 9,
  13900. time: b[j].time,
  13901. userid: b[j].userid,
  13902. wid: b[j].id,
  13903. });
  13904. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13905. //选择题
  13906. this.workStudent[i].push({
  13907. works: b[j].content,
  13908. sName: b[j].name,
  13909. score: b[j].score,
  13910. img: b[j].img,
  13911. type: 10,
  13912. time: b[j].time,
  13913. userid: b[j].userid,
  13914. wid: b[j].id,
  13915. });
  13916. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13917. //选择题
  13918. this.workStudent[i].push({
  13919. works: b[j].content,
  13920. sName: b[j].name,
  13921. score: b[j].score,
  13922. img: b[j].img,
  13923. type: 13,
  13924. time: b[j].time,
  13925. userid: b[j].userid,
  13926. wid: b[j].id,
  13927. });
  13928. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13929. //选择题
  13930. this.workStudent[i].push({
  13931. works: b[j].content,
  13932. sName: b[j].name,
  13933. score: b[j].score,
  13934. img: b[j].img,
  13935. type: 12,
  13936. time: b[j].time,
  13937. userid: b[j].userid,
  13938. wid: b[j].id,
  13939. });
  13940. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13941. //选择题
  13942. this.workStudent[i].push({
  13943. works: b[j].content,
  13944. sName: b[j].name,
  13945. score: b[j].score,
  13946. img: b[j].img,
  13947. type: 12,
  13948. time: b[j].time,
  13949. userid: b[j].userid,
  13950. wid: b[j].id,
  13951. });
  13952. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13953. //选择题
  13954. this.workStudent[i].push({
  13955. works: b[j].content,
  13956. sName: b[j].name,
  13957. score: b[j].score,
  13958. img: b[j].img,
  13959. type: 15,
  13960. time: b[j].time,
  13961. userid: b[j].userid,
  13962. wid: b[j].id,
  13963. });
  13964. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13965. //英语写作
  13966. this.workStudent[i].push({
  13967. works: b[j].content,
  13968. sName: b[j].name,
  13969. score: b[j].score,
  13970. img: b[j].img,
  13971. type: 16,
  13972. time: b[j].time,
  13973. userid: b[j].userid,
  13974. wid: b[j].id,
  13975. aiCode: b[j].aiCode,
  13976. teacherCode: b[j].teacherCode
  13977. });
  13978. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13979. //英语口语
  13980. this.workStudent[i].push({
  13981. works: b[j].content,
  13982. sName: b[j].name,
  13983. score: b[j].score,
  13984. img: b[j].img,
  13985. type: 17,
  13986. time: b[j].time,
  13987. userid: b[j].userid,
  13988. wid: b[j].id,
  13989. });
  13990. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13991. //英语口语
  13992. this.workStudent[i].push({
  13993. works: b[j].content,
  13994. sName: b[j].name,
  13995. score: b[j].score,
  13996. img: b[j].img,
  13997. type: 14,
  13998. time: b[j].time,
  13999. userid: b[j].userid,
  14000. wid: b[j].id,
  14001. });
  14002. }
  14003. }
  14004. }
  14005. }
  14006. })
  14007. .catch((err) => {
  14008. console.error(err);
  14009. });
  14010. },
  14011. openVideo(w) {
  14012. this.videoDetail = {};
  14013. this.playerOptions1.sources[0].src = w.works;
  14014. this.videoDetail = this.playerOptions1;
  14015. this.videoVisible = true;
  14016. },
  14017. isLikes(wid, uid, t, c, isLikes) {
  14018. if (isLikes == false) {
  14019. let params = [
  14020. {
  14021. wid: wid,
  14022. lid: uid,
  14023. t: t,
  14024. c: c,
  14025. },
  14026. ];
  14027. this.ajax
  14028. .post(this.$store.state.api + "insertComment", params)
  14029. .then((res) => {
  14030. this.$message({
  14031. message: "点赞成功",
  14032. type: "success",
  14033. });
  14034. this.selectSWorks();
  14035. this.selectStudent();
  14036. })
  14037. .catch((err) => {
  14038. this.$message.error("点赞失败");
  14039. console.error(err);
  14040. });
  14041. } else {
  14042. let params = {
  14043. wid: wid,
  14044. lid: uid,
  14045. type: t,
  14046. };
  14047. this.ajax
  14048. .get(this.$store.state.api + "deleteComment", params)
  14049. .then((res) => {
  14050. this.$message({
  14051. message: "取消点赞成功",
  14052. type: "success",
  14053. });
  14054. this.selectSWorks();
  14055. this.selectStudent();
  14056. })
  14057. .catch((err) => {
  14058. console.error(err);
  14059. });
  14060. }
  14061. },
  14062. deleteComment(wid) {
  14063. this.$confirm("确定删除此评论吗?", "提示", {
  14064. confirmButtonText: "确定",
  14065. cancelButtonText: "取消",
  14066. type: "warning",
  14067. })
  14068. .then(() => {
  14069. let params = {
  14070. id: wid,
  14071. };
  14072. this.ajax
  14073. .get(this.$store.state.api + "deleteComment2", params)
  14074. .then((res) => {
  14075. this.$message({
  14076. message: "删除评论成功",
  14077. type: "success",
  14078. });
  14079. this.selectSWorks();
  14080. this.selectStudent();
  14081. })
  14082. .catch((err) => {
  14083. console.error(err);
  14084. });
  14085. })
  14086. .catch(() => {});
  14087. },
  14088. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14089. this.$message.info("预览作业")
  14090. console.log(w,1)
  14091. this.commentIndexJson = {
  14092. toolIndex: toolIndex,
  14093. wIndex: wIndex,
  14094. gindex: gindex,
  14095. gid: gid,
  14096. };
  14097. this.commentDetail = [];
  14098. this.commentDialogVisible = true;
  14099. this.commentDetail = w;
  14100. if (w.works && w.type == 1) {
  14101. // this.pptImgUrl = "";
  14102. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14103. if (
  14104. a.indexOf(
  14105. w.works
  14106. .split(".")
  14107. [w.works.split(".").length - 1].toLocaleUpperCase()
  14108. ) != -1
  14109. ) {
  14110. let _uuurl = await this.checkLink(w.works);
  14111. this.pptImgUrl =
  14112. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14113. this.showPDF = false;
  14114. } else if (
  14115. w.works
  14116. .split(".")
  14117. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14118. ) {
  14119. this.pptImgUrl = w.works;
  14120. this.showPDF = true;
  14121. }
  14122. } else if (w.works && w.type == 3) {
  14123. this.videoDetail = {};
  14124. this.playerOptions1.sources[0].src = w.works;
  14125. this.videoDetail = this.playerOptions1;
  14126. // this.videoVisible = true;
  14127. } else if (w.works && w.type == 4) {
  14128. this.eScore = JSON.parse(w.works);
  14129. this.rateJson =
  14130. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14131. this.taskCount
  14132. ].toolChoose[toolIndex].rateJson;
  14133. } else if (w.works && w.type == 10) {
  14134. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14135. } else if (w.works && w.type == 13) {
  14136. this.wordJson =
  14137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14138. this.taskCount
  14139. ].toolChoose[toolIndex].wordJson;
  14140. }
  14141. },
  14142. async openScore(w, index) {
  14143. this.$message.info("预览作业")
  14144. console.log(w,2)
  14145. this.wScore = 0;
  14146. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14147. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14148. this.commentDetail = [];
  14149. if(w.type == 17){
  14150. this.dialogVisibleENScore = true;
  14151. }else{
  14152. this.dialogVisibleScore = true;
  14153. }
  14154. this.commentDetail = w;
  14155. if (w.works && w.type == 1) {
  14156. this.pptImgUrl = "";
  14157. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14158. if (
  14159. a.indexOf(
  14160. w.works
  14161. .split(".")
  14162. [w.works.split(".").length - 1].toLocaleUpperCase()
  14163. ) != -1
  14164. ) {
  14165. let _uuurl = await this.checkLink(w.works);
  14166. this.pptImgUrl =
  14167. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14168. this.showPDF = false;
  14169. } else if (
  14170. w.works
  14171. .split(".")
  14172. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14173. ) {
  14174. this.pptImgUrl = w.works;
  14175. this.showPDF = true;
  14176. }
  14177. } else if (w.works && w.type == 3) {
  14178. this.videoDetail = {};
  14179. this.playerOptions1.sources[0].src = w.works;
  14180. this.videoDetail = this.playerOptions1;
  14181. }else if(w.type == 17){
  14182. let englishVoiceJson = {}
  14183. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14184. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14185. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14186. .toolChoose[index].englishVoiceJson
  14187. : {};
  14188. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14189. }
  14190. },
  14191. addComment(wid, uid, t) {
  14192. if (this.commentText == "") {
  14193. this.$message.error("请输入评论");
  14194. return;
  14195. }
  14196. let params2 = [
  14197. {
  14198. wid: wid,
  14199. lid: uid,
  14200. t: t,
  14201. },
  14202. ];
  14203. this.ajax
  14204. .post(this.$store.state.api + "getComment", params2)
  14205. .then((res) => {
  14206. if (res.data[0].length > 0) {
  14207. this.$message.error("一个作业只能评论一条");
  14208. } else {
  14209. let params = [
  14210. {
  14211. wid: wid,
  14212. lid: uid,
  14213. t: t,
  14214. c: this.commentText,
  14215. },
  14216. ];
  14217. this.ajax
  14218. .post(this.$store.state.api + "insertComment", params)
  14219. .then((res) => {
  14220. this.$message({
  14221. message: "评论成功",
  14222. type: "success",
  14223. });
  14224. this.commentText = "";
  14225. this.selectSWorks();
  14226. this.selectStudent();
  14227. })
  14228. .catch((err) => {
  14229. this.$message.error("评论失败");
  14230. console.error(err);
  14231. });
  14232. }
  14233. })
  14234. .catch((err) => {
  14235. // this.$message.error("评论失败");
  14236. console.error(err);
  14237. });
  14238. },
  14239. scoreWork(wid) {
  14240. if (this.wScore == 0) {
  14241. this.$message.error("请评分");
  14242. return;
  14243. }
  14244. let params = [
  14245. {
  14246. wid: wid,
  14247. score: JSON.stringify({
  14248. wScore: this.wScore,
  14249. detail: this.scoreDetail,
  14250. }),
  14251. },
  14252. ];
  14253. this.ajax
  14254. .post(this.$store.state.api + "scoreWork", params)
  14255. .then((res) => {
  14256. this.$message({
  14257. message: "评分成功",
  14258. type: "success",
  14259. });
  14260. this.wScore = 0;
  14261. this.scoreDetail = "";
  14262. this.dialogVisibleScore = false;
  14263. this.selectSWorks();
  14264. this.selectStudent();
  14265. })
  14266. .catch((err) => {
  14267. this.$message.error("评分失败");
  14268. console.error(err);
  14269. });
  14270. },
  14271. openXz(w, i) {
  14272. this.$message.info("预览作业")
  14273. console.log(w,3)
  14274. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14275. .taskJson[this.taskCount].toolChoose[i].selectJson
  14276. ? JSON.parse(
  14277. JSON.stringify(
  14278. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14279. this.taskCount
  14280. ].toolChoose[i].selectJson
  14281. )
  14282. )
  14283. : { url: "", select: [], answer: [] };
  14284. var a = w.works.split(",");
  14285. for (var k = 0; k < a.length; k++) {
  14286. a[k] = parseInt(a[k]);
  14287. }
  14288. this.selectAnswer = { answer: a, stu: w.sName };
  14289. this.isSelect = true;
  14290. this.dialogVisibleSelect = true;
  14291. },
  14292. openSen(w, i) {
  14293. this.$message.info("预览作业")
  14294. console.log(w,4)
  14295. this.sentenceList1 = JSON.parse(w.works);
  14296. this.sentenceList1.stuName = w.sName;
  14297. this.dialogVisibleSentence1 = true;
  14298. },
  14299. openPj(w, toolindex) {
  14300. this.$message.info("预览作业")
  14301. console.log(w,5)
  14302. this.isStar = true;
  14303. this.eScore = JSON.parse(w);
  14304. this.rateJson =
  14305. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14306. this.taskCount
  14307. ].toolChoose[toolindex].rateJson;
  14308. this.studentEvalDialogVisible = true;
  14309. },
  14310. openEnglishEva(id,i){
  14311. let params = {
  14312. wid: id
  14313. };
  14314. this.ajax
  14315. .get(this.$store.state.api + "selectEngWork", params)
  14316. .then((res) => {
  14317. this.evaEngJson.message = res.data[0][0];
  14318. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14319. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14320. .toolChoose[i].englishList;
  14321. this.engEvaDialogVisible = true;
  14322. })
  14323. .catch((err) => {
  14324. console.error(err);
  14325. });
  14326. },
  14327. deleteWorks(id) {
  14328. this.$confirm("确定删除此作业吗?", "提示", {
  14329. confirmButtonText: "确定",
  14330. cancelButtonText: "取消",
  14331. type: "warning",
  14332. })
  14333. .then(() => {
  14334. let params = [
  14335. {
  14336. id: id,
  14337. },
  14338. ];
  14339. this.ajax
  14340. .post(this.$store.state.api + "deleteCourseWork", params)
  14341. .then((res) => {
  14342. this.$message({
  14343. message: "删除成功",
  14344. type: "success",
  14345. });
  14346. this.selectStudent();
  14347. this.selectSWorks();
  14348. this.selectSLook();
  14349. })
  14350. .catch((err) => {
  14351. this.$message.error("网络异常");
  14352. console.error(err);
  14353. });
  14354. })
  14355. .catch(() => {});
  14356. },
  14357. selectSWorks(gindex) {
  14358. //教师查看全部作业
  14359. let params = {
  14360. cid: this.id,
  14361. s: this.courseType,
  14362. t: this.taskCount,
  14363. };
  14364. this.ajax
  14365. .get(this.$store.state.api + "selectSWorks", params)
  14366. .then((res) => {
  14367. var a =
  14368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14369. this.taskCount
  14370. ].toolChoose;
  14371. var b = res.data[0];
  14372. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14373. var y = [
  14374. "AVI",
  14375. "NAVI",
  14376. "MPEG",
  14377. "ASF",
  14378. "MOV",
  14379. "WMV",
  14380. "3GP",
  14381. "RM",
  14382. "RMVB",
  14383. "FLV",
  14384. "F4V",
  14385. "H.264",
  14386. "H.265",
  14387. "REAL VIDEO",
  14388. "MKV",
  14389. "WebM",
  14390. "HDDVD",
  14391. "MP4",
  14392. "MPG",
  14393. "M4V",
  14394. "MGV",
  14395. "OGV",
  14396. "QTM",
  14397. "STR",
  14398. "AMC",
  14399. "DVX",
  14400. "EVO",
  14401. "DAT",
  14402. "OGG",
  14403. "OGM",
  14404. ];
  14405. var d = res.data[1];
  14406. var e = res.data[2];
  14407. var f = res.data[3];
  14408. let _worksStudent = [];
  14409. var _worksStudent2 = [];
  14410. for (var i = 0; i < a.length; i++) {
  14411. _worksStudent[i] = [];
  14412. _worksStudent2[i] = [];
  14413. if (
  14414. !this.isCloseList[i] ||
  14415. this.isCloseList[i].isClose == undefined
  14416. ) {
  14417. this.isCloseList[i] = { isClose: 0 };
  14418. }
  14419. this.groupStudent[i] = [];
  14420. this.groupStudentUid[i] = [];
  14421. if (this.isGroup) {
  14422. for (
  14423. var groupI = 0;
  14424. groupI < this.courseGroup.group.length;
  14425. groupI++
  14426. ) {
  14427. this.courseGroup.group[groupI].works[i] = [];
  14428. }
  14429. }
  14430. this.isWorksS[i] = [];
  14431. this.checkJson[i] = [];
  14432. if (a[i].tool[0] == 49) {
  14433. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14434. this.groupStudent[i][gA] = [];
  14435. this.groupStudentUid[i][gA] = [];
  14436. _worksStudent[i][gA] = [];
  14437. _worksStudent2[i][gA] = [];
  14438. this.isCloseList[i][gA] = [];
  14439. // debugger
  14440. for (var g = 0; g < f.length; g++) {
  14441. if (
  14442. f[g].ttype == 2 &&
  14443. this.tcid &&
  14444. this.arrayToArray(
  14445. (f[g].classid ? f[g].classid.split(",") : []),
  14446. this.tcid.split(",")
  14447. ).length == 0
  14448. ) {
  14449. continue;
  14450. }
  14451. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14452. (f[g].classid ? f[g].classid.split(",") : []),
  14453. this.tcid.split(",")
  14454. ).length !== 0 || this.arrayToArray(
  14455. (f[g].classid ? f[g].classid.split(",") : []),
  14456. this.classId ? this.classId.split(",") : []
  14457. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14458. this.groupStudent[i][gA].push(f[g]);
  14459. this.groupStudentUid[i][gA].push(f[g].userid);
  14460. }
  14461. }
  14462. }
  14463. this.$forceUpdate();
  14464. }
  14465. for (var j = 0; j < b.length; j++) {
  14466. if (
  14467. b[j].ttype == 2 &&
  14468. this.tcid &&
  14469. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14470. .length == 0
  14471. ) {
  14472. continue;
  14473. }
  14474. var likesCount = 0;
  14475. var commentCount = 0;
  14476. var isLikes = false;
  14477. var commentJson = [];
  14478. var likeJson = [];
  14479. var data = b[j];
  14480. if (i == b[j].tool) {
  14481. if (data.type == 2 && a[i].tool[0] == 4) {
  14482. // if(JSON.parse(data.content)[0].anwer){
  14483. var checkL =
  14484. JSON.parse(data.content)[0].anwer instanceof Array
  14485. ? JSON.parse(data.content)[0].anwer
  14486. : JSON.parse(data.content)[0].anwer.split(",");
  14487. for (var z = 0; z < checkL.length; z++) {
  14488. if (!this.checkJson[i][z]) {
  14489. this.checkJson[i].push({
  14490. checkCount: [],
  14491. checkPerson: [],
  14492. rightPerson: [],
  14493. });
  14494. }
  14495. if (!this.checkJson[i][z].checkCount.length) {
  14496. this.checkJson[i][z].checkCount = [];
  14497. let _askItemCount = JSON.parse(data.content)[0].askJson
  14498. .askJson[z].askItem;
  14499. for (var aic = 0; aic < _askItemCount; aic++) {
  14500. this.checkJson[i][z].checkCount.push(0);
  14501. }
  14502. }
  14503. if (checkL[z] instanceof Array) {
  14504. if (
  14505. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14506. checkL[z].sort().join(",")
  14507. ) {
  14508. this.checkJson[i][z].rightPerson.push(data.name);
  14509. }
  14510. for (var q = 0; q < checkL[z].length; q++) {
  14511. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14512. ? this.checkJson[i][z].checkPerson[
  14513. parseInt(checkL[z][q])
  14514. ].push(data.name)
  14515. : (this.checkJson[i][z].checkPerson[
  14516. parseInt(checkL[z][q])
  14517. ] = [data.name]);
  14518. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14519. ? this.checkJson[i][z].checkCount[
  14520. parseInt(checkL[z][q])
  14521. ]++
  14522. : (this.checkJson[i][z].checkCount[
  14523. parseInt(checkL[z][q])
  14524. ] = 1);
  14525. }
  14526. } else {
  14527. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14528. this.checkJson[i][z].rightPerson.push(data.name);
  14529. }
  14530. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14531. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14532. ? this.checkJson[i][z].checkPerson[
  14533. parseInt(checkL[z])
  14534. ].push(data.name)
  14535. : (this.checkJson[i][z].checkPerson[
  14536. parseInt(checkL[z])
  14537. ] = [data.name]);
  14538. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14539. ? this.checkJson[i][z].checkCount[
  14540. parseInt(checkL[z])
  14541. ]++
  14542. : (this.checkJson[i][z].checkCount[
  14543. parseInt(checkL[z])
  14544. ] = 1);
  14545. }
  14546. }
  14547. }
  14548. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14549. var checkL = JSON.parse(data.content)[0].anwer;
  14550. for (var z = 0; z < checkL.length; z++) {
  14551. if (!this.checkJson[i][z]) {
  14552. this.checkJson[i].push({
  14553. checkCount: [],
  14554. checkPerson: [],
  14555. rightPerson: [],
  14556. });
  14557. }
  14558. if (!this.checkJson[i][z].checkCount.length) {
  14559. this.checkJson[i][z].checkCount = [];
  14560. let _askItemCount = JSON.parse(data.content)[0].testJson
  14561. .testJson[z].testItem;
  14562. for (var aic = 0; aic < _askItemCount; aic++) {
  14563. this.checkJson[i][z].checkCount.push(0);
  14564. }
  14565. }
  14566. if (checkL[z] instanceof Array) {
  14567. if (
  14568. JSON.parse(data.content)[0]
  14569. .testJson.testJson[z].answer.sort()
  14570. .join(",") == checkL[z].sort().join(",")
  14571. ) {
  14572. this.checkJson[i][z].rightPerson.push(data.name);
  14573. }
  14574. for (var q = 0; q < checkL[z].length; q++) {
  14575. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14576. ? this.checkJson[i][z].checkPerson[
  14577. parseInt(checkL[z][q])
  14578. ].push(data.name)
  14579. : (this.checkJson[i][z].checkPerson[
  14580. parseInt(checkL[z][q])
  14581. ] = [data.name]);
  14582. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14583. ? this.checkJson[i][z].checkCount[
  14584. parseInt(checkL[z][q])
  14585. ]++
  14586. : (this.checkJson[i][z].checkCount[
  14587. parseInt(checkL[z][q])
  14588. ] = 1);
  14589. }
  14590. } else {
  14591. if (
  14592. JSON.parse(data.content)[0].testJson.testJson[z]
  14593. .answer == checkL[z]
  14594. ) {
  14595. this.checkJson[i][z].rightPerson.push(data.name);
  14596. }
  14597. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14598. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14599. ? this.checkJson[i][z].checkPerson[
  14600. parseInt(checkL[z])
  14601. ].push(data.name)
  14602. : (this.checkJson[i][z].checkPerson[
  14603. parseInt(checkL[z])
  14604. ] = [data.name]);
  14605. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14606. ? this.checkJson[i][z].checkCount[
  14607. parseInt(checkL[z])
  14608. ]++
  14609. : (this.checkJson[i][z].checkCount[
  14610. parseInt(checkL[z])
  14611. ] = 1);
  14612. }
  14613. }
  14614. }
  14615. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14616. var checkL = JSON.parse(data.content);
  14617. for (var z = 0; z < checkL.length; z++) {
  14618. if (!this.checkJson[i][z]) {
  14619. this.checkJson[i].push({
  14620. checkCount: [],
  14621. checkPerson: [],
  14622. rightPerson: [],
  14623. });
  14624. }
  14625. this.checkJson[i][z].checkPerson.push(data.name);
  14626. if (
  14627. checkL[z].chooseSenList.toString() ==
  14628. checkL[z].rightAnswer.toString()
  14629. ) {
  14630. this.checkJson[i][z].rightPerson.push(data.name);
  14631. }
  14632. }
  14633. }
  14634. for (var k = 0; k < d.length; k++) {
  14635. //点赞
  14636. if (d[k].workId == b[j].id) {
  14637. likesCount++;
  14638. likeJson.push(d[k])
  14639. if (d[k].likesId == this.userid) {
  14640. isLikes = true;
  14641. }
  14642. }
  14643. }
  14644. for (var l = 0; l < e.length; l++) {
  14645. //评论
  14646. if (e[l].workId == b[j].id) {
  14647. if (e[l].comment != "") {
  14648. commentCount++;
  14649. commentJson.push({
  14650. commentText: e[l].comment,
  14651. commentTime: e[l].commentTime,
  14652. commentPeople: e[l].commentPeople,
  14653. userid: e[l].userid,
  14654. wid: e[l].id,
  14655. });
  14656. }
  14657. }
  14658. }
  14659. if (
  14660. (b[j].type == 1 ||
  14661. b[j].type == 4 ||
  14662. b[j].type == 5 ||
  14663. b[j].type == 6 ||
  14664. b[j].type == 12 ||
  14665. b[j].type == 7) &&
  14666. a[i].tool[0] != 15 &&
  14667. a[i].tool[0] != 4 &&
  14668. a[i].tool[0] != 45 &&
  14669. a[i].tool[0] != 50 &&
  14670. a[i].tool[0] != 32 &&
  14671. a[i].tool[0] != 57 &&
  14672. a[i].tool[0] != 52
  14673. ) {
  14674. if (
  14675. c.indexOf(
  14676. b[j].content
  14677. .split(".")
  14678. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14679. ) != -1 &&
  14680. a[i].tool[0] == 16 &&
  14681. b[j].atool != 50
  14682. ) {
  14683. let _works = {
  14684. userid: b[j].userid,
  14685. ateacher: b[j].ateacher,
  14686. wid: b[j].id,
  14687. works: b[j].content,
  14688. sName: b[j].name,
  14689. type: 1,
  14690. ttype:b[j].ttype,
  14691. time: b[j].time,
  14692. score: b[j].score,
  14693. img: b[j].img,
  14694. likesCount: likesCount,
  14695. commentCount: commentCount,
  14696. isLikes: isLikes,
  14697. commentJson: commentJson,
  14698. likeJson:likeJson
  14699. };
  14700. if (this.isGroup) {
  14701. let isGw = 1;
  14702. for (
  14703. var groupI = 0;
  14704. groupI < this.courseGroup.group.length;
  14705. groupI++
  14706. ) {
  14707. let gid = this.courseGroup.group[groupI].id;
  14708. if (
  14709. this.courseGroupStudentUid[gid].indexOf(
  14710. b[j].userid
  14711. ) != -1
  14712. ) {
  14713. isGw = 2;
  14714. this.courseGroup.group[groupI].works[i].push(_works);
  14715. break;
  14716. }
  14717. }
  14718. if (isGw == 1) {
  14719. _worksStudent[i].push(_works);
  14720. }
  14721. } else {
  14722. _worksStudent[i].push(_works);
  14723. }
  14724. _worksStudent2[i].push(_works);
  14725. this.isWorksS[i].push({
  14726. uid: b[j].userid,
  14727. sName: b[j].name,
  14728. });
  14729. } else if (
  14730. y.indexOf(
  14731. b[j].content
  14732. .split(".")
  14733. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14734. ) != -1 &&
  14735. a[i].tool[0] == 16 &&
  14736. b[j].atool != 50
  14737. ) {
  14738. let _works = {
  14739. userid: b[j].userid,
  14740. ateacher: b[j].ateacher,
  14741. wid: b[j].id,
  14742. works: b[j].content,
  14743. sName: b[j].name,
  14744. type: 3,
  14745. ttype:b[j].ttype,
  14746. time: b[j].time,
  14747. score: b[j].score,
  14748. img: b[j].img,
  14749. likesCount: likesCount,
  14750. commentCount: commentCount,
  14751. isLikes: isLikes,
  14752. commentJson: commentJson,
  14753. likeJson:likeJson
  14754. };
  14755. if (this.isGroup) {
  14756. let isGw = 1;
  14757. for (
  14758. var groupI = 0;
  14759. groupI < this.courseGroup.group.length;
  14760. groupI++
  14761. ) {
  14762. let gid = this.courseGroup.group[groupI].id;
  14763. if (
  14764. this.courseGroupStudentUid[gid].indexOf(
  14765. b[j].userid
  14766. ) != -1
  14767. ) {
  14768. isGw = 2;
  14769. this.courseGroup.group[groupI].works[i].push(_works);
  14770. break;
  14771. }
  14772. }
  14773. if (isGw == 1) {
  14774. _worksStudent[i].push(_works);
  14775. }
  14776. } else {
  14777. _worksStudent[i].push(_works);
  14778. }
  14779. _worksStudent2[i].push(_works);
  14780. this.isWorksS[i].push({
  14781. uid: b[j].userid,
  14782. sName: b[j].name,
  14783. });
  14784. } else if (b[j].type == 6 && b[j].atool != 50) {
  14785. let _works = {
  14786. userid: b[j].userid,
  14787. ateacher: b[j].ateacher,
  14788. wid: b[j].id,
  14789. works: b[j].content,
  14790. sName: b[j].name,
  14791. type: 4,
  14792. ttype:b[j].ttype,
  14793. time: b[j].time,
  14794. score: b[j].score,
  14795. img: b[j].img,
  14796. likesCount: likesCount,
  14797. commentCount: commentCount,
  14798. isLikes: isLikes,
  14799. commentJson: commentJson,
  14800. likeJson:likeJson
  14801. };
  14802. _worksStudent[i].push(_works);
  14803. _worksStudent2[i].push(_works);
  14804. this.isWorksS[i].push({
  14805. uid: b[j].userid,
  14806. sName: b[j].name,
  14807. });
  14808. } else if (b[j].type == 7 && b[j].atool != 50) {
  14809. let _work = {
  14810. userid: b[j].userid,
  14811. ateacher: b[j].ateacher,
  14812. wid: b[j].id,
  14813. works: b[j].content,
  14814. sName: b[j].name,
  14815. type: 5,
  14816. ttype:b[j].ttype,
  14817. time: b[j].time,
  14818. score: b[j].score,
  14819. img: b[j].img,
  14820. likesCount: likesCount,
  14821. commentCount: commentCount,
  14822. isLikes: isLikes,
  14823. commentJson: commentJson,
  14824. likeJson:likeJson
  14825. };
  14826. _worksStudent[i].push(_work);
  14827. _worksStudent2[i].push(_work);
  14828. this.isWorksS[i].push({
  14829. uid: b[j].userid,
  14830. sName: b[j].name,
  14831. });
  14832. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14833. let _works = {
  14834. userid: b[j].userid,
  14835. ateacher: b[j].ateacher,
  14836. wid: b[j].id,
  14837. works: b[j].content,
  14838. sName: b[j].name,
  14839. type: 12,
  14840. ttype:b[j].ttype,
  14841. time: b[j].time,
  14842. score: b[j].score,
  14843. img: b[j].img,
  14844. likesCount: likesCount,
  14845. commentCount: commentCount,
  14846. isLikes: isLikes,
  14847. commentJson: commentJson,
  14848. likeJson:likeJson
  14849. };
  14850. if (this.isGroup) {
  14851. let isGw = 1;
  14852. for (
  14853. var groupI = 0;
  14854. groupI < this.courseGroup.group.length;
  14855. groupI++
  14856. ) {
  14857. let gid = this.courseGroup.group[groupI].id;
  14858. if (
  14859. this.courseGroupStudentUid[gid].indexOf(
  14860. b[j].userid
  14861. ) != -1
  14862. ) {
  14863. isGw = 2;
  14864. this.courseGroup.group[groupI].works[i].push(_works);
  14865. break;
  14866. }
  14867. }
  14868. if (isGw == 1) {
  14869. _worksStudent[i].push(_works);
  14870. }
  14871. } else {
  14872. _worksStudent[i].push(_works);
  14873. }
  14874. _worksStudent2[i].push(_works);
  14875. this.isWorksS[i].push({
  14876. uid: b[j].userid,
  14877. sName: b[j].name,
  14878. });
  14879. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14880. let _works = {
  14881. userid: b[j].userid,
  14882. ateacher: b[j].ateacher,
  14883. wid: b[j].id,
  14884. works: b[j].content,
  14885. sName: b[j].name,
  14886. type: 0,
  14887. ttype:b[j].ttype,
  14888. time: b[j].time,
  14889. score: b[j].score,
  14890. img: b[j].img,
  14891. likesCount: likesCount,
  14892. commentCount: commentCount,
  14893. isLikes: isLikes,
  14894. commentJson: commentJson,
  14895. likeJson:likeJson
  14896. };
  14897. if (this.isGroup) {
  14898. let isGw = 1;
  14899. for (
  14900. var groupI = 0;
  14901. groupI < this.courseGroup.group.length;
  14902. groupI++
  14903. ) {
  14904. let gid = this.courseGroup.group[groupI].id;
  14905. if (
  14906. this.courseGroupStudentUid[gid].indexOf(
  14907. b[j].userid
  14908. ) != -1
  14909. ) {
  14910. isGw = 2;
  14911. this.courseGroup.group[groupI].works[i].push(_works);
  14912. break;
  14913. }
  14914. }
  14915. if (isGw == 1) {
  14916. _worksStudent[i].push(_works);
  14917. }
  14918. } else {
  14919. _worksStudent[i].push(_works);
  14920. }
  14921. _worksStudent2[i].push(_works);
  14922. this.isWorksS[i].push({
  14923. uid: b[j].userid,
  14924. sName: b[j].name,
  14925. });
  14926. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14927. let _works = {
  14928. userid: b[j].userid,
  14929. ateacher: b[j].ateacher,
  14930. wid: b[j].id,
  14931. works: b[j].content,
  14932. sName: b[j].name,
  14933. type: 0,
  14934. ttype:b[j].ttype,
  14935. time: b[j].time,
  14936. score: b[j].score,
  14937. img: b[j].img,
  14938. likesCount: likesCount,
  14939. commentCount: commentCount,
  14940. isLikes: isLikes,
  14941. commentJson: commentJson,
  14942. likeJson:likeJson
  14943. };
  14944. if (this.isGroup) {
  14945. let isGw = 1;
  14946. for (
  14947. var groupI = 0;
  14948. groupI < this.courseGroup.group.length;
  14949. groupI++
  14950. ) {
  14951. let gid = this.courseGroup.group[groupI].id;
  14952. if (
  14953. this.courseGroupStudentUid[gid].indexOf(
  14954. b[j].userid
  14955. ) != -1
  14956. ) {
  14957. isGw = 2;
  14958. this.courseGroup.group[groupI].works[i].push(_works);
  14959. break;
  14960. }
  14961. }
  14962. if (isGw == 1) {
  14963. _worksStudent[i].push(_works);
  14964. }
  14965. } else {
  14966. _worksStudent[i].push(_works);
  14967. }
  14968. _worksStudent2[i].push(_works);
  14969. this.isWorksS[i].push({
  14970. uid: b[j].userid,
  14971. sName: b[j].name,
  14972. });
  14973. }
  14974. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14975. let _works = {
  14976. userid: b[j].userid,
  14977. ateacher: b[j].ateacher,
  14978. wid: b[j].id,
  14979. works: b[j].content,
  14980. sName: b[j].name,
  14981. type: 2,
  14982. ttype:b[j].ttype,
  14983. time: b[j].time,
  14984. score: b[j].score,
  14985. img: b[j].img,
  14986. likesCount: likesCount,
  14987. commentCount: commentCount,
  14988. isLikes: isLikes,
  14989. commentJson: commentJson,
  14990. likeJson:likeJson
  14991. };
  14992. if (this.isGroup) {
  14993. let isGw = 1;
  14994. for (
  14995. var groupI = 0;
  14996. groupI < this.courseGroup.group.length;
  14997. groupI++
  14998. ) {
  14999. let gid = this.courseGroup.group[groupI].id;
  15000. if (
  15001. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15002. -1
  15003. ) {
  15004. isGw = 2;
  15005. this.courseGroup.group[groupI].works[i].push(_works);
  15006. break;
  15007. }
  15008. }
  15009. if (isGw == 1) {
  15010. _worksStudent[i].push(_works);
  15011. }
  15012. } else {
  15013. _worksStudent[i].push(_works);
  15014. }
  15015. _worksStudent2[i].push(_works);
  15016. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15017. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15018. //问卷
  15019. let _work = {
  15020. userid: b[j].userid,
  15021. ateacher: b[j].ateacher,
  15022. wid: b[j].id,
  15023. works: b[j].content,
  15024. sName: b[j].name,
  15025. type: 2,
  15026. ttype:b[j].ttype,
  15027. time: b[j].time,
  15028. score: b[j].score,
  15029. img: b[j].img,
  15030. likesCount: likesCount,
  15031. commentCount: commentCount,
  15032. isLikes: isLikes,
  15033. commentJson: commentJson,
  15034. likeJson:likeJson
  15035. };
  15036. _worksStudent[i].push(_work);
  15037. _worksStudent2[i].push(_work);
  15038. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15039. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15040. //选择题
  15041. let _work = {
  15042. userid: b[j].userid,
  15043. ateacher: b[j].ateacher,
  15044. wid: b[j].id,
  15045. works: b[j].content,
  15046. sName: b[j].name,
  15047. type: 8,
  15048. ttype:b[j].ttype,
  15049. time: b[j].time,
  15050. score: b[j].score,
  15051. img: b[j].img,
  15052. likesCount: likesCount,
  15053. commentCount: commentCount,
  15054. isLikes: isLikes,
  15055. commentJson: commentJson,
  15056. likeJson:likeJson
  15057. };
  15058. _worksStudent[i].push(_work);
  15059. _worksStudent2[i].push(_work);
  15060. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15061. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15062. //选择题
  15063. let _work = {
  15064. userid: b[j].userid,
  15065. ateacher: b[j].ateacher,
  15066. wid: b[j].id,
  15067. works: b[j].content,
  15068. sName: b[j].name,
  15069. type: 9,
  15070. ttype:b[j].ttype,
  15071. time: b[j].time,
  15072. score: b[j].score,
  15073. img: b[j].img,
  15074. likesCount: likesCount,
  15075. commentCount: commentCount,
  15076. isLikes: isLikes,
  15077. commentJson: commentJson,
  15078. likeJson:likeJson
  15079. };
  15080. _worksStudent[i].push(_work);
  15081. _worksStudent2[i].push(_work);
  15082. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15083. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15084. //选择题
  15085. let _work = {
  15086. userid: b[j].userid,
  15087. ateacher: b[j].ateacher,
  15088. wid: b[j].id,
  15089. works: b[j].content,
  15090. sName: b[j].name,
  15091. type: 10,
  15092. ttype:b[j].ttype,
  15093. time: b[j].time,
  15094. score: b[j].score,
  15095. img: b[j].img,
  15096. likesCount: likesCount,
  15097. commentCount: commentCount,
  15098. isLikes: isLikes,
  15099. commentJson: commentJson,
  15100. likeJson:likeJson
  15101. };
  15102. _worksStudent[i].push(_work);
  15103. _worksStudent2[i].push(_work);
  15104. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15105. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15106. //选择题
  15107. let _work = {
  15108. userid: b[j].userid,
  15109. ateacher: b[j].ateacher,
  15110. wid: b[j].id,
  15111. works: b[j].content,
  15112. sName: b[j].name,
  15113. type: 13,
  15114. ttype:b[j].ttype,
  15115. time: b[j].time,
  15116. score: b[j].score,
  15117. img: b[j].img,
  15118. likesCount: likesCount,
  15119. commentCount: commentCount,
  15120. isLikes: isLikes,
  15121. commentJson: commentJson,
  15122. likeJson:likeJson
  15123. };
  15124. _worksStudent[i].push(_work);
  15125. _worksStudent2[i].push(_work);
  15126. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15127. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15128. //选择题
  15129. let _work = {
  15130. userid: b[j].userid,
  15131. ateacher: b[j].ateacher,
  15132. wid: b[j].id,
  15133. works: b[j].content,
  15134. sName: b[j].name,
  15135. type: 16,
  15136. ttype:b[j].ttype,
  15137. time: b[j].time,
  15138. score: b[j].score,
  15139. img: b[j].img,
  15140. likesCount: likesCount,
  15141. commentCount: commentCount,
  15142. isLikes: isLikes,
  15143. commentJson: commentJson,
  15144. aiCode: b[j].aiCode,
  15145. teacherCode: b[j].teacherCode,
  15146. likeJson:likeJson
  15147. };
  15148. _worksStudent[i].push(_work);
  15149. _worksStudent2[i].push(_work);
  15150. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15151. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15152. //英语口语
  15153. let _work = {
  15154. userid: b[j].userid,
  15155. ateacher: b[j].ateacher,
  15156. wid: b[j].id,
  15157. works: b[j].content,
  15158. sName: b[j].name,
  15159. type: 17,
  15160. ttype:b[j].ttype,
  15161. time: b[j].time,
  15162. score: b[j].score,
  15163. img: b[j].img,
  15164. likesCount: likesCount,
  15165. commentCount: commentCount,
  15166. isLikes: isLikes,
  15167. commentJson: commentJson,
  15168. likeJson:likeJson
  15169. };
  15170. _worksStudent[i].push(_work);
  15171. _worksStudent2[i].push(_work);
  15172. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15173. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15174. //交互视频
  15175. let _work = {
  15176. userid: b[j].userid,
  15177. ateacher: b[j].ateacher,
  15178. wid: b[j].id,
  15179. works: b[j].content,
  15180. sName: b[j].name,
  15181. type: 14,
  15182. ttype:b[j].ttype,
  15183. time: b[j].time,
  15184. score: b[j].score,
  15185. img: b[j].img,
  15186. likesCount: likesCount,
  15187. commentCount: commentCount,
  15188. isLikes: isLikes,
  15189. commentJson: commentJson,
  15190. likeJson:likeJson
  15191. };
  15192. _worksStudent[i].push(_work);
  15193. _worksStudent2[i].push(_work);
  15194. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15195. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15196. let _gindex = JSON.parse(b[j].content);
  15197. if (
  15198. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15199. b[j].userid
  15200. ) != -1
  15201. ) {
  15202. let _work = {
  15203. userid: b[j].userid,
  15204. ateacher: b[j].ateacher,
  15205. wid: b[j].id,
  15206. works: _gindex.url,
  15207. sName: b[j].name,
  15208. type: _gindex.type,
  15209. ttype:b[j].ttype,
  15210. time: b[j].time,
  15211. score: b[j].score,
  15212. img: b[j].img,
  15213. likesCount: likesCount,
  15214. commentCount: commentCount,
  15215. isLikes: isLikes,
  15216. commentJson: commentJson,
  15217. likeJson:likeJson
  15218. };
  15219. _worksStudent[i][_gindex.groupIndex].push(_work);
  15220. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15221. }
  15222. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15223. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15224. let _work = {
  15225. userid: b[j].userid,
  15226. ateacher: b[j].ateacher,
  15227. wid: b[j].id,
  15228. works: b[j].content,
  15229. sName: b[j].name ? b[j].name : b[j].userid,
  15230. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15231. ttype:b[j].ttype,
  15232. time: b[j].time,
  15233. score: b[j].score,
  15234. img: b[j].img,
  15235. likesCount: likesCount,
  15236. commentCount: commentCount,
  15237. isLikes: isLikes,
  15238. commentJson: commentJson,
  15239. likeJson:likeJson
  15240. };
  15241. _worksStudent[i].push(_work);
  15242. _worksStudent2[i].push(_work);
  15243. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15244. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15245. let _work = {
  15246. userid: b[j].userid,
  15247. ateacher: b[j].ateacher,
  15248. wid: b[j].id,
  15249. works: b[j].content,
  15250. sName: b[j].name ? b[j].name : b[j].userid,
  15251. type: 12,
  15252. ttype:b[j].ttype,
  15253. time: b[j].time,
  15254. score: b[j].score,
  15255. img: b[j].img,
  15256. likesCount: likesCount,
  15257. commentCount: commentCount,
  15258. isLikes: isLikes,
  15259. commentJson: commentJson,
  15260. likeJson:likeJson
  15261. };
  15262. _worksStudent[i].push(_work);
  15263. _worksStudent2[i].push(_work);
  15264. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15265. } else if (
  15266. a[i].tool[0] == 57 &&
  15267. b[j].atool == 57 &&
  15268. b[j].type == 12
  15269. ) {
  15270. let _work = {
  15271. userid: b[j].userid,
  15272. ateacher: b[j].ateacher,
  15273. wid: b[j].id,
  15274. works: b[j].content,
  15275. sName: b[j].name ? b[j].name : b[j].userid,
  15276. type: 12,
  15277. ttype:b[j].ttype,
  15278. time: b[j].time,
  15279. score: b[j].score,
  15280. img: b[j].img,
  15281. likesCount: likesCount,
  15282. commentCount: commentCount,
  15283. isLikes: isLikes,
  15284. commentJson: commentJson,
  15285. likeJson:likeJson
  15286. };
  15287. _worksStudent[i].push(_work);
  15288. _worksStudent2[i].push(_work);
  15289. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15290. } else if (
  15291. a[i].tool[0] == 57 &&
  15292. b[j].atool == 57 &&
  15293. b[j].type == 15
  15294. ) {
  15295. let _work = {
  15296. userid: b[j].userid,
  15297. ateacher: b[j].ateacher,
  15298. wid: b[j].id,
  15299. works: b[j].content,
  15300. sName: b[j].name ? b[j].name : b[j].userid,
  15301. type: 15,
  15302. ttype:b[j].ttype,
  15303. time: b[j].time,
  15304. score: b[j].score,
  15305. img: b[j].img,
  15306. likesCount: likesCount,
  15307. commentCount: commentCount,
  15308. isLikes: isLikes,
  15309. commentJson: commentJson,
  15310. likeJson:likeJson
  15311. };
  15312. _worksStudent[i].push(_work);
  15313. _worksStudent2[i].push(_work);
  15314. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15315. }
  15316. }
  15317. }
  15318. if (_worksStudent[i] && _worksStudent[i].length) {
  15319. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15320. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15321. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15322. var scoreA = parseFloat(jscoreA);
  15323. var scoreB = parseFloat(jscoreB);
  15324. if (scoreA == scoreB) {
  15325. return b.likesCount - a.likesCount;
  15326. }
  15327. return scoreB - scoreA;
  15328. });
  15329. if (this.isGroup) {
  15330. for (
  15331. var groupI = 0;
  15332. groupI < this.courseGroup.group.length;
  15333. groupI++
  15334. ) {
  15335. this.courseGroup.group[groupI].works[i] =
  15336. this.courseGroup.group[groupI].works[i].sort(function (
  15337. a,
  15338. b
  15339. ) {
  15340. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15341. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15342. var scoreA = parseFloat(jscoreA);
  15343. var scoreB = parseFloat(jscoreB);
  15344. if (scoreA == scoreB) {
  15345. return b.likesCount - a.likesCount;
  15346. }
  15347. return scoreB - scoreA;
  15348. });
  15349. }
  15350. }
  15351. }
  15352. }
  15353. this.timeWorkList = _worksStudent2;
  15354. for (var i = 0; i < a.length; i++) {
  15355. for (var j = 0; j < b.length; j++) {
  15356. var data = b[j];
  15357. if (i == b[j].tool) {
  15358. if (data.type == 2 || data.type == 8) {
  15359. for (var z = 0; z < this.checkJson[i].length; z++) {
  15360. this.checkJson[i][z].checkPerent = [];
  15361. this.checkJson[i][z].right = Math.round(
  15362. (this.checkJson[i][z].rightPerson.length /
  15363. parseInt(_worksStudent[i].length)) *
  15364. 100
  15365. );
  15366. let aaaa = this.checkJson[i][z];
  15367. for (
  15368. var k = 0;
  15369. k < this.checkJson[i][z].checkCount.length;
  15370. k++
  15371. ) {
  15372. this.checkJson[i][z].checkPerent.push(
  15373. Math.round(
  15374. (this.checkJson[i][z].checkCount[k] /
  15375. parseInt(_worksStudent[i].length)) *
  15376. 100
  15377. )
  15378. );
  15379. }
  15380. }
  15381. } else if (data.type == 9) {
  15382. for (var z = 0; z < this.checkJson[i].length; z++) {
  15383. this.checkJson[i][z].checkPerent = [];
  15384. this.checkJson[i][z].right = Math.round(
  15385. (this.checkJson[i][z].rightPerson.length /
  15386. this.checkJson[i][z].checkPerson.length) *
  15387. 100
  15388. );
  15389. }
  15390. }
  15391. }
  15392. }
  15393. }
  15394. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15395. this.joinGroup(gindex);
  15396. }
  15397. this.worksStudent = _worksStudent;
  15398. this.selectWorksStudent();
  15399. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15400. this.$nextTick(()=>{
  15401. setTimeout(()=>{
  15402. setTimeout(()=>{
  15403. this.panToolHeight('tool-'+ci);
  15404. }, 500)
  15405. }, 0)
  15406. })
  15407. }
  15408. })
  15409. .catch((err) => {
  15410. console.error(err);
  15411. });
  15412. },
  15413. pngToWhiteBg(file) {
  15414. const _file = file;
  15415. let read = new FileReader();
  15416. read.readAsDataURL(file); // 文件转base64
  15417. return new Promise((resolve, reject) => {
  15418. read.onload = (e) => {
  15419. let img = new Image();
  15420. img.src = e.target.result;
  15421. img.onload = async () => {
  15422. // 生成canvas
  15423. let canvas = document.createElement("canvas");
  15424. let context = canvas.getContext("2d");
  15425. // 绘制图片到canvas上
  15426. canvas.width = img.width;
  15427. canvas.height = img.height;
  15428. // 在canvas绘制前填充白色背景
  15429. context.fillStyle = "#fff";
  15430. context.fillRect(0, 0, canvas.width, canvas.height);
  15431. context.drawImage(img, 0, 0);
  15432. let base64 = canvas.toDataURL(file["type"], 1);
  15433. let newFile = this.dataUrlToFile(base64, _file);
  15434. resolve(newFile);
  15435. };
  15436. };
  15437. });
  15438. },
  15439. dataUrlToFile(dataurl, file) {
  15440. let arr = dataurl.split(","),
  15441. mime = arr[0].match(/:(.*?);/)[1],
  15442. bstr = atob(arr[1]),
  15443. n = bstr.length,
  15444. u8arr = new Uint8Array(n);
  15445. while (n--) {
  15446. u8arr[n] = bstr.charCodeAt(n);
  15447. }
  15448. // return new Blob([u8arr], { type: mime });
  15449. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15450. type: mime,
  15451. });
  15452. },
  15453. async beforeUpload1(event, type, i) {
  15454. // this.$message.success('进入上传')
  15455. var file = "";
  15456. if (type == 5) {
  15457. file = event;
  15458. } else {
  15459. file = event.target.files[0];
  15460. }
  15461. var credentials = {
  15462. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15463. secretAccessKey: "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",
  15464. }; //秘钥形式的登录上传
  15465. window.AWS.config.update(credentials);
  15466. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15467. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15468. var _this = this;
  15469. _this.progress = 0;
  15470. _this.proVisible = true;
  15471. _this.isFinishSize = 0;
  15472. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15473. var b = [
  15474. "DOC",
  15475. "DOCX",
  15476. "DOCM",
  15477. "DOTM",
  15478. "DOTX",
  15479. "PPTX",
  15480. "PPSX",
  15481. "PPT",
  15482. "PPS",
  15483. "PPTM",
  15484. "POTM",
  15485. "PPAM",
  15486. "POTX",
  15487. "PPSM",
  15488. ];
  15489. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15490. var photoA = [
  15491. "BMP",
  15492. "GIF",
  15493. "PNG",
  15494. "JPEG",
  15495. "JPEG",
  15496. "JPG",
  15497. "TIF",
  15498. "PCX",
  15499. "TGA",
  15500. "EXIF",
  15501. "FPX",
  15502. "SVG",
  15503. "APNG",
  15504. ];
  15505. // if (
  15506. // b.indexOf(
  15507. // file.name
  15508. // .split(".")
  15509. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15510. // ) != -1
  15511. // ) {
  15512. // if (file.size / 1024 / 1024 > 10) {
  15513. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15514. // return;
  15515. // }
  15516. // } else if (
  15517. // excelA.indexOf(
  15518. // file.name
  15519. // .split(".")
  15520. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15521. // ) != "-1"
  15522. // ) {
  15523. // if (file.size / 1024 / 1024 > 5) {
  15524. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15525. // return;
  15526. // }
  15527. // }
  15528. if (
  15529. photoA.indexOf(
  15530. file.name
  15531. .split(".")
  15532. [file.name.split(".").length - 1].toLocaleUpperCase()
  15533. ) != -1 &&
  15534. type != 4
  15535. ) {
  15536. // const blob = await imageConversion.compress(file, 0.8)
  15537. file = await this.pngToWhiteBg(file);
  15538. const blob = await imageConversion.compressAccurately(file, 256);
  15539. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15540. file = new File([blob], file.name, { type: file.type });
  15541. }
  15542. if (file) {
  15543. var params = {
  15544. Key:
  15545. file.name.split(".")[0] +
  15546. new Date().getTime() +
  15547. "." +
  15548. file.name.split(".")[file.name.split(".").length - 1],
  15549. ContentType: file.type,
  15550. Body: file,
  15551. "Access-Control-Allow-Credentials": "*",
  15552. ACL: "public-read",
  15553. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15554. var options = {
  15555. // partSize: 2048 * 1024 * 1024,
  15556. partSize: 1024 * 1024 * 1024,
  15557. queueSize: 2,
  15558. leavePartsOnError: true,
  15559. };
  15560. bucket
  15561. .upload(params, options)
  15562. .on("httpUploadProgress", function (evt) {
  15563. //这里可以写进度条
  15564. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15565. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15566. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15567. })
  15568. .send(function (err, data) {
  15569. _this.progress = 100;
  15570. _this.isFinishSize = _this.isAllSize;
  15571. setTimeout(() => {
  15572. _this.proVisible = false;
  15573. }, 1000);
  15574. if (err) {
  15575. var a = _this.$refs.upload1.uploadFiles;
  15576. a.splice(a.length - 1, a.length);
  15577. _this.$message.error("上传失败");
  15578. } else {
  15579. // _this.$message.success('上传成功')
  15580. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15581. var c = [
  15582. "AVI",
  15583. "NAVI",
  15584. "MPEG",
  15585. "ASF",
  15586. "MOV",
  15587. "WMV",
  15588. "3GP",
  15589. "RM",
  15590. "RMVB",
  15591. "FLV",
  15592. "F4V",
  15593. "H.264",
  15594. "H.265",
  15595. "REAL VIDEO",
  15596. "MKV",
  15597. "WebM",
  15598. "HDDVD",
  15599. "MP4",
  15600. "MPG",
  15601. "M4V",
  15602. "MGV",
  15603. "OGV",
  15604. "QTM",
  15605. "STR",
  15606. "AMC",
  15607. "DVX",
  15608. "EVO",
  15609. "DAT",
  15610. "OGG",
  15611. "OGM",
  15612. ];
  15613. if (type == 1) {
  15614. _this.studyJuri[0].cover.push({
  15615. name: file.name,
  15616. url: data.Location,
  15617. uid: file.uid,
  15618. });
  15619. if (
  15620. c.indexOf(
  15621. _this.studyJuri[0].cover[0].url
  15622. .split(".")
  15623. [
  15624. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15625. ].toLocaleUpperCase()
  15626. ) != -1
  15627. ) {
  15628. _this.fileType = 2;
  15629. } else if (
  15630. b.indexOf(
  15631. _this.studyJuri[0].cover[0].url
  15632. .split(".")
  15633. [
  15634. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15635. ].toLocaleUpperCase()
  15636. ) != -1
  15637. ) {
  15638. _this.fileType = 1;
  15639. } else if (
  15640. photoA.indexOf(
  15641. _this.studyJuri[0].cover[0].url
  15642. .split(".")
  15643. [
  15644. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15645. ].toLocaleUpperCase()
  15646. ) != -1
  15647. ) {
  15648. _this.fileType = 0;
  15649. } else {
  15650. _this.fileType = 3;
  15651. }
  15652. _this.imgChange(null, null, type);
  15653. } else if (type == 2) {
  15654. _this.upToolImg = data.Location;
  15655. _this.imgChange(null, null, type);
  15656. _this.addCourseWorks(i);
  15657. } else if (type == 4) {
  15658. _this.addPz("3", data.Location);
  15659. } else if (type == 5) {
  15660. _this.addImgDrawImG(data.Location);
  15661. } else if (type == 6) {
  15662. var _ftype = 1;
  15663. if (
  15664. c.indexOf(
  15665. data.Location.split(".")[
  15666. data.Location.split(".").length - 1
  15667. ].toLocaleUpperCase()
  15668. ) != -1
  15669. ) {
  15670. _ftype = 5;
  15671. } else if (
  15672. b.indexOf(
  15673. data.Location.split(".")[
  15674. data.Location.split(".").length - 1
  15675. ].toLocaleUpperCase()
  15676. ) != -1
  15677. ) {
  15678. _ftype = 4;
  15679. } else {
  15680. _ftype = 1;
  15681. }
  15682. _this.plworkFile.push({
  15683. name: file.name,
  15684. url: data.Location,
  15685. uid: file.uid,
  15686. fileType: _ftype,
  15687. username:
  15688. _this.plworkFile.length > 10
  15689. ? _this.plworkFile.length + 1
  15690. : "0" + (_this.plworkFile.length + 1),
  15691. });
  15692. } else if (type == 7) {
  15693. _this.addCourseWorksGong(i, data.Location, 32);
  15694. } else if (type == 8) {
  15695. _this.addCourseWorksGong(i, data.Location, 57);
  15696. }
  15697. _this.imgChange(null, null, type);
  15698. console.log(data.Location);
  15699. // _this.$message.success('上传成功'+data.Location)
  15700. }
  15701. });
  15702. }
  15703. },
  15704. async beforeUpload3(event, type, i) {
  15705. // this.$message.success('进入上传')
  15706. let file = "";
  15707. let cfindex2 = 0;
  15708. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15709. file = event.target.files[cfindex];
  15710. var credentials = {
  15711. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15712. secretAccessKey: "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",
  15713. }; //秘钥形式的登录上传
  15714. window.AWS.config.update(credentials);
  15715. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15716. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15717. var _this = this;
  15718. // _this.progress = 0;
  15719. _this.proVisible2 = true;
  15720. var b = [
  15721. "DOC",
  15722. "DOCX",
  15723. "DOCM",
  15724. "DOTM",
  15725. "DOTX",
  15726. "PPTX",
  15727. "PPSX",
  15728. "PPT",
  15729. "PPS",
  15730. "PPTM",
  15731. "POTM",
  15732. "PPAM",
  15733. "POTX",
  15734. "PPSM",
  15735. ];
  15736. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15737. var photoA = [
  15738. "BMP",
  15739. "GIF",
  15740. "PNG",
  15741. "JPEG",
  15742. "JPG",
  15743. "TIF",
  15744. "PCX",
  15745. "TGA",
  15746. "EXIF",
  15747. "FPX",
  15748. "SVG",
  15749. "APNG",
  15750. ];
  15751. if (
  15752. photoA.indexOf(
  15753. file.name
  15754. .split(".")
  15755. [file.name.split(".").length - 1].toLocaleUpperCase()
  15756. ) != -1 &&
  15757. type != 4
  15758. ) {
  15759. // const blob = await imageConversion.compress(file, 0.8)
  15760. file = await this.pngToWhiteBg(file);
  15761. const blob = await imageConversion.compressAccurately(file, 256);
  15762. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15763. file = new File([blob], file.name, { type: file.type });
  15764. }
  15765. if (file) {
  15766. var params = {
  15767. Key:
  15768. file.name.split(".")[0] +
  15769. new Date().getTime() +
  15770. "." +
  15771. file.name.split(".")[file.name.split(".").length - 1],
  15772. ContentType: file.type,
  15773. Body: file,
  15774. "Access-Control-Allow-Credentials": "*",
  15775. ACL: "public-read",
  15776. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15777. var options = {
  15778. // partSize: 2048 * 1024 * 1024,
  15779. partSize: 1024 * 1024 * 1024,
  15780. queueSize: 2,
  15781. leavePartsOnError: true,
  15782. };
  15783. bucket
  15784. .upload(params, options)
  15785. .on("httpUploadProgress", function (evt) {
  15786. //这里可以写进度条
  15787. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15788. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15789. })
  15790. .send(function (err, data) {
  15791. // _this.progress = 100;
  15792. cfindex2++;
  15793. setTimeout(() => {
  15794. if (
  15795. cfindex2 == event.target.files.length - 1 ||
  15796. cfindex2 > event.target.files.length - 1
  15797. ) {
  15798. _this.proVisible2 = false;
  15799. }
  15800. }, 1000);
  15801. if (err) {
  15802. var a = _this.$refs.upload1.uploadFiles;
  15803. a.splice(a.length - 1, a.length);
  15804. _this.$message.error("上传失败");
  15805. } else {
  15806. // _this.$message.success('上传成功')
  15807. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15808. var c = [
  15809. "AVI",
  15810. "NAVI",
  15811. "MPEG",
  15812. "ASF",
  15813. "MOV",
  15814. "WMV",
  15815. "3GP",
  15816. "RM",
  15817. "RMVB",
  15818. "FLV",
  15819. "F4V",
  15820. "H.264",
  15821. "H.265",
  15822. "REAL VIDEO",
  15823. "MKV",
  15824. "WebM",
  15825. "HDDVD",
  15826. "MP4",
  15827. "MPG",
  15828. "M4V",
  15829. "MGV",
  15830. "OGV",
  15831. "QTM",
  15832. "STR",
  15833. "AMC",
  15834. "DVX",
  15835. "EVO",
  15836. "DAT",
  15837. "OGG",
  15838. "OGM",
  15839. ];
  15840. if (type == 1) {
  15841. _this.studyJuri[0].cover.push({
  15842. name: file.name,
  15843. url: data.Location,
  15844. uid: file.uid,
  15845. });
  15846. if (
  15847. c.indexOf(
  15848. _this.studyJuri[0].cover[0].url
  15849. .split(".")
  15850. [
  15851. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15852. ].toLocaleUpperCase()
  15853. ) != -1
  15854. ) {
  15855. _this.fileType = 2;
  15856. } else if (
  15857. b.indexOf(
  15858. _this.studyJuri[0].cover[0].url
  15859. .split(".")
  15860. [
  15861. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15862. ].toLocaleUpperCase()
  15863. ) != -1
  15864. ) {
  15865. _this.fileType = 1;
  15866. } else {
  15867. _this.fileType = 0;
  15868. }
  15869. _this.imgChange(null, null, type);
  15870. } else if (type == 2) {
  15871. _this.upToolImg = data.Location;
  15872. _this.imgChange(null, null, type);
  15873. _this.addCourseWorks(i);
  15874. } else if (type == 4) {
  15875. _this.addPz("3", data.Location);
  15876. } else if (type == 5) {
  15877. _this.addImgDrawImG(data.Location);
  15878. } else if (type == 6) {
  15879. var _ftype = 1;
  15880. if (
  15881. c.indexOf(
  15882. data.Location.split(".")[
  15883. data.Location.split(".").length - 1
  15884. ].toLocaleUpperCase()
  15885. ) != -1
  15886. ) {
  15887. _ftype = 5;
  15888. } else if (
  15889. b.indexOf(
  15890. data.Location.split(".")[
  15891. data.Location.split(".").length - 1
  15892. ].toLocaleUpperCase()
  15893. ) != -1
  15894. ) {
  15895. _ftype = 4;
  15896. } else {
  15897. _ftype = 1;
  15898. }
  15899. _this.plworkFile.push({
  15900. name: file.name,
  15901. url: data.Location,
  15902. uid: file.uid,
  15903. fileType: _ftype,
  15904. username:
  15905. _this.plworkFile.length + 1 > 9
  15906. ? _this.plworkFile.length + 1
  15907. : "0" + (_this.plworkFile.length + 1),
  15908. });
  15909. }
  15910. _this.imgChange(null, null, type);
  15911. console.log(data.Location);
  15912. // _this.$message.success('上传成功'+data.Location)
  15913. }
  15914. });
  15915. }
  15916. }
  15917. },
  15918. beforeUpload2(event, type) {
  15919. var file = event.target.files[0];
  15920. var credentials = {
  15921. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15922. secretAccessKey: "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",
  15923. }; //秘钥形式的登录上传
  15924. window.AWS.config.update(credentials);
  15925. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15926. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15927. var _this = this;
  15928. _this.progress = 0;
  15929. _this.proVisible = true;
  15930. if (file) {
  15931. var params = {
  15932. Key:
  15933. file.name.split(".")[0] +
  15934. new Date().getTime() +
  15935. "." +
  15936. file.name.split(".")[file.name.split(".").length - 1],
  15937. ContentType: file.type,
  15938. Body: file,
  15939. "Access-Control-Allow-Credentials": "*",
  15940. ACL: "public-read",
  15941. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15942. var options = {
  15943. partSize: 2048 * 1024 * 1024,
  15944. queueSize: 2,
  15945. leavePartsOnError: true,
  15946. };
  15947. bucket
  15948. .upload(params, options)
  15949. .on("httpUploadProgress", function (evt) {
  15950. //这里可以写进度条
  15951. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15952. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15953. })
  15954. .send(function (err, data) {
  15955. _this.progress = 100;
  15956. setTimeout(() => {
  15957. _this.proVisible = false;
  15958. }, 1000);
  15959. if (err) {
  15960. var a = _this.$refs.upload1.uploadFiles;
  15961. a.splice(a.length - 1, a.length);
  15962. _this.$message.error("上传失败");
  15963. } else {
  15964. if (type == 2) {
  15965. _this.studyJuri[0].upVedio.push({
  15966. name: file.name,
  15967. url: data.Location,
  15968. uid: file.uid,
  15969. });
  15970. _this.imgChange(null, null, type);
  15971. } else if (type == 3) {
  15972. _this.studyJuri[0].upFile.push({
  15973. name: file.name,
  15974. url: data.Location,
  15975. uid: file.uid,
  15976. });
  15977. _this.imgChange(null, null, type);
  15978. }
  15979. console.log(data.Location);
  15980. }
  15981. });
  15982. }
  15983. },
  15984. allScrell() {
  15985. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15986. },
  15987. nextOrpreSteps(t) {
  15988. if (this.IsFollow && this.tType == 2) {
  15989. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15990. return;
  15991. }
  15992. var b = this.chapInfoList.length - 1;
  15993. if (t == 0) {
  15994. if (this.courseType == 0) {
  15995. if (this.taskCount == 0) {
  15996. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15997. if (this.IsLookOpen) {
  15998. if (
  15999. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16000. ) {
  16001. if (
  16002. this.courseDetail.userid != this.userid &&
  16003. (!this.courseDetail.course_teacher ||
  16004. (this.courseDetail.course_teacher &&
  16005. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16006. ) {
  16007. this.$message.error("任务未解锁");
  16008. } else {
  16009. this.$message.error("上一任务未解锁");
  16010. }
  16011. return;
  16012. }
  16013. }
  16014. this.navList[this.courseType].isOpen = false;
  16015. this.courseType = b;
  16016. this.taskCount =
  16017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16018. .length - 1;
  16019. this.navList[this.courseType].isOpen = true;
  16020. } else {
  16021. this.taskCount--;
  16022. }
  16023. } else {
  16024. if (this.taskCount == 0) {
  16025. this.navList[this.courseType].isOpen = false;
  16026. this.courseType--;
  16027. this.taskCount =
  16028. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16029. .length - 1;
  16030. this.navList[this.courseType].isOpen = true;
  16031. } else {
  16032. this.taskCount--;
  16033. }
  16034. }
  16035. } else {
  16036. if (this.courseType == b) {
  16037. if (
  16038. this.taskCount ==
  16039. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16040. 1
  16041. ) {
  16042. this.navList[this.courseType].isOpen = false;
  16043. this.courseType = 0;
  16044. this.taskCount = 0;
  16045. this.navList[this.courseType].isOpen = true;
  16046. } else {
  16047. var bbb = parseInt(this.taskCount) + 1;
  16048. if (
  16049. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16050. .isLook &&
  16051. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16052. (this.courseDetail.course_teacher &&
  16053. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16054. this.IsLookOpen
  16055. ) {
  16056. this.$message.error("任务未解锁");
  16057. return;
  16058. }
  16059. this.taskCount++;
  16060. if (this.IsLookOpen) {
  16061. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16062. this.taskCount
  16063. ].isLook = true;
  16064. this.addCourseState(3);
  16065. }
  16066. }
  16067. } else {
  16068. if (
  16069. this.taskCount ==
  16070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16071. 1
  16072. ) {
  16073. var bbb = parseInt(this.courseType) + 1;
  16074. if (
  16075. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16076. this.courseDetail.userid != this.userid &&
  16077. (!this.courseDetail.course_teacher ||
  16078. (this.courseDetail.course_teacher &&
  16079. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16080. this.IsLookOpen
  16081. ) {
  16082. this.$message.error("任务未解锁");
  16083. return;
  16084. }
  16085. this.navList[this.courseType].isOpen = false;
  16086. this.courseType++;
  16087. this.taskCount = 0;
  16088. this.navList[this.courseType].isOpen = true;
  16089. } else {
  16090. var bbb = parseInt(this.taskCount) + 1;
  16091. if (
  16092. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16093. .isLook &&
  16094. this.courseDetail.userid != this.userid &&
  16095. (!this.courseDetail.course_teacher ||
  16096. (this.courseDetail.course_teacher &&
  16097. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16098. this.IsLookOpen
  16099. ) {
  16100. this.$message.error("任务未解锁");
  16101. return;
  16102. }
  16103. this.taskCount++;
  16104. }
  16105. if (this.IsLookOpen) {
  16106. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16107. this.taskCount
  16108. ].isLook = true;
  16109. this.addCourseState(3);
  16110. }
  16111. }
  16112. // if (
  16113. // this.taskCount ==
  16114. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16115. // ) {
  16116. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16117. // } else {
  16118. // this.taskCount++;
  16119. // }
  16120. }
  16121. document.scrollingElement.scrollTop = 0;
  16122. this.showType = 7;
  16123. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16124. // if (this.vedio[this.taskCount].length > 0) {
  16125. // var a =
  16126. // document.getElementsByClassName("box_course")[this.taskCount]
  16127. // .offsetHeight;
  16128. // document.getElementsByClassName("vedioList")[
  16129. // this.taskCount
  16130. // ].style.height = a + "px";
  16131. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16132. // a - 40 + "px";
  16133. // }
  16134. this.isNoHomeWork = false;
  16135. (this.studyJuri = [
  16136. {
  16137. content: "",
  16138. cover: [],
  16139. upVedio: [],
  16140. upFile: [],
  16141. },
  16142. ]),
  16143. (this.radio = []);
  16144. this.isClickNav = "";
  16145. this.selectPz();
  16146. this.getHomeWork();
  16147. this.getCourseDetail(2);
  16148. this.$forceUpdate();
  16149. },
  16150. openTask(s, n, i,ctype) {
  16151. console.log(s, n, i,ctype)
  16152. if (this.IsFollow && this.tType == 2) {
  16153. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16154. return;
  16155. }
  16156. if (this.IsLookOpen) {
  16157. if (
  16158. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16159. this.courseDetail.userid != this.userid &&
  16160. (!this.courseDetail.course_teacher ||
  16161. (this.courseDetail.course_teacher &&
  16162. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16163. ) {
  16164. this.$message.error("任务未解锁");
  16165. return;
  16166. }
  16167. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16168. if (
  16169. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16170. .isLook
  16171. ) {
  16172. this.$message.error("上一任务未解锁");
  16173. return;
  16174. }
  16175. } else if (s > this.courseType) {
  16176. if (n > 0) {
  16177. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16178. this.$message.error("上一任务未解锁");
  16179. return;
  16180. }
  16181. } else {
  16182. if (
  16183. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16184. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16185. ].isLook
  16186. ) {
  16187. this.$message.error("上一任务未解锁");
  16188. return;
  16189. }
  16190. }
  16191. }
  16192. }
  16193. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16194. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16195. return;
  16196. }
  16197. let flag = this.courseType==s;
  16198. this.courseType = s;
  16199. this.navId = i;
  16200. this.taskCount = n;
  16201. if(flag){
  16202. this.insertMemorandum(`进入<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
  16203. }else{
  16204. this.insertMemorandum(`进入<span class="variable">阶段${this.courseType+1}${this.navList[this.courseType].dyName?':'+this.navList[this.courseType].dyName:''}</span>→<span class="variable">任务${this.taskCount+1}${this.navList[this.courseType].task[this.taskCount].taskName?':'+this.navList[this.courseType].task[this.taskCount].taskName:''}</span>`)
  16205. }
  16206. if(ctype == 2){
  16207. this.navList[s].task[n].isOpen = true
  16208. }else{
  16209. this.navList[this.courseType].task[this.taskCount].isOpen =
  16210. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16211. }
  16212. if (this.IsLookOpen) {
  16213. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16214. this.taskCount
  16215. ].isLook = true;
  16216. this.addCourseState(3);
  16217. }
  16218. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16219. this.isCloseList[ci].isClose = 0;
  16220. this.isCloseList[ci].isCloseBoolean = false;
  16221. this.$nextTick(()=>{
  16222. setTimeout(()=>{
  16223. setTimeout(()=>{
  16224. this.panToolHeight('tool-'+ci);
  16225. }, 0)
  16226. }, 0)
  16227. })
  16228. }
  16229. this.showType = 0;
  16230. this.isNoHomeWork = false;
  16231. (this.studyJuri = [
  16232. {
  16233. content: "",
  16234. cover: [],
  16235. upVedio: [],
  16236. upFile: [],
  16237. },
  16238. ]),
  16239. (this.radio = []);
  16240. document.scrollingElement.scrollTop = 0;
  16241. // setTimeout(() => {
  16242. // let a = document.getElementById(i);
  16243. // if (a.offsetTop - 110 == 0) {
  16244. // window.scrollTo(0, 0);
  16245. // } else {
  16246. // window.scrollTo(0, a.offsetTop);
  16247. // }
  16248. // }, 0);
  16249. for (var z = 0; z < this.navList.length; z++) {
  16250. for (var q = 0; q < this.navList[z].task.length; q++) {
  16251. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16252. this.navList[z].task[q].tool[w].isTool = false;
  16253. }
  16254. }
  16255. }
  16256. this.selectPz();
  16257. this.getHomeWork();
  16258. this.getCourseDetail(2);
  16259. },
  16260. get(i) {
  16261. if (this.IsFollow && this.tType == 2) {
  16262. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16263. return;
  16264. }
  16265. // for(var k=0;k<this.navList.length;k++){
  16266. // this.navList[k].isOpen = false;
  16267. // }
  16268. // this.navList[i].isOpen = true;
  16269. let a = this.navList[i].isOpen
  16270. this.navList[i].isOpen = !this.navList[i].isOpen;
  16271. this.$forceUpdate()
  16272. if (this.navList[i].isOpen) {
  16273. this.openTask(i, 0, (i + "-0"),2);
  16274. }
  16275. },
  16276. addQuestion() {
  16277. this.answerList.push({
  16278. answerTitle: this.answerQ,
  16279. answer: this.questionAnswer,
  16280. });
  16281. let params = [
  16282. {
  16283. uid: this.userid,
  16284. cid: this.id,
  16285. stage: this.courseType,
  16286. task: this.taskCount,
  16287. tool: this.toolindex,
  16288. content: JSON.stringify(this.answerList),
  16289. type: 3,
  16290. },
  16291. ];
  16292. this.ajax
  16293. .post(this.$store.state.api + "addCourseWorks", params)
  16294. .then((res) => {
  16295. this.$message({
  16296. message: "提交成功",
  16297. type: "success",
  16298. });
  16299. this.answerList = [];
  16300. this.answerDialogVisible = false;
  16301. this.selectStudent();
  16302. this.selectSWorks();
  16303. this.selectSLook();
  16304. })
  16305. .catch((err) => {
  16306. this.$message.error("提交失败");
  16307. console.error(err);
  16308. });
  16309. },
  16310. addQuestionTeacher() {
  16311. this.answerList.push({
  16312. answerTitle: this.answerQ,
  16313. answer: this.questionAnswer,
  16314. });
  16315. let params = [
  16316. {
  16317. uid: this.sStudent.userid,
  16318. cid: this.id,
  16319. stage: this.courseType,
  16320. task: this.taskCount,
  16321. tool: this.toolindex,
  16322. content: JSON.stringify(this.answerList),
  16323. type: 3,
  16324. ateacher: this.userid,
  16325. },
  16326. ];
  16327. this.ajax
  16328. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16329. .then((res) => {
  16330. this.$message({
  16331. message: "提交成功",
  16332. type: "success",
  16333. });
  16334. this.answerList = [];
  16335. this.questionAnswer = "";
  16336. this.answerDialogVisibleTeacher = false;
  16337. this.selectStudent();
  16338. this.selectSWorks();
  16339. this.selectSLook();
  16340. })
  16341. .catch((err) => {
  16342. this.$message.error("提交失败");
  16343. console.error(err);
  16344. });
  16345. },
  16346. refreshCourse() {
  16347. // window.location.reload();
  16348. this.navList = [];
  16349. this.getCourseDetail(1);
  16350. },
  16351. getCourseDetail(type, gindex) {
  16352. let loading;
  16353. if (type != 2) {
  16354. loading = this.$loading.service({
  16355. background: "rgba(255, 255, 255, 0.7)",
  16356. target: document.querySelector(".student_table"),
  16357. });
  16358. }
  16359. this.downLoading = false
  16360. // this.navList[0].isOpen = false;
  16361. // this.navList[this.courseType].isOpen = true;
  16362. // this.courseType = this.courseTypeLine;
  16363. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16364. let params = {
  16365. courseId: this.id,
  16366. };
  16367. this.ajax
  16368. .get(this.$store.state.api + "selectCourseDetail3", params)
  16369. .then((res) => {
  16370. if (type != 2) {
  16371. loading.close();
  16372. if (
  16373. this.courseType >
  16374. JSON.parse(res.data[0][0].chapters).length - 1
  16375. ) {
  16376. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16377. }
  16378. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16379. .chapterInfo[0].taskJson;
  16380. var b = [
  16381. "AVI",
  16382. "NAVI",
  16383. "MPEG",
  16384. "ASF",
  16385. "MOV",
  16386. "WMV",
  16387. "3GP",
  16388. "RM",
  16389. "RMVB",
  16390. "FLV",
  16391. "F4V",
  16392. "H.264",
  16393. "H.265",
  16394. "REAL VIDEO",
  16395. "MKV",
  16396. "WebM",
  16397. "HDDVD",
  16398. "MP4",
  16399. "MPG",
  16400. "M4V",
  16401. "MGV",
  16402. "OGV",
  16403. "QTM",
  16404. "STR",
  16405. "AMC",
  16406. "DVX",
  16407. "EVO",
  16408. "DAT",
  16409. "OGG",
  16410. "OGM",
  16411. "MP3",
  16412. ];
  16413. let _chapterData = [];
  16414. for (var i = 0; i < a.length; i++) {
  16415. var c = a[i].chapterData;
  16416. this.vedio[i] = [];
  16417. this.textList[i] = [];
  16418. this.lineList[i] = [];
  16419. this.chapToolList[i] = [];
  16420. this.file[i] = [];
  16421. this.fileC[i] = [];
  16422. _chapterData[i] = c.filter((el) => {
  16423. return el.type != 12;
  16424. });
  16425. this.fileC[i] = c.filter((el) => {
  16426. return el.type == 12;
  16427. });
  16428. // else if (c[j].type == 12) {
  16429. // this.fileC[i].push(c[j]);
  16430. // }
  16431. for (var j = 0; j < c.length; j++) {
  16432. if (c[j].type == 7) {
  16433. this.chapToolList[i].push(c[j]);
  16434. } else if (c[j].type == 8 || c[j].type == 14) {
  16435. this.lineList[i].push(c[j]);
  16436. } else if (c[j].type == 6) {
  16437. this.textList[i].push(c[j]);
  16438. } else {
  16439. if (
  16440. b.indexOf(
  16441. c[j].url
  16442. .split(".")
  16443. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16444. ) != -1
  16445. ) {
  16446. this.vedio[i].push(c[j]);
  16447. } else {
  16448. this.file[i].push(c[j]);
  16449. }
  16450. }
  16451. }
  16452. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16453. d.sources[0].src =
  16454. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16455. this.playerO[i] = d;
  16456. }
  16457. this.courseDetail = res.data[0][0];
  16458. this.tcid = this.arrayToArray(
  16459. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16460. this.tcid2 ? this.tcid2.split(",") : []
  16461. ).join(",");
  16462. this.evalua = res.data[0][0].evaId;
  16463. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16464. this.courseType
  16465. ];
  16466. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16467. if (this.tcid && res.data[1].length) {
  16468. let _inviteA = [];
  16469. for (var ik = 0; ik < res.data[1].length; ik++) {
  16470. _inviteA.push({
  16471. cid: res.data[1][ik].classid,
  16472. ic: res.data[1][ik].code,
  16473. });
  16474. }
  16475. for (var ik = 0; ik < _inviteA.length; ik++) {
  16476. if (
  16477. this.arrayToArray(
  16478. _inviteA[ik].cid.split(","),
  16479. this.tcid.split(",")
  16480. ).length
  16481. ) {
  16482. this.inviteCode = _inviteA[ik].ic;
  16483. break;
  16484. }
  16485. }
  16486. }
  16487. for (var l = 0; l < this.chapInfoList.length; l++) {
  16488. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16489. for (var m = 0; m < w.length; m++) {
  16490. w[m].id = l + "-" + m;
  16491. }
  16492. }
  16493. if (
  16494. _chapterData[this.taskCount].length &&
  16495. _chapterData[this.taskCount][0].type == 2
  16496. ) {
  16497. this.showType = 0;
  16498. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16499. } else {
  16500. if (_chapterData[this.taskCount].length > 0) {
  16501. let _url = _chapterData[this.taskCount][0].url;
  16502. if (
  16503. _chapterData[this.taskCount][0].type == 8 ||
  16504. _chapterData[this.taskCount][0].type == 14
  16505. ) {
  16506. this.showType = 2;
  16507. if (
  16508. _url.indexOf("https://") == -1 &&
  16509. _url.indexOf("http://") == -1
  16510. ) {
  16511. _url = "https://" + _url;
  16512. }
  16513. this.pptImgUrl1 = _url;
  16514. } else if (_chapterData[this.taskCount][0].type == 3) {
  16515. if (
  16516. _url
  16517. .split(".")
  16518. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16519. ) {
  16520. this.showType = 3;
  16521. this.pptImgUrl1 = _url;
  16522. } else if (
  16523. this.isAssetTypeAnImage(
  16524. _url
  16525. .split(".")
  16526. [_url.split(".").length - 1].toLocaleLowerCase()
  16527. )
  16528. ) {
  16529. this.showType = 4;
  16530. this.pptImgUrl1 = _url;
  16531. } else {
  16532. this.showType = 2;
  16533. this.pptImgUrl1 =
  16534. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16535. encodeURIComponent(_url);
  16536. }
  16537. } else if (_chapterData[this.taskCount][0].type == 13) {
  16538. this.showType = 4;
  16539. this.pptImgUrl1 = _url;
  16540. } else if (_chapterData[this.taskCount][0].type == 6) {
  16541. this.showType = 1;
  16542. this.text = this.textList[this.taskCount][0];
  16543. }
  16544. }
  16545. }
  16546. this.isClickNav = 0;
  16547. if (
  16548. !_chapterData[this.taskCount].length ||
  16549. _chapterData[this.taskCount][0].type == 12
  16550. ) {
  16551. this.isClickNav = "";
  16552. this.showType = "";
  16553. }
  16554. this.vChapterData = _chapterData;
  16555. } else {
  16556. this.showType = 0;
  16557. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16558. .chapterInfo[0].taskJson;
  16559. var b = [
  16560. "AVI",
  16561. "NAVI",
  16562. "MPEG",
  16563. "ASF",
  16564. "MOV",
  16565. "WMV",
  16566. "3GP",
  16567. "RM",
  16568. "RMVB",
  16569. "FLV",
  16570. "F4V",
  16571. "H.264",
  16572. "H.265",
  16573. "REAL VIDEO",
  16574. "MKV",
  16575. "WebM",
  16576. "HDDVD",
  16577. "MP4",
  16578. "MPG",
  16579. "M4V",
  16580. "MGV",
  16581. "OGV",
  16582. "QTM",
  16583. "STR",
  16584. "AMC",
  16585. "DVX",
  16586. "EVO",
  16587. "DAT",
  16588. "OGG",
  16589. "OGM",
  16590. "MP3",
  16591. ];
  16592. let _chapterData = [];
  16593. for (var i = 0; i < a.length; i++) {
  16594. var c = a[i].chapterData;
  16595. this.vedio[i] = [];
  16596. this.textList[i] = [];
  16597. this.lineList[i] = [];
  16598. this.chapToolList[i] = [];
  16599. this.file[i] = [];
  16600. this.fileC[i] = [];
  16601. _chapterData[i] = c.filter((el) => {
  16602. return el.type != 12;
  16603. });
  16604. this.fileC[i] = c.filter((el) => {
  16605. return el.type == 12;
  16606. });
  16607. for (var j = 0; j < c.length; j++) {
  16608. if (c[j].type == 7) {
  16609. this.chapToolList[i].push(c[j]);
  16610. } else if (c[j].type == 8 || c[j].type == 14) {
  16611. this.lineList[i].push(c[j]);
  16612. } else if (c[j].type == 6) {
  16613. this.textList[i].push(c[j]);
  16614. } else {
  16615. if (
  16616. b.indexOf(
  16617. c[j].url
  16618. .split(".")
  16619. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16620. ) != -1
  16621. ) {
  16622. this.vedio[i].push(c[j]);
  16623. } else {
  16624. this.file[i].push(c[j]);
  16625. }
  16626. }
  16627. }
  16628. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16629. d.sources[0].src =
  16630. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16631. this.playerO[i] = d;
  16632. }
  16633. if (
  16634. _chapterData[this.taskCount].length &&
  16635. _chapterData[this.taskCount][0].type == 2
  16636. ) {
  16637. this.showType = 0;
  16638. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16639. } else {
  16640. if (_chapterData[this.taskCount].length > 0) {
  16641. let _url = _chapterData[this.taskCount][0].url;
  16642. if (
  16643. _chapterData[this.taskCount][0].type == 8 ||
  16644. _chapterData[this.taskCount][0].type == 14
  16645. ) {
  16646. this.showType = 2;
  16647. if (
  16648. _url.indexOf("https://") == -1 &&
  16649. _url.indexOf("http://") == -1
  16650. ) {
  16651. _url = "https://" + _url;
  16652. }
  16653. this.pptImgUrl1 = _url;
  16654. } else if (_chapterData[this.taskCount][0].type == 3) {
  16655. if (
  16656. _url
  16657. .split(".")
  16658. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16659. ) {
  16660. this.showType = 3;
  16661. this.pptImgUrl1 = _url;
  16662. } else if (
  16663. this.isAssetTypeAnImage(
  16664. _url
  16665. .split(".")
  16666. [_url.split(".").length - 1].toLocaleLowerCase()
  16667. )
  16668. ) {
  16669. this.showType = 4;
  16670. this.pptImgUrl1 = _url;
  16671. } else {
  16672. this.showType = 2;
  16673. this.pptImgUrl1 =
  16674. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16675. encodeURIComponent(_url);
  16676. }
  16677. } else if (_chapterData[this.taskCount][0].type == 13) {
  16678. this.showType = 4;
  16679. this.pptImgUrl1 = _url;
  16680. } else if (_chapterData[this.taskCount][0].type == 6) {
  16681. this.showType = 1;
  16682. this.text = this.textList[this.taskCount][0];
  16683. }
  16684. }
  16685. }
  16686. this.isClickNav = 0;
  16687. if (
  16688. !_chapterData[this.taskCount].length ||
  16689. _chapterData[this.taskCount][0].type == 12
  16690. ) {
  16691. this.isClickNav = "";
  16692. this.showType = "";
  16693. }
  16694. this.vChapterData = _chapterData;
  16695. this.$forceUpdate();
  16696. }
  16697. // else {
  16698. // this.courseDetail = res.data[0][0];
  16699. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16700. // }
  16701. let _this = this;
  16702. if (_this.timer) {
  16703. clearInterval(_this.timer);
  16704. _this.timer = null;
  16705. }
  16706. if (_this.tcid) {
  16707. _this.getCourseGroup(gindex);
  16708. } else {
  16709. _this.selectSWorks(gindex);
  16710. }
  16711. _this.selectStudent();
  16712. _this.selectSLook();
  16713. _this.getPick();
  16714. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16715. _this.setCTask();
  16716. }
  16717. if (_this.dialogVisibleGroup) {
  16718. _this.groupJson =
  16719. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16720. _this.taskCount
  16721. ].toolChoose[_this.toolindex].groupJson;
  16722. }
  16723. _this.$nextTick(() => {
  16724. setTimeout(() => {
  16725. _this.checkEva();
  16726. }, 1000);
  16727. });
  16728. _this.timer = setInterval(function () {
  16729. // _this.getCourseDetail(2);
  16730. if (_this.tcid) {
  16731. _this.getCourseGroup(gindex);
  16732. } else {
  16733. _this.selectSWorks(gindex);
  16734. }
  16735. _this.selectStudent();
  16736. _this.selectSLook();
  16737. _this.getPick();
  16738. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16739. _this.setCTask();
  16740. }
  16741. if (_this.dialogVisibleGroup) {
  16742. _this.groupJson =
  16743. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16744. _this.taskCount
  16745. ].toolChoose[_this.toolindex].groupJson;
  16746. }
  16747. if (_this.tType == 4 || _this.ispzType == 4) {
  16748. _this.selectPz();
  16749. }
  16750. }, 5000);
  16751. _this.$nextTick(function () {
  16752. setTimeout(() => {
  16753. // var a =
  16754. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16755. // document.getElementsByClassName("vedioList")[0].style.height =
  16756. // a + "px";
  16757. // document.getElementsByClassName("navBox")[0].style.height =
  16758. // a - 40 + "px";
  16759. // if (_this.vedio[_this.taskCount].length > 0) {
  16760. // _this.vedioTime = [];
  16761. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16762. // _this.vedioTime[i] = document.getElementsByClassName(
  16763. // "vjs-duration-display"
  16764. // )[i].textContent;
  16765. // }
  16766. // }
  16767. }, 1000);
  16768. });
  16769. })
  16770. .catch((err) => {
  16771. loading.close();
  16772. console.error(err);
  16773. });
  16774. },
  16775. getCourseGroup(gindex) {
  16776. let params = {
  16777. cid: this.id,
  16778. classid: this.tcid ? this.tcid : "1",
  16779. };
  16780. this.ajax
  16781. .get(this.$store.state.api + "getCourseGroup", params)
  16782. .then((res) => {
  16783. if (res.data && res.data[0].length) {
  16784. if (!this.isGroup) {
  16785. let courseGroup = JSON.parse(res.data[0][0].group);
  16786. courseGroup.group = courseGroup.group.filter((el) => {
  16787. el.works = [];
  16788. return el;
  16789. });
  16790. if (courseGroup.isopen == 2) {
  16791. this.isGroup = false;
  16792. this.selectSWorks(gindex);
  16793. return;
  16794. }
  16795. this.courseGroup = courseGroup;
  16796. let groupPerson = res.data[1];
  16797. let group = JSON.parse(res.data[0][0].group).group;
  16798. let courseGroupStudent = {};
  16799. let courseGroupStudentUid = {};
  16800. for (var i = 0; i < group.length; i++) {
  16801. courseGroupStudent[group[i].id] = [];
  16802. courseGroupStudentUid[group[i].id] = [];
  16803. for (var j = 0; j < groupPerson.length; j++) {
  16804. if (groupPerson[j].groupCid == group[i].id) {
  16805. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16806. courseGroupStudentUid[group[i].id].push(
  16807. groupPerson[j].userid
  16808. );
  16809. }
  16810. }
  16811. }
  16812. this.courseGroupStudent = courseGroupStudent;
  16813. this.courseGroupStudentUid = courseGroupStudentUid;
  16814. }
  16815. if (this.courseGroup.isopen == 2) {
  16816. this.isGroup = false;
  16817. } else {
  16818. this.isGroup = true;
  16819. }
  16820. this.selectSWorks(gindex);
  16821. } else {
  16822. this.selectSWorks(gindex);
  16823. this.isGroup = false;
  16824. }
  16825. })
  16826. .catch((err) => {
  16827. // this.$message.error("网络不佳");
  16828. console.error(err);
  16829. });
  16830. },
  16831. setOperationTime() {
  16832. let _this = this;
  16833. if (_this.opertimer) {
  16834. clearInterval(_this.opertimer);
  16835. _this.opertimer = null;
  16836. }
  16837. _this.opertimer = setInterval(() => {
  16838. _this.setoTime("600");
  16839. }, 600000);
  16840. },
  16841. setoTime(time) {
  16842. let params = [
  16843. {
  16844. uid: this.userid,
  16845. cid: this.id,
  16846. type: "2",
  16847. time: time,
  16848. },
  16849. ];
  16850. this.ajax
  16851. .post(this.$store.state.api + "addOperationTimeT2", params)
  16852. .then((res) => {})
  16853. .catch((err) => {
  16854. console.error(err);
  16855. });
  16856. },
  16857. addPz(type, content) {
  16858. if (type == "1" && this.pzConText == "") {
  16859. this.$message.error("评论不能为空!");
  16860. return;
  16861. }
  16862. let params = [
  16863. {
  16864. cid: this.id,
  16865. uid: this.userid,
  16866. s: this.courseType,
  16867. t: this.taskCount,
  16868. c: type == "1" ? this.pzConText : content,
  16869. type: type,
  16870. },
  16871. ];
  16872. this.ajax
  16873. .post(this.$store.state.api + "addPz2", params)
  16874. .then((res) => {
  16875. this.$message({
  16876. message: "添加成功",
  16877. type: "success",
  16878. });
  16879. this.pzConText = "";
  16880. this.addPzDialog = false;
  16881. this.selectPz();
  16882. })
  16883. .catch((err) => {
  16884. this.$message.error("添加失败");
  16885. console.error(err);
  16886. });
  16887. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16888. },
  16889. setReplyIndex(id, i) {
  16890. this.replyIndex = i;
  16891. this.replyPid = id;
  16892. this.replyDialogVisible = true;
  16893. },
  16894. addHf() {
  16895. if (this.reply == "") {
  16896. this.$message.error("回复不能为空!");
  16897. return;
  16898. }
  16899. let params = [
  16900. {
  16901. cid: this.id,
  16902. uid: this.userid,
  16903. s: this.courseType,
  16904. t: this.taskCount,
  16905. type: "1",
  16906. ct: 2,
  16907. pid: this.replyPid,
  16908. c: this.reply,
  16909. },
  16910. ];
  16911. this.ajax
  16912. .post(this.$store.state.api + "addHf", params)
  16913. .then((res) => {
  16914. this.reply = "";
  16915. this.$message({
  16916. message: "回复成功",
  16917. type: "success",
  16918. });
  16919. this.replyDialogVisible = false;
  16920. this.selectPz();
  16921. })
  16922. .catch((err) => {
  16923. this.$message.error("回复失败");
  16924. console.error(err);
  16925. });
  16926. },
  16927. deletePz(id) {
  16928. this.$confirm("确定删除此评论吗?", "提示", {
  16929. confirmButtonText: "确定",
  16930. cancelButtonText: "取消",
  16931. type: "warning",
  16932. })
  16933. .then(() => {
  16934. let params = [
  16935. {
  16936. id: id,
  16937. },
  16938. ];
  16939. this.ajax
  16940. .post(this.$store.state.api + "deletePz", params)
  16941. .then((res) => {
  16942. this.$message({
  16943. message: "删除成功",
  16944. type: "success",
  16945. });
  16946. this.selectPz();
  16947. })
  16948. .catch((err) => {
  16949. this.$message.error("网络异常");
  16950. console.error(err);
  16951. });
  16952. })
  16953. .catch(() => {});
  16954. },
  16955. deleteReply(id) {
  16956. this.$confirm("确定删除此回复吗?", "提示", {
  16957. confirmButtonText: "确定",
  16958. cancelButtonText: "取消",
  16959. type: "warning",
  16960. })
  16961. .then(() => {
  16962. let params = [
  16963. {
  16964. id: id,
  16965. },
  16966. ];
  16967. this.ajax
  16968. .post(this.$store.state.api + "deleteReply", params)
  16969. .then((res) => {
  16970. this.$message({
  16971. message: "删除成功",
  16972. type: "success",
  16973. });
  16974. this.selectPz();
  16975. })
  16976. .catch((err) => {
  16977. this.$message.error("网络异常");
  16978. console.error(err);
  16979. });
  16980. })
  16981. .catch(() => {});
  16982. },
  16983. setPz() {
  16984. if (this.ispzType == 4) {
  16985. this.ispzType = 0;
  16986. this.pzDialog = false;
  16987. return;
  16988. }
  16989. this.ispzType = 4;
  16990. this.pzDialog = true;
  16991. this.selectPz();
  16992. },
  16993. selectPz() {
  16994. let params = {
  16995. cid: this.id,
  16996. s: this.courseType,
  16997. t: this.taskCount,
  16998. type: this.pzStype,
  16999. uid: this.userid,
  17000. };
  17001. this.ajax
  17002. .get(this.$store.state.api + "selectPzListType", params)
  17003. .then((res) => {
  17004. this.pzList = res.data[0];
  17005. var a = res.data[1];
  17006. for (var i = 0; i < a.length; i++) {
  17007. for (var j = 0; j < this.pzList.length; j++) {
  17008. if (!this.pzList[j].hfList) {
  17009. this.pzList[j].hfList = [];
  17010. }
  17011. if (a[i].pid == this.pzList[j].id) {
  17012. this.pzList[j].hfList.push(a[i]);
  17013. }
  17014. }
  17015. }
  17016. })
  17017. .catch((err) => {
  17018. console.error(err);
  17019. });
  17020. },
  17021. // selectHf() {
  17022. // let params = {
  17023. // cid: this.id,
  17024. // s: this.courseType,
  17025. // t: this.taskCount,
  17026. // };
  17027. // this.ajax
  17028. // .get(this.$store.state.api + "selectHfList", params)
  17029. // .then((res) => {
  17030. // var a = res.data[0];
  17031. // for (var i = 0; i < a.length; i++) {
  17032. // for (var j = 0; j < this.pzList.length; j++) {
  17033. // if (!this.pzList[i].hfList) {
  17034. // this.pzList[i].hfList = [];
  17035. // }
  17036. // if (a[i].pid == this.pzList[j].id) {
  17037. // this.pzList[i].hfList.push(a[i]);
  17038. // }
  17039. // }
  17040. // }
  17041. // })
  17042. // .catch((err) => {
  17043. // console.error(err);
  17044. // });
  17045. // },
  17046. updateSLook() {
  17047. let params = {
  17048. sopen: this.sIsOpen == false ? 1 : 2,
  17049. cid: this.id,
  17050. };
  17051. this.ajax
  17052. .get(this.$store.state.api + "updateCourseSLook", params)
  17053. .then((res) => {
  17054. if (this.sIsOpen == true) {
  17055. this.$message({
  17056. message: "权限设置成功",
  17057. type: "success",
  17058. });
  17059. } else {
  17060. this.$message({
  17061. message: "权限关闭成功",
  17062. type: "success",
  17063. });
  17064. }
  17065. })
  17066. .catch((err) => {
  17067. console.error(err);
  17068. });
  17069. },
  17070. updateFollow() {
  17071. let params = [
  17072. {
  17073. sopen: this.IsFollow == false ? 1 : 2,
  17074. cid: this.id,
  17075. },
  17076. ];
  17077. this.ajax
  17078. .post(this.$store.state.api + "updateCourseFollow", params)
  17079. .then((res) => {
  17080. if (this.IsFollow == true) {
  17081. this.$message({
  17082. message: "开启成功",
  17083. type: "success",
  17084. });
  17085. } else {
  17086. this.$message({
  17087. message: "关闭成功",
  17088. type: "success",
  17089. });
  17090. }
  17091. this.setCTask();
  17092. })
  17093. .catch((err) => {
  17094. console.error(err);
  17095. });
  17096. },
  17097. setCTask() {
  17098. let params = [
  17099. {
  17100. sopen: this.courseType + "-" + this.taskCount,
  17101. cid: this.id,
  17102. },
  17103. ];
  17104. this.ajax
  17105. .post(this.$store.state.api + "updateCourseFollowC", params)
  17106. .then((res) => {})
  17107. .catch((err) => {
  17108. console.error(err);
  17109. });
  17110. },
  17111. updateLookOpen() {
  17112. let params = [
  17113. {
  17114. sopen: this.IsLookOpen == false ? 1 : 2,
  17115. cid: this.id,
  17116. },
  17117. ];
  17118. this.ajax
  17119. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17120. .then((res) => {
  17121. if (this.IsLookOpen == true) {
  17122. // if (this.courseType != 0 && this.taskCount != 0) {
  17123. // this.openTask(0, 0, "0-0");
  17124. // }
  17125. this.$message({
  17126. message: "权限设置成功",
  17127. type: "success",
  17128. });
  17129. } else {
  17130. this.$message({
  17131. message: "权限关闭成功",
  17132. type: "success",
  17133. });
  17134. }
  17135. this.getCourseState(2);
  17136. })
  17137. .catch((err) => {
  17138. console.error(err);
  17139. });
  17140. },
  17141. selectSLook() {
  17142. let params = {
  17143. cid: this.id,
  17144. };
  17145. this.ajax
  17146. .get(this.$store.state.api + "selectCourseSLook", params)
  17147. .then((res) => {
  17148. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17149. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17150. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17151. if (!this.IsLookOpen) {
  17152. this.setNavList();
  17153. } else {
  17154. this.getCourseState(1);
  17155. }
  17156. if (this.IsFollow && this.tType == 2) {
  17157. this.setContent2(false);
  17158. let _followC = res.data[0][0].followC.split("-");
  17159. if (
  17160. this.courseType != _followC[0] ||
  17161. this.taskCount != _followC[1]
  17162. ) {
  17163. this.navList[this.courseType].isOpen = false;
  17164. this.courseType = _followC[0];
  17165. this.navList[this.courseType].isOpen = true;
  17166. this.taskCount = parseInt(_followC[1]);
  17167. this.navId = res.data[0][0].followC;
  17168. document.scrollingElement.scrollTop = 0;
  17169. this.getCourseDetail(2);
  17170. }
  17171. }
  17172. })
  17173. .catch((err) => {
  17174. console.error(err);
  17175. });
  17176. },
  17177. setNavList() {
  17178. if (this.navList.length == 0) {
  17179. this.navList = [];
  17180. var copyList = [];
  17181. for (var l = 0; l < this.chapInfoList.length; l++) {
  17182. var q = this.chapInfoList[l].dyName;
  17183. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17184. var e;
  17185. copyList.push({
  17186. dyName: q,
  17187. isOpen: l === 0 ? true : false,
  17188. task: [],
  17189. });
  17190. for (var r = 0; r < w.length; r++) {
  17191. e = w[r].task;
  17192. if (this.chapInfoList[l].easy == 1) {
  17193. copyList[l].task.push({
  17194. taskName: q,
  17195. id: l + "-" + r,
  17196. isLook: w[r].isLook,
  17197. isOpen: r === 0 ? true : false,
  17198. tool: [],
  17199. });
  17200. } else {
  17201. copyList[l].task.push({
  17202. taskName: e,
  17203. id: l + "-" + r,
  17204. isLook: w[r].isLook,
  17205. isOpen: r === 0 ? true : false,
  17206. tool: [],
  17207. });
  17208. }
  17209. var t = w[r].toolChoose;
  17210. for (var k = 0; k < t.length; k++) {
  17211. var tool = t[k].tool[0];
  17212. copyList[l].task[r].tool.push({
  17213. tool: tool,
  17214. isTool: false,
  17215. });
  17216. }
  17217. // this.navId = this.navId ? this.navId : l + "-" + r;
  17218. // this.navId = l + "-" + r;
  17219. }
  17220. }
  17221. this.navList = copyList;
  17222. this.navList[0].isOpen = false;
  17223. this.navList[this.courseType].isOpen = true;
  17224. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17225. } else {
  17226. this.setNavList2();
  17227. }
  17228. },
  17229. setNavList2() {
  17230. for (var l = 0; l < this.chapInfoList.length; l++) {
  17231. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17232. for (var r = 0; r < w.length; r++) {
  17233. this.navList[l].task[r].isLook = w[r].isLook;
  17234. }
  17235. }
  17236. if (
  17237. this.IsLookOpen &&
  17238. !this.navList[this.courseType].task[this.taskCount].isLook
  17239. ) {
  17240. this.openTask(0, 0, "0-0");
  17241. }
  17242. this.$forceUpdate();
  17243. },
  17244. getCourseState(type) {
  17245. let params = {
  17246. cid: this.id,
  17247. };
  17248. this.ajax
  17249. .get(this.$store.state.api + "getCourseState", params)
  17250. .then((res) => {
  17251. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17252. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17253. this.setNavList();
  17254. this.$forceUpdate();
  17255. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17256. this.addCourseState(2);
  17257. } else {
  17258. this.addCourseState(1);
  17259. }
  17260. })
  17261. .catch((err) => {
  17262. console.error(err);
  17263. });
  17264. },
  17265. addCourseState(type) {
  17266. let _state = this.chapInfoList;
  17267. // this.courseType this.taskCount
  17268. if (type == 1 || type == 2) {
  17269. for (var i = 0; i < _state.length; i++) {
  17270. let el = _state[i].chapterInfo[0].taskJson;
  17271. for (var j = 0; j < el.length; j++) {
  17272. // if (i == 0 && j == 0) {
  17273. // el[j].isLook = true;
  17274. // } else {
  17275. // el[j].isLook = false;
  17276. // }
  17277. if (
  17278. this.courseType > i ||
  17279. (this.courseType == i && this.taskCount + 1 > j)
  17280. ) {
  17281. el[j].isLook = true;
  17282. } else {
  17283. el[j].isLook = false;
  17284. }
  17285. }
  17286. }
  17287. }
  17288. let params = [
  17289. {
  17290. cid: this.id,
  17291. state: JSON.stringify(_state),
  17292. },
  17293. ];
  17294. this.ajax
  17295. .post(
  17296. this.$store.state.api +
  17297. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17298. params
  17299. )
  17300. .then((res) => {
  17301. if (this.IsLookOpen) {
  17302. this.setNavList();
  17303. }
  17304. if (type == 3 && type == 2) {
  17305. this.getCourseState(1);
  17306. }
  17307. })
  17308. .catch((err) => {
  17309. console.error(err);
  17310. });
  17311. },
  17312. getHomeWork() {
  17313. let params = {
  17314. cid: this.id,
  17315. stage: this.courseType,
  17316. task: this.taskCount,
  17317. uid: this.userid,
  17318. };
  17319. this.ajax
  17320. .get(this.$store.state.api + "selectWork", params)
  17321. .then((res) => {
  17322. if (res.data[0].length > 0) {
  17323. this.studyJuri = JSON.parse(res.data[0][0].content);
  17324. this.isNoHomeWork = true;
  17325. }
  17326. })
  17327. .catch((err) => {
  17328. console.error(err);
  17329. });
  17330. },
  17331. isAssetTypeAnImage(ext) {
  17332. return (
  17333. [
  17334. "png",
  17335. "jpg",
  17336. "jpeg",
  17337. "bmp",
  17338. "gif",
  17339. "webp",
  17340. "psd",
  17341. "svg",
  17342. "tiff",
  17343. ].indexOf(ext) !== -1
  17344. );
  17345. },
  17346. switchVideo(media) {
  17347. this.playerO = {};
  17348. this.playerOptions.poster = "";
  17349. this.playerOptions.sources[0].src = media;
  17350. this.playerO = this.playerOptions;
  17351. },
  17352. onPlayerPlay() {},
  17353. onPlayerTimeupdate(player) {
  17354. let gklog = player.cache_.currentTime; //当前播放的秒数
  17355. let a = player.cache_.duration; //视频的总时长
  17356. let gklog2 = parseInt(gklog);
  17357. // if(gklog2 == '3'){
  17358. // player.pause()
  17359. // setTimeout(()=>{
  17360. // player.currentTime(gklog2+1)
  17361. // player.play()
  17362. // },1000)
  17363. // }
  17364. console.log(" onPlayerTimeupdate!", gklog);
  17365. console.log(" onPlayerTimeupdate!", gklog2);
  17366. },
  17367. lookVedio(u, i) {
  17368. this.isClickNav = "";
  17369. // this.playerOptions.sources[0].src = u;
  17370. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17371. d.sources[0].src = u;
  17372. this.playerO[this.taskCount] = d;
  17373. this.showType = 0;
  17374. // this.isClickNav = "video" + i;
  17375. this.isClickNav = i;
  17376. this.$forceUpdate();
  17377. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17378. },
  17379. lookText(i, t) {
  17380. this.isClickNav = "";
  17381. // this.text = this.textList[i][t];
  17382. this.text = this.vChapterData[i][t];
  17383. // this.dialogVisible1 = true;
  17384. this.showType = 1;
  17385. // this.isClickNav = "text" + t;
  17386. this.isClickNav = t;
  17387. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17388. },
  17389. lookTools(i, t) {
  17390. this.chapTools = this.chapToolList[i][t];
  17391. this.dialogVisible2 = true;
  17392. },
  17393. async openFile(f) {
  17394. this.pptImgUrl = "";
  17395. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17396. if (
  17397. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17398. -1
  17399. ) {
  17400. let _uuurl = await this.checkLink(f);
  17401. this.pptImgUrl =
  17402. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17403. this.showPDF = false;
  17404. this.dialogVisible3 = true;
  17405. } else if (
  17406. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17407. ) {
  17408. this.pptImgUrl = f;
  17409. this.showPDF = true;
  17410. this.dialogVisible3 = true;
  17411. }
  17412. },
  17413. openTable(f) {
  17414. this.tableJson = JSON.parse(f.works);
  17415. this.dialogVisibleTable2 = true;
  17416. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17417. },
  17418. openWord(f) {
  17419. this.$message.info("预览作业")
  17420. console.log(f,7)
  17421. this.tableJson = JSON.parse(f.works);
  17422. this.dialogVisibleTable3 = true;
  17423. },
  17424. doUrl(url, i) {
  17425. this.isClickNav = "";
  17426. this.pptImgUrl1 = "";
  17427. this.showType = 2;
  17428. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17429. url = "https://" + url;
  17430. }
  17431. this.pptImgUrl1 = "";
  17432. setTimeout(() => {
  17433. this.pptImgUrl1 = url;
  17434. }, 500);
  17435. // this.isClickNav = "line" + i;
  17436. this.isClickNav = i;
  17437. this.$forceUpdate();
  17438. },
  17439. checkPhoto(f, i) {
  17440. this.showType = 4;
  17441. this.pptImgUrl1 = f.url;
  17442. this.isClickNav = i;
  17443. this.$forceUpdate();
  17444. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17445. },
  17446. async downFile(f, i) {
  17447. this.isClickNav = "";
  17448. this.pptImgUrl1 = "";
  17449. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17450. if (
  17451. a.indexOf(
  17452. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17453. ) != -1
  17454. ) {
  17455. let _uuurl = await this.checkLink(f.url);
  17456. this.pptImgUrl1 =
  17457. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17458. // this.dialogVisible3 = true;
  17459. this.showType = 2;
  17460. } else if (
  17461. this.isAssetTypeAnImage(
  17462. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17463. )
  17464. ) {
  17465. this.showType = 4;
  17466. this.pptImgUrl1 = f.url;
  17467. } else if (
  17468. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17469. "PDF"
  17470. ) {
  17471. this.pptImgUrl1 = f.url;
  17472. // this.dialogVisible3 = true;
  17473. this.showType = 3;
  17474. } else {
  17475. window.open(this.file[i].url);
  17476. }
  17477. // this.isClickNav = "word" + i;
  17478. this.isClickNav = i;
  17479. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17480. },
  17481. downFileList(i) {
  17482. window.open(this.noImgList[i].url);
  17483. },
  17484. openAddWork() {
  17485. this.dialogVisible = true;
  17486. },
  17487. addBzWorks() {
  17488. let params = [
  17489. {
  17490. uid: this.userid,
  17491. cid: this.id,
  17492. stage: this.courseType,
  17493. task: this.taskCount,
  17494. tool: this.toolindex,
  17495. content: JSON.stringify(this.eScore),
  17496. type: 6,
  17497. },
  17498. ];
  17499. this.ajax
  17500. .post(this.$store.state.api + "addCourseWorks", params)
  17501. .then((res) => {
  17502. this.$message({
  17503. message: "提交成功",
  17504. type: "success",
  17505. });
  17506. this.eScore = { eBzText: "", eStar: [] };
  17507. this.studentEvalDialogVisible = false;
  17508. this.selectSWorks();
  17509. })
  17510. .catch((err) => {
  17511. this.$message.error("提交失败");
  17512. console.error(err);
  17513. });
  17514. },
  17515. addBzWorksTeacher() {
  17516. let params = [
  17517. {
  17518. uid: this.sStudent.userid,
  17519. cid: this.id,
  17520. stage: this.courseType,
  17521. task: this.taskCount,
  17522. tool: this.toolindex,
  17523. content: JSON.stringify(this.eScore),
  17524. type: 6,
  17525. },
  17526. ];
  17527. this.ajax
  17528. .post(this.$store.state.api + "addCourseWorks", params)
  17529. .then((res) => {
  17530. this.$message({
  17531. message: "提交成功",
  17532. type: "success",
  17533. });
  17534. this.eScore = { eBzText: "", eStar: [] };
  17535. this.studentEvalDialogVisibleTeacher = false;
  17536. this.selectSWorks();
  17537. })
  17538. .catch((err) => {
  17539. this.$message.error("提交失败");
  17540. console.error(err);
  17541. });
  17542. },
  17543. addStudentAsk() {
  17544. if (!this.radio.length) {
  17545. this.$message.error("请选择选项");
  17546. return;
  17547. }
  17548. for (var i = 0; i < this.askJson.askCount; i++) {
  17549. if (
  17550. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17551. (this.radio[i] !== 0 && !this.radio[i])
  17552. ) {
  17553. this.$message.error("请选择选项");
  17554. return;
  17555. }
  17556. }
  17557. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17558. let params = [
  17559. {
  17560. uid: this.userid,
  17561. cid: this.id,
  17562. stage: this.courseType,
  17563. task: this.taskCount,
  17564. tool: this.toolindex,
  17565. content: JSON.stringify(this.askList),
  17566. type: 2,
  17567. },
  17568. ];
  17569. this.ajax
  17570. .post(this.$store.state.api + "addCourseWorks", params)
  17571. .then((res) => {
  17572. this.$message({
  17573. message: "提交成功",
  17574. type: "success",
  17575. });
  17576. this.askList = [];
  17577. this.dialogVisible5 = false;
  17578. this.selectStudent();
  17579. this.selectSWorks();
  17580. this.selectSLook();
  17581. })
  17582. .catch((err) => {
  17583. this.$message.error("提交失败");
  17584. console.error(err);
  17585. });
  17586. },
  17587. addStudentAskTeacher() {
  17588. if (!this.radio.length) {
  17589. this.$message.error("请选择选项");
  17590. return;
  17591. }
  17592. for (var i = 0; i < this.askJson.askCount; i++) {
  17593. if (
  17594. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17595. (this.radio[i] !== 0 && !this.radio[i])
  17596. ) {
  17597. this.$message.error("请选择选项");
  17598. return;
  17599. }
  17600. }
  17601. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17602. let params = [
  17603. {
  17604. uid: this.sStudent.userid,
  17605. cid: this.id,
  17606. stage: this.courseType,
  17607. task: this.taskCount,
  17608. tool: this.toolindex,
  17609. content: JSON.stringify(this.askList),
  17610. type: 2,
  17611. },
  17612. ];
  17613. this.ajax
  17614. .post(this.$store.state.api + "addCourseWorks", params)
  17615. .then((res) => {
  17616. this.$message({
  17617. message: "提交成功",
  17618. type: "success",
  17619. });
  17620. this.askList = [];
  17621. this.dialogVisible5Teacher = false;
  17622. this.selectStudent();
  17623. this.selectSWorks();
  17624. this.selectSLook();
  17625. })
  17626. .catch((err) => {
  17627. this.$message.error("提交失败");
  17628. console.error(err);
  17629. });
  17630. },
  17631. addStudentTest() {
  17632. if (!this.radio.length) {
  17633. this.$message.error("请选择选项");
  17634. return;
  17635. }
  17636. for (var i = 0; i < this.testJson.testCount; i++) {
  17637. if (
  17638. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17639. (this.radio[i] !== 0 && !this.radio[i])
  17640. ) {
  17641. this.$message.error("请选择选项");
  17642. return;
  17643. }
  17644. }
  17645. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17646. let params = [
  17647. {
  17648. uid: this.userid,
  17649. cid: this.id,
  17650. stage: this.courseType,
  17651. task: this.taskCount,
  17652. tool: this.toolindex,
  17653. content: JSON.stringify(this.askList),
  17654. type: 8,
  17655. },
  17656. ];
  17657. this.ajax
  17658. .post(this.$store.state.api + "addCourseWorks", params)
  17659. .then((res) => {
  17660. this.$message({
  17661. message: "提交成功",
  17662. type: "success",
  17663. });
  17664. this.askList = [];
  17665. this.dialogVisibleChoice = false;
  17666. this.selectStudent();
  17667. this.selectSWorks();
  17668. this.selectSLook();
  17669. })
  17670. .catch((err) => {
  17671. this.$message.error("提交失败");
  17672. console.error(err);
  17673. });
  17674. },
  17675. addStudentTestTeacher() {
  17676. if (!this.radio.length) {
  17677. this.$message.error("请选择选项");
  17678. return;
  17679. }
  17680. for (var i = 0; i < this.testJson.testCount; i++) {
  17681. if (
  17682. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17683. (this.radio[i] !== 0 && !this.radio[i])
  17684. ) {
  17685. this.$message.error("请选择选项");
  17686. return;
  17687. }
  17688. }
  17689. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17690. let params = [
  17691. {
  17692. uid: this.sStudent.userid,
  17693. cid: this.id,
  17694. stage: this.courseType,
  17695. task: this.taskCount,
  17696. tool: this.toolindex,
  17697. content: JSON.stringify(this.askList),
  17698. type: 8,
  17699. },
  17700. ];
  17701. this.ajax
  17702. .post(this.$store.state.api + "addCourseWorks", params)
  17703. .then((res) => {
  17704. this.$message({
  17705. message: "提交成功",
  17706. type: "success",
  17707. });
  17708. this.askList = [];
  17709. this.dialogVisibleChoiceTeacher = false;
  17710. this.selectStudent();
  17711. this.selectSWorks();
  17712. this.selectSLook();
  17713. })
  17714. .catch((err) => {
  17715. this.$message.error("提交失败");
  17716. console.error(err);
  17717. });
  17718. },
  17719. addWork() {
  17720. if (this.studyJuri[0].content == "") {
  17721. this.$message.error("请将信息填写完整");
  17722. return;
  17723. } else if (this.studyJuri[0].cover.length == 0) {
  17724. this.$message.error("请将信息填写完整");
  17725. return;
  17726. } else if (this.studyJuri[0].upVedio.length == 0) {
  17727. this.$message.error("请将信息填写完整");
  17728. return;
  17729. }
  17730. if (this.isNoHomeWork) {
  17731. this.$confirm(
  17732. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17733. "提示",
  17734. {
  17735. confirmButtonText: "确定",
  17736. cancelButtonText: "取消",
  17737. type: "warning",
  17738. }
  17739. )
  17740. .then(() => {
  17741. let params = [
  17742. {
  17743. uid: this.userid,
  17744. cid: this.id,
  17745. stage: this.courseType,
  17746. task: this.taskCount,
  17747. content: JSON.stringify(this.studyJuri),
  17748. },
  17749. ];
  17750. this.ajax
  17751. .post(this.$store.state.api + "addWorks", params)
  17752. .then((res) => {
  17753. this.$message({
  17754. message: "提交成功",
  17755. type: "success",
  17756. });
  17757. this.isNoHomeWork = true;
  17758. this.dialogVisible = false;
  17759. })
  17760. .catch((err) => {
  17761. this.$message.error("提交失败");
  17762. console.error(err);
  17763. });
  17764. })
  17765. .catch(() => {});
  17766. } else {
  17767. let params = [
  17768. {
  17769. uid: this.userid,
  17770. cid: this.id,
  17771. stage: this.courseType,
  17772. task: this.taskCount,
  17773. content: JSON.stringify(this.studyJuri),
  17774. },
  17775. ];
  17776. this.ajax
  17777. .post(this.$store.state.api + "addWorks", params)
  17778. .then((res) => {
  17779. this.$message({
  17780. message: "提交成功",
  17781. type: "success",
  17782. });
  17783. this.isNoHomeWork = true;
  17784. this.dialogVisible = false;
  17785. })
  17786. .catch((err) => {
  17787. this.$message.error("提交失败");
  17788. console.error(err);
  17789. });
  17790. }
  17791. },
  17792. selectCount() {
  17793. let params = {
  17794. cid: this.id,
  17795. chid: this.courseType,
  17796. uid: this.userid,
  17797. };
  17798. this.ajax
  17799. .get(this.$store.state.api + "selectToolsCount", params)
  17800. .then((res) => {
  17801. for (var i = 0; i < res.data[0].length; i++) {
  17802. if (res.data[0][i].tools == 1) {
  17803. this.wbCount = res.data[0][i].count;
  17804. } else if (res.data[0][i].tools == 2) {
  17805. this.wordCount = res.data[0][i].count;
  17806. } else if (res.data[0][i].tools == 3) {
  17807. this.mindCount = res.data[0][i].count;
  17808. } else if (res.data[0][i].tools == 4) {
  17809. this.askCount = res.data[0][i].count;
  17810. } else if (res.data[0][i].tools == 6) {
  17811. this.noteCount = res.data[0][i].count;
  17812. } else if (res.data[0][i].tools == 7) {
  17813. this.mindNetWorkCount = res.data[0][i].count;
  17814. } else if (res.data[0][i].tools == 8) {
  17815. this.libraryCount = res.data[0][i].count;
  17816. } else if (res.data[0][i].tools == 16) {
  17817. this.workCount = res.data[0][i].count;
  17818. } else if (res.data[0][i].tools == 10) {
  17819. this.timeCount = res.data[0][i].count;
  17820. } else if (res.data[0][i].tools == 15) {
  17821. this.answerCount = res.data[0][i].count;
  17822. } else if (res.data[0][i].tools == 18) {
  17823. this.trainCount = res.data[0][i].count;
  17824. }
  17825. }
  17826. })
  17827. .catch((err) => {
  17828. console.error(err);
  17829. });
  17830. },
  17831. openTools(t, i, index, c, sName,id) {
  17832. var z = JSON.parse(c);
  17833. this.noteName = sName;
  17834. if (t == 4) {
  17835. this.radio = [];
  17836. this.isAnswer = false;
  17837. let b = z[0].anwer;
  17838. this.radio = b;
  17839. this.askJson = z[0].askJson;
  17840. this.isAnswer = true;
  17841. this.dialogVisible5 = true;
  17842. } else if (t == 45) {
  17843. this.radio = [];
  17844. this.isAnswer = false;
  17845. let b = z[0].anwer;
  17846. this.radio = b;
  17847. this.testJson = z[0].testJson;
  17848. this.isAnswer = true;
  17849. this.dialogVisibleChoice = true;
  17850. }else if(t == 69){
  17851. this.oldEnglishJson1 = {}
  17852. this.oldEnglishJson = {}
  17853. this.englishList1 = {}
  17854. this.newEngIndex = -1;
  17855. this.isNoUserid = false;
  17856. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17857. .toolChoose[i].englishList;
  17858. this.oldEnglishJson = z;
  17859. this.engWid = id;
  17860. this.newEnglishList = { engTitle:"",engText:"" }
  17861. this.newEnglishList1 = []
  17862. this.selectEngC(id,z);
  17863. }else if(t == 62){
  17864. this.videoType = 1;
  17865. this.videoJson = {};
  17866. this.videoJson = JSON.parse(c);
  17867. // this.videoJson =
  17868. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17869. // index
  17870. // ].toolChoose[i].videoJson;
  17871. this.dialogVisibleVideo = true;
  17872. //this.dialog
  17873. }
  17874. // else if (t == 15) {
  17875. // this.answerQ = "";
  17876. // this.questionAnswer = "";
  17877. // this.answerQ = z[0].answerTitle;
  17878. // this.questionAnswer = z[0].answer;
  17879. // this.answerDialogVisible = true;
  17880. // }
  17881. },
  17882. fastText(p, t) {
  17883. if (t == 1) {
  17884. this.commentText += p;
  17885. } else {
  17886. this.eScore.eBzText += p;
  17887. }
  17888. },
  17889. addTools(t, i, index) {
  17890. var a = 0;
  17891. // this.taskCount = index;
  17892. this.toolindex = i;
  17893. if (t == 1) {
  17894. if (this.wbCount > 0) {
  17895. this.updateCount(this.wbCount, t);
  17896. } else {
  17897. this.wbCount++;
  17898. a = this.wbCount;
  17899. this.toolsCount(a, t);
  17900. }
  17901. window.parent.postMessage(
  17902. {
  17903. tools: "1",
  17904. cid: this.id,
  17905. stage: this.courseType,
  17906. task: this.taskCount,
  17907. tool: i,
  17908. },
  17909. "*"
  17910. );
  17911. } else if (t == 2) {
  17912. if (this.wordCount > 0) {
  17913. this.updateCount(this.wordCount, t);
  17914. } else {
  17915. this.wordCount++;
  17916. a = this.wordCount;
  17917. this.toolsCount(a, t);
  17918. }
  17919. window.parent.postMessage({ tools: "2" }, "*");
  17920. } else if (t == 3) {
  17921. if (this.mindCount > 0) {
  17922. this.updateCount(this.mindCount, t);
  17923. } else {
  17924. this.mindCount++;
  17925. a = this.mindCount;
  17926. this.toolsCount(a, t);
  17927. }
  17928. window.parent.postMessage(
  17929. {
  17930. tools: "3",
  17931. cid: this.id,
  17932. stage: this.courseType,
  17933. task: this.taskCount,
  17934. tool: i,
  17935. },
  17936. "*"
  17937. );
  17938. } else if (t == 4) {
  17939. this.radio = [];
  17940. this.noteName = "";
  17941. this.isAnswer = false;
  17942. if (this.askCount > 0) {
  17943. this.updateCount(this.askCount, t);
  17944. } else {
  17945. this.askCount++;
  17946. a = this.askCount;
  17947. this.toolsCount(a, t);
  17948. }
  17949. if (!this.dialogVisible2) {
  17950. this.askJson.askJson =
  17951. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17952. index
  17953. ].toolChoose[i].askJson;
  17954. this.askJson.askTitle =
  17955. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17956. index
  17957. ].toolChoose[i].askTitle;
  17958. this.askJson.askCount =
  17959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17960. index
  17961. ].toolChoose[i].askCount;
  17962. } else {
  17963. this.askJson.askJson = this.chapTools.askJson.askJson;
  17964. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17965. this.askJson.askCount = this.chapTools.askJson.askCount;
  17966. }
  17967. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17968. if (this.askJson.askJson[k].type == "2") {
  17969. this.radio.push([]);
  17970. } else {
  17971. this.radio.push("");
  17972. }
  17973. }
  17974. this.dialogVisible5 = true;
  17975. // window.parent.postMessage({ tools: "4" }, "*");
  17976. } else if (t == 45) {
  17977. this.noteName = "";
  17978. this.radio = [];
  17979. this.isAnswer = false;
  17980. if (this.askCount > 0) {
  17981. this.updateCount(this.askCount, t);
  17982. } else {
  17983. this.askCount++;
  17984. a = this.askCount;
  17985. this.toolsCount(a, t);
  17986. }
  17987. this.testJson =
  17988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17989. index
  17990. ].toolChoose[i].testJson;
  17991. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17992. if (this.testJson.testJson[k].type == "2") {
  17993. this.radio.push([]);
  17994. } else {
  17995. this.radio.push("");
  17996. }
  17997. }
  17998. this.dialogVisibleChoice = true;
  17999. // window.parent.postMessage({ tools: "4" }, "*");
  18000. } else if (t == 5) {
  18001. if (this.scoreCount > 0) {
  18002. this.updateCount(this.scoreCount, t);
  18003. } else {
  18004. this.scoreCount++;
  18005. a = this.scoreCount;
  18006. this.toolsCount(a, t);
  18007. }
  18008. this.dialogVisible4 = true;
  18009. // window.parent.postMessage({ tools: "5" }, "*");
  18010. } else if (t == 6) {
  18011. if (this.noteCount > 0) {
  18012. this.updateCount(this.noteCount, t);
  18013. } else {
  18014. this.noteCount++;
  18015. a = this.noteCount;
  18016. this.toolsCount(a, t);
  18017. }
  18018. window.parent.postMessage(
  18019. {
  18020. tools: "6",
  18021. cid: this.id,
  18022. stage: this.courseType,
  18023. task: this.taskCount,
  18024. tool: i,
  18025. },
  18026. "*"
  18027. );
  18028. } else if (t == 7) {
  18029. if (this.mindNetWorkCount > 0) {
  18030. this.updateCount(this.mindNetWorkCount, t);
  18031. } else {
  18032. this.mindNetWorkCount++;
  18033. a = this.mindNetWorkCount;
  18034. this.toolsCount(a, t);
  18035. }
  18036. window.parent.postMessage(
  18037. {
  18038. tools: "7",
  18039. cid: this.id,
  18040. stage: this.courseType,
  18041. task: this.taskCount,
  18042. tool: i,
  18043. },
  18044. "*"
  18045. );
  18046. } else if (t == 16) {
  18047. if (this.workCount > 0) {
  18048. this.updateCount(this.workCount, t);
  18049. } else {
  18050. this.workCount++;
  18051. a = this.workCount;
  18052. this.toolsCount(a, t);
  18053. }
  18054. this.dialogVisible = true;
  18055. } else if (t == 50) {
  18056. if (this.tType == 2) {
  18057. this.$message.error("不支持学生使用");
  18058. return;
  18059. }
  18060. this.plworkFile = [];
  18061. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18062. if (!this.uploadCid) {
  18063. this.$message.error(
  18064. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18065. );
  18066. return;
  18067. }
  18068. // this.uploadCid =
  18069. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18070. // index
  18071. // ].toolChoose[i].uploadJson[0];
  18072. this.selectUploadStudent(2);
  18073. } else if (t == 8) {
  18074. if (this.libraryCount > 0) {
  18075. this.updateCount(this.libraryCount, t);
  18076. } else {
  18077. this.libraryCount++;
  18078. a = this.libraryCount;
  18079. this.toolsCount(a, t);
  18080. }
  18081. window.parent.postMessage({ tools: "8" }, "*");
  18082. } else if (t == 17) {
  18083. if (this.libraryCount > 0) {
  18084. this.updateCount(this.libraryCount, t);
  18085. } else {
  18086. this.libraryCount++;
  18087. a = this.libraryCount;
  18088. this.toolsCount(a, t);
  18089. }
  18090. window.parent.postMessage({ tools: "17" }, "*");
  18091. } else if (t == 18) {
  18092. if (this.trainCount > 0) {
  18093. this.updateCount(this.trainCount, t);
  18094. } else {
  18095. this.trainCount++;
  18096. a = this.trainCount;
  18097. this.toolsCount(a, t);
  18098. }
  18099. window.parent.postMessage({ tools: "18" }, "*");
  18100. } else if (t == 10) {
  18101. if (this.timeCount > 0) {
  18102. this.updateCount(this.timeCount, t);
  18103. } else {
  18104. this.timeCount++;
  18105. a = this.timeCount;
  18106. this.toolsCount(a, t);
  18107. }
  18108. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18109. .taskJson[index].toolChoose[i].preTime
  18110. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18111. .toolChoose[i].preTime
  18112. : "";
  18113. this.timeDialogVisible = true;
  18114. } else if (t == 15) {
  18115. this.answerQ = "";
  18116. this.questionAnswer = "";
  18117. if (this.answerCount > 0) {
  18118. this.updateCount(this.answerCount, t);
  18119. } else {
  18120. this.answerCount++;
  18121. a = this.answerCount;
  18122. this.toolsCount(a, t);
  18123. }
  18124. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18125. .taskJson[index].toolChoose[i].answerQ
  18126. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18127. .toolChoose[i].answerQ
  18128. : "";
  18129. this.answerDialogVisible = true;
  18130. } else if (t == 21) {
  18131. window.parent.postMessage({ tools: "21" }, "*");
  18132. } else if (t == 22) {
  18133. window.parent.postMessage({ tools: "22" }, "*");
  18134. } else if (t == 23) {
  18135. window.parent.postMessage({ tools: "23" }, "*");
  18136. } else if (t == 24) {
  18137. window.parent.postMessage({ tools: "24" }, "*");
  18138. } else if (t == 25) {
  18139. window.parent.postMessage({ tools: "25" }, "*");
  18140. } else if (t == 31) {
  18141. window.parent.postMessage({ tools: "31" }, "*");
  18142. } else if (t == 28) {
  18143. window.parent.postMessage({ tools: "28" }, "*");
  18144. } else if (t == 37) {
  18145. window.parent.postMessage({ tools: "37" }, "*");
  18146. } else if (t == 38) {
  18147. window.parent.postMessage({ tools: "38" }, "*");
  18148. } else if (t == 39) {
  18149. window.parent.postMessage({ tools: "39" }, "*");
  18150. } else if (t == 32) {
  18151. window.parent.postMessage({ tools: "32" }, "*");
  18152. } else if (t == 66) {
  18153. window.parent.postMessage({ tools: "66" }, "*");
  18154. } else if (t == 67) {
  18155. window.parent.postMessage({ tools: "67" }, "*");
  18156. } else if (t == 68) {
  18157. window.parent.postMessage({ tools: "68" }, "*");
  18158. } else if (t == 57) {
  18159. // window.parent.postMessage({ tools: "57" }, "*");
  18160. window.parent.postMessage(
  18161. {
  18162. tools: "57u",
  18163. cid: this.id,
  18164. stage: this.courseType,
  18165. task: this.taskCount,
  18166. tool: i,
  18167. },
  18168. "*"
  18169. );
  18170. } else if (t == 58) {
  18171. window.parent.postMessage({ tools: "58" }, "*");
  18172. } else if (t == 59) {
  18173. window.parent.postMessage({ tools: "59" }, "*");
  18174. } else if (t == 60) {
  18175. window.parent.postMessage({ tools: "60" }, "*");
  18176. } else if (t == 61) {
  18177. window.parent.postMessage({ tools: "61" }, "*");
  18178. } else if (t == 63) {
  18179. window.parent.postMessage({ tools: "63" }, "*");
  18180. } else if (t == 71) {
  18181. window.parent.postMessage({ tools: "71" }, "*");
  18182. } else if (t == 69) {
  18183. if (this.worksStudent[i].length) {
  18184. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18185. if (this.userid == this.worksStudent[i][k].userid) {
  18186. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18187. break;
  18188. } else {
  18189. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18190. }
  18191. }
  18192. } else {
  18193. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18194. }
  18195. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18196. .taskJson[index].toolChoose[i].englishList
  18197. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18198. .toolChoose[i].englishList
  18199. : {};
  18200. this.englishToolIndex = i;
  18201. this.myAnList = this.myAnswerList1;
  18202. this.engDialogVisible = true;
  18203. } else if (t == 70) {
  18204. if (this.worksStudent[i].length) {
  18205. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18206. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18207. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18208. break;
  18209. } else {
  18210. this.englishVoiceJsonWork = [];
  18211. }
  18212. }
  18213. } else {
  18214. this.englishVoiceJsonWork = [];
  18215. }
  18216. let englishVoiceJson = {}
  18217. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18218. .taskJson[index].toolChoose[i].englishVoiceJson
  18219. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18220. .toolChoose[i].englishVoiceJson
  18221. : {};
  18222. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18223. this.EnglishVoiceDialog = true;
  18224. } else if (t == 65) {
  18225. if (this.tType == 2) {
  18226. this.$message.error("不支持学生使用");
  18227. return;
  18228. }
  18229. this.uploadCid = this.tcid;
  18230. if (!this.uploadCid) {
  18231. this.$message.error(
  18232. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18233. );
  18234. return;
  18235. }
  18236. this.selectPickStudent();
  18237. } else if (t == 26) {
  18238. window.parent.postMessage(
  18239. {
  18240. tools: "26",
  18241. cid: this.id,
  18242. stage: this.courseType,
  18243. task: this.taskCount,
  18244. tool: i,
  18245. },
  18246. "*"
  18247. );
  18248. } else if (t == 40) {
  18249. if (this.evalCount > 0) {
  18250. this.updateCount(this.evalCount, t);
  18251. } else {
  18252. this.evalCount++;
  18253. a = this.evalCount;
  18254. this.toolsCount(a, t);
  18255. }
  18256. this.eScore = { eBzText: "", eStar: [] };
  18257. if (this.worksStudent[i].length) {
  18258. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18259. if (this.userid == this.worksStudent[i][k].userid) {
  18260. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18261. this.rateJson =
  18262. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18263. index
  18264. ].toolChoose[i].rateJson;
  18265. break;
  18266. } else {
  18267. this.rateJson =
  18268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18269. index
  18270. ].toolChoose[i].rateJson;
  18271. }
  18272. }
  18273. } else {
  18274. this.rateJson =
  18275. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18276. index
  18277. ].toolChoose[i].rateJson;
  18278. }
  18279. this.isStar = false;
  18280. this.studentEvalDialogVisible = true;
  18281. } else if (t == 41) {
  18282. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18283. .taskJson[index].toolChoose[i].selectJson
  18284. ? JSON.parse(
  18285. JSON.stringify(
  18286. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18287. index
  18288. ].toolChoose[i].selectJson
  18289. )
  18290. )
  18291. : { url: "", select: [], answer: [] };
  18292. if (this.worksStudent[i].length) {
  18293. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18294. if (this.userid == this.worksStudent[i][k].userid) {
  18295. var a = this.worksStudent[i][k].works.split(",");
  18296. for (var ki = 0; ki < a.length; ki++) {
  18297. a[ki] = parseInt(a[ki]);
  18298. }
  18299. this.selectAnswer = {
  18300. answer: a,
  18301. stu: this.worksStudent[i][k].sName,
  18302. };
  18303. break;
  18304. } else {
  18305. this.selectAnswer = { answer: [], stu: "" };
  18306. }
  18307. }
  18308. } else {
  18309. this.selectAnswer = { answer: [], stu: "" };
  18310. }
  18311. this.isSelect = false;
  18312. this.dialogVisibleSelect = true;
  18313. } else if (t == 44) {
  18314. window.parent.postMessage({ tools: "44" }, "*");
  18315. } else if (t == 47) {
  18316. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18317. .taskJson[index].toolChoose[i].sentenceList
  18318. ? JSON.parse(
  18319. JSON.stringify(
  18320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18321. index
  18322. ].toolChoose[i].sentenceList
  18323. )
  18324. )
  18325. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18326. for (var q = 0; q < this.sentenceList.length; q++) {
  18327. this.sentenceList[q].chooseSenList = [];
  18328. this.sentenceList[q].addChangeSen = [];
  18329. this.sentenceList[q].addChangeSen = JSON.parse(
  18330. JSON.stringify(this.sentenceList[q].addSentence)
  18331. );
  18332. this.sentenceList[q].chooseSenList.length =
  18333. this.sentenceList[q].rightAnswer.length;
  18334. }
  18335. this.dialogVisibleSentence = true;
  18336. } else if (t == 48) {
  18337. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18338. .taskJson[index].toolChoose[i].tableJson
  18339. ? JSON.parse(
  18340. JSON.stringify(
  18341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18342. index
  18343. ].toolChoose[i].tableJson
  18344. )
  18345. )
  18346. : { text: "" };
  18347. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18348. if (this.worksStudent[i].length) {
  18349. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18350. if (this.userid == this.worksStudent[i][k].userid) {
  18351. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18352. break;
  18353. }
  18354. }
  18355. }
  18356. this.dialogVisibleTable = true;
  18357. } else if (t == 52) {
  18358. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18359. .taskJson[index].toolChoose[i].wordJson
  18360. ? JSON.parse(
  18361. JSON.stringify(
  18362. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18363. index
  18364. ].toolChoose[i].wordJson
  18365. )
  18366. )
  18367. : { text: "" };
  18368. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18369. if (this.worksStudent[i].length) {
  18370. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18371. if (this.userid == this.worksStudent[i][k].userid) {
  18372. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18373. break;
  18374. }
  18375. }
  18376. }
  18377. this.dialogVisibleWord = true;
  18378. } else if (t == 49) {
  18379. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18380. return
  18381. }
  18382. this.groupJson =
  18383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18384. index
  18385. ].toolChoose[i].groupJson;
  18386. this.islock = this.groupJson.islock == 1 ? true : false;
  18387. this.dialogVisibleGroup = true;
  18388. } else if (t == 62) {
  18389. this.videoType = 0;
  18390. this.videoJson = {};
  18391. this.videoJson =
  18392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18393. index
  18394. ].toolChoose[i].videoJson;
  18395. this.dialogVisibleVideo = true;
  18396. }
  18397. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18398. },
  18399. teacherWorkSubmit(t, i, index, s) {
  18400. this.sStudent = s;
  18401. this.toolindex = i;
  18402. this.sTool = t;
  18403. if (this.tType !== "1" && this.tType !== "4") {
  18404. return;
  18405. }
  18406. if (t == 16 || t == 32 || t == 50) {
  18407. this.dialogVisibleWorks = true;
  18408. } else if (t == 15) {
  18409. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18410. .taskJson[index].toolChoose[i].answerQ
  18411. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18412. .toolChoose[i].answerQ
  18413. : "";
  18414. this.questionAnswer = "";
  18415. this.answerDialogVisibleTeacher = true; //问答
  18416. } else if (t == 52) {
  18417. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18418. .taskJson[index].toolChoose[i].wordJson
  18419. ? JSON.parse(
  18420. JSON.stringify(
  18421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18422. index
  18423. ].toolChoose[i].wordJson
  18424. )
  18425. )
  18426. : { text: "" };
  18427. if (this.worksStudent[i].length) {
  18428. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18429. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18430. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18431. break;
  18432. }
  18433. }
  18434. }
  18435. this.dialogVisibleWordTeacher = true; //文档
  18436. } else if (t == 4) {
  18437. this.radio = [];
  18438. this.noteName = "";
  18439. this.isAnswer = false;
  18440. if (this.askCount > 0) {
  18441. this.updateCount(this.askCount, t);
  18442. } else {
  18443. this.askCount++;
  18444. a = this.askCount;
  18445. this.toolsCount(a, t);
  18446. }
  18447. if (!this.dialogVisible2) {
  18448. this.askJson.askJson =
  18449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18450. index
  18451. ].toolChoose[i].askJson;
  18452. this.askJson.askTitle =
  18453. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18454. index
  18455. ].toolChoose[i].askTitle;
  18456. this.askJson.askCount =
  18457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18458. index
  18459. ].toolChoose[i].askCount;
  18460. } else {
  18461. this.askJson.askJson = this.chapTools.askJson.askJson;
  18462. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18463. this.askJson.askCount = this.chapTools.askJson.askCount;
  18464. }
  18465. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18466. if (this.askJson.askJson[k].type == "2") {
  18467. this.radio.push([]);
  18468. } else {
  18469. this.radio.push("");
  18470. }
  18471. }
  18472. this.dialogVisible5Teacher = true;
  18473. } else if (t == 45) {
  18474. this.noteName = "";
  18475. this.radio = [];
  18476. this.isAnswer = false;
  18477. if (this.askCount > 0) {
  18478. this.updateCount(this.askCount, t);
  18479. } else {
  18480. this.askCount++;
  18481. a = this.askCount;
  18482. this.toolsCount(a, t);
  18483. }
  18484. this.testJson =
  18485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18486. index
  18487. ].toolChoose[i].testJson;
  18488. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18489. if (this.testJson.testJson[k].type == "2") {
  18490. this.radio.push([]);
  18491. } else {
  18492. this.radio.push("");
  18493. }
  18494. }
  18495. this.dialogVisibleChoiceTeacher = true;
  18496. } else if (t == 41) {
  18497. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18498. .taskJson[index].toolChoose[i].selectJson
  18499. ? JSON.parse(
  18500. JSON.stringify(
  18501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18502. index
  18503. ].toolChoose[i].selectJson
  18504. )
  18505. )
  18506. : { url: "", select: [], answer: [] };
  18507. if (this.worksStudent[i].length) {
  18508. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18509. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18510. var a = this.worksStudent[i][k].works.split(",");
  18511. for (var ki = 0; ki < a.length; ki++) {
  18512. a[ki] = parseInt(a[ki]);
  18513. }
  18514. this.selectAnswer = {
  18515. answer: a,
  18516. stu: this.worksStudent[i][k].sName,
  18517. };
  18518. break;
  18519. } else {
  18520. this.selectAnswer = { answer: [], stu: "" };
  18521. }
  18522. }
  18523. } else {
  18524. this.selectAnswer = { answer: [], stu: "" };
  18525. }
  18526. this.isSelect = false;
  18527. this.dialogVisibleSelectTeacher = true;
  18528. } else if (t == 47) {
  18529. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18530. .taskJson[index].toolChoose[i].sentenceList
  18531. ? JSON.parse(
  18532. JSON.stringify(
  18533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18534. index
  18535. ].toolChoose[i].sentenceList
  18536. )
  18537. )
  18538. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18539. for (var q = 0; q < this.sentenceList.length; q++) {
  18540. this.sentenceList[q].chooseSenList = [];
  18541. this.sentenceList[q].addChangeSen = [];
  18542. this.sentenceList[q].addChangeSen = JSON.parse(
  18543. JSON.stringify(this.sentenceList[q].addSentence)
  18544. );
  18545. this.sentenceList[q].chooseSenList.length =
  18546. this.sentenceList[q].rightAnswer.length;
  18547. }
  18548. this.dialogVisibleSentenceTeacher = true;
  18549. } else if (t == 48) {
  18550. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18551. .taskJson[index].toolChoose[i].tableJson
  18552. ? JSON.parse(
  18553. JSON.stringify(
  18554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18555. index
  18556. ].toolChoose[i].tableJson
  18557. )
  18558. )
  18559. : { text: "" };
  18560. if (this.worksStudent[i].length) {
  18561. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18562. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18563. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18564. break;
  18565. }
  18566. }
  18567. }
  18568. this.dialogVisibleTableTeacher = true;
  18569. } else if (t == 40) {
  18570. if (this.evalCount > 0) {
  18571. this.updateCount(this.evalCount, t);
  18572. } else {
  18573. this.evalCount++;
  18574. a = this.evalCount;
  18575. this.toolsCount(a, t);
  18576. }
  18577. this.eScore = { eBzText: "", eStar: [] };
  18578. if (this.worksStudent[i].length) {
  18579. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18580. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18581. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18582. this.rateJson =
  18583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18584. index
  18585. ].toolChoose[i].rateJson;
  18586. break;
  18587. } else {
  18588. this.rateJson =
  18589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18590. index
  18591. ].toolChoose[i].rateJson;
  18592. }
  18593. }
  18594. } else {
  18595. this.rateJson =
  18596. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18597. index
  18598. ].toolChoose[i].rateJson;
  18599. }
  18600. this.isStar = false;
  18601. this.studentEvalDialogVisibleTeacher = true;
  18602. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18603. window.parent.postMessage(
  18604. {
  18605. tools: t + "teacher",
  18606. cid: this.id,
  18607. stage: this.courseType,
  18608. task: this.taskCount,
  18609. tool: i,
  18610. student: this.sStudent,
  18611. },
  18612. "*"
  18613. );
  18614. }
  18615. },
  18616. openCocoPi(tool, i, uid, uname) {
  18617. let student = {
  18618. userid: uid,
  18619. student: uname,
  18620. };
  18621. if (tool == 57) {
  18622. window.parent.postMessage(
  18623. {
  18624. tools: tool + "teacher",
  18625. cid: this.id,
  18626. stage: this.courseType,
  18627. task: this.taskCount,
  18628. tool: i,
  18629. student: student,
  18630. },
  18631. "*"
  18632. );
  18633. }
  18634. },
  18635. setRightAnswer(s, i, j) {
  18636. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18637. if (
  18638. this.sentenceList[i].chooseSenList[q] == undefined ||
  18639. this.sentenceList[i].chooseSenList[q] == ""
  18640. ) {
  18641. this.sentenceList[i].chooseSenList[q] = s;
  18642. this.sentenceList[i].addChangeSen[j] = "";
  18643. break;
  18644. }
  18645. }
  18646. this.$forceUpdate();
  18647. },
  18648. returnCard(r, i, j) {
  18649. var a = this.sentenceList[i].addSentence.indexOf(r);
  18650. this.sentenceList[i].chooseSenList[j] = "";
  18651. this.sentenceList[i].addChangeSen[a] = r;
  18652. this.$forceUpdate();
  18653. },
  18654. // addSentenceTool() {
  18655. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18656. // this.taskCount
  18657. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18658. // this.sentenceList = [
  18659. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18660. // ];
  18661. // this.dialogVisibleSentence = false;
  18662. // },
  18663. toolsCount(a, t) {
  18664. let params = {
  18665. cid: this.id,
  18666. chid: this.courseType,
  18667. uid: this.userid,
  18668. tid: t,
  18669. count: a,
  18670. };
  18671. this.ajax
  18672. .get(this.$store.state.api + "insertToolsCount", params)
  18673. .then((res) => {
  18674. this.selectCount();
  18675. })
  18676. .catch((err) => {
  18677. console.error(err);
  18678. });
  18679. },
  18680. updateCount(c, t) {
  18681. c++;
  18682. let params = {
  18683. cid: this.id,
  18684. chid: this.courseType,
  18685. uid: this.userid,
  18686. tid: t,
  18687. count: c,
  18688. };
  18689. this.ajax
  18690. .get(this.$store.state.api + "updateToolsCount", params)
  18691. .then((res) => {
  18692. this.selectCount();
  18693. })
  18694. .catch((err) => {
  18695. console.error(err);
  18696. });
  18697. },
  18698. checkEva() {
  18699. if (this.evalua != "") {
  18700. for (var i = 0; i < this.evaJuri.length; i++) {
  18701. if (this.evalua == this.evaJuri[i].id) {
  18702. this.eTitle = this.evaJuri[i].title;
  18703. this.eJson = JSON.parse(this.evaJuri[i].content);
  18704. }
  18705. }
  18706. this.$forceUpdate();
  18707. setTimeout(() => {
  18708. this.setMindData();
  18709. }, 0);
  18710. }
  18711. },
  18712. selectEva() {
  18713. let params = {
  18714. oid: this.oid,
  18715. };
  18716. this.ajax
  18717. .get(this.$store.state.api + "selectAllEvaluation", params)
  18718. .then((res) => {
  18719. this.evaJuri = res.data[0];
  18720. })
  18721. .catch((err) => {
  18722. console.error(err);
  18723. });
  18724. },
  18725. setMindData() {
  18726. this.data.data = [];
  18727. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18728. let _eJson = Object.keys(this.eJson);
  18729. let _e = this.eJson;
  18730. for (let i = 0; i < _eJson.length; i++) {
  18731. let element = _e[_eJson[i]];
  18732. this.data.data.push({
  18733. id: element.id,
  18734. parentid: "root",
  18735. topic: element.name,
  18736. });
  18737. let _eJsonc = Object.keys(element.child);
  18738. let _e2 = element.child;
  18739. for (let j = 0; j < _eJsonc.length; j++) {
  18740. let _ec = _e2[_eJsonc[j]];
  18741. this.data.data.push({
  18742. id: _ec.id,
  18743. parentid: element.id,
  18744. topic: _ec.name,
  18745. });
  18746. let _eJsonz = Object.keys(_ec.child);
  18747. let _e3 = _ec.child;
  18748. for (let z = 0; z < _eJsonz.length; z++) {
  18749. let _ez = _e3[_eJsonz[z]];
  18750. this.data.data.push({
  18751. id: _ez.id,
  18752. parentid: _ec.id,
  18753. topic: _ez.name,
  18754. });
  18755. }
  18756. }
  18757. }
  18758. this.$forceUpdate();
  18759. },
  18760. checkFileFull(type, url) {
  18761. this.fullDialogVisible = true;
  18762. this.fulltype = type;
  18763. this.fullUrl = url;
  18764. },
  18765. async checkFileFull1(t, f) {
  18766. this.fullDialogVisible = true;
  18767. if (t == 6) {
  18768. this.fulltype = 1;
  18769. this.fullUrl = JSON.parse(JSON.stringify(f));
  18770. } else if (t == 8) {
  18771. this.fulltype = 2;
  18772. this.fullUrl = f.url;
  18773. } else if (
  18774. t == 3 &&
  18775. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18776. "PDF"
  18777. ) {
  18778. this.fulltype = 3;
  18779. this.fullUrl = f.url;
  18780. } else if (t == 3) {
  18781. this.fulltype = 2;
  18782. let _uuurl = await this.checkLink(f.url);
  18783. this.fullUrl =
  18784. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18785. }
  18786. },
  18787. openSname(n, id, i, uid) {
  18788. this.snameWid = id;
  18789. this.worksSName = n;
  18790. this.worksSid = uid == n ? "" : uid;
  18791. this.toolindex = i;
  18792. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18793. if (!this.uploadCid) {
  18794. this.$message.error(
  18795. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18796. );
  18797. return;
  18798. }
  18799. this.selectUploadStudent(1);
  18800. },
  18801. updateName() {
  18802. let params = {
  18803. n: this.worksSName,
  18804. cid: this.snameWid,
  18805. };
  18806. this.ajax
  18807. .get(this.$store.state.api + "updateCourseWorksName", params)
  18808. .then((res) => {
  18809. this.$message({
  18810. message: "修改成功",
  18811. type: "success",
  18812. });
  18813. this.dialogVisibleSname = false;
  18814. this.getCourseDetail(2);
  18815. this.snameWid = "";
  18816. this.worksSName = "";
  18817. })
  18818. .catch((err) => {
  18819. console.error(err);
  18820. });
  18821. },
  18822. downloadFile2(f) {
  18823. // const loading = this.$loading.service({
  18824. // background: "rgba(255, 255, 255, 0.7)",
  18825. // target: document.body,
  18826. // text: "文件加载中...",
  18827. // });
  18828. // let url2 = f.url;
  18829. // let _url2 = "";
  18830. // if (
  18831. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18832. // ) {
  18833. // _url2 = url2.split(
  18834. // "https://view.officeapps.live.com/op/view.aspx?src="
  18835. // )[1];
  18836. // } else {
  18837. // _url2 = url2;
  18838. // }
  18839. // let params = {
  18840. // url: _url2,
  18841. // name: f.name,
  18842. // };
  18843. // this.ajax
  18844. // .get(this.$store.state.api + "download", params)
  18845. // .then((res) => {
  18846. // loading.close();
  18847. // let content = res.data.data.data;
  18848. // let ab = new ArrayBuffer(content.length);
  18849. // let view = new Uint8Array(ab);
  18850. // for (var i = 0; i < content.length; ++i) {
  18851. // view[i] = content[i];
  18852. // }
  18853. // let elink = document.createElement("a");
  18854. // elink.download = f.name;
  18855. // elink.style.display = "none";
  18856. // let blob = new Blob([ab], {
  18857. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18858. // });
  18859. // elink.href = URL.createObjectURL(blob);
  18860. // document.body.appendChild(elink);
  18861. // elink.click();
  18862. // document.body.removeChild(elink);
  18863. // })
  18864. // .catch((err) => {
  18865. // loading.close();
  18866. // console.error(err);
  18867. // });
  18868. var credentials = {
  18869. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18870. secretAccessKey: "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",
  18871. }; //秘钥形式的登录上传
  18872. window.AWS.config.update(credentials);
  18873. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18874. let url2 = f.url;
  18875. let _url2 = "";
  18876. if (
  18877. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18878. ) {
  18879. _url2 = url2.split(
  18880. "https://view.officeapps.live.com/op/view.aspx?src="
  18881. )[1];
  18882. } else {
  18883. _url2 = url2;
  18884. }
  18885. let _this = this;
  18886. _this.downLoading = true
  18887. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18888. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18889. var params = {
  18890. Bucket: "ccrb",
  18891. Key: name
  18892. };
  18893. s3.getObject(params, function (err, data) {
  18894. _this.downLoading = false
  18895. if (err) console.log(err, err.stack); // an error occurred
  18896. else {
  18897. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18898. let a = document.createElement("a");
  18899. a.name = f.name;
  18900. a.href = url;
  18901. a.download = f.name;
  18902. a.click();
  18903. console.log(data);
  18904. } // sxuccessful response
  18905. });
  18906. return;
  18907. let url = f.url;
  18908. let _url = "";
  18909. if (
  18910. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18911. ) {
  18912. _url = url.split(
  18913. "https://view.officeapps.live.com/op/view.aspx?src="
  18914. )[1];
  18915. } else {
  18916. _url = url;
  18917. }
  18918. _this.downLoading = true
  18919. let x = new XMLHttpRequest();
  18920. x.open("GET", _url, true);
  18921. x.responseType = "blob";
  18922. x.onload = function () {
  18923. _this.downLoading = false
  18924. let url = window.URL.createObjectURL(new Blob([x.response]));
  18925. let a = document.createElement("a");
  18926. a.name = f.name;
  18927. a.href = url;
  18928. a.download = f.name;
  18929. a.click();
  18930. };
  18931. x.send();
  18932. },
  18933. downloadFile(url) {
  18934. this.$message.info("查看作业-下载文件")
  18935. var credentials = {
  18936. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18937. secretAccessKey: "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",
  18938. }; //秘钥形式的登录上传
  18939. window.AWS.config.update(credentials);
  18940. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18941. let url2 = url;
  18942. let _url2 = "";
  18943. if (
  18944. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18945. ) {
  18946. _url2 = url2.split(
  18947. "https://view.officeapps.live.com/op/view.aspx?src="
  18948. )[1];
  18949. } else {
  18950. _url2 = url2;
  18951. }
  18952. const loading2 = this.$loading.service({
  18953. background: "rgba(255, 255, 255, 0.7)",
  18954. target: document.body,
  18955. text: "文件加载中...",
  18956. });
  18957. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18958. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18959. var params = {
  18960. Bucket: "ccrb",
  18961. Key: name
  18962. };
  18963. s3.getObject(params, function (err, data) {
  18964. loading2.close();
  18965. if (err) console.log(err, err.stack); // an error occurred
  18966. else {
  18967. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18968. let a = document.createElement("a");
  18969. a.name = name;
  18970. a.href = url;
  18971. a.download = name;
  18972. a.click();
  18973. console.log(data);
  18974. } // sxuccessful response
  18975. });
  18976. return;
  18977. let _this = this;
  18978. let _url = "";
  18979. if (
  18980. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18981. ) {
  18982. _url = url.split(
  18983. "https://view.officeapps.live.com/op/view.aspx?src="
  18984. )[1];
  18985. } else {
  18986. _url = url;
  18987. }
  18988. const x = new XMLHttpRequest();
  18989. x.open("GET", _url, true);
  18990. x.responseType = "blob";
  18991. // this.downLoading = true
  18992. const loading = _this.$loading.service({
  18993. background: "rgba(255, 255, 255, 0.7)",
  18994. target: document.body,
  18995. text: "文件加载中...",
  18996. });
  18997. // _this.$message.success("文件下载中...");
  18998. x.onload = function (e) {
  18999. loading.close();
  19000. let content = x.response;
  19001. let elink = document.createElement("a");
  19002. elink.download = decodeURI(
  19003. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19004. );
  19005. elink.style.display = "none";
  19006. let blob = new Blob([content]);
  19007. elink.href = URL.createObjectURL(blob);
  19008. document.body.appendChild(elink);
  19009. elink.click();
  19010. document.body.removeChild(elink);
  19011. };
  19012. x.send();
  19013. },
  19014. openLine(url) {
  19015. window.open(url);
  19016. },
  19017. resize() {
  19018. if (document.getElementsByClassName("box_course").length) {
  19019. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19020. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19021. if (this.showType == 2 || this.showType == 3) {
  19022. document.getElementsByClassName("navBox")[0].style.height =
  19023. a - 40 + 0+ "px";
  19024. } else {
  19025. document.getElementsByClassName("navBox")[0].style.height =
  19026. a - 40 + "px";
  19027. }
  19028. }
  19029. this.Stbodywidth =
  19030. document.getElementsByClassName("student_body").length &&
  19031. document.getElementsByClassName("student_body")[0].offsetWidth;
  19032. },
  19033. closeDraw() {
  19034. this.bg = null;
  19035. this.drawShow = false;
  19036. },
  19037. showPicturePaint(url) {
  19038. let params = {
  19039. img: url,
  19040. };
  19041. this.ajax
  19042. .get(this.$store.state.api + "imgToBase64", params)
  19043. .then((res) => {
  19044. this.drawShow = true;
  19045. this.bg = res.data[0].img;
  19046. })
  19047. .catch((err) => {
  19048. console.error(err);
  19049. });
  19050. },
  19051. addImgDraw(base64) {
  19052. let file = { name: "批注图.png" };
  19053. let img = this.dataUrlToFile(base64, file);
  19054. this.beforeUpload1(img, 5);
  19055. },
  19056. addImgDrawImG(url) {
  19057. // console.log(url);
  19058. let params = [
  19059. {
  19060. wid: this.commentDetail.wid,
  19061. img: url,
  19062. },
  19063. ];
  19064. this.ajax
  19065. .post(this.$store.state.api + "updateCourseWorks", params)
  19066. .then((res) => {
  19067. this.$message({
  19068. message: "提交成功",
  19069. type: "success",
  19070. });
  19071. this.drawShow = false;
  19072. this.bg = "";
  19073. this.selectSWorks();
  19074. this.selectStudent();
  19075. })
  19076. .catch((err) => {
  19077. this.$message.error("提交失败");
  19078. console.error(err);
  19079. });
  19080. },
  19081. deletePicturePaint() {
  19082. this.$confirm("确定删除此批注吗?", "提示", {
  19083. confirmButtonText: "确定",
  19084. cancelButtonText: "取消",
  19085. type: "warning",
  19086. })
  19087. .then(() => {
  19088. let params = [
  19089. {
  19090. wid: this.commentDetail.wid,
  19091. img: "",
  19092. },
  19093. ];
  19094. this.ajax
  19095. .post(this.$store.state.api + "updateCourseWorks", params)
  19096. .then((res) => {
  19097. this.$message({
  19098. message: "删除成功",
  19099. type: "success",
  19100. });
  19101. this.selectSWorks();
  19102. this.selectStudent();
  19103. })
  19104. .catch((err) => {
  19105. this.$message.error("删除失败");
  19106. console.error(err);
  19107. });
  19108. })
  19109. .catch(() => {});
  19110. },
  19111. getAudioVideo(constraintsData) {
  19112. if (navigator.mediaDevices === undefined) {
  19113. navigator.mediaDevices = {};
  19114. }
  19115. if (navigator.mediaDevices.getUserMedia === undefined) {
  19116. navigator.mediaDevices.getUserMedia = function (constraints) {
  19117. // 首先,如果有getUserMedia的话,就获得它
  19118. var getUserMedia =
  19119. navigator.getUserMedia ||
  19120. navigator.webkitGetUserMedia ||
  19121. navigator.mozGetUserMedia ||
  19122. navigator.msGetUserMedia;
  19123. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19124. if (!getUserMedia) {
  19125. return Promise.reject({ code: 404 });
  19126. }
  19127. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19128. return new Promise(function (resolve, reject) {
  19129. getUserMedia.call(navigator, constraints, resolve, reject);
  19130. });
  19131. };
  19132. }
  19133. return navigator.mediaDevices.getUserMedia(constraintsData);
  19134. },
  19135. /**
  19136. * 开始录制
  19137. */
  19138. startRecording(callback) {
  19139. let _function = (screenStream) => {
  19140. this.addStreamStopListener(screenStream, () => {
  19141. console.log("流停止监听");
  19142. this.stopRecording();
  19143. this.$emit("streamStop", {});
  19144. // this.stopRecording();
  19145. });
  19146. var options = {
  19147. type: "video",
  19148. mimeType: "video/webm",
  19149. disableLogs: false,
  19150. getNativeBlob: false, // enable it for longer recordings
  19151. ignoreMutedMedia: false,
  19152. };
  19153. // this.video.srcObject = screenStream;
  19154. this.recorder = RecordRTC(screenStream, options);
  19155. this.recorder.startRecording();
  19156. this.recorder.screen = screenStream;
  19157. this.videoStart = true;
  19158. // callback(true);
  19159. };
  19160. this.getAudioVideo({ audio: true })
  19161. .then((res) => {
  19162. this.captureScreen(_function, true);
  19163. console.log("已点击允许,开启成功");
  19164. })
  19165. .catch((err) => {
  19166. // console.log('浏览器不支持,请更换浏览器')
  19167. // } else {
  19168. this.captureScreen(_function, false);
  19169. console.log("请检查是否存在麦克风");
  19170. });
  19171. },
  19172. /**
  19173. * 停止录制
  19174. */
  19175. stopRecording(callback) {
  19176. this.recorder.stopRecording(() => {
  19177. // this.video.src = this.video.srcObject = null;
  19178. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19179. const url = URL.createObjectURL(this.recorder.getBlob());
  19180. const a = document.createElement("a"); //this.fileName+
  19181. let videoFile = new File(
  19182. [this.recorder.getBlob()],
  19183. this.courseDetail.title + "录屏.mp4",
  19184. {
  19185. type: "video/mp4",
  19186. }
  19187. );
  19188. let downloadUrl = URL.createObjectURL(videoFile);
  19189. document.body.appendChild(a);
  19190. a.style.display = "none";
  19191. a.href = url;
  19192. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19193. a.click();
  19194. this.recorder.screen.stop();
  19195. this.recorder.destroy();
  19196. this.recorder = null;
  19197. this.videoStart = false;
  19198. // callback(false);
  19199. });
  19200. },
  19201. //初始化
  19202. captureScreen(callback, type) {
  19203. if (navigator.getDisplayMedia) {
  19204. //录制结束,文件下载
  19205. navigator
  19206. .getDisplayMedia({
  19207. video: true,
  19208. })
  19209. .then((screenStream) => {
  19210. if (type) {
  19211. navigator.mediaDevices
  19212. .getUserMedia({ audio: true })
  19213. .then((mic) => {
  19214. screenStream.addTrack(mic.getTracks()[0]);
  19215. callback(screenStream);
  19216. });
  19217. } else {
  19218. callback(screenStream);
  19219. }
  19220. })
  19221. .catch(function (error) {
  19222. console.log("error", error);
  19223. });
  19224. } else if (navigator.mediaDevices.getDisplayMedia) {
  19225. navigator.mediaDevices
  19226. .getDisplayMedia({
  19227. video: true,
  19228. })
  19229. .then((screenStream) => {
  19230. if (type) {
  19231. navigator.mediaDevices
  19232. .getUserMedia({ audio: true })
  19233. .then((mic) => {
  19234. screenStream.addTrack(mic.getTracks()[0]);
  19235. callback(screenStream);
  19236. });
  19237. } else {
  19238. callback(screenStream);
  19239. }
  19240. })
  19241. .catch(function (error) {
  19242. console.log("error", error);
  19243. });
  19244. } else {
  19245. var error = "getDisplayMedia API are not supported in this browser.";
  19246. console.log("error", error);
  19247. alert(error);
  19248. }
  19249. },
  19250. //流监听
  19251. addStreamStopListener(stream, callback) {
  19252. stream.addEventListener(
  19253. "ended",
  19254. function () {
  19255. callback();
  19256. callback = function () {};
  19257. },
  19258. false
  19259. );
  19260. stream.addEventListener(
  19261. "inactive",
  19262. function () {
  19263. callback();
  19264. callback = function () {};
  19265. },
  19266. false
  19267. );
  19268. stream.getTracks().forEach(function (track) {
  19269. track.addEventListener(
  19270. "ended",
  19271. function () {
  19272. callback();
  19273. callback = function () {};
  19274. },
  19275. false
  19276. );
  19277. track.addEventListener(
  19278. "inactive",
  19279. function () {
  19280. callback();
  19281. callback = function () {};
  19282. },
  19283. false
  19284. );
  19285. });
  19286. },
  19287. updateGroup() {
  19288. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19289. this.dialogVisibleGroup2 = true;
  19290. },
  19291. numberPan() {
  19292. if (
  19293. /[^\d]/.test(this.groupJson.number) ||
  19294. this.groupJson.number < 2 ||
  19295. this.groupJson.number > 10
  19296. ) {
  19297. this.$message.error("请输入2-10的数字");
  19298. this.groupJson.number = "";
  19299. }
  19300. },
  19301. updateGroupJson() {
  19302. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19303. if (
  19304. this.groupStudentUid[this.toolindex][i].length >
  19305. this.groupJson2.number
  19306. ) {
  19307. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19308. return;
  19309. }
  19310. }
  19311. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19312. this.islock = this.groupJson.islock == 1 ? true : false;
  19313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19314. this.taskCount
  19315. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19316. let params = [
  19317. {
  19318. cid: this.id,
  19319. chapters: JSON.stringify(this.chapInfoList),
  19320. uid: this.userid,
  19321. unitIndex: this.courseType,
  19322. },
  19323. ];
  19324. this.ajax
  19325. .post(this.$store.state.api + "updateWorkNew4", params)
  19326. .then((res) => {
  19327. this.$message.success("设置成功");
  19328. this.getCourseDetail(2);
  19329. this.dialogVisibleGroup2 = false;
  19330. this.groupJson2 = {};
  19331. this.$forceUpdate();
  19332. })
  19333. .catch((err) => {
  19334. this.$message.error("网络不佳");
  19335. console.error(err);
  19336. });
  19337. },
  19338. lockChair() {
  19339. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19340. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19341. this.updateGroupJson();
  19342. },
  19343. selectGroup(index) {
  19344. this.getCourseDetail(2, index);
  19345. },
  19346. joinGroup(index) {
  19347. if (this.groupJson.islock == 2) {
  19348. this.$message.error("位置已被锁定,无法加入");
  19349. return;
  19350. }
  19351. if (
  19352. this.groupStudent[this.toolindex][index].length >
  19353. this.groupJson.number ||
  19354. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19355. ) {
  19356. this.$message.error("位置已满,无法加入");
  19357. return;
  19358. }
  19359. let params = [
  19360. {
  19361. cid: this.id,
  19362. stage: this.courseType,
  19363. task: this.taskCount,
  19364. tool: this.toolindex,
  19365. g: index,
  19366. uid: this.userid,
  19367. },
  19368. ];
  19369. this.ajax
  19370. .post(this.$store.state.api + "joinGroup", params)
  19371. .then((res) => {
  19372. this.$message.success("加入成功");
  19373. this.getCourseDetail(2);
  19374. })
  19375. .catch((err) => {
  19376. this.$message.error("网络不佳");
  19377. console.error(err);
  19378. });
  19379. },
  19380. exitGroup(id) {
  19381. if (this.groupJson.islock == 2) {
  19382. this.$message.error("位置已被锁定,无法退出");
  19383. return;
  19384. }
  19385. let params = [
  19386. {
  19387. gid: id,
  19388. },
  19389. ];
  19390. this.ajax
  19391. .post(this.$store.state.api + "exitGroup", params)
  19392. .then((res) => {
  19393. this.$message.success("退出成功");
  19394. this.getCourseDetail(2);
  19395. })
  19396. .catch((err) => {
  19397. this.$message.error("网络不佳");
  19398. console.error(err);
  19399. });
  19400. },
  19401. groupUpload(index, task, gindex) {
  19402. this.taskCount = task;
  19403. this.toolindex = index;
  19404. this.groupIndex = gindex;
  19405. this.dialogVisibleGroupWork = true;
  19406. },
  19407. updateGroupChair(user) {
  19408. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19409. el.label = index;
  19410. return index != user.group;
  19411. });
  19412. this.updateGroupUser = user;
  19413. this.dialogVisibleUpdateGroup = true;
  19414. },
  19415. updateChair() {
  19416. if (
  19417. this.groupStudent[this.toolindex][this.checkChair].length >
  19418. this.groupJson.number ||
  19419. this.groupStudent[this.toolindex][this.checkChair].length ==
  19420. this.groupJson.number
  19421. ) {
  19422. this.$message.error("位置已满,无法加入");
  19423. return;
  19424. }
  19425. let params = [
  19426. {
  19427. cid: this.id,
  19428. stage: this.courseType,
  19429. task: this.taskCount,
  19430. tool: this.toolindex,
  19431. g: this.checkChair,
  19432. uid: this.updateGroupUser.userid,
  19433. },
  19434. ];
  19435. this.ajax
  19436. .post(this.$store.state.api + "joinGroup", params)
  19437. .then((res) => {
  19438. this.$message.success("修改成功");
  19439. this.updateGroupUser = {};
  19440. this.checkChair = "";
  19441. this.updateGroupArray = {};
  19442. this.dialogVisibleUpdateGroup = false;
  19443. this.getCourseDetail(2);
  19444. })
  19445. .catch((err) => {
  19446. this.$message.error("网络不佳");
  19447. console.error(err);
  19448. });
  19449. },
  19450. deleteGroupChair(gindex) {
  19451. this.checkDeleteGroup = [];
  19452. this.deleteGroupUser = JSON.parse(
  19453. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19454. );
  19455. this.deleteGroupArray = this.groupJson.group[gindex];
  19456. this.groupIndex = gindex;
  19457. this.dialogVisibleDeleteGroup = true;
  19458. },
  19459. async deleteChair() {
  19460. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19461. const gid =
  19462. this.groupStudent[this.toolindex][this.groupIndex][
  19463. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19464. this.checkDeleteGroup[i]
  19465. )
  19466. ];
  19467. let params = [
  19468. {
  19469. gid: gid.id,
  19470. },
  19471. ];
  19472. var a = await this.deleteChairA(params);
  19473. if (i == this.checkDeleteGroup.length - 1) {
  19474. this.$message.success("退出成功");
  19475. this.dialogVisibleDeleteGroup = false;
  19476. this.deleteGroupUser = [];
  19477. this.deleteGroupArray = {};
  19478. this.groupIndex = "";
  19479. this.checkDeleteGroup = [];
  19480. this.getCourseDetail(2);
  19481. }
  19482. }
  19483. },
  19484. deleteChairA(params) {
  19485. return new Promise((resolve, reject) => {
  19486. this.ajax
  19487. .post(this.$store.state.api + "exitGroup", params)
  19488. .then((res) => {
  19489. resolve(1);
  19490. })
  19491. .catch((err) => {
  19492. this.$message.error("网络不佳");
  19493. console.error(err);
  19494. });
  19495. });
  19496. },
  19497. contract(i) {
  19498. if (this.isCloseList[i].isClose == 0) {
  19499. this.isCloseList[i].isClose = 1;
  19500. } else {
  19501. this.isCloseList[i].isClose = 0;
  19502. }
  19503. this.$forceUpdate();
  19504. },
  19505. openWordCloud(toolindex) {
  19506. let array = [];
  19507. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19508. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19509. array.push({ name: works });
  19510. }
  19511. if (this.isGroup) {
  19512. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19513. let works = this.courseGroup.group[i].works[toolindex];
  19514. for (var j = 0; j < works.length; j++) {
  19515. let answer = JSON.parse(works[j].works)[0].answer;
  19516. array.push({ name: answer });
  19517. }
  19518. }
  19519. }
  19520. this.wordCloudData = array;
  19521. this.dialogVisibleWordCloud = true;
  19522. },
  19523. uploadWorks(i) {
  19524. this.$confirm("确定导出作业吗?", "提示", {
  19525. confirmButtonText: "确定",
  19526. cancelButtonText: "取消",
  19527. type: "warning",
  19528. })
  19529. .then(() => {
  19530. const loading = this.$loading.service({
  19531. background: "rgba(255, 255, 255, 0.7)",
  19532. target: document.body,
  19533. text: "文件加载中...",
  19534. });
  19535. const _worksStudent = this.worksStudent;
  19536. let url = [];
  19537. var counts = {};
  19538. for (var l = 0; l < _worksStudent[i].length; l++) {
  19539. var item = _worksStudent[i][l];
  19540. var name = item.sName;
  19541. if (!counts.hasOwnProperty(name)) {
  19542. counts[name] = 0;
  19543. } else {
  19544. counts[name]++;
  19545. }
  19546. if (counts[name] > 0) {
  19547. item.sName += " (" + counts[name] + ")";
  19548. }
  19549. }
  19550. for (var l = 0; l < _worksStudent[i].length; l++) {
  19551. var item = _worksStudent[i][l];
  19552. if (
  19553. item.works.indexOf(
  19554. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19555. ) !== -1 &&
  19556. item.works.indexOf("img") === -1
  19557. ) {
  19558. url.push({ name: item.sName, url: item.works });
  19559. }
  19560. }
  19561. // var toolList = [
  19562. // { name: "电子白板", tool: 1 },
  19563. // { name: "思维导图", tool: 3 },
  19564. // { name: "协同文档", tool: 6 },
  19565. // { name: "思维网格", tool: 7 },
  19566. // { name: "素材库", tool: 8 },
  19567. // { name: "学习资料", tool: 17 },
  19568. // { name: "便签", tool: 2 },
  19569. // { name: "问卷调查", tool: 4 },
  19570. // { name: "选择题", tool: 45 },
  19571. // { name: "倒计时", tool: 10 },
  19572. // { name: "问答", tool: 15 },
  19573. // { name: "课程设计", tool: 26 },
  19574. // { name: "训练服务器", tool: 18 },
  19575. // { name: "作业提交", tool: 16 },
  19576. // { name: "批量上传", tool: 50 },
  19577. // { name: "AIoT Blockly", tool: 21 },
  19578. // { name: "AI Python", tool: 23 },
  19579. // { name: "AI Blockly", tool: 24 },
  19580. // { name: "目标管理", tool: 25 },
  19581. // { name: "数学画板", tool: 31 },
  19582. // { name: "翻译", tool: 28 },
  19583. // { name: "魔盒识字", tool: 37 },
  19584. // { name: "数学画板", tool: 31 },
  19585. // { name: "24点", tool: 38 },
  19586. // { name: "GeoGebra", tool: 39 },
  19587. // { name: "源码编辑", tool: 32 },
  19588. // { name: "个人评价", tool: 40 },
  19589. // { name: "选择匹配", tool: 41 },
  19590. // { name: "汉字宫", tool: 44 },
  19591. // { name: "排序", tool: 47 },
  19592. // { name: "表格", tool: 48 },
  19593. // { name: "文档", tool: 52 },
  19594. // { name: "学生分组", tool: 49 },
  19595. // { name: "CocoPi", tool: 57 },
  19596. // { name: "模拟驾驶", tool: 58 },
  19597. // { name: "路径搜索", tool: 59 },
  19598. // { name: "深度学习", tool: 60 },
  19599. // { name: "全历史", tool: 61 },
  19600. // { name: "交互视频", tool: 62 },
  19601. // { name: "海龟编程", tool: 63 },
  19602. // { name: "挑人", tool: 65 },
  19603. // { name: "公式编辑", tool: 66 },
  19604. // { name: "分子结构", tool: 67 },
  19605. // { name: "时间轴", tool: 68 },
  19606. // ];
  19607. // var toolName = "";
  19608. // for(var w = 0;w<toolList.length;w++){
  19609. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19610. // toolName = toolList[w].name;
  19611. // }
  19612. // }
  19613. console.log(url);
  19614. this.downLoadAll(url, loading);
  19615. })
  19616. .catch(() => {});
  19617. },
  19618. downLoadAll(url, loading) {
  19619. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19620. const zip = new JSZip();
  19621. const cache = {};
  19622. const promises = [];
  19623. data.forEach((item) => {
  19624. const promise = getFile(item.url).then((data) => {
  19625. if (data.data != 1) {
  19626. // 下载文件, 并存成ArrayBuffer对象
  19627. const file_name =
  19628. item.name +
  19629. "." +
  19630. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19631. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19632. cache[file_name] = data.data;
  19633. }
  19634. });
  19635. promises.push(promise);
  19636. });
  19637. Promise.all(promises).then(() => {
  19638. zip.generateAsync({ type: "blob" }).then((content) => {
  19639. // 生成二进制流
  19640. FileSaver.saveAs(
  19641. content,
  19642. this.courseDetail.title + "-" + "作业提交工具.zip"
  19643. ); // 利用file-saver保存文件 自定义文件名
  19644. setTimeout(() => {
  19645. loading.close();
  19646. }, 2000);
  19647. });
  19648. });
  19649. },
  19650. pickStudent(stu) {
  19651. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19652. return;
  19653. }
  19654. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19655. confirmButtonText: "确定",
  19656. cancelButtonText: "取消",
  19657. type: "warning",
  19658. })
  19659. .then(() => {
  19660. let params = [
  19661. {
  19662. uid: stu.userid,
  19663. cid: this.id,
  19664. stage: this.courseType,
  19665. task: this.taskCount,
  19666. tool: this.toolindex,
  19667. },
  19668. ];
  19669. this.ajax
  19670. .post(this.$store.state.api + "updateCoursePick", params)
  19671. .then((res) => {
  19672. this.$message.success("操作成功");
  19673. this.getPick();
  19674. })
  19675. .catch((err) => {
  19676. this.$message.error("网络不佳");
  19677. console.error(err);
  19678. });
  19679. })
  19680. .catch(() => {});
  19681. },
  19682. selectUser(){
  19683. let params = {
  19684. userid: this.userid,
  19685. };
  19686. this.ajax
  19687. .get(this.$store.state.api + "selectUser", params)
  19688. .then((res) => {
  19689. this.userMes = res.data[0];
  19690. })
  19691. .catch((err) => {
  19692. console.error(err);
  19693. });
  19694. },
  19695. setEngText(i){
  19696. this.newEngIndex = i;
  19697. this.$forceUpdate();
  19698. },
  19699. addCorrect(){
  19700. this.$confirm("你确定提交批改嘛?", "提示", {
  19701. confirmButtonText: "确定",
  19702. showCancelButton: false,
  19703. closeOnClickModal: false,
  19704. type: "warning",
  19705. })
  19706. .then(() => {
  19707. let params = {
  19708. cid: this.id,
  19709. s: parseInt(this.courseType),
  19710. t: this.taskCount,
  19711. tool: this.toolindex,
  19712. wid: this.engWid,
  19713. c: this.userid,
  19714. 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) : "",
  19715. };
  19716. this.ajax
  19717. .get(this.$store.state.api + "addEngC", params)
  19718. .then((res) => {
  19719. this.$message.success("提交成功");
  19720. this.engUpdateDialogVisible = false;
  19721. })
  19722. .catch((err) => {
  19723. console.error(err);
  19724. });
  19725. })
  19726. .catch(() => {});
  19727. },
  19728. selectEngC(id,z){
  19729. let params = {
  19730. workid: id,
  19731. };
  19732. this.ajax
  19733. .get(this.$store.state.api + "selectEngC", params)
  19734. .then((res) => {
  19735. if(res.data[0].length == 0){
  19736. this.newEnglishList.engTitle = z.engTitle;
  19737. this.newEnglishList.engText = z.engText;
  19738. }else{
  19739. var a = res.data[0];
  19740. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19741. if(this.userMes[0].type == 2){
  19742. var snum = 0;
  19743. for(var i = 0;i<a.length;i++){
  19744. if(this.userMes[0].userid == a[i].correct){
  19745. this.newEnglishList = JSON.parse(a[i].cWork);
  19746. snum = 1;
  19747. }
  19748. }
  19749. if(snum == 0){
  19750. this.newEnglishList = { engTitle:"",engText:"" };
  19751. this.newEnglishList.engTitle = z.engTitle;
  19752. this.newEnglishList.engText = z.engText;
  19753. }
  19754. }else if(this.userMes[0].type == 1){
  19755. var num = 0;
  19756. for(var w= 0;w<a.length;w++){
  19757. if(this.userMes[0].userid == a[w].correct){
  19758. num = 1;
  19759. }
  19760. }
  19761. if(num == 0){
  19762. this.isNoUserid = true;
  19763. var c = JSON.parse(JSON.stringify(z));
  19764. this.oldEnglishJson1 = c;
  19765. }else{
  19766. this.isNoUserid = false;
  19767. }
  19768. var b = a.sort((item, index) => {
  19769. console.log(item)
  19770. if (item.correct === this.userMes[0].userid) {
  19771. return -1; // 将a移到前面
  19772. } else if (index.correct === this.userMes[0].userid) {
  19773. return 1; // 将b移到前面
  19774. } else {
  19775. return 0; // 保持默认顺序
  19776. }
  19777. });
  19778. for(var p = 0;p<b.length;p++){
  19779. for(var y = 0;y<ppp.length;y++){
  19780. if(b[p].id == ppp[y].id){
  19781. b[p].cWork = JSON.parse(ppp[y].cWork);
  19782. break
  19783. }
  19784. }
  19785. }
  19786. this.newEnglishList1 = b;
  19787. }
  19788. }
  19789. this.greyType = false;
  19790. setTimeout(() => {
  19791. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19792. if(this.newEnglishList1.length > 0){
  19793. if(this.isNoUserid == true){
  19794. this.engListLength = this.newEnglishList1.length + 1;
  19795. this.newEngIndex = -1;
  19796. }else{
  19797. this.engListLength = this.newEnglishList1.length;
  19798. this.newEngIndex = 0;
  19799. }
  19800. }
  19801. if(this.userMes[0].type == 2){
  19802. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19803. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19804. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19805. }else if(this.newEngIndex == -1){
  19806. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19807. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19808. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19809. }
  19810. }, 500);
  19811. this.engUpdateDialogVisible = true;
  19812. this.$forceUpdate();
  19813. })
  19814. .catch((err) => {
  19815. console.error(err);
  19816. });
  19817. },
  19818. getPick() {
  19819. let params = {
  19820. cid: this.id,
  19821. };
  19822. this.ajax
  19823. .get(this.$store.state.api + "getPick", params)
  19824. .then((res) => {
  19825. let array = [];
  19826. for (var i = 0; i < res.data[0].length; i++) {
  19827. array.push(res.data[0][i].userid);
  19828. }
  19829. this.isPickStudent = array;
  19830. if (array.indexOf(this.userid) !== -1) {
  19831. this.$confirm("你被老师选到啦!", "提示", {
  19832. confirmButtonText: "确定",
  19833. showCancelButton: false,
  19834. closeOnClickModal: false,
  19835. type: "warning",
  19836. })
  19837. .then(() => {
  19838. let pa = [
  19839. {
  19840. uid: this.userid,
  19841. cid: this.id,
  19842. },
  19843. ];
  19844. this.ajax
  19845. .post(this.$store.state.api + "deletePick", pa)
  19846. .then((res) => {
  19847. this.getPick();
  19848. })
  19849. .catch((err) => {
  19850. this.$message.error("网络不佳");
  19851. console.error(err);
  19852. });
  19853. })
  19854. .catch(() => {});
  19855. }
  19856. })
  19857. .catch((err) => {
  19858. this.$message.error("网络不佳");
  19859. console.error(err);
  19860. });
  19861. },
  19862. foldEva() {
  19863. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19864. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19865. } else {
  19866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19867. setTimeout(() => {
  19868. this.checkEva();
  19869. setTimeout(() => {
  19870. this.checkEva();
  19871. }, 500);
  19872. }, 0);
  19873. }
  19874. this.$forceUpdate();
  19875. },
  19876. panToolHeight(tool) {
  19877. var _tool = document.querySelectorAll('#'+tool)[0]
  19878. var _toolA = _tool ? _tool.offsetHeight : 0
  19879. var _toolC = 0
  19880. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19881. let boolean2 = (_toolA > _toolC) ? true : false
  19882. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19883. this.$forceUpdate();
  19884. },
  19885. async checkLink(url) {
  19886. console.log(url)
  19887. let _url = url
  19888. try {
  19889. const response = await fetch(url);
  19890. if(!response.ok){
  19891. _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]))
  19892. }
  19893. console.log(response.ok)
  19894. } catch (error) {
  19895. console.error('Error checking link:', error);
  19896. // console.log(false)
  19897. _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]))
  19898. }
  19899. // console.log(_url)
  19900. return _url
  19901. },
  19902. getScoreList(){
  19903. let params = {
  19904. cid: this.id,
  19905. };
  19906. this.ajax
  19907. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19908. .then((res) => {
  19909. let result = res.data;
  19910. this.scoreList.datalist = result[0];
  19911. this.scoreList.isScoreList = result[1];
  19912. })
  19913. .catch((err) => {
  19914. console.error(err);
  19915. });
  19916. },
  19917. setClassRoomHelperWidth(width){
  19918. this.classRoomHelperWidth = width
  19919. }
  19920. },
  19921. directives: {
  19922. // 使用局部注册指令的方式
  19923. resize: {
  19924. // 指令的名称
  19925. bind(el, binding) {
  19926. // el为绑定的元素,binding为绑定给指令的对象
  19927. let width = "",
  19928. height = "";
  19929. function isReize() {
  19930. const style = document.defaultView.getComputedStyle(el);
  19931. if (width !== style.width || height !== style.height) {
  19932. binding.value(); // 关键
  19933. }
  19934. width = style.width;
  19935. height = style.height;
  19936. }
  19937. el.__vueSetInterval__ = setInterval(isReize, 300);
  19938. },
  19939. unbind(el) {
  19940. clearInterval(el.__vueSetInterval__);
  19941. },
  19942. },
  19943. autoHeight: {
  19944. update(el, binding) {
  19945. const { value } = binding
  19946. if (value && typeof value === 'number') {
  19947. el.style.height = `${value}px`
  19948. } else {
  19949. el.style.height = 'auto'
  19950. }
  19951. },
  19952. componentUpdated(el) {
  19953. el.style.height = `${el.scrollHeight}px`
  19954. },
  19955. },
  19956. },
  19957. beforeDestroy() {
  19958. window.onresize = null;
  19959. clearInterval(this.timer);
  19960. this.timer = null;
  19961. clearInterval(this.opertimer);
  19962. this.opertimer = null;
  19963. },
  19964. computed: {
  19965. contentConvent() {
  19966. return function (c) {
  19967. return c
  19968. ? c
  19969. .replaceAll(/\r\n/g, "<br/>")
  19970. .replaceAll(/\n/g, "<br/>")
  19971. .replaceAll(/\s/g, " &nbsp")
  19972. : "";
  19973. };
  19974. },
  19975. commentRight(){
  19976. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  19977. return "35px";
  19978. }
  19979. return `calc(${this.classRoomHelperWidth} + 5px)`
  19980. // if(this.$refs["classRoomHelperRef"].type==0){
  19981. // return "100px";
  19982. // }else if(this.$refs["classRoomHelperRef"].type==1){
  19983. // return "502px"
  19984. // }else{
  19985. // return "0px"
  19986. // }
  19987. },
  19988. checkUpload() {
  19989. return function () {
  19990. var studentK = [];
  19991. if (this.plworkFile.length > 0) {
  19992. for (var z = 0; z < this.plworkFile.length; z++) {
  19993. studentK.push(this.plworkFile[z].username);
  19994. }
  19995. studentK = studentK.join(",");
  19996. }
  19997. var a = this.uploadStudentJuri.filter((el) => {
  19998. return studentK.indexOf(el.userid) == -1;
  19999. });
  20000. return a;
  20001. };
  20002. },
  20003. getSName() {
  20004. return function (name) {
  20005. var check = name;
  20006. this.uploadStudentJuri.forEach((el) => {
  20007. if (el.userid == check) {
  20008. check = el.name ? el.name : el.username;
  20009. }
  20010. });
  20011. return check;
  20012. };
  20013. },
  20014. getImgList() {
  20015. return function (val) {
  20016. let srcList = []; // 定义一个数组用来接收后面的img地址
  20017. val.replace(
  20018. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20019. function (match, capture) {
  20020. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20021. srcList.push(capture);
  20022. }
  20023. );
  20024. return srcList;
  20025. };
  20026. },
  20027. retrnToolHeight(){
  20028. return function (tool) {
  20029. var _tool = document.querySelectorAll('#'+tool)[0]
  20030. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20031. };
  20032. },
  20033. Correct() {
  20034. return function (c) {
  20035. let w = "";
  20036. let a = this.correctWord;
  20037. for(var k = 0;k<a.length;k++){
  20038. //diffWordsWithSpace
  20039. if(a.length > 1){
  20040. if(a[k].added == true){
  20041. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20042. }else if(a[k].removed == true){
  20043. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20044. }else{
  20045. w += '<span>' + a[k].value + '</span>';
  20046. }
  20047. }else{
  20048. w = c
  20049. }
  20050. //diffChars方法
  20051. // if(a.length > 1){
  20052. // if(w == ""){
  20053. // if(a[k].added == true){
  20054. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20055. // }else if(a[k].removed == true){
  20056. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20057. // }
  20058. // }else{
  20059. // if(k == a.length - 1){
  20060. // if(a[k].added == true){
  20061. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20062. // }else if(a[k].removed == true){
  20063. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20064. // }
  20065. // }else{
  20066. // if(a[k].added == true){
  20067. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20068. // }else if(a[k].removed == true){
  20069. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20070. // }
  20071. // }
  20072. // }
  20073. // }else{
  20074. // w = c
  20075. // }
  20076. }
  20077. c = w;
  20078. return c;
  20079. };
  20080. },
  20081. },
  20082. mounted() {
  20083. document.body.addEventListener("click", (e) => {
  20084. if (this.isUpdateToolDetail1) {
  20085. this.updateToolDetail(this.toolDetailIndex);
  20086. }
  20087. });
  20088. if (this.screenType == 2) {
  20089. window.parent.postMessage({ allScreen: 4 }, "*");
  20090. } else if (this.screenType == 3) {
  20091. window.parent.postMessage({ allScreen: 5 }, "*");
  20092. } else if (this.screenType == 1) {
  20093. window.parent.postMessage({ allScreen: 6 }, "*");
  20094. }
  20095. this.setOperationTime();
  20096. this.selectEva();
  20097. this.getCourseDetail();
  20098. this.selectCount();
  20099. this.getHomeWork();
  20100. this.selectUser();
  20101. this.getAIJ();
  20102. this.contentDialog = true;
  20103. this.setContent2(true);
  20104. if (this.tType == 4) {
  20105. this.pzDialog = true;
  20106. this.selectPz();
  20107. }
  20108. // 获取评分列表
  20109. this.getScoreList()
  20110. document.scrollingElement.scrollTop = 0;
  20111. window.addEventListener("resize", () => {
  20112. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20113. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20114. if (this.showType == 2 || this.showType == 3) {
  20115. document.getElementsByClassName("navBox")[0].style.height =
  20116. a - 40 + 0+ "px";
  20117. } else {
  20118. document.getElementsByClassName("navBox")[0].style.height =
  20119. a - 40 + "px";
  20120. }
  20121. });
  20122. let _this = this;
  20123. setTimeout(() => {
  20124. // _this.vedioTime = [];
  20125. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20126. // _this.vedioTime[i] = document.getElementsByClassName(
  20127. // "vjs-duration-display"
  20128. // )[i].textContent;
  20129. // }
  20130. }, 1000);
  20131. },
  20132. };
  20133. </script>
  20134. <style scoped>
  20135. @media screen and (max-width: 1280px) {
  20136. /* .courseIndex > div:first-child(2) {
  20137. width: 15% !important;
  20138. } */
  20139. /* .navText {
  20140. width: 120px !important;
  20141. } */
  20142. .evaCss {
  20143. flex-direction: column !important;
  20144. align-items: center !important;
  20145. }
  20146. .elist_input {
  20147. width: 90% !important;
  20148. }
  20149. .dialog_diy1 >>> .el-dialog {
  20150. width: 100% !important;
  20151. }
  20152. .rightWidthCss {
  20153. width: 100% !important;
  20154. }
  20155. .dialog_diy3 >>> .el-dialog {
  20156. width: 100% !important;
  20157. }
  20158. .addToolCss {
  20159. right: 0 !important;
  20160. width: 100% !important;
  20161. min-width: unset !important;
  20162. }
  20163. }
  20164. .evaCssMax {
  20165. flex-direction: column !important;
  20166. align-items: center !important;
  20167. }
  20168. .dialog_diy >>> .el-dialog {
  20169. margin-top: 10vh !important;
  20170. }
  20171. .body_student {
  20172. width: 77%;
  20173. height: 100%;
  20174. position: absolute;
  20175. left: 22%;
  20176. top: 0;
  20177. }
  20178. .student_head {
  20179. width: 100%;
  20180. margin: 20px auto 0;
  20181. padding-bottom: 20px;
  20182. display: flex;
  20183. flex-direction: column;
  20184. flex-wrap: nowrap;
  20185. align-items: flex-start;
  20186. justify-content: flex-start;
  20187. }
  20188. .pb_left {
  20189. width: 20%;
  20190. margin-right: 10px;
  20191. background: rgb(255, 255, 255);
  20192. position: fixed;
  20193. height: calc(100% - 40px);
  20194. border-radius: 20px;
  20195. padding-bottom: 15px;
  20196. box-sizing: border-box;
  20197. }
  20198. .wheel > img,
  20199. .project > img,
  20200. .star > img,
  20201. .evaluate > img,
  20202. .up_photo > img,
  20203. .chapter_add > img,
  20204. .deleteWord > img,
  20205. .question > img,
  20206. .homework > img {
  20207. width: 100%;
  20208. height: 100%;
  20209. }
  20210. .upCover > img {
  20211. width: 131px;
  20212. height: 69px;
  20213. object-fit: cover;
  20214. }
  20215. .upCover {
  20216. width: calc(100% / 3.5);
  20217. position: relative;
  20218. margin: 0 15px 10px 0;
  20219. display: flex;
  20220. flex-direction: column;
  20221. flex-wrap: nowrap;
  20222. justify-content: center;
  20223. align-content: center;
  20224. align-items: center;
  20225. height: fit-content;
  20226. }
  20227. .upCover2 {
  20228. width: 100%;
  20229. position: relative;
  20230. margin: 0 15px 10px 0;
  20231. display: flex;
  20232. flex-direction: column;
  20233. flex-wrap: nowrap;
  20234. justify-content: center;
  20235. align-content: center;
  20236. align-items: center;
  20237. }
  20238. .upCover2 > img {
  20239. width: 100%;
  20240. height: 90px;
  20241. object-fit: contain;
  20242. }
  20243. .chapter_add {
  20244. width: 120px;
  20245. position: relative;
  20246. text-align: center;
  20247. }
  20248. .isAddThings {
  20249. margin-top: 20px;
  20250. position: relative;
  20251. text-align: center;
  20252. background: #f7f8fa;
  20253. height: 90px;
  20254. width: 90px;
  20255. display: flex;
  20256. flex-direction: column;
  20257. justify-content: center;
  20258. }
  20259. .deleteWord {
  20260. width: 22px;
  20261. height: 22px;
  20262. position: absolute;
  20263. right: -5px;
  20264. top: -5px;
  20265. cursor: pointer;
  20266. }
  20267. .box_course {
  20268. /* width: 60%; */
  20269. width: calc(100% - 300px);
  20270. }
  20271. .wheel {
  20272. width: 100%;
  20273. /* height: 100%; */
  20274. height: 650px;
  20275. }
  20276. .right_box {
  20277. display: flex;
  20278. flex-direction: column;
  20279. margin-left: 30px;
  20280. justify-content: space-around;
  20281. }
  20282. .right_box_title {
  20283. font-size: 23px;
  20284. }
  20285. .people {
  20286. display: flex;
  20287. }
  20288. .student_body {
  20289. width: 100%;
  20290. margin: 0 auto;
  20291. margin-top: 10px;
  20292. padding: 0 0 20px;
  20293. }
  20294. .study_top {
  20295. margin-top: 100px;
  20296. width: 100%;
  20297. height: auto;
  20298. padding-bottom: 20px;
  20299. }
  20300. .study_top .checkbox {
  20301. display: flex;
  20302. align-items: center;
  20303. padding: 15px 0 15px 30px;
  20304. flex: 0 0 auto;
  20305. font-weight: bold;
  20306. border-bottom: 1px solid #eee;
  20307. }
  20308. .study_top .check {
  20309. padding-bottom: 5px;
  20310. text-align: center;
  20311. cursor: pointer;
  20312. height: 30px;
  20313. box-sizing: border-box;
  20314. display: flex;
  20315. }
  20316. .study_top .checked {
  20317. border-bottom: 4px solid #3fc6a0;
  20318. padding-bottom: 5px;
  20319. color: #3fc6a0;
  20320. display: flex;
  20321. height: 35px;
  20322. }
  20323. .study_top .checked > div,
  20324. .study_top .check > div {
  20325. margin-right: 5px;
  20326. }
  20327. .videoTop {
  20328. display: flex;
  20329. flex-direction: row;
  20330. justify-content: space-between;
  20331. background: #fff;
  20332. align-items: center;
  20333. width: 95%;
  20334. padding: 20px;
  20335. }
  20336. .filebox {
  20337. display: flex;
  20338. flex-wrap: wrap;
  20339. flex-direction: column;
  20340. padding: 0 0 5px;
  20341. position: relative;
  20342. }
  20343. .filebox:before {
  20344. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20345. position: absolute;
  20346. top: 20px;
  20347. left: 13px;
  20348. border-left: 2px dotted #cad1dc;
  20349. height: calc(100% - 15px);
  20350. }
  20351. .toolHeng2 > div:last-child::before {
  20352. height: calc(100% - 43px);
  20353. }
  20354. .filebox .tooldetail {
  20355. width: calc(100%);
  20356. margin: 0px 12px;
  20357. padding: 12px;
  20358. line-height: 30px;
  20359. word-break: break-word;
  20360. background: #ffffff;
  20361. border-radius: 8px 8px 8px 8px;
  20362. opacity: 1;
  20363. border: 1px solid #cad1dc;
  20364. overflow:hidden;
  20365. box-sizing:border-box;
  20366. }
  20367. .file {
  20368. display: flex;
  20369. flex-direction: column;
  20370. align-items: center;
  20371. justify-content: center;
  20372. cursor: pointer;
  20373. width: 200px;
  20374. }
  20375. .file div {
  20376. margin-top: 10px;
  20377. width: 150px;
  20378. text-align: center;
  20379. overflow: hidden;
  20380. white-space: nowrap;
  20381. text-overflow: ellipsis;
  20382. }
  20383. .media {
  20384. display: flex;
  20385. flex-direction: column;
  20386. align-items: center;
  20387. justify-content: center;
  20388. margin: 0 20px 20px 0;
  20389. cursor: pointer;
  20390. margin: 12px 0 5px 15px;
  20391. overflow: hidden;
  20392. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20393. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20394. box-sizing: border-box;
  20395. }
  20396. .media img {
  20397. height: 90px;
  20398. width: 160px;
  20399. object-fit: cover;
  20400. }
  20401. .media .title {
  20402. padding: 5px;
  20403. text-align: left;
  20404. width: 100%;
  20405. box-sizing: border-box;
  20406. }
  20407. .media .btn {
  20408. width: 100%;
  20409. height: 35px;
  20410. line-height: 35px;
  20411. color: #fff;
  20412. background: #606060;
  20413. text-align: center;
  20414. overflow: hidden;
  20415. white-space: nowrap;
  20416. text-overflow: ellipsis;
  20417. }
  20418. .detail_content_top {
  20419. width: 100%;
  20420. padding: 25px 0 25px 0;
  20421. }
  20422. .detail_title {
  20423. text-align: center;
  20424. font-size: 24px;
  20425. }
  20426. .detail_time {
  20427. font-size: 13px;
  20428. padding: 15px 0 0 40px;
  20429. }
  20430. .detail_content {
  20431. line-height: 2pc;
  20432. width: 90%;
  20433. margin: 0 auto;
  20434. padding-top: 30px;
  20435. text-indent: 30px;
  20436. overflow: auto;
  20437. height: 200px;
  20438. }
  20439. .score_box >>> .el-rate {
  20440. margin-left: 10px;
  20441. }
  20442. .dialog_change >>> .el-dialog {
  20443. border-radius: 5px;
  20444. }
  20445. .dialog_change >>> .el-dialog__header {
  20446. background: #f2f2f2;
  20447. text-align: center;
  20448. }
  20449. .dialog_change >>> .el-dialog__title {
  20450. line-height: 5px;
  20451. }
  20452. .dialog_change >>> .el-dialog__body {
  20453. background: #fff;
  20454. padding: 10px 20px;
  20455. }
  20456. .score_box {
  20457. display: flex;
  20458. align-items: center;
  20459. margin-bottom: 18px;
  20460. margin-top: 20px;
  20461. }
  20462. .up_photo {
  20463. width: 120px;
  20464. cursor: pointer;
  20465. margin-top: 10px;
  20466. }
  20467. .up_photo2 {
  20468. width: 180px;
  20469. box-sizing: border-box;
  20470. min-width: 180px;
  20471. height: 180px;
  20472. max-height: 180px;
  20473. min-height: 180px;
  20474. cursor: pointer;
  20475. display: flex;
  20476. flex-direction: column;
  20477. align-items: center;
  20478. justify-content: center;
  20479. background: rgb(242, 246, 255);
  20480. /* padding: 25px; */
  20481. margin-bottom: 10px;
  20482. }
  20483. .up_photo2 img {
  20484. width: 50%;
  20485. height: auto;
  20486. }
  20487. .up_photo2 span {
  20488. color: #898989;
  20489. }
  20490. .plworkBox {
  20491. display: flex;
  20492. align-items: center;
  20493. margin-top: 10px;
  20494. flex-wrap: wrap;
  20495. }
  20496. .upload_send {
  20497. margin: 30px auto 30px;
  20498. width: 60%;
  20499. background: #3681fc;
  20500. text-align: center;
  20501. height: 35px;
  20502. line-height: 35px;
  20503. color: #fff;
  20504. border-radius: 5px;
  20505. cursor: pointer;
  20506. }
  20507. .marginT {
  20508. margin-top: 20px;
  20509. }
  20510. .cd_content_steps {
  20511. display: flex;
  20512. width: 90%;
  20513. justify-content: space-around;
  20514. border-top: 1px solid #eeeeee;
  20515. }
  20516. .cd_steps_box {
  20517. display: flex;
  20518. justify-content: center;
  20519. align-items: center;
  20520. flex-direction: column;
  20521. cursor: pointer;
  20522. }
  20523. .first {
  20524. display: flex;
  20525. align-items: center;
  20526. margin: 15px 0 20px 0;
  20527. font-size: 20px;
  20528. }
  20529. .first > div:nth-child(2) {
  20530. font-size: 16px !important;
  20531. padding-left: 10px;
  20532. line-height: 26px;
  20533. box-sizing: border-box;
  20534. }
  20535. .blue_box_one {
  20536. text-align: center;
  20537. color: #fff;
  20538. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20539. border-radius: 7px;
  20540. margin: 10px;
  20541. cursor: pointer;
  20542. width: 95%;
  20543. height: 45px;
  20544. display: flex;
  20545. flex-direction: row;
  20546. justify-content: flex-start;
  20547. align-items: center;
  20548. }
  20549. .blue_box_one > div:nth-child(1) {
  20550. line-height: 30px;
  20551. margin: 0 5px 0 10px;
  20552. width: 30%;
  20553. min-width: 70px;
  20554. border-radius: 4px;
  20555. }
  20556. .blue_box_one > div:nth-child(2) {
  20557. white-space: nowrap;
  20558. text-overflow: ellipsis;
  20559. overflow: hidden;
  20560. word-break: break-all;
  20561. width: 70%;
  20562. text-align: left;
  20563. margin-right: 10px;
  20564. max-width: calc(100% - 85px);
  20565. }
  20566. .blue_box_one > div:nth-child(2):hover {
  20567. overflow: hidden;
  20568. text-overflow: ellipsis;
  20569. white-space: nowrap;
  20570. cursor: pointer;
  20571. }
  20572. .upFile {
  20573. margin: 0 auto;
  20574. width: 120px;
  20575. background: #3681fc;
  20576. color: #fff;
  20577. height: 30px;
  20578. text-align: center;
  20579. line-height: 30px;
  20580. border-radius: 5px;
  20581. font-size: 14px;
  20582. cursor: pointer;
  20583. }
  20584. .courseTitle {
  20585. width: 85%;
  20586. margin: 10px auto 26px auto;
  20587. display: flex;
  20588. flex-direction: row;
  20589. align-items: center;
  20590. justify-content: space-between;
  20591. text-align: center;
  20592. }
  20593. .courseTitle .ctitle {
  20594. font-size: 20px;
  20595. font-weight: bold;
  20596. color: #0e1e33;
  20597. white-space: nowrap;
  20598. overflow: hidden;
  20599. text-overflow: ellipsis;
  20600. }
  20601. .inviteBox {
  20602. font-size: 14px;
  20603. /* margin-top: 5px; */
  20604. color: #00000099;
  20605. text-align: center;
  20606. }
  20607. .courseTitle >>> .el-tooltip {
  20608. width: 100%;
  20609. white-space: nowrap;
  20610. overflow: hidden;
  20611. text-overflow: ellipsis;
  20612. word-break: break-word;
  20613. }
  20614. .ml {
  20615. margin-left: 20px;
  20616. color: #5b7dba;
  20617. border-left: 3px solid #5b7dba;
  20618. padding-left: 5px;
  20619. font-weight: bold;
  20620. }
  20621. .return {
  20622. width: 2rem;
  20623. height: 2rem;
  20624. cursor: pointer;
  20625. }
  20626. .return > img {
  20627. width: 100%;
  20628. height: 100%;
  20629. }
  20630. .returnBtn {
  20631. width: 86px;
  20632. height: 36px;
  20633. background: #3681fc;
  20634. border-radius: 4px;
  20635. color: #fff;
  20636. text-align: center;
  20637. line-height: 36px;
  20638. margin-right: 20px;
  20639. cursor: pointer;
  20640. font-size: 14px;
  20641. font-weight: 400;
  20642. display: flex;
  20643. flex-direction: row;
  20644. flex-wrap: nowrap;
  20645. align-items: center;
  20646. justify-content: center;
  20647. }
  20648. .reBtnIcon,
  20649. .commentIcon,
  20650. .vedioIcon,
  20651. .vedioIcon1 {
  20652. /* width: 36px; */
  20653. height: 36px;
  20654. border-radius: 4px;
  20655. position: relative;
  20656. /* background: #e0eafb; */
  20657. background: #0061ff;
  20658. cursor: pointer;
  20659. margin-right: 12px;
  20660. display: flex;
  20661. align-items: center;
  20662. padding: 0 10px;
  20663. box-sizing: border-box;
  20664. font-size: 14px;
  20665. color: #fff;
  20666. }
  20667. .reBtnIcon::before,
  20668. .commentIcon::before,
  20669. .vedioIcon::before,
  20670. .vedioIcon1::before {
  20671. content: "";
  20672. display: block;
  20673. background-size: 100% 100%;
  20674. background-repeat: no-repeat;
  20675. width: 20px;
  20676. height: 20px;
  20677. margin-right: 5px;
  20678. /* position: absolute; */
  20679. /* top: 8px;
  20680. left: 8px; */
  20681. }
  20682. .vedioIcon1 {
  20683. background: #f63564;
  20684. }
  20685. .reBtnIcon::before {
  20686. background-image: url("../assets/icon/newIcons/refresh.png");
  20687. }
  20688. .commentIcon::before {
  20689. background-image: url("../assets/icon/newIcons/comment.png");
  20690. }
  20691. .vedioIcon::before {
  20692. background-image: url("../assets/icon/newIcons/transcribe.png");
  20693. }
  20694. .vedioIcon1::before {
  20695. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20696. background-image: url("../assets/icon/newIcons/transcribe.png");
  20697. }
  20698. .tool {
  20699. display: flex;
  20700. flex-direction: column;
  20701. flex-wrap: nowrap;
  20702. width: 13%;
  20703. margin: 0 30px;
  20704. align-items: center;
  20705. position: relative;
  20706. padding: 10px 25px;
  20707. cursor: pointer;
  20708. }
  20709. .whiteBIcon {
  20710. width: 150px;
  20711. }
  20712. .whiteBIcon > img {
  20713. width: 100%;
  20714. height: 100%;
  20715. }
  20716. .mask {
  20717. background-color: rgba(0, 0, 0, 0);
  20718. position: fixed;
  20719. top: 0;
  20720. left: 0;
  20721. width: 100%;
  20722. height: 100%;
  20723. z-index: 20000;
  20724. display: flex;
  20725. align-items: center;
  20726. justify-content: center;
  20727. }
  20728. .progressBox {
  20729. width: 500px;
  20730. height: 180px;
  20731. background: #fff;
  20732. border-radius: 10px;
  20733. box-shadow: 0 0 6px 1px #bfbfbf;
  20734. display: flex;
  20735. align-items: center;
  20736. justify-content: center;
  20737. flex-direction: column;
  20738. position: relative;
  20739. color: #6c6c6c;
  20740. }
  20741. .progressBox >>> .el-progress-bar__outer {
  20742. background-color: #d1dfff !important;
  20743. }
  20744. .progressBox .lbox {
  20745. height: 50px;
  20746. font-size: 19px;
  20747. display: flex;
  20748. align-items: center;
  20749. color: #747474;
  20750. }
  20751. .progressBox .lbox img {
  20752. width: 40px;
  20753. margin-right: 20px;
  20754. }
  20755. .closeCss {
  20756. position: absolute;
  20757. top: 8px;
  20758. right: 8px;
  20759. cursor: pointer;
  20760. width: 20px;
  20761. height: 20px;
  20762. }
  20763. .closeCss > img {
  20764. width: 100%;
  20765. height: 100%;
  20766. }
  20767. .uploadVedio {
  20768. display: flex;
  20769. flex-direction: column;
  20770. flex-wrap: nowrap;
  20771. justify-content: center;
  20772. align-items: center;
  20773. margin: 0 15px 10px 0;
  20774. }
  20775. .uploadVedio > img {
  20776. width: 30px;
  20777. height: 30px;
  20778. }
  20779. .uploadVedio > span {
  20780. white-space: nowrap;
  20781. overflow: hidden;
  20782. text-overflow: ellipsis;
  20783. width: 75px;
  20784. margin-top: 7px;
  20785. }
  20786. .picName {
  20787. white-space: nowrap;
  20788. overflow: hidden;
  20789. text-overflow: ellipsis;
  20790. width: 75px;
  20791. margin-top: 7px;
  20792. }
  20793. .new_top {
  20794. display: flex;
  20795. background: #fff;
  20796. flex-direction: row;
  20797. justify-content: flex-start;
  20798. align-items: center;
  20799. height: 60px;
  20800. position: fixed;
  20801. top: 20px;
  20802. left: 22%;
  20803. width: 77%;
  20804. z-index: 999;
  20805. border-radius: 12px 12px 0 0;
  20806. border-bottom: 1px solid #cad1dc;
  20807. padding: 10px 0;
  20808. }
  20809. .new_topFixed {
  20810. width: 100%;
  20811. height: 40px;
  20812. position: fixed;
  20813. top: 0px;
  20814. display: block;
  20815. background: #f2f2f2;
  20816. z-index: 998;
  20817. }
  20818. .before {
  20819. position: absolute;
  20820. background: #c3dad4;
  20821. width: 6px;
  20822. height: 100%;
  20823. }
  20824. .courseIndex {
  20825. display: flex;
  20826. flex-direction: row;
  20827. align-items: center;
  20828. width: calc(100% - 745px);
  20829. }
  20830. .courseIndex > div:nth-child(1) {
  20831. margin: 0 0 0 10px;
  20832. font-size: 20px;
  20833. min-width: 100px;
  20834. font-weight: bold;
  20835. border-left: 4px solid #3363b9;
  20836. height: 32px;
  20837. text-align: center;
  20838. line-height: 35px;
  20839. }
  20840. .courseIndex > div:nth-child(2) {
  20841. font-size: 20px;
  20842. /* width: 300px; */
  20843. max-width: calc(100% - 105px);
  20844. white-space: nowrap;
  20845. overflow: hidden;
  20846. text-overflow: ellipsis;
  20847. }
  20848. .courseIndex > div:nth-child(3) {
  20849. border-bottom: 1px solid #d7d7d7;
  20850. padding-bottom: 5px;
  20851. background: #3681fc;
  20852. width: 55px;
  20853. min-width: 55px;
  20854. border-radius: 5px;
  20855. color: #fff;
  20856. text-align: center;
  20857. height: 20px;
  20858. line-height: 26px;
  20859. font-size: 14px;
  20860. margin: 0 0 0 10px;
  20861. }
  20862. .course_text {
  20863. padding: 20px 0 0 15px;
  20864. text-indent: 30px;
  20865. width: 80%;
  20866. min-height: 20px;
  20867. }
  20868. .vedioList {
  20869. background: #f2f2f2;
  20870. border: 1px solid #ececec;
  20871. /* width: 38.8%; */
  20872. /* width: 300px; */
  20873. width: 100%;
  20874. height: 445px;
  20875. border-radius: 10px;
  20876. overflow: hidden;
  20877. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20878. }
  20879. .vedioNav {
  20880. margin: 10px 0 0 15px;
  20881. border-bottom: 1px solid #d7d7d7;
  20882. padding-bottom: 5px;
  20883. background: #3681fc;
  20884. width: 55px;
  20885. min-width: 55px;
  20886. border-radius: 5px;
  20887. color: #fff;
  20888. text-align: center;
  20889. height: 20px;
  20890. line-height: 26px;
  20891. font-size: 14px;
  20892. }
  20893. .queTop {
  20894. display: flex;
  20895. padding: 20px 0 20px 30px;
  20896. width: 100%;
  20897. flex-direction: row;
  20898. justify-content: flex-start;
  20899. align-items: center;
  20900. box-sizing: border-box;
  20901. }
  20902. .queTopTitle {
  20903. display: flex;
  20904. flex-direction: row;
  20905. flex-wrap: nowrap;
  20906. align-items: center;
  20907. font-weight: bold;
  20908. font-size: 20px;
  20909. color: rgb(14, 30, 51);
  20910. }
  20911. .queTopTitle::before {
  20912. content: "";
  20913. width: 2px;
  20914. height: 22px;
  20915. background: #3681fc;
  20916. border-radius: 3px;
  20917. display: block;
  20918. margin: 2px 6px 0 0;
  20919. }
  20920. .queTopRight {
  20921. display: flex;
  20922. flex-direction: row;
  20923. flex-wrap: nowrap;
  20924. align-items: center;
  20925. }
  20926. .queTopClose {
  20927. margin-right: 20px;
  20928. cursor: pointer;
  20929. position: relative;
  20930. display: flex;
  20931. }
  20932. .closeImg,
  20933. .openImg {
  20934. width: 25px;
  20935. height: 25px;
  20936. position: absolute;
  20937. left: -20px;
  20938. top: -1px;
  20939. }
  20940. .closeImg > img,
  20941. .openImg > img {
  20942. width: 100%;
  20943. height: 100%;
  20944. }
  20945. .question {
  20946. width: 40px;
  20947. margin-right: 10px;
  20948. margin-top: 7px;
  20949. }
  20950. .queTitle {
  20951. margin-left: 5px;
  20952. font-size: 25px;
  20953. display: flex;
  20954. align-items: center;
  20955. }
  20956. .addEditor {
  20957. width: 100px;
  20958. height: 30px;
  20959. background: #42cda6;
  20960. color: #fff;
  20961. border-radius: 5px;
  20962. text-align: center;
  20963. line-height: 30px;
  20964. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20965. cursor: pointer;
  20966. }
  20967. /* .vedioName {
  20968. cursor: pointer;
  20969. margin: 0px 0px 10px 5px;
  20970. white-space: nowrap;
  20971. overflow: hidden;
  20972. text-overflow: ellipsis;
  20973. width: 100%;
  20974. } */
  20975. .vedioTime {
  20976. width: 35px;
  20977. position: absolute;
  20978. color: #fff;
  20979. bottom: 0px;
  20980. right: 0px;
  20981. text-align: center;
  20982. background: #46411f;
  20983. height: 20px;
  20984. font-size: 14px;
  20985. line-height: 20px;
  20986. }
  20987. .homework {
  20988. width: 200px;
  20989. display: flex;
  20990. flex-direction: column;
  20991. flex-wrap: nowrap;
  20992. align-items: center;
  20993. cursor: pointer;
  20994. }
  20995. .homebox {
  20996. display: flex;
  20997. flex-wrap: wrap;
  20998. flex-direction: row;
  20999. justify-content: flex-start;
  21000. align-items: center;
  21001. padding: 15px 0;
  21002. }
  21003. .isChooseActive {
  21004. color: #3681fc !important;
  21005. font-weight: bold !important;
  21006. }
  21007. .chooseWho {
  21008. display: flex;
  21009. width: 100%;
  21010. flex-direction: row;
  21011. flex-wrap: nowrap;
  21012. justify-content: flex-start;
  21013. padding-bottom: 10px;
  21014. }
  21015. .chooseWho > div {
  21016. cursor: pointer;
  21017. padding-bottom: 10px;
  21018. margin: 0 30px 0 0;
  21019. font-weight: 400;
  21020. color: #0e1e33;
  21021. }
  21022. .addPoint > div > img {
  21023. cursor: pointer;
  21024. width: 85px;
  21025. border-radius: 15px;
  21026. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21027. }
  21028. .addPoint > div {
  21029. display: flex;
  21030. flex-direction: column;
  21031. flex-wrap: nowrap;
  21032. align-items: center;
  21033. }
  21034. .isBorder > div {
  21035. margin: 0 0 10px 0;
  21036. align-items: flex-start !important;
  21037. }
  21038. .noiframeBox {
  21039. display: flex;
  21040. flex-wrap: wrap;
  21041. }
  21042. .iframeBox iframe {
  21043. width: 100%;
  21044. height: 800px;
  21045. border: none;
  21046. margin-bottom: 20px;
  21047. border: 1px solid #ccc;
  21048. }
  21049. .upload_toolBtn {
  21050. background: #3681fc;
  21051. color: #fff;
  21052. width: 110px;
  21053. text-align: center;
  21054. height: 35px;
  21055. line-height: 35px;
  21056. font-size: 14px;
  21057. border-radius: 5px;
  21058. cursor: pointer;
  21059. position: absolute;
  21060. right: 10px;
  21061. bottom: 0;
  21062. }
  21063. .binfo_input,
  21064. .pj {
  21065. font: inherit;
  21066. color: currentColor;
  21067. width: 100%;
  21068. margin: 0;
  21069. padding: 15px 14px;
  21070. display: block;
  21071. min-width: 0;
  21072. outline: none;
  21073. box-sizing: content-box;
  21074. background: none;
  21075. -webkit-tap-highlight-color: transparent;
  21076. border: 1px solid rgba(0, 0, 0, 0.23);
  21077. border-radius: 4px;
  21078. box-sizing: border-box;
  21079. resize: none;
  21080. }
  21081. .binfo_input:focus-visible {
  21082. border: 1px solid rgba(61, 103, 188);
  21083. }
  21084. .dialog_diy >>> .el-dialog__header,
  21085. .dialog_diy1 >>> .el-dialog__header {
  21086. background: #454545 !important;
  21087. padding: 15px 20px;
  21088. }
  21089. .dialog_diy >>> .el-dialog__title,
  21090. .dialog_diy1 >>> .el-dialog__title {
  21091. color: #fff;
  21092. }
  21093. .dialog_diy >>> .el-dialog__headerbtn,
  21094. .dialog_diy1 >>> .el-dialog__headerbtn {
  21095. top: 19px;
  21096. }
  21097. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21098. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21099. color: #fff;
  21100. }
  21101. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21102. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21103. color: #fff;
  21104. }
  21105. .dialog_diy1 >>> .el-dialog__body {
  21106. padding: 0;
  21107. }
  21108. .dialog_diy >>> .el-dialog__body,
  21109. .dialog_diy >>> .el-dialog__footer,
  21110. .dialog_diy1 >>> .el-dialog__footer {
  21111. background: #fafafa;
  21112. }
  21113. .a_addBox {
  21114. padding: 0 0 0 15px;
  21115. }
  21116. .a_add_box {
  21117. padding: 10px;
  21118. background: #fff;
  21119. margin-bottom: 10px;
  21120. border-radius: 5px;
  21121. box-shadow: 0 0 5px 0 #d5d5d5;
  21122. }
  21123. .a_add_head {
  21124. display: flex;
  21125. align-items: flex-start;
  21126. /* justify-content: space-between; */
  21127. flex-direction: column;
  21128. /* flex-direction: row; */
  21129. margin: 10px 0 20px 0;
  21130. font-size: 18px;
  21131. width: 100%;
  21132. }
  21133. .askIndex {
  21134. background: #3681fc;
  21135. border-radius: 50%;
  21136. color: #fff;
  21137. width: 25px;
  21138. height: 25px;
  21139. min-width: 25px;
  21140. min-height: 25px;
  21141. text-align: center;
  21142. line-height: 25px;
  21143. margin-right: 5px;
  21144. }
  21145. .a_add_head .a_add_head_input {
  21146. width: 300px;
  21147. }
  21148. .a_add_head .a_add_head_div {
  21149. display: flex;
  21150. align-items: center;
  21151. justify-content: space-between;
  21152. }
  21153. .a_add_body {
  21154. display: flex;
  21155. align-items: center;
  21156. }
  21157. .a_add_input {
  21158. display: flex;
  21159. align-items: center;
  21160. flex-wrap: wrap;
  21161. width: 100%;
  21162. }
  21163. .a_add_input >>> .el-radio-group,
  21164. .a_add_input >>> .el-checkbox-group {
  21165. width: 100%;
  21166. }
  21167. .a_add_input >>> .el-radio,
  21168. .a_add_input >>> .el-checkbox {
  21169. display: flex;
  21170. flex-direction: row;
  21171. flex-wrap: nowrap;
  21172. align-items: center;
  21173. padding: 15px 0;
  21174. }
  21175. .a_add_input >>> .el-radio:not(:last-child),
  21176. .a_add_input >>> .el-checkbox:not(:last-child) {
  21177. width: 100%;
  21178. border-bottom: 1px solid #efefef;
  21179. }
  21180. .redioStyle >>> .el-radio__label {
  21181. font-size: 18px;
  21182. }
  21183. .redioStyle >>> .el-radio__label > span,
  21184. .redioStyle >>> .el-checkbox__label > span {
  21185. word-break: break-all;
  21186. white-space: normal;
  21187. }
  21188. .redioStyle >>> .el-checkbox__label {
  21189. font-size: 18px;
  21190. }
  21191. .toolHeng2 {
  21192. width: 100%;
  21193. padding-left: 37px;
  21194. box-sizing: border-box;
  21195. }
  21196. .workNav {
  21197. font-size: 20px;
  21198. font-weight: bold;
  21199. color: #0e1e33;
  21200. display: flex;
  21201. flex-direction: row;
  21202. flex-wrap: nowrap;
  21203. align-items: center;
  21204. padding: 15px 0 15px 0;
  21205. }
  21206. .workNav::before {
  21207. content: "";
  21208. width: 2px;
  21209. height: 22px;
  21210. background: #3681fc;
  21211. border-radius: 3px;
  21212. display: block;
  21213. margin: 2px 6px 0 0;
  21214. }
  21215. .toolHeng {
  21216. display: flex;
  21217. flex-direction: row;
  21218. flex-wrap: wrap;
  21219. justify-content: flex-start;
  21220. align-items: center;
  21221. width: 100%;
  21222. }
  21223. .toolHeng > div {
  21224. padding-left: 20px;
  21225. }
  21226. .isWidth {
  21227. width: 20%;
  21228. }
  21229. .textTitle {
  21230. display: flex;
  21231. flex-direction: row;
  21232. flex-wrap: nowrap;
  21233. align-items: center;
  21234. width: 95%;
  21235. }
  21236. .textTitle >>> .el-form-item__label {
  21237. font-size: 22px;
  21238. color: #918f8f;
  21239. width: 100px;
  21240. }
  21241. .textTitle >>> .el-form-item__content {
  21242. width: calc(100% - 100px);
  21243. }
  21244. .textCss >>> .el-dialog {
  21245. width: 800px !important;
  21246. height: 400px;
  21247. background: #fafafa;
  21248. }
  21249. .textCss >>> .el-dialog__body {
  21250. margin: 55px 8% 0 8%;
  21251. padding: 0 !important;
  21252. }
  21253. .textCss >>> .el-dialog__footer {
  21254. padding-top: 38px;
  21255. }
  21256. .toolsCss >>> .el-dialog__body {
  21257. padding: 20px;
  21258. }
  21259. .lineCss >>> .el-dialog__body {
  21260. display: flex;
  21261. flex-direction: row;
  21262. align-items: center;
  21263. justify-content: center;
  21264. }
  21265. .newNav {
  21266. display: flex;
  21267. flex-direction: row;
  21268. align-items: baseline;
  21269. justify-content: flex-start;
  21270. }
  21271. .navListItem {
  21272. width: calc(100% - 20px);
  21273. height: 50px;
  21274. margin: 0px auto 10px;
  21275. display: flex;
  21276. flex-direction: row;
  21277. flex-wrap: nowrap;
  21278. align-items: center;
  21279. justify-content: space-between;
  21280. background: #f0f4fa;
  21281. border-radius: 6px 6px 6px 6px;
  21282. }
  21283. .navText {
  21284. cursor: pointer;
  21285. white-space: nowrap;
  21286. overflow: hidden;
  21287. text-overflow: ellipsis;
  21288. width: 220px;
  21289. padding: 0 10px;
  21290. font-weight: 400;
  21291. color: #0e1e33;
  21292. }
  21293. .downIcon {
  21294. width: 20px;
  21295. min-width: 20px;
  21296. height: 20px;
  21297. margin-right: 15px;
  21298. cursor: pointer;
  21299. }
  21300. .downIcon > img {
  21301. width: 100%;
  21302. height: 100%;
  21303. }
  21304. .noVedio {
  21305. display: flex;
  21306. flex-direction: row;
  21307. justify-content: center;
  21308. align-content: center;
  21309. }
  21310. .noNavText {
  21311. cursor: pointer;
  21312. margin: 0px 0px 10px 5px;
  21313. width: 112px;
  21314. }
  21315. .listNoVedio {
  21316. margin: 0 0 0 30px;
  21317. width: 97%;
  21318. }
  21319. .video-player >>> .video-js {
  21320. height: 100%;
  21321. }
  21322. .hangVedioList {
  21323. width: 90% !important;
  21324. height: 150px !important;
  21325. margin: 20px 0 0 30px;
  21326. }
  21327. .hangVedio {
  21328. width: 100%;
  21329. height: 170px !important;
  21330. align-items: flex-start !important;
  21331. }
  21332. .hangHand {
  21333. height: 150px !important;
  21334. }
  21335. .twoChild {
  21336. width: 95%;
  21337. margin: 10px;
  21338. border-radius: 5px;
  21339. background: #f2f2f2;
  21340. display: flex;
  21341. flex-direction: column;
  21342. flex-wrap: nowrap;
  21343. justify-content: flex-start;
  21344. align-items: flex-start;
  21345. transition: all 0.5s;
  21346. overflow: hidden;
  21347. height: 0;
  21348. background: #e7f3ff;
  21349. }
  21350. .twoChild > div:nth-child(1) {
  21351. margin-top: 5px;
  21352. }
  21353. .navChild {
  21354. width: 100%;
  21355. cursor: pointer;
  21356. margin-bottom: 10px;
  21357. position: relative;
  21358. }
  21359. .navChild img {
  21360. position: absolute;
  21361. right: 11px;
  21362. width: 15px;
  21363. top: 50%;
  21364. transform: translateY(-50%);
  21365. }
  21366. .navActive,
  21367. .toolActive {
  21368. height: auto !important;
  21369. overflow: auto !important;
  21370. /* padding-bottom: 16px; */
  21371. }
  21372. .toolActive {
  21373. padding: 0;
  21374. }
  21375. .navTask {
  21376. display: flex;
  21377. flex-direction: row;
  21378. flex-wrap: nowrap;
  21379. align-items: center;
  21380. align-content: flex-start;
  21381. height: 40px;
  21382. justify-content: flex-start;
  21383. padding: 0 10px;
  21384. width: 100%;
  21385. box-sizing: border-box;
  21386. }
  21387. .navTaskname {
  21388. white-space: nowrap;
  21389. text-overflow: ellipsis;
  21390. overflow: hidden;
  21391. word-break: break-all;
  21392. padding-left: 5px;
  21393. }
  21394. .openTaskActive {
  21395. /* background-color: #e0eafb !important;
  21396. color: #0061ff; */
  21397. color:#fff;
  21398. background: rgb(55, 129, 252) !important;
  21399. }
  21400. .iframeName {
  21401. margin: 5px 0;
  21402. border-left: 4px solid #41c4a4;
  21403. padding-left: 4px;
  21404. }
  21405. .toolTitle {
  21406. margin: 0px 0px 20px;
  21407. font-size: 20px;
  21408. font-weight: 500;
  21409. border-left: 4px solid #41c4a4;
  21410. padding-left: 4px;
  21411. }
  21412. .cru_selectBox {
  21413. overflow: auto;
  21414. width: 95%;
  21415. margin: 17px auto 0;
  21416. height: calc(100% - 40px - 21px - 20px - 17px);
  21417. background: #fff;
  21418. border-radius: 8px;
  21419. }
  21420. .cru_selectBox::-webkit-scrollbar,
  21421. .study_top::-webkit-scrollbar,
  21422. .textContent::-webkit-scrollbar {
  21423. /*滚动条整体样式*/
  21424. width: 6px;
  21425. /*高宽分别对应横竖滚动条的尺寸*/
  21426. height: 6px;
  21427. }
  21428. /*定义滚动条轨道 内阴影+圆角*/
  21429. .cru_selectBox::-webkit-scrollbar-track,
  21430. .study_top::-webkit-scrollbar-track,
  21431. .textContent::-webkit-scrollbar {
  21432. border-radius: 10px;
  21433. background-color: #b8bdc9;
  21434. }
  21435. /*定义滑块 内阴影+圆角*/
  21436. .cru_selectBox::-webkit-scrollbar-thumb,
  21437. .study_top::-webkit-scrollbar-thumb,
  21438. .textContent::-webkit-scrollbar-thumb {
  21439. border-radius: 10px;
  21440. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21441. background-color: #2c5ab3;
  21442. }
  21443. .vedioBox {
  21444. border-radius: 0 0 20px 20px;
  21445. background: #fff;
  21446. overflow: auto;
  21447. }
  21448. .taskBox {
  21449. width: 98%;
  21450. background: #f0f4fa;
  21451. margin: 10px auto;
  21452. padding: 0 10px;
  21453. border-radius: 4px;
  21454. box-sizing: border-box;
  21455. }
  21456. .vedioTaskBox {
  21457. width: 100%;
  21458. display: flex;
  21459. flex-direction: row;
  21460. flex-wrap: nowrap;
  21461. align-items: flex-start;
  21462. position: relative;
  21463. }
  21464. .toolBox {
  21465. margin: 15px 0 0 25px;
  21466. display: flex;
  21467. position: relative;
  21468. padding: 18px 20px;
  21469. border-top-left-radius: 5px;
  21470. border-top-right-radius: 5px;
  21471. width: 90%;
  21472. }
  21473. .btnAll {
  21474. position: absolute;
  21475. right: 0;
  21476. display: flex;
  21477. flex-direction: row;
  21478. flex-wrap: nowrap;
  21479. align-items: center;
  21480. }
  21481. .btnLeft,
  21482. .btnRight {
  21483. display: flex;
  21484. flex-direction: row;
  21485. flex-wrap: nowrap;
  21486. align-items: center;
  21487. padding: 5px 0;
  21488. }
  21489. .btnLeft {
  21490. border-right: 1px solid #cad1dc;
  21491. }
  21492. .btnLeft > .custom-tooltip {
  21493. background: #3681fc;
  21494. color: #fff;
  21495. }
  21496. .last:hover {
  21497. background: #3383fa !important;
  21498. color: #fff;
  21499. border: 1px solid #3383fa !important;
  21500. }
  21501. .last,
  21502. .returnBtn1 {
  21503. width: 90px;
  21504. height: 36px;
  21505. background: #ffffff;
  21506. border-radius: 4px;
  21507. border: 1px solid #0061ff;
  21508. color: #0061ff;
  21509. cursor: pointer;
  21510. display: flex;
  21511. flex-direction: row;
  21512. flex-wrap: nowrap;
  21513. align-items: center;
  21514. justify-content: center;
  21515. margin-left: 12px;
  21516. }
  21517. .returnBtn1 {
  21518. background: #f0f4fa;
  21519. border-radius: 4px;
  21520. border: 1px solid #cad1dc;
  21521. margin: 0 12px;
  21522. }
  21523. .lastImg {
  21524. min-width: 15px;
  21525. width: 15px;
  21526. height: 15px;
  21527. display: flex;
  21528. }
  21529. .lastText {
  21530. padding: 0 5px 0 5px;
  21531. box-sizing: border-box;
  21532. font-size: 14px;
  21533. }
  21534. .lastImg > img {
  21535. width: 100%;
  21536. height: 100%;
  21537. }
  21538. /* .vedioTimeBox {
  21539. display: flex;
  21540. flex-direction: row;
  21541. align-items: center;
  21542. flex-wrap: nowrap;
  21543. position: relative;
  21544. } */
  21545. .navBox {
  21546. background: #fff;
  21547. height: calc(100% - 40px);
  21548. overflow-y: auto;
  21549. overflow-x: hidden;
  21550. }
  21551. .worksBox {
  21552. margin: 0 0 10px 25px;
  21553. border-bottom: 1px solid #eeeeee;
  21554. padding: 18px 20px;
  21555. border-radius: 4px;
  21556. width: 90%;
  21557. }
  21558. .worksBTitle {
  21559. font-size: 20px;
  21560. padding-bottom: 15px;
  21561. border-bottom: 1px solid #eeeeee;
  21562. display: flex;
  21563. align-items: center;
  21564. }
  21565. .greenBox {
  21566. width: 5px;
  21567. height: 30px;
  21568. background: #63b6fa;
  21569. margin-right: 5px;
  21570. }
  21571. .worksDetailBox {
  21572. display: flex;
  21573. width: 100%;
  21574. flex-direction: row;
  21575. flex-wrap: wrap;
  21576. align-items: flex-end;
  21577. justify-content: flex-start;
  21578. padding: 15px 5px;
  21579. box-sizing: border-box;
  21580. }
  21581. .works {
  21582. display: flex;
  21583. flex-direction: column;
  21584. flex-wrap: nowrap;
  21585. align-items: flex-start;
  21586. justify-content: flex-start;
  21587. align-content: center;
  21588. max-width: 240px;
  21589. width: calc(100% / 3 - 10px);
  21590. height: auto;
  21591. margin-right: 10px;
  21592. margin-bottom: 10px;
  21593. overflow: hidden;
  21594. height: 140px;
  21595. box-shadow: 0 0 6px 1px #dfdada;
  21596. border-radius: 15px;
  21597. }
  21598. .workImg {
  21599. width: 100%;
  21600. /* height: calc(100% - 40px); */
  21601. height: 105px;
  21602. position: relative;
  21603. }
  21604. .workImg > img {
  21605. width: 100%;
  21606. height: 100%;
  21607. object-fit: contain;
  21608. cursor: pointer;
  21609. }
  21610. .worksName {
  21611. height: 40px;
  21612. line-height: 40px;
  21613. display: flex;
  21614. width: 100%;
  21615. flex-direction: row;
  21616. flex-wrap: nowrap;
  21617. justify-content: space-between;
  21618. align-items: center;
  21619. margin: 0 0 0 10px;
  21620. }
  21621. .worksName > div:nth-child(1) {
  21622. width: 110px;
  21623. white-space: nowrap;
  21624. overflow: hidden;
  21625. text-overflow: ellipsis;
  21626. }
  21627. .worksName > div:nth-child(2) {
  21628. color: #b7b4b5;
  21629. }
  21630. .noWorksS {
  21631. padding: 15px 0;
  21632. display: flex;
  21633. flex-direction: row;
  21634. flex-wrap: wrap;
  21635. align-items: center;
  21636. justify-content: flex-start;
  21637. }
  21638. .noWorksName,
  21639. .isWorksName,
  21640. .isWorksName2 {
  21641. background: #ddebf8;
  21642. color: #000;
  21643. width: 90px;
  21644. height: 25px;
  21645. text-align: center;
  21646. line-height: 25px;
  21647. border-radius: 4px;
  21648. margin: 10px 15px 10px 0;
  21649. white-space: nowrap;
  21650. overflow: hidden;
  21651. padding: 5px;
  21652. text-overflow: ellipsis;
  21653. cursor: pointer;
  21654. border: 1px solid #ddebf8;
  21655. }
  21656. .noWorksName {
  21657. background: #fff;
  21658. color: #0061ff;
  21659. border: 1px solid #0061ff;
  21660. }
  21661. .noWorksName > span{
  21662. max-width: 100%;
  21663. display: block;
  21664. overflow: hidden;
  21665. text-overflow: ellipsis;
  21666. white-space: nowrap;
  21667. }
  21668. .isWorksName2 {
  21669. width: 100px;
  21670. height: 40px;
  21671. line-height: 40px;
  21672. position: relative;
  21673. background: #dae6f9;
  21674. }
  21675. .isWorksName {
  21676. background: #e7ebf1 !important;
  21677. width: 100px;
  21678. height: 40px;
  21679. line-height: 40px;
  21680. position: relative;
  21681. color: #acb4bf;
  21682. border: 1px solid #cad1dc !important;
  21683. }
  21684. .isSelectName,
  21685. .noWorksName:hover {
  21686. background: #3383fa !important;
  21687. color: #fff !important;
  21688. border: 1px solid #3383fa !important;
  21689. }
  21690. .title {
  21691. background: #1e5cc9;
  21692. /* width: 98%; */
  21693. height: 45px;
  21694. color: #fff;
  21695. line-height: 45px;
  21696. padding-left: 20px;
  21697. box-sizing: border-box;
  21698. }
  21699. .textBox {
  21700. font-size: 20px;
  21701. width: 90%;
  21702. display: flex;
  21703. flex-direction: column;
  21704. align-items: center;
  21705. margin: 20px auto 0;
  21706. max-height: calc(100% - 75px);
  21707. overflow: auto;
  21708. }
  21709. .textContent {
  21710. font-size: 18px;
  21711. width: 95%;
  21712. max-width: 95%;
  21713. }
  21714. .answerBg {
  21715. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21716. background-size: 100% 100%;
  21717. width: 100%;
  21718. height: 100%;
  21719. color: #fff;
  21720. text-align: center;
  21721. display: flex;
  21722. flex-direction: column;
  21723. flex-wrap: nowrap;
  21724. align-items: center;
  21725. position: relative;
  21726. justify-content: center;
  21727. }
  21728. .answerBg > div:nth-child(1) {
  21729. /* font-size: 22px;
  21730. padding: 25px 0 10px; */
  21731. }
  21732. .answerContent {
  21733. width: 215px;
  21734. max-height: 60px;
  21735. word-break: break-all;
  21736. text-align: center;
  21737. /* white-space: nowrap; */
  21738. overflow: hidden;
  21739. text-overflow: ellipsis;
  21740. /* padding: 23px 0 0; */
  21741. -webkit-line-clamp: 3;
  21742. -webkit-box-orient: vertical;
  21743. display: -webkit-box;
  21744. font-size: 15px;
  21745. cursor: pointer;
  21746. }
  21747. .elist_input_box {
  21748. display: flex;
  21749. align-items: flex-start;
  21750. flex-wrap: nowrap;
  21751. padding: 10px 0 15px 30px;
  21752. flex-direction: column;
  21753. }
  21754. .elist_input {
  21755. /* width: 40%; */
  21756. width: 45%;
  21757. margin: 20px;
  21758. }
  21759. .elist_input .elist_input_box input {
  21760. font: inherit;
  21761. color: currentColor;
  21762. width: 200px;
  21763. padding: 8px 14px;
  21764. display: block;
  21765. min-width: 0;
  21766. outline: none;
  21767. border: 1px solid rgba(0, 0, 0, 0.23);
  21768. border-radius: 4px;
  21769. box-sizing: border-box;
  21770. background: #fff;
  21771. margin: 0 20px 0 0;
  21772. }
  21773. .elist_input .elist_input_box span {
  21774. height: 36px;
  21775. line-height: 36px;
  21776. color: rgb(82, 82, 82);
  21777. }
  21778. .elist_input .elist_input_box .remove {
  21779. height: 20px;
  21780. width: 20px;
  21781. background-size: 100% 100%;
  21782. background-position: unset;
  21783. margin-left: 5px;
  21784. }
  21785. .elist_input_box >>> .el-rate {
  21786. display: flex;
  21787. height: 36px;
  21788. align-items: center;
  21789. }
  21790. .elist_input_box .elist_inptu_text {
  21791. min-height: 50px;
  21792. /* width: 500px;
  21793. max-height: 150px; */
  21794. width: 100%;
  21795. line-height: 50px;
  21796. color: rgb(82, 82, 82);
  21797. overflow: auto;
  21798. text-indent: 5px;
  21799. background: #f7f6f9;
  21800. border-radius: 10px;
  21801. }
  21802. .elist_input_box .elist_inptu_text input {
  21803. width: 500px;
  21804. }
  21805. .elist_input_box >>> .el-rate__icon {
  21806. font-size: 24px;
  21807. }
  21808. .isClick {
  21809. background: #4d9def;
  21810. }
  21811. .bzBox {
  21812. display: flex;
  21813. flex-direction: row;
  21814. align-items: center;
  21815. }
  21816. .bzBox .yCss {
  21817. width: 7px;
  21818. height: 7px;
  21819. background: #fff;
  21820. margin: 0 16px 0 6px;
  21821. border-radius: 50%;
  21822. border: 5px solid #3681fc;
  21823. z-index: 99;
  21824. }
  21825. .bzBox > div:nth-child(2) {
  21826. font-size: 18px;
  21827. font-weight: bold;
  21828. color: #0e1e33;
  21829. }
  21830. .navTitile {
  21831. padding: 0 0px 0 15px;
  21832. font-size: 16px;
  21833. font-weight: bold;
  21834. color: #0e1e33;
  21835. height: 40px;
  21836. line-height: 40px;
  21837. }
  21838. .isTypeOne {
  21839. width: 240px;
  21840. height: 170px;
  21841. /* border: 1px solid #f8f8f8; */
  21842. border-radius: 10px;
  21843. box-shadow: 0 0 6px 1px #dfdada;
  21844. }
  21845. .e_add_top {
  21846. display: flex;
  21847. justify-content: space-between;
  21848. padding: 10px 20px;
  21849. border-radius: 3px;
  21850. background: #fff;
  21851. }
  21852. .e_add_title2 {
  21853. display: flex;
  21854. align-items: center;
  21855. }
  21856. .e_add_title2 span {
  21857. width: 40px;
  21858. }
  21859. .e_add_title {
  21860. display: flex;
  21861. align-items: center;
  21862. color: #b8b8b8;
  21863. font-size: 18px;
  21864. position: relative;
  21865. height: 40px;
  21866. width: 100%;
  21867. }
  21868. .e_add_title span {
  21869. margin-right: 10px;
  21870. }
  21871. .e_add_title .el_input {
  21872. width: 300px;
  21873. }
  21874. .e_add_title >>> .el-input__inner {
  21875. width: 400px;
  21876. }
  21877. .e_add_btn {
  21878. }
  21879. .e_add_content {
  21880. display: flex;
  21881. width: 100%;
  21882. max-width: 650px;
  21883. height: 550px;
  21884. }
  21885. .e_add_list {
  21886. background: #fff;
  21887. height: 500px;
  21888. width: 210px;
  21889. position: relative;
  21890. margin: 15px 5px 0 0;
  21891. flex-shrink: 0;
  21892. display: flex;
  21893. flex-direction: column;
  21894. }
  21895. .e_add_list_title {
  21896. font-size: 20px;
  21897. width: 100%;
  21898. box-sizing: border-box;
  21899. padding: 15px 40px;
  21900. text-align: center;
  21901. border-bottom: 1px solid #eaeaea;
  21902. position: relative;
  21903. display: flex;
  21904. align-items: center;
  21905. justify-content: center;
  21906. height: 57px;
  21907. background: #f6f6f6;
  21908. }
  21909. .e_add_list_title span {
  21910. overflow: hidden;
  21911. white-space: nowrap;
  21912. text-overflow: ellipsis;
  21913. }
  21914. .e_add_list_title img {
  21915. position: absolute;
  21916. right: 15px;
  21917. width: 25px;
  21918. cursor: pointer;
  21919. top: 50%;
  21920. transform: translateY(-50%);
  21921. }
  21922. .e_add_list_body {
  21923. height: calc(100% - 187px);
  21924. overflow: auto;
  21925. }
  21926. .e_add_list_child {
  21927. width: 100%;
  21928. display: flex;
  21929. align-items: center;
  21930. justify-content: center;
  21931. position: relative;
  21932. box-sizing: border-box;
  21933. padding: 15px 40px;
  21934. text-align: center;
  21935. }
  21936. .e_add_list_child span {
  21937. overflow: hidden;
  21938. white-space: nowrap;
  21939. text-overflow: ellipsis;
  21940. cursor: pointer;
  21941. }
  21942. .e_add_list_child img {
  21943. position: absolute;
  21944. right: 10px;
  21945. width: 21px;
  21946. cursor: pointer;
  21947. top: 50%;
  21948. transform: translateY(-50%);
  21949. }
  21950. .e_add_list_child + .e_add_list_child {
  21951. border-top: 1px solid #eaeaea;
  21952. }
  21953. .e_add_list_child .active {
  21954. color: #409eff;
  21955. }
  21956. .e_add_list_btn {
  21957. position: absolute;
  21958. bottom: 0;
  21959. height: 50px;
  21960. background: rgb(120, 120, 254);
  21961. width: 100%;
  21962. color: #fff;
  21963. font-size: 16px;
  21964. text-align: center;
  21965. line-height: 50px;
  21966. cursor: pointer;
  21967. }
  21968. .e_add_list_detail {
  21969. position: absolute;
  21970. bottom: 0;
  21971. height: 130px;
  21972. background: rgb(120, 120, 254);
  21973. width: 100%;
  21974. color: #fff;
  21975. font-size: 16px;
  21976. display: flex;
  21977. align-items: center;
  21978. justify-content: center;
  21979. }
  21980. .e_add_list_detail textarea {
  21981. height: 90%;
  21982. width: 95%;
  21983. border: none;
  21984. resize: none;
  21985. outline: none;
  21986. padding: 5px;
  21987. box-sizing: border-box;
  21988. }
  21989. .e_add_list_pbox {
  21990. width: 100%;
  21991. max-width: 650px;
  21992. /* height: 600px; */
  21993. }
  21994. .e_add_list_pbox_title {
  21995. height: 50px;
  21996. background: #fff;
  21997. display: flex;
  21998. align-items: center;
  21999. width: 100%;
  22000. box-sizing: border-box;
  22001. padding: 0 20px;
  22002. }
  22003. .type_title {
  22004. font-size: 18px;
  22005. font-weight: 700;
  22006. }
  22007. .type_content {
  22008. font-size: 16px;
  22009. /* margin-left: 30px; */
  22010. }
  22011. .type_content span + span {
  22012. margin-left: 20px;
  22013. }
  22014. .type_content span {
  22015. cursor: pointer;
  22016. padding-bottom: 5px;
  22017. box-sizing: border-box;
  22018. }
  22019. .type_content .active {
  22020. color: #409eff;
  22021. border-bottom: 2px solid #409eff;
  22022. }
  22023. .e_add_list_pbox_content {
  22024. height: calc(100% - 50px);
  22025. display: flex;
  22026. align-items: center;
  22027. width: 100%;
  22028. background: #fff;
  22029. }
  22030. .evaCss {
  22031. display: flex;
  22032. flex-direction: row;
  22033. flex-wrap: nowrap;
  22034. align-items: flex-start;
  22035. padding: 0 0 20px;
  22036. }
  22037. .cru_line {
  22038. position: absolute;
  22039. bottom: 0px;
  22040. transition: all 0.5s;
  22041. left: 0px;
  22042. width: 125px;
  22043. margin-left: -25px;
  22044. }
  22045. .isNoMessage {
  22046. width: 20%;
  22047. margin: 25% auto 0;
  22048. }
  22049. .isNoMessage > img {
  22050. width: 100%;
  22051. height: 100%;
  22052. }
  22053. .fullStyle >>> .el-dialog__body {
  22054. height: 100% !important;
  22055. }
  22056. .fullStyle >>> .el-dialog,
  22057. .fullStyle {
  22058. width: 100% !important;
  22059. max-width: 100% !important;
  22060. height: 100% !important;
  22061. margin: 0 !important;
  22062. }
  22063. .full_diy >>> .el-dialog {
  22064. margin: 0 !important;
  22065. height: 100%;
  22066. padding: 4px;
  22067. }
  22068. .full_diy >>> .el-dialog__body {
  22069. height: calc(100% - 100px);
  22070. }
  22071. .full_diy2 >>> .el-dialog__body {
  22072. height: calc(100% - 50px);
  22073. padding: 0;
  22074. }
  22075. .switchCss {
  22076. /* width: 100%; */
  22077. display: flex;
  22078. flex-direction: row;
  22079. flex-wrap: nowrap;
  22080. align-items: center;
  22081. /* justify-content: center; */
  22082. }
  22083. .isClickNav {
  22084. /* color: #499eef; */
  22085. color: #000;
  22086. }
  22087. .commentImg {
  22088. width: 25px;
  22089. height: 25px;
  22090. cursor: pointer;
  22091. }
  22092. .commentImg > img {
  22093. width: 100%;
  22094. height: 100%;
  22095. }
  22096. .comment {
  22097. background: #f9f9f9;
  22098. border-radius: 0 0 4px 4px;
  22099. display: flex;
  22100. flex-direction: row;
  22101. flex-wrap: nowrap;
  22102. align-items: center;
  22103. justify-content: flex-end;
  22104. height: 35px;
  22105. }
  22106. .commentList {
  22107. display: flex;
  22108. flex-direction: row;
  22109. flex-wrap: nowrap;
  22110. align-items: center;
  22111. justify-content: center;
  22112. align-content: center;
  22113. /* margin-left: 15px; */
  22114. /* margin-left: 8px; */
  22115. }
  22116. .scoreImg {
  22117. width: 17px;
  22118. height: 17px;
  22119. }
  22120. .studentDetail {
  22121. display: flex;
  22122. flex-direction: row;
  22123. flex-wrap: nowrap;
  22124. /* align-items: center; */
  22125. align-items: flex-start;
  22126. }
  22127. .tx {
  22128. width: 50px;
  22129. }
  22130. .tx > img {
  22131. width: 100%;
  22132. height: 100%;
  22133. }
  22134. .nameAndTime {
  22135. display: flex;
  22136. flex-direction: column;
  22137. flex-wrap: nowrap;
  22138. align-items: flex-start;
  22139. margin-left: 10px;
  22140. }
  22141. .worksAnswer {
  22142. color: #4078dd;
  22143. margin: 10px 0;
  22144. font-size: 16px;
  22145. position: relative;
  22146. }
  22147. .worksAnswer > img {
  22148. width: 500px;
  22149. height: 300px;
  22150. object-fit: contain;
  22151. margin: 0 auto;
  22152. display: block;
  22153. }
  22154. .commentTop {
  22155. border-bottom: 1px solid #eaeaea;
  22156. padding-bottom: 10px;
  22157. }
  22158. .commentBox {
  22159. padding-top: 15px;
  22160. }
  22161. .pl {
  22162. font-size: 18px;
  22163. }
  22164. .plPerson {
  22165. width: 100%;
  22166. }
  22167. .plName {
  22168. display: flex;
  22169. flex-direction: row;
  22170. flex-wrap: nowrap;
  22171. align-items: baseline;
  22172. color: #78787a;
  22173. width: 100%;
  22174. }
  22175. .deleteComment {
  22176. cursor: pointer;
  22177. margin-left: auto;
  22178. color: #237ade;
  22179. }
  22180. .plContent {
  22181. margin-top: 5px;
  22182. }
  22183. .evalCss {
  22184. background: #fff;
  22185. font-size: 18px;
  22186. }
  22187. .nav {
  22188. color: #9d9d9d;
  22189. padding: 5px 0 15px 20px;
  22190. }
  22191. .middleBox {
  22192. padding: 5px 0 15px 20px;
  22193. }
  22194. .pfBox {
  22195. padding-bottom: 30px;
  22196. }
  22197. .nameAndrate {
  22198. display: flex;
  22199. flex-direction: row;
  22200. flex-wrap: nowrap;
  22201. align-items: center;
  22202. padding-bottom: 10px;
  22203. height: 30px;
  22204. line-height: 30px;
  22205. }
  22206. .nameAndrate > div {
  22207. margin-left: 10px;
  22208. color: #000;
  22209. height: 30px;
  22210. }
  22211. .nameAndrate >>> .el-rate__icon {
  22212. font-size: 28px !important;
  22213. }
  22214. .pfBox > div:nth-child(2) {
  22215. background: #f7f6f9;
  22216. width: 400px;
  22217. min-height: 45px;
  22218. border-radius: 10px;
  22219. font-size: 16px;
  22220. display: flex;
  22221. flex-wrap: wrap;
  22222. align-items: center;
  22223. padding: 10px 20px;
  22224. box-sizing: border-box;
  22225. color: #000;
  22226. }
  22227. .bz {
  22228. display: flex;
  22229. flex-direction: row;
  22230. flex-wrap: nowrap;
  22231. align-items: flex-start;
  22232. }
  22233. .bz > div {
  22234. padding: 0 10px;
  22235. }
  22236. .select_box2_title {
  22237. background: #fff;
  22238. border-radius: 5px;
  22239. padding: 15px 10px;
  22240. box-sizing: border-box;
  22241. margin-bottom: 10px;
  22242. display: flex;
  22243. flex-direction: row;
  22244. flex-wrap: nowrap;
  22245. align-items: center;
  22246. }
  22247. .select_box2_title > div:nth-child(2) {
  22248. margin-left: 10px;
  22249. color: #c4c4c4;
  22250. }
  22251. .select_box2_box {
  22252. display: flex;
  22253. height: 500px;
  22254. }
  22255. .select_box2_img {
  22256. width: calc(100% - 310px);
  22257. height: 100%;
  22258. overflow: auto;
  22259. background: #fff;
  22260. border-radius: 5px;
  22261. }
  22262. .select_box2_img img {
  22263. width: 100%;
  22264. }
  22265. .select_box2_answer {
  22266. background: #fff;
  22267. margin-left: 10px;
  22268. border-radius: 5px;
  22269. width: 300px;
  22270. overflow: auto;
  22271. height: 90%;
  22272. display: flex;
  22273. flex-direction: column;
  22274. align-items: flex-start;
  22275. padding-top: 10px;
  22276. box-sizing: border-box;
  22277. position: relative;
  22278. }
  22279. .select_answer_title {
  22280. padding: 0 0 15px 20px;
  22281. color: #c4c4c4;
  22282. }
  22283. .select_box2_answer_box {
  22284. margin: 0 0 10px 20px;
  22285. width: 85%;
  22286. display: flex;
  22287. flex-direction: row;
  22288. flex-wrap: nowrap;
  22289. align-items: center;
  22290. }
  22291. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22292. color: #000;
  22293. }
  22294. .upAnswerCss {
  22295. position: absolute;
  22296. bottom: 15px;
  22297. right: 15px;
  22298. }
  22299. .upAnswerCss >>> .el-button {
  22300. width: 95px;
  22301. height: 35px;
  22302. line-height: 35px;
  22303. padding: 0;
  22304. }
  22305. .rightWidthCss {
  22306. width: 60%;
  22307. display: flex;
  22308. flex-direction: row;
  22309. align-items: flex-start;
  22310. }
  22311. .rightAnswer {
  22312. display: flex;
  22313. flex-direction: row;
  22314. flex-wrap: nowrap;
  22315. align-items: center;
  22316. color: red;
  22317. margin-bottom: 31px;
  22318. }
  22319. .rightAnswerCss {
  22320. display: flex;
  22321. flex-direction: column;
  22322. flex-wrap: nowrap;
  22323. padding-top: 60px;
  22324. }
  22325. .blueCss {
  22326. color: #767de1;
  22327. margin-left: 10px;
  22328. }
  22329. .redCss {
  22330. color: red;
  22331. }
  22332. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22333. color: rgb(0 123 255) !important;
  22334. }
  22335. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22336. color: rgb(0 123 255) !important;
  22337. }
  22338. .zuoyeYulan {
  22339. padding-top: 0;
  22340. font-size: 18px;
  22341. display: flex;
  22342. align-items: flex-end;
  22343. }
  22344. .buttonA {
  22345. margin-left: 10px;
  22346. padding: 0;
  22347. }
  22348. .displayBox {
  22349. margin-bottom: 10px;
  22350. display: block;
  22351. border-bottom: 3px solid #eee;
  22352. display: flex;
  22353. align-items: center;
  22354. }
  22355. .easy_comment {
  22356. width: calc(100% - 90px);
  22357. margin-left: 10px;
  22358. display: flex;
  22359. flex-wrap: wrap;
  22360. }
  22361. .easy_comment > div {
  22362. border: 1px solid #4a4a4a;
  22363. color: #666;
  22364. border-radius: 15px;
  22365. padding: 5px 10px;
  22366. font-size: 16px;
  22367. margin-bottom: 10px;
  22368. margin-right: 5px;
  22369. cursor: pointer;
  22370. }
  22371. .easy_comment div:hover {
  22372. border: 1px solid #f7ba2a;
  22373. color: #c69217;
  22374. }
  22375. .xuan_right_box {
  22376. padding: 10px 0;
  22377. background: #f0f4fa;
  22378. margin: 0 15px 0 25px;
  22379. border-bottom-left-radius: 5px;
  22380. border-bottom-right-radius: 5px;
  22381. width: 91.5%;
  22382. }
  22383. .tool_right_box {
  22384. display: flex;
  22385. align-items: center;
  22386. }
  22387. .tool_right_box + .tool_right_box {
  22388. margin-top: 10px;
  22389. }
  22390. .right_box_xuan {
  22391. border-radius: 5px;
  22392. padding: 5px;
  22393. margin-left: 10px;
  22394. min-width: 85px;
  22395. background: #fff;
  22396. color: #0061ff;
  22397. border: 1px solid #0061ff;
  22398. font-size: 14px;
  22399. }
  22400. .pButton:hover {
  22401. opacity: 1 !important;
  22402. }
  22403. .pButton {
  22404. position: fixed;
  22405. text-align: center;
  22406. cursor: pointer;
  22407. z-index: 999;
  22408. right: 20px;
  22409. top: 110px;
  22410. width: 50px;
  22411. height: 50px;
  22412. display: flex;
  22413. align-items: center;
  22414. justify-content: center;
  22415. border-radius: 5px;
  22416. }
  22417. .pzClass {
  22418. width: calc(100% - 340px);
  22419. }
  22420. .newDialogCss {
  22421. /* position: fixed;
  22422. right: 5%;
  22423. top: 50%;
  22424. width: 340px;
  22425. transform: translateY(-50%);
  22426. height: 60%;
  22427. box-shadow: 0px 0 8px 0px #555555;
  22428. border-radius: 15px;
  22429. z-index: 999; */
  22430. position: fixed;
  22431. right: 20px;
  22432. top: 101px;
  22433. width: 330px;
  22434. height: calc(100% - 80px);
  22435. z-index: 999;
  22436. background: #fff;
  22437. border-top-right-radius: 0px;
  22438. border-bottom-right-radius: 0px;
  22439. overflow: hidden;
  22440. }
  22441. .newDialogCss>.scoreList{
  22442. width:100%;
  22443. height:100%;
  22444. box-sizing:border-box;
  22445. padding:10px 15px;
  22446. overflow:auto;
  22447. padding-bottom:80px;
  22448. }
  22449. .pzTop {
  22450. color: #fff;
  22451. background: #000;
  22452. display: flex;
  22453. flex-direction: row;
  22454. flex-wrap: nowrap;
  22455. align-items: center;
  22456. justify-content: space-between;
  22457. height: 40px;
  22458. border-radius: 15px 15px 0 0;
  22459. user-select: none;
  22460. }
  22461. .pzTop2 .checkbox {
  22462. display: flex;
  22463. align-items: center;
  22464. padding: 5px 10px;
  22465. flex: 0 0 auto;
  22466. font-weight: bold;
  22467. border-bottom: 1px solid #eee;
  22468. justify-content: space-between;
  22469. }
  22470. .checkbox>.cb-tabList{
  22471. display:flex;
  22472. align-items:center;
  22473. }
  22474. .cb-tabList>div{
  22475. margin-right:20px;
  22476. font-weight:400;
  22477. cursor:pointer;
  22478. }
  22479. .cb-tabList>.cb-tabItem{
  22480. color:#1684FC;
  22481. position:relative;
  22482. }
  22483. .cb-tabItem::after{
  22484. content:"";
  22485. width:100%;
  22486. height:2px;
  22487. background:#1684FC;
  22488. position:absolute;
  22489. bottom:-5px;
  22490. left:0
  22491. }
  22492. .pzTop2 .check {
  22493. text-align: center;
  22494. cursor: pointer;
  22495. box-sizing: border-box;
  22496. display: flex;
  22497. }
  22498. .pzTop2 img {
  22499. width: 25px;
  22500. cursor: pointer;
  22501. }
  22502. .pzTop > div:nth-child(1) {
  22503. padding-left: 10px;
  22504. }
  22505. .pzTop > div:nth-child(2) {
  22506. width: 15px;
  22507. height: 15px;
  22508. padding-right: 10px;
  22509. cursor: pointer;
  22510. }
  22511. .pzTop > div:nth-child(2) > img {
  22512. width: 100%;
  22513. height: 100%;
  22514. }
  22515. .pzBox,
  22516. .noPzBox {
  22517. height: calc(100% - 60px);
  22518. /* background: #ededed; */
  22519. background: #fff;
  22520. /* border-radius: 0 0 15px 15px; */
  22521. }
  22522. .noPzBox {
  22523. display: flex;
  22524. flex-direction: column;
  22525. flex-wrap: nowrap;
  22526. justify-content: center;
  22527. align-items: center;
  22528. }
  22529. .pzList {
  22530. background: #f7f7f7;
  22531. width: 90%;
  22532. margin: 0 auto 15px;
  22533. border-radius: 5px;
  22534. }
  22535. .pzNavTop {
  22536. display: flex;
  22537. flex-direction: row;
  22538. flex-wrap: nowrap;
  22539. padding: 10px 10px 0 10px;
  22540. align-items: center;
  22541. }
  22542. .pzDelete {
  22543. cursor: pointer;
  22544. margin-left: auto;
  22545. font-size: 14px;
  22546. color: #afafaf;
  22547. }
  22548. .pzNavTop > div:nth-child(1) {
  22549. background: #3760af;
  22550. width: 35px;
  22551. height: 35px;
  22552. color: #fff;
  22553. text-align: center;
  22554. line-height: 35px;
  22555. border-radius: 50%;
  22556. font-size: 14px;
  22557. }
  22558. .pzNavTop > div:nth-child(2) {
  22559. font-size: 18px;
  22560. color: #959595;
  22561. margin-left: 5px;
  22562. }
  22563. .pzContent {
  22564. padding: 10px;
  22565. word-break: break-word;
  22566. }
  22567. .pzContent audio {
  22568. width: 100%;
  22569. }
  22570. .pzContent audio::-webkit-media-controls-panel {
  22571. background: #fff;
  22572. }
  22573. .pzContent >>> img {
  22574. max-width: 100%;
  22575. }
  22576. .pzListBox {
  22577. padding-top: 15px;
  22578. height: calc(100% - 110px);
  22579. overflow: auto;
  22580. }
  22581. .addPzButton {
  22582. position: relative;
  22583. margin-top: 3px;
  22584. width: 100%;
  22585. }
  22586. .addPzButton .img1 {
  22587. position: absolute;
  22588. top: 50%;
  22589. right: 25px;
  22590. transform: translateY(-50%);
  22591. height: 100%;
  22592. display: flex;
  22593. align-items: center;
  22594. }
  22595. .addPzButton .img1 div {
  22596. display: flex;
  22597. }
  22598. .addPzButton .img1 div img {
  22599. width: 28px;
  22600. margin-left: 10px;
  22601. cursor: pointer;
  22602. }
  22603. .addPzButton .img1 div span {
  22604. font-size: 14px;
  22605. margin: 4px 0 0 3px;
  22606. color: #afafaf;
  22607. }
  22608. .addPz {
  22609. background: #4b79ce;
  22610. width: 100px;
  22611. color: #fff;
  22612. font-size: 12px;
  22613. height: 30px;
  22614. margin: 0 auto;
  22615. text-align: center;
  22616. line-height: 30px;
  22617. border-radius: 10px;
  22618. cursor: pointer;
  22619. }
  22620. .addDialogCss {
  22621. position: fixed;
  22622. width: 600px;
  22623. height: 70%;
  22624. min-height: 450px;
  22625. box-shadow: 0px 0 8px 0px #555555;
  22626. border-radius: 15px;
  22627. z-index: 999;
  22628. left: 50%;
  22629. top: 50%;
  22630. margin: -18% 0 0 -300px;
  22631. }
  22632. .teacherPz {
  22633. display: flex;
  22634. flex-direction: row;
  22635. align-items: center;
  22636. flex-wrap: nowrap;
  22637. }
  22638. .teacherPzImg {
  22639. width: 30px;
  22640. height: 30px;
  22641. }
  22642. .teacherPzImg > img {
  22643. width: 100%;
  22644. height: 100%;
  22645. }
  22646. .addPzBox {
  22647. height: calc(100% - 40px);
  22648. background: #ededed;
  22649. border-bottom-left-radius: 15px;
  22650. border-bottom-right-radius: 15px;
  22651. }
  22652. .pzAudioClass {
  22653. margin: 15px 14px;
  22654. background: #fff;
  22655. height: 100%;
  22656. display: flex;
  22657. justify-content: center;
  22658. align-items: center;
  22659. }
  22660. .pzConText {
  22661. width: 95%;
  22662. height: 100%;
  22663. margin: 10px auto 0;
  22664. border: none;
  22665. background: #fff;
  22666. border-radius: 0px;
  22667. }
  22668. .pzConText >>> .text {
  22669. height: calc(100% - 82px);
  22670. }
  22671. .addTextCss {
  22672. background: #4b79ce;
  22673. width: 80px;
  22674. height: 30px;
  22675. text-align: center;
  22676. color: #fff;
  22677. line-height: 30px;
  22678. border-radius: 10px;
  22679. margin: 10px auto 0;
  22680. cursor: pointer;
  22681. }
  22682. .pzConText:focus-visible {
  22683. border: none !important;
  22684. }
  22685. .maxWidth {
  22686. width: 1000px;
  22687. }
  22688. .noPz {
  22689. width: 150px;
  22690. margin: 0 auto 20%;
  22691. }
  22692. .noPz > img {
  22693. width: 100%;
  22694. height: 100%;
  22695. }
  22696. .timeAndReply {
  22697. display: flex;
  22698. flex-direction: row;
  22699. flex-wrap: nowrap;
  22700. justify-content: space-between;
  22701. align-items: center;
  22702. font-size: 14px;
  22703. box-sizing: border-box;
  22704. padding: 0 10px 10px 0px;
  22705. }
  22706. .timeAndReply .time {
  22707. color: #bfbfbf;
  22708. padding: 0 0 0 10px;
  22709. box-sizing: border-box;
  22710. }
  22711. .timeAndReply > div:last-child {
  22712. cursor: pointer;
  22713. color: #777;
  22714. }
  22715. /* table 样式 */
  22716. .cont >>> table {
  22717. border-top: 1px solid #ccc;
  22718. border-left: 1px solid #ccc;
  22719. }
  22720. .cont >>> table td,
  22721. .cont >>> table th {
  22722. border-bottom: 1px solid #ccc;
  22723. border-right: 1px solid #ccc;
  22724. /* padding: 20px 5px; */
  22725. padding: 5px 10px;
  22726. max-width: 0px;
  22727. height: 30px;
  22728. vertical-align: baseline;
  22729. box-sizing: border-box;
  22730. }
  22731. .cont >>> table th {
  22732. border-bottom: 2px solid #ccc;
  22733. text-align: center;
  22734. }
  22735. /* blockquote 样式 */
  22736. .cont >>> blockquote {
  22737. display: block;
  22738. border-left: 8px solid #d0e5f2;
  22739. padding: 5px 10px;
  22740. margin: 10px 0;
  22741. line-height: 1.4;
  22742. font-size: 100%;
  22743. background-color: #f1f1f1;
  22744. }
  22745. /* code 样式 */
  22746. .cont >>> code {
  22747. display: inline-block;
  22748. /* *display: inline; */
  22749. zoom: 1;
  22750. background-color: #f1f1f1;
  22751. border-radius: 3px;
  22752. padding: 3px 5px;
  22753. margin: 0 3px;
  22754. }
  22755. .cont >>> pre code {
  22756. display: block;
  22757. }
  22758. /* ul ol 样式 */
  22759. .cont >>> ul,
  22760. ol {
  22761. margin: 10px 0 10px 20px;
  22762. }
  22763. .addPzCheck {
  22764. display: flex;
  22765. flex-direction: row;
  22766. flex-wrap: nowrap;
  22767. padding: 10px 15px 0;
  22768. }
  22769. .addPzCheck span {
  22770. cursor: pointer;
  22771. padding-bottom: 5px;
  22772. font-weight: bold;
  22773. }
  22774. .addPzCheck span + span {
  22775. margin-left: 10px;
  22776. }
  22777. .addPzCheck .isChooseActive {
  22778. color: #3e88f4;
  22779. border-bottom: 2px solid #2f80f3;
  22780. }
  22781. /* code 样式 */
  22782. .cont {
  22783. /* -webkit-user-modify: read-write; */
  22784. overflow-wrap: break-word;
  22785. -webkit-line-break: after-white-space;
  22786. word-break: break-word;
  22787. white-space: pre-line;
  22788. }
  22789. .scoreBox,
  22790. .scoreDetailBox {
  22791. display: flex;
  22792. align-items: center;
  22793. justify-content: flex-start;
  22794. margin-top: 20px;
  22795. font-size: 18px;
  22796. width: 100%;
  22797. }
  22798. .scoreBox .t,
  22799. .scoreDetailBox .t {
  22800. margin-right: 10px;
  22801. width: 100px;
  22802. text-align: right;
  22803. }
  22804. .scoreDetailBox {
  22805. align-items: flex-start;
  22806. }
  22807. .scoreDetailBox >>> .el-textarea {
  22808. width: calc(100% - 200px);
  22809. }
  22810. .scoreBox >>> .el-input {
  22811. width: 130px;
  22812. font-size: 38px;
  22813. }
  22814. .scoreBox >>> .el-input__inner {
  22815. height: 60px;
  22816. }
  22817. .answerScore {
  22818. position: absolute;
  22819. top: 10px;
  22820. right: 10px;
  22821. background: #0000008f;
  22822. border-radius: 5px;
  22823. padding: 3px 5px;
  22824. font-size: 14px;
  22825. color: #fff;
  22826. cursor: pointer;
  22827. }
  22828. .open_box .switch_box {
  22829. width: 100%;
  22830. margin: 0 auto;
  22831. display: flex;
  22832. justify-content: space-between;
  22833. }
  22834. .open_box .switch_box + .switch_box {
  22835. margin-top: 10px;
  22836. }
  22837. .deleteImg,.deleteImg1 {
  22838. width: 25px !important;
  22839. height: 25px !important;
  22840. cursor: pointer;
  22841. position: absolute;
  22842. top: 10px;
  22843. right: 10px;
  22844. }
  22845. .deleteImg2 {
  22846. width: 23px !important;
  22847. height: 23px !important;
  22848. top: 5px;
  22849. right: 5px;
  22850. }
  22851. .deleteImg1{
  22852. width: 23px !important;
  22853. height: 23px !important;
  22854. top: 5px !important;
  22855. right: 30px !important;
  22856. }
  22857. .rightW {
  22858. right: 40px;
  22859. }
  22860. .drawPBox {
  22861. display: flex;
  22862. flex-direction: column;
  22863. position: relative;
  22864. }
  22865. .drawPBox span {
  22866. font-size: 18px;
  22867. color: #606266;
  22868. padding-bottom: 10px;
  22869. margin: 10px 0;
  22870. border-bottom: 1px solid #eaeaea;
  22871. }
  22872. .drawPBox img {
  22873. width: 500px;
  22874. height: 300px;
  22875. object-fit: contain;
  22876. cursor: pointer;
  22877. margin: 0 auto;
  22878. }
  22879. .sentenBox {
  22880. background: #fff;
  22881. height: 450px;
  22882. overflow: auto;
  22883. background-image: url("../assets/icon/conSentences/stuBg.png");
  22884. background-position: 102%;
  22885. background-repeat: no-repeat;
  22886. background-size: 60%;
  22887. }
  22888. .addSen {
  22889. background: #409efe;
  22890. width: 90px;
  22891. color: #fff;
  22892. height: 35px;
  22893. text-align: center;
  22894. line-height: 35px;
  22895. border-radius: 5px;
  22896. float: right;
  22897. margin: 10px 20px 0 0;
  22898. cursor: pointer;
  22899. }
  22900. .sentenTop {
  22901. display: flex;
  22902. flex-direction: row;
  22903. flex-wrap: nowrap;
  22904. align-items: center;
  22905. padding: 55px 0 0 20px;
  22906. box-sizing: border-box;
  22907. }
  22908. .sentenTop > div:nth-child(2) {
  22909. width: 300px;
  22910. margin: 0 15px;
  22911. }
  22912. .sentenTop > div:nth-child(3) {
  22913. background: #409efe;
  22914. color: #fff;
  22915. width: 65px;
  22916. height: 35px;
  22917. text-align: center;
  22918. line-height: 35px;
  22919. border-radius: 5px;
  22920. cursor: pointer;
  22921. }
  22922. .cardList,
  22923. .cardList1 {
  22924. padding: 10px 0 10px 0;
  22925. display: flex;
  22926. flex-direction: row;
  22927. flex-wrap: wrap;
  22928. align-items: center;
  22929. box-sizing: border-box;
  22930. border-bottom: 1px solid #f4f4f4;
  22931. width: 98%;
  22932. margin: 0 auto;
  22933. min-width: 60%;
  22934. max-width: 85%;
  22935. }
  22936. .cardList1 {
  22937. padding: 10px 0 10px 10px !important;
  22938. margin: 0 !important;
  22939. }
  22940. .cardBox {
  22941. display: flex;
  22942. flex-direction: row;
  22943. flex-wrap: wrap;
  22944. align-items: center;
  22945. align-content: center;
  22946. }
  22947. .cardBox > div {
  22948. margin-bottom: 10px;
  22949. }
  22950. .isCard,
  22951. .isChooseCard,
  22952. .noCard,
  22953. .isCard1 {
  22954. width: 130px;
  22955. height: 60px;
  22956. text-align: center;
  22957. line-height: 60px;
  22958. font-size: 20px;
  22959. cursor: pointer;
  22960. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22961. background-size: cover;
  22962. transition: all 2s;
  22963. margin-right: 20px;
  22964. }
  22965. .isCard > div,
  22966. .noCard > div,
  22967. .isCard1 > div {
  22968. white-space: nowrap;
  22969. overflow: hidden;
  22970. text-overflow: ellipsis;
  22971. width: 75%;
  22972. margin: 0 auto;
  22973. }
  22974. .noCard {
  22975. background-image: none;
  22976. }
  22977. .isCard1 {
  22978. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22979. }
  22980. .isChooseCard {
  22981. background-image: none;
  22982. border: 1px dashed #b9b9b9;
  22983. border-radius: 10px;
  22984. }
  22985. .card {
  22986. width: 130px;
  22987. height: 60px;
  22988. }
  22989. .card > img {
  22990. width: 100%;
  22991. height: 100%;
  22992. }
  22993. .rightCardBox {
  22994. margin: 10px 0 0 10px;
  22995. }
  22996. .rightCardBox > div:nth-child(1) {
  22997. margin-bottom: 10px;
  22998. }
  22999. .cardCss {
  23000. display: flex;
  23001. flex-direction: column;
  23002. flex-wrap: nowrap;
  23003. align-items: center;
  23004. border-bottom: 3px solid #b4c3d3;
  23005. padding: 0 0 5px 0;
  23006. margin-right: 10px;
  23007. }
  23008. .cardCss > div:nth-child(2) {
  23009. background: #5b7b9d;
  23010. color: #fff;
  23011. width: 20px;
  23012. height: 20px;
  23013. border-radius: 50%;
  23014. text-align: center;
  23015. line-height: 20px;
  23016. }
  23017. .isWrong {
  23018. display: flex;
  23019. flex-direction: row;
  23020. flex-wrap: nowrap;
  23021. align-content: center;
  23022. align-items: center;
  23023. }
  23024. .answerRight {
  23025. width: 25%;
  23026. }
  23027. .isTj {
  23028. display: flex;
  23029. flex-direction: row;
  23030. flex-wrap: nowrap;
  23031. align-items: center;
  23032. }
  23033. .isTj > div:nth-child(2) {
  23034. color: #727070;
  23035. margin-left: 10px;
  23036. }
  23037. .isTjImg {
  23038. width: 30px;
  23039. height: 30px;
  23040. }
  23041. .isTjImg > img {
  23042. width: 100%;
  23043. height: 100%;
  23044. }
  23045. .cardAnswerBox {
  23046. font-size: 18px;
  23047. width: 97%;
  23048. border: 5px;
  23049. padding: 0;
  23050. border-radius: 5px;
  23051. margin: 10px auto;
  23052. word-break: break-word;
  23053. }
  23054. .w_name {
  23055. margin-bottom: 10px;
  23056. }
  23057. .w_name span {
  23058. font-size: 16px;
  23059. }
  23060. .w_teachert {
  23061. width: 50px !important;
  23062. position: absolute;
  23063. height: auto !important;
  23064. z-index: 10;
  23065. right: 25px;
  23066. top: -25px;
  23067. }
  23068. .group_workBox {
  23069. }
  23070. .group_workBox + .group_workBox {
  23071. margin-top: 20px;
  23072. }
  23073. .group_box {
  23074. padding-bottom: 20px;
  23075. border-bottom: 2px solid #f0f0f0;
  23076. margin-top: 10px;
  23077. }
  23078. .group_title {
  23079. display: flex;
  23080. align-items: center;
  23081. justify-content: space-between;
  23082. width: 95%;
  23083. }
  23084. .group_name {
  23085. background-image: url(../assets/icon/groupN.png);
  23086. width: 220px;
  23087. background-size: 100% 100%;
  23088. height: 67px;
  23089. padding: 0 20px 0 43px;
  23090. box-sizing: border-box;
  23091. line-height: 63px;
  23092. color: #fff;
  23093. overflow: hidden;
  23094. white-space: nowrap;
  23095. text-overflow: ellipsis;
  23096. }
  23097. .group_work {
  23098. width: 100%;
  23099. padding: 0 10px;
  23100. box-sizing: border-box;
  23101. display: flex;
  23102. flex-wrap: wrap;
  23103. }
  23104. .g_d_box {
  23105. display: flex;
  23106. flex-flow: wrap;
  23107. justify-content: space-around;
  23108. }
  23109. .g_d_box .isChair {
  23110. background-image: url(../assets/avatar.png) !important;
  23111. }
  23112. .g_d_group {
  23113. width: 500px;
  23114. margin-bottom: 80px;
  23115. }
  23116. .g_d_group_chair {
  23117. display: flex;
  23118. align-items: center;
  23119. justify-content: center;
  23120. }
  23121. .g_d_group_chair > div + div {
  23122. margin-left: 30px;
  23123. }
  23124. .g_d_group_chair > div,
  23125. .g_d_group_chair2 > div {
  23126. display: flex;
  23127. flex-direction: column;
  23128. align-items: center;
  23129. }
  23130. .g_d_group_chair > div > span:nth-child(1),
  23131. .g_d_group_chair2 > div > span:nth-child(1) {
  23132. background-image: url(../assets/icon/chair.png);
  23133. width: 50px;
  23134. height: 50px;
  23135. display: block;
  23136. background-size: 100% 100%;
  23137. }
  23138. .g_d_group_tableBox {
  23139. display: flex;
  23140. align-items: center;
  23141. justify-content: center;
  23142. }
  23143. .g_d_group_chair2 {
  23144. display: flex;
  23145. flex-direction: column;
  23146. align-items: center;
  23147. justify-content: center;
  23148. }
  23149. .g_d_group_chair2 > div + div {
  23150. margin-top: 10px;
  23151. }
  23152. .g_d_group_table {
  23153. background-image: url(../assets/icon/groupBg.png);
  23154. width: 354px;
  23155. height: 196px;
  23156. background-size: 100% 100%;
  23157. display: flex;
  23158. align-items: center;
  23159. justify-content: center;
  23160. flex-direction: column;
  23161. color: #fff;
  23162. }
  23163. .g_d_group_table > div:nth-child(1) {
  23164. font-size: 24px;
  23165. margin-bottom: 5px;
  23166. }
  23167. .g_d_group_table > div:nth-child(2) div {
  23168. cursor: pointer;
  23169. background: #2e77bf;
  23170. padding: 4px 10px;
  23171. border-radius: 5px;
  23172. }
  23173. .groupBox {
  23174. }
  23175. .groupContent + .groupContent {
  23176. margin-top: 30px;
  23177. }
  23178. .groupTitle {
  23179. font-size: 24px;
  23180. color: rgb(80, 80, 80);
  23181. margin-bottom: 20px;
  23182. }
  23183. .groupName {
  23184. display: flex;
  23185. align-items: center;
  23186. }
  23187. .groupn {
  23188. font-size: 15px;
  23189. margin-right: 10px;
  23190. }
  23191. .groupName + .groupName {
  23192. margin-top: 15px;
  23193. }
  23194. .groupBtn {
  23195. margin-left: 10px;
  23196. }
  23197. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23198. text-align: left;
  23199. }
  23200. .g_d_btnBox {
  23201. display: flex;
  23202. justify-content: flex-end;
  23203. align-items: center;
  23204. margin-bottom: 20px;
  23205. }
  23206. .updateChair {
  23207. position: relative;
  23208. }
  23209. .updateChairBtn {
  23210. position: absolute;
  23211. width: 50px;
  23212. height: 50px;
  23213. overflow: hidden;
  23214. /* display: flex; */
  23215. align-items: center;
  23216. justify-content: center;
  23217. background: #00000087;
  23218. color: #fff;
  23219. border-radius: 50px;
  23220. display: none;
  23221. cursor: pointer;
  23222. }
  23223. .updateChair:hover .updateChairBtn {
  23224. display: flex;
  23225. }
  23226. .group_staic_box {
  23227. display: flex;
  23228. padding: 30px 40px 10px;
  23229. flex-wrap: wrap;
  23230. }
  23231. .group_staic {
  23232. /* width: 50%; */
  23233. margin-bottom: 20px;
  23234. display: flex;
  23235. align-items: center;
  23236. }
  23237. .group_staic span:nth-child(1) {
  23238. width: 150px;
  23239. text-align: right;
  23240. margin-right: 15px;
  23241. }
  23242. .group_staic span:nth-child(2) {
  23243. background: rgb(0 123 255);
  23244. color: #fff;
  23245. border-radius: 5px;
  23246. padding: 5px;
  23247. }
  23248. .codeFileBox {
  23249. height: 300px;
  23250. background: #fff;
  23251. display: flex;
  23252. align-items: center;
  23253. justify-content: center;
  23254. }
  23255. .codeFileBox img {
  23256. width: 200px;
  23257. margin: 0;
  23258. height: auto;
  23259. }
  23260. .codeFileBox div {
  23261. background: rgb(80, 142, 226);
  23262. color: #fff;
  23263. padding: 10px 20px;
  23264. border-radius: 25px;
  23265. cursor: pointer;
  23266. margin-left: 15px;
  23267. }
  23268. .radioBox {
  23269. display: flex;
  23270. flex-direction: column;
  23271. flex-wrap: nowrap;
  23272. align-items: flex-start;
  23273. }
  23274. .radioBox > div {
  23275. margin: 10px 0 0 10px;
  23276. }
  23277. /* .radioBox >>> .el-radio__input,
  23278. .radioBox >>> .el-checkbox__inner {
  23279. margin-left: 10px;
  23280. } */
  23281. .radioBox >>> .el-radio__label,
  23282. .radioBox >>> .el-checkbox__label {
  23283. display: flex;
  23284. align-items: center;
  23285. width: 100%;
  23286. }
  23287. .radioBox >>> .el-radio__label > span {
  23288. width: 100%;
  23289. display: -webkit-box;
  23290. overflow: hidden;
  23291. white-space: normal !important;
  23292. text-overflow: ellipsis;
  23293. word-wrap: break-word;
  23294. }
  23295. .inImg {
  23296. width: 100px;
  23297. cursor: pointer;
  23298. }
  23299. .inImg > img {
  23300. width: 100%;
  23301. height: 100%;
  23302. object-fit: cover;
  23303. }
  23304. .timuImgBox {
  23305. margin: 10px 0;
  23306. display: flex;
  23307. flex-direction: column;
  23308. flex-wrap: wrap;
  23309. align-items: flex-start;
  23310. }
  23311. .timuImg {
  23312. width: 150px;
  23313. margin: 5px 0;
  23314. cursor: pointer;
  23315. }
  23316. .timuImg > img {
  23317. width: 100%;
  23318. height: 100%;
  23319. object-fit: cover;
  23320. }
  23321. .worksTop {
  23322. display: flex;
  23323. flex-direction: row;
  23324. align-items: flex-end;
  23325. }
  23326. .worksTitle{
  23327. display: flex;
  23328. flex-direction: row;
  23329. flex-wrap: nowrap;
  23330. align-items: center;
  23331. }
  23332. .worksTitle::before,.worksTop::before{
  23333. content: '';
  23334. display: block;
  23335. width: 3px;
  23336. height: 20px;
  23337. background: #0061FF;
  23338. border-radius: 3px;
  23339. margin: 0 5px 0 0;
  23340. }
  23341. .corOpen {
  23342. margin: 0 0 0 10px;
  23343. font-size: 14px;
  23344. cursor: pointer;
  23345. color: #505050;
  23346. }
  23347. .corOpen:hover {
  23348. color: #499eef;
  23349. }
  23350. .navCorOpenBox {
  23351. display: flex;
  23352. flex-direction: row;
  23353. align-items: center;
  23354. justify-content: space-between;
  23355. height: 55px;
  23356. background: #ffffff;
  23357. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23358. border-radius: 8px 8px 0px 0px;
  23359. z-index: 9;
  23360. position: relative;
  23361. }
  23362. .navCorOpen {
  23363. padding-right: 15px;
  23364. cursor: pointer;
  23365. width: 45px;
  23366. display: flex;
  23367. }
  23368. .navCorOpen > img {
  23369. width: 100%;
  23370. height: 100%;
  23371. }
  23372. .mlImg {
  23373. width: 40px !important;
  23374. min-width: 40px;
  23375. cursor: pointer;
  23376. transform: rotate(180deg);
  23377. }
  23378. .mlImg > img {
  23379. width: 100%;
  23380. height: 100%;
  23381. }
  23382. .navLeftCss {
  23383. width: 100% !important;
  23384. left: 0 !important;
  23385. }
  23386. .isContentCss {
  23387. width: 100% !important;
  23388. }
  23389. .isAllWidth {
  23390. width: 100% !important;
  23391. }
  23392. .group_switch {
  23393. margin-right: 10px;
  23394. height: 30px;
  23395. display: flex;
  23396. align-items: center;
  23397. }
  23398. .group_switch > span {
  23399. margin-right: 5px;
  23400. }
  23401. .fileC_box {
  23402. padding-top: 15px;
  23403. }
  23404. .fileC_box > .fileC_title {
  23405. padding: 10px 5px 14px 10px;
  23406. border-top: 1px solid #cad1dc;
  23407. font-size: 14px;
  23408. font-weight: 400;
  23409. color: #cad1dc;
  23410. width: calc(100% - 20px);
  23411. margin: 0 auto;
  23412. box-sizing: border-box;
  23413. }
  23414. .pl_select_box {
  23415. height: 40px;
  23416. line-height: 40px;
  23417. width: 100%;
  23418. cursor: pointer;
  23419. padding: 0 20px;
  23420. box-sizing: border-box;
  23421. border-radius: 5px;
  23422. border: 1px solid #d6d6d6;
  23423. white-space: nowrap;
  23424. overflow: hidden;
  23425. text-overflow: ellipsis;
  23426. background: #fff;
  23427. text-align: left;
  23428. }
  23429. .newButton {
  23430. width: 102px;
  23431. height: 36px;
  23432. background: #e7ebf1;
  23433. border-radius: 4px;
  23434. color: #0e1e33;
  23435. font-weight: 400;
  23436. font-size: 14px;
  23437. border: none;
  23438. float: right;
  23439. margin-left: 10px;
  23440. }
  23441. .el-table >>> .even_row {
  23442. background-color: #f0f4fa;
  23443. }
  23444. .stageBoxCss,
  23445. .stageBoxIsCss {
  23446. display: flex;
  23447. flex-direction: row;
  23448. flex-wrap: nowrap;
  23449. align-items: center;
  23450. height: 50px;
  23451. border-bottom: 1px solid #e2f5fc;
  23452. cursor: pointer;
  23453. width: 100%;
  23454. }
  23455. .stageBoxIsCss {
  23456. background: #0061ff;
  23457. color: #fff;
  23458. border-radius: 8px;
  23459. }
  23460. .stageItemTitle {
  23461. display: flex;
  23462. flex-direction: row;
  23463. flex-wrap: nowrap;
  23464. align-items: center;
  23465. margin-left: 15px;
  23466. width: calc(100% - 50px);
  23467. }
  23468. .stageNav{
  23469. /* font-weight: bold; */
  23470. }
  23471. .stageItemTitle > div:first-child {
  23472. min-width: 55px;
  23473. }
  23474. .stageItemTitle > div:last-child {
  23475. max-width: 242px;
  23476. white-space: nowrap;
  23477. overflow: hidden;
  23478. text-overflow: ellipsis;
  23479. word-break: break-word;
  23480. width: calc(100% - 55px);
  23481. }
  23482. .closeTri,
  23483. .closeTri1 {
  23484. min-width: 15px;
  23485. width: 15px;
  23486. height: 15px;
  23487. transition: all .5s;
  23488. }
  23489. .closeTri1 {
  23490. padding-left: 10px;
  23491. cursor: pointer;
  23492. }
  23493. .closeTri > img,
  23494. .closeTri1 > img {
  23495. width: 100%;
  23496. height: 100%;
  23497. /* transition: all .5s; */
  23498. }
  23499. .noToolBlue {
  23500. min-width: 10px;
  23501. width: 10px;
  23502. height: 10px;
  23503. background: #0061ff;
  23504. border-radius: 50%;
  23505. margin-left: 13px;
  23506. }
  23507. .stageChild,
  23508. .toolChild {
  23509. height: 0;
  23510. overflow: hidden;
  23511. transition: all 0.5s;
  23512. }
  23513. .toolChild {
  23514. /* margin: 0 0 0 17px;
  23515. padding: 0 0 0 20px;
  23516. border-left: 1px solid #d7d7d7; */
  23517. }
  23518. .toolChild > div + div{
  23519. margin-top:5px;
  23520. }
  23521. .gjCss {
  23522. display: flex;
  23523. flex-direction: row;
  23524. flex-wrap: nowrap;
  23525. align-items: center;
  23526. padding: 10px 0 10px 40px;
  23527. box-sizing: border-box;
  23528. font-size: 14px;
  23529. cursor: pointer;
  23530. border-radius:5px;
  23531. }
  23532. .toolChild > div {
  23533. position: relative;
  23534. width:100%;
  23535. }
  23536. .toolChild > div::before {
  23537. /* content: "";
  23538. width: 15px;
  23539. height: 1px;
  23540. background: #cad1dc;
  23541. position: absolute;
  23542. top: 24px;
  23543. left: -20px;
  23544. display: block; */
  23545. }
  23546. .isGjCss {
  23547. /* color: #0061ff; */
  23548. color:#fff;
  23549. background: rgb(55, 129, 252);
  23550. /* background-color: #e0eafb !important;
  23551. color: #0061ff !important; */
  23552. }
  23553. .navItem {
  23554. background: #ffffff;
  23555. border-radius: 4px;
  23556. width: 100%;
  23557. margin: 10px auto;
  23558. position: relative;
  23559. height: 40px;
  23560. display: flex;
  23561. flex-direction: row;
  23562. flex-wrap: nowrap;
  23563. align-items: center;
  23564. }
  23565. .navItemList {
  23566. display: flex;
  23567. flex-direction: row;
  23568. flex-wrap: nowrap;
  23569. align-items: center;
  23570. padding: 0 13px;
  23571. cursor: pointer;
  23572. width: calc(100% - 60px);
  23573. height: 100%;
  23574. }
  23575. .navItemList > div:first-child {
  23576. min-width: 60px;
  23577. }
  23578. .navItemList > div:last-child {
  23579. width: calc(100% - 80px);
  23580. white-space: nowrap;
  23581. overflow: hidden;
  23582. text-overflow: ellipsis;
  23583. word-break: break-word;
  23584. }
  23585. /* .isItemList > div {
  23586. color: #fff !important;
  23587. } */
  23588. .tool_work_box {
  23589. width: 100%;
  23590. padding: 0 37px 0;
  23591. box-sizing: border-box;
  23592. }
  23593. .tool_box {
  23594. width: 100%;
  23595. padding: 0 0 0 20px;
  23596. }
  23597. .tool_type_box {
  23598. display: flex;
  23599. flex-direction: row;
  23600. align-items: baseline;
  23601. flex-wrap: nowrap;
  23602. justify-content: flex-start;
  23603. position: relative;
  23604. }
  23605. .toolSort {
  23606. display: flex;
  23607. flex-direction: row;
  23608. flex-wrap: wrap;
  23609. justify-content: flex-start;
  23610. align-items: flex-start;
  23611. padding: 0 0 15px 0;
  23612. }
  23613. .toolSort > div {
  23614. margin: 0 10px 0 0;
  23615. width: 135px;
  23616. box-sizing: border-box;
  23617. border: 2px solid transparent;
  23618. }
  23619. .tools {
  23620. width: 100%;
  23621. display: flex;
  23622. flex-direction: column;
  23623. flex-wrap: nowrap;
  23624. align-items: flex-start;
  23625. }
  23626. .whiteBIcon {
  23627. width: fit-content;
  23628. cursor: pointer;
  23629. display: flex;
  23630. flex-direction: column;
  23631. flex-wrap: nowrap;
  23632. align-items: center;
  23633. font-size: 14px;
  23634. }
  23635. .tool:hover {
  23636. border: 2px solid #a5c7ff;
  23637. border-radius: 5px;
  23638. }
  23639. .whiteBIcon > img {
  23640. width: 65px;
  23641. height: 100%;
  23642. }
  23643. .whiteBIcon > img {
  23644. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23645. border-radius: 15px;
  23646. }
  23647. .check {
  23648. /* width: 20px;
  23649. height: 20px; */
  23650. cursor: pointer;
  23651. margin: 10px 0;
  23652. position: absolute;
  23653. right: 2px;
  23654. top: -5px;
  23655. }
  23656. .noChoose,
  23657. .isChoose {
  23658. width: 15px;
  23659. height: 15px;
  23660. border-radius: 50%;
  23661. border: 1px solid #adadad;
  23662. }
  23663. .isChoose {
  23664. border: 4px solid #0363ff !important;
  23665. width: 10px;
  23666. height: 10px;
  23667. }
  23668. .isToolChoose {
  23669. border: 2px solid #5394ff !important;
  23670. border-radius: 5px;
  23671. box-shadow: 0 0 6px 0px #5394ff;
  23672. }
  23673. .checkDiv {
  23674. display: flex;
  23675. align-items: center;
  23676. }
  23677. .checkDiv span {
  23678. margin-left: 5px;
  23679. color: #858585;
  23680. }
  23681. .check img {
  23682. width: 20px;
  23683. height: 20px;
  23684. }
  23685. .lockTaskIcon {
  23686. width: 20px;
  23687. height: 20px;
  23688. position: absolute;
  23689. right: 10px;
  23690. top: 5px;
  23691. }
  23692. .lockTaskIcon > img {
  23693. width: 100%;
  23694. height: 100%;
  23695. }
  23696. .pick_box {
  23697. display: flex;
  23698. align-items: flex-start;
  23699. flex-wrap: wrap;
  23700. }
  23701. .selectBox {
  23702. width: 110px;
  23703. margin-left: 10px;
  23704. margin: 0 10px 0 auto;
  23705. }
  23706. .selectBox >>> .el-input__inner {
  23707. height: 30px;
  23708. line-height: 30px;
  23709. }
  23710. .selectBox >>> .el-input__icon {
  23711. line-height: 30px;
  23712. }
  23713. .sentenceTitle {
  23714. display: flex;
  23715. flex-direction: row;
  23716. flex-wrap: nowrap;
  23717. align-items: center;
  23718. }
  23719. .sentenceTitle::before {
  23720. content: attr(index);
  23721. background: #3681fc;
  23722. border-radius: 50%;
  23723. color: #fff;
  23724. width: 25px;
  23725. height: 25px;
  23726. min-width: 25px;
  23727. min-height: 25px;
  23728. text-align: center;
  23729. line-height: 25px;
  23730. margin-right: 5px;
  23731. }
  23732. .hfBox {
  23733. padding: 10px;
  23734. box-sizing: border-box;
  23735. }
  23736. .whoReplyWho {
  23737. display: flex;
  23738. flex-direction: row;
  23739. flex-wrap: nowrap;
  23740. align-items: baseline;
  23741. justify-content: flex-start;
  23742. }
  23743. .hfBottom {
  23744. display: flex;
  23745. flex-direction: row;
  23746. flex-wrap: nowrap;
  23747. align-items: center;
  23748. justify-content: space-between;
  23749. font-size: 14px;
  23750. }
  23751. .deleteHfItem {
  23752. cursor: pointer;
  23753. width: 20px;
  23754. height: 20px;
  23755. }
  23756. .deleteHfItem > img {
  23757. width: 100%;
  23758. height: 100%;
  23759. }
  23760. .whoReplyWho > .hfImg {
  23761. width: 12px;
  23762. height: 12px;
  23763. margin: 0 5px;
  23764. }
  23765. .whoReplyWho > .hfImg > img {
  23766. width: 100%;
  23767. height: 100%;
  23768. }
  23769. .hfContent {
  23770. padding-top: 10px;
  23771. box-sizing: border-box;
  23772. display: -webkit-box;
  23773. overflow: hidden;
  23774. white-space: normal !important;
  23775. text-overflow: ellipsis;
  23776. word-wrap: break-word;
  23777. -webkit-box-orient: vertical;
  23778. }
  23779. .hfTime {
  23780. text-align: left;
  23781. box-sizing: border-box;
  23782. padding: 10px 0 10px 0px;
  23783. color: #bfbfbf;
  23784. font-size: 14px;
  23785. }
  23786. .btnAllNT {
  23787. position: fixed;
  23788. bottom: 100px;
  23789. right: 40px;
  23790. z-index: 999;
  23791. display: flex;
  23792. flex-direction: row;
  23793. }
  23794. .btnAllNT > img {
  23795. cursor: pointer;
  23796. width: 80px;
  23797. }
  23798. .toolMask {
  23799. position: fixed;
  23800. width: 100%;
  23801. height: 100%;
  23802. background: #3f3c3c;
  23803. opacity: 0.5;
  23804. top: 0;
  23805. left: 0;
  23806. z-index: 999;
  23807. }
  23808. .addToolCss {
  23809. position: fixed;
  23810. z-index: 999;
  23811. background: #fff;
  23812. right: 5%;
  23813. bottom: 18%;
  23814. min-width: 1035px;
  23815. min-height: 300px;
  23816. border-radius: 10px;
  23817. box-shadow: 0 0 8px 1px #b2b2b2;
  23818. }
  23819. .toolTop {
  23820. display: flex;
  23821. flex-direction: row;
  23822. flex-wrap: nowrap;
  23823. justify-content: space-between;
  23824. align-items: center;
  23825. padding: 20px;
  23826. }
  23827. .toolTop > div:nth-child(2) {
  23828. width: 15px;
  23829. height: 15px;
  23830. padding-right: 10px;
  23831. cursor: pointer;
  23832. }
  23833. .toolTop > div:nth-child(2) > img {
  23834. width: 100%;
  23835. height: 100%;
  23836. }
  23837. .fullStyle>>>.el-dialog__body {
  23838. height: calc(100% - 125px) !important;
  23839. box-sizing: border-box;
  23840. padding: 30px 0 !important;
  23841. background: #fff !important;
  23842. }
  23843. .fullStyle>>>.el-dialog {
  23844. width: 100% !important;
  23845. max-width: 100% !important;
  23846. height: 100% !important;
  23847. margin: 0 !important;
  23848. }
  23849. .fullStyle {
  23850. width: 100% !important;
  23851. max-width: 100% !important;
  23852. height: 100% !important;
  23853. margin: 0 auto !important;
  23854. }
  23855. .fullStyle>>>.el-dialog__footer{
  23856. background: #fff !important;
  23857. }
  23858. .engUpBox {
  23859. width: 100%;
  23860. height: 100%;
  23861. }
  23862. .engTitle,
  23863. .engText {
  23864. display: flex;
  23865. flex-direction: row;
  23866. flex-wrap: nowrap;
  23867. align-items: flex-start;
  23868. padding: 0 20px 20px 20px;
  23869. box-sizing: border-box;
  23870. }
  23871. .engTitle > .div:first-child,
  23872. .engText > div:first-child {
  23873. min-width: 75px;
  23874. }
  23875. .correctBox{
  23876. width: 100%;
  23877. display: flex;
  23878. flex-direction: row;
  23879. flex-wrap: nowrap;
  23880. align-items: flex-start;
  23881. }
  23882. .oldBox{
  23883. width: 50%;
  23884. height: 100%;
  23885. display: flex;
  23886. flex-direction: column;
  23887. flex-wrap: nowrap;
  23888. align-items: center;
  23889. border-top: 1px solid #d9d9d9;
  23890. border-left: 1px solid #d9d9d9;
  23891. border-right: 1px solid #d9d9d9;
  23892. }
  23893. .oldBox>div:first-child{
  23894. width: 100%;
  23895. text-align: center;
  23896. background: #d9d9d9;
  23897. height: 35px;
  23898. line-height: 35px;
  23899. font-weight: bold;
  23900. }
  23901. .oldText{
  23902. width: 100%;
  23903. height: calc(100% - 35px);
  23904. overflow: auto;
  23905. margin: 10px 0;
  23906. display: flex;
  23907. flex-direction: column;
  23908. flex-wrap: nowrap;
  23909. align-content: center;
  23910. align-items: center;
  23911. }
  23912. .detailBox{
  23913. width: 50%;
  23914. padding: 10px;
  23915. background: #f6f6f6;
  23916. border-radius: 5px;
  23917. }
  23918. .oldDetail,.oldDetail1{
  23919. padding-bottom: 30px;
  23920. }
  23921. .oldImg{
  23922. width:30px;
  23923. height: 30px;
  23924. }
  23925. .oldImg>img{
  23926. width: 100%;
  23927. height: 100%;
  23928. }
  23929. .allName{
  23930. min-width: 200px;
  23931. white-space: nowrap;
  23932. overflow: hidden;
  23933. text-overflow: ellipsis;
  23934. word-break: break-word;
  23935. cursor: pointer;
  23936. text-align: center;
  23937. border: 1px solid #bcc2cc;
  23938. box-sizing: border-box;
  23939. }
  23940. .engUpTop{
  23941. max-height: 300px;
  23942. overflow: auto;
  23943. }
  23944. .isUpdateToolDetailClass{
  23945. padding: 0 !important;
  23946. }
  23947. .isUpdateToolDetailClass textarea{
  23948. padding:12px;
  23949. font-size: 16px;
  23950. min-height:100%;
  23951. width: 100%;
  23952. box-sizing:border-box;
  23953. outline: none;
  23954. border:none;
  23955. line-height: 30px;
  23956. resize: none;
  23957. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23958. color: #838383;
  23959. }
  23960. .show_taskD {
  23961. min-width: fit-content;
  23962. margin-left: 10px;
  23963. display: flex;
  23964. align-items: center;
  23965. font-size: 14px;
  23966. cursor: pointer;
  23967. color: #717c8d;
  23968. }
  23969. .show_taskD > img {
  23970. width: 15px;
  23971. margin-right: 5px;
  23972. transition: 0.2s all;
  23973. transform: rotate(-90deg);
  23974. }
  23975. .show_taskD.show > img {
  23976. transform: rotate(0deg);
  23977. }
  23978. .correctCss{
  23979. position: absolute;
  23980. bottom: -70px;
  23981. background: #409eff;
  23982. color: #fff;
  23983. }
  23984. </style>