studyStudent.vue 297 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="pb_left">
  5. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  6. <el-tooltip class="courseTitle" effect="light" :content="courseDetail.title" placement="top">
  7. <div>{{ courseDetail.title }}</div>
  8. </el-tooltip>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  18. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  19. openTaskActive:
  20. navIndex == taskCount &&
  21. nav.id == navId &&
  22. stageIndex == courseType,
  23. }">
  24. <div class="vedioNav" :class="{
  25. isClick:
  26. navIndex == taskCount &&
  27. nav.id == navId &&
  28. stageIndex == courseType,
  29. }" style="margin: 0">
  30. 任务{{ navIndex + 1 }}
  31. </div>
  32. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  33. <div :style="{
  34. width:
  35. IsLookOpen && !nav.isLook
  36. ? 'calc(100% - 75px)'
  37. : 'auto',
  38. }">
  39. {{ nav.taskName }}
  40. </div>
  41. </el-tooltip>
  42. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="body_student">
  50. <div class="new_top" style="
  51. position: fixed;
  52. top: 0;
  53. left: 20.7%;
  54. width: 80%;
  55. z-index: 999;
  56. box-shadow: 0px 9px 0 0 #f2f2f2;
  57. ">
  58. <div class="courseIndex">
  59. <div>第{{ courseType - 0 + 1 }}阶段</div>
  60. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  61. <div>{{ chapInfoList[courseType].dyName }}</div>
  62. </el-tooltip>
  63. <div>任务{{ taskCount + 1 }}</div>
  64. </div>
  65. <div class="btnAll">
  66. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  67. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  68. <div class="returnBtn" @click="allScrell">全屏</div>
  69. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  70. 权限
  71. </div>
  72. <div class="returnBtn" style="background: #225bc7" @click.stop="
  73. goTo(
  74. '/courseDetail?userid=' +
  75. userid +
  76. '&oid=' +
  77. oid +
  78. '&org=' +
  79. org +
  80. '&cid=' +
  81. classId +
  82. '&courseId=' +
  83. id +
  84. '&tType=' +
  85. tType +
  86. '&screenType=' +
  87. screenType
  88. )
  89. ">
  90. 返回
  91. </div>
  92. </div>
  93. </div>
  94. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  95. .taskJson"
  96. :key="index"-->
  97. <div class="isNoMessage" v-if="
  98. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  99. .chapterData.length == 0 &&
  100. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  101. .toolChoose[0].tool.length == 0 &&
  102. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  103. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  104. .taskDetail == '' &&
  105. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  106. ">
  107. <img src="../assets/icon/isNoMessage.png" alt />
  108. </div>
  109. <div class="study_top" :class="{ pzClass: pzDialog }">
  110. <div class="vedioBox" v-if="
  111. vedio[taskCount].length > 0 ||
  112. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  113. .taskDetail != '' ||
  114. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  115. .chapterData.length > 0
  116. ">
  117. <div class="checkbox">
  118. <div class="check" style="font-size: 25px" :id="
  119. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  120. ">
  121. <!-- {{ taskCount + 1 }}
  122. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  123. 学一学
  124. </div>
  125. </div>
  126. <div class="student_head" v-if="
  127. vedio[taskCount].length > 0 ||
  128. textList[taskCount].length > 0 ||
  129. file[taskCount].length > 0 ||
  130. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  131. .taskDetail != ''
  132. ">
  133. <div class="taskBox">
  134. <div style="
  135. display: flex;
  136. flex-wrap: nowrap;
  137. flex-direction: column;
  138. position: relative;
  139. ">
  140. <div style="padding: 15px 0 15px 20px" v-if="
  141. chapInfoList[courseType].chapterInfo[0].taskJson[
  142. taskCount
  143. ].taskDetail != ''
  144. " v-html="
  145. chapInfoList[courseType].chapterInfo[0].taskJson[
  146. taskCount
  147. ].taskDetail
  148. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  149. taskCount
  150. ].taskDetail
  151. : '暂无描述'
  152. ">
  153. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  154. <!-- {{
  155. chapInfoList[courseType].chapterInfo[0].taskJson[
  156. taskCount
  157. ].taskDetail
  158. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  159. taskCount
  160. ].taskDetail
  161. : "暂无描述"
  162. }}-->
  163. </div>
  164. </div>
  165. </div>
  166. <div class="vedioTaskBox">
  167. <div class="box_course" v-if="
  168. vedio[taskCount].length > 0 ||
  169. textList[taskCount].length > 0 ||
  170. lineList[taskCount].length > 0 ||
  171. file[taskCount].length > 0
  172. ">
  173. <div class="wheel" v-if="
  174. vedio.length &&
  175. vedio[taskCount] &&
  176. vedio[taskCount].length > 0 &&
  177. showType == 0
  178. ">
  179. <div class="workd_media" style="height: 100%">
  180. <video-player class="video-player vjs-custom-skin" :playsinline="true"
  181. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  182. style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  183. </div>
  184. </div>
  185. <div class="wheel" v-if="showType == 1" style="
  186. box-shadow: 0 0 6px 1px #f2f2f2;
  187. width: 95%;
  188. margin: 0 auto;
  189. background: #f1f1f1;
  190. ">
  191. <div class="title">查看文档</div>
  192. <el-form class="textBox">
  193. <el-form-item class="textTitle">
  194. <div style="
  195. font-size: 22px;
  196. max-height: 100px;
  197. overflow: auto;
  198. ">
  199. {{ text.name }}
  200. </div>
  201. </el-form-item>
  202. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  203. <div v-html="text.url" class="textContent"></div>
  204. </el-form>
  205. </div>
  206. <div class="wheel" v-if="showType == 2" style="height: 650px; width: 95%; margin: 0 auto">
  207. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  208. </div>
  209. <div class="wheel" v-if="showType == 3" style="height: 650px; width: 95%; margin: 0 auto">
  210. <!-- <iframe
  211. style="width: 100%; height: 100%; border: none"
  212. :src="pptImgUrl1"
  213. ></iframe>-->
  214. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  215. </div>
  216. <div class="wheel" v-if="showType == 4" style="height: 650px; width: 95%; margin: 0 auto">
  217. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  218. </div>
  219. </div>
  220. <!-- :class="
  221. vedio[taskCount].length == 0 && file[taskCount].length == 0
  222. ? 'listNoVedio'
  223. : ''
  224. "-->
  225. <!-- :class="
  226. vedio[taskCount].length == 0 &&
  227. file[taskCount].length == 0 &&
  228. textList[taskCount].length == 0
  229. ? 'listNoVedio'
  230. : ''
  231. " -->
  232. <div class="vedioList" v-if="
  233. (vedio.length &&
  234. vedio[taskCount] &&
  235. vedio[taskCount].length > 0) ||
  236. (textList.length &&
  237. textList[taskCount] &&
  238. textList[taskCount].length > 0) ||
  239. (lineList.length &&
  240. lineList[taskCount] &&
  241. lineList[taskCount].length > 0) ||
  242. (file.length &&
  243. file[taskCount] &&
  244. file[taskCount].length > 0)
  245. ">
  246. <div class="navTitile">内容列表:</div>
  247. <div class="navBox">
  248. <div v-show="
  249. vedio.length &&
  250. vedio[taskCount] &&
  251. vedio[taskCount].length > 0
  252. ">
  253. <!-- <div
  254. class="vedioNav"
  255. style="
  256. width: 80px;
  257. min-width: 80px;
  258. height: 30px;
  259. line-height: 36px;
  260. font-size: 16px;
  261. border-radius: 10px;
  262. "
  263. >
  264. 视频
  265. </div> -->
  266. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  267. @click="lookVedio(media.url, vedioIndex)">
  268. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  269. <img style="height: 90px; width: 160px" :src="
  270. media.cover != null && media.cover != ''
  271. ? JSON.parse(media.cover).length > 0
  272. ? JSON.parse(media.cover)[0].url
  273. : mr
  274. : mr
  275. " alt />
  276. </div> -->
  277. <!-- <div class="vedioTime">
  278. {{ vedioTime[vedioIndex] }}
  279. </div> -->
  280. <!-- <div class="vedioName">{{ media.name }}</div> -->
  281. <div class="vedioName" :class="
  282. isClickNav == 'video' + vedioIndex
  283. ? 'isClickNav'
  284. : ''
  285. ">
  286. {{ media.name }}
  287. </div>
  288. </div>
  289. </div>
  290. <div v-show="
  291. textList.length &&
  292. textList[taskCount] &&
  293. textList[taskCount].length > 0
  294. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  295. @click="lookText(taskCount, textIndex)">
  296. <!-- <div
  297. class="vedioNav"
  298. style="
  299. width: 80px;
  300. min-width: 80px;
  301. height: 30px;
  302. line-height: 36px;
  303. font-size: 16px;
  304. border-radius: 10px;
  305. "
  306. >
  307. 文档
  308. </div> -->
  309. <div style="width: calc(100% - 0px)">
  310. <div class="navText" :class="
  311. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  312. ">
  313. {{
  314. textList[taskCount].length > 0 ? text.name : ""
  315. }}.doc
  316. </div>
  317. </div>
  318. </div>
  319. <!-- <div
  320. v-show="
  321. chapInfoList.length &&
  322. chapToolList[taskCount] &&
  323. chapToolList[taskCount].length > 0
  324. "
  325. class="newNav"
  326. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  327. :key="toolsIndex + '3'"
  328. >
  329. <div class="vedioNav">工具</div>
  330. <div>
  331. <div
  332. class="navText"
  333. @click="lookTools(taskCount, toolsIndex)"
  334. >
  335. {{
  336. chapToolList[taskCount].length > 0 ? tools.name : ""
  337. }}
  338. </div>
  339. </div>
  340. </div>-->
  341. <div v-show="
  342. lineList.length &&
  343. lineList[taskCount] &&
  344. lineList[taskCount].length > 0
  345. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  346. @click="doUrl(lines.url, lineIndex)">
  347. <!-- <div
  348. class="vedioNav"
  349. style="
  350. width: 80px;
  351. min-width: 80px;
  352. height: 30px;
  353. line-height: 36px;
  354. font-size: 16px;
  355. border-radius: 10px;
  356. "
  357. >
  358. 链接
  359. </div> -->
  360. <!-- <div style="width: calc(100% - 0px)">
  361. <div
  362. class="navText"
  363. :class="isClickNav == lineIndex ? 'isClickNav' : ''"
  364. >
  365. <a
  366. style="text-decoration: none; color: #000"
  367. target="_Blank"
  368. >{{ lines.url }}</a
  369. >
  370. </div>
  371. </div> -->
  372. <div style="width: calc(100% - 0px)">
  373. <div class="navText" :class="
  374. isClickNav == 'line' + lineIndex ? 'isClickNav' : ''
  375. ">
  376. {{ lines.url }}
  377. </div>
  378. </div>
  379. </div>
  380. <div class="newNav" v-show="
  381. file.length &&
  382. file[taskCount] &&
  383. file[taskCount].length > 0
  384. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  385. <!-- <div
  386. class="vedioNav"
  387. style="
  388. width: 80px;
  389. min-width: 80px;
  390. height: 30px;
  391. line-height: 36px;
  392. font-size: 16px;
  393. border-radius: 10px;
  394. "
  395. >
  396. 文档
  397. </div> -->
  398. <div style="width: calc(100% - 0px)">
  399. <div class="navText" :class="
  400. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  401. ">
  402. {{ f.name }}
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. </div>
  408. </div>
  409. <div style="padding: 10px 30px 0" v-if="showType == 2 || showType == 3">
  410. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  411. <el-button type="primary" @click="downloadFile(pptImgUrl1)">文件下载</el-button>
  412. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  413. </el-button>
  414. </div>
  415. <div style="padding: 0px 30px" v-if="showType == 1">
  416. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  417. </div>
  418. </div>
  419. </div>
  420. <div class="student_body" v-resize="resize">
  421. <!-- <div
  422. class="vedioBox"
  423. v-if="
  424. file.length && file[taskCount] && file[taskCount].length > 0
  425. "
  426. >
  427. <div class="queTop">
  428. <div class="question" style="width: 30px; margin-top: 5px">
  429. <img src="../assets/icon/fileIcon.png" alt />
  430. </div>
  431. <div class="queTitle">
  432. <div>附件</div>
  433. </div>
  434. </div>
  435. <div class="filebox" style="width: 100%">
  436. <div
  437. class="file"
  438. v-for="(f, fileIndex) in file[taskCount]"
  439. :key="fileIndex"
  440. @click="downFile(f, fileIndex)"
  441. >
  442. <img :src="require('../assets/file.png')" alt />
  443. <div>{{ f.name }}</div>
  444. </div>
  445. </div>
  446. <div class="upFile" v-if="type == 3">提交</div>
  447. </div>-->
  448. <div class="vedioBox" v-if="
  449. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .toolChoose[0].tool &&
  451. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  452. .toolChoose[0].tool.length &&
  453. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  454. .toolChoose[0].tool.length > 0
  455. ">
  456. <div class="queTop" style="
  457. font-size: 25px;
  458. padding: 15px 0 15px 30px;
  459. font-weight: bold;
  460. ">
  461. <!-- <div class="question" style="width: 30px">
  462. <img src="../assets/icon/toolIcon.png" alt />
  463. </div>
  464. <div class="queTitle">
  465. <div>工具</div>
  466. </div>-->
  467. 练一练
  468. </div>
  469. <div class="toolHeng2" style="position: relative">
  470. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  471. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  472. <div class="bzBox">
  473. <div></div>
  474. <div>步骤{{ toolIndex + 1 }}</div>
  475. </div>
  476. <div class="toolBox">
  477. <div>
  478. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  479. :key="indexTool"-->
  480. <!-- <div class="iframeBox">
  481. <div
  482. class="addPoint isBorder"
  483. v-for="(tooC, toolCIndex) in tool.tool"
  484. :key="toolCIndex"
  485. >
  486. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  487. <div
  488. class="iframeName"
  489. >
  490. 电子白板
  491. </div>
  492. <iframe
  493. src="https://iwb.cocorobo.cn/"
  494. ref="whiteBoard"
  495. ></iframe>
  496. </div>
  497. </div>
  498. </div>-->
  499. <div class="noiframeBox">
  500. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  501. <div v-if="tooC == 1">
  502. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  503. @click="addTools(tooC, toolIndex, taskCount)" />
  504. <div style="margin: 5px 0">电子白板</div>
  505. </div>
  506. <div v-if="tooC == 3">
  507. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  508. @click="addTools(tooC, toolIndex, taskCount)" />
  509. <div style="margin: 5px 0">思维导图</div>
  510. </div>
  511. <div v-if="tooC == 6">
  512. <img src="../assets/icon/secondToolList/doc.png" alt
  513. @click="addTools(tooC, toolIndex, taskCount)" />
  514. <div style="margin: 5px 0">协同文档</div>
  515. </div>
  516. <div v-if="tooC == 7">
  517. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  518. @click="addTools(tooC, toolIndex, taskCount)" />
  519. <div style="margin: 5px 0">思维网格</div>
  520. </div>
  521. <div v-if="tooC == 8">
  522. <img src="../assets/icon/secondToolList/library.png" alt
  523. @click="addTools(tooC, toolIndex, taskCount)" />
  524. <div style="margin: 5px 0">素材库</div>
  525. </div>
  526. <div v-if="tooC == 17">
  527. <img src="../assets/icon/secondToolList/library.png" alt
  528. @click="addTools(tooC, toolIndex, taskCount)" />
  529. <div style="margin: 5px 0">学习资料</div>
  530. </div>
  531. <div v-if="tooC == 2">
  532. <img @click="addTools(tooC, toolIndex, taskCount)"
  533. src="../assets/icon/secondToolList/note.png" alt />
  534. <div style="margin: 5px 0">便签</div>
  535. </div>
  536. <div v-if="tooC == 4">
  537. <img @click="addTools(tooC, toolIndex, taskCount)"
  538. src="../assets/icon/thirdToolList/ask.png" alt />
  539. <div style="margin: 5px 0">选择题</div>
  540. </div>
  541. <div v-if="tooC == 45">
  542. <img @click="addTools(tooC, toolIndex, taskCount)"
  543. src="../assets/icon/thirdToolList/choose.png" alt />
  544. <div style="margin: 5px 0">选择题</div>
  545. </div>
  546. <!-- <div v-if="tooC == 5">
  547. <img
  548. @click="addTools(tooC, toolIndex, taskCount)"
  549. src="../assets/icon/thirdToolList/score.png"
  550. alt
  551. />
  552. <div style="margin: 5px 0">量规评分</div>
  553. </div> -->
  554. <div v-if="tooC == 10">
  555. <img @click="addTools(tooC, toolIndex, taskCount)"
  556. src="../assets/icon/thirdToolList/time.png" alt />
  557. <div style="margin: 5px 0">倒计时</div>
  558. </div>
  559. <div v-if="tooC == 15">
  560. <img @click="addTools(tooC, toolIndex, taskCount)"
  561. src="../assets/icon/thirdToolList/answer.png" alt />
  562. <div style="margin: 5px 0">问答工具</div>
  563. </div>
  564. <div v-if="tooC == 26">
  565. <img @click="addTools(tooC, toolIndex, taskCount)"
  566. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  567. <div style="margin: 5px 0">课程设计</div>
  568. </div>
  569. <div v-if="tooC == 18">
  570. <img @click="addTools(tooC, toolIndex, taskCount)"
  571. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  572. <div style="margin: 5px 0">训练服务器</div>
  573. </div>
  574. <div v-if="tooC == 16">
  575. <img @click="addTools(tooC, toolIndex, taskCount)"
  576. src="../assets/icon/thirdToolList/work.png" alt />
  577. <div style="margin: 5px 0">作业提交</div>
  578. </div>
  579. <div v-if="tooC == 21">
  580. <img @click="addTools(tooC, toolIndex, taskCount)"
  581. src="../assets/icon/fourthToolList/program.png" alt />
  582. <div style="margin: 5px 0">编程平台</div>
  583. </div>
  584. <div v-if="tooC == 22">
  585. <img @click="addTools(tooC, toolIndex, taskCount)"
  586. src="../assets/icon/fourthToolList/program.png" alt />
  587. <div style="margin: 5px 0">AI体验</div>
  588. </div>
  589. <div v-if="tooC == 23">
  590. <img @click="addTools(tooC, toolIndex, taskCount)"
  591. src="../assets/icon/fourthToolList/program.png" alt />
  592. <div style="margin: 5px 0">Python</div>
  593. </div>
  594. <div v-if="tooC == 24">
  595. <img @click="addTools(tooC, toolIndex, taskCount)"
  596. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  597. <div style="margin: 5px 0">AI平台</div>
  598. </div>
  599. <div v-if="tooC == 25">
  600. <img @click="addTools(tooC, toolIndex, taskCount)"
  601. src="../assets/icon/thirdToolList/evalua.png" alt />
  602. <div style="margin: 5px 0">目标管理</div>
  603. </div>
  604. <div v-if="tooC == 31">
  605. <img @click="addTools(tooC, toolIndex, taskCount)"
  606. src="../assets/icon/secondToolList/networkPanel.png" alt />
  607. <div style="margin: 5px 0">数学画板</div>
  608. </div>
  609. <div v-if="tooC == 28">
  610. <img @click="addTools(tooC, toolIndex, taskCount)"
  611. src="../assets/icon/secondToolList/translation.png" alt />
  612. <div style="margin: 5px 0">翻译</div>
  613. </div>
  614. <div v-if="tooC == 37">
  615. <img @click="addTools(tooC, toolIndex, taskCount)"
  616. src="../assets/icon/secondToolList/mohe.png" alt />
  617. <div style="margin: 5px 0">魔盒识字</div>
  618. </div>
  619. <div v-if="tooC == 38">
  620. <img @click="addTools(tooC, toolIndex, taskCount)"
  621. src="../assets/icon/secondToolList/24game.png" alt />
  622. <div style="margin: 5px 0">24点</div>
  623. </div>
  624. <div v-if="tooC == 39">
  625. <img @click="addTools(tooC, toolIndex, taskCount)"
  626. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  627. <div style="margin: 5px 0">GeoGebra</div>
  628. </div>
  629. <div v-if="tooC == 32">
  630. <img @click="addTools(tooC, toolIndex, taskCount)"
  631. src="../assets/icon/thirdToolList/code.png" alt />
  632. <div style="margin: 5px 0">源码编辑</div>
  633. </div>
  634. <div v-if="tooC == 40">
  635. <img @click="addTools(tooC, toolIndex, taskCount)"
  636. src="../assets/icon/secondToolList/eval.png" alt />
  637. <div style="margin: 5px 0">学生评价</div>
  638. </div>
  639. <div v-if="tooC == 41">
  640. <img @click="addTools(tooC, toolIndex, taskCount)"
  641. src="../assets/icon/thirdToolList/select.png" alt />
  642. <div style="margin: 5px 0">选择填空</div>
  643. </div>
  644. <div v-if="tooC == 44">
  645. <img @click="addTools(tooC, toolIndex, taskCount)"
  646. src="../assets/icon/thirdToolList/hanClass.png" alt />
  647. <div style="margin: 5px 0">汉字宫</div>
  648. </div>
  649. <div v-if="tooC == 47">
  650. <img @click="addTools(tooC, toolIndex, taskCount)"
  651. src="../assets/icon/fourthToolList/conSentences.png" alt />
  652. <div style="margin: 5px 0">连词成句</div>
  653. </div>
  654. </div>
  655. </div>
  656. </div>
  657. <div class="tooldetail" v-if="tool.toolDetail != ''">
  658. <!-- <div class="toolTitle">工具描述</div> -->
  659. <div v-html="contentConvent(tool.toolDetail)">
  660. <!-- {{ contentConvent(tool.toolDetail) }} -->
  661. </div>
  662. </div>
  663. </div>
  664. <div v-if="
  665. tType &&
  666. tType == 2 &&
  667. !sIsOpen &&
  668. tool.tool.indexOf(16) != -1
  669. " class="worksBox">
  670. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  671. <span>作业预览</span>
  672. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  673. </div>
  674. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  675. <div class="works" style="
  676. width: 200px;
  677. height: 140px;
  678. margin: 10px 10px 10px 0;
  679. box-shadow: 0 0 6px 1px #dfdada;
  680. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  681. <div class="workImg" v-if="w.type == 0">
  682. <img :src="w.works" @click="previewImg(w.works)" alt />
  683. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  684. :class="{ rightW: w.userid == userid }">
  685. {{ JSON.parse(w.score).wScore }}分
  686. </div>
  687. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  688. :class="{ rightW: w.userid == userid }">
  689. 评分
  690. </div>
  691. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  692. @click.stop="deleteWorks(w.wid)" alt />
  693. </div>
  694. <div class="workImg" v-if="w.type == 1">
  695. <img :src="word" @click="openFile(w.works)" alt />
  696. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  697. :class="{ rightW: w.userid == userid }">
  698. {{ JSON.parse(w.score).wScore }}分
  699. </div>
  700. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  701. :class="{ rightW: w.userid == userid }">
  702. 评分
  703. </div>
  704. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  705. @click.stop="deleteWorks(w.wid)" alt />
  706. </div>
  707. <div class="workImg" v-if="w.type == 3">
  708. <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
  709. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  710. :class="{ rightW: w.userid == userid }">
  711. {{ JSON.parse(w.score).wScore }}分
  712. </div>
  713. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  714. :class="{ rightW: w.userid == userid }">
  715. 评分
  716. </div>
  717. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  718. @click.stop="deleteWorks(w.wid)" alt />
  719. </div>
  720. <div class="worksName">
  721. <div>{{ w.sName }}</div>
  722. </div>
  723. </div>
  724. </div>
  725. </div>
  726. <div v-if="
  727. tType &&
  728. tType == 2 &&
  729. !sIsOpen &&
  730. tool.tool.indexOf(4) != -1
  731. " class="worksBox">
  732. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  733. <span>作业预览</span>
  734. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  735. </div>
  736. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  737. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  738. openTools(4, toolIndex, taskCount, w.works, w.sName)
  739. ">
  740. {{ w.sName }}
  741. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  742. @click.stop="deleteWorks(w.wid)" alt />
  743. </div>
  744. <!-- <div
  745. class="works"
  746. style="
  747. width: 200px;
  748. height: 140px;
  749. border-radius: 10px;
  750. box-shadow: 0 0 6px 1px #dfdada;
  751. overflow: hidden;
  752. "
  753. v-for="(w, wIndex) in workStudent[toolIndex]"
  754. :key="wIndex"
  755. >
  756. <div class="workImg">
  757. <img
  758. src="../assets/icon/works/noImg.png"
  759. @click="
  760. openTools(
  761. 4,
  762. toolIndex,
  763. taskCount,
  764. w.works,
  765. w.sName
  766. )
  767. "
  768. alt
  769. />
  770. </div>
  771. <div class="worksName">
  772. <div>{{ w.sName }}</div>
  773. <div>{{ w.time }}</div>
  774. </div>
  775. </div> -->
  776. </div>
  777. </div>
  778. <div v-if="
  779. tType &&
  780. tType == 2 &&
  781. !sIsOpen &&
  782. tool.tool.indexOf(45) != -1
  783. " class="worksBox">
  784. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  785. <span>作业预览</span>
  786. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  787. </div>
  788. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  789. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  790. openTools(45, toolIndex, taskCount, w.works, w.sName)
  791. ">
  792. {{ w.sName }}
  793. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  794. @click.stop="deleteWorks(w.wid)" alt />
  795. </div>
  796. </div>
  797. </div>
  798. <div v-if="
  799. tType &&
  800. tType == 2 &&
  801. !sIsOpen &&
  802. tool.tool.indexOf(15) != -1
  803. " class="worksBox">
  804. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  805. <span>作业预览</span>
  806. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  807. </div>
  808. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  809. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  810. <div class="workImg">
  811. <!-- <img
  812. src="../assets/icon/works/noImg.png"
  813. @click="openTools(15, toolIndex, taskCount, w.works)"
  814. alt=""
  815. />-->
  816. <div class="answerBg">
  817. <div>{{ w.sName }}</div>
  818. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  819. placement="top">
  820. <div class="answerContent">
  821. {{ JSON.parse(w.works)[0].answer }}
  822. </div>
  823. </el-tooltip>
  824. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  825. :class="{ rightW: w.userid == userid }">
  826. {{ JSON.parse(w.score).wScore }}分
  827. </div>
  828. <div class="answerScore" @click.stop="openScore(w)"
  829. v-else-if="courseDetail.userid == userid" :class="{ rightW: w.userid == userid }">
  830. 评分
  831. </div>
  832. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  833. @click.stop="deleteWorks(w.wid)" alt />
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. <div v-if="
  840. tType &&
  841. tType == 2 &&
  842. !sIsOpen &&
  843. tool.tool.indexOf(1) != -1
  844. " class="worksBox">
  845. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  846. <span>作业预览</span>
  847. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  848. </div>
  849. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  850. <div class="works" style="
  851. width: 200px;
  852. height: 140px;
  853. margin: 10px 10px 10px 0;
  854. box-shadow: 0 0 6px 1px #dfdada;
  855. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  856. <div class="workImg">
  857. <img :src="w.works" @click="previewImg(w.works)" alt />
  858. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  859. :class="{ rightW: w.userid == userid }">
  860. {{ JSON.parse(w.score).wScore }}分
  861. </div>
  862. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  863. :class="{ rightW: w.userid == userid }">
  864. 评分
  865. </div>
  866. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  867. @click.stop="deleteWorks(w.wid)" alt />
  868. </div>
  869. <div class="worksName">
  870. <div>{{ w.sName }}</div>
  871. </div>
  872. </div>
  873. </div>
  874. </div>
  875. <div v-if="
  876. tType &&
  877. tType == 2 &&
  878. !sIsOpen &&
  879. tool.tool.indexOf(3) != -1
  880. " class="worksBox">
  881. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  882. <span>作业预览</span>
  883. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  884. </div>
  885. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  886. <div class="works" style="
  887. width: 200px;
  888. height: 140px;
  889. margin: 10px 10px 10px 0;
  890. box-shadow: 0 0 6px 1px #dfdada;
  891. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  892. <div class="workImg">
  893. <img :src="w.works" @click="previewImg(w.works)" alt />
  894. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  895. :class="{ rightW: w.userid == userid }">
  896. {{ JSON.parse(w.score).wScore }}分
  897. </div>
  898. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  899. :class="{ rightW: w.userid == userid }">
  900. 评分
  901. </div>
  902. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  903. @click.stop="deleteWorks(w.wid)" alt />
  904. </div>
  905. <div class="worksName">
  906. <div>{{ w.sName }}</div>
  907. </div>
  908. </div>
  909. </div>
  910. </div>
  911. <div v-if="
  912. tType &&
  913. tType == 2 &&
  914. !sIsOpen &&
  915. tool.tool.indexOf(6) != -1
  916. " class="worksBox">
  917. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  918. <span>作业预览</span>
  919. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  920. </div>
  921. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  922. <div class="works" style="
  923. width: 200px;
  924. height: 140px;
  925. margin: 10px 10px 10px 0;
  926. box-shadow: 0 0 6px 1px #dfdada;
  927. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  928. <div class="workImg">
  929. <img :src="w.works" @click="previewImg(w.works)" alt />
  930. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  931. :class="{ rightW: w.userid == userid }">
  932. {{ JSON.parse(w.score).wScore }}分
  933. </div>
  934. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  935. :class="{ rightW: w.userid == userid }">
  936. 评分
  937. </div>
  938. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  939. @click.stop="deleteWorks(w.wid)" alt />
  940. </div>
  941. <div class="worksName">
  942. <div>{{ w.sName }}</div>
  943. </div>
  944. </div>
  945. </div>
  946. </div>
  947. <div v-if="
  948. tType &&
  949. tType == 2 &&
  950. !sIsOpen &&
  951. tool.tool.indexOf(7) != -1
  952. " class="worksBox">
  953. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  954. <span>作业预览</span>
  955. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  956. </div>
  957. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  958. <div class="works" style="
  959. width: 200px;
  960. height: 140px;
  961. margin: 10px 10px 10px 0;
  962. box-shadow: 0 0 6px 1px #dfdada;
  963. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  964. <div class="workImg">
  965. <img :src="w.works" @click="previewImg(w.works)" alt />
  966. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  967. :class="{ rightW: w.userid == userid }">
  968. {{ JSON.parse(w.score).wScore }}分
  969. </div>
  970. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  971. :class="{ rightW: w.userid == userid }">
  972. 评分
  973. </div>
  974. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  975. @click.stop="deleteWorks(w.wid)" alt />
  976. </div>
  977. <div class="worksName">
  978. <div>{{ w.sName }}</div>
  979. </div>
  980. </div>
  981. </div>
  982. </div>
  983. <div v-if="
  984. tType &&
  985. tType == 2 &&
  986. !sIsOpen &&
  987. tool.tool.indexOf(26) != -1
  988. " class="worksBox">
  989. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  990. <span>作业预览</span>
  991. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  992. </div>
  993. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  994. <div class="works" style="
  995. width: 200px;
  996. height: 140px;
  997. margin: 10px 10px 10px 0;
  998. box-shadow: 0 0 6px 1px #dfdada;
  999. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1000. <div class="workImg">
  1001. <img :src="w.works" @click="previewImg(w.works)" alt />
  1002. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1003. @click.stop="deleteWorks(w.wid)" alt />
  1004. </div>
  1005. <div class="worksName">
  1006. <div>{{ w.sName }}</div>
  1007. </div>
  1008. </div>
  1009. </div>
  1010. </div>
  1011. <div v-if="
  1012. tType &&
  1013. ((tType == 2 && sIsOpen == true) ||
  1014. tType == 1 ||
  1015. tType == 4) &&
  1016. tool.tool.indexOf(16) != -1
  1017. " class="worksBox">
  1018. <div class="zuoyeYulan" v-if="
  1019. worksStudent.length &&
  1020. worksStudent[toolIndex].length > 0
  1021. ">
  1022. <span>作业预览</span>
  1023. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1024. </div>
  1025. <div class="worksDetailBox" v-if="
  1026. worksStudent.length &&
  1027. worksStudent[toolIndex].length > 0
  1028. ">
  1029. <div class="works" style="
  1030. width: 200px;
  1031. height: 140px;
  1032. margin: 10px 10px 10px 0;
  1033. border-radius: 15px;
  1034. box-shadow: 0 0 6px 1px #dfdada;
  1035. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1036. :class="w.type == 1 ? 'isTypeOne' : ''">
  1037. <div class="workImg" v-if="w.type == 0">
  1038. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1039. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1040. :class="{ rightW: w.userid == userid }">
  1041. {{ JSON.parse(w.score).wScore }}分
  1042. </div>
  1043. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1044. :class="{ rightW: w.userid == userid }">
  1045. 评分
  1046. </div>
  1047. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1048. @click.stop="deleteWorks(w.wid)" alt />
  1049. </div>
  1050. <div class="workImg" v-if="w.type == 1">
  1051. <img :src="word" @click="openFile(w.works)" alt />
  1052. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1053. :class="{ rightW: w.userid == userid }">
  1054. {{ JSON.parse(w.score).wScore }}分
  1055. </div>
  1056. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1057. :class="{ rightW: w.userid == userid }">
  1058. 评分
  1059. </div>
  1060. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1061. @click.stop="deleteWorks(w.wid)" alt />
  1062. </div>
  1063. <div class="workImg" v-if="w.type == 3">
  1064. <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
  1065. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1066. :class="{ rightW: w.userid == userid }">
  1067. {{ JSON.parse(w.score).wScore }}分
  1068. </div>
  1069. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1070. :class="{ rightW: w.userid == userid }">
  1071. 评分
  1072. </div>
  1073. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1074. @click.stop="deleteWorks(w.wid)" alt />
  1075. </div>
  1076. <div class="comment" style="min-width: 200px">
  1077. <div class="worksName">
  1078. <div>{{ w.sName }}</div>
  1079. </div>
  1080. <div class="commentList">
  1081. <div class="commentList">
  1082. <div class="commentImg" @click="
  1083. isLikes(w.wid, userid, 1, null, w.isLikes)
  1084. ">
  1085. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1086. </div>
  1087. <div>{{ w.likesCount }}</div>
  1088. </div>
  1089. <div class="commentList" style="margin-right: 15px">
  1090. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1091. <img src="../assets/icon/comment/comment.png" alt="" />
  1092. </div>
  1093. <div>{{ w.commentCount }}</div>
  1094. </div>
  1095. </div>
  1096. </div>
  1097. </div>
  1098. </div>
  1099. <div style="font-size: 18px">未提交</div>
  1100. <div class="noWorksS">
  1101. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1102. {{ s.student }}
  1103. </div>
  1104. </div>
  1105. </div>
  1106. <div v-if="
  1107. tType &&
  1108. ((tType == 2 && sIsOpen == true) ||
  1109. tType == 1 ||
  1110. tType == 4) &&
  1111. tool.tool.indexOf(4) != -1 &&
  1112. (tool.askJson[0].answer ||
  1113. tool.askJson[0].answer === 0) &&
  1114. checkJson[toolIndex].length
  1115. " class="xuan_right_box">
  1116. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1117. <div>
  1118. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1119. </div>
  1120. <div class="right_box_xuan">
  1121. <span>正确率</span>
  1122. <span>{{
  1123. (checkJson[toolIndex][index].right
  1124. ? checkJson[toolIndex][index].right
  1125. : 0) + "%"
  1126. }}</span>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. <div class="xuan_right_box" style="background: unset" v-if="
  1131. tType &&
  1132. ((tType == 2 && sIsOpen == true) ||
  1133. tType == 1 ||
  1134. tType == 4) &&
  1135. tool.tool.indexOf(4) != -1
  1136. ">
  1137. <AskStatic v-if="
  1138. worksStudent.length &&
  1139. worksStudent[toolIndex].length > 0
  1140. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1141. </div>
  1142. <div v-if="
  1143. tType &&
  1144. ((tType == 2 && sIsOpen == true) ||
  1145. tType == 1 ||
  1146. tType == 4) &&
  1147. tool.tool.indexOf(4) != -1
  1148. " class="worksBox">
  1149. <div class="zuoyeYulan" v-if="
  1150. worksStudent.length &&
  1151. worksStudent[toolIndex].length > 0
  1152. ">
  1153. <span>作业预览</span>
  1154. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1155. </div>
  1156. <div>
  1157. <div class="worksDetailBox" v-if="
  1158. worksStudent.length &&
  1159. worksStudent[toolIndex].length > 0
  1160. ">
  1161. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1162. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1163. ">
  1164. {{ w.sName }}
  1165. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1166. @click.stop="deleteWorks(w.wid)" alt />
  1167. </div>
  1168. <!-- <div class="works" style="
  1169. width: 200px;
  1170. height: 140px;
  1171. border-radius: 10px;
  1172. box-shadow: 0 0 6px 1px #dfdada;
  1173. overflow: hidden;
  1174. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1175. <div class="workImg">
  1176. <img src="../assets/icon/works/noImg.png" @click="
  1177. openTools(
  1178. 4,
  1179. toolIndex,
  1180. taskCount,
  1181. w.works,
  1182. w.sName
  1183. )
  1184. " alt />
  1185. </div>
  1186. <div class="worksName">
  1187. <div>{{ w.sName }}</div>
  1188. <div>{{ w.time }}</div>
  1189. </div>
  1190. </div> -->
  1191. </div>
  1192. </div>
  1193. <div style="font-size: 18px">未提交</div>
  1194. <div class="noWorksS">
  1195. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1196. {{ s.student }}
  1197. </div>
  1198. </div>
  1199. </div>
  1200. <div v-if="
  1201. tType &&
  1202. ((tType == 2 && sIsOpen == true) ||
  1203. tType == 1 ||
  1204. tType == 4) &&
  1205. tool.tool.indexOf(45) != -1 &&
  1206. (tool.testJson.testJson[0].answer ||
  1207. tool.testJson.testJson[0].answer === 0) &&
  1208. checkJson[toolIndex].length
  1209. " class="xuan_right_box">
  1210. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1211. <div>
  1212. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1213. </div>
  1214. <div class="right_box_xuan">
  1215. <span>正确率</span>
  1216. <span>{{
  1217. (checkJson[toolIndex][index].right
  1218. ? checkJson[toolIndex][index].right
  1219. : 0) + "%"
  1220. }}</span>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. <div class="xuan_right_box" style="background: unset" v-if="
  1225. tType &&
  1226. ((tType == 2 && sIsOpen == true) ||
  1227. tType == 1 ||
  1228. tType == 4) &&
  1229. tool.tool.indexOf(45) != -1
  1230. ">
  1231. <AskStatic2 v-if="
  1232. worksStudent.length &&
  1233. worksStudent[toolIndex].length > 0
  1234. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1235. </div>
  1236. <div v-if="
  1237. tType &&
  1238. ((tType == 2 && sIsOpen == true) ||
  1239. tType == 1 ||
  1240. tType == 4) &&
  1241. tool.tool.indexOf(45) != -1
  1242. " class="worksBox">
  1243. <div class="zuoyeYulan" v-if="
  1244. worksStudent.length &&
  1245. worksStudent[toolIndex].length > 0
  1246. ">
  1247. <span>作业预览</span>
  1248. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1249. </div>
  1250. <div>
  1251. <div class="worksDetailBox" v-if="
  1252. worksStudent.length &&
  1253. worksStudent[toolIndex].length > 0
  1254. ">
  1255. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1256. openTools(
  1257. 45,
  1258. toolIndex,
  1259. taskCount,
  1260. w.works,
  1261. w.sName
  1262. )
  1263. ">
  1264. {{ w.sName }}
  1265. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1266. @click.stop="deleteWorks(w.wid)" alt />
  1267. </div>
  1268. </div>
  1269. </div>
  1270. <div style="font-size: 18px">未提交</div>
  1271. <div class="noWorksS">
  1272. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1273. {{ s.student }}
  1274. </div>
  1275. </div>
  1276. </div>
  1277. <div v-if="
  1278. tType &&
  1279. ((tType == 2 && sIsOpen == true) ||
  1280. tType == 1 ||
  1281. tType == 4) &&
  1282. tool.tool.indexOf(15) != -1
  1283. " class="worksBox">
  1284. <div class="zuoyeYulan" v-if="
  1285. worksStudent.length &&
  1286. worksStudent[toolIndex].length > 0
  1287. ">
  1288. <span>作业预览</span>
  1289. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1290. </div>
  1291. <div class="worksDetailBox" v-if="
  1292. worksStudent.length &&
  1293. worksStudent[toolIndex].length > 0
  1294. ">
  1295. <div class="works" v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1296. <div class="workImg" style="
  1297. border-radius: 15px;
  1298. box-shadow: #eee 0px 0px 5px 5px;
  1299. ">
  1300. <!-- <img
  1301. src="../assets/icon/works/noImg.png"
  1302. @click="openTools(15, toolIndex, taskCount, w.works)"
  1303. alt=""
  1304. />-->
  1305. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1306. @click="commentOther(w, toolIndex, wIndex)">
  1307. <div>{{ w.sName }}</div>
  1308. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  1309. placement="top">
  1310. <div class="answerContent">
  1311. {{ JSON.parse(w.works)[0].answer }}
  1312. </div>
  1313. </el-tooltip>
  1314. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1315. :class="{ rightW: w.userid == userid }">
  1316. {{ JSON.parse(w.score).wScore }}分
  1317. </div>
  1318. <div class="answerScore" @click.stop="openScore(w)"
  1319. v-else-if="courseDetail.userid == userid" :class="{ rightW: w.userid == userid }">
  1320. 评分
  1321. </div>
  1322. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1323. @click.stop="deleteWorks(w.wid)" alt />
  1324. </div>
  1325. <div class="comment">
  1326. <div class="commentList">
  1327. <div class="commentImg" @click="
  1328. isLikes(w.wid, userid, 1, null, w.isLikes)
  1329. ">
  1330. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1331. </div>
  1332. <div>{{ w.likesCount }}</div>
  1333. </div>
  1334. <div class="commentList" style="margin-right: 15px">
  1335. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1336. <img src="../assets/icon/comment/comment.png" alt="" />
  1337. </div>
  1338. <div>{{ w.commentCount }}</div>
  1339. </div>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. </div>
  1344. <div style="font-size: 18px">未提交</div>
  1345. <div class="noWorksS">
  1346. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1347. {{ s.student }}
  1348. </div>
  1349. </div>
  1350. </div>
  1351. <div v-if="
  1352. tType &&
  1353. ((tType == 2 && sIsOpen == true) ||
  1354. tType == 1 ||
  1355. tType == 4) &&
  1356. tool.tool.indexOf(1) != -1
  1357. " class="worksBox">
  1358. <div class="zuoyeYulan" v-if="
  1359. worksStudent.length &&
  1360. worksStudent[toolIndex].length > 0
  1361. ">
  1362. <span>作业预览</span>
  1363. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1364. </div>
  1365. <div class="worksDetailBox" v-if="
  1366. worksStudent.length &&
  1367. worksStudent[toolIndex].length > 0
  1368. ">
  1369. <div class="works" style="
  1370. width: 200px;
  1371. height: 140px;
  1372. margin: 10px 10px 10px 0;
  1373. border-radius: 15px;
  1374. box-shadow: 0 0 6px 1px #dfdada;
  1375. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1376. <!-- @click="previewImg(w.works)" -->
  1377. <div class="workImg">
  1378. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1379. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1380. :class="{ rightW: w.userid == userid }">
  1381. {{ JSON.parse(w.score).wScore }}分
  1382. </div>
  1383. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1384. :class="{ rightW: w.userid == userid }">
  1385. 评分
  1386. </div>
  1387. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1388. @click.stop="deleteWorks(w.wid)" alt />
  1389. </div>
  1390. <div class="comment" style="min-width: 200px">
  1391. <div class="worksName">
  1392. <div>{{ w.sName }}</div>
  1393. </div>
  1394. <div class="commentList">
  1395. <div class="commentList">
  1396. <div class="commentImg" @click="
  1397. isLikes(w.wid, userid, 1, null, w.isLikes)
  1398. ">
  1399. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1400. </div>
  1401. <div>{{ w.likesCount }}</div>
  1402. </div>
  1403. <div class="commentList" style="margin-right: 15px">
  1404. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1405. <img src="../assets/icon/comment/comment.png" alt="" />
  1406. </div>
  1407. <div>{{ w.commentCount }}</div>
  1408. </div>
  1409. </div>
  1410. </div>
  1411. </div>
  1412. </div>
  1413. <div style="font-size: 18px">未提交</div>
  1414. <div class="noWorksS">
  1415. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1416. {{ s.student }}
  1417. </div>
  1418. </div>
  1419. </div>
  1420. <div v-if="
  1421. tType &&
  1422. ((tType == 2 && sIsOpen == true) ||
  1423. tType == 1 ||
  1424. tType == 4) &&
  1425. tool.tool.indexOf(3) != -1
  1426. " class="worksBox">
  1427. <div class="zuoyeYulan" v-if="
  1428. worksStudent.length &&
  1429. worksStudent[toolIndex].length > 0
  1430. ">
  1431. <span>作业预览</span>
  1432. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1433. </div>
  1434. <div class="worksDetailBox" v-if="
  1435. worksStudent.length &&
  1436. worksStudent[toolIndex].length > 0
  1437. ">
  1438. <div class="works" style="
  1439. width: 200px;
  1440. height: 140px;
  1441. margin: 10px 10px 10px 0;
  1442. border-radius: 15px;
  1443. box-shadow: 0 0 6px 1px #dfdada;
  1444. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1445. <!-- @click="previewImg(w.works)" -->
  1446. <div class="workImg">
  1447. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1448. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1449. :class="{ rightW: w.userid == userid }">
  1450. {{ JSON.parse(w.score).wScore }}分
  1451. </div>
  1452. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1453. :class="{ rightW: w.userid == userid }">
  1454. 评分
  1455. </div>
  1456. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1457. @click.stop="deleteWorks(w.wid)" alt />
  1458. </div>
  1459. <div class="comment" style="min-width: 200px">
  1460. <div class="worksName">
  1461. <div>{{ w.sName }}</div>
  1462. </div>
  1463. <div class="commentList">
  1464. <div class="commentList">
  1465. <div class="commentImg" @click="
  1466. isLikes(w.wid, userid, 1, null, w.isLikes)
  1467. ">
  1468. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1469. </div>
  1470. <div>{{ w.likesCount }}</div>
  1471. </div>
  1472. <div class="commentList" style="margin-right: 15px">
  1473. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1474. <img src="../assets/icon/comment/comment.png" alt="" />
  1475. </div>
  1476. <div>{{ w.commentCount }}</div>
  1477. </div>
  1478. </div>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div style="font-size: 18px">未提交</div>
  1483. <div class="noWorksS">
  1484. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1485. {{ s.student }}
  1486. </div>
  1487. </div>
  1488. </div>
  1489. <div v-if="
  1490. tType &&
  1491. ((tType == 2 && sIsOpen == true) ||
  1492. tType == 1 ||
  1493. tType == 4) &&
  1494. tool.tool.indexOf(6) != -1
  1495. " class="worksBox">
  1496. <div class="zuoyeYulan" v-if="
  1497. worksStudent.length &&
  1498. worksStudent[toolIndex].length > 0
  1499. ">
  1500. <span>作业预览</span>
  1501. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1502. </div>
  1503. <div class="worksDetailBox" v-if="
  1504. worksStudent.length &&
  1505. worksStudent[toolIndex].length > 0
  1506. ">
  1507. <div class="works" style="
  1508. width: 200px;
  1509. height: 140px;
  1510. margin: 10px 10px 10px 0;
  1511. border-radius: 15px;
  1512. box-shadow: 0 0 6px 1px #dfdada;
  1513. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1514. <!-- @click="previewImg(w.works)" -->
  1515. <div class="workImg">
  1516. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1517. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1518. :class="{ rightW: w.userid == userid }">
  1519. {{ JSON.parse(w.score).wScore }}分
  1520. </div>
  1521. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1522. :class="{ rightW: w.userid == userid }">
  1523. 评分
  1524. </div>
  1525. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1526. @click.stop="deleteWorks(w.wid)" alt />
  1527. </div>
  1528. <div class="comment" style="min-width: 200px">
  1529. <div class="worksName">
  1530. <div>{{ w.sName }}</div>
  1531. </div>
  1532. <div class="commentList">
  1533. <div class="commentList">
  1534. <div class="commentImg" @click="
  1535. isLikes(w.wid, userid, 1, null, w.isLikes)
  1536. ">
  1537. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1538. </div>
  1539. <div>{{ w.likesCount }}</div>
  1540. </div>
  1541. <div class="commentList" style="margin-right: 15px">
  1542. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1543. <img src="../assets/icon/comment/comment.png" alt="" />
  1544. </div>
  1545. <div>{{ w.commentCount }}</div>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. <div style="font-size: 18px">未提交</div>
  1552. <div class="noWorksS">
  1553. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1554. {{ s.student }}
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div v-if="
  1559. tType &&
  1560. ((tType == 2 && sIsOpen == true) ||
  1561. tType == 1 ||
  1562. tType == 4) &&
  1563. tool.tool.indexOf(7) != -1
  1564. " class="worksBox">
  1565. <div class="zuoyeYulan" v-if="
  1566. worksStudent.length &&
  1567. worksStudent[toolIndex].length > 0
  1568. ">
  1569. <span>作业预览</span>
  1570. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1571. </div>
  1572. <div class="worksDetailBox" v-if="
  1573. worksStudent.length &&
  1574. worksStudent[toolIndex].length > 0
  1575. ">
  1576. <div class="works" style="
  1577. width: 200px;
  1578. height: 140px;
  1579. margin: 10px 10px 10px 0;
  1580. border-radius: 15px;
  1581. box-shadow: 0 0 6px 1px #dfdada;
  1582. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1583. <!-- @click="previewImg(w.works)" -->
  1584. <div class="workImg">
  1585. <img :src="w.works" @click="commentOther(w, toolIndex, wIndex)" alt />
  1586. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)"
  1587. :class="{ rightW: w.userid == userid }">
  1588. {{ JSON.parse(w.score).wScore }}分
  1589. </div>
  1590. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1591. :class="{ rightW: w.userid == userid }">
  1592. 评分
  1593. </div>
  1594. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1595. @click.stop="deleteWorks(w.wid)" alt />
  1596. </div>
  1597. <div class="comment" style="min-width: 200px">
  1598. <div class="worksName">
  1599. <div>{{ w.sName }}</div>
  1600. </div>
  1601. <div class="commentList">
  1602. <div class="commentList">
  1603. <div class="commentImg" @click="
  1604. isLikes(w.wid, userid, 1, null, w.isLikes)
  1605. ">
  1606. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1607. </div>
  1608. <div>{{ w.likesCount }}</div>
  1609. </div>
  1610. <div class="commentList" style="margin-right: 15px">
  1611. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1612. <img src="../assets/icon/comment/comment.png" alt="" />
  1613. </div>
  1614. <div>{{ w.commentCount }}</div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. </div>
  1620. <div style="font-size: 18px">未提交</div>
  1621. <div class="noWorksS">
  1622. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1623. {{ s.student }}
  1624. </div>
  1625. </div>
  1626. </div>
  1627. <div v-if="
  1628. tType &&
  1629. ((tType == 2 && sIsOpen == true) ||
  1630. tType == 1 ||
  1631. tType == 4) &&
  1632. tool.tool.indexOf(26) != -1
  1633. " class="worksBox">
  1634. <div class="zuoyeYulan" v-if="
  1635. worksStudent.length &&
  1636. worksStudent[toolIndex].length > 0
  1637. ">
  1638. <span>作业预览</span>
  1639. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1640. </div>
  1641. <div class="worksDetailBox" v-if="
  1642. worksStudent.length &&
  1643. worksStudent[toolIndex].length > 0
  1644. ">
  1645. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1646. v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1647. :class="w.type == 1 ? 'isTypeOne' : ''">
  1648. <div class="workImg" v-if="w.type == 0">
  1649. <img :src="w.works" @click="previewImg(w.works)" alt />
  1650. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1651. @click.stop="deleteWorks(w.wid)" alt />
  1652. </div>
  1653. <div class="workImg" v-if="w.type == 1">
  1654. <img :src="word" @click="openFile(w.works)" alt />
  1655. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1656. @click.stop="deleteWorks(w.wid)" alt />
  1657. </div>
  1658. <div class="worksName">
  1659. <div>{{ w.sName }}</div>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. <div style="font-size: 18px">未提交</div>
  1664. <div class="noWorksS">
  1665. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1666. {{ s.student }}
  1667. </div>
  1668. </div>
  1669. </div>
  1670. <div v-if="
  1671. tType &&
  1672. ((tType == 2 && sIsOpen == true) ||
  1673. tType == 1 ||
  1674. tType == 4) &&
  1675. tool.tool.indexOf(40) != -1
  1676. " class="worksBox">
  1677. <div class="zuoyeYulan" v-if="
  1678. worksStudent.length &&
  1679. worksStudent[toolIndex].length > 0
  1680. ">
  1681. <span>作业预览</span>
  1682. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1683. </div>
  1684. <div class="worksDetailBox" v-if="
  1685. worksStudent.length &&
  1686. worksStudent[toolIndex].length > 0
  1687. ">
  1688. <div class="works" style="
  1689. width: 200px;
  1690. height: 140px;
  1691. margin: 10px 10px 10px 0;
  1692. border-radius: 15px;
  1693. box-shadow: 0 0 6px 1px #dfdada;
  1694. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1695. :class="w.type == 1 ? 'isTypeOne' : ''">
  1696. <div class="workImg">
  1697. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1698. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1699. @click.stop="deleteWorks(w.wid)" alt />
  1700. </div>
  1701. <div class="comment" style="min-width: 200px">
  1702. <div class="worksName">
  1703. <div>{{ w.sName }}</div>
  1704. </div>
  1705. <div class="commentList">
  1706. <div class="commentList">
  1707. <div class="commentImg" @click="
  1708. isLikes(w.wid, userid, 1, null, w.isLikes)
  1709. ">
  1710. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1711. </div>
  1712. <div>{{ w.likesCount }}</div>
  1713. </div>
  1714. <div class="commentList" style="margin-right: 15px">
  1715. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1716. <img src="../assets/icon/comment/comment.png" alt="" />
  1717. </div>
  1718. <div>{{ w.commentCount }}</div>
  1719. </div>
  1720. </div>
  1721. </div>
  1722. </div>
  1723. </div>
  1724. <div style="font-size: 18px">未提交</div>
  1725. <div class="noWorksS">
  1726. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1727. {{ s.student }}
  1728. </div>
  1729. </div>
  1730. </div>
  1731. <div v-if="
  1732. tType &&
  1733. tType == 2 &&
  1734. !sIsOpen &&
  1735. tool.tool.indexOf(40) != -1
  1736. " class="worksBox">
  1737. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1738. <span>作业预览</span>
  1739. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1740. </div>
  1741. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1742. <div class="works" style="
  1743. width: 200px;
  1744. height: 140px;
  1745. margin: 10px 10px 10px 0;
  1746. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1747. <div class="workImg">
  1748. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1749. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1750. @click.stop="deleteWorks(w.wid)" alt />
  1751. </div>
  1752. <div class="worksName">
  1753. <div>{{ w.sName }}</div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. </div>
  1758. <div v-if="
  1759. tType &&
  1760. ((tType == 2 && sIsOpen == true) ||
  1761. tType == 1 ||
  1762. tType == 4) &&
  1763. tool.tool.indexOf(41) != -1
  1764. ">
  1765. <AnswerData2 v-if="
  1766. worksStudent.length &&
  1767. worksStudent[toolIndex].length > 0
  1768. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1769. </div>
  1770. <div v-if="
  1771. tType &&
  1772. ((tType == 2 && sIsOpen == true) ||
  1773. tType == 1 ||
  1774. tType == 4) &&
  1775. tool.tool.indexOf(41) != -1
  1776. " class="worksBox">
  1777. <div class="zuoyeYulan" v-if="
  1778. worksStudent.length &&
  1779. worksStudent[toolIndex].length > 0
  1780. ">
  1781. <span>作业预览</span>
  1782. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1783. </div>
  1784. <div class="worksDetailBox" v-if="
  1785. worksStudent.length &&
  1786. worksStudent[toolIndex].length > 0
  1787. ">
  1788. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  1789. @click="openXz(w, toolIndex)">
  1790. {{ w.sName }}
  1791. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1792. @click.stop="deleteWorks(w.wid)" alt />
  1793. </div>
  1794. <!-- <div
  1795. class="works"
  1796. style="
  1797. width: 200px;
  1798. height: 140px;
  1799. margin: 10px 10px 10px 0;
  1800. border-radius: 15px;
  1801. box-shadow: 0 0 6px 1px #dfdada;
  1802. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1803. :class="w.type == 5 ? 'isTypeOne' : ''">
  1804. <div class="workImg">
  1805. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1806. </div>
  1807. <div class="worksName">
  1808. <div>{{ w.sName }}</div>
  1809. </div>
  1810. </div> -->
  1811. </div>
  1812. <div style="font-size: 18px">未提交</div>
  1813. <div class="noWorksS">
  1814. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1815. {{ s.student }}
  1816. </div>
  1817. </div>
  1818. </div>
  1819. <div v-if="
  1820. tType &&
  1821. tType == 2 &&
  1822. !sIsOpen &&
  1823. tool.tool.indexOf(41) != -1
  1824. " class="worksBox">
  1825. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1826. <span>作业预览</span>
  1827. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1828. </div>
  1829. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1830. <div class="works" style="
  1831. width: 200px;
  1832. height: 140px;
  1833. margin: 10px 10px 10px 0;
  1834. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1835. <div class="workImg">
  1836. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1837. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1838. @click.stop="deleteWorks(w.wid)" alt />
  1839. </div>
  1840. <div class="worksName">
  1841. <div>{{ w.sName }}</div>
  1842. </div>
  1843. </div>
  1844. </div>
  1845. </div>
  1846. <div v-if="false" class="xuan_right_box">
  1847. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  1848. <div>
  1849. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  1850. </div>
  1851. <div class="right_box_xuan">
  1852. <span>正确率</span>
  1853. <span>{{
  1854. (checkJson[toolIndex][index].right
  1855. ? checkJson[toolIndex][index].right
  1856. : 0) + "%"
  1857. }}</span>
  1858. </div>
  1859. <div class="right_box_xuan">
  1860. <span>答对人数</span>
  1861. <span>{{
  1862. checkJson[toolIndex][index].rightPerson.length
  1863. }}</span>
  1864. </div>
  1865. </div>
  1866. </div>
  1867. <div v-if="
  1868. tType &&
  1869. ((tType == 2 && sIsOpen == true) ||
  1870. tType == 1 ||
  1871. tType == 4) &&
  1872. tool.tool.indexOf(47) != -1
  1873. ">
  1874. <AnswerData v-if="
  1875. checkJson[toolIndex].length &&
  1876. (tool.sentenceList || tool.sentenceList.length > 0)
  1877. " :people="checkJson[toolIndex]"></AnswerData>
  1878. </div>
  1879. <div v-if="
  1880. tType &&
  1881. tType == 2 &&
  1882. !sIsOpen &&
  1883. tool.tool.indexOf(47) != -1
  1884. " class="worksBox">
  1885. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1886. <span>作业预览</span>
  1887. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1888. </div>
  1889. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1890. <div class="works" style="
  1891. width: 200px;
  1892. height: 140px;
  1893. margin: 10px 10px 10px 0;
  1894. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1895. <!-- @click="openXz(w, toolIndex)" -->
  1896. <div class="workImg" @click="openSen(w, toolIndex)">
  1897. <img src="../assets/icon/works/noImg.png" alt />
  1898. <img class="deleteImg" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1899. @click.stop="deleteWorks(w.wid)" alt />
  1900. </div>
  1901. <div class="worksName">
  1902. <div>
  1903. {{ w.sName }}
  1904. </div>
  1905. </div>
  1906. </div>
  1907. </div>
  1908. </div>
  1909. <div v-if="
  1910. tType &&
  1911. ((tType == 2 && sIsOpen == true) ||
  1912. tType == 1 ||
  1913. tType == 4) &&
  1914. tool.tool.indexOf(47) != -1
  1915. " class="worksBox">
  1916. <div class="zuoyeYulan" v-if="
  1917. worksStudent.length &&
  1918. worksStudent[toolIndex].length > 0
  1919. ">
  1920. <span>作业预览</span>
  1921. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1922. </div>
  1923. <div class="worksDetailBox" v-if="
  1924. worksStudent.length &&
  1925. worksStudent[toolIndex].length > 0
  1926. ">
  1927. <!-- @click="openXz(w, toolIndex)" -->
  1928. <div v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex" class="isWorksName"
  1929. @click="openSen(w, toolIndex)">
  1930. {{ w.sName }}
  1931. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="w.userid == userid"
  1932. @click.stop="deleteWorks(w.wid)" alt />
  1933. </div>
  1934. </div>
  1935. <div style="font-size: 18px">未提交</div>
  1936. <div class="noWorksS">
  1937. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1938. {{ s.student }}
  1939. </div>
  1940. </div>
  1941. </div>
  1942. </div>
  1943. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1944. 上传文件
  1945. <input
  1946. type="file"
  1947. accept="image/png, image/gif, image/jpeg"
  1948. style="display: none"
  1949. @change="beforeUpload1($event, 2, index)"
  1950. />
  1951. </div>-->
  1952. </div>
  1953. </div>
  1954. <div class="vedioBox" v-if="
  1955. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1956. .eList &&
  1957. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1958. .eList.length &&
  1959. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1960. .eList.length > 0 &&
  1961. tType != 2
  1962. ">
  1963. <div class="queTop" style="
  1964. font-size: 25px;
  1965. padding: 15px 0 15px 30px;
  1966. font-weight: bold;
  1967. ">
  1968. <!-- <div class="question" style="width: 30px">
  1969. <img src="../assets/icon/toolIcon.png" alt />
  1970. </div>
  1971. <div class="queTitle">
  1972. <div>工具</div>
  1973. </div>-->
  1974. 评一评
  1975. </div>
  1976. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  1977. <div class="elist_input">
  1978. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  1979. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  1980. <div style="width: 95%">
  1981. <div style="
  1982. display: flex;
  1983. flex-direction: row;
  1984. flex-wrap: nowrap;
  1985. align-items: center;
  1986. ">
  1987. <div style="max-width: calc(100% - 285px)">
  1988. <span>{{ eItem.value }}</span>
  1989. </div>
  1990. <div style="
  1991. padding-left: 25px;
  1992. display: flex;
  1993. flex-direction: row;
  1994. align-items: center;
  1995. ">
  1996. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  1997. </div>
  1998. </div>
  1999. <div class="elist_inptu_text" style="padding-left: 10px">
  2000. <span v-if="eItem.detail != ''">{{
  2001. eItem.detail
  2002. }}</span>
  2003. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. </div>
  2008. <div v-if="evalua" style="
  2009. border: 1px solid #e5e5e5;
  2010. max-width: 650px;
  2011. width: 100%;
  2012. margin-top: 20px;
  2013. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2014. ">
  2015. <div class="e_add_top">
  2016. <div class="e_add_title">
  2017. <span>目标管理名称</span>
  2018. <span>{{ eTitle }}</span>
  2019. <img src="../assets/line.png" class="cru_line" style="
  2020. width: 125px;
  2021. height: 20px;
  2022. bottom: -10px;
  2023. left: 120px;
  2024. " />
  2025. <!-- <el-input
  2026. v-model="eTitle"
  2027. placeholder="请输入名称"
  2028. @change="setMindData"
  2029. ></el-input>-->
  2030. </div>
  2031. </div>
  2032. <div class="e_add_content">
  2033. <div class="e_add_list_pbox">
  2034. <div class="e_add_list_pbox_title">
  2035. <span class="type_title">切换模式</span>
  2036. <div class="type_content">
  2037. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  2038. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  2039. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  2040. </div>
  2041. </div>
  2042. <div class="e_add_list_pbox_content">
  2043. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  2044. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  2045. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2046. v-if="typeMode == 3"></SeeBoard>
  2047. </div>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. <!-- <div
  2054. class="project_box"
  2055. style="margin-top: 15px; padding-bottom: 30px"
  2056. >
  2057. <div
  2058. style="
  2059. display: flex;
  2060. flex-wrap: nowrap;
  2061. flex-direction: column;
  2062. position: relative;
  2063. "
  2064. >
  2065. <div class="queTop">
  2066. <div class="question">
  2067. <img src="../assets/icon/homeWork.png" alt="" />
  2068. </div>
  2069. <div class="queTitle">
  2070. <div>作业提交<span>(提交图文视频等)</span></div>
  2071. <div>:任务:{{ task.task }}</div>
  2072. </div>
  2073. </div>
  2074. <div class="ediBottom">
  2075. <div
  2076. class="addEditor"
  2077. style="margin-top: 23px"
  2078. @click="openAddWork"
  2079. v-if="!isNoHomeWork"
  2080. >
  2081. 选择文件
  2082. </div>
  2083. <div
  2084. class="addEditor"
  2085. style="margin-top: 23px"
  2086. @click="openAddWork"
  2087. v-else
  2088. >
  2089. 已提交
  2090. </div>
  2091. </div>
  2092. </div>
  2093. </div>-->
  2094. </div>
  2095. </div>
  2096. <el-dialog title="提交实践作业" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  2097. :before-close="handleClose" class="dialog_change">
  2098. <div class="marginT">
  2099. <div>上传文件</div>
  2100. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2101. <div class="up_photo">
  2102. <img src="../assets/icon/uploadImg.png" alt />
  2103. </div>
  2104. <input type="file"
  2105. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2106. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  2107. <!-- <input
  2108. type="file"
  2109. accept="image/*"
  2110. capture="camera"
  2111. style="display: none"
  2112. @change="beforeUpload1($event, 1)"
  2113. /> -->
  2114. </div>
  2115. <div class="chapter_add" style="
  2116. display: flex;
  2117. width: 100%;
  2118. flex-direction: row;
  2119. flex-wrap: wrap;
  2120. justify-content: flex-start;
  2121. padding: 15px 0;
  2122. " v-if="studyJuri[0].cover.length > 0">
  2123. <div class="upCover">
  2124. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2125. <img :src="word" alt v-else-if="fileType == 1" />
  2126. <img :src="video" alt v-else />
  2127. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2128. <div class="deleteWord" @click="clean(1)">
  2129. <img src="../assets/icon/deleteWorks.png" alt />
  2130. </div>
  2131. </div>
  2132. </div>
  2133. </div>
  2134. <!-- <div class="first">
  2135. <div>作业名称:</div>
  2136. <div>{{ chapInfoList[courseType].dyName }}</div>
  2137. </div>
  2138. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  2139. <el-input
  2140. type="textarea"
  2141. resize="none"
  2142. rows="7"
  2143. placeholder="输入文字描述..."
  2144. v-model="studyJuri[0].content"
  2145. ></el-input>
  2146. <div class="marginT">
  2147. <div>上传图片</div>
  2148. <div class="chapter_add" @click="addImg($event)">
  2149. <div class="up_photo">
  2150. <img src="../assets/photo.png" alt />
  2151. </div>
  2152. <input
  2153. type="file"
  2154. accept="image/png, image/gif, image/jpeg"
  2155. style="display: none"
  2156. @change="beforeUpload1($event, 1)"
  2157. />
  2158. </div>
  2159. <div
  2160. class="chapter_add"
  2161. style="
  2162. display: flex;
  2163. width: 100%;
  2164. flex-direction: row;
  2165. flex-wrap: wrap;
  2166. justify-content: flex-start;
  2167. "
  2168. v-if="studyJuri[0].cover.length > 0"
  2169. >
  2170. <div
  2171. v-for="(c, cIndex) in studyJuri[0].cover"
  2172. :key="cIndex"
  2173. class="upCover"
  2174. >
  2175. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  2176. <span class="picName">{{ c.name }}</span>
  2177. <div class="deleteWord" @click="clean(1)">
  2178. <img src="../assets/icon/delete.png" alt />
  2179. </div>
  2180. </div>
  2181. </div>
  2182. </div>
  2183. <div class="marginT">
  2184. <div>上传视频</div>
  2185. <div class="chapter_add" @click="addImg($event)">
  2186. <div class="up_photo">
  2187. <img src="../assets/vidio.png" alt />
  2188. </div>
  2189. <input
  2190. type="file"
  2191. accept="video/mp4, video/quicktime, video/x-msvideo"
  2192. style="display: none"
  2193. @change="beforeUpload2($event, 2)"
  2194. />
  2195. </div>
  2196. <div
  2197. class="chapter_add"
  2198. style="
  2199. display: flex;
  2200. flex-direction: row;
  2201. flex-wrap: wrap;
  2202. width: 100%;
  2203. justify-content: flex-start;
  2204. "
  2205. v-if="studyJuri[0].upVedio.length > 0"
  2206. >
  2207. <div
  2208. style="
  2209. width: 100%;
  2210. display: flex;
  2211. flex-direction: row;
  2212. flex-wrap: wrap;
  2213. align-content: flex-start;
  2214. justify-content: flex-start;
  2215. align-items: center;
  2216. "
  2217. >
  2218. <div
  2219. class="uploadVedio isAddThings"
  2220. v-for="(v, vIndex) in studyJuri[0].upVedio"
  2221. :key="vIndex"
  2222. >
  2223. <img src="../assets/uploadMp4.png" alt />
  2224. <span>{{ v.name }}</span>
  2225. <div class="deleteWord" @click="clean(2)">
  2226. <img src="../assets/icon/delete.png" alt />
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>-->
  2232. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  2233. </el-dialog>
  2234. </div>
  2235. </div>
  2236. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  2237. <!-- 批 -->
  2238. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  2239. </div>
  2240. <div v-if="pzDialog == true" class="newDialogCss">
  2241. <div class="pzTop2">
  2242. <!-- <div>批注</div>
  2243. <div @click="pzDialog = false">
  2244. <img src="../assets/close1.png" alt="" />
  2245. </div> -->
  2246. <div class="checkbox">
  2247. <div class="check" style="font-size: 25px">听课笔记</div>
  2248. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  2249. </div>
  2250. </div>
  2251. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  2252. <div class="pzListBox" v-if="pzList && pzList.length">
  2253. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  2254. <div class="pzNavTop">
  2255. <div>批</div>
  2256. <div>
  2257. {{
  2258. pz.username.length > 5
  2259. ? pz.username.substring(0, 5) + "..."
  2260. : pz.username
  2261. }}的批注
  2262. </div>
  2263. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  2264. 删除
  2265. </div>
  2266. </div>
  2267. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'">
  2268. <!-- {{ }} -->
  2269. </div>
  2270. <div class="pzContent" v-if="pz.type == '2'">
  2271. <audio :src="pz.content" controls="controls" ref="audio">
  2272. Your browser does not support the audio element.
  2273. </audio>
  2274. </div>
  2275. <div class="pzContent" v-if="pz.type == '3'">
  2276. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block"
  2277. @click="previewImg(pz.content)" />
  2278. </div>
  2279. <div class="time">
  2280. {{ pz.time }}
  2281. </div>
  2282. </div>
  2283. </div>
  2284. <div class="noPz" v-else>
  2285. <img src="../assets/icon/noPz.png" alt="" />
  2286. </div>
  2287. <div class="addPzButton">
  2288. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  2289. 添加批注
  2290. </div>
  2291. <div class="img1">
  2292. <div @click="(addPzDialog = true), (pzType = 2)">
  2293. <img src="../assets/audio.png" /><span>音频</span>
  2294. </div>
  2295. <!-- <img src="../assets/picture.png" @click="addPzDialog = true,pzType = 3" /> -->
  2296. </div>
  2297. </div>
  2298. </div>
  2299. </div>
  2300. <div v-if="addPzDialog == true" class="addDialogCss">
  2301. <div class="pzTop">
  2302. <div class="teacherPz">
  2303. <div class="teacherPzImg">
  2304. <img src="../assets/icon/teacherPz.png" alt="" />
  2305. </div>
  2306. <div style="margin-left: 10px; height: 25px">教师批注</div>
  2307. </div>
  2308. <div @click="addPzDialog = false">
  2309. <img src="../assets/close1.png" alt="" />
  2310. </div>
  2311. </div>
  2312. <div class="addPzBox">
  2313. <div class="addPzCheck">
  2314. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  2315. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  2316. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  2317. </div>
  2318. <div style="height: calc(100% - 95px)">
  2319. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  2320. v-if="pzType == 1"></textarea> -->
  2321. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  2322. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  2323. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  2324. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  2325. <div @click="addImg($event)">
  2326. <el-button type="primary">上传图片</el-button>
  2327. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  2328. @change="beforeUpload1($event, 4)" />
  2329. </div>
  2330. </div> -->
  2331. </div>
  2332. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  2333. 确定
  2334. </div>
  2335. </div>
  2336. </div>
  2337. <div v-if="proVisible" class="mask">
  2338. <div class="progressBox">
  2339. <div class="lbox">
  2340. <img src="../assets/loading.gif" />上传中,请稍后
  2341. </div>
  2342. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  2343. </div>
  2344. </div>
  2345. <el-dialog :visible.sync="pictureDialog" size="tiny">
  2346. <img width="100%" :src="dialogImageUrl" alt />
  2347. </el-dialog>
  2348. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  2349. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2350. <div>
  2351. <div class="a_add_title" style="
  2352. display: flex;
  2353. flex-direction: row;
  2354. align-items: center;
  2355. justify-content: center;
  2356. ">
  2357. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2358. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2359. </div>
  2360. <div class="a_addBox">
  2361. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  2362. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2363. <div class="a_add_head">
  2364. <div style="display: flex">
  2365. {{ index1 + 1 + "、" }}
  2366. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  2367. </div>
  2368. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2369. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2370. </div>
  2371. <div class="a_add_body">
  2372. <div class="a_add_input">
  2373. <el-radio-group v-model="radio[index1]">
  2374. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2375. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  2376. v-html="item2"></span></el-radio>
  2377. </el-radio-group>
  2378. </div>
  2379. </div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. <span slot="footer" class="dialog-footer">
  2384. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  2385. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  2386. </span>
  2387. </el-dialog>
  2388. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  2389. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2390. <div>
  2391. <div class="a_add_title" style="
  2392. display: flex;
  2393. flex-direction: row;
  2394. align-items: center;
  2395. justify-content: center;
  2396. ">
  2397. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2398. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  2399. </div>
  2400. <div class="a_addBox">
  2401. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  2402. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2403. <div class="a_add_head">
  2404. <div style="display: flex">
  2405. {{ index1 + 1 + "、" }}
  2406. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  2407. </div>
  2408. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  2409. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2410. </div>
  2411. <div class="a_add_body">
  2412. <div class="a_add_input">
  2413. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  2414. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2415. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  2416. v-html="item2"></span></el-radio>
  2417. </el-radio-group>
  2418. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  2419. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  2420. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  2421. <span v-html="item2"></span>
  2422. </el-checkbox>
  2423. </el-checkbox-group>
  2424. </div>
  2425. </div>
  2426. </div>
  2427. </div>
  2428. </div>
  2429. <span slot="footer" class="dialog-footer">
  2430. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  2431. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  2432. </span>
  2433. </el-dialog>
  2434. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  2435. :before-close="handleClose" class="dialog_diy textCss">
  2436. <el-form style="font-size: 20px">
  2437. <el-form-item label="文本标题" class="textTitle">
  2438. <div style="font-size: 20px">{{ text.name }}</div>
  2439. </el-form-item>
  2440. <div>富文本内容</div>
  2441. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  2442. </el-form>
  2443. <span slot="footer" class="dialog-footer">
  2444. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  2445. </span>
  2446. </el-dialog>
  2447. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  2448. :class="{ fullStyle: full }">
  2449. <div slot="title" class="header-title">
  2450. <div style="color: #fff">文件预览</div>
  2451. <div style="position: absolute; top: 19px; right: 50px">
  2452. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  2453. </div>
  2454. </div>
  2455. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2456. :class="{ fullStyle: full }"></pdf>
  2457. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2458. </el-dialog>
  2459. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  2460. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  2461. </el-dialog>
  2462. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px"
  2463. :before-close="handleClose" class="dialog_diy notice">
  2464. <div>此功能暂未开放!</div>
  2465. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  2466. </el-dialog>
  2467. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2468. :before-close="handleClose" class="dialog_diy">
  2469. <div>
  2470. <div style="
  2471. display: flex;
  2472. flex-wrap: nowrap;
  2473. flex-direction: column;
  2474. position: relative;
  2475. ">
  2476. <div class="queTop" style="padding: 20px 0 20px 0">
  2477. <div class="question">
  2478. <img src="../assets/icon/question.png" alt />
  2479. </div>
  2480. <div class="queTitle">
  2481. <div style="width: 90px; min-width: 90px">提问:</div>
  2482. <div>{{ answerQ }}</div>
  2483. </div>
  2484. </div>
  2485. <div class="ediBottom">
  2486. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2487. v-model="questionAnswer"></textarea>
  2488. </div>
  2489. </div>
  2490. </div>
  2491. <div slot="footer">
  2492. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2493. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2494. </div>
  2495. </el-dialog>
  2496. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  2497. :before-close="handleClose" class="dialog_diy">
  2498. <div>
  2499. <Time v-if="timeDialogVisible"></Time>
  2500. </div>
  2501. <div slot="footer">
  2502. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  2503. </div>
  2504. </el-dialog>
  2505. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  2506. class="dialog_diy">
  2507. <div>
  2508. <div class="open_box">
  2509. <div class="switch_box">
  2510. <span>学生是否能查看所有作业</span>
  2511. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  2512. </div>
  2513. <div class="switch_box" v-if="courseDetail.userid == userid">
  2514. <span>是否锁定阶段</span>
  2515. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. <div slot="footer">
  2520. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  2521. </div>
  2522. </el-dialog>
  2523. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px"
  2524. :before-close="handleClose" class="dialog_diy1">
  2525. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2526. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2527. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2528. </div>
  2529. <div slot="footer">
  2530. <el-button style="background: #409efe; color: #fff"
  2531. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  2532. 关 闭</el-button>
  2533. </div>
  2534. </el-dialog>
  2535. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  2536. :before-close="handleClose" class="dialog_diy">
  2537. <div class="commentTop">
  2538. <div class="studentDetail">
  2539. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  2540. <div class="nameAndTime">
  2541. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  2542. <div>{{ commentDetail.time }}</div>
  2543. </div>
  2544. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  2545. commentDetail.works &&
  2546. commentDetail.type == 0 &&
  2547. (tType == 1 || tType == 4)
  2548. " @click="showPicturePaint(commentDetail.works)">
  2549. 教师批注
  2550. </div>
  2551. </div>
  2552. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  2553. {{ JSON.parse(commentDetail.works)[0].answer }}
  2554. </div>
  2555. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  2556. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2557. :class="{ fullStyle: full }"></pdf>
  2558. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  2559. :class="{ fullStyle: full }"></iframe>
  2560. </div>
  2561. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  2562. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  2563. </div>
  2564. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  2565. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2566. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  2567. </div>
  2568. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  2569. <div class="evalCss">
  2570. <div class="nav">请选择星星进行评分</div>
  2571. <div class="middleBox" v-if="eScore.eStar">
  2572. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  2573. <div class="nameAndrate">
  2574. <div>{{ e.value }}</div>
  2575. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  2576. </div>
  2577. <div v-if="e.detail">{{ e.detail }}</div>
  2578. </div>
  2579. <div class="bz">
  2580. <textarea disabled rows="4" class="pj" style="
  2581. padding: 10px 5px;
  2582. width: 70%;
  2583. background: #f7f6f9;
  2584. font-size: 14px;
  2585. text-indent: 10px;
  2586. color: #000;
  2587. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  2588. </div>
  2589. </div>
  2590. </div>
  2591. </div>
  2592. <div class="comment">
  2593. <div class="commentList">
  2594. <div class="commentImg">
  2595. <img @click="
  2596. isLikes(
  2597. commentDetail.wid,
  2598. userid,
  2599. 1,
  2600. null,
  2601. commentDetail.isLikes
  2602. )
  2603. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  2604. </div>
  2605. <div>{{ commentDetail.likesCount }}</div>
  2606. </div>
  2607. <div class="commentList">
  2608. <div class="commentImg">
  2609. <img src="../assets/icon/comment/comment.png" alt="" />
  2610. </div>
  2611. <div>{{ commentDetail.commentCount }}</div>
  2612. </div>
  2613. </div>
  2614. <div class="drawPBox" v-if="commentDetail.img">
  2615. <span>教师批注</span>
  2616. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  2617. </div>
  2618. </div>
  2619. <div class="commentBox">
  2620. <div class="pl">评论:</div>
  2621. <div style="max-height: 200px; overflow: auto">
  2622. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  2623. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  2624. :key="coIndex">
  2625. <div class="tx" style="min-width: 50px">
  2626. <img src="../assets/avatar.png" alt="" />
  2627. </div>
  2628. <div class="plPerson">
  2629. <div class="plName">
  2630. <div>{{ co.commentPeople }}</div>
  2631. <div style="margin-left: 5px">
  2632. {{ co.commentTime }}
  2633. </div>
  2634. </div>
  2635. <div class="plContent">{{ co.commentText }}</div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  2640. </div>
  2641. </div>
  2642. <div style="margin-top: 10px">
  2643. <div class="displayBox">
  2644. <div style="
  2645. color: #556db4;
  2646. font-size: 14px;
  2647. font-weight: bold;
  2648. padding-bottom: 10px;
  2649. ">
  2650. 评价
  2651. </div>
  2652. <div class="easy_comment">
  2653. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  2654. {{ p }}
  2655. </div>
  2656. </div>
  2657. </div>
  2658. <div>
  2659. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  2660. placeholder="请输入对该学生的评价"></textarea>
  2661. </div>
  2662. </div>
  2663. <div slot="footer">
  2664. <el-button @click="
  2665. (commentDialogVisible = false),
  2666. (commentIndexJson = {}),
  2667. videoDetail.sources && videoDetail.sources[0]
  2668. ? (videoDetail.sources[0].src = '')
  2669. : ''
  2670. ">取 消</el-button>
  2671. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  2672. </div>
  2673. </el-dialog>
  2674. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2675. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy">
  2676. <div slot="title" class="header-title">
  2677. <div style="color: #fff">查看文档</div>
  2678. <div @click="fullDialogVisible = false" style="
  2679. cursor: pointer;
  2680. position: absolute;
  2681. top: 20px;
  2682. right: 20px;
  2683. color: #fff;
  2684. ">
  2685. 退出全屏
  2686. </div>
  2687. </div>
  2688. <div style="height: 100%">
  2689. <iframe v-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2690. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  2691. <div class="wheel" v-if="fulltype == 1" style="
  2692. box-shadow: 0 0 6px 1px #f2f2f2;
  2693. width: 100%;
  2694. background: #f1f1f1;
  2695. ">
  2696. <div class="title" style="width: 100%; box-sizing: border-box">
  2697. 查看文档
  2698. </div>
  2699. <el-form class="textBox" style="height: 90%">
  2700. <el-form-item class="textTitle">
  2701. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2702. {{ fullUrl.name }}
  2703. </div>
  2704. </el-form-item>
  2705. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2706. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2707. </el-form>
  2708. </div>
  2709. </div>
  2710. <!-- <div slot="footer">
  2711. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2712. </div> -->
  2713. </el-dialog>
  2714. <el-dialog title="学生评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  2715. :before-close="handleClose" class="dialog_diy">
  2716. <div class="evalCss">
  2717. <div class="nav">请选择星星进行评分</div>
  2718. <div class="middleBox" v-if="eScore.eStar">
  2719. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  2720. <div class="nameAndrate">
  2721. <div>{{ e.value }}</div>
  2722. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  2723. </div>
  2724. <div v-if="e.detail">{{ e.detail }}</div>
  2725. </div>
  2726. <div class="easy_comment" v-if="isStar == false">
  2727. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  2728. {{ p }}
  2729. </div>
  2730. </div>
  2731. <div class="bz">
  2732. <textarea :disabled="isStar" rows="4" class="pj" style="
  2733. padding: 10px 5px;
  2734. width: 70%;
  2735. background: #f7f6f9;
  2736. font-size: 14px;
  2737. text-indent: 10px;
  2738. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <div slot="footer">
  2743. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  2744. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  2745. </div>
  2746. </el-dialog>
  2747. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  2748. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2749. <div v-if="selectJson">
  2750. <div class="select_box2">
  2751. <div class="select_box2_title">
  2752. <div>选择填空</div>
  2753. <div>请选择对应的答案进行答题!</div>
  2754. </div>
  2755. <div class="select_box2_box">
  2756. <div class="select_box2_img">
  2757. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  2758. </div>
  2759. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  2760. <div style="padding-top: 15px">
  2761. <div class="select_answer_title" v-if="isSelect">
  2762. {{ selectAnswer.stu }}
  2763. </div>
  2764. <div class="select_answer_title" v-else>
  2765. 根据题目选择对应答案
  2766. </div>
  2767. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2768. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  2769. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  2770. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2771. </el-option>
  2772. </el-select>
  2773. </div>
  2774. </div>
  2775. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  2776. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  2777. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  2778. 回答正确
  2779. </div>
  2780. <div v-else>回答错误</div>
  2781. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  2782. 正确答案:
  2783. </div>
  2784. <div :class="
  2785. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  2786. ">
  2787. {{ selectJson.select[a] }}
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. <div class="upAnswerCss">
  2793. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </el-dialog>
  2799. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  2800. :before-close="handleClose" class="dialog_diy">
  2801. <div>
  2802. <div class="studentDetail">
  2803. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  2804. <div class="nameAndTime">
  2805. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  2806. <div>{{ commentDetail.time }}</div>
  2807. </div>
  2808. </div>
  2809. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  2810. {{ JSON.parse(commentDetail.works)[0].answer }}
  2811. </div>
  2812. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  2813. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2814. :class="{ fullStyle: full }"></pdf>
  2815. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  2816. :class="{ fullStyle: full }"></iframe>
  2817. </div>
  2818. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  2819. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  2820. </div>
  2821. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  2822. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2823. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  2824. </div>
  2825. <div class="scoreBox">
  2826. <span class="t">请输入分数</span>
  2827. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  2828. :max="100"></el-input-number>
  2829. </div>
  2830. <div class="scoreDetailBox">
  2831. <span class="t">评分评论</span>
  2832. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  2833. v-model="scoreDetail" placeholder="请输入对学生的评价">
  2834. </el-input>
  2835. </div>
  2836. </div>
  2837. <span slot="footer" class="dialog-footer">
  2838. <el-button @click="
  2839. (dialogVisibleScore = false),
  2840. (commentIndexJson = {}),
  2841. videoDetail.sources && videoDetail.sources[0]
  2842. ? (videoDetail.sources[0].src = '')
  2843. : ''
  2844. ">取 消</el-button>
  2845. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  2846. </el-button>
  2847. </span>
  2848. </el-dialog>
  2849. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2850. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2851. <div>
  2852. <div class="sentenBox">
  2853. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2854. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  2855. <div class="cardList" v-if="st.chooseSenList">
  2856. <div class="cardBox">
  2857. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  2858. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  2859. <div :class="{
  2860. isCard: r,
  2861. isChooseCard: r == '' || r == undefined,
  2862. }">
  2863. <div>{{ r }}</div>
  2864. </div>
  2865. </el-tooltip>
  2866. <div :class="{
  2867. isCard: r,
  2868. isChooseCard: r == '' || r == undefined,
  2869. }" v-else>
  2870. <div>{{ r }}</div>
  2871. </div>
  2872. </div>
  2873. </div>
  2874. </div>
  2875. <div class="cardList" v-if="st.addChangeSen">
  2876. <div class="cardBox">
  2877. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  2878. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  2879. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  2880. <div>{{ s }}</div>
  2881. </div>
  2882. </el-tooltip>
  2883. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  2884. <div>{{ s }}</div>
  2885. </div>
  2886. </div>
  2887. </div>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. </div>
  2892. <span slot="footer" class="dialog-footer">
  2893. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2894. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  2895. </span>
  2896. </el-dialog>
  2897. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  2898. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2899. <div>
  2900. <div class="sentenBox">
  2901. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  2902. {{ sentenceList1.stuName }}的作业
  2903. </div>
  2904. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  2905. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  2906. 第{{ stIndex + 1 }}题
  2907. </div>
  2908. <div class="isWrong">
  2909. <div class="cardList1" v-if="st.chooseSenList">
  2910. <div class="cardBox">
  2911. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  2912. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2913. <div class="isCard">
  2914. <div>{{ s }}</div>
  2915. </div>
  2916. </el-tooltip>
  2917. </div>
  2918. </div>
  2919. <div class="cardAnswerBox">
  2920. 组成句子:{{ st.chooseSenList.join(" ") }}
  2921. </div>
  2922. </div>
  2923. <div v-if="tType == 2" class="isTj">
  2924. <div class="isTjImg">
  2925. <img src="../assets/icon/conSentences/right.png" alt="" />
  2926. </div>
  2927. <div>已提交</div>
  2928. </div>
  2929. <div class="answerRight isTj" v-if="
  2930. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  2931. (tType == 1 || tType == 4)
  2932. ">
  2933. <div class="isTjImg">
  2934. <img src="../assets/icon/conSentences/right.png" alt="" />
  2935. </div>
  2936. <div>回答正确</div>
  2937. </div>
  2938. <div class="answerRight isTj" v-if="
  2939. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  2940. (tType == 1 || tType == 4)
  2941. ">
  2942. <div class="isTjImg">
  2943. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  2944. </div>
  2945. <div>回答错误</div>
  2946. </div>
  2947. </div>
  2948. <div v-if="
  2949. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  2950. (tType == 1 || tType == 4)
  2951. ">
  2952. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  2953. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  2954. <div class="cardBox">
  2955. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  2956. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2957. <div class="isCard1">
  2958. <div>{{ r }}</div>
  2959. </div>
  2960. </el-tooltip>
  2961. </div>
  2962. </div>
  2963. <div class="cardAnswerBox">
  2964. 组成句子:{{ st.rightAnswer.join(" ") }}
  2965. </div>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. </div>
  2970. </div>
  2971. <span slot="footer" class="dialog-footer">
  2972. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  2973. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  2974. </span>
  2975. </el-dialog>
  2976. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  2977. </div>
  2978. </template>
  2979. <script>
  2980. import "../common/aws-sdk-2.235.1.min.js";
  2981. // import pdf from "./components/pdf3";
  2982. import pdf from "./components/vpdf";
  2983. import AskStatic from "./components/askStatic";
  2984. import AskStatic2 from "./components/askStatic2";
  2985. import AnswerData2 from "./components/answerData2";
  2986. import AnswerData from "./components/answerData";
  2987. import EditorBar from "./tools/wangEnduit.vue";
  2988. import Time from "./tools/time.vue";
  2989. import Mind from "./tools/jsmind.vue";
  2990. import Sunburst from "./tools/sunburst";
  2991. import SeeBoard from "./tools/seeBoard";
  2992. import * as imageConversion from "image-conversion";
  2993. import Audio from "./components/audio.vue";
  2994. import ImgDraw from "./tools/imgDraw/imgDraw";
  2995. import { Empty } from "element-ui";
  2996. export default {
  2997. components: {
  2998. EditorBar,
  2999. Time,
  3000. pdf,
  3001. AskStatic,
  3002. AskStatic2,
  3003. Mind,
  3004. Sunburst,
  3005. SeeBoard,
  3006. AnswerData2,
  3007. AnswerData,
  3008. Audio,
  3009. ImgDraw,
  3010. },
  3011. data() {
  3012. return {
  3013. bg: null,
  3014. drawShow: false,
  3015. dialogVisible: false,
  3016. commentDialogVisible: false,
  3017. videoVisible: false,
  3018. isStar: false,
  3019. studentEvalDialogVisible: false,
  3020. dialogVisibleSelect: false,
  3021. dialogVisibleScore: false,
  3022. dialogVisibleSentence: false,
  3023. dialogVisibleSentence1: false,
  3024. bzText: "",
  3025. commentDetail: [],
  3026. selectAnswer: [],
  3027. videoDetail: {},
  3028. selectJson: {},
  3029. eScore: { eBzText: "", eStar: [] },
  3030. id: this.$route.query.courseId,
  3031. userid: this.$route.query.userid,
  3032. classId: this.$route.query.cid,
  3033. // courseTypeLine: this.$route.query.type,
  3034. oid: this.$route.query.oid,
  3035. org: this.$route.query.org,
  3036. tType: this.$route.query.tType,
  3037. courseType: this.$route.query.type,
  3038. screenType: this.$route.query.screenType,
  3039. pptImgUrl: "",
  3040. pptImgUrl1: "",
  3041. commentText: "",
  3042. full: false,
  3043. sIsOpen: false,
  3044. IsLookOpen: false,
  3045. pzDialog: false,
  3046. type: 1,
  3047. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3048. sentenceList1: [],
  3049. vedio: [],
  3050. text: [],
  3051. textList: [],
  3052. line: [],
  3053. lineList: [],
  3054. chapTools: [],
  3055. chapToolList: [],
  3056. file: [],
  3057. vedioTime: [],
  3058. upToolImg: "",
  3059. rateList: {
  3060. ca: 0,
  3061. },
  3062. rateParams: [],
  3063. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  3064. studyJuri: [
  3065. {
  3066. content: "",
  3067. cover: [],
  3068. upVedio: [],
  3069. upFile: [],
  3070. },
  3071. ],
  3072. mr: require("../assets/vedioPic.png"),
  3073. word: require("../assets/icon/isWord.png"),
  3074. video: require("../assets/icon/isVideo.png"),
  3075. noLikes: require("../assets/icon/comment/noLikes.png"),
  3076. likes: require("../assets/icon/comment/likes.png"),
  3077. scoreImg: require("../assets/score.png"),
  3078. courseDetail: {},
  3079. isSelect: false,
  3080. chapInfo: [],
  3081. chapInfoList: [],
  3082. taskCount: 0,
  3083. imgList: [],
  3084. noImgList: [],
  3085. pzList: [],
  3086. PlTextList: [
  3087. "Excellent!",
  3088. "nice!",
  3089. "很有创意!",
  3090. "还不错哦~",
  3091. "继续努力哦~",
  3092. ],
  3093. isClickNav: "",
  3094. navId: "",
  3095. playerOptions: {
  3096. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  3097. autoplay: false, //如果true,浏览器准备好时开始回放。
  3098. muted: false, // 默认情况下将会消除任何音频。
  3099. loop: false, // 导致视频一结束就重新开始。
  3100. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  3101. language: "zh-CN",
  3102. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  3103. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  3104. sources: [
  3105. {
  3106. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  3107. src: "", //url地址require("../../assets/media/aaa.mp4")
  3108. },
  3109. ],
  3110. // poster: require("../../assets/tu31.png"), //你的封面地址
  3111. // poster: dataRes.imgUrl, //你的封面地址
  3112. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  3113. controlBar: {
  3114. timeDivider: true, //当前时间和持续时间的分隔符
  3115. durationDisplay: true, //显示持续时间
  3116. remainingTimeDisplay: false, //是否显示剩余时间功能
  3117. fullscreenToggle: true, //全屏按钮
  3118. },
  3119. },
  3120. playerOptions1: {
  3121. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  3122. autoplay: false, //如果true,浏览器准备好时开始回放。
  3123. muted: false, // 默认情况下将会消除任何音频。
  3124. loop: false, // 导致视频一结束就重新开始。
  3125. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  3126. language: "zh-CN",
  3127. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  3128. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  3129. sources: [
  3130. {
  3131. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  3132. src: "", //url地址require("../../assets/media/aaa.mp4")
  3133. },
  3134. ],
  3135. // poster: require("../../assets/tu31.png"), //你的封面地址
  3136. // poster: dataRes.imgUrl, //你的封面地址
  3137. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  3138. controlBar: {
  3139. timeDivider: true, //当前时间和持续时间的分隔符
  3140. durationDisplay: true, //显示持续时间
  3141. remainingTimeDisplay: false, //是否显示剩余时间功能
  3142. fullscreenToggle: true, //全屏按钮
  3143. },
  3144. },
  3145. playerO: {},
  3146. noneBtnImg: false,
  3147. proVisible: false,
  3148. progress: 0,
  3149. questionAnswer: "",
  3150. answerQ: "", //问答标题
  3151. rateJson: [],
  3152. wbCount: 0,
  3153. wordCount: 0,
  3154. mindCount: 0,
  3155. askCount: 0,
  3156. noteCount: 0,
  3157. mindNetWorkCount: 0,
  3158. libraryCount: 0,
  3159. workCount: 0,
  3160. timeCount: 0,
  3161. answerCount: 0,
  3162. trainCount: 0,
  3163. evalCount: 0,
  3164. dialogImageUrl: "",
  3165. pictureDialog: false,
  3166. toolTypeList: [],
  3167. dialogVisible1: false,
  3168. dialogVisible2: false,
  3169. dialogVisible3: false,
  3170. dialogVisible6: false,
  3171. dialogVisible4: false,
  3172. isNoHomeWork: false,
  3173. dialogVisible5: false,
  3174. dialogVisibleChoice: false,
  3175. answerDialogVisible: false,
  3176. juriVisible: false,
  3177. timeDialogVisible: false,
  3178. radio: [],
  3179. isAsk: false,
  3180. askJson: {
  3181. askCount: 1,
  3182. askTitle: "",
  3183. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3184. },
  3185. testJson: {},
  3186. checkJson: [],
  3187. askList: [],
  3188. answerList: [],
  3189. navList: [],
  3190. addPzDialog: false,
  3191. pzConText: "",
  3192. worksStudent: [],
  3193. workStudent: [],
  3194. noWorksS: [],
  3195. isWorksS: [],
  3196. noWorksStudent: [],
  3197. toolindex: 0,
  3198. workTypeA: false,
  3199. workTypeB: false,
  3200. workTypeC: false,
  3201. isAnswer: false,
  3202. timer: null,
  3203. showType: 0,
  3204. fileType: 0,
  3205. showPDF: false,
  3206. noteName: "",
  3207. evaJuri: [],
  3208. evalua: "",
  3209. eTitle: "",
  3210. eName: "",
  3211. eJson: {},
  3212. fid: "", //一级
  3213. sid: "", //二级
  3214. tid: "", //二级
  3215. typeMode: 1,
  3216. eJSONNum: 0,
  3217. Etype: 1,
  3218. data: {
  3219. meta: {
  3220. name: "example",
  3221. author: "dd@163.com",
  3222. version: "0.2",
  3223. },
  3224. format: "node_array",
  3225. data: [{ id: "root", isroot: true, topic: "" }],
  3226. },
  3227. fullDialogVisible: false,
  3228. fulltype: "",
  3229. fullUrl: "",
  3230. commentIndexJson: {},
  3231. Stbodywidth: 0,
  3232. pzType: 1,
  3233. wScore: 0,
  3234. scoreDetail: "",
  3235. };
  3236. },
  3237. methods: {
  3238. jump() {
  3239. window.parent.postMessage({ tools: "43" }, "*");
  3240. },
  3241. previewImg(url) {
  3242. this.$hevueImgPreview(url);
  3243. },
  3244. change(val) {
  3245. console.log(val);
  3246. },
  3247. goTo(path) {
  3248. this.$router.push(path);
  3249. },
  3250. handlePictureCardPreview(url) {
  3251. this.dialogImageUrl = url;
  3252. this.pictureDialog = true;
  3253. },
  3254. clean(type) {
  3255. if (type == 1) {
  3256. this.studyJuri[0].cover.splice(0, 1);
  3257. } else if (type == 2) {
  3258. this.studyJuri[0].upVedio.splice(0, 1);
  3259. } else {
  3260. this.studyJuri[0].upFile.splice(0, 1);
  3261. }
  3262. },
  3263. handleClose(done) {
  3264. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  3265. this.videoDetail.sources[0].src = "";
  3266. }
  3267. this.commentIndexJson = {};
  3268. done();
  3269. },
  3270. fullTools() {
  3271. this.full = !this.full;
  3272. },
  3273. imgChange(file, fileList, type) {
  3274. if (type == 1) {
  3275. var _tmp = this.studyJuri[0].cover;
  3276. } else if (type == 2) {
  3277. var _tmp = this.studyJuri[0].upVedio;
  3278. } else {
  3279. var _tmp = this.studyJuri[0].upFile;
  3280. }
  3281. this.noneBtnImg = _tmp.length >= 1;
  3282. },
  3283. addImg(e) {
  3284. var el = e.currentTarget;
  3285. // this.$message.success('触发上传')
  3286. el.getElementsByTagName("input")[0].click();
  3287. },
  3288. addSelectAnswer() {
  3289. let params = [
  3290. {
  3291. uid: this.userid,
  3292. cid: this.id,
  3293. stage: this.courseType,
  3294. task: this.taskCount,
  3295. tool: this.toolindex,
  3296. content: this.selectAnswer.answer,
  3297. type: 7,
  3298. },
  3299. ];
  3300. this.ajax
  3301. .post(this.$store.state.api + "addCourseWorks", params)
  3302. .then((res) => {
  3303. this.$message({
  3304. message: "提交成功",
  3305. type: "success",
  3306. });
  3307. this.dialogVisibleSelect = false;
  3308. // this.selectAnswer = {};
  3309. this.selectSWorks();
  3310. this.selectStudent();
  3311. })
  3312. .catch((err) => {
  3313. this.$message.error("提交失败");
  3314. console.error(err);
  3315. });
  3316. },
  3317. addSenWorks() {
  3318. for (var i = 0; i < this.sentenceList.length; i++) {
  3319. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3320. if (
  3321. this.sentenceList[i].chooseSenList[j] == undefined ||
  3322. this.sentenceList[i].chooseSenList[j] == ""
  3323. ) {
  3324. this.$message.error("请将答案填写完整!");
  3325. return;
  3326. }
  3327. }
  3328. }
  3329. let params = [
  3330. {
  3331. uid: this.userid,
  3332. cid: this.id,
  3333. stage: this.courseType,
  3334. task: this.taskCount,
  3335. tool: this.toolindex,
  3336. content: JSON.stringify(this.sentenceList),
  3337. type: 9,
  3338. },
  3339. ];
  3340. this.ajax
  3341. .post(this.$store.state.api + "addCourseWorks", params)
  3342. .then((res) => {
  3343. this.$message({
  3344. message: "提交成功",
  3345. type: "success",
  3346. });
  3347. this.dialogVisibleSentence = false;
  3348. // this.selectAnswer = {};
  3349. this.selectSWorks();
  3350. this.selectStudent();
  3351. })
  3352. .catch((err) => {
  3353. this.$message.error("提交失败");
  3354. console.error(err);
  3355. });
  3356. },
  3357. addCourseWorks(i) {
  3358. var typesql;
  3359. if (this.fileType === 0) {
  3360. typesql = 1;
  3361. } else if (this.fileType === 1) {
  3362. typesql = 4;
  3363. } else {
  3364. typesql = 5;
  3365. }
  3366. if (this.workTypeA == true) {
  3367. this.$confirm(
  3368. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  3369. "提示",
  3370. {
  3371. confirmButtonText: "确定",
  3372. cancelButtonText: "取消",
  3373. type: "warning",
  3374. }
  3375. )
  3376. .then(() => {
  3377. let params = [
  3378. {
  3379. uid: this.userid,
  3380. cid: this.id,
  3381. stage: this.courseType,
  3382. task: i,
  3383. tool: this.toolindex,
  3384. content: this.studyJuri[0].cover[0].url,
  3385. type: typesql,
  3386. },
  3387. ];
  3388. this.ajax
  3389. .post(this.$store.state.api + "addCourseWorks", params)
  3390. .then((res) => {
  3391. this.$message({
  3392. message: "提交成功",
  3393. type: "success",
  3394. });
  3395. this.studyJuri[0].cover = [];
  3396. this.dialogVisible = false;
  3397. this.getCourseDetail();
  3398. })
  3399. .catch((err) => {
  3400. this.$message.error("提交失败");
  3401. console.error(err);
  3402. });
  3403. })
  3404. .catch(() => { });
  3405. } else {
  3406. let params = [
  3407. {
  3408. uid: this.userid,
  3409. cid: this.id,
  3410. stage: this.courseType,
  3411. task: i,
  3412. tool: this.toolindex,
  3413. content: this.studyJuri[0].cover[0].url,
  3414. type: typesql,
  3415. },
  3416. ];
  3417. this.ajax
  3418. .post(this.$store.state.api + "addCourseWorks", params)
  3419. .then((res) => {
  3420. this.$message({
  3421. message: "提交成功",
  3422. type: "success",
  3423. });
  3424. this.studyJuri[0].cover = [];
  3425. this.dialogVisible = false;
  3426. this.getCourseDetail();
  3427. })
  3428. .catch((err) => {
  3429. this.$message.error("提交失败");
  3430. console.error(err);
  3431. });
  3432. }
  3433. },
  3434. selectWorksStudent() {
  3435. let params = {
  3436. oid: this.oid,
  3437. cid: this.courseDetail.juri,
  3438. };
  3439. this.ajax
  3440. .get(this.$store.state.api + "selectWorksStudent", params)
  3441. .then((res) => {
  3442. var a = res.data[0];
  3443. for (var i = 0; i < this.isWorksS.length; i++) {
  3444. this.noWorksS[i] = [];
  3445. var studentK = [];
  3446. if (this.isWorksS[i].length > 0) {
  3447. for (var z = 0; z < this.isWorksS[i].length; z++) {
  3448. studentK.push(this.isWorksS[i][z].uid);
  3449. }
  3450. studentK = studentK.join(",");
  3451. for (var j = 0; j < a.length; j++) {
  3452. if (studentK.indexOf(a[j].userid) == -1) {
  3453. this.noWorksS[i].push({ student: a[j].name });
  3454. }
  3455. }
  3456. } else {
  3457. for (var k = 0; k < a.length; k++) {
  3458. this.noWorksS[i].push({ student: a[k].name });
  3459. }
  3460. }
  3461. }
  3462. this.$forceUpdate();
  3463. if (
  3464. Object.keys(this.commentDetail).length &&
  3465. Object.keys(this.commentIndexJson).length &&
  3466. !this.dialogVisibleScore
  3467. ) {
  3468. let a = 1
  3469. for (var i = 0; i < this.worksStudent[this.commentIndexJson.toolIndex].length; i++) {
  3470. let el = this.worksStudent[this.commentIndexJson.toolIndex][i]
  3471. if (el.wid == this.commentDetail.wid) {
  3472. a = 2
  3473. this.commentOther(
  3474. this.worksStudent[this.commentIndexJson.toolIndex][
  3475. i
  3476. ],
  3477. this.commentIndexJson.toolIndex,
  3478. i
  3479. );
  3480. break;
  3481. }
  3482. }
  3483. if(a === 1){
  3484. this.commentDetail = []
  3485. this.commentIndexJson = {}
  3486. this.commentDialogVisible = false;
  3487. this.$message("此作业已被删除")
  3488. }
  3489. }
  3490. })
  3491. .catch((err) => {
  3492. console.error(err);
  3493. });
  3494. },
  3495. selectStudent() {
  3496. //学生查看自己作业
  3497. let params = {
  3498. uid: this.userid,
  3499. cid: this.id,
  3500. s: this.courseType,
  3501. t: this.taskCount,
  3502. };
  3503. this.ajax
  3504. .get(this.$store.state.api + "selectStudentWorks", params)
  3505. .then((res) => {
  3506. var a =
  3507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3508. this.taskCount
  3509. ].toolChoose;
  3510. var b = res.data[0];
  3511. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3512. var y = [
  3513. "AVI",
  3514. "NAVI",
  3515. "MPEG",
  3516. "ASF",
  3517. "MOV",
  3518. "WMV",
  3519. "3GP",
  3520. "RM",
  3521. "RMVB",
  3522. "FLV",
  3523. "F4V",
  3524. "H.264",
  3525. "H.265",
  3526. "REAL VIDEO",
  3527. "MKV",
  3528. "WebM",
  3529. "HDDVD",
  3530. "MP4",
  3531. "MPG",
  3532. "M4V",
  3533. "MGV",
  3534. "OGV",
  3535. "QTM",
  3536. "STR",
  3537. "AMC",
  3538. "DVX",
  3539. "EVO",
  3540. "DAT",
  3541. "OGG",
  3542. "OGM",
  3543. ];
  3544. for (var i = 0; i < a.length; i++) {
  3545. this.workStudent[i] = [];
  3546. for (var j = 0; j < b.length; j++) {
  3547. if (i == b[j].tool) {
  3548. if (
  3549. (b[j].type == 1 ||
  3550. b[j].type == 4 ||
  3551. b[j].type == 5 ||
  3552. b[j].type == 6 ||
  3553. b[j].type == 7) &&
  3554. a[i].tool[0] != 15 &&
  3555. a[i].tool[0] != 4 &&
  3556. a[i].tool[0] != 45
  3557. ) {
  3558. if (
  3559. c.indexOf(
  3560. b[j].content
  3561. .split(".")
  3562. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  3563. ) != -1
  3564. ) {
  3565. this.workStudent[i].push({
  3566. works: b[j].content,
  3567. sName: b[j].name,
  3568. score: b[j].score,
  3569. img: b[j].img,
  3570. type: 1,
  3571. time: b[j].time,
  3572. userid: b[j].userid,
  3573. wid: b[j].id,
  3574. });
  3575. } else if (
  3576. y.indexOf(
  3577. b[j].content
  3578. .split(".")
  3579. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  3580. ) != -1
  3581. ) {
  3582. this.workStudent[i].push({
  3583. userid: b[j].userid,
  3584. wid: b[j].id,
  3585. works: b[j].content,
  3586. sName: b[j].name,
  3587. score: b[j].score,
  3588. img: b[j].img,
  3589. type: 3,
  3590. time: b[j].time,
  3591. });
  3592. } else if (b[j].type == 6) {
  3593. this.workStudent[i].push({
  3594. userid: b[j].userid,
  3595. wid: b[j].id,
  3596. works: b[j].content,
  3597. sName: b[j].name,
  3598. score: b[j].score,
  3599. img: b[j].img,
  3600. type: 4,
  3601. time: b[j].time,
  3602. });
  3603. } else if (b[j].type == 7) {
  3604. this.workStudent[i].push({
  3605. userid: b[j].userid,
  3606. wid: b[j].id,
  3607. works: b[j].content,
  3608. sName: b[j].name,
  3609. score: b[j].score,
  3610. img: b[j].img,
  3611. type: 5,
  3612. time: b[j].time,
  3613. });
  3614. } else {
  3615. this.workStudent[i].push({
  3616. works: b[j].content,
  3617. sName: b[j].name,
  3618. score: b[j].score,
  3619. img: b[j].img,
  3620. type: 0,
  3621. time: b[j].time,
  3622. userid: b[j].userid,
  3623. wid: b[j].id,
  3624. });
  3625. }
  3626. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  3627. this.workStudent[i].push({
  3628. works: b[j].content,
  3629. sName: b[j].name,
  3630. score: b[j].score,
  3631. img: b[j].img,
  3632. type: 2,
  3633. time: b[j].time,
  3634. userid: b[j].userid,
  3635. wid: b[j].id,
  3636. });
  3637. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  3638. //问卷
  3639. this.workStudent[i].push({
  3640. works: b[j].content,
  3641. sName: b[j].name,
  3642. score: b[j].score,
  3643. img: b[j].img,
  3644. type: 2,
  3645. time: b[j].time,
  3646. userid: b[j].userid,
  3647. wid: b[j].id,
  3648. });
  3649. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  3650. //选择题
  3651. this.workStudent[i].push({
  3652. works: b[j].content,
  3653. sName: b[j].name,
  3654. score: b[j].score,
  3655. img: b[j].img,
  3656. type: 8,
  3657. time: b[j].time,
  3658. userid: b[j].userid,
  3659. wid: b[j].id,
  3660. });
  3661. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  3662. //选择题
  3663. this.workStudent[i].push({
  3664. works: b[j].content,
  3665. sName: b[j].name,
  3666. score: b[j].score,
  3667. img: b[j].img,
  3668. type: 9,
  3669. time: b[j].time,
  3670. userid: b[j].userid,
  3671. wid: b[j].id,
  3672. });
  3673. }
  3674. }
  3675. }
  3676. }
  3677. })
  3678. .catch((err) => {
  3679. console.error(err);
  3680. });
  3681. },
  3682. openVideo(w) {
  3683. this.videoDetail = {};
  3684. this.playerOptions1.sources[0].src = w;
  3685. this.videoDetail = this.playerOptions1;
  3686. this.videoVisible = true;
  3687. },
  3688. isLikes(wid, uid, t, c, isLikes) {
  3689. if (isLikes == false) {
  3690. let params = [
  3691. {
  3692. wid: wid,
  3693. lid: uid,
  3694. t: t,
  3695. c: c,
  3696. },
  3697. ];
  3698. this.ajax
  3699. .post(this.$store.state.api + "insertComment", params)
  3700. .then((res) => {
  3701. this.$message({
  3702. message: "点赞成功",
  3703. type: "success",
  3704. });
  3705. this.selectSWorks();
  3706. this.selectStudent();
  3707. })
  3708. .catch((err) => {
  3709. this.$message.error("点赞失败");
  3710. console.error(err);
  3711. });
  3712. } else {
  3713. let params = {
  3714. wid: wid,
  3715. lid: uid,
  3716. type: t,
  3717. };
  3718. this.ajax
  3719. .get(this.$store.state.api + "deleteComment", params)
  3720. .then((res) => {
  3721. this.$message({
  3722. message: "取消点赞成功",
  3723. type: "success",
  3724. });
  3725. this.selectSWorks();
  3726. this.selectStudent();
  3727. })
  3728. .catch((err) => {
  3729. console.error(err);
  3730. });
  3731. }
  3732. },
  3733. commentOther(w, toolIndex, wIndex) {
  3734. this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex };
  3735. this.commentDetail = [];
  3736. this.commentDialogVisible = true;
  3737. this.commentDetail = w;
  3738. if (w.works && w.type == 1) {
  3739. this.pptImgUrl = "";
  3740. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3741. if (
  3742. a.indexOf(
  3743. w.works
  3744. .split(".")
  3745. [w.works.split(".").length - 1].toLocaleUpperCase()
  3746. ) != -1
  3747. ) {
  3748. this.pptImgUrl =
  3749. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  3750. this.showPDF = false;
  3751. } else if (
  3752. w.works
  3753. .split(".")
  3754. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3755. ) {
  3756. this.pptImgUrl = w.works;
  3757. this.showPDF = true;
  3758. }
  3759. } else if (w.works && w.type == 3) {
  3760. this.videoDetail = {};
  3761. this.playerOptions1.sources[0].src = w.works;
  3762. this.videoDetail = this.playerOptions1;
  3763. // this.videoVisible = true;
  3764. } else if (w.works && w.type == 4) {
  3765. this.eScore = JSON.parse(w.works);
  3766. this.rateJson =
  3767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3768. this.taskCount
  3769. ].toolChoose[toolIndex].rateJson;
  3770. }
  3771. },
  3772. openScore(w) {
  3773. this.wScore = 0;
  3774. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  3775. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  3776. this.commentDetail = [];
  3777. this.dialogVisibleScore = true;
  3778. this.commentDetail = w;
  3779. if (w.works && w.type == 1) {
  3780. this.pptImgUrl = "";
  3781. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3782. if (
  3783. a.indexOf(
  3784. w.works
  3785. .split(".")
  3786. [w.works.split(".").length - 1].toLocaleUpperCase()
  3787. ) != -1
  3788. ) {
  3789. this.pptImgUrl =
  3790. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  3791. this.showPDF = false;
  3792. } else if (
  3793. w.works
  3794. .split(".")
  3795. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3796. ) {
  3797. this.pptImgUrl = w.works;
  3798. this.showPDF = true;
  3799. }
  3800. } else if (w.works && w.type == 3) {
  3801. this.videoDetail = {};
  3802. this.playerOptions1.sources[0].src = w.works;
  3803. this.videoDetail = this.playerOptions1;
  3804. }
  3805. },
  3806. addComment(wid, uid, t) {
  3807. if (this.commentText == "") {
  3808. this.$message.error("请输入对该学生的评价");
  3809. return;
  3810. }
  3811. let params = [
  3812. {
  3813. wid: wid,
  3814. lid: uid,
  3815. t: t,
  3816. c: this.commentText,
  3817. },
  3818. ];
  3819. this.ajax
  3820. .post(this.$store.state.api + "insertComment", params)
  3821. .then((res) => {
  3822. this.$message({
  3823. message: "评论成功",
  3824. type: "success",
  3825. });
  3826. this.commentText = "";
  3827. this.selectSWorks();
  3828. this.selectStudent();
  3829. })
  3830. .catch((err) => {
  3831. this.$message.error("评论失败");
  3832. console.error(err);
  3833. });
  3834. },
  3835. scoreWork(wid) {
  3836. if (this.wScore == 0) {
  3837. this.$message.error("请评分");
  3838. return;
  3839. }
  3840. let params = [
  3841. {
  3842. wid: wid,
  3843. score: JSON.stringify({
  3844. wScore: this.wScore,
  3845. detail: this.scoreDetail,
  3846. }),
  3847. },
  3848. ];
  3849. this.ajax
  3850. .post(this.$store.state.api + "scoreWork", params)
  3851. .then((res) => {
  3852. this.$message({
  3853. message: "评分成功",
  3854. type: "success",
  3855. });
  3856. this.wScore = 0;
  3857. this.scoreDetail = "";
  3858. this.dialogVisibleScore = false;
  3859. this.selectSWorks();
  3860. this.selectStudent();
  3861. })
  3862. .catch((err) => {
  3863. this.$message.error("评分失败");
  3864. console.error(err);
  3865. });
  3866. },
  3867. openXz(w, i) {
  3868. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  3869. .taskJson[this.taskCount].toolChoose[i].selectJson
  3870. ? JSON.parse(
  3871. JSON.stringify(
  3872. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3873. this.taskCount
  3874. ].toolChoose[i].selectJson
  3875. )
  3876. )
  3877. : { url: "", select: [], answer: [] };
  3878. var a = w.works.split(",");
  3879. for (var k = 0; k < a.length; k++) {
  3880. a[k] = parseInt(a[k]);
  3881. }
  3882. this.selectAnswer = { answer: a, stu: w.sName };
  3883. this.isSelect = true;
  3884. this.dialogVisibleSelect = true;
  3885. },
  3886. openSen(w, i) {
  3887. this.sentenceList1 = JSON.parse(w.works);
  3888. this.sentenceList1.stuName = w.sName;
  3889. this.dialogVisibleSentence1 = true;
  3890. },
  3891. openPj(w, toolindex) {
  3892. this.isStar = true;
  3893. this.eScore = JSON.parse(w);
  3894. this.rateJson =
  3895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3896. this.taskCount
  3897. ].toolChoose[toolindex].rateJson;
  3898. this.studentEvalDialogVisible = true;
  3899. },
  3900. deleteWorks(id) {
  3901. this.$confirm("确定删除此作业吗?", "提示", {
  3902. confirmButtonText: "确定",
  3903. cancelButtonText: "取消",
  3904. type: "warning",
  3905. })
  3906. .then(() => {
  3907. let params = [
  3908. {
  3909. id: id,
  3910. },
  3911. ];
  3912. this.ajax
  3913. .post(this.$store.state.api + "deleteCourseWork", params)
  3914. .then((res) => {
  3915. this.$message({
  3916. message: "删除成功",
  3917. type: "success",
  3918. });
  3919. this.selectStudent();
  3920. this.selectSWorks();
  3921. this.selectSLook();
  3922. })
  3923. .catch((err) => {
  3924. this.$message.error("网络异常");
  3925. console.error(err);
  3926. });
  3927. })
  3928. .catch(() => { });
  3929. },
  3930. selectSWorks() {
  3931. //教师查看全部作业
  3932. let params = {
  3933. cid: this.id,
  3934. s: this.courseType,
  3935. t: this.taskCount,
  3936. };
  3937. this.ajax
  3938. .get(this.$store.state.api + "selectSWorks", params)
  3939. .then((res) => {
  3940. var a =
  3941. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3942. this.taskCount
  3943. ].toolChoose;
  3944. var b = res.data[0];
  3945. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3946. var y = [
  3947. "AVI",
  3948. "NAVI",
  3949. "MPEG",
  3950. "ASF",
  3951. "MOV",
  3952. "WMV",
  3953. "3GP",
  3954. "RM",
  3955. "RMVB",
  3956. "FLV",
  3957. "F4V",
  3958. "H.264",
  3959. "H.265",
  3960. "REAL VIDEO",
  3961. "MKV",
  3962. "WebM",
  3963. "HDDVD",
  3964. "MP4",
  3965. "MPG",
  3966. "M4V",
  3967. "MGV",
  3968. "OGV",
  3969. "QTM",
  3970. "STR",
  3971. "AMC",
  3972. "DVX",
  3973. "EVO",
  3974. "DAT",
  3975. "OGG",
  3976. "OGM",
  3977. ];
  3978. var d = res.data[1];
  3979. var e = res.data[2];
  3980. for (var i = 0; i < a.length; i++) {
  3981. this.worksStudent[i] = [];
  3982. this.isWorksS[i] = [];
  3983. this.checkJson[i] = [];
  3984. for (var j = 0; j < b.length; j++) {
  3985. var likesCount = 0;
  3986. var commentCount = 0;
  3987. var isLikes = false;
  3988. var commentJson = [];
  3989. var data = b[j];
  3990. if (i == b[j].tool) {
  3991. if (data.type == 2 && a[i].tool[0] == 4) {
  3992. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  3993. for (var z = 0; z < checkL.length; z++) {
  3994. if (!this.checkJson[i][z]) {
  3995. this.checkJson[i].push({
  3996. checkCount: [],
  3997. checkPerson: [],
  3998. rightPerson: [],
  3999. });
  4000. }
  4001. if (!this.checkJson[i][z].checkCount.length) {
  4002. this.checkJson[i][z].checkCount = [];
  4003. let _askItemCount = JSON.parse(data.content)[0].askJson
  4004. .askJson[z].askItem;
  4005. for (var aic = 0; aic < _askItemCount; aic++) {
  4006. this.checkJson[i][z].checkCount.push(0);
  4007. }
  4008. }
  4009. if (
  4010. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  4011. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  4012. 0) &&
  4013. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  4014. checkL[z]
  4015. ) {
  4016. this.checkJson[i][z].rightPerson.push(data.name);
  4017. }
  4018. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  4019. ? this.checkJson[i][z].checkPerson[
  4020. parseInt(checkL[z])
  4021. ].push(data.name)
  4022. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  4023. [data.name]);
  4024. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  4025. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  4026. : (this.checkJson[i][z].checkCount[
  4027. parseInt(checkL[z])
  4028. ] = 1);
  4029. }
  4030. } else if (data.type == 8 && a[i].tool[0] == 45) {
  4031. var checkL = JSON.parse(data.content)[0].anwer;
  4032. for (var z = 0; z < checkL.length; z++) {
  4033. if (!this.checkJson[i][z]) {
  4034. this.checkJson[i].push({
  4035. checkCount: [],
  4036. checkPerson: [],
  4037. rightPerson: [],
  4038. });
  4039. }
  4040. if (!this.checkJson[i][z].checkCount.length) {
  4041. this.checkJson[i][z].checkCount = [];
  4042. let _askItemCount = JSON.parse(data.content)[0].testJson
  4043. .testJson[z].testItem;
  4044. for (var aic = 0; aic < _askItemCount; aic++) {
  4045. this.checkJson[i][z].checkCount.push(0);
  4046. }
  4047. }
  4048. if (checkL[z] instanceof Array) {
  4049. if (
  4050. JSON.parse(data.content)[0].testJson.testJson[
  4051. z
  4052. ].answer.join(",") == checkL[z].join(",")
  4053. ) {
  4054. this.checkJson[i][z].rightPerson.push(data.name);
  4055. }
  4056. for (var q = 0; q < checkL[z].length; q++) {
  4057. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  4058. ? this.checkJson[i][z].checkPerson[
  4059. parseInt(checkL[z][q])
  4060. ].push(data.name)
  4061. : (this.checkJson[i][z].checkPerson[
  4062. parseInt(checkL[z][q])
  4063. ] = [data.name]);
  4064. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  4065. ? this.checkJson[i][z].checkCount[
  4066. parseInt(checkL[z][q])
  4067. ]++
  4068. : (this.checkJson[i][z].checkCount[
  4069. parseInt(checkL[z][q])
  4070. ] = 1);
  4071. }
  4072. } else {
  4073. if (
  4074. JSON.parse(data.content)[0].testJson.testJson[z]
  4075. .answer == checkL[z]
  4076. ) {
  4077. this.checkJson[i][z].rightPerson.push(data.name);
  4078. }
  4079. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  4080. ? this.checkJson[i][z].checkPerson[
  4081. parseInt(checkL[z])
  4082. ].push(data.name)
  4083. : (this.checkJson[i][z].checkPerson[
  4084. parseInt(checkL[z])
  4085. ] = [data.name]);
  4086. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  4087. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  4088. : (this.checkJson[i][z].checkCount[
  4089. parseInt(checkL[z])
  4090. ] = 1);
  4091. }
  4092. }
  4093. } else if (data.type == 9 && a[i].tool[0] == 47) {
  4094. var checkL = JSON.parse(data.content);
  4095. for (var z = 0; z < checkL.length; z++) {
  4096. if (!this.checkJson[i][z]) {
  4097. this.checkJson[i].push({
  4098. checkCount: [],
  4099. checkPerson: [],
  4100. rightPerson: [],
  4101. });
  4102. }
  4103. this.checkJson[i][z].checkPerson.push(data.name);
  4104. if (
  4105. checkL[z].chooseSenList.toString() ==
  4106. checkL[z].rightAnswer.toString()
  4107. ) {
  4108. this.checkJson[i][z].rightPerson.push(data.name);
  4109. }
  4110. }
  4111. }
  4112. for (var k = 0; k < d.length; k++) {
  4113. //点赞
  4114. if (d[k].workId == b[j].id) {
  4115. likesCount++;
  4116. if (d[k].likesId == this.userid) {
  4117. isLikes = true;
  4118. }
  4119. }
  4120. }
  4121. for (var l = 0; l < e.length; l++) {
  4122. //评论
  4123. if (e[l].workId == b[j].id) {
  4124. if (e[l].comment != "") {
  4125. commentCount++;
  4126. commentJson.push({
  4127. commentText: e[l].comment,
  4128. commentTime: e[l].commentTime,
  4129. commentPeople: e[l].commentPeople,
  4130. });
  4131. }
  4132. }
  4133. }
  4134. if (
  4135. (b[j].type == 1 ||
  4136. b[j].type == 4 ||
  4137. b[j].type == 5 ||
  4138. b[j].type == 6 ||
  4139. b[j].type == 7) &&
  4140. a[i].tool[0] != 15 &&
  4141. a[i].tool[0] != 4 &&
  4142. a[i].tool[0] != 45
  4143. ) {
  4144. if (
  4145. c.indexOf(
  4146. b[j].content
  4147. .split(".")
  4148. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4149. ) != -1
  4150. ) {
  4151. this.worksStudent[i].push({
  4152. userid: b[j].userid,
  4153. wid: b[j].id,
  4154. works: b[j].content,
  4155. sName: b[j].name,
  4156. type: 1,
  4157. time: b[j].time,
  4158. score: b[j].score,
  4159. img: b[j].img,
  4160. likesCount: likesCount,
  4161. commentCount: commentCount,
  4162. isLikes: isLikes,
  4163. commentJson: commentJson,
  4164. });
  4165. } else if (
  4166. y.indexOf(
  4167. b[j].content
  4168. .split(".")
  4169. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4170. ) != -1
  4171. ) {
  4172. this.worksStudent[i].push({
  4173. userid: b[j].userid,
  4174. wid: b[j].id,
  4175. works: b[j].content,
  4176. sName: b[j].name,
  4177. type: 3,
  4178. time: b[j].time,
  4179. score: b[j].score,
  4180. img: b[j].img,
  4181. likesCount: likesCount,
  4182. commentCount: commentCount,
  4183. isLikes: isLikes,
  4184. commentJson: commentJson,
  4185. });
  4186. } else if (b[j].type == 6) {
  4187. this.worksStudent[i].push({
  4188. userid: b[j].userid,
  4189. wid: b[j].id,
  4190. works: b[j].content,
  4191. sName: b[j].name,
  4192. type: 4,
  4193. time: b[j].time,
  4194. score: b[j].score,
  4195. img: b[j].img,
  4196. likesCount: likesCount,
  4197. commentCount: commentCount,
  4198. isLikes: isLikes,
  4199. commentJson: commentJson,
  4200. });
  4201. } else if (b[j].type == 7) {
  4202. this.worksStudent[i].push({
  4203. userid: b[j].userid,
  4204. wid: b[j].id,
  4205. works: b[j].content,
  4206. sName: b[j].name,
  4207. type: 5,
  4208. time: b[j].time,
  4209. score: b[j].score,
  4210. img: b[j].img,
  4211. likesCount: likesCount,
  4212. commentCount: commentCount,
  4213. isLikes: isLikes,
  4214. commentJson: commentJson,
  4215. });
  4216. } else {
  4217. this.worksStudent[i].push({
  4218. userid: b[j].userid,
  4219. wid: b[j].id,
  4220. works: b[j].content,
  4221. sName: b[j].name,
  4222. type: 0,
  4223. time: b[j].time,
  4224. score: b[j].score,
  4225. img: b[j].img,
  4226. likesCount: likesCount,
  4227. commentCount: commentCount,
  4228. isLikes: isLikes,
  4229. commentJson: commentJson,
  4230. });
  4231. }
  4232. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  4233. this.worksStudent[i].push({
  4234. userid: b[j].userid,
  4235. wid: b[j].id,
  4236. works: b[j].content,
  4237. sName: b[j].name,
  4238. type: 2,
  4239. time: b[j].time,
  4240. score: b[j].score,
  4241. img: b[j].img,
  4242. likesCount: likesCount,
  4243. commentCount: commentCount,
  4244. isLikes: isLikes,
  4245. commentJson: commentJson,
  4246. });
  4247. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  4248. //问卷
  4249. this.worksStudent[i].push({
  4250. userid: b[j].userid,
  4251. wid: b[j].id,
  4252. works: b[j].content,
  4253. sName: b[j].name,
  4254. type: 2,
  4255. time: b[j].time,
  4256. score: b[j].score,
  4257. img: b[j].img,
  4258. likesCount: likesCount,
  4259. commentCount: commentCount,
  4260. isLikes: isLikes,
  4261. commentJson: commentJson,
  4262. });
  4263. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  4264. //选择题
  4265. this.worksStudent[i].push({
  4266. userid: b[j].userid,
  4267. wid: b[j].id,
  4268. works: b[j].content,
  4269. sName: b[j].name,
  4270. type: 8,
  4271. time: b[j].time,
  4272. score: b[j].score,
  4273. img: b[j].img,
  4274. likesCount: likesCount,
  4275. commentCount: commentCount,
  4276. isLikes: isLikes,
  4277. commentJson: commentJson,
  4278. });
  4279. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  4280. //选择题
  4281. this.worksStudent[i].push({
  4282. userid: b[j].userid,
  4283. wid: b[j].id,
  4284. works: b[j].content,
  4285. sName: b[j].name,
  4286. type: 8,
  4287. time: b[j].time,
  4288. score: b[j].score,
  4289. img: b[j].img,
  4290. likesCount: likesCount,
  4291. commentCount: commentCount,
  4292. isLikes: isLikes,
  4293. commentJson: commentJson,
  4294. });
  4295. }
  4296. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  4297. }
  4298. }
  4299. if (this.worksStudent[i] && this.worksStudent[i].length) {
  4300. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  4301. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4302. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4303. var scoreA = parseFloat(jscoreA);
  4304. var scoreB = parseFloat(jscoreB);
  4305. if (scoreA == scoreB) {
  4306. return b.likesCount - a.likesCount;
  4307. }
  4308. return scoreB - scoreA;
  4309. });
  4310. }
  4311. }
  4312. for (var i = 0; i < a.length; i++) {
  4313. for (var j = 0; j < b.length; j++) {
  4314. var data = b[j];
  4315. if (i == b[j].tool) {
  4316. if (data.type == 2 || data.type == 8) {
  4317. for (var z = 0; z < this.checkJson[i].length; z++) {
  4318. this.checkJson[i][z].checkPerent = [];
  4319. this.checkJson[i][z].right = Math.round(
  4320. (this.checkJson[i][z].rightPerson.length /
  4321. parseInt(this.worksStudent[i].length)) *
  4322. 100
  4323. );
  4324. let aaaa = this.checkJson[i][z];
  4325. console.log(aaaa);
  4326. for (
  4327. var k = 0;
  4328. k < this.checkJson[i][z].checkCount.length;
  4329. k++
  4330. ) {
  4331. this.checkJson[i][z].checkPerent.push(
  4332. Math.round(
  4333. (this.checkJson[i][z].checkCount[k] /
  4334. parseInt(this.worksStudent[i].length)) *
  4335. 100
  4336. )
  4337. );
  4338. }
  4339. }
  4340. } else if (data.type == 9) {
  4341. for (var z = 0; z < this.checkJson[i].length; z++) {
  4342. this.checkJson[i][z].checkPerent = [];
  4343. this.checkJson[i][z].right = Math.round(
  4344. (this.checkJson[i][z].rightPerson.length /
  4345. this.checkJson[i][z].checkPerson.length) *
  4346. 100
  4347. );
  4348. }
  4349. }
  4350. }
  4351. }
  4352. }
  4353. this.selectWorksStudent();
  4354. })
  4355. .catch((err) => {
  4356. console.error(err);
  4357. });
  4358. },
  4359. pngToWhiteBg(file) {
  4360. const _file = file;
  4361. let read = new FileReader();
  4362. read.readAsDataURL(file); // 文件转base64
  4363. return new Promise((resolve, reject) => {
  4364. read.onload = (e) => {
  4365. let img = new Image();
  4366. img.src = e.target.result;
  4367. img.onload = async () => {
  4368. // 生成canvas
  4369. let canvas = document.createElement("canvas");
  4370. let context = canvas.getContext("2d");
  4371. // 绘制图片到canvas上
  4372. canvas.width = img.width;
  4373. canvas.height = img.height;
  4374. // 在canvas绘制前填充白色背景
  4375. context.fillStyle = "#fff";
  4376. context.fillRect(0, 0, canvas.width, canvas.height);
  4377. context.drawImage(img, 0, 0);
  4378. let base64 = canvas.toDataURL(file["type"], 1);
  4379. let newFile = this.dataUrlToFile(base64, _file);
  4380. resolve(newFile);
  4381. };
  4382. };
  4383. });
  4384. },
  4385. dataUrlToFile(dataurl, file) {
  4386. let arr = dataurl.split(","),
  4387. mime = arr[0].match(/:(.*?);/)[1],
  4388. bstr = atob(arr[1]),
  4389. n = bstr.length,
  4390. u8arr = new Uint8Array(n);
  4391. while (n--) {
  4392. u8arr[n] = bstr.charCodeAt(n);
  4393. }
  4394. // return new Blob([u8arr], { type: mime });
  4395. return new File([new Blob([u8arr], { type: mime })], file.name, {
  4396. type: mime,
  4397. });
  4398. },
  4399. async beforeUpload1(event, type, i) {
  4400. // this.$message.success('进入上传')
  4401. var file = "";
  4402. if (type == 5) {
  4403. file = event;
  4404. } else {
  4405. file = event.target.files[0];
  4406. }
  4407. var credentials = {
  4408. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4409. secretAccessKey: "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",
  4410. }; //秘钥形式的登录上传
  4411. window.AWS.config.update(credentials);
  4412. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4413. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4414. var _this = this;
  4415. var b = [
  4416. "DOC",
  4417. "DOCX",
  4418. "DOCM",
  4419. "DOTM",
  4420. "DOTX",
  4421. "PPTX",
  4422. "PPSX",
  4423. "PPT",
  4424. "PPS",
  4425. "PPTM",
  4426. "POTM",
  4427. "PPAM",
  4428. "POTX",
  4429. "PPSM",
  4430. ];
  4431. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4432. var photoA = [
  4433. "BMP",
  4434. "GIF",
  4435. "PNG",
  4436. "JPGE",
  4437. "JPG",
  4438. "TIF",
  4439. "PCX",
  4440. "TGA",
  4441. "EXIF",
  4442. "FPX",
  4443. "SVG",
  4444. "APNG",
  4445. ];
  4446. if (
  4447. b.indexOf(
  4448. file.name
  4449. .split(".")
  4450. [file.name.split(".").length - 1].toLocaleUpperCase()
  4451. ) != -1
  4452. ) {
  4453. if (file.size / 1024 / 1024 > 10) {
  4454. this.$message.error("上传文件大于10兆,请重新选择文件!");
  4455. return;
  4456. }
  4457. } else if (
  4458. excelA.indexOf(
  4459. file.name
  4460. .split(".")
  4461. [file.name.split(".").length - 1].toLocaleUpperCase()
  4462. ) != "-1"
  4463. ) {
  4464. if (file.size / 1024 / 1024 > 5) {
  4465. this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  4466. return;
  4467. }
  4468. }
  4469. if (
  4470. photoA.indexOf(
  4471. file.name
  4472. .split(".")
  4473. [file.name.split(".").length - 1].toLocaleUpperCase()
  4474. ) != -1 &&
  4475. type != 4
  4476. ) {
  4477. // const blob = await imageConversion.compress(file, 0.8)
  4478. file = await this.pngToWhiteBg(file);
  4479. const blob = await imageConversion.compressAccurately(file, 64);
  4480. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4481. file = new File([blob], file.name, { type: file.type });
  4482. }
  4483. _this.progress = 0;
  4484. _this.proVisible = true;
  4485. if (file) {
  4486. var params = {
  4487. Key:
  4488. file.name.split(".")[0] +
  4489. new Date().getTime() +
  4490. "." +
  4491. file.name.split(".")[file.name.split(".").length - 1],
  4492. ContentType: file.type,
  4493. Body: file,
  4494. "Access-Control-Allow-Credentials": "*",
  4495. ACL: "public-read",
  4496. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4497. var options = {
  4498. // partSize: 2048 * 1024 * 1024,
  4499. partSize: 1024 * 1024 * 1024,
  4500. queueSize: 2,
  4501. leavePartsOnError: true,
  4502. };
  4503. bucket
  4504. .upload(params, options)
  4505. .on("httpUploadProgress", function (evt) {
  4506. //这里可以写进度条
  4507. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4508. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4509. })
  4510. .send(function (err, data) {
  4511. _this.progress = 100;
  4512. setTimeout(() => {
  4513. _this.proVisible = false;
  4514. }, 1000);
  4515. if (err) {
  4516. var a = _this.$refs.upload1.uploadFiles;
  4517. a.splice(a.length - 1, a.length);
  4518. _this.$message.error("上传失败");
  4519. } else {
  4520. // _this.$message.success('上传成功')
  4521. if (type == 1) {
  4522. _this.studyJuri[0].cover.push({
  4523. name: file.name,
  4524. url: data.Location,
  4525. uid: file.uid,
  4526. });
  4527. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4528. var c = [
  4529. "AVI",
  4530. "NAVI",
  4531. "MPEG",
  4532. "ASF",
  4533. "MOV",
  4534. "WMV",
  4535. "3GP",
  4536. "RM",
  4537. "RMVB",
  4538. "FLV",
  4539. "F4V",
  4540. "H.264",
  4541. "H.265",
  4542. "REAL VIDEO",
  4543. "MKV",
  4544. "WebM",
  4545. "HDDVD",
  4546. "MP4",
  4547. "MPG",
  4548. "M4V",
  4549. "MGV",
  4550. "OGV",
  4551. "QTM",
  4552. "STR",
  4553. "AMC",
  4554. "DVX",
  4555. "EVO",
  4556. "DAT",
  4557. "OGG",
  4558. "OGM",
  4559. ];
  4560. if (
  4561. c.indexOf(
  4562. _this.studyJuri[0].cover[0].url
  4563. .split(".")
  4564. [
  4565. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4566. ].toLocaleUpperCase()
  4567. ) != -1
  4568. ) {
  4569. _this.fileType = 2;
  4570. } else if (
  4571. b.indexOf(
  4572. _this.studyJuri[0].cover[0].url
  4573. .split(".")
  4574. [
  4575. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4576. ].toLocaleUpperCase()
  4577. ) != -1
  4578. ) {
  4579. _this.fileType = 1;
  4580. } else {
  4581. _this.fileType = 0;
  4582. }
  4583. _this.imgChange(null, null, type);
  4584. } else if (type == 2) {
  4585. _this.upToolImg = data.Location;
  4586. _this.imgChange(null, null, type);
  4587. _this.addCourseWorks(i);
  4588. } else if (type == 4) {
  4589. _this.addPz("3", data.Location);
  4590. } else if (type == 5) {
  4591. _this.addImgDrawImG(data.Location);
  4592. }
  4593. _this.imgChange(null, null, type);
  4594. console.log(data.Location);
  4595. // _this.$message.success('上传成功'+data.Location)
  4596. }
  4597. });
  4598. }
  4599. },
  4600. beforeUpload2(event, type) {
  4601. var file = event.target.files[0];
  4602. var credentials = {
  4603. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4604. secretAccessKey: "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",
  4605. }; //秘钥形式的登录上传
  4606. window.AWS.config.update(credentials);
  4607. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4608. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4609. var _this = this;
  4610. _this.progress = 0;
  4611. _this.proVisible = true;
  4612. if (file) {
  4613. var params = {
  4614. Key:
  4615. file.name.split(".")[0] +
  4616. new Date().getTime() +
  4617. "." +
  4618. file.name.split(".")[file.name.split(".").length - 1],
  4619. ContentType: file.type,
  4620. Body: file,
  4621. "Access-Control-Allow-Credentials": "*",
  4622. ACL: "public-read",
  4623. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4624. var options = {
  4625. partSize: 2048 * 1024 * 1024,
  4626. queueSize: 2,
  4627. leavePartsOnError: true,
  4628. };
  4629. bucket
  4630. .upload(params, options)
  4631. .on("httpUploadProgress", function (evt) {
  4632. //这里可以写进度条
  4633. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4634. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4635. })
  4636. .send(function (err, data) {
  4637. _this.progress = 100;
  4638. setTimeout(() => {
  4639. _this.proVisible = false;
  4640. }, 1000);
  4641. if (err) {
  4642. var a = _this.$refs.upload1.uploadFiles;
  4643. a.splice(a.length - 1, a.length);
  4644. _this.$message.error("上传失败");
  4645. } else {
  4646. if (type == 2) {
  4647. _this.studyJuri[0].upVedio.push({
  4648. name: file.name,
  4649. url: data.Location,
  4650. uid: file.uid,
  4651. });
  4652. _this.imgChange(null, null, type);
  4653. } else if (type == 3) {
  4654. _this.studyJuri[0].upFile.push({
  4655. name: file.name,
  4656. url: data.Location,
  4657. uid: file.uid,
  4658. });
  4659. _this.imgChange(null, null, type);
  4660. }
  4661. console.log(data.Location);
  4662. }
  4663. });
  4664. }
  4665. },
  4666. allScrell() {
  4667. window.parent.postMessage({ allScreen: this.screenType }, "*");
  4668. },
  4669. nextOrpreSteps(t) {
  4670. var b = this.chapInfoList.length - 1;
  4671. if (t == 0) {
  4672. if (this.courseType == 0) {
  4673. if (this.taskCount == 0) {
  4674. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  4675. if (this.IsLookOpen) {
  4676. if (
  4677. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  4678. ) {
  4679. if (this.courseDetail.userid != this.userid) {
  4680. this.$message.error("任务未解锁");
  4681. } else {
  4682. this.$message.error("上一任务未解锁");
  4683. }
  4684. return;
  4685. }
  4686. }
  4687. this.navList[this.courseType].isOpen = false;
  4688. this.courseType = b;
  4689. this.taskCount =
  4690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4691. .length - 1;
  4692. this.navList[this.courseType].isOpen = true;
  4693. } else {
  4694. this.taskCount--;
  4695. }
  4696. } else {
  4697. if (this.taskCount == 0) {
  4698. this.navList[this.courseType].isOpen = false;
  4699. this.courseType--;
  4700. this.taskCount =
  4701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4702. .length - 1;
  4703. this.navList[this.courseType].isOpen = true;
  4704. } else {
  4705. this.taskCount--;
  4706. }
  4707. }
  4708. } else {
  4709. if (this.courseType == b) {
  4710. if (
  4711. this.taskCount ==
  4712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4713. 1
  4714. ) {
  4715. this.navList[this.courseType].isOpen = false;
  4716. this.courseType = 0;
  4717. this.taskCount = 0;
  4718. this.navList[this.courseType].isOpen = true;
  4719. } else {
  4720. var bbb = parseInt(this.taskCount) + 1;
  4721. if (
  4722. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4723. .isLook &&
  4724. this.courseDetail.userid != this.userid &&
  4725. this.IsLookOpen
  4726. ) {
  4727. this.$message.error("任务未解锁");
  4728. return;
  4729. }
  4730. this.taskCount++;
  4731. if (this.IsLookOpen) {
  4732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4733. this.taskCount
  4734. ].isLook = true;
  4735. this.addCourseState(3);
  4736. }
  4737. }
  4738. } else {
  4739. if (
  4740. this.taskCount ==
  4741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4742. 1
  4743. ) {
  4744. var bbb = parseInt(this.courseType) + 1;
  4745. if (
  4746. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  4747. this.courseDetail.userid != this.userid &&
  4748. this.IsLookOpen
  4749. ) {
  4750. this.$message.error("任务未解锁");
  4751. return;
  4752. }
  4753. this.navList[this.courseType].isOpen = false;
  4754. this.courseType++;
  4755. this.taskCount = 0;
  4756. this.navList[this.courseType].isOpen = true;
  4757. } else {
  4758. var bbb = parseInt(this.taskCount) + 1;
  4759. if (
  4760. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4761. .isLook &&
  4762. this.courseDetail.userid != this.userid &&
  4763. this.IsLookOpen
  4764. ) {
  4765. this.$message.error("任务未解锁");
  4766. return;
  4767. }
  4768. this.taskCount++;
  4769. }
  4770. if (this.IsLookOpen) {
  4771. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4772. this.taskCount
  4773. ].isLook = true;
  4774. this.addCourseState(3);
  4775. }
  4776. }
  4777. // if (
  4778. // this.taskCount ==
  4779. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  4780. // ) {
  4781. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  4782. // } else {
  4783. // this.taskCount++;
  4784. // }
  4785. }
  4786. document.scrollingElement.scrollTop = 0;
  4787. this.showType = 0;
  4788. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  4789. // if (this.vedio[this.taskCount].length > 0) {
  4790. // var a =
  4791. // document.getElementsByClassName("box_course")[this.taskCount]
  4792. // .offsetHeight;
  4793. // document.getElementsByClassName("vedioList")[
  4794. // this.taskCount
  4795. // ].style.height = a + "px";
  4796. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  4797. // a - 40 + "px";
  4798. // }
  4799. this.isNoHomeWork = false;
  4800. (this.studyJuri = [
  4801. {
  4802. content: "",
  4803. cover: [],
  4804. upVedio: [],
  4805. upFile: [],
  4806. },
  4807. ]),
  4808. (this.radio = []);
  4809. this.isClickNav = "";
  4810. this.selectPz();
  4811. this.getHomeWork();
  4812. this.getCourseDetail();
  4813. this.$forceUpdate();
  4814. },
  4815. openTask(s, n, i) {
  4816. if (this.IsLookOpen) {
  4817. if (
  4818. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  4819. this.courseDetail.userid != this.userid
  4820. ) {
  4821. this.$message.error("任务未解锁");
  4822. return;
  4823. }
  4824. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  4825. if (
  4826. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  4827. .isLook
  4828. ) {
  4829. this.$message.error("上一任务未解锁");
  4830. return;
  4831. }
  4832. } else if (s > this.courseType) {
  4833. if (n > 0) {
  4834. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  4835. this.$message.error("上一任务未解锁");
  4836. return;
  4837. }
  4838. } else {
  4839. if (
  4840. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  4841. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  4842. ].isLook
  4843. ) {
  4844. this.$message.error("上一任务未解锁");
  4845. return;
  4846. }
  4847. }
  4848. }
  4849. }
  4850. this.courseType = s;
  4851. this.navId = i;
  4852. this.taskCount = n;
  4853. if (this.IsLookOpen) {
  4854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4855. this.taskCount
  4856. ].isLook = true;
  4857. this.addCourseState(3);
  4858. }
  4859. this.showType = 0;
  4860. this.isNoHomeWork = false;
  4861. (this.studyJuri = [
  4862. {
  4863. content: "",
  4864. cover: [],
  4865. upVedio: [],
  4866. upFile: [],
  4867. },
  4868. ]),
  4869. (this.radio = []);
  4870. document.scrollingElement.scrollTop = 0;
  4871. // setTimeout(() => {
  4872. // let a = document.getElementById(i);
  4873. // if (a.offsetTop - 110 == 0) {
  4874. // window.scrollTo(0, 0);
  4875. // } else {
  4876. // window.scrollTo(0, a.offsetTop);
  4877. // }
  4878. // }, 0);
  4879. this.selectPz();
  4880. this.getHomeWork();
  4881. this.getCourseDetail();
  4882. },
  4883. get(i) {
  4884. this.navList[i].isOpen = !this.navList[i].isOpen;
  4885. },
  4886. addQuestion() {
  4887. this.answerList.push({
  4888. answerTitle: this.answerQ,
  4889. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  4890. });
  4891. let params = [
  4892. {
  4893. uid: this.userid,
  4894. cid: this.id,
  4895. stage: this.courseType,
  4896. task: this.taskCount,
  4897. tool: this.toolindex,
  4898. content: JSON.stringify(this.answerList),
  4899. type: 3,
  4900. },
  4901. ];
  4902. this.ajax
  4903. .post(this.$store.state.api + "addCourseWorks", params)
  4904. .then((res) => {
  4905. this.$message({
  4906. message: "提交成功",
  4907. type: "success",
  4908. });
  4909. this.answerList = [];
  4910. this.answerDialogVisible = false;
  4911. this.selectStudent();
  4912. this.selectSWorks();
  4913. this.selectSLook();
  4914. })
  4915. .catch((err) => {
  4916. this.$message.error("提交失败");
  4917. console.error(err);
  4918. });
  4919. },
  4920. getCourseDetail() {
  4921. const loading = this.$loading.service({
  4922. background: "rgba(255, 255, 255, 0.7)",
  4923. target: document.querySelector(".student_table"),
  4924. });
  4925. // this.navList[0].isOpen = false;
  4926. // this.navList[this.courseType].isOpen = true;
  4927. // this.courseType = this.courseTypeLine;
  4928. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  4929. let params = {
  4930. courseId: this.id,
  4931. };
  4932. this.ajax
  4933. .get(this.$store.state.api + "selectCourseDetail", params)
  4934. .then((res) => {
  4935. loading.close();
  4936. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  4937. .chapterInfo[0].taskJson;
  4938. var b = [
  4939. "AVI",
  4940. "NAVI",
  4941. "MPEG",
  4942. "ASF",
  4943. "MOV",
  4944. "WMV",
  4945. "3GP",
  4946. "RM",
  4947. "RMVB",
  4948. "FLV",
  4949. "F4V",
  4950. "H.264",
  4951. "H.265",
  4952. "REAL VIDEO",
  4953. "MKV",
  4954. "WebM",
  4955. "HDDVD",
  4956. "MP4",
  4957. "MPG",
  4958. "M4V",
  4959. "MGV",
  4960. "OGV",
  4961. "QTM",
  4962. "STR",
  4963. "AMC",
  4964. "DVX",
  4965. "EVO",
  4966. "DAT",
  4967. "OGG",
  4968. "OGM",
  4969. ];
  4970. for (var i = 0; i < a.length; i++) {
  4971. var c = a[i].chapterData;
  4972. this.vedio[i] = [];
  4973. this.textList[i] = [];
  4974. this.lineList[i] = [];
  4975. this.chapToolList[i] = [];
  4976. this.file[i] = [];
  4977. for (var j = 0; j < c.length; j++) {
  4978. if (c[j].type == 7) {
  4979. this.chapToolList[i].push(c[j]);
  4980. } else if (c[j].type == 8) {
  4981. this.lineList[i].push(c[j]);
  4982. } else if (c[j].type == 6) {
  4983. this.textList[i].push(c[j]);
  4984. } else {
  4985. if (
  4986. b.indexOf(
  4987. c[j].url
  4988. .split(".")
  4989. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  4990. ) != -1
  4991. ) {
  4992. this.vedio[i].push(c[j]);
  4993. } else {
  4994. this.file[i].push(c[j]);
  4995. }
  4996. }
  4997. }
  4998. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4999. d.sources[0].src =
  5000. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5001. this.playerO[i] = d;
  5002. }
  5003. this.courseDetail = res.data[0][0];
  5004. this.evalua = res.data[0][0].evaId;
  5005. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5006. this.courseType
  5007. ];
  5008. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5009. // if (this.navList.length == 0) {
  5010. // this.navList = [];
  5011. // for (var l = 0; l < this.chapInfoList.length; l++) {
  5012. // var q = this.chapInfoList[l].dyName;
  5013. // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5014. // var e;
  5015. // this.navList.push({
  5016. // dyName: q,
  5017. // isOpen: l === 0 ? true : false,
  5018. // task: [],
  5019. // });
  5020. // for (var r = 0; r < w.length; r++) {
  5021. // e = w[r].task;
  5022. // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  5023. // this.navId = this.navId ? this.navId : l + "-" + r;
  5024. // }
  5025. // }
  5026. // }
  5027. // this.navList[0].isOpen = false;
  5028. // this.navList[this.courseType].isOpen = true;
  5029. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5030. for (var l = 0; l < this.chapInfoList.length; l++) {
  5031. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5032. for (var m = 0; m < w.length; m++) {
  5033. w[m].id = l + "-" + m;
  5034. }
  5035. }
  5036. if (
  5037. !this.vedio[this.taskCount][0] ||
  5038. this.vedio[this.taskCount][0].url == ""
  5039. ) {
  5040. if (
  5041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5042. this.taskCount
  5043. ].chapterData.length > 0
  5044. ) {
  5045. // if (
  5046. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5047. // this.taskCount
  5048. // ].chapterData[0].type != 8
  5049. // ) {
  5050. let _url =
  5051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5052. this.taskCount
  5053. ].chapterData[0].url;
  5054. if (
  5055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5056. this.taskCount
  5057. ].chapterData[0].type == 8
  5058. ) {
  5059. this.showType = 2;
  5060. if (
  5061. _url.indexOf("https://") == -1 &&
  5062. _url.indexOf("http://") == -1
  5063. ) {
  5064. _url = "https://" + _url;
  5065. }
  5066. this.pptImgUrl1 = _url;
  5067. this.isClickNav = "line0";
  5068. } else if (
  5069. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5070. this.taskCount
  5071. ].chapterData[0].type == 3
  5072. ) {
  5073. if (
  5074. _url
  5075. .split(".")
  5076. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5077. ) {
  5078. this.showType = 3;
  5079. this.pptImgUrl1 = _url;
  5080. this.isClickNav = "word0";
  5081. } else if (
  5082. this.isAssetTypeAnImage(
  5083. _url
  5084. .split(".")
  5085. [_url.split(".").length - 1].toLocaleLowerCase()
  5086. )
  5087. ) {
  5088. this.showType = 4;
  5089. this.pptImgUrl1 = _url;
  5090. this.isClickNav = "word0";
  5091. } else {
  5092. this.showType = 2;
  5093. this.pptImgUrl1 =
  5094. "https://view.officeapps.live.com/op/view.aspx?src=" + _url;
  5095. this.isClickNav = "word0";
  5096. }
  5097. } else if (
  5098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5099. this.taskCount
  5100. ].chapterData[0].type == 6
  5101. ) {
  5102. this.showType = 1;
  5103. this.text = this.textList[this.taskCount][0];
  5104. this.isClickNav = "text0";
  5105. }
  5106. // }
  5107. // else {
  5108. // for (
  5109. // var y = 0;
  5110. // y <
  5111. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5112. // this.taskCount
  5113. // ].chapterData.length;
  5114. // y++
  5115. // ) {
  5116. // if (
  5117. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5118. // this.taskCount
  5119. // ].chapterData[y].type != 8
  5120. // ) {
  5121. // if (
  5122. // this.chapInfoList[this.courseType].chapterInfo[0]
  5123. // .taskJson[this.taskCount].chapterData[y].type == 3
  5124. // ) {
  5125. // let _url =
  5126. // this.chapInfoList[this.courseType].chapterInfo[0]
  5127. // .taskJson[this.taskCount].chapterData[y].url;
  5128. // if (
  5129. // _url
  5130. // .split(".")
  5131. // [_url.split(".").length - 1].toLocaleUpperCase() ==
  5132. // "PDF"
  5133. // ) {
  5134. // this.showType = 3;
  5135. // this.pptImgUrl1 = _url;
  5136. // } else if (
  5137. // this.isAssetTypeAnImage(
  5138. // _url
  5139. // .split(".")
  5140. // [_url.split(".").length - 1].toLocaleLowerCase()
  5141. // )
  5142. // ) {
  5143. // this.showType = 4;
  5144. // this.pptImgUrl1 = _url;
  5145. // } else {
  5146. // this.showType = 2;
  5147. // this.pptImgUrl1 =
  5148. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  5149. // _url;
  5150. // }
  5151. // } else if (
  5152. // this.chapInfoList[this.courseType].chapterInfo[0]
  5153. // .taskJson[this.taskCount].chapterData[y].type == 6
  5154. // ) {
  5155. // this.showType = 1;
  5156. // this.text = this.textList[this.taskCount][0];
  5157. // }
  5158. // } else {
  5159. // this.showType = 2;
  5160. // this.pptImgUrl1 =
  5161. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  5162. // _url;
  5163. // }
  5164. // }
  5165. // }
  5166. }
  5167. } else {
  5168. this.isClickNav = "video0";
  5169. }
  5170. setTimeout(() => {
  5171. this.checkEva();
  5172. }, 500);
  5173. this.selectStudent();
  5174. this.selectSWorks();
  5175. this.selectSLook();
  5176. let _this = this;
  5177. if (_this.timer) {
  5178. clearInterval(_this.timer);
  5179. _this.timer = null;
  5180. }
  5181. _this.timer = setInterval(function () {
  5182. _this.selectSWorks();
  5183. _this.selectStudent();
  5184. _this.selectSLook();
  5185. if (_this.tType == 4) {
  5186. _this.selectPz();
  5187. }
  5188. }, 5000);
  5189. _this.$nextTick(function () {
  5190. setTimeout(() => {
  5191. var a =
  5192. document.getElementsByClassName("box_course")[0].offsetHeight;
  5193. document.getElementsByClassName("vedioList")[0].style.height =
  5194. a + "px";
  5195. document.getElementsByClassName("navBox")[0].style.height =
  5196. a - 40 + "px";
  5197. if (_this.vedio[_this.taskCount].length > 0) {
  5198. _this.vedioTime = [];
  5199. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  5200. _this.vedioTime[i] = document.getElementsByClassName(
  5201. "vjs-duration-display"
  5202. )[i].textContent;
  5203. }
  5204. }
  5205. }, 500);
  5206. });
  5207. })
  5208. .catch((err) => {
  5209. loading.close();
  5210. console.error(err);
  5211. });
  5212. },
  5213. addPz(type, content) {
  5214. if (type == "1" && this.pzConText == "") {
  5215. this.$message.error("批注不能为空!");
  5216. return;
  5217. }
  5218. let params = [
  5219. {
  5220. cid: this.id,
  5221. uid: this.userid,
  5222. s: this.courseType,
  5223. t: this.taskCount,
  5224. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  5225. type: type,
  5226. },
  5227. ];
  5228. this.ajax
  5229. .post(this.$store.state.api + "addPz2", params)
  5230. .then((res) => {
  5231. this.$message({
  5232. message: "添加成功",
  5233. type: "success",
  5234. });
  5235. this.pzConText = "";
  5236. this.addPzDialog = false;
  5237. this.selectPz();
  5238. })
  5239. .catch((err) => {
  5240. this.$message.error("添加失败");
  5241. console.error(err);
  5242. });
  5243. },
  5244. deletePz(id) {
  5245. this.$confirm("确定删除此批注吗?", "提示", {
  5246. confirmButtonText: "确定",
  5247. cancelButtonText: "取消",
  5248. type: "warning",
  5249. })
  5250. .then(() => {
  5251. let params = [
  5252. {
  5253. id: id,
  5254. },
  5255. ];
  5256. this.ajax
  5257. .post(this.$store.state.api + "deletePz", params)
  5258. .then((res) => {
  5259. this.$message({
  5260. message: "删除成功",
  5261. type: "success",
  5262. });
  5263. this.selectPz();
  5264. })
  5265. .catch((err) => {
  5266. this.$message.error("网络异常");
  5267. console.error(err);
  5268. });
  5269. })
  5270. .catch(() => { });
  5271. },
  5272. selectPz() {
  5273. let params = {
  5274. cid: this.id,
  5275. s: this.courseType,
  5276. t: this.taskCount,
  5277. };
  5278. this.ajax
  5279. .get(this.$store.state.api + "selectPzList", params)
  5280. .then((res) => {
  5281. this.pzList = res.data[0];
  5282. })
  5283. .catch((err) => {
  5284. console.error(err);
  5285. });
  5286. },
  5287. updateSLook() {
  5288. let params = {
  5289. sopen: this.sIsOpen == false ? 1 : 2,
  5290. cid: this.id,
  5291. };
  5292. this.ajax
  5293. .get(this.$store.state.api + "updateCourseSLook", params)
  5294. .then((res) => {
  5295. if (this.sIsOpen == true) {
  5296. this.$message({
  5297. message: "权限开放成功",
  5298. type: "success",
  5299. });
  5300. } else {
  5301. this.$message({
  5302. message: "权限关闭成功",
  5303. type: "success",
  5304. });
  5305. }
  5306. })
  5307. .catch((err) => {
  5308. console.error(err);
  5309. });
  5310. },
  5311. updateLookOpen() {
  5312. let params = [
  5313. {
  5314. sopen: this.IsLookOpen == false ? 1 : 2,
  5315. cid: this.id,
  5316. },
  5317. ];
  5318. this.ajax
  5319. .post(this.$store.state.api + "updateCourseLookOpen", params)
  5320. .then((res) => {
  5321. if (this.IsLookOpen == true) {
  5322. // if (this.courseType != 0 && this.taskCount != 0) {
  5323. // this.openTask(0, 0, "0-0");
  5324. // }
  5325. this.$message({
  5326. message: "权限开放成功",
  5327. type: "success",
  5328. });
  5329. } else {
  5330. this.$message({
  5331. message: "权限关闭成功",
  5332. type: "success",
  5333. });
  5334. }
  5335. this.getCourseState(2);
  5336. })
  5337. .catch((err) => {
  5338. console.error(err);
  5339. });
  5340. },
  5341. selectSLook() {
  5342. let params = {
  5343. cid: this.id,
  5344. };
  5345. this.ajax
  5346. .get(this.$store.state.api + "selectCourseSLook", params)
  5347. .then((res) => {
  5348. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  5349. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  5350. if (!this.IsLookOpen) {
  5351. this.setNavList();
  5352. } else {
  5353. this.getCourseState(1);
  5354. }
  5355. })
  5356. .catch((err) => {
  5357. console.error(err);
  5358. });
  5359. },
  5360. setNavList() {
  5361. if (this.navList.length == 0) {
  5362. this.navList = [];
  5363. for (var l = 0; l < this.chapInfoList.length; l++) {
  5364. var q = this.chapInfoList[l].dyName;
  5365. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5366. var e;
  5367. this.navList.push({
  5368. dyName: q,
  5369. isOpen: l === 0 ? true : false,
  5370. task: [],
  5371. });
  5372. for (var r = 0; r < w.length; r++) {
  5373. e = w[r].task;
  5374. this.navList[l].task.push({
  5375. taskName: e,
  5376. id: l + "-" + r,
  5377. isLook: w[r].isLook,
  5378. });
  5379. // this.navId = this.navId ? this.navId : l + "-" + r;
  5380. // this.navId = l + "-" + r;
  5381. }
  5382. }
  5383. this.navList[0].isOpen = false;
  5384. this.navList[this.courseType].isOpen = true;
  5385. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5386. } else {
  5387. this.setNavList2();
  5388. }
  5389. },
  5390. setNavList2() {
  5391. for (var l = 0; l < this.chapInfoList.length; l++) {
  5392. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5393. for (var r = 0; r < w.length; r++) {
  5394. this.navList[l].task[r].isLook = w[r].isLook;
  5395. }
  5396. }
  5397. if (
  5398. this.IsLookOpen &&
  5399. !this.navList[this.courseType].task[this.taskCount].isLook
  5400. ) {
  5401. this.openTask(0, 0, "0-0");
  5402. }
  5403. this.$forceUpdate();
  5404. },
  5405. getCourseState(type) {
  5406. let params = {
  5407. cid: this.id,
  5408. };
  5409. this.ajax
  5410. .get(this.$store.state.api + "getCourseState", params)
  5411. .then((res) => {
  5412. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  5413. this.chapInfoList = JSON.parse(res.data[0][0].state);
  5414. this.setNavList();
  5415. this.$forceUpdate();
  5416. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  5417. this.addCourseState(2);
  5418. } else {
  5419. this.addCourseState(1);
  5420. }
  5421. })
  5422. .catch((err) => {
  5423. console.error(err);
  5424. });
  5425. },
  5426. addCourseState(type) {
  5427. let _state = this.chapInfoList;
  5428. // this.courseType this.taskCount
  5429. if (type == 1 || type == 2) {
  5430. for (var i = 0; i < _state.length; i++) {
  5431. let el = _state[i].chapterInfo[0].taskJson;
  5432. for (var j = 0; j < el.length; j++) {
  5433. // if (i == 0 && j == 0) {
  5434. // el[j].isLook = true;
  5435. // } else {
  5436. // el[j].isLook = false;
  5437. // }
  5438. if (
  5439. this.courseType > i ||
  5440. (this.courseType == i && this.taskCount + 1 > j)
  5441. ) {
  5442. el[j].isLook = true;
  5443. } else {
  5444. el[j].isLook = false;
  5445. }
  5446. }
  5447. }
  5448. }
  5449. let params = [
  5450. {
  5451. cid: this.id,
  5452. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  5453. },
  5454. ];
  5455. this.ajax
  5456. .post(
  5457. this.$store.state.api +
  5458. (type == 1 ? "addCourseState" : "updateCourseSate"),
  5459. params
  5460. )
  5461. .then((res) => {
  5462. if (this.IsLookOpen) {
  5463. this.setNavList();
  5464. }
  5465. if (type == 3 && type == 2) {
  5466. this.getCourseState(1);
  5467. }
  5468. })
  5469. .catch((err) => {
  5470. console.error(err);
  5471. });
  5472. },
  5473. getHomeWork() {
  5474. let params = {
  5475. cid: this.id,
  5476. stage: this.courseType,
  5477. task: this.taskCount,
  5478. uid: this.userid,
  5479. };
  5480. this.ajax
  5481. .get(this.$store.state.api + "selectWork", params)
  5482. .then((res) => {
  5483. if (res.data[0].length > 0) {
  5484. this.studyJuri = JSON.parse(res.data[0][0].content);
  5485. this.isNoHomeWork = true;
  5486. }
  5487. })
  5488. .catch((err) => {
  5489. console.error(err);
  5490. });
  5491. },
  5492. isAssetTypeAnImage(ext) {
  5493. return (
  5494. [
  5495. "png",
  5496. "jpg",
  5497. "jpeg",
  5498. "bmp",
  5499. "gif",
  5500. "webp",
  5501. "psd",
  5502. "svg",
  5503. "tiff",
  5504. ].indexOf(ext) !== -1
  5505. );
  5506. },
  5507. switchVideo(media) {
  5508. this.playerO = {};
  5509. this.playerOptions.poster = "";
  5510. this.playerOptions.sources[0].src = media;
  5511. this.playerO = this.playerOptions;
  5512. },
  5513. onPlayerPlay() { },
  5514. lookVedio(u, i) {
  5515. this.isClickNav = "";
  5516. // this.playerOptions.sources[0].src = u;
  5517. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5518. d.sources[0].src = u;
  5519. this.playerO[this.taskCount] = d;
  5520. this.showType = 0;
  5521. this.isClickNav = "video" + i;
  5522. this.$forceUpdate();
  5523. },
  5524. lookText(i, t) {
  5525. this.isClickNav = "";
  5526. this.text = this.textList[i][t];
  5527. // this.dialogVisible1 = true;
  5528. this.showType = 1;
  5529. this.isClickNav = "text" + t;
  5530. },
  5531. lookTools(i, t) {
  5532. this.chapTools = this.chapToolList[i][t];
  5533. this.dialogVisible2 = true;
  5534. },
  5535. openFile(f) {
  5536. this.pptImgUrl = "";
  5537. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5538. if (
  5539. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  5540. -1
  5541. ) {
  5542. this.pptImgUrl =
  5543. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  5544. this.showPDF = false;
  5545. this.dialogVisible3 = true;
  5546. } else if (
  5547. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5548. ) {
  5549. this.pptImgUrl = f;
  5550. this.showPDF = true;
  5551. this.dialogVisible3 = true;
  5552. }
  5553. },
  5554. doUrl(url, i) {
  5555. this.isClickNav = "";
  5556. this.pptImgUrl1 = "";
  5557. this.showType = 2;
  5558. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  5559. url = "https://" + url;
  5560. }
  5561. this.pptImgUrl1 = url;
  5562. this.isClickNav = "line" + i;
  5563. },
  5564. downFile(f, i) {
  5565. this.isClickNav = "";
  5566. this.pptImgUrl1 = "";
  5567. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  5568. if (
  5569. a.indexOf(
  5570. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  5571. ) != -1
  5572. ) {
  5573. this.pptImgUrl1 =
  5574. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  5575. // this.dialogVisible3 = true;
  5576. this.showType = 2;
  5577. } else if (
  5578. this.isAssetTypeAnImage(
  5579. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  5580. )
  5581. ) {
  5582. this.showType = 4;
  5583. this.pptImgUrl1 = f.url;
  5584. } else if (
  5585. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  5586. "PDF"
  5587. ) {
  5588. this.pptImgUrl1 = f.url;
  5589. // this.dialogVisible3 = true;
  5590. this.showType = 3;
  5591. } else {
  5592. window.open(this.file[i].url);
  5593. }
  5594. this.isClickNav = "word" + i;
  5595. },
  5596. downFileList(i) {
  5597. window.open(this.noImgList[i].url);
  5598. },
  5599. openAddWork() {
  5600. this.dialogVisible = true;
  5601. },
  5602. addBzWorks() {
  5603. let params = [
  5604. {
  5605. uid: this.userid,
  5606. cid: this.id,
  5607. stage: this.courseType,
  5608. task: this.taskCount,
  5609. tool: this.toolindex,
  5610. content: JSON.stringify(this.eScore),
  5611. type: 6,
  5612. },
  5613. ];
  5614. this.ajax
  5615. .post(this.$store.state.api + "addCourseWorks", params)
  5616. .then((res) => {
  5617. this.$message({
  5618. message: "提交成功",
  5619. type: "success",
  5620. });
  5621. this.eScore = { eBzText: "", eStar: [] };
  5622. this.studentEvalDialogVisible = false;
  5623. this.selectSWorks();
  5624. })
  5625. .catch((err) => {
  5626. this.$message.error("提交失败");
  5627. console.error(err);
  5628. });
  5629. },
  5630. addStudentAsk() {
  5631. for (var i = 0; i < this.radio.length; i++) {
  5632. if (this.radio[i] !== 0 && !this.radio[i]) {
  5633. this.$message.error("请选择选项");
  5634. return;
  5635. }
  5636. }
  5637. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  5638. let params = [
  5639. {
  5640. uid: this.userid,
  5641. cid: this.id,
  5642. stage: this.courseType,
  5643. task: this.taskCount,
  5644. tool: this.toolindex,
  5645. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  5646. type: 2,
  5647. },
  5648. ];
  5649. this.ajax
  5650. .post(this.$store.state.api + "addCourseWorks", params)
  5651. .then((res) => {
  5652. this.$message({
  5653. message: "提交成功",
  5654. type: "success",
  5655. });
  5656. this.askList = [];
  5657. this.dialogVisible5 = false;
  5658. this.selectStudent();
  5659. this.selectSWorks();
  5660. this.selectSLook();
  5661. })
  5662. .catch((err) => {
  5663. this.$message.error("提交失败");
  5664. console.error(err);
  5665. });
  5666. },
  5667. addStudentTest() {
  5668. for (var i = 0; i < this.radio.length; i++) {
  5669. if (
  5670. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  5671. (this.radio[i] !== 0 && !this.radio[i])
  5672. ) {
  5673. this.$message.error("请选择选项");
  5674. return;
  5675. }
  5676. }
  5677. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  5678. let params = [
  5679. {
  5680. uid: this.userid,
  5681. cid: this.id,
  5682. stage: this.courseType,
  5683. task: this.taskCount,
  5684. tool: this.toolindex,
  5685. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  5686. type: 8,
  5687. },
  5688. ];
  5689. this.ajax
  5690. .post(this.$store.state.api + "addCourseWorks", params)
  5691. .then((res) => {
  5692. this.$message({
  5693. message: "提交成功",
  5694. type: "success",
  5695. });
  5696. this.askList = [];
  5697. this.dialogVisibleChoice = false;
  5698. this.selectStudent();
  5699. this.selectSWorks();
  5700. this.selectSLook();
  5701. })
  5702. .catch((err) => {
  5703. this.$message.error("提交失败");
  5704. console.error(err);
  5705. });
  5706. },
  5707. addWork() {
  5708. if (this.studyJuri[0].content == "") {
  5709. this.$message.error("请将信息填写完整");
  5710. return;
  5711. } else if (this.studyJuri[0].cover.length == 0) {
  5712. this.$message.error("请将信息填写完整");
  5713. return;
  5714. } else if (this.studyJuri[0].upVedio.length == 0) {
  5715. this.$message.error("请将信息填写完整");
  5716. return;
  5717. }
  5718. if (this.isNoHomeWork) {
  5719. this.$confirm(
  5720. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  5721. "提示",
  5722. {
  5723. confirmButtonText: "确定",
  5724. cancelButtonText: "取消",
  5725. type: "warning",
  5726. }
  5727. )
  5728. .then(() => {
  5729. let params = [
  5730. {
  5731. uid: this.userid,
  5732. cid: this.id,
  5733. stage: this.courseType,
  5734. task: this.taskCount,
  5735. content: JSON.stringify(this.studyJuri),
  5736. },
  5737. ];
  5738. this.ajax
  5739. .post(this.$store.state.api + "addWorks", params)
  5740. .then((res) => {
  5741. this.$message({
  5742. message: "提交成功",
  5743. type: "success",
  5744. });
  5745. this.isNoHomeWork = true;
  5746. this.dialogVisible = false;
  5747. })
  5748. .catch((err) => {
  5749. this.$message.error("提交失败");
  5750. console.error(err);
  5751. });
  5752. })
  5753. .catch(() => { });
  5754. } else {
  5755. let params = [
  5756. {
  5757. uid: this.userid,
  5758. cid: this.id,
  5759. stage: this.courseType,
  5760. task: this.taskCount,
  5761. content: JSON.stringify(this.studyJuri),
  5762. },
  5763. ];
  5764. this.ajax
  5765. .post(this.$store.state.api + "addWorks", params)
  5766. .then((res) => {
  5767. this.$message({
  5768. message: "提交成功",
  5769. type: "success",
  5770. });
  5771. this.isNoHomeWork = true;
  5772. this.dialogVisible = false;
  5773. })
  5774. .catch((err) => {
  5775. this.$message.error("提交失败");
  5776. console.error(err);
  5777. });
  5778. }
  5779. },
  5780. selectCount() {
  5781. let params = {
  5782. cid: this.id,
  5783. chid: this.courseType,
  5784. uid: this.userid,
  5785. };
  5786. this.ajax
  5787. .get(this.$store.state.api + "selectToolsCount", params)
  5788. .then((res) => {
  5789. for (var i = 0; i < res.data[0].length; i++) {
  5790. if (res.data[0][i].tools == 1) {
  5791. this.wbCount = res.data[0][i].count;
  5792. } else if (res.data[0][i].tools == 2) {
  5793. this.wordCount = res.data[0][i].count;
  5794. } else if (res.data[0][i].tools == 3) {
  5795. this.mindCount = res.data[0][i].count;
  5796. } else if (res.data[0][i].tools == 4) {
  5797. this.askCount = res.data[0][i].count;
  5798. } else if (res.data[0][i].tools == 6) {
  5799. this.noteCount = res.data[0][i].count;
  5800. } else if (res.data[0][i].tools == 7) {
  5801. this.mindNetWorkCount = res.data[0][i].count;
  5802. } else if (res.data[0][i].tools == 8) {
  5803. this.libraryCount = res.data[0][i].count;
  5804. } else if (res.data[0][i].tools == 16) {
  5805. this.workCount = res.data[0][i].count;
  5806. } else if (res.data[0][i].tools == 10) {
  5807. this.timeCount = res.data[0][i].count;
  5808. } else if (res.data[0][i].tools == 15) {
  5809. this.answerCount = res.data[0][i].count;
  5810. } else if (res.data[0][i].tools == 18) {
  5811. this.trainCount = res.data[0][i].count;
  5812. }
  5813. }
  5814. })
  5815. .catch((err) => {
  5816. console.error(err);
  5817. });
  5818. },
  5819. openTools(t, i, index, c, sName) {
  5820. var z = JSON.parse(c);
  5821. this.noteName = sName;
  5822. if (t == 4) {
  5823. this.radio = [];
  5824. this.isAnswer = false;
  5825. for (var i = 0; i < z.length; i++) {
  5826. let a = z[i];
  5827. let b = a.anwer.split(",");
  5828. let d = [];
  5829. for (var j = 0; j < b.length; j++) {
  5830. d.push(parseInt(b[j]));
  5831. }
  5832. this.radio = d;
  5833. this.askJson = a.askJson;
  5834. }
  5835. this.isAnswer = true;
  5836. this.dialogVisible5 = true;
  5837. } else if (t == 45) {
  5838. this.radio = [];
  5839. this.isAnswer = false;
  5840. let b = z[0].anwer;
  5841. this.radio = b;
  5842. this.testJson = z[0].testJson;
  5843. this.isAnswer = true;
  5844. this.dialogVisibleChoice = true;
  5845. }
  5846. // else if (t == 15) {
  5847. // this.answerQ = "";
  5848. // this.questionAnswer = "";
  5849. // this.answerQ = z[0].answerTitle;
  5850. // this.questionAnswer = z[0].answer;
  5851. // this.answerDialogVisible = true;
  5852. // }
  5853. },
  5854. fastText(p, t) {
  5855. if (t == 1) {
  5856. this.commentText += p;
  5857. } else {
  5858. this.eScore.eBzText += p;
  5859. }
  5860. },
  5861. addTools(t, i, index) {
  5862. var a = 0;
  5863. // this.taskCount = index;
  5864. this.toolindex = i;
  5865. if (t == 1) {
  5866. if (this.wbCount > 0) {
  5867. this.updateCount(this.wbCount, t);
  5868. } else {
  5869. this.wbCount++;
  5870. a = this.wbCount;
  5871. this.toolsCount(a, t);
  5872. }
  5873. window.parent.postMessage(
  5874. {
  5875. tools: "1",
  5876. cid: this.id,
  5877. stage: this.courseType,
  5878. task: this.taskCount,
  5879. tool: i,
  5880. },
  5881. "*"
  5882. );
  5883. } else if (t == 2) {
  5884. if (this.wordCount > 0) {
  5885. this.updateCount(this.wordCount, t);
  5886. } else {
  5887. this.wordCount++;
  5888. a = this.wordCount;
  5889. this.toolsCount(a, t);
  5890. }
  5891. window.parent.postMessage({ tools: "2" }, "*");
  5892. } else if (t == 3) {
  5893. if (this.mindCount > 0) {
  5894. this.updateCount(this.mindCount, t);
  5895. } else {
  5896. this.mindCount++;
  5897. a = this.mindCount;
  5898. this.toolsCount(a, t);
  5899. }
  5900. window.parent.postMessage(
  5901. {
  5902. tools: "3",
  5903. cid: this.id,
  5904. stage: this.courseType,
  5905. task: this.taskCount,
  5906. tool: i,
  5907. },
  5908. "*"
  5909. );
  5910. } else if (t == 4) {
  5911. this.radio = [];
  5912. this.noteName = "";
  5913. this.isAnswer = false;
  5914. if (this.askCount > 0) {
  5915. this.updateCount(this.askCount, t);
  5916. } else {
  5917. this.askCount++;
  5918. a = this.askCount;
  5919. this.toolsCount(a, t);
  5920. }
  5921. if (!this.dialogVisible2) {
  5922. this.askJson.askJson =
  5923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5924. index
  5925. ].toolChoose[i].askJson;
  5926. this.askJson.askTitle =
  5927. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5928. index
  5929. ].toolChoose[i].askTitle;
  5930. this.askJson.askCount =
  5931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5932. index
  5933. ].toolChoose[i].askCount;
  5934. } else {
  5935. this.askJson.askJson = this.chapTools.askJson.askJson;
  5936. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  5937. this.askJson.askCount = this.chapTools.askJson.askCount;
  5938. }
  5939. this.dialogVisible5 = true;
  5940. // window.parent.postMessage({ tools: "4" }, "*");
  5941. } else if (t == 45) {
  5942. this.noteName = "";
  5943. this.radio = [];
  5944. this.isAnswer = false;
  5945. if (this.askCount > 0) {
  5946. this.updateCount(this.askCount, t);
  5947. } else {
  5948. this.askCount++;
  5949. a = this.askCount;
  5950. this.toolsCount(a, t);
  5951. }
  5952. this.testJson =
  5953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5954. index
  5955. ].toolChoose[i].testJson;
  5956. for (var k = 0; k < this.testJson.testJson.length; k++) {
  5957. if (this.testJson.testJson[k].type == "2") {
  5958. this.radio.push([]);
  5959. } else {
  5960. this.radio.push("");
  5961. }
  5962. }
  5963. this.dialogVisibleChoice = true;
  5964. // window.parent.postMessage({ tools: "4" }, "*");
  5965. } else if (t == 5) {
  5966. if (this.scoreCount > 0) {
  5967. this.updateCount(this.scoreCount, t);
  5968. } else {
  5969. this.scoreCount++;
  5970. a = this.scoreCount;
  5971. this.toolsCount(a, t);
  5972. }
  5973. this.dialogVisible4 = true;
  5974. // window.parent.postMessage({ tools: "5" }, "*");
  5975. } else if (t == 6) {
  5976. if (this.noteCount > 0) {
  5977. this.updateCount(this.noteCount, t);
  5978. } else {
  5979. this.noteCount++;
  5980. a = this.noteCount;
  5981. this.toolsCount(a, t);
  5982. }
  5983. window.parent.postMessage(
  5984. {
  5985. tools: "6",
  5986. cid: this.id,
  5987. stage: this.courseType,
  5988. task: this.taskCount,
  5989. tool: i,
  5990. },
  5991. "*"
  5992. );
  5993. } else if (t == 7) {
  5994. if (this.mindNetWorkCount > 0) {
  5995. this.updateCount(this.mindNetWorkCount, t);
  5996. } else {
  5997. this.mindNetWorkCount++;
  5998. a = this.mindNetWorkCount;
  5999. this.toolsCount(a, t);
  6000. }
  6001. window.parent.postMessage(
  6002. {
  6003. tools: "7",
  6004. cid: this.id,
  6005. stage: this.courseType,
  6006. task: this.taskCount,
  6007. tool: i,
  6008. },
  6009. "*"
  6010. );
  6011. } else if (t == 16) {
  6012. if (this.workCount > 0) {
  6013. this.updateCount(this.workCount, t);
  6014. } else {
  6015. this.workCount++;
  6016. a = this.workCount;
  6017. this.toolsCount(a, t);
  6018. }
  6019. this.dialogVisible = true;
  6020. } else if (t == 8) {
  6021. if (this.libraryCount > 0) {
  6022. this.updateCount(this.libraryCount, t);
  6023. } else {
  6024. this.libraryCount++;
  6025. a = this.libraryCount;
  6026. this.toolsCount(a, t);
  6027. }
  6028. window.parent.postMessage({ tools: "8" }, "*");
  6029. } else if (t == 17) {
  6030. if (this.libraryCount > 0) {
  6031. this.updateCount(this.libraryCount, t);
  6032. } else {
  6033. this.libraryCount++;
  6034. a = this.libraryCount;
  6035. this.toolsCount(a, t);
  6036. }
  6037. window.parent.postMessage({ tools: "17" }, "*");
  6038. } else if (t == 18) {
  6039. if (this.trainCount > 0) {
  6040. this.updateCount(this.trainCount, t);
  6041. } else {
  6042. this.trainCount++;
  6043. a = this.trainCount;
  6044. this.toolsCount(a, t);
  6045. }
  6046. window.parent.postMessage({ tools: "18" }, "*");
  6047. } else if (t == 10) {
  6048. if (this.timeCount > 0) {
  6049. this.updateCount(this.timeCount, t);
  6050. } else {
  6051. this.timeCount++;
  6052. a = this.timeCount;
  6053. this.toolsCount(a, t);
  6054. }
  6055. this.timeDialogVisible = true;
  6056. } else if (t == 15) {
  6057. this.answerQ = "";
  6058. this.questionAnswer = "";
  6059. if (this.answerCount > 0) {
  6060. this.updateCount(this.answerCount, t);
  6061. } else {
  6062. this.answerCount++;
  6063. a = this.answerCount;
  6064. this.toolsCount(a, t);
  6065. }
  6066. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6067. .taskJson[index].toolChoose[i].answerQ
  6068. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6069. .toolChoose[i].answerQ
  6070. : "";
  6071. this.answerDialogVisible = true;
  6072. } else if (t == 21) {
  6073. window.parent.postMessage({ tools: "21" }, "*");
  6074. } else if (t == 22) {
  6075. window.parent.postMessage({ tools: "22" }, "*");
  6076. } else if (t == 23) {
  6077. window.parent.postMessage({ tools: "23" }, "*");
  6078. } else if (t == 24) {
  6079. window.parent.postMessage({ tools: "24" }, "*");
  6080. } else if (t == 25) {
  6081. window.parent.postMessage({ tools: "25" }, "*");
  6082. } else if (t == 31) {
  6083. window.parent.postMessage({ tools: "31" }, "*");
  6084. } else if (t == 28) {
  6085. window.parent.postMessage({ tools: "28" }, "*");
  6086. } else if (t == 37) {
  6087. window.parent.postMessage({ tools: "37" }, "*");
  6088. } else if (t == 38) {
  6089. window.parent.postMessage({ tools: "38" }, "*");
  6090. } else if (t == 39) {
  6091. window.parent.postMessage({ tools: "39" }, "*");
  6092. } else if (t == 32) {
  6093. window.parent.postMessage({ tools: "32" }, "*");
  6094. } else if (t == 26) {
  6095. window.parent.postMessage(
  6096. {
  6097. tools: "26",
  6098. cid: this.id,
  6099. stage: this.courseType,
  6100. task: this.taskCount,
  6101. tool: i,
  6102. },
  6103. "*"
  6104. );
  6105. } else if (t == 40) {
  6106. if (this.evalCount > 0) {
  6107. this.updateCount(this.evalCount, t);
  6108. } else {
  6109. this.evalCount++;
  6110. a = this.evalCount;
  6111. this.toolsCount(a, t);
  6112. }
  6113. this.eScore = { eBzText: "", eStar: [] };
  6114. if (this.worksStudent[i].length) {
  6115. for (var k = 0; k < this.worksStudent[i].length; k++) {
  6116. if (this.userid == this.worksStudent[i][k].userid) {
  6117. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  6118. this.rateJson =
  6119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6120. index
  6121. ].toolChoose[i].rateJson;
  6122. break;
  6123. } else {
  6124. this.rateJson =
  6125. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6126. index
  6127. ].toolChoose[i].rateJson;
  6128. }
  6129. }
  6130. } else {
  6131. this.rateJson =
  6132. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6133. index
  6134. ].toolChoose[i].rateJson;
  6135. }
  6136. this.isStar = false;
  6137. this.studentEvalDialogVisible = true;
  6138. } else if (t == 41) {
  6139. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6140. .taskJson[index].toolChoose[i].selectJson
  6141. ? JSON.parse(
  6142. JSON.stringify(
  6143. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6144. index
  6145. ].toolChoose[i].selectJson
  6146. )
  6147. )
  6148. : { url: "", select: [], answer: [] };
  6149. if (this.worksStudent[i].length) {
  6150. for (var k = 0; k < this.worksStudent[i].length; k++) {
  6151. if (this.userid == this.worksStudent[i][k].userid) {
  6152. var a = this.worksStudent[i][k].works.split(",");
  6153. for (var ki = 0; ki < a.length; ki++) {
  6154. a[ki] = parseInt(a[ki]);
  6155. }
  6156. this.selectAnswer = {
  6157. answer: a,
  6158. stu: this.worksStudent[i][k].sName,
  6159. };
  6160. break;
  6161. } else {
  6162. this.selectAnswer = { answer: [], stu: "" };
  6163. }
  6164. }
  6165. } else {
  6166. this.selectAnswer = { answer: [], stu: "" };
  6167. }
  6168. this.isSelect = false;
  6169. this.dialogVisibleSelect = true;
  6170. } else if (t == 44) {
  6171. window.parent.postMessage({ tools: "44" }, "*");
  6172. } else if (t == 47) {
  6173. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6174. .taskJson[index].toolChoose[i].sentenceList
  6175. ? JSON.parse(
  6176. JSON.stringify(
  6177. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6178. index
  6179. ].toolChoose[i].sentenceList
  6180. )
  6181. )
  6182. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6183. for (var q = 0; q < this.sentenceList.length; q++) {
  6184. this.sentenceList[q].chooseSenList = [];
  6185. this.sentenceList[q].addChangeSen = [];
  6186. this.sentenceList[q].addChangeSen = JSON.parse(
  6187. JSON.stringify(this.sentenceList[q].addSentence)
  6188. );
  6189. this.sentenceList[q].chooseSenList.length =
  6190. this.sentenceList[q].rightAnswer.length;
  6191. }
  6192. this.dialogVisibleSentence = true;
  6193. }
  6194. },
  6195. setRightAnswer(s, i, j) {
  6196. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  6197. if (
  6198. this.sentenceList[i].chooseSenList[q] == undefined ||
  6199. this.sentenceList[i].chooseSenList[q] == ""
  6200. ) {
  6201. this.sentenceList[i].chooseSenList[q] = s;
  6202. this.sentenceList[i].addChangeSen[j] = "";
  6203. break;
  6204. }
  6205. }
  6206. this.$forceUpdate();
  6207. },
  6208. returnCard(r, i, j) {
  6209. var a = this.sentenceList[i].addSentence.indexOf(r);
  6210. this.sentenceList[i].chooseSenList[j] = "";
  6211. this.sentenceList[i].addChangeSen[a] = r;
  6212. this.$forceUpdate();
  6213. },
  6214. // addSentenceTool() {
  6215. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6216. // this.taskCount
  6217. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  6218. // this.sentenceList = [
  6219. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6220. // ];
  6221. // this.dialogVisibleSentence = false;
  6222. // },
  6223. toolsCount(a, t) {
  6224. let params = {
  6225. cid: this.id,
  6226. chid: this.courseType,
  6227. uid: this.userid,
  6228. tid: t,
  6229. count: a,
  6230. };
  6231. this.ajax
  6232. .get(this.$store.state.api + "insertToolsCount", params)
  6233. .then((res) => {
  6234. this.selectCount();
  6235. })
  6236. .catch((err) => {
  6237. console.error(err);
  6238. });
  6239. },
  6240. updateCount(c, t) {
  6241. c++;
  6242. let params = {
  6243. cid: this.id,
  6244. chid: this.courseType,
  6245. uid: this.userid,
  6246. tid: t,
  6247. count: c,
  6248. };
  6249. this.ajax
  6250. .get(this.$store.state.api + "updateToolsCount", params)
  6251. .then((res) => {
  6252. this.selectCount();
  6253. })
  6254. .catch((err) => {
  6255. console.error(err);
  6256. });
  6257. },
  6258. checkEva() {
  6259. if (this.evalua != "") {
  6260. for (var i = 0; i < this.evaJuri.length; i++) {
  6261. if (this.evalua == this.evaJuri[i].id) {
  6262. this.eTitle = this.evaJuri[i].title;
  6263. this.eJson = JSON.parse(this.evaJuri[i].content);
  6264. }
  6265. }
  6266. this.$forceUpdate();
  6267. setTimeout(() => {
  6268. this.setMindData();
  6269. }, 0);
  6270. }
  6271. },
  6272. selectEva() {
  6273. let params = {
  6274. oid: this.oid,
  6275. };
  6276. this.ajax
  6277. .get(this.$store.state.api + "selectAllEvaluation", params)
  6278. .then((res) => {
  6279. this.evaJuri = res.data[0];
  6280. })
  6281. .catch((err) => {
  6282. console.error(err);
  6283. });
  6284. },
  6285. setMindData() {
  6286. this.data.data = [];
  6287. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6288. let _eJson = Object.keys(this.eJson);
  6289. let _e = this.eJson;
  6290. for (let i = 0; i < _eJson.length; i++) {
  6291. let element = _e[_eJson[i]];
  6292. this.data.data.push({
  6293. id: element.id,
  6294. parentid: "root",
  6295. topic: element.name,
  6296. });
  6297. let _eJsonc = Object.keys(element.child);
  6298. let _e2 = element.child;
  6299. for (let j = 0; j < _eJsonc.length; j++) {
  6300. let _ec = _e2[_eJsonc[j]];
  6301. this.data.data.push({
  6302. id: _ec.id,
  6303. parentid: element.id,
  6304. topic: _ec.name,
  6305. });
  6306. let _eJsonz = Object.keys(_ec.child);
  6307. let _e3 = _ec.child;
  6308. for (let z = 0; z < _eJsonz.length; z++) {
  6309. let _ez = _e3[_eJsonz[z]];
  6310. this.data.data.push({
  6311. id: _ez.id,
  6312. parentid: _ec.id,
  6313. topic: _ez.name,
  6314. });
  6315. }
  6316. }
  6317. }
  6318. this.$forceUpdate();
  6319. },
  6320. checkFileFull(type, url) {
  6321. this.fullDialogVisible = true;
  6322. this.fulltype = type;
  6323. this.fullUrl = url;
  6324. },
  6325. downloadFile(url) {
  6326. let _url = "";
  6327. if (
  6328. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  6329. ) {
  6330. _url = url.split(
  6331. "https://view.officeapps.live.com/op/view.aspx?src="
  6332. )[1];
  6333. } else {
  6334. _url = url;
  6335. }
  6336. const x = new XMLHttpRequest();
  6337. x.open("GET", _url, true);
  6338. x.responseType = "blob";
  6339. x.onload = function (e) {
  6340. // const url = window.URL.createObjectURL(x.response);
  6341. // const a = document.createElement("a");
  6342. // a.href = url;
  6343. // a.target = "_blank";
  6344. // a.download = url;
  6345. // a.click();
  6346. // a.remove();
  6347. let content = x.response;
  6348. let elink = document.createElement("a");
  6349. elink.download = decodeURI(
  6350. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  6351. );
  6352. elink.style.display = "none";
  6353. let blob = new Blob([content]);
  6354. elink.href = URL.createObjectURL(blob);
  6355. document.body.appendChild(elink);
  6356. elink.click();
  6357. document.body.removeChild(elink);
  6358. };
  6359. x.send();
  6360. },
  6361. openLine(url) {
  6362. window.open(url);
  6363. },
  6364. resize() {
  6365. if (document.getElementsByClassName("box_course").length) {
  6366. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  6367. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  6368. document.getElementsByClassName("navBox")[0].style.height =
  6369. a - 40 + "px";
  6370. }
  6371. this.Stbodywidth =
  6372. document.getElementsByClassName("student_body").length &&
  6373. document.getElementsByClassName("student_body")[0].offsetWidth;
  6374. },
  6375. closeDraw() {
  6376. this.bg = null;
  6377. this.drawShow = false;
  6378. },
  6379. showPicturePaint(url) {
  6380. let params = {
  6381. img: url,
  6382. };
  6383. this.ajax
  6384. .get(this.$store.state.api + "imgToBase64", params)
  6385. .then((res) => {
  6386. console.log(res);
  6387. this.drawShow = true;
  6388. this.bg = res.data[0].img;
  6389. })
  6390. .catch((err) => {
  6391. console.error(err);
  6392. });
  6393. },
  6394. addImgDraw(base64) {
  6395. let file = { name: "批注图.png" };
  6396. let img = this.dataUrlToFile(base64, file);
  6397. this.beforeUpload1(img, 5);
  6398. },
  6399. addImgDrawImG(url) {
  6400. // console.log(url);
  6401. let params = [
  6402. {
  6403. wid: this.commentDetail.wid,
  6404. img: url,
  6405. },
  6406. ];
  6407. this.ajax
  6408. .post(this.$store.state.api + "updateCourseWorks", params)
  6409. .then((res) => {
  6410. this.$message({
  6411. message: "提交成功",
  6412. type: "success",
  6413. });
  6414. this.drawShow = false;
  6415. this.bg = "";
  6416. this.selectSWorks();
  6417. this.selectStudent();
  6418. })
  6419. .catch((err) => {
  6420. this.$message.error("提交失败");
  6421. console.error(err);
  6422. });
  6423. },
  6424. },
  6425. directives: {
  6426. // 使用局部注册指令的方式
  6427. resize: {
  6428. // 指令的名称
  6429. bind(el, binding) {
  6430. // el为绑定的元素,binding为绑定给指令的对象
  6431. let width = "",
  6432. height = "";
  6433. function isReize() {
  6434. const style = document.defaultView.getComputedStyle(el);
  6435. if (width !== style.width || height !== style.height) {
  6436. binding.value(); // 关键
  6437. }
  6438. width = style.width;
  6439. height = style.height;
  6440. }
  6441. el.__vueSetInterval__ = setInterval(isReize, 300);
  6442. },
  6443. unbind(el) {
  6444. clearInterval(el.__vueSetInterval__);
  6445. },
  6446. },
  6447. },
  6448. beforeDestroy() {
  6449. window.onresize = null;
  6450. clearInterval(this.timer);
  6451. this.timer = null;
  6452. },
  6453. computed: {
  6454. contentConvent() {
  6455. return function (c) {
  6456. return c
  6457. ? c
  6458. .replaceAll(/\r\n/g, "<br/>")
  6459. .replaceAll(/\n/g, "<br/>")
  6460. .replaceAll(/\s/g, " &nbsp")
  6461. : "";
  6462. };
  6463. },
  6464. },
  6465. created() {
  6466. if (this.screenType == 2) {
  6467. window.parent.postMessage({ allScreen: 4 }, "*");
  6468. } else if (this.screenType == 3) {
  6469. window.parent.postMessage({ allScreen: 5 }, "*");
  6470. } else if (this.screenType == 1) {
  6471. window.parent.postMessage({ allScreen: 6 }, "*");
  6472. }
  6473. this.selectEva();
  6474. this.getCourseDetail();
  6475. this.selectCount();
  6476. this.getHomeWork();
  6477. if (this.tType == 4) {
  6478. this.pzDialog = true;
  6479. this.selectPz();
  6480. }
  6481. document.scrollingElement.scrollTop = 0;
  6482. window.addEventListener("resize", () => {
  6483. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  6484. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  6485. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  6486. });
  6487. let _this = this;
  6488. setTimeout(() => {
  6489. _this.vedioTime = [];
  6490. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  6491. _this.vedioTime[i] = document.getElementsByClassName(
  6492. "vjs-duration-display"
  6493. )[i].textContent;
  6494. }
  6495. }, 1000);
  6496. },
  6497. };
  6498. </script>
  6499. <style scoped>
  6500. @media screen and (max-width: 1280px) {
  6501. /* .courseIndex > div:first-child(2) {
  6502. width: 15% !important;
  6503. } */
  6504. /* .navText {
  6505. width: 120px !important;
  6506. } */
  6507. .evaCss {
  6508. flex-direction: column !important;
  6509. align-items: center !important;
  6510. }
  6511. .dialog_diy1>>>.el-dialog {
  6512. width: 100% !important;
  6513. }
  6514. .rightWidthCss {
  6515. width: 100% !important;
  6516. }
  6517. .dialog_diy3>>>.el-dialog {
  6518. width: 100% !important;
  6519. }
  6520. /* .textTitle >>> .el-form-item__label {
  6521. width: 150px !important;
  6522. } */
  6523. }
  6524. .evaCssMax {
  6525. flex-direction: column !important;
  6526. align-items: center !important;
  6527. }
  6528. .dialog_diy>>>.el-dialog {
  6529. margin-top: 10vh !important;
  6530. }
  6531. .body_student {
  6532. width: 77%;
  6533. height: 100%;
  6534. position: absolute;
  6535. left: 22%;
  6536. top: 0;
  6537. }
  6538. .student_head {
  6539. width: 100%;
  6540. margin: 0 auto;
  6541. padding-bottom: 50px;
  6542. display: flex;
  6543. flex-direction: column;
  6544. flex-wrap: nowrap;
  6545. align-items: flex-start;
  6546. justify-content: flex-start;
  6547. }
  6548. .pb_left {
  6549. width: 20%;
  6550. margin-right: 10px;
  6551. background: rgb(255, 255, 255);
  6552. padding-right: 10px;
  6553. position: fixed;
  6554. height: 100%;
  6555. }
  6556. .wheel>img,
  6557. .project>img,
  6558. .star>img,
  6559. .evaluate>img,
  6560. .up_photo>img,
  6561. .chapter_add>img,
  6562. .upCover>img,
  6563. .deleteWord>img,
  6564. .question>img,
  6565. .homework>img {
  6566. width: 100%;
  6567. height: 100%;
  6568. }
  6569. .upCover {
  6570. width: calc(100% / 3.5);
  6571. position: relative;
  6572. margin: 0 15px 10px 0;
  6573. display: flex;
  6574. flex-direction: column;
  6575. flex-wrap: nowrap;
  6576. justify-content: center;
  6577. align-content: center;
  6578. align-items: center;
  6579. }
  6580. .chapter_add {
  6581. width: 120px;
  6582. position: relative;
  6583. text-align: center;
  6584. }
  6585. .isAddThings {
  6586. margin-top: 20px;
  6587. position: relative;
  6588. text-align: center;
  6589. background: #f7f8fa;
  6590. height: 90px;
  6591. width: 90px;
  6592. display: flex;
  6593. flex-direction: column;
  6594. justify-content: center;
  6595. }
  6596. .deleteWord {
  6597. width: 22px;
  6598. height: 22px;
  6599. position: absolute;
  6600. right: -5px;
  6601. top: -5px;
  6602. cursor: pointer;
  6603. }
  6604. .box_course {
  6605. /* width: 60%; */
  6606. width: 81%;
  6607. }
  6608. .wheel {
  6609. width: 100%;
  6610. height: 100%;
  6611. }
  6612. .right_box {
  6613. display: flex;
  6614. flex-direction: column;
  6615. margin-left: 30px;
  6616. justify-content: space-around;
  6617. }
  6618. .right_box_title {
  6619. font-size: 23px;
  6620. }
  6621. .people {
  6622. display: flex;
  6623. }
  6624. .student_body {
  6625. width: 100%;
  6626. margin: 0 auto;
  6627. margin-top: 10px;
  6628. padding: 0 0 20px;
  6629. }
  6630. .study_top {
  6631. margin-top: 70px;
  6632. width: 100%;
  6633. /* overflow: auto; */
  6634. height: auto;
  6635. }
  6636. .study_top .checkbox {
  6637. display: flex;
  6638. align-items: center;
  6639. padding: 15px 0 15px 30px;
  6640. flex: 0 0 auto;
  6641. font-weight: bold;
  6642. border-bottom: 1px solid #eee;
  6643. }
  6644. .study_top .check {
  6645. padding-bottom: 5px;
  6646. text-align: center;
  6647. cursor: pointer;
  6648. height: 30px;
  6649. box-sizing: border-box;
  6650. display: flex;
  6651. }
  6652. .study_top .checked {
  6653. border-bottom: 4px solid #3fc6a0;
  6654. padding-bottom: 5px;
  6655. color: #3fc6a0;
  6656. display: flex;
  6657. height: 35px;
  6658. }
  6659. .study_top .checked>div,
  6660. .study_top .check>div {
  6661. margin-right: 5px;
  6662. }
  6663. .videoTop {
  6664. display: flex;
  6665. flex-direction: row;
  6666. justify-content: space-between;
  6667. background: #fff;
  6668. align-items: center;
  6669. width: 95%;
  6670. padding: 20px;
  6671. }
  6672. .upbtn {
  6673. margin: 25px;
  6674. background: #70afdb;
  6675. color: #fff;
  6676. width: 120px;
  6677. text-align: center;
  6678. height: 30px;
  6679. line-height: 30px;
  6680. font-size: 13px;
  6681. border-radius: 5px;
  6682. cursor: pointer;
  6683. }
  6684. .filebox {
  6685. display: flex;
  6686. flex-wrap: wrap;
  6687. flex-direction: column;
  6688. padding: 15px 0 5px;
  6689. }
  6690. .filebox .tooldetail {
  6691. width: 100%;
  6692. margin: 0px 12px;
  6693. background: rgb(247, 247, 247);
  6694. padding: 20px;
  6695. line-height: 30px;
  6696. word-break: break-word;
  6697. }
  6698. .file {
  6699. display: flex;
  6700. flex-direction: column;
  6701. align-items: center;
  6702. justify-content: center;
  6703. cursor: pointer;
  6704. width: 200px;
  6705. }
  6706. .file div {
  6707. margin-top: 10px;
  6708. width: 150px;
  6709. text-align: center;
  6710. overflow: hidden;
  6711. white-space: nowrap;
  6712. text-overflow: ellipsis;
  6713. }
  6714. .media {
  6715. display: flex;
  6716. flex-direction: column;
  6717. align-items: center;
  6718. justify-content: center;
  6719. margin: 0 20px 20px 0;
  6720. cursor: pointer;
  6721. margin: 12px 0 5px 15px;
  6722. overflow: hidden;
  6723. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  6724. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  6725. box-sizing: border-box;
  6726. }
  6727. .media img {
  6728. height: 90px;
  6729. width: 160px;
  6730. object-fit: cover;
  6731. }
  6732. .media .title {
  6733. padding: 5px;
  6734. text-align: left;
  6735. width: 100%;
  6736. box-sizing: border-box;
  6737. }
  6738. .media .btn {
  6739. width: 100%;
  6740. height: 35px;
  6741. line-height: 35px;
  6742. color: #fff;
  6743. background: #606060;
  6744. text-align: center;
  6745. overflow: hidden;
  6746. white-space: nowrap;
  6747. text-overflow: ellipsis;
  6748. }
  6749. .detail_content_top {
  6750. width: 100%;
  6751. padding: 25px 0 25px 0;
  6752. }
  6753. .detail_title {
  6754. text-align: center;
  6755. font-size: 24px;
  6756. }
  6757. .detail_time {
  6758. font-size: 13px;
  6759. padding: 15px 0 0 40px;
  6760. }
  6761. .detail_content {
  6762. line-height: 2pc;
  6763. width: 90%;
  6764. margin: 0 auto;
  6765. padding-top: 30px;
  6766. text-indent: 30px;
  6767. overflow: auto;
  6768. height: 200px;
  6769. }
  6770. .score_box>>>.el-rate {
  6771. margin-left: 10px;
  6772. }
  6773. .dialog_change>>>.el-dialog {
  6774. border-radius: 5px;
  6775. }
  6776. .dialog_change>>>.el-dialog__header {
  6777. background: #f2f2f2;
  6778. text-align: center;
  6779. }
  6780. .dialog_change>>>.el-dialog__title {
  6781. line-height: 5px;
  6782. }
  6783. .dialog_change>>>.el-dialog__body {
  6784. background: #fff;
  6785. padding: 10px 20px;
  6786. }
  6787. .score_box {
  6788. display: flex;
  6789. align-items: center;
  6790. margin-bottom: 18px;
  6791. margin-top: 20px;
  6792. }
  6793. .up_photo {
  6794. width: 120px;
  6795. cursor: pointer;
  6796. margin-top: 10px;
  6797. }
  6798. .upload_send {
  6799. margin: 30px auto 30px;
  6800. width: 60%;
  6801. background: #169bd6;
  6802. text-align: center;
  6803. height: 35px;
  6804. line-height: 35px;
  6805. color: #fff;
  6806. border-radius: 5px;
  6807. cursor: pointer;
  6808. }
  6809. .marginT {
  6810. margin-top: 20px;
  6811. }
  6812. .cd_content_steps {
  6813. display: flex;
  6814. width: 90%;
  6815. justify-content: space-around;
  6816. border-top: 1px solid #eeeeee;
  6817. }
  6818. .cd_steps_box {
  6819. display: flex;
  6820. justify-content: center;
  6821. align-items: center;
  6822. flex-direction: column;
  6823. cursor: pointer;
  6824. }
  6825. .first {
  6826. display: flex;
  6827. align-items: center;
  6828. margin: 15px 0 20px 0;
  6829. font-size: 20px;
  6830. }
  6831. .first>div:nth-child(2) {
  6832. font-size: 16px !important;
  6833. padding-left: 10px;
  6834. line-height: 26px;
  6835. box-sizing: border-box;
  6836. }
  6837. .blue_box_one {
  6838. text-align: center;
  6839. color: #fff;
  6840. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  6841. border-radius: 7px;
  6842. margin: 10px;
  6843. cursor: pointer;
  6844. width: 95%;
  6845. height: 45px;
  6846. display: flex;
  6847. flex-direction: row;
  6848. justify-content: flex-start;
  6849. align-items: center;
  6850. }
  6851. .blue_box_one>div:nth-child(1) {
  6852. line-height: 30px;
  6853. margin: 0 5px 0 10px;
  6854. width: 30%;
  6855. min-width: 70px;
  6856. border-radius: 4px;
  6857. }
  6858. .blue_box_one>div:nth-child(2) {
  6859. white-space: nowrap;
  6860. text-overflow: ellipsis;
  6861. overflow: hidden;
  6862. word-break: break-all;
  6863. width: 70%;
  6864. text-align: left;
  6865. margin-right: 10px;
  6866. max-width: calc(100% - 85px);
  6867. }
  6868. .blue_box_one>div:nth-child(2):hover {
  6869. overflow: hidden;
  6870. text-overflow: ellipsis;
  6871. white-space: nowrap;
  6872. cursor: pointer;
  6873. }
  6874. .upFile {
  6875. margin: 0 auto;
  6876. width: 120px;
  6877. background: #70afdb;
  6878. color: #fff;
  6879. height: 30px;
  6880. text-align: center;
  6881. line-height: 30px;
  6882. border-radius: 5px;
  6883. font-size: 14px;
  6884. cursor: pointer;
  6885. }
  6886. .courseTitle {
  6887. background: #205cc6;
  6888. width: 85%;
  6889. margin: 10px auto;
  6890. height: 50px;
  6891. color: #fff;
  6892. line-height: 50px;
  6893. text-align: center;
  6894. font-size: 20px;
  6895. font-weight: bold;
  6896. border-radius: 5px;
  6897. cursor: pointer;
  6898. white-space: nowrap;
  6899. overflow: hidden;
  6900. text-overflow: ellipsis;
  6901. padding: 0 10px;
  6902. }
  6903. .ml {
  6904. margin-left: 20px;
  6905. color: #5b7dba;
  6906. border-left: 3px solid #5b7dba;
  6907. padding-left: 5px;
  6908. font-weight: bold;
  6909. }
  6910. .return {
  6911. width: 2rem;
  6912. height: 2rem;
  6913. cursor: pointer;
  6914. }
  6915. .return>img {
  6916. width: 100%;
  6917. height: 100%;
  6918. }
  6919. .returnBtn {
  6920. background: #499eef;
  6921. width: 65px;
  6922. height: 30px;
  6923. color: #fff;
  6924. text-align: center;
  6925. line-height: 32px;
  6926. margin-right: 20px;
  6927. cursor: pointer;
  6928. border-radius: 5px;
  6929. font-size: 14px;
  6930. }
  6931. .tool {
  6932. display: flex;
  6933. flex-direction: column;
  6934. flex-wrap: nowrap;
  6935. width: 13%;
  6936. margin: 0 30px;
  6937. align-items: center;
  6938. }
  6939. .whiteBIcon {
  6940. width: 150px;
  6941. cursor: pointer;
  6942. }
  6943. .whiteBIcon>img {
  6944. width: 100%;
  6945. height: 100%;
  6946. }
  6947. .mask {
  6948. background-color: rgba(0, 0, 0, 0);
  6949. position: fixed;
  6950. top: 0;
  6951. left: 0;
  6952. width: 100%;
  6953. height: 100%;
  6954. z-index: 20000;
  6955. display: flex;
  6956. align-items: center;
  6957. justify-content: center;
  6958. }
  6959. .progressBox {
  6960. width: 500px;
  6961. height: 180px;
  6962. background: #fff;
  6963. border-radius: 10px;
  6964. box-shadow: 0 0 6px 1px #bfbfbf;
  6965. display: flex;
  6966. align-items: center;
  6967. justify-content: center;
  6968. flex-direction: column;
  6969. }
  6970. .progressBox .lbox {
  6971. height: 100px;
  6972. font-size: 19px;
  6973. display: flex;
  6974. align-items: center;
  6975. }
  6976. .progressBox .lbox img {
  6977. width: 40px;
  6978. margin-right: 20px;
  6979. }
  6980. .progressBox>>>.el-progress-bar__outer {
  6981. background-color: #d1dfff !important;
  6982. }
  6983. .progressBox .lbox {
  6984. height: 100px;
  6985. font-size: 19px;
  6986. display: flex;
  6987. align-items: center;
  6988. }
  6989. .progressBox .lbox img {
  6990. width: 40px;
  6991. margin-right: 20px;
  6992. }
  6993. .uploadVedio {
  6994. display: flex;
  6995. flex-direction: column;
  6996. flex-wrap: nowrap;
  6997. justify-content: center;
  6998. align-items: center;
  6999. margin: 0 15px 10px 0;
  7000. }
  7001. .uploadVedio>img {
  7002. width: 30px;
  7003. height: 30px;
  7004. }
  7005. .uploadVedio>span {
  7006. white-space: nowrap;
  7007. overflow: hidden;
  7008. text-overflow: ellipsis;
  7009. width: 75px;
  7010. margin-top: 7px;
  7011. }
  7012. .picName {
  7013. white-space: nowrap;
  7014. overflow: hidden;
  7015. text-overflow: ellipsis;
  7016. width: 75px;
  7017. margin-top: 7px;
  7018. }
  7019. .new_top {
  7020. display: flex;
  7021. background: #fff;
  7022. flex-direction: row;
  7023. justify-content: flex-start;
  7024. align-items: center;
  7025. height: 60px;
  7026. position: relative;
  7027. }
  7028. .before {
  7029. position: absolute;
  7030. background: #c3dad4;
  7031. width: 6px;
  7032. height: 100%;
  7033. }
  7034. .courseIndex {
  7035. display: flex;
  7036. flex-direction: row;
  7037. align-items: center;
  7038. width: calc(100% - 420px);
  7039. }
  7040. .courseIndex>div:nth-child(1) {
  7041. margin: 0 20px;
  7042. padding-left: 5px;
  7043. font-size: 24px;
  7044. min-width: 100px;
  7045. font-weight: bold;
  7046. border-left: 4px solid #3363b9;
  7047. height: 35px;
  7048. text-align: center;
  7049. line-height: 35px;
  7050. }
  7051. .courseIndex>div:nth-child(2) {
  7052. font-size: 23px;
  7053. width: 300px;
  7054. white-space: nowrap;
  7055. overflow: hidden;
  7056. text-overflow: ellipsis;
  7057. }
  7058. .courseIndex>div:nth-child(3) {
  7059. border-bottom: 1px solid #d7d7d7;
  7060. padding-bottom: 5px;
  7061. background: #49a0f0;
  7062. width: 55px;
  7063. min-width: 55px;
  7064. border-radius: 5px;
  7065. color: #fff;
  7066. text-align: center;
  7067. height: 20px;
  7068. line-height: 26px;
  7069. font-size: 14px;
  7070. margin: 0 0 0 10px;
  7071. }
  7072. .course_text {
  7073. padding: 20px 0 0 15px;
  7074. text-indent: 30px;
  7075. width: 80%;
  7076. min-height: 20px;
  7077. }
  7078. .vedioList {
  7079. background: #f2f2f2;
  7080. border: 1px solid #ececec;
  7081. /* width: 38.8%; */
  7082. width: calc(100% - 83%);
  7083. height: 445px;
  7084. border-radius: 10px;
  7085. overflow: hidden;
  7086. }
  7087. .vedioNav {
  7088. margin: 10px 0 0 15px;
  7089. border-bottom: 1px solid #d7d7d7;
  7090. padding-bottom: 5px;
  7091. background: #96d1ff;
  7092. width: 55px;
  7093. min-width: 55px;
  7094. border-radius: 5px;
  7095. color: #fff;
  7096. text-align: center;
  7097. height: 20px;
  7098. line-height: 26px;
  7099. font-size: 14px;
  7100. }
  7101. .queTop {
  7102. display: flex;
  7103. padding: 20px 0 20px 30px;
  7104. width: 100%;
  7105. flex-direction: row;
  7106. justify-content: flex-start;
  7107. align-items: center;
  7108. border-bottom: 1px solid #eeeeee;
  7109. box-sizing: border-box;
  7110. }
  7111. .question {
  7112. width: 40px;
  7113. margin-right: 10px;
  7114. margin-top: 7px;
  7115. }
  7116. .queTitle {
  7117. margin-left: 5px;
  7118. font-size: 25px;
  7119. display: flex;
  7120. align-items: center;
  7121. }
  7122. .addEditor {
  7123. width: 100px;
  7124. height: 30px;
  7125. background: #42cda6;
  7126. color: #fff;
  7127. border-radius: 5px;
  7128. text-align: center;
  7129. line-height: 30px;
  7130. box-shadow: 1px 3px 6px 1px #bfbfbf;
  7131. cursor: pointer;
  7132. }
  7133. .vedioName {
  7134. /* text-overflow: ellipsis;
  7135. top: 8px;
  7136. font-size: 14px;
  7137. overflow: hidden;
  7138. width: 100%;
  7139. word-break: break-all;
  7140. white-space: nowrap; */
  7141. cursor: pointer;
  7142. margin: 0px 0px 10px 5px;
  7143. white-space: nowrap;
  7144. overflow: hidden;
  7145. text-overflow: ellipsis;
  7146. width: 100%;
  7147. }
  7148. .vedioTime {
  7149. width: 35px;
  7150. position: absolute;
  7151. color: #fff;
  7152. bottom: 0px;
  7153. right: 0px;
  7154. text-align: center;
  7155. background: #46411f;
  7156. height: 20px;
  7157. font-size: 14px;
  7158. line-height: 20px;
  7159. }
  7160. .homework {
  7161. width: 200px;
  7162. display: flex;
  7163. flex-direction: column;
  7164. flex-wrap: nowrap;
  7165. align-items: center;
  7166. cursor: pointer;
  7167. }
  7168. .homebox {
  7169. display: flex;
  7170. flex-wrap: wrap;
  7171. flex-direction: row;
  7172. justify-content: flex-start;
  7173. align-items: center;
  7174. padding: 15px 0;
  7175. }
  7176. .isChooseActive {
  7177. color: #3e88f4;
  7178. border-bottom: 2px solid #2f80f3;
  7179. }
  7180. .chooseWho {
  7181. display: flex;
  7182. width: 100%;
  7183. flex-direction: row;
  7184. flex-wrap: nowrap;
  7185. justify-content: flex-start;
  7186. padding-bottom: 10px;
  7187. }
  7188. .chooseWho>div {
  7189. cursor: pointer;
  7190. padding-bottom: 10px;
  7191. margin: 0 30px;
  7192. }
  7193. .addPoint>div>img {
  7194. cursor: pointer;
  7195. margin: 0 10px;
  7196. width: 85px;
  7197. border-radius: 15px;
  7198. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  7199. }
  7200. .addPoint>div {
  7201. display: flex;
  7202. flex-direction: column;
  7203. flex-wrap: nowrap;
  7204. align-items: center;
  7205. }
  7206. .isBorder>div {
  7207. margin: 0 0 10px 0;
  7208. align-items: flex-start !important;
  7209. }
  7210. .noiframeBox {
  7211. display: flex;
  7212. flex-wrap: wrap;
  7213. }
  7214. .iframeBox iframe {
  7215. width: 100%;
  7216. height: 800px;
  7217. border: none;
  7218. margin-bottom: 20px;
  7219. border: 1px solid #ccc;
  7220. }
  7221. .upload_toolBtn {
  7222. background: #6b92c9;
  7223. color: #fff;
  7224. width: 110px;
  7225. text-align: center;
  7226. height: 35px;
  7227. line-height: 35px;
  7228. font-size: 14px;
  7229. border-radius: 5px;
  7230. cursor: pointer;
  7231. position: absolute;
  7232. right: 10px;
  7233. bottom: 0;
  7234. }
  7235. .binfo_input,
  7236. .pj {
  7237. font: inherit;
  7238. color: currentColor;
  7239. width: 100%;
  7240. margin: 0;
  7241. padding: 15px 14px;
  7242. display: block;
  7243. min-width: 0;
  7244. outline: none;
  7245. box-sizing: content-box;
  7246. background: none;
  7247. -webkit-tap-highlight-color: transparent;
  7248. border: 1px solid rgba(0, 0, 0, 0.23);
  7249. border-radius: 4px;
  7250. box-sizing: border-box;
  7251. resize: none;
  7252. }
  7253. .binfo_input:focus-visible {
  7254. border: 1px solid rgba(61, 103, 188);
  7255. }
  7256. .dialog_diy>>>.el-dialog__header,
  7257. .dialog_diy1>>>.el-dialog__header {
  7258. background: #454545 !important;
  7259. padding: 15px 20px;
  7260. }
  7261. .dialog_diy>>>.el-dialog__title,
  7262. .dialog_diy1>>>.el-dialog__title {
  7263. color: #fff;
  7264. }
  7265. .dialog_diy>>>.el-dialog__headerbtn,
  7266. .dialog_diy1>>>.el-dialog__headerbtn {
  7267. top: 19px;
  7268. }
  7269. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  7270. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  7271. color: #fff;
  7272. }
  7273. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  7274. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7275. color: #fff;
  7276. }
  7277. .dialog_diy1>>>.el-dialog__body {
  7278. padding: 0;
  7279. }
  7280. .dialog_diy>>>.el-dialog__body,
  7281. .dialog_diy>>>.el-dialog__footer,
  7282. .dialog_diy1>>>.el-dialog__footer {
  7283. background: #fafafa;
  7284. }
  7285. .a_addBox {
  7286. margin: 10px 0;
  7287. background: #fff;
  7288. padding: 15px;
  7289. max-height: 400px;
  7290. overflow: auto;
  7291. }
  7292. .a_add_box {
  7293. border-bottom: 2px solid #eee;
  7294. padding-bottom: 10px;
  7295. }
  7296. .a_add_head {
  7297. display: flex;
  7298. align-items: flex-start;
  7299. /* justify-content: space-between; */
  7300. flex-direction: column;
  7301. margin: 10px 0;
  7302. font-size: 18px;
  7303. width: 100%;
  7304. }
  7305. .a_add_head .a_add_head_input {
  7306. width: 300px;
  7307. }
  7308. .a_add_head .a_add_head_div {
  7309. display: flex;
  7310. align-items: center;
  7311. justify-content: space-between;
  7312. }
  7313. .a_add_body {
  7314. display: flex;
  7315. align-items: center;
  7316. }
  7317. .a_add_input {
  7318. display: flex;
  7319. align-items: center;
  7320. flex-wrap: wrap;
  7321. }
  7322. .a_add_input>>>el-radio-group {
  7323. margin: 10px 0;
  7324. }
  7325. .a_add_input>>>.el-radio {
  7326. margin-bottom: 10px;
  7327. }
  7328. .redioStyle>>>.el-radio__label {
  7329. font-size: 18px;
  7330. }
  7331. .redioStyle>>>.el-checkbox__label {
  7332. font-size: 18px;
  7333. }
  7334. .toolHeng2 {
  7335. width: 100%;
  7336. }
  7337. .toolHeng {
  7338. display: flex;
  7339. flex-direction: row;
  7340. flex-wrap: wrap;
  7341. justify-content: flex-start;
  7342. align-items: center;
  7343. width: 100%;
  7344. }
  7345. .toolHeng>div {
  7346. padding-left: 20px;
  7347. }
  7348. .isWidth {
  7349. width: 20%;
  7350. }
  7351. .textTitle {
  7352. display: flex;
  7353. flex-direction: row;
  7354. flex-wrap: nowrap;
  7355. align-items: center;
  7356. width: 95%;
  7357. }
  7358. .textTitle>>>.el-form-item__label {
  7359. font-size: 22px;
  7360. color: #918f8f;
  7361. width: 100px;
  7362. }
  7363. .textTitle>>>.el-form-item__content {
  7364. width: calc(100% - 100px);
  7365. }
  7366. .textCss>>>.el-dialog {
  7367. width: 800px !important;
  7368. height: 400px;
  7369. background: #fafafa;
  7370. }
  7371. .textCss>>>.el-dialog__body {
  7372. margin: 55px 8% 0 8%;
  7373. padding: 0 !important;
  7374. }
  7375. .textCss>>>.el-dialog__footer {
  7376. padding-top: 38px;
  7377. }
  7378. .toolsCss>>>.el-dialog__body {
  7379. padding: 20px;
  7380. }
  7381. .lineCss>>>.el-dialog__body {
  7382. display: flex;
  7383. flex-direction: row;
  7384. align-items: center;
  7385. justify-content: center;
  7386. }
  7387. .newNav {
  7388. display: flex;
  7389. flex-direction: row;
  7390. align-items: baseline;
  7391. justify-content: flex-start;
  7392. }
  7393. .navText {
  7394. cursor: pointer;
  7395. margin: 0px 0px 10px 5px;
  7396. white-space: nowrap;
  7397. overflow: hidden;
  7398. text-overflow: ellipsis;
  7399. /* width: 300px; */
  7400. width: 100%;
  7401. }
  7402. .noVedio {
  7403. display: flex;
  7404. flex-direction: row;
  7405. justify-content: center;
  7406. align-content: center;
  7407. }
  7408. .noNavText {
  7409. cursor: pointer;
  7410. margin: 0px 0px 10px 5px;
  7411. width: 112px;
  7412. }
  7413. .listNoVedio {
  7414. margin: 0 0 0 30px;
  7415. width: 97%;
  7416. }
  7417. .video-player>>>.video-js {
  7418. height: 100%;
  7419. }
  7420. .hangVedioList {
  7421. width: 90% !important;
  7422. height: 150px !important;
  7423. margin: 20px 0 0 30px;
  7424. }
  7425. .hangVedio {
  7426. width: 100%;
  7427. height: 170px !important;
  7428. align-items: flex-start !important;
  7429. }
  7430. .hangHand {
  7431. height: 150px !important;
  7432. }
  7433. .twoChild {
  7434. width: 95%;
  7435. margin: 10px;
  7436. border-radius: 5px;
  7437. background: #f2f2f2;
  7438. display: flex;
  7439. flex-direction: column;
  7440. flex-wrap: nowrap;
  7441. justify-content: flex-start;
  7442. align-items: flex-start;
  7443. transition: all 0.5s;
  7444. overflow: hidden;
  7445. height: 0;
  7446. background: #e7f3ff;
  7447. }
  7448. .twoChild>div:nth-child(1) {
  7449. margin-top: 5px;
  7450. }
  7451. .navChild {
  7452. width: 100%;
  7453. cursor: pointer;
  7454. margin-bottom: 10px;
  7455. position: relative;
  7456. }
  7457. .navChild img {
  7458. position: absolute;
  7459. right: 11px;
  7460. width: 15px;
  7461. top: 50%;
  7462. transform: translateY(-50%);
  7463. }
  7464. .navActive {
  7465. height: auto;
  7466. }
  7467. .navTask {
  7468. display: flex;
  7469. flex-direction: row;
  7470. flex-wrap: nowrap;
  7471. align-items: center;
  7472. align-content: flex-start;
  7473. height: 40px;
  7474. justify-content: flex-start;
  7475. padding: 0 10px;
  7476. width: 100%;
  7477. box-sizing: border-box;
  7478. }
  7479. .navTaskname {
  7480. white-space: nowrap;
  7481. text-overflow: ellipsis;
  7482. overflow: hidden;
  7483. word-break: break-all;
  7484. padding-left: 5px;
  7485. }
  7486. .openTaskActive {
  7487. color: #4386e6;
  7488. }
  7489. .iframeName {
  7490. margin: 5px 0;
  7491. border-left: 4px solid #41c4a4;
  7492. padding-left: 4px;
  7493. }
  7494. .toolTitle {
  7495. margin: 0px 0px 20px;
  7496. font-size: 20px;
  7497. font-weight: 500;
  7498. border-left: 4px solid #41c4a4;
  7499. padding-left: 4px;
  7500. }
  7501. .cru_selectBox {
  7502. overflow: auto;
  7503. width: 96%;
  7504. margin: 0 auto;
  7505. height: calc(100% - 40px - 21px - 20px);
  7506. }
  7507. .cru_selectBox::-webkit-scrollbar,
  7508. .study_top::-webkit-scrollbar,
  7509. .textContent::-webkit-scrollbar {
  7510. /*滚动条整体样式*/
  7511. width: 6px;
  7512. /*高宽分别对应横竖滚动条的尺寸*/
  7513. height: 6px;
  7514. }
  7515. /*定义滚动条轨道 内阴影+圆角*/
  7516. .cru_selectBox::-webkit-scrollbar-track,
  7517. .study_top::-webkit-scrollbar-track,
  7518. .textContent::-webkit-scrollbar {
  7519. border-radius: 10px;
  7520. background-color: #b8bdc9;
  7521. }
  7522. /*定义滑块 内阴影+圆角*/
  7523. .cru_selectBox::-webkit-scrollbar-thumb,
  7524. .study_top::-webkit-scrollbar-thumb,
  7525. .textContent::-webkit-scrollbar-thumb {
  7526. border-radius: 10px;
  7527. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  7528. background-color: #2c5ab3;
  7529. }
  7530. .vedioBox {
  7531. border-radius: 20px;
  7532. background: #fff;
  7533. margin-bottom: 10px;
  7534. }
  7535. .taskBox {
  7536. margin: 15px auto 20px;
  7537. background: #f7f7f7;
  7538. width: 97%;
  7539. border-radius: 10px;
  7540. }
  7541. .vedioTaskBox {
  7542. width: 100%;
  7543. display: flex;
  7544. flex-direction: row;
  7545. flex-wrap: nowrap;
  7546. align-items: center;
  7547. }
  7548. .toolBox {
  7549. padding: 20px 0 0 0;
  7550. display: flex;
  7551. }
  7552. .btnAll {
  7553. position: absolute;
  7554. right: 0;
  7555. display: flex;
  7556. flex-direction: row;
  7557. flex-wrap: nowrap;
  7558. align-items: center;
  7559. }
  7560. .vedioTimeBox {
  7561. display: flex;
  7562. flex-direction: row;
  7563. align-items: center;
  7564. flex-wrap: nowrap;
  7565. position: relative;
  7566. }
  7567. .navBox {
  7568. background: rgb(255, 255, 255);
  7569. height: 400px;
  7570. padding: 5px 1px 0 1px;
  7571. overflow: auto;
  7572. }
  7573. .worksBox {
  7574. padding: 5px 0 0 10px;
  7575. border-bottom: 1px solid #eeeeee;
  7576. }
  7577. .worksBTitle {
  7578. font-size: 20px;
  7579. padding-bottom: 15px;
  7580. border-bottom: 1px solid #eeeeee;
  7581. display: flex;
  7582. align-items: center;
  7583. }
  7584. .greenBox {
  7585. width: 5px;
  7586. height: 30px;
  7587. background: #63b6fa;
  7588. margin-right: 5px;
  7589. }
  7590. .worksDetailBox {
  7591. display: flex;
  7592. width: 100%;
  7593. flex-direction: row;
  7594. flex-wrap: wrap;
  7595. align-items: center;
  7596. justify-content: flex-start;
  7597. padding: 15px 0;
  7598. }
  7599. .works {
  7600. display: flex;
  7601. flex-direction: column;
  7602. flex-wrap: nowrap;
  7603. align-items: flex-start;
  7604. justify-content: flex-start;
  7605. align-content: center;
  7606. max-width: 240px;
  7607. width: calc(100% / 3 - 10px);
  7608. height: auto;
  7609. margin-right: 10px;
  7610. margin-bottom: 10px;
  7611. overflow: hidden;
  7612. height: 140px;
  7613. box-shadow: 0 0 6px 1px #dfdada;
  7614. border-radius: 15px;
  7615. }
  7616. .workImg {
  7617. width: 100%;
  7618. /* height: calc(100% - 40px); */
  7619. height: 105px;
  7620. position: relative;
  7621. }
  7622. .workImg>img {
  7623. width: 100%;
  7624. height: 100%;
  7625. object-fit: contain;
  7626. }
  7627. .worksName {
  7628. height: 40px;
  7629. line-height: 40px;
  7630. display: flex;
  7631. width: 92%;
  7632. flex-direction: row;
  7633. flex-wrap: nowrap;
  7634. justify-content: space-between;
  7635. align-items: center;
  7636. margin: 0 10px;
  7637. }
  7638. .worksName>div:nth-child(1) {
  7639. width: 48px;
  7640. white-space: nowrap;
  7641. overflow: hidden;
  7642. text-overflow: ellipsis;
  7643. }
  7644. .worksName>div:nth-child(2) {
  7645. color: #b7b4b5;
  7646. }
  7647. .noWorksS {
  7648. padding: 15px 0;
  7649. display: flex;
  7650. flex-direction: row;
  7651. flex-wrap: wrap;
  7652. align-items: center;
  7653. justify-content: flex-start;
  7654. }
  7655. .noWorksName,
  7656. .isWorksName {
  7657. background: #7cbcf1;
  7658. color: #fff;
  7659. width: 90px;
  7660. height: 25px;
  7661. text-align: center;
  7662. line-height: 25px;
  7663. border-radius: 5px;
  7664. margin: 10px 15px 10px 0;
  7665. white-space: nowrap;
  7666. overflow: hidden;
  7667. padding: 5px;
  7668. text-overflow: ellipsis;
  7669. }
  7670. .isWorksName {
  7671. cursor: pointer;
  7672. background: #46a1eb !important;
  7673. width: 100px;
  7674. height: 40px;
  7675. line-height: 40px;
  7676. position: relative;
  7677. }
  7678. .noWorksName:hover {
  7679. background: #46a1eb !important;
  7680. }
  7681. .title {
  7682. background: #1e5cc9;
  7683. /* width: 98%; */
  7684. height: 45px;
  7685. color: #fff;
  7686. line-height: 45px;
  7687. padding-left: 20px;
  7688. box-sizing: border-box;
  7689. }
  7690. .textBox {
  7691. font-size: 20px;
  7692. width: 90%;
  7693. display: flex;
  7694. flex-direction: column;
  7695. align-items: center;
  7696. margin: 20px auto 0;
  7697. }
  7698. .textContent {
  7699. font-size: 18px;
  7700. height: 450px;
  7701. width: 95%;
  7702. overflow: auto;
  7703. line-height: 30px;
  7704. }
  7705. .answerBg {
  7706. background: url("../assets/icon/answerBgNew.png") no-repeat;
  7707. background-size: 100% 100%;
  7708. width: 100%;
  7709. height: 100%;
  7710. color: #fff;
  7711. text-align: center;
  7712. display: flex;
  7713. flex-direction: column;
  7714. flex-wrap: nowrap;
  7715. align-items: center;
  7716. position: relative;
  7717. }
  7718. .answerBg>div:nth-child(1) {
  7719. font-size: 22px;
  7720. padding: 25px 0 10px;
  7721. }
  7722. .answerContent {
  7723. width: 215px;
  7724. height: 60px;
  7725. word-break: break-all;
  7726. text-align: center;
  7727. white-space: nowrap;
  7728. overflow: hidden;
  7729. text-overflow: ellipsis;
  7730. }
  7731. .elist_input_box {
  7732. display: flex;
  7733. align-items: flex-start;
  7734. flex-wrap: nowrap;
  7735. padding: 10px 0 15px 30px;
  7736. flex-direction: column;
  7737. }
  7738. .elist_input {
  7739. /* width: 40%; */
  7740. width: 100%;
  7741. }
  7742. .elist_input .elist_input_box input {
  7743. font: inherit;
  7744. color: currentColor;
  7745. width: 200px;
  7746. padding: 8px 14px;
  7747. display: block;
  7748. min-width: 0;
  7749. outline: none;
  7750. border: 1px solid rgba(0, 0, 0, 0.23);
  7751. border-radius: 4px;
  7752. box-sizing: border-box;
  7753. background: #fff;
  7754. margin: 0 20px 0 0;
  7755. }
  7756. .elist_input .elist_input_box span {
  7757. height: 36px;
  7758. line-height: 36px;
  7759. color: rgb(82, 82, 82);
  7760. }
  7761. .elist_input .elist_input_box .remove {
  7762. height: 20px;
  7763. width: 20px;
  7764. background-size: 100% 100%;
  7765. background-position: unset;
  7766. margin-left: 5px;
  7767. }
  7768. .elist_input_box>>>.el-rate {
  7769. display: flex;
  7770. height: 36px;
  7771. align-items: center;
  7772. }
  7773. .elist_input_box .elist_inptu_text {
  7774. min-height: 50px;
  7775. /* width: 500px;
  7776. max-height: 150px; */
  7777. width: 100%;
  7778. line-height: 50px;
  7779. color: rgb(82, 82, 82);
  7780. overflow: auto;
  7781. text-indent: 5px;
  7782. background: #f7f6f9;
  7783. border-radius: 10px;
  7784. }
  7785. .elist_input_box .elist_inptu_text input {
  7786. width: 500px;
  7787. }
  7788. .elist_input_box>>>.el-rate__icon {
  7789. font-size: 24px;
  7790. }
  7791. .isClick {
  7792. background: #4d9def;
  7793. }
  7794. .bzBox {
  7795. display: flex;
  7796. flex-direction: row;
  7797. align-items: center;
  7798. }
  7799. .bzBox>div:nth-child(1) {
  7800. width: 4px;
  7801. height: 40px;
  7802. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  7803. }
  7804. .bzBox>div:nth-child(2) {
  7805. font-size: 23px;
  7806. font-weight: bold;
  7807. padding: 0px 0px 0 10px;
  7808. }
  7809. .navTitile {
  7810. padding: 0 0px 0 15px;
  7811. background: #1e5cc9;
  7812. color: #fff;
  7813. height: 40px;
  7814. line-height: 40px;
  7815. border-top-left-radius: 10px;
  7816. border-top-right-radius: 10px;
  7817. }
  7818. .isTypeOne {
  7819. width: 240px;
  7820. height: 170px;
  7821. /* border: 1px solid #f8f8f8; */
  7822. border-radius: 10px;
  7823. box-shadow: 0 0 6px 1px #dfdada;
  7824. }
  7825. .e_add_top {
  7826. display: flex;
  7827. justify-content: space-between;
  7828. padding: 20px 20px 0 20px;
  7829. border-radius: 3px;
  7830. background: #fff;
  7831. }
  7832. .e_add_title2 {
  7833. display: flex;
  7834. align-items: center;
  7835. }
  7836. .e_add_title2 span {
  7837. width: 40px;
  7838. }
  7839. .e_add_title {
  7840. display: flex;
  7841. align-items: center;
  7842. color: #b8b8b8;
  7843. font-size: 18px;
  7844. position: relative;
  7845. height: 40px;
  7846. }
  7847. .e_add_title span {
  7848. margin-right: 10px;
  7849. }
  7850. .e_add_title .el_input {
  7851. width: 300px;
  7852. }
  7853. .e_add_title>>>.el-input__inner {
  7854. width: 400px;
  7855. }
  7856. .e_add_btn {}
  7857. .e_add_content {
  7858. display: flex;
  7859. width: 100%;
  7860. max-width: 650px;
  7861. height: 550px;
  7862. }
  7863. .e_add_list {
  7864. background: #fff;
  7865. height: 500px;
  7866. width: 210px;
  7867. position: relative;
  7868. margin: 15px 5px 0 0;
  7869. flex-shrink: 0;
  7870. display: flex;
  7871. flex-direction: column;
  7872. }
  7873. .e_add_list_title {
  7874. font-size: 20px;
  7875. width: 100%;
  7876. box-sizing: border-box;
  7877. padding: 15px 40px;
  7878. text-align: center;
  7879. border-bottom: 1px solid #eaeaea;
  7880. position: relative;
  7881. display: flex;
  7882. align-items: center;
  7883. justify-content: center;
  7884. height: 57px;
  7885. background: #f6f6f6;
  7886. }
  7887. .e_add_list_title span {
  7888. overflow: hidden;
  7889. white-space: nowrap;
  7890. text-overflow: ellipsis;
  7891. }
  7892. .e_add_list_title img {
  7893. position: absolute;
  7894. right: 15px;
  7895. width: 25px;
  7896. cursor: pointer;
  7897. top: 50%;
  7898. transform: translateY(-50%);
  7899. }
  7900. .e_add_list_body {
  7901. height: calc(100% - 187px);
  7902. overflow: auto;
  7903. }
  7904. .e_add_list_child {
  7905. width: 100%;
  7906. display: flex;
  7907. align-items: center;
  7908. justify-content: center;
  7909. position: relative;
  7910. box-sizing: border-box;
  7911. padding: 15px 40px;
  7912. text-align: center;
  7913. }
  7914. .e_add_list_child span {
  7915. overflow: hidden;
  7916. white-space: nowrap;
  7917. text-overflow: ellipsis;
  7918. cursor: pointer;
  7919. }
  7920. .e_add_list_child img {
  7921. position: absolute;
  7922. right: 10px;
  7923. width: 21px;
  7924. cursor: pointer;
  7925. top: 50%;
  7926. transform: translateY(-50%);
  7927. }
  7928. .e_add_list_child+.e_add_list_child {
  7929. border-top: 1px solid #eaeaea;
  7930. }
  7931. .e_add_list_child .active {
  7932. color: #409eff;
  7933. }
  7934. .e_add_list_btn {
  7935. position: absolute;
  7936. bottom: 0;
  7937. height: 50px;
  7938. background: rgb(120, 120, 254);
  7939. width: 100%;
  7940. color: #fff;
  7941. font-size: 16px;
  7942. text-align: center;
  7943. line-height: 50px;
  7944. cursor: pointer;
  7945. }
  7946. .e_add_list_detail {
  7947. position: absolute;
  7948. bottom: 0;
  7949. height: 130px;
  7950. background: rgb(120, 120, 254);
  7951. width: 100%;
  7952. color: #fff;
  7953. font-size: 16px;
  7954. display: flex;
  7955. align-items: center;
  7956. justify-content: center;
  7957. }
  7958. .e_add_list_detail textarea {
  7959. height: 90%;
  7960. width: 95%;
  7961. border: none;
  7962. resize: none;
  7963. outline: none;
  7964. padding: 5px;
  7965. box-sizing: border-box;
  7966. }
  7967. .e_add_list_pbox {
  7968. width: 100%;
  7969. max-width: 650px;
  7970. /* height: 600px; */
  7971. }
  7972. .e_add_list_pbox_title {
  7973. height: 50px;
  7974. background: #fff;
  7975. display: flex;
  7976. align-items: center;
  7977. width: 100%;
  7978. box-sizing: border-box;
  7979. padding: 0 20px;
  7980. }
  7981. .type_title {
  7982. font-size: 18px;
  7983. font-weight: 700;
  7984. }
  7985. .type_content {
  7986. font-size: 16px;
  7987. margin-left: 30px;
  7988. }
  7989. .type_content span+span {
  7990. margin-left: 20px;
  7991. }
  7992. .type_content span {
  7993. cursor: pointer;
  7994. padding-bottom: 5px;
  7995. box-sizing: border-box;
  7996. }
  7997. .type_content .active {
  7998. color: #409eff;
  7999. border-bottom: 2px solid #409eff;
  8000. }
  8001. .e_add_list_pbox_content {
  8002. height: calc(100% - 50px);
  8003. display: flex;
  8004. align-items: center;
  8005. width: 100%;
  8006. background: #fff;
  8007. }
  8008. .evaCss {
  8009. display: flex;
  8010. flex-direction: row;
  8011. flex-wrap: nowrap;
  8012. align-items: flex-start;
  8013. }
  8014. .cru_line {
  8015. position: absolute;
  8016. bottom: 0px;
  8017. transition: all 0.5s;
  8018. left: 0px;
  8019. width: 125px;
  8020. margin-left: -25px;
  8021. }
  8022. .isNoMessage {
  8023. width: 20%;
  8024. margin: 25% auto 0;
  8025. }
  8026. .isNoMessage>img {
  8027. width: 100%;
  8028. height: 100%;
  8029. }
  8030. .fullStyle>>>.el-dialog__body {
  8031. height: 100% !important;
  8032. }
  8033. .fullStyle>>>.el-dialog,
  8034. .fullStyle {
  8035. width: 100% !important;
  8036. max-width: 100% !important;
  8037. height: 100% !important;
  8038. margin: 0 !important;
  8039. }
  8040. .full_diy>>>.el-dialog {
  8041. margin: 0 !important;
  8042. height: 100%;
  8043. padding: 4px;
  8044. }
  8045. .full_diy>>>.el-dialog__body {
  8046. height: calc(100% - 100px);
  8047. }
  8048. .switchCss {
  8049. /* width: 100%; */
  8050. display: flex;
  8051. flex-direction: row;
  8052. flex-wrap: nowrap;
  8053. align-items: center;
  8054. /* justify-content: center; */
  8055. }
  8056. .isClickNav {
  8057. color: #499eef;
  8058. }
  8059. .commentImg {
  8060. width: 25px;
  8061. height: 25px;
  8062. cursor: pointer;
  8063. }
  8064. .commentImg>img {
  8065. width: 100%;
  8066. height: 100%;
  8067. }
  8068. .comment {
  8069. background: #f9f9f9;
  8070. border-radius: 0 0 15px 15px;
  8071. display: flex;
  8072. flex-direction: row;
  8073. flex-wrap: nowrap;
  8074. align-items: center;
  8075. justify-content: flex-end;
  8076. height: 35px;
  8077. }
  8078. .commentList {
  8079. display: flex;
  8080. flex-direction: row;
  8081. flex-wrap: nowrap;
  8082. align-items: center;
  8083. justify-content: center;
  8084. align-content: center;
  8085. /* margin-left: 15px; */
  8086. margin-left: 8px;
  8087. }
  8088. .scoreImg {
  8089. width: 17px;
  8090. height: 17px;
  8091. }
  8092. .studentDetail {
  8093. display: flex;
  8094. flex-direction: row;
  8095. flex-wrap: nowrap;
  8096. /* align-items: center; */
  8097. align-items: flex-start;
  8098. }
  8099. .tx {
  8100. width: 50px;
  8101. }
  8102. .tx>img {
  8103. width: 100%;
  8104. height: 100%;
  8105. }
  8106. .nameAndTime {
  8107. display: flex;
  8108. flex-direction: column;
  8109. flex-wrap: nowrap;
  8110. align-items: flex-start;
  8111. margin-left: 10px;
  8112. }
  8113. .worksAnswer {
  8114. color: #4078dd;
  8115. margin: 10px 0;
  8116. font-size: 16px;
  8117. }
  8118. .worksAnswer>img {
  8119. width: 500px;
  8120. height: 300px;
  8121. object-fit: contain;
  8122. margin: 0 auto;
  8123. display: block;
  8124. }
  8125. .commentTop {
  8126. border-bottom: 1px solid #eaeaea;
  8127. padding-bottom: 10px;
  8128. }
  8129. .commentBox {
  8130. padding-top: 15px;
  8131. }
  8132. .pl {
  8133. font-size: 18px;
  8134. }
  8135. .plName {
  8136. display: flex;
  8137. flex-direction: row;
  8138. flex-wrap: nowrap;
  8139. align-items: baseline;
  8140. color: #78787a;
  8141. }
  8142. .evalCss {
  8143. background: #fff;
  8144. font-size: 18px;
  8145. }
  8146. .nav {
  8147. color: #9d9d9d;
  8148. padding: 5px 0 15px 20px;
  8149. }
  8150. .middleBox {
  8151. padding: 5px 0 15px 20px;
  8152. }
  8153. .pfBox {
  8154. padding-bottom: 30px;
  8155. }
  8156. .nameAndrate {
  8157. display: flex;
  8158. flex-direction: row;
  8159. flex-wrap: nowrap;
  8160. align-items: center;
  8161. padding-bottom: 10px;
  8162. }
  8163. .nameAndrate>div {
  8164. margin-left: 10px;
  8165. color: #000;
  8166. }
  8167. .pfBox>div:nth-child(2) {
  8168. background: #f7f6f9;
  8169. width: 400px;
  8170. min-height: 45px;
  8171. border-radius: 10px;
  8172. font-size: 16px;
  8173. display: flex;
  8174. flex-wrap: wrap;
  8175. align-items: center;
  8176. padding: 10px 20px;
  8177. box-sizing: border-box;
  8178. color: #000;
  8179. }
  8180. .bz {
  8181. display: flex;
  8182. flex-direction: row;
  8183. flex-wrap: nowrap;
  8184. align-items: flex-start;
  8185. }
  8186. .bz>div {
  8187. padding: 0 10px;
  8188. }
  8189. .select_box2_title {
  8190. background: #fff;
  8191. border-radius: 5px;
  8192. padding: 15px 10px;
  8193. box-sizing: border-box;
  8194. margin-bottom: 10px;
  8195. display: flex;
  8196. flex-direction: row;
  8197. flex-wrap: nowrap;
  8198. align-items: center;
  8199. }
  8200. .select_box2_title>div:nth-child(2) {
  8201. margin-left: 10px;
  8202. color: #c4c4c4;
  8203. }
  8204. .select_box2_box {
  8205. display: flex;
  8206. height: 500px;
  8207. }
  8208. .select_box2_img {
  8209. width: calc(100% - 310px);
  8210. height: 100%;
  8211. overflow: auto;
  8212. background: #fff;
  8213. border-radius: 5px;
  8214. }
  8215. .select_box2_img img {
  8216. width: 100%;
  8217. }
  8218. .select_box2_answer {
  8219. background: #fff;
  8220. margin-left: 10px;
  8221. border-radius: 5px;
  8222. width: 300px;
  8223. overflow: auto;
  8224. height: 90%;
  8225. display: flex;
  8226. flex-direction: column;
  8227. align-items: flex-start;
  8228. padding-top: 10px;
  8229. box-sizing: border-box;
  8230. position: relative;
  8231. }
  8232. .select_answer_title {
  8233. padding: 0 0 15px 20px;
  8234. color: #c4c4c4;
  8235. }
  8236. .select_box2_answer_box {
  8237. margin: 0 0 10px 20px;
  8238. width: 85%;
  8239. display: flex;
  8240. flex-direction: row;
  8241. flex-wrap: nowrap;
  8242. align-items: center;
  8243. }
  8244. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  8245. color: #000;
  8246. }
  8247. .upAnswerCss {
  8248. position: absolute;
  8249. bottom: 15px;
  8250. right: 15px;
  8251. }
  8252. .upAnswerCss>>>.el-button {
  8253. width: 95px;
  8254. height: 35px;
  8255. line-height: 35px;
  8256. padding: 0;
  8257. }
  8258. .rightWidthCss {
  8259. width: 60%;
  8260. display: flex;
  8261. flex-direction: row;
  8262. align-items: flex-start;
  8263. }
  8264. .rightAnswer {
  8265. display: flex;
  8266. flex-direction: row;
  8267. flex-wrap: nowrap;
  8268. align-items: center;
  8269. color: red;
  8270. margin-bottom: 31px;
  8271. }
  8272. .rightAnswerCss {
  8273. display: flex;
  8274. flex-direction: column;
  8275. flex-wrap: nowrap;
  8276. padding-top: 60px;
  8277. }
  8278. .blueCss {
  8279. color: #767de1;
  8280. margin-left: 10px;
  8281. }
  8282. .redCss {
  8283. color: red;
  8284. }
  8285. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  8286. color: rgb(0 123 255) !important;
  8287. }
  8288. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  8289. color: rgb(0 123 255) !important;
  8290. }
  8291. .zuoyeYulan {
  8292. padding-top: 15px;
  8293. font-size: 18px;
  8294. display: flex;
  8295. align-items: flex-end;
  8296. }
  8297. .buttonA {
  8298. margin-left: 10px;
  8299. padding: 0;
  8300. }
  8301. .displayBox {
  8302. margin-bottom: 10px;
  8303. display: block;
  8304. border-bottom: 3px solid #eee;
  8305. display: flex;
  8306. align-items: center;
  8307. }
  8308. .easy_comment {
  8309. width: calc(100% - 90px);
  8310. margin-left: 10px;
  8311. display: flex;
  8312. flex-wrap: wrap;
  8313. }
  8314. .easy_comment>div {
  8315. border: 1px solid #4a4a4a;
  8316. color: #666;
  8317. border-radius: 15px;
  8318. padding: 5px 10px;
  8319. font-size: 16px;
  8320. margin-bottom: 10px;
  8321. margin-right: 5px;
  8322. cursor: pointer;
  8323. }
  8324. .easy_comment div:hover {
  8325. border: 1px solid #f7ba2a;
  8326. color: #c69217;
  8327. }
  8328. .xuan_right_box {
  8329. padding: 10px;
  8330. background: rgb(247, 247, 247);
  8331. margin: 10px 12px;
  8332. border-radius: 5px;
  8333. }
  8334. .tool_right_box {
  8335. display: flex;
  8336. align-items: center;
  8337. }
  8338. .tool_right_box+.tool_right_box {
  8339. margin-top: 10px;
  8340. }
  8341. .right_box_xuan {
  8342. background: rgb(0 123 255);
  8343. color: #fff;
  8344. border-radius: 5px;
  8345. padding: 5px;
  8346. margin-left: 10px;
  8347. }
  8348. .pButton {
  8349. position: fixed;
  8350. /* right: 5%; */
  8351. /* bottom: 5%; */
  8352. color: #fff;
  8353. /* width: 50px;
  8354. height: 50px; */
  8355. /* border-radius: 50%; */
  8356. text-align: center;
  8357. /* line-height: 50px; */
  8358. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  8359. cursor: pointer;
  8360. z-index: 999;
  8361. right: 0;
  8362. top: 83px;
  8363. width: 50px;
  8364. height: 50px;
  8365. background: #fff;
  8366. display: flex;
  8367. align-items: center;
  8368. justify-content: center;
  8369. box-shadow: 0px 0 8px 0px #c5c5c5;
  8370. }
  8371. .pzClass {
  8372. width: calc(100% - 340px);
  8373. }
  8374. .newDialogCss {
  8375. /* position: fixed;
  8376. right: 5%;
  8377. top: 50%;
  8378. width: 340px;
  8379. transform: translateY(-50%);
  8380. height: 60%;
  8381. box-shadow: 0px 0 8px 0px #555555;
  8382. border-radius: 15px;
  8383. z-index: 999; */
  8384. position: fixed;
  8385. right: 0;
  8386. top: 70px;
  8387. width: 340px;
  8388. height: calc(100% - 80px);
  8389. z-index: 999;
  8390. background: #fff;
  8391. border-radius: 15px;
  8392. border-top-right-radius: 0px;
  8393. border-bottom-right-radius: 0px;
  8394. overflow: hidden;
  8395. }
  8396. .pzTop {
  8397. color: #fff;
  8398. background: #000;
  8399. display: flex;
  8400. flex-direction: row;
  8401. flex-wrap: nowrap;
  8402. align-items: center;
  8403. justify-content: space-between;
  8404. height: 40px;
  8405. border-radius: 15px 15px 0 0;
  8406. }
  8407. .pzTop2 .checkbox {
  8408. display: flex;
  8409. align-items: center;
  8410. padding: 15px 30px;
  8411. flex: 0 0 auto;
  8412. font-weight: bold;
  8413. border-bottom: 1px solid #eee;
  8414. justify-content: space-between;
  8415. }
  8416. .pzTop2 .check {
  8417. text-align: center;
  8418. cursor: pointer;
  8419. box-sizing: border-box;
  8420. display: flex;
  8421. }
  8422. .pzTop2 img {
  8423. width: 25px;
  8424. cursor: pointer;
  8425. }
  8426. .pzTop>div:nth-child(1) {
  8427. padding-left: 10px;
  8428. }
  8429. .pzTop>div:nth-child(2) {
  8430. width: 15px;
  8431. height: 15px;
  8432. padding-right: 10px;
  8433. cursor: pointer;
  8434. }
  8435. .pzTop>div:nth-child(2)>img {
  8436. width: 100%;
  8437. height: 100%;
  8438. }
  8439. .pzBox,
  8440. .noPzBox {
  8441. height: calc(100% - 60px);
  8442. /* background: #ededed; */
  8443. background: #fff;
  8444. /* border-radius: 0 0 15px 15px; */
  8445. }
  8446. .noPzBox {
  8447. display: flex;
  8448. flex-direction: column;
  8449. flex-wrap: nowrap;
  8450. justify-content: center;
  8451. align-items: center;
  8452. }
  8453. .pzList {
  8454. background: #f7f7f7;
  8455. width: 90%;
  8456. margin: 0 auto 15px;
  8457. border-radius: 5px;
  8458. }
  8459. .pzNavTop {
  8460. display: flex;
  8461. flex-direction: row;
  8462. flex-wrap: nowrap;
  8463. padding: 10px 10px 0 10px;
  8464. align-items: center;
  8465. }
  8466. .pzDelete {
  8467. cursor: pointer;
  8468. margin-left: auto;
  8469. font-size: 14px;
  8470. color: #afafaf;
  8471. }
  8472. .pzNavTop>div:nth-child(1) {
  8473. background: #3760af;
  8474. width: 35px;
  8475. height: 35px;
  8476. color: #fff;
  8477. text-align: center;
  8478. line-height: 35px;
  8479. border-radius: 50%;
  8480. font-size: 14px;
  8481. }
  8482. .pzNavTop>div:nth-child(2) {
  8483. font-size: 18px;
  8484. color: #959595;
  8485. margin-left: 5px;
  8486. }
  8487. .pzContent {
  8488. padding: 10px;
  8489. word-break: break-word;
  8490. }
  8491. .pzContent audio {
  8492. width: 100%;
  8493. }
  8494. .pzContent audio::-webkit-media-controls-panel {
  8495. background: #fff;
  8496. }
  8497. .pzListBox {
  8498. padding-top: 15px;
  8499. height: calc(100% - 60px);
  8500. overflow: auto;
  8501. }
  8502. .addPzButton {
  8503. position: relative;
  8504. margin-top: 3px;
  8505. width: 100%;
  8506. }
  8507. .addPzButton .img1 {
  8508. position: absolute;
  8509. top: 50%;
  8510. right: 25px;
  8511. transform: translateY(-50%);
  8512. height: 100%;
  8513. display: flex;
  8514. align-items: center;
  8515. }
  8516. .addPzButton .img1 div {
  8517. display: flex;
  8518. }
  8519. .addPzButton .img1 div img {
  8520. width: 28px;
  8521. margin-left: 10px;
  8522. cursor: pointer;
  8523. }
  8524. .addPzButton .img1 div span {
  8525. font-size: 14px;
  8526. margin: 4px 0 0 3px;
  8527. color: #afafaf;
  8528. }
  8529. .addPz {
  8530. background: #4b79ce;
  8531. width: 100px;
  8532. color: #fff;
  8533. font-size: 12px;
  8534. height: 30px;
  8535. margin: 0 auto;
  8536. text-align: center;
  8537. line-height: 30px;
  8538. border-radius: 10px;
  8539. cursor: pointer;
  8540. }
  8541. .addDialogCss {
  8542. position: fixed;
  8543. right: 37%;
  8544. top: 50%;
  8545. width: 600px;
  8546. transform: translateY(-50%);
  8547. height: 70%;
  8548. min-height: 450px;
  8549. box-shadow: 0px 0 8px 0px #555555;
  8550. border-radius: 15px;
  8551. z-index: 999;
  8552. }
  8553. .teacherPz {
  8554. display: flex;
  8555. flex-direction: row;
  8556. align-items: center;
  8557. flex-wrap: nowrap;
  8558. }
  8559. .teacherPzImg {
  8560. width: 30px;
  8561. height: 30px;
  8562. }
  8563. .teacherPzImg>img {
  8564. width: 100%;
  8565. height: 100%;
  8566. }
  8567. .addPzBox {
  8568. height: calc(100% - 40px);
  8569. background: #ededed;
  8570. }
  8571. .pzAudioClass {
  8572. margin: 15px 14px;
  8573. background: #fff;
  8574. height: 100%;
  8575. display: flex;
  8576. justify-content: center;
  8577. align-items: center;
  8578. }
  8579. .pzConText {
  8580. width: 95%;
  8581. height: 100%;
  8582. margin: 10px auto 0;
  8583. border: none;
  8584. background: #fff;
  8585. border-radius: 0px;
  8586. }
  8587. .pzConText>>>.text {
  8588. height: calc(100% - 82px);
  8589. }
  8590. .addTextCss {
  8591. background: #4b79ce;
  8592. width: 80px;
  8593. height: 30px;
  8594. text-align: center;
  8595. color: #fff;
  8596. line-height: 30px;
  8597. border-radius: 10px;
  8598. margin: 10px auto 0;
  8599. cursor: pointer;
  8600. }
  8601. .pzConText:focus-visible {
  8602. border: none !important;
  8603. }
  8604. .maxWidth {
  8605. width: 1000px;
  8606. }
  8607. .noPz {
  8608. width: 150px;
  8609. margin: 0 auto 20%;
  8610. }
  8611. .noPz>img {
  8612. width: 100%;
  8613. height: 100%;
  8614. }
  8615. .pzList .time {
  8616. text-align: right;
  8617. box-sizing: border-box;
  8618. padding: 0 10px 10px 0px;
  8619. color: #949494;
  8620. font-size: 14px;
  8621. }
  8622. /* table 样式 */
  8623. .cont>>>table {
  8624. border-top: 1px solid #ccc;
  8625. border-left: 1px solid #ccc;
  8626. }
  8627. .cont>>>table td,
  8628. .cont>>>table th {
  8629. border-bottom: 1px solid #ccc;
  8630. border-right: 1px solid #ccc;
  8631. padding: 3px 5px;
  8632. }
  8633. .cont>>>table th {
  8634. border-bottom: 2px solid #ccc;
  8635. text-align: center;
  8636. }
  8637. /* blockquote 样式 */
  8638. .cont>>>blockquote {
  8639. display: block;
  8640. border-left: 8px solid #d0e5f2;
  8641. padding: 5px 10px;
  8642. margin: 10px 0;
  8643. line-height: 1.4;
  8644. font-size: 100%;
  8645. background-color: #f1f1f1;
  8646. }
  8647. .addPzCheck {
  8648. display: flex;
  8649. flex-direction: row;
  8650. flex-wrap: nowrap;
  8651. padding: 10px 15px 0;
  8652. }
  8653. .addPzCheck span {
  8654. cursor: pointer;
  8655. padding-bottom: 5px;
  8656. font-weight: bold;
  8657. }
  8658. .addPzCheck span+span {
  8659. margin-left: 10px;
  8660. }
  8661. .addPzCheck .isChooseActive {
  8662. color: #3e88f4;
  8663. border-bottom: 2px solid #2f80f3;
  8664. }
  8665. /* code 样式 */
  8666. .cont>>>code {
  8667. display: inline-block;
  8668. *display: inline;
  8669. *zoom: 1;
  8670. background-color: #f1f1f1;
  8671. border-radius: 3px;
  8672. padding: 3px 5px;
  8673. margin: 0 3px;
  8674. }
  8675. .cont>>>pre code {
  8676. display: block;
  8677. }
  8678. /* ul ol 样式 */
  8679. .cont>>>ul,
  8680. ol {
  8681. margin: 10px 0 10px 20px;
  8682. }
  8683. .scoreBox,
  8684. .scoreDetailBox {
  8685. display: flex;
  8686. align-items: center;
  8687. justify-content: flex-start;
  8688. margin-top: 20px;
  8689. font-size: 18px;
  8690. width: 100%;
  8691. }
  8692. .scoreBox .t,
  8693. .scoreDetailBox .t {
  8694. margin-right: 10px;
  8695. width: 100px;
  8696. text-align: right;
  8697. }
  8698. .scoreDetailBox {
  8699. align-items: flex-start;
  8700. }
  8701. .scoreDetailBox>>>.el-textarea {
  8702. width: calc(100% - 200px);
  8703. }
  8704. .scoreBox>>>.el-input {
  8705. width: 130px;
  8706. font-size: 38px;
  8707. }
  8708. .scoreBox>>>.el-input__inner {
  8709. height: 60px;
  8710. }
  8711. .answerScore {
  8712. position: absolute;
  8713. top: 10px;
  8714. right: 10px;
  8715. background: #0000008f;
  8716. border-radius: 5px;
  8717. padding: 3px 5px;
  8718. font-size: 14px;
  8719. color: #fff;
  8720. cursor: pointer;
  8721. }
  8722. .open_box .switch_box {
  8723. width: 100%;
  8724. margin: 0 auto;
  8725. display: flex;
  8726. justify-content: space-between;
  8727. }
  8728. .open_box .switch_box+.switch_box {
  8729. margin-top: 10px;
  8730. }
  8731. .deleteImg {
  8732. width: 25px !important;
  8733. height: 25px !important;
  8734. cursor: pointer;
  8735. position: absolute;
  8736. top: 10px;
  8737. right: 10px;
  8738. }
  8739. .deleteImg2 {
  8740. width: 15px !important;
  8741. height: 15px !important;
  8742. top: 5px;
  8743. right: 5px;
  8744. }
  8745. .rightW {
  8746. right: 40px;
  8747. }
  8748. .drawPBox {
  8749. display: flex;
  8750. flex-direction: column;
  8751. }
  8752. .drawPBox span {
  8753. font-size: 18px;
  8754. color: #606266;
  8755. padding-bottom: 10px;
  8756. margin: 10px 0;
  8757. border-bottom: 1px solid #eaeaea;
  8758. }
  8759. .drawPBox img {
  8760. width: 500px;
  8761. height: 300px;
  8762. object-fit: contain;
  8763. cursor: pointer;
  8764. margin: 0 auto;
  8765. }
  8766. .sentenBox {
  8767. background: #fff;
  8768. height: 450px;
  8769. overflow: auto;
  8770. background-image: url("../assets/icon/conSentences/stuBg.png");
  8771. background-position: 102%;
  8772. background-repeat: no-repeat;
  8773. background-size: 60%;
  8774. }
  8775. .addSen {
  8776. background: #409efe;
  8777. width: 90px;
  8778. color: #fff;
  8779. height: 35px;
  8780. text-align: center;
  8781. line-height: 35px;
  8782. border-radius: 5px;
  8783. float: right;
  8784. margin: 10px 20px 0 0;
  8785. cursor: pointer;
  8786. }
  8787. .sentenTop {
  8788. display: flex;
  8789. flex-direction: row;
  8790. flex-wrap: nowrap;
  8791. align-items: center;
  8792. padding: 55px 0 0 20px;
  8793. box-sizing: border-box;
  8794. }
  8795. .sentenTop>div:nth-child(2) {
  8796. width: 300px;
  8797. margin: 0 15px;
  8798. }
  8799. .sentenTop>div:nth-child(3) {
  8800. background: #409efe;
  8801. color: #fff;
  8802. width: 65px;
  8803. height: 35px;
  8804. text-align: center;
  8805. line-height: 35px;
  8806. border-radius: 5px;
  8807. cursor: pointer;
  8808. }
  8809. .cardList,
  8810. .cardList1 {
  8811. padding: 10px 0 10px 0;
  8812. display: flex;
  8813. flex-direction: row;
  8814. flex-wrap: wrap;
  8815. align-items: center;
  8816. box-sizing: border-box;
  8817. border-bottom: 1px solid #f4f4f4;
  8818. width: 98%;
  8819. margin: 0 auto;
  8820. min-width: 60%;
  8821. max-width: 85%;
  8822. }
  8823. .cardList1 {
  8824. padding: 10px 0 10px 10px !important;
  8825. margin: 0 !important;
  8826. }
  8827. .cardBox {
  8828. display: flex;
  8829. flex-direction: row;
  8830. flex-wrap: wrap;
  8831. align-items: center;
  8832. align-content: center;
  8833. }
  8834. .cardBox>div {
  8835. margin-bottom: 10px;
  8836. }
  8837. .isCard,
  8838. .isChooseCard,
  8839. .noCard,
  8840. .isCard1 {
  8841. width: 130px;
  8842. height: 60px;
  8843. text-align: center;
  8844. line-height: 60px;
  8845. font-size: 20px;
  8846. cursor: pointer;
  8847. background-image: url("../assets/icon/conSentences/titleBorder.png");
  8848. background-size: cover;
  8849. transition: all 2s;
  8850. margin-right: 20px;
  8851. }
  8852. .isCard>div,
  8853. .noCard>div,
  8854. .isCard1>div {
  8855. white-space: nowrap;
  8856. overflow: hidden;
  8857. text-overflow: ellipsis;
  8858. width: 75%;
  8859. margin: 0 auto;
  8860. }
  8861. .noCard {
  8862. background-image: none;
  8863. }
  8864. .isCard1 {
  8865. background-image: url("../assets/icon/conSentences/answerBorder.png");
  8866. }
  8867. .isChooseCard {
  8868. background-image: none;
  8869. border: 1px dashed #b9b9b9;
  8870. border-radius: 10px;
  8871. }
  8872. .card {
  8873. width: 130px;
  8874. height: 60px;
  8875. }
  8876. .card>img {
  8877. width: 100%;
  8878. height: 100%;
  8879. }
  8880. .rightCardBox {
  8881. margin: 10px 0 0 10px;
  8882. }
  8883. .rightCardBox>div:nth-child(1) {
  8884. margin-bottom: 10px;
  8885. }
  8886. .cardCss {
  8887. display: flex;
  8888. flex-direction: column;
  8889. flex-wrap: nowrap;
  8890. align-items: center;
  8891. border-bottom: 3px solid #b4c3d3;
  8892. padding: 0 0 5px 0;
  8893. margin-right: 10px;
  8894. }
  8895. .cardCss>div:nth-child(2) {
  8896. background: #5b7b9d;
  8897. color: #fff;
  8898. width: 20px;
  8899. height: 20px;
  8900. border-radius: 50%;
  8901. text-align: center;
  8902. line-height: 20px;
  8903. }
  8904. .isWrong {
  8905. display: flex;
  8906. flex-direction: row;
  8907. flex-wrap: nowrap;
  8908. align-content: center;
  8909. align-items: center;
  8910. }
  8911. .answerRight {
  8912. width: 25%;
  8913. }
  8914. .isTj {
  8915. display: flex;
  8916. flex-direction: row;
  8917. flex-wrap: nowrap;
  8918. align-items: center;
  8919. }
  8920. .isTj>div:nth-child(2) {
  8921. color: #727070;
  8922. margin-left: 10px;
  8923. }
  8924. .isTjImg {
  8925. width: 30px;
  8926. height: 30px;
  8927. }
  8928. .isTjImg>img {
  8929. width: 100%;
  8930. height: 100%;
  8931. }
  8932. .cardAnswerBox {
  8933. font-size: 18px;
  8934. width: 97%;
  8935. border: 5px;
  8936. padding: 0;
  8937. border-radius: 5px;
  8938. margin: 10px auto;
  8939. word-break: break-word;
  8940. }
  8941. </style>