123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694 |
- <template>
- <div class="pb_content" style="background: unset">
- <div
- class="pb_content_body"
- style="
- background: #fff;
- box-sizing: border-box;
- border-radius: 5px;
- "
- >
- <div class="student_head">
- <!-- <div class="student_search">
- <div>班级筛选</div>
- <el-select v-model="sClass" placeholder="请选择班级" @change="searchWork">
- <el-option label="所有班级" value></el-option>
- <el-option
- v-for="(item, index) in grade"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </div>-->
- <!-- chooseDy
- chooseTask-->
- <div class="student_search">
- <div>课程筛选</div>
- <div style="display: flex; width: 90%">
- <el-select
- class="r_select"
- v-model="choseClass"
- placeholder="请选择班级"
- @change="changeClass"
- >
- <el-option label="所有班级" value></el-option>
- <el-option
- v-for="item in classArray"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- <el-select
- class="r_select"
- v-model="uname"
- placeholder="请选择学生"
- @change="searchWork2"
- :disabled="studentLoading"
- >
- <el-option label="所有学生" value></el-option>
- <el-option
- v-for="item in userAarray"
- :key="item.userid"
- :label="item.username"
- :value="item.userid"
- >
- </el-option>
- </el-select>
- <el-select
- v-model="chooseDy"
- placeholder="请选择阶段"
- @change="searchWork1"
- v-if="DState == 1"
- >
- <el-option label="所有阶段" value></el-option>
- <el-option
- v-for="(item, index) in dyList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- <el-select
- v-model="chooseTask"
- placeholder="请选择任务"
- @change="searchWork2"
- v-if="DState == 1 && cutTabNum != 0"
- >
- <el-option label="所有任务" value></el-option>
- <el-option
- v-for="(item, index) in dyList[chooseDy]
- ? dyList[chooseDy].taskList
- : []"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- <el-select
- v-model="chooseTask"
- placeholder="请选择任务"
- @change="searchWork2"
- v-if="DState != 1 && cutTabNum != 0"
- >
- <el-option label="所有任务" value></el-option>
- <el-option
- v-for="(item, index) in dyList[0]
- ? dyList[0].taskList
- : []"
- :key="index+'a'"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
-
- <div class="typeCheck">
- <el-switch v-model="typeCheck"></el-switch
- ><span style="font-size: 14px;">查看所有学生</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- {{ dyList[0] }} -->
- <div class="pb_content_body">
- <div class="cutTab">
- <div :class="[cutTabNum == 0 ? 'ctrlBtn2' : 'ctrlBtn']" @click="cutTabData(0)">按学生查看</div>
- <!-- <div v-if="DState == 1" :class="[cutTabNum ==1 ? 'ctrlBtn2' : 'ctrlBtn']" @click="cutTabData(1)">按阶段查看</div> -->
- <div :class="[cutTabNum == 2 ? 'ctrlBtn2' : 'ctrlBtn']" @click="cutTabData(2)">按任务查看</div>
- </div>
- <div class="student_table">
- <el-table
- ref="table"
- :data="tableData"
- border
- :height="tableHeight"
- :fit="true"
- v-loading="isLoading"
- style="width: 100%"
- :header-cell-style="{ background: '#f1f1f1' }"
- :row-class-name="tableRowClassName"
- stripe
- >
- <el-table-column
- prop="sName"
- label="姓名"
- min-width="15"
- align="center"
- ></el-table-column>
- <el-table-column
- prop="class"
- label="班级"
- min-width="20"
- align="center"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <div>{{ scope.row.class ? scope.row.class : "暂无班级" }}</div>
- </template>
- </el-table-column>
- <!-- <el-table-column
- prop="course"
- label="课程"
- min-width="20"
- align="center"
- show-overflow-tooltip
- >
- </el-table-column> -->
- <el-table-column
- prop="course"
- label="阶段"
- min-width="20"
- align="center"
- show-overflow-tooltip
- v-if="DState == 1 && cutTabNum != 0"
- >
- <template slot-scope="scope">
- <div>
- <div v-if="scope.row.stage < dyList.length">
- 任务:{{ scope.row.stage }} {{ dyList[scope.row.stage].name }}
- </div>
- <!-- {{ dyList.length > 0 ? dyList[!scope.row.stage ? 0 : scope.row.stage ].name : "" }} -->
- <!-- {{ scope.row.stage,dyList }} -->
- </div>
- </template>
- </el-table-column>
- <el-table-column
- prop="course"
- label="任务"
- min-width="20"
- align="center"
- v-if="cutTabNum != 0"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <div>
- <div v-if="scope.row.stage < dyList.length">
- <div v-if="scope.row.task < dyList[scope.row.stage].taskList.length">
- {{
- dyList[scope.row.stage].taskList[scope.row.task].name
- ? dyList[scope.row.stage].taskList[scope.row.task].name
- : scope.row.task
- }}
- </div>
- </div>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- prop="time"
- label="时间"
- min-width="20"
- align="center"
- ></el-table-column>
- <el-table-column align="center" label="操作" width="260px">
- <template slot-scope="scope">
- <el-button
- type="primary"
- size="small"
- @click="
- lookWork(scope.row.id, scope.row.userid, 0, scope.$index,scope.row)
- "
- >查看&批改</el-button
- >
- <!-- <el-button
- type="primary"
- size="small"
- @click="lookData(scope.row.userid)"
- >生成报告</el-button
- >-->
- <el-button
- type="primary"
- size="small"
- v-if="cutTabNum == 2"
- @click="
- lookWork2(scope.row,scope.row.id, scope.row.userid, scope.row.courseid)
- "
- >导出作业</el-button
- >
- <el-button
- type="primary"
- size="small"
- v-else
- @click="
- exportPdfSetBtn(scope.row.userid,scope.row)
- "
- >导出作业集</el-button
- >
- <!-- <el-button
- class="de_button"
- type="primary"
- size="small"
- @click="deleteWork(scope.row.id)"
- >删除</el-button>-->
- </template>
- </el-table-column>
- </el-table>
-
- <el-dialog
- title="查看作业"
- :visible.sync="dialogVisible3"
- :append-to-body="true"
- :before-close="handleClose"
- width="100%"
- class="dialog_diy2 max_diy"
- :class="{ fullStyle: full }"
- v-loading="worksLoading"
- >
- <div slot="title" class="header-title">
- <div style="color: #fff">查看&批改</div>
- <!-- <div style="position: absolute; top: 14px; right: 50px">
- <img
- src="../../../assets/full.png"
- style="height: 14px; cursor: pointer"
- alt=""
- @click="fullTools"
- />
- </div> -->
- </div>
- <div class="zyBoxC" ref="reportPdf">
- <div class="courseTitle" v-if="allWorks.course">
- <div class="txName">
- <div class="tx"><img :src="tx" alt="" /></div>
- <div>{{ allWorks.sName }}</div>
- <div>{{ allWorks.course }}</div>
- <el-button
- type="primary"
- size="mini"
- style="margin-left: 15px;"
- @click="getPdf"
- >导出作业集</el-button
- >
- </div>
- <div class="topButton" v-if="tableData.length > 1">
- <div>学生切换:</div>
- <el-button @click="preStep" v-if="isPre == false"
- >上一位</el-button
- >
- <el-button @click="nextStep" v-if="isNext == false"
- >下一位</el-button
- >
- </div>
- </div>
- <div class="cBox">
-
- <div class="pb_left">
- <el-tooltip
- class="cTitle"
- effect="light"
- :content="allWorks.course"
- placement="top"
- >
- <div>{{ allWorks.course }}</div>
- </el-tooltip>
- <div class="ml">目录</div>
- <div class="cru_selectBox">
- <div v-for="(dy, dyIndex) in dyList2" :key="dyIndex">
- <div class="blue_box_one" @click="isOpen(dyIndex)">
- <div>第{{ dy.id + 1 }}阶段</div>
- <div>{{ dy.name }}</div>
- </div>
- <div
- class="twoChild"
- :class="{
- navActive: dy.isOpen,
- }"
- >
- <div
- class="navChild"
- v-for="(nav, navIndex) in dy.taskList"
- :key="navIndex"
- >
- <div
- class="navTask"
- @click="openTask(dy.id, nav.id, dyIndex, navIndex)"
- :class="{
- openTaskActive:
- nav.id == taskCount &&
- dy.id + '-' + nav.id == navId &&
- dy.id == stageIndex,
- }"
- >
- <!-- :class="{
- openTaskActive:
- nav.id == taskCount &&
- dy.id + '-' + nav.id == navId &&
- dy.id == stageIndex,
- }" -->
- <div
- class="vedioNav"
- :class="{
- isClick:
- nav.id == taskCount &&
- dy.id + '-' + nav.id == navId &&
- dy.id == stageIndex,
- }"
- style="margin: 0"
- >
- 任务{{ navIndex + 1 }}
- </div>
- <div
- class="isWorkCss"
- v-if="nav.isWork && nav.isWork == true"
- >
- <img src="../../../assets/icon/isWork.png" alt="" />
- </div>
- <el-tooltip
- class="navTaskname item"
- effect="light"
- :content="nav.name"
- placement="top"
- >
- <div>{{ nav.name }}</div>
- </el-tooltip>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="shuBox"
- v-if="worksDetail.length"
- :class="{ fullBox: full }"
- >
- <div
- class="allBox"
- v-for="(sin, sIndex) in sInfo"
- :key="sIndex"
- >
- <div
- class="zyBox"
- v-if="sin.course"
- :class="{ fullZyBox: full }"
-
- >
- <div class="top" :id="`${sin.stage}+${sin.task}`">
- <div class="jdName">
- <div>
- {{
- "第" +
- (sin.stage + 1) +
- "阶段 " +
- dyList[sin.stage].name
- }}
- </div>
- <div
- class="taskName"
- style="width: 100%; justify-content: space-between"
- >
- <div
- class="taskName"
- :id="sin.stage + '-' + sin.task"
- :scrollindex="sIndex"
- >
- <div class="task">任务{{ sin.task + 1 }}</div>
- <div>
- {{ dyList[sin.stage].taskList[sin.task].name }}
- </div>
- </div>
- <div v-if="worksDetail[sIndex].wpptInfo.length > 0">
- <el-button
- type="primary"
- size="small"
- @click="
- openFile2(worksDetail[sIndex].wpptInfo[0])
- "
- >
- 查看文档</el-button
- >
- </div>
- </div>
- </div>
- </div>
- <div class="contentBox">
- <div class="contentAuto">
- <!-- :style="{
- width: worksDetail[sIndex].eList.length
- ? '95%'
- : '95%',
- }" -->
- <div
- class="left_top"
- v-if="worksDetail[sIndex].img.length > 0"
- >
- <div
- v-if="
- worksDetail[sIndex].img[
- worksDetail[sIndex].imgIndex
- ].score
- "
- style="float: right; margin-right: 10px"
- >
- 评分:{{
- worksDetail[sIndex].img[
- worksDetail[sIndex].imgIndex
- ].score
- }}
- </div>
- <div
- class="bigImg"
- v-if="
- worksDetail[sIndex].img &&
- worksDetail[sIndex].img.length
- "
- >
- <img
- @click="
- previewImg(
- worksDetail[sIndex].img[
- worksDetail[sIndex].imgIndex
- ].src
- )
- "
- :src="
- worksDetail[sIndex].img[
- worksDetail[sIndex].imgIndex
- ].src
- "
- alt
- />
- </div>
- <div
- class="thumbnail"
- v-if="
- worksDetail[sIndex].img &&
- worksDetail[sIndex].img.length
- "
- >
- <div
- v-for="(item, index) in worksDetail[sIndex].img"
- :key="index"
- :class="
- worksDetail[sIndex].imgIndex == index
- ? 'isClick'
- : ''
- "
- >
- <img
- :src="item.src"
- alt
- @click="worksDetail[sIndex].imgIndex = index"
- />
- </div>
- </div>
- <div class="work_nopicture" v-else>暂无上传截图</div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].answerInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].answerInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].answerInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-bottom: 10px;
- "
- >
- <div style="font-size: 16px">问答</div>
- </div>
- <div class="answerbox">
- <div style="min-width: 80px">问答标题</div>
- <div>
- {{
- worksDetail[sIndex].answerInfo[0].answerInfo
- .answerTitle
- }}
- </div>
- </div>
- <div class="answerbox1">
- <div style="min-width: 60px">学生回答</div>
- <div>
- {{
- worksDetail[sIndex].answerInfo[0].answerInfo
- .answer
- }}
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].askInfo.length > 0"
- >
- <div>
- <div
- v-if="worksDetail[sIndex].askInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].askInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">问卷工具</div>
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- /* justify-content: center; */
- flex-wrap: wrap;
- margin-top: 10px;
- font-size: 16px;
- "
- >
- <div style="margin-right: 10px">标题:</div>
- <div>
- {{
- worksDetail[sIndex].askInfo[0].askInfo.askJson
- .askTitle
- }}
- </div>
- </div>
- <div class="a_addBox">
- <div style="font-size: 16px; color: #c7c7c7">
- 内容
- </div>
- <div
- :class="
- worksDetail[sIndex].askInfo.length > 1
- ? 'a_add_box'
- : 'isAddBox'
- "
- v-for="(item1, index1) in worksDetail[sIndex]
- .askInfo[0].askInfo.askJson.askCount"
- :key="index1"
- >
- <div class="a_add_head">
- <div style="display: flex">
- {{ index1 + 1 + "、" }}
- <div>
- 题目:{{
- worksDetail[sIndex].askInfo[0].askInfo
- .askJson.askJson[index1].askstitle
- }}
- </div>
- </div>
- </div>
- <div class="a_add_body">
- <div class="a_add_input">
- <el-radio-group
- v-if="
- worksDetail[sIndex].askInfo[0].askInfo
- .askJson.askJson[index1].type ==
- '1' ||
- !worksDetail[sIndex].askInfo[0].askInfo
- .askJson.askJson[index1].type
- "
- v-model="
- worksDetail[sIndex].askInfo[0].askInfo
- .anwer[index1]
- "
- >
- <el-radio
- v-for="(
- item2, checkIndex
- ) in worksDetail[sIndex].askInfo[0]
- .askInfo.askJson.askJson[index1]
- .checkList"
- :key="checkIndex"
- :label="checkIndex"
- disabled
- class="redioStyle"
- ><span v-html="item2"></span
- ></el-radio>
- </el-radio-group>
- <el-checkbox-group
- v-model="
- worksDetail[sIndex].askInfo[0].askInfo
- .anwer[index1]
- "
- v-if="
- worksDetail[sIndex].askInfo[0].askInfo
- .askJson.askJson[index1].type == '2'
- "
- >
- <el-checkbox
- v-for="(
- item2, checkIndex1
- ) in worksDetail[sIndex].askInfo[0]
- .askInfo.askJson.askJson[index1]
- .checkList"
- :key="checkIndex1"
- :label="checkIndex1"
- disabled
- class="redioStyle"
- ><span v-html="item2"></span>
- </el-checkbox>
- </el-checkbox-group>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].chooseInfo.length > 0"
- >
- <div v-for="(lcc, lccindex) in worksDetail[sIndex].chooseInfo" :key="lccindex + 'a'">
- <div
- v-if="lcc.score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{
- lcc.score
- }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">选择题工具{{ lccindex + 1 }}</div>
- </div>
- <div class="a_addBox">
- <div style="font-size: 16px; color: #c7c7c7">
- 题目内容
- </div>
- <div
- :class="
- worksDetail[sIndex].askInfo.length > 1
- ? 'a_add_box'
- : 'isAddBox'
- "
- v-for="(item1, index1) in lcc.chooseInfo.testJson"
- :key="index1 + 'a'"
- >
- <div class="a_add_head">
- <div style="display: flex">
- {{ index1 + 1 + "、" }}
- <div style="font-size: 14px;">
- 题目:{{
- item1.teststitle
- }}
- </div>
- </div>
- <img
- v-if="
- item1.img
- "
- :src="
- item1.img
- "
- style="
- height: 300px;
- margin-top: 10px;
- max-width: 100%;
- "
- />
- </div>
- <div class="a_add_body">
- <div class="a_add_input">
- <el-radio-group
- v-model="
- lcc.chooseInfo.radio[index1]
- "
- v-if="
- item1.type == '1'
- "
- >
- <div class="radioBox">
- <el-radio
- v-for="(
- item2, checkIndex
- ) in item1.checkList"
- :key="checkIndex + 'b'"
- :label="checkIndex"
- disabled
- :class="[item1.answer == checkIndex ? 'redioStyle5':'redioStyle2']"
- >
- <div
- v-if="
- item2 &&
- item2.imgType &&
- item2.imgType == 1
- "
- >
- <div
- class="inImg"
- @click.stop="
- previewImg(item2.src)
- "
- >
- <img :src="item2.src" alt="" />
- </div>
- </div>
- <span v-else v-html="item2"></span>
- </el-radio>
- </div>
- </el-radio-group>
- <el-checkbox-group
- v-model="
- lcc.chooseInfo.radio[index1]
- "
- v-if="
- item1.type == '2'
- "
- >
- <div class="radioBox">
- <el-checkbox
- v-for="(
- item2, checkIndex
- ) in item1.checkList"
- :key="checkIndex + 'c'"
- :label="checkIndex"
- disabled
- :class="[item1.answer.includes(checkIndex) ? 'redioStyle3':'redioStyle4']"
- >
- <div
- style="margin-right: 10px"
- v-if="
- item2 &&
- item2.imgType &&
- item2.imgType == 1
- "
- >
- <div
- class="inImg"
- @click.stop="
- previewImg(item2.src)
- "
- >
- <img :src="item2.src" alt="" />
- </div>
- </div>
- <span v-else v-html="item2"></span>
- </el-checkbox>
- </div>
- </el-checkbox-group>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].wpptInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].wpptInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].wpptInfo[0].score }}
- </div>
- <div
- style="height: 500px"
- @click="
- openFile(worksDetail[sIndex].wpptInfo[0].wpptInfo)
- "
- >
- <div
- @click="
- openFile(
- worksDetail[sIndex].wpptInfo[0].wpptInfo
- )
- "
- style="
- width: 100%;
- height: 500px;
- position: absolute;
- z-index: 999;
- "
- ></div>
- <pdf
- v-if="showPDF"
- :pdfUrl="worksDetail[sIndex].wpptInfo[0].wpptInfo"
- style="width: 100%; height: 95%; overflow: auto"
- ></pdf>
- <iframe
- v-else
- :src="worksDetail[sIndex].wpptInfo[0].wpptInfo"
- frameborder="0"
- width="100%"
- height="100%"
- ></iframe>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].pjInfo.length > 0"
- >
- <div style="width: 100%">
- <div
- v-if="worksDetail[sIndex].pjInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].pjInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">个人评价工具</div>
- </div>
- <div class="evalCss">
- <div
- class="middleBox"
- v-if="
- worksDetail[sIndex].pjInfo[0].answer.eStar
- "
- >
- <div
- class="pfBox"
- v-for="(e, eIndex) in worksDetail[sIndex]
- .pjInfo[0].rateJson"
- :key="eIndex"
- >
- <div class="nameAndrate">
- <div>{{ e.value }}</div>
- <el-rate
- v-model="
- worksDetail[sIndex].pjInfo[0].answer
- .eStar[eIndex]
- "
- disabled
- ></el-rate>
- </div>
- <div v-if="e.detail">{{ e.detail }}</div>
- </div>
- <div class="bz">
- <textarea
- disabled
- rows="4"
- class="pj"
- style="
- padding: 10px 5px;
- width: 95%;
- background: #f7f6f9;
- font-size: 14px;
- text-indent: 10px;
- "
- cols
- v-model="
- worksDetail[sIndex].pjInfo[0].answer
- .eBzText
- "
- placeholder="请输入评价内容..."
- ></textarea>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].xztkInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].xztkInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].xztkInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">选择匹配工具</div>
- </div>
- <div class="select_box2_box">
- <div class="select_box2_img">
- <img
- :src="
- worksDetail[sIndex].xztkInfo[0].selectJson.url
- "
- @click="
- previewImg(
- worksDetail[sIndex].xztkInfo[0].selectJson
- .url
- )
- "
- alt=""
- />
- </div>
- <div class="rightWidthCss">
- <div style="padding-top: 15px">
- <div
- class="select_box2_answer_box"
- v-for="(item2, checkIndex) in worksDetail[
- sIndex
- ].xztkInfo[0].selectJson.select"
- :key="checkIndex"
- >
- <span style="min-width: 30px"
- >{{ checkIndex + 1 }}、</span
- >
- <el-select
- disabled
- v-model="
- worksDetail[sIndex].xztkInfo[0].answer[
- checkIndex
- ]
- "
- placeholder="请选择正确答案"
- >
- <el-option
- v-for="(e, eIndex) in worksDetail[sIndex]
- .xztkInfo[0].selectJson.select"
- :key="eIndex"
- :label="e"
- :value="eIndex"
- >
- </el-option>
- </el-select>
- </div>
- </div>
- <div class="rightAnswerCss">
- <div
- v-for="(a, aIndex) in worksDetail[sIndex]
- .xztkInfo[0].selectJson.answer"
- :key="aIndex"
- class="rightAnswer"
- >
- <div
- v-if="
- worksDetail[sIndex].xztkInfo[0].answer[
- aIndex
- ] === a
- "
- style="color: #767de1"
- >
- 回答正确
- </div>
- <div v-else>回答错误</div>
- <div
- style="margin-left: 10px"
- v-if="
- worksDetail[sIndex].xztkInfo[0].answer[
- aIndex
- ] !== a
- "
- >
- 正确答案:
- </div>
- <div
- :class="
- worksDetail[sIndex].xztkInfo[0].answer[
- aIndex
- ] === a
- ? 'blueCss'
- : 'redCss'
- "
- >
- {{
- worksDetail[sIndex].xztkInfo[0].selectJson
- .select[a]
- }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].lccjInfo.length > 0"
- >
- <div class="sentenBox" v-for="(lcc, lccindex) in worksDetail[sIndex].lccjInfo" :key="lccindex +'d'">
- <div
- v-if="lcc.score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ lcc.score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">排序工具</div>
- </div>
- <div
- v-for="(st, stIndex) in lcc.lccjInfo"
- :key="stIndex+'e'"
- style="padding-bottom: 20px"
- >
- <div
- style="
- padding: 15px 0 10px 20px;
- font-size: 18px;
- "
- >
- 第{{ stIndex + 1 }}题
- </div>
- <div class="isWrong">
- <div
- class="cardList1"
- v-if="st.chooseSenList"
- >
- <div class="cardBox">
- <div
- v-for="(s, sIndex) in st.chooseSenList"
- :key="sIndex+'f'"
- >
- <el-tooltip
- class="item"
- effect="light"
- :content="s"
- placement="top"
- >
- <div class="isCard">
- <div>{{ s }}</div>
- </div>
- </el-tooltip>
- </div>
- </div>
- <div class="cardAnswerBox">
- 组成句子:{{
- st.chooseSenList.join(" ")
- }}
- </div>
- </div>
- <div
- class="answerRight isTj"
- v-if="
- st.chooseSenList.toString() ==
- st.rightAnswer.toString()
- "
- >
- <div class="isTjImg">
- <img
- src="../../../assets/icon/conSentences/right.png"
- alt=""
- />
- </div>
- <div>回答正确</div>
- </div>
- <div
- class="answerRight isTj"
- v-if="
- st.chooseSenList.toString() !=
- st.rightAnswer.toString()
- "
- >
- <div class="isTjImg">
- <img
- src="../../../assets/icon/conSentences/wrong.png"
- alt=""
- />
- </div>
- <div>回答错误</div>
- </div>
- </div>
- <div
- v-if="
- st.chooseSenList.toString() !=
- st.rightAnswer.toString()
- "
- >
- <div style="padding: 15px 0 10px 20px">
- 正确答案如下:
- </div>
- <div
- class="cardList"
- v-if="st.rightAnswer"
- style="
- border: none;
- padding: 10px 0 10px 10px;
- margin: 0;
- "
- >
- <div class="cardBox">
- <div
- v-for="(r, rIndex) in st.rightAnswer"
- :key="rIndex + 'g'"
- >
- <el-tooltip
- class="item"
- effect="light"
- :content="r"
- placement="top"
- >
- <div class="isCard1">
- <div>{{ r }}</div>
- </div>
- </el-tooltip>
- </div>
- </div>
- <div class="cardAnswerBox">
- 组成句子:{{
- st.rightAnswer.join(" ")
- }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].bgInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].bgInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].bgInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-bottom: 10px;
- "
- >
- <div style="font-size: 16px">表格工具</div>
- </div>
- <el-form>
- <div
- class="cont"
- v-html="worksDetail[sIndex].bgInfo[0].bgInfo.text"
- ></div>
- </el-form>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].cocopiInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].cocopiInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].cocopiInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- "
- >
- <div style="font-size: 16px">cocopi工具</div>
- </div>
- <div
- v-for="(c, cIndex) in worksDetail[sIndex]
- .cocopiInfo"
- :key="cIndex"
- >
- <div v-if="c.type == 1">
- <div class="bigImg">
- <img
- :src="c.url"
- @click="previewImg(c.url)"
- alt=""
- />
- </div>
- </div>
- <div
- v-if="c.type == 2 || c.type == 3"
- @click="openFile(c.url, c.type)"
- style="
- width: 80px;
- height: 30px;
- text-align: center;
- line-height: 30px;
- margin: 10px 0;
- "
- >
- <el-button type="primary" size="small"
- >全屏查看</el-button
- >
- </div>
- <div v-if="c.type == 2">
- <div class="workImg">
- <img
- :src="word2"
- @click="openFile(c.url, c.type)"
- alt
- />
- </div>
- </div>
- <div v-if="c.type == 3">
- <div class="workImg">
- <img
- :src="word2"
- @click="openFile(c.url, c.type)"
- alt
- />
- </div>
- </div>
- </div>
- </div>
- <div
- class="left_top"
- v-if="worksDetail[sIndex].wordInfo.length > 0"
- >
- <div
- v-if="worksDetail[sIndex].wordInfo[0].score"
- style="float: right; margin-right: 10px"
- >
- 评分:{{ worksDetail[sIndex].wordInfo[0].score }}
- </div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-bottom: 10px;
- "
- >
- <div style="font-size: 16px">文档工具</div>
- </div>
- <el-form>
- <div
- class="cont"
- v-html="
- worksDetail[sIndex].wordInfo[0].wordInfo.text
- "
- ></div>
- </el-form>
- </div>
- </div>
- </div>
- </div>
- <div class="right_score" :class="{ rightScoreFullBox: full }">
-
- <div
- class="sd_score"
- style="
- box-sizing: border-box;
- width: 100%;
- box-shadow: none;
- position: relative;
- "
- >
- <div class="worksTimeBlack">
- <div class="worksTimeBlackTit">
- <div>
- 任务得分: <span style="color: rgba(54, 129, 252, 1);margin-left: 5px;">{{ totalScore(worksDetail[sIndex].rateList) }}</span>分
- </div>
- </div>
- <div class="worksTime">
- 作业提交时间:<span style="width: auto"
- >{{ worksDetail[sIndex].time }}
- </span>
- </div>
- </div>
-
-
- <div v-if="worksDetail[sIndex].eList.length">
-
- <div>
- <div class="score_boxTit"><span>分数详情</span></div>
- <div
- class="score_box"
- v-for="(item, index) in worksDetail[sIndex].eList"
- :key="index"
- >
- <el-tooltip
- class="item"
- effect="dark"
- v-if="worksDetail[sIndex].state == 5"
- :content="item.detail"
- placement="top-start"
- >
- <div class="RootImgBlock">
- <img
- v-if="item.isai == 1"
- class="RootImg"
- src="../../../assets/icon/conSentences/Brootper.svg"
- alt=""
- />
- {{ item.detail }}
- </div>
- </el-tooltip>
- <el-tooltip
- class="item"
- effect="dark"
- v-else
- :content="item.value"
- placement="top-start"
- >
- <div class="RootImgBlock">
- <img
- v-if="item.isai == 1"
- class="RootImg"
- src="../../../assets/icon/conSentences/Brootper.svg"
- alt=""
- />
- {{ item.value }}
- </div>
- </el-tooltip>
- <el-rate
- class="rate_size"
- style="min-width: 120px"
- v-model="worksDetail[sIndex].rateList[item.detail]"
- @change="getStar(sIndex)"
- ></el-rate>
- </div>
- </div>
- <div class="worksTarget" v-if="isShow(worksDetail[sIndex].eList)"><span>目标</span></div>
- <div class="worksTargetCon" v-if="isShow(worksDetail[sIndex].eList)">
- <div v-for="(item,tarIndex) in worksDetail[sIndex].eList" :key="tarIndex">
- <span v-if="worksDetail[sIndex].state == 5"> {{ item.target }}</span>
- <span v-else> {{ item.target[item.target.length-1] }}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="buttonCss">
- <el-button type="primary" size="small" @click="updatePj"
- >保存评分</el-button
- >
- </div>
- </div>
- </el-dialog>
- </div>
- <div class="student_page" v-if="!typeCheck">
- <el-pagination
- background
- layout="prev, pager, next"
- :page-size="10"
- :total="total"
- :current-page.sync="page"
- v-if="page"
- @current-change="handleCurrentChange"
- ></el-pagination>
- </div>
- </div>
- <el-dialog :visible.sync="pictureDialog" size="tiny">
- <img width="100%" :src="dialogImageUrl" alt />
- </el-dialog>
- <el-dialog
- title="课程评分"
- :visible.sync="dataVisible"
- :append-to-body="true"
- width="1100px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <div>
- <div class="a_addBox2">
- <StudentData :studentInfo="studentInfo"></StudentData>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dataVisible = false">关 闭</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="查看选择题"
- :visible.sync="dialogVisible4"
- :append-to-body="true"
- width="800px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <div>
- <div
- class="a_add_title"
- style="
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- "
- >
- <div style="font-size: 20px">{{ askJson.askTitle }}</div>
- </div>
- <div class="a_addBox">
- <div style="font-size: 16px; color: #c7c7c7">内容</div>
- <div
- class="a_add_box"
- v-for="(item, index) in askJson.askJson"
- :key="index"
- >
- <div class="a_add_head">
- <div style="display: flex">
- {{ index + 1 + "、" }}
- <div>题目:{{ item.askstitle }}</div>
- </div>
- </div>
- <div class="a_add_body">
- <div class="a_add_input">
- <el-radio-group v-model="askJson.radio[index]">
- <el-radio
- v-for="(item3, checkIndex1) in item.checkList"
- :key="checkIndex1"
- :label="checkIndex1"
- class="redioStyle"
- disabled
- >{{ item3 }}</el-radio
- >
- </el-radio-group>
- </div>
- </div>
- </div>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button type="primary" @click="dialogVisible4 = false"
- >关 闭</el-button
- >
- </span>
- </el-dialog>
- <el-dialog
- title="文件预览"
- :visible.sync="dialogVisible6"
- width="100%"
- :before-close="handleClose"
- class="worksDialogCSS"
- :append-to-body="true"
- >
- <div slot="title" class="header-title">
- <div style="color: #fff">文件预览</div>
- </div>
- <pdf
- v-if="showPDF"
- :pdfUrl="pptImgUrl"
- style="width: 100%; height: 95%; overflow: auto"
- ></pdf>
- <iframe
- v-else
- :src="pptImgUrl"
- frameborder="0"
- width="100%"
- style="height: 95%;"
- ></iframe>
- </el-dialog>
- <el-dialog
- title="文件预览"
- :visible.sync="worksDialog"
- :before-close="handleClose"
- class="worksDialogCSS"
- :append-to-body="true"
- >
- <div slot="title" class="header-title">
- <div style="color: #fff">导出作业集</div>
- </div>
- <exportWorksDialog :key="exportW" :digNum="digNum" :oid="oid" :worksDialog.sync="worksDialog" :worksDialogCon="worksDialogCon" :uid="exportPdfSetUid" :cid="id"></exportWorksDialog>
- </el-dialog>
- </div>
- </template>
- <script>
- import StudentData from "./studentData";
- import exportWorksDialog from "./exportWorksDialog";
- import pdf from "./vpdf";
- import htmlDocx from "html-docx-js/dist/html-docx";
- import saveAs from "file-saver";
- import html2canvas from "html2canvas";
- import jspdf from "jspdf";
- export default {
- components: {
- StudentData,
- pdf,
- exportWorksDialog
- },
- props: ["cid", "uid", "ooid","DState"],
- data() {
- return {
- tableHeight: "500px",
- isLoading: false,
- studentLoading:false,
- id: this.cid,
- userid: this.uid,
- oid: this.ooid,
- studentId: "",
- formLabelWidth: "100px",
- dialogImageUrl: "",
- pictureDialog: false,
- dialogVisible: false,
- dialogVisible1: false,
- dialogVisible2: false,
- dialogVisible3: false,
- dialogVisible4: false,
- dataVisible: false,
- full: true,
- isStar: 0,
- studentInfo: {},
- courseByUser: "诗词中的植物",
- userName: "林点",
- answerName: "宿赞公房",
- studentAnswer: "雨荒深院菊,霜倒半池莲.唐杜甫《宿赞公房》",
- commentCount: 0,
- publicIndex: 0,
- allWorks: [],
- playerOptions: {
- playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
- autoplay: false, //如果true,浏览器准备好时开始回放。
- muted: false, // 默认情况下将会消除任何音频。
- loop: false, // 导致视频一结束就重新开始。
- preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
- language: "zh-CN",
- aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
- fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
- sources: [
- {
- type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
- src: "", //url地址require("../../../assets/media/aaa.mp4")
- },
- ],
- // poster: require("../../../assets/tu31.png"), //你的封面地址
- // poster: dataRes.imgUrl, //你的封面地址
- notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
- controlBar: {
- timeDivider: true, //当前时间和持续时间的分隔符
- durationDisplay: true, //显示持续时间
- remainingTimeDisplay: false, //是否显示剩余时间功能
- fullscreenToggle: true, //全屏按钮
- },
- },
- playerO: {},
- commentName: "谭子松",
- commentTime: "2021/2/5",
- commentAnswer:
- "作为家长我很高兴看到孩子的进步,希望这个进步只是一个开始,在新学期能够继续延续,这样才能不负老师的期望",
- tableData: [],
- uploadBoolean: false,
- studentMessage: [],
- subject: "",
- sClass: "",
- stageIndex: "",
- taskCount: "",
- navId: "",
- chooseDy: "",
- uname: "",
- choseClass:"",
- chooseTask: "",
- subjectJuri: [],
- projectJuri: [],
- pptImgUrl: "",
- grade: [],
- mr: require("../../../assets/icon/wheel.png"),
- tx: require("../../../assets/avatar.png"),
- projectchoose: "",
- scopeId: "",
- scopeId1: "",
- thumbnail: [],
- rateList: {
- ca: 0,
- sia: 0,
- eta: 0,
- pia: 0,
- lra: 0,
- content: "",
- },
- rateParams: [],
- page: 1,
- total: 0,
- worksDetail: [],
- suserId: "",
- sInfo: {},
- chapInfo: [],
- showPDF: false,
- dialogVisible6: false,
- vedio: [],
- file: [],
- tType: 0,
- chartObj: [],
- pptImgUrl: "",
- ooption: [],
- option: {
- tooltip: {
- trigger: "item",
- },
- series: [
- {
- name: "量规评分",
- type: "pie",
- radius: "70%",
- center: ["50%", "50%"],
- data: [
- { value: 0, name: "意识能力" },
- { value: 0, name: "科学探究能力" },
- { value: 0, name: "实践创新能力" },
- { value: 0, name: "学习反思能力" },
- { value: 0, name: "工程思维能力" },
- ],
- itemStyle: {
- emphasis: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: "rgba(0, 0, 0, 0.5)",
- },
- normal: {
- label: {
- show: true,
- formatter: "{d}%",
- inside: true,
- position: "inner",
- },
- labelLine: { show: false },
- },
- },
- },
- ],
- },
- // 雷达图的数据
- radarOption: {
- splitNumber: 5,
- tooltip: {
- triggerOn: "mousemove",
- //雷达图的tooltip不会超出div,也可以设置position属性,position定位的tooltip 不会随着鼠标移动而位置变化,不友好
- confine: true,
- enterable: true, //鼠标是否可以移动到tooltip区域内
- backgroundColor: "rgba(255,255,255,0.7)",
- textStyle: {
- // 文字样式
- align: "left",
- },
- left: "right",
- top: "bottom",
- },
- radar: {
- radius: ["0%", "70%"],
- shape: "circle",
- center: ["50%", "50%"],
- axisName: {
- textStyle: {
- // 文字样式
- color: "#58a5e6",
- },
- formatter: function (value, indicator) {
- // value = value.replace(/\S{2}/g, function (match) {
- // return match + "\n";
- // });
- return value;
- },
- },
- indicator: [
- // 雷达图的指示器,用来指定雷达图中的多个变量(维度)
- ],
- },
- // 雷达图背景的颜色,在这儿随便设置了一个颜色,完全不透明度为0,就实现了透明背景
- splitArea: {
- show: true,
- areaStyle: {
- color: "rgba(255,0,0,0)", // 图表背景的颜色
- },
- },
- splitLine: {
- show: true,
- lineStyle: {
- width: 1,
- color: "rgba(131,141,158,.1)", // 设置网格的颜色
- },
- },
- series: [
- {
- name: "能力图", // tooltip中的标题
- type: "radar", // 表示是雷达图
- symbol: "circle", // 拐点的样式,还可以取值'rect','angle'等
- symbolSize: 8, // 拐点的大小
- areaStyle: {
- normal: {
- width: 1,
- opacity: 0.2,
- },
- },
- data: [
- {
- // 设置各个指标原始值
- value: [],
- // 设置区域边框和区域的颜色
- itemStyle: {
- normal: {
- color: "#58a5e6",
- lineStyle: {
- color: "#58a5e6",
- },
- },
- },
- },
- ],
- },
- ],
- },
- askJson: {},
- dyList: [],
- dyList2: [],
- userAarray: [],
- classArray:[],
- isPre: false,
- isNext: false,
- checkJson: [],
- typeCheck: false,
- word2: require("../../../assets/icon/word2.png"),
- worksLoading:false,
- cutTabNum:0,
- allWorkData:[],
- worksDialog : false,
- worksDialogCon : {},
- exportPdfSetUid:'',
- exportW:0,
- digNum:0
- };
- },
- computed: {
- totalScore(){
- return function (val) {
- let sco = 0
- let num = 0
- for (const key in val) {
- if (val[key] && key != 'content') {
- sco += val[key] * 1
- }
- num += 1
- }
- if (sco == 0) return '0.0'
-
- return (sco / (num - 1)).toFixed(1)
- }
- },
- isShow(){
- return function (val) {
- let num = 0
- val.forEach(i => {
- if (i.target) {
- num++
- }
- });
-
- return num*1
- }
- }
- },
- watch: {
- typeCheck(newValue, oldValue) {
- this.loading = true;
- this.isLoading = true;
- this.tableData = [];
- if (newValue) {
- if (this.cutTabNum==0) {
- this.getWorks1();
- }
- if (this.cutTabNum==1) {
- this.getStageWorks2()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks2()
- }
- } else {
- this.page = 1;
- if (this.cutTabNum==0) {
- this.getWorks()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks()
- }
- // this.getWorks();
- }
- },
- },
- mounted() {
- this.$nextTick(function () {
- this.tableHeight =
- window.innerHeight - this.$refs.table.$el.offsetTop - 200;
- if (this.tableHeight <= 530) {
- this.tableHeight = 530;
- }
- // 监听窗口大小变化
- let self = this;
- window.onresize = function () {
- self.tableHeight =
- window.innerHeight - self.$refs.table.$el.offsetTop - 200;
- if (self.tableHeight <= 530) {
- self.tableHeight = 530;
- }
- };
- });
- },
- methods: {
- // 导出所有作业
- exportPdfSetAllWork(){
- this.worksDialog = true;
- this.digNum = 1
- this.exportW++
-
- },
-
- // 按任务查看导出作业集
- exportPdfSetBtn(uid, con) {
- this.worksDialog = true;
- this.worksDialogCon = con;
- this.exportPdfSetUid = uid;
- this.digNum = 0
- this.exportW++
- },
- cutTabData(val){
- this.cutTabNum = val;
- this.page = 1;
-
- if (this.typeCheck) {
- if (val==0) {
- this.getWorks1()
- }
- if (val==1) {
- this.getStageWorks2()
- }
- if (val==2) {
- this.getTaskWorks2()
- }
- }else{
- if (val==0) {
- this.getWorks()
- }
- if (val==1) {
- this.getStageWorks()
- }
- if (val==2) {
- this.getTaskWorks()
- }
- }
-
- },
- getStageWorks(){
- this.isLoading = true;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage: this.chooseDy,
- task: this.chooseTask,
- page: this.page,
- };
- this.ajax
- .get(this.$store.state.api + "getCourseStageWorks", params) //getCourseWorks3
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- this.classArray = res.data[1]
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getStageWorks2(){
- this.isLoading = true;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage: this.chooseDy,
- task: this.chooseTask
- };
- this.ajax
- .get(this.$store.state.api + "getCourseStageWorks2", params) //getCourseWorks3
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getTaskWorks(){
- this.isLoading = true;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage:this.DState!=1 ? 0 : this.chooseDy,
- task: this.chooseTask,
- page: this.page,
- };
- this.ajax
- .get(this.$store.state.api + "getCourseTaskWorks", params) //getCourseWorks3
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- this.classArray = res.data[1]
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getTaskWorks2(){
- this.isLoading = true;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage:this.DState!=1 ? 0 : this.chooseDy,
- task: this.chooseTask
- };
- this.ajax
- .get(this.$store.state.api + "getCourseTaskWorks2", params) //getCourseWorks3
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getPdf(){
- this.worksLoading = true
- let domHeight = this.$refs.reportPdf.offsetHeight;
- console.log('this.$refs.reportPdf',this.$refs.reportPdf.offsetHeight);
- let maxHeight = 64257;
- html2canvas(this.$refs.reportPdf, {
- useCORS: true, // 如果截图的内容里有图片,可能会有跨域的情况,加上这个参数,解决文件跨域问题
- scale: (maxHeight/domHeight) > 1 ? 1: (maxHeight/domHeight)
- }).then((canvas) => {
- const contentWidth = canvas.width;
- const contentHeight = canvas.height;
- let pageHeight = contentWidth / 592.28 * 841.89;
- let leftHeight = contentHeight;
- //页面偏移
- var position = 0;
- //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
- var imgWidth = 595.28; // A4 宽度
- var imgHeight = 592.28/contentWidth * contentHeight; // A4总高度
- var pageData = canvas.toDataURL('image/jpeg', 1.0);
- var pdf = new jspdf('', 'pt', [contentWidth, contentHeight]);
- //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89)
- //当内容未超过pdf一页显示的范围,无需分页
- // if (leftHeight < pageHeight) {
- pdf.addImage(pageData, 'JPEG', 0, 0, contentWidth, contentHeight );
-
- pdf.save( this.allWorks.course+'-作业集' + '-'+ this.allWorks.sName+'.pdf')
- this.worksLoading = false
- })
- .catch((err) => {
- this.worksLoading = false
- console.log(err);
- });
- },
-
- changeClass(){//切换班级
- this.searchWork2();
- this.getCourseDetail()
- },
- previewImg(url) {
- this.$hevueImgPreview(url);
- },
- lookData(uid) {
- let params = {
- uid: uid,
- cid: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "selectWorksDetail", params)
- .then((res) => {
- this.studentInfo = res.data[0][0];
- this.dataVisible = true;
- })
- .catch((err) => {
- console.error(err);
- });
- },
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return "even_row";
- } else {
- return "";
- }
- },
- handleClose(done) {
- done();
- },
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return "even_row";
- } else {
- return "";
- }
- },
- handleCurrentChange(val) {
- this.page = val;
- if (this.cutTabNum==0) {
- this.getWorks()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks()
- }
- // this.getWorks();
- },
- lookWork(id, uid, type, index,con) {
- this.scopeId1 = id;
- this.studentId = uid;
- let params = {
- uid: uid,
- cid: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "selectAllWorksDetail", params)
- .then((res) => {
- var b = res.data[0].reduce((result, item) => {
- const key = item.stage + "-" + item.task;
- if (!result[key]) {
- result[key] = item;
- }
- return result;
- }, {});
- // 将结果转换为数组形式
- b = Object.values(b);
- var c = b.sort(function (x, y) {
- // 首先比较stage字段
- if (x.stage !== y.stage) {
- return parseInt(x.stage) - parseInt(y.stage);
- }
- // 如果stage字段相同,则比较task字段
- return parseInt(x.task) - parseInt(y.task);
- });
- this.sInfo = c;
- var chapters = [],
- eList = [],
- _ooption = [],
- _rate = [],
- _rateList = [];
- console.log('res.data',res.data);
- var worksDetail = res.data[1];
- // let worksDetailCopy = JSON.parse(JSON.stringify(worksDetail))
- // console.log('worksDetailCopy',worksDetailCopy);
- // this.scopeId = res.data[2][0].id;
- // var scopeId = res.data[2][0].id;
- var askInfo = res.data[3];
- var answerInfo = res.data[4];
- var pptInfo = res.data[5];
- var chooseInfo = res.data[6];
- var pjInfo = res.data[7]; //个人评价作业
- var xztkInfo = res.data[8]; //选择匹配作业
- var lccjInfo = res.data[9]; //排序作业
- var bgInfo = res.data[10]; //表格作业
- var cocopiInfo = res.data[11]; //cocopi或源码编辑作业
- var wordInfo = res.data[12]; //文档作业
- var workEvaList = res.data[13];
- var workJson = {};
- let checkJson = {};
- for (var k = 0; k < res.data[0].length; k++) {
- this.allWorks = res.data[0][k];
- if (this.chapInfo.length == 0) {
- this.chapInfo.push(JSON.parse(res.data[0][k].chapters));
- } else {
- for (var i = 0; i < this.chapInfo.length; i++) {
- if (
- JSON.stringify(res.data[0][k].chapters) ===
- JSON.stringify(this.chapInfo[i])
- ) {
- continue;
- }
- }
- }
- if (chapters.length == 0) {
- chapters.push(JSON.parse(res.data[0][k].chapters));
- } else {
- for (var i = 0; i < chapters.length; i++) {
- if (
- JSON.stringify(res.data[0][k].chapters) ===
- JSON.stringify(chapters[i])
- ) {
- continue;
- }
- }
- }
- if (
- !chapters[0][res.data[0][k].stage].chapterInfo[0].taskJson[
- res.data[0][k].task
- ]
- ) {
- continue;
- }
- // checkJson[stagetask] = {};
- let stagetask = res.data[0][k].stage + "-" + res.data[0][k].task;
- if (!workJson[stagetask]) {
- workJson[stagetask] = {
- img: [],
- imgIndex: 0,
- eList: [],
- rateList: {},
- askInfo: [],
- answerInfo: [],
- wpptInfo: [],
- chooseInfo: [],
- pjInfo: [],
- xztkInfo: [],
- lccjInfo: [],
- bgInfo: [],
- cocopiInfo: [],
- wordInfo: [],
- scopeId: res.data[0][k].id,
- state: res.data[0][k].state,
- stagetask: stagetask,
- time: "",
- };
- checkJson[stagetask] = {
- stagetask: stagetask,
- };
- }
- workJson[stagetask].time = res.data[0][k].time;
- for (var i = 0; i < askInfo.length; i++) {
- if (
- res.data[0][k].stage == askInfo[i].stage &&
- res.data[0][k].task == askInfo[i].task &&
- res.data[0][k].tool == askInfo[i].tool
- ) {
- const element = askInfo[i];
- let a = JSON.parse(element.content)[0];
- let e = [];
- for (var y = 0; y < a.askJson.length; y++) {
- if (a.askJson[y].type == "2") {
- e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
- } else {
- e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
- }
- }
- a.radio = e;
- workJson[stagetask].askInfo.push({
- askInfo: a,
- score: askInfo[i].score
- ? JSON.parse(askInfo[i].score).wScore
- : askInfo[i].score,
- });
- // checkJson[stagetask].allRight = 0;
- checkJson[stagetask].allRight = 0
- var isCount = 0;
- for (var p = 0; p < a.radio.length; p++) {
- if (!checkJson[stagetask][p]) {
- checkJson[stagetask][p] = {
- checkCount: [],
- checkPerson: [],
- };
- }
- if (!checkJson[stagetask][p].checkCount.length) {
- checkJson[stagetask][p].checkCount = [];
- let _askItemCount = a.askJson[p].askCount;
- for (var aic = 0; aic < _askItemCount; aic++) {
- checkJson[stagetask][p].checkCount.push(0);
- }
- }
- if (a.radio[p] instanceof Array) {
- if (
- workJson[stagetask].askInfo[0].askInfo.askJson[p].answer
- .sort()
- .join(",") == a.radio[p].sort().join(",")
- ) {
- checkJson[stagetask][p].right = 100;
- isCount += checkJson[stagetask][p].right;
- } else {
- checkJson[stagetask][p].right = 0;
- isCount += 0;
- }
- for (var q = 0; q < a.radio[p].length; q++) {
- checkJson[stagetask][p].checkPerson[parseInt(a.radio[p][q])]
- ? checkJson[stagetask][p].checkPerson[
- parseInt(a.radio[p][q])
- ].push(res.data[0][k].sName)
- : (checkJson[stagetask][p].checkPerson[
- parseInt(a.radio[p][q])
- ] = [res.data[0][k].sName]);
- checkJson[stagetask][p].checkCount[parseInt(a.radio[p][q])]
- ? checkJson[stagetask][p].checkCount[
- parseInt(a.radio[p][q])
- ]++
- : (checkJson[stagetask][p].checkCount[
- parseInt(a.radio[p][q])
- ] = 1);
- }
- } else {
- if (
- workJson[stagetask].askInfo[0].askInfo.askJson[p]
- .answer == a.radio[p]
- ) {
- checkJson[stagetask][p].right = 100;
- isCount += checkJson[stagetask][p].right;
- } else {
- checkJson[stagetask][p].right = 0;
- isCount += 0;
- }
- if (parseInt(a.radio[p]) || parseInt(a.radio[p]) == 0) {
- checkJson[stagetask][p].checkPerson[parseInt(a.radio[p])]
- ? checkJson[stagetask][p].checkPerson[
- parseInt(a.radio[p])
- ].push(res.data[0][k].sName)
- : (checkJson[stagetask][p].checkPerson[
- parseInt(a.radio[p])
- ] = [res.data[0][k].sName]);
- checkJson[stagetask][p].checkCount[parseInt(a.radio[p])]
- ? checkJson[stagetask][p].checkCount[
- parseInt(a.radio[p])
- ]++
- : (checkJson[stagetask][p].checkCount[
- parseInt(a.radio[p])
- ] = 1);
- }
- }
- }
- checkJson[stagetask].allRight = isCount / a.radio.length;
- }
- }
- // console.log(checkJson);
- for (var i = 0; i < chooseInfo.length; i++) {
- if (
- res.data[0][k].stage == chooseInfo[i].stage &&
- res.data[0][k].task == chooseInfo[i].task &&
- res.data[0][k].tool == chooseInfo[i].tool
- ) {
- const element1 = chooseInfo[i];
- let t = JSON.parse(element1.content)[0].testJson;
- let e = [];
- for (var y = 0; y < t.testJson.length; y++) {
- if (t.testJson[y].type == "2") {
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
- } else {
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
- }
- }
- t.radio = e;
- workJson[stagetask].chooseInfo.push({
- chooseInfo: t,
- score: chooseInfo[i].score
- ? JSON.parse(chooseInfo[i].score).wScore
- : chooseInfo[i].score,
- });
- checkJson[stagetask].allRight = 0;
- var isCount = 0;
- for (var p = 0; p < t.radio.length; p++) {
- if (!checkJson[stagetask][p]) {
- checkJson[stagetask][p] = {
- checkCount: [],
- checkPerson: [],
- };
- }
- if (!checkJson[stagetask][p].checkCount.length) {
- checkJson[stagetask][p].checkCount = [];
- let _askItemCount = t.testJson[p].testItem;
- for (var aic = 0; aic < _askItemCount; aic++) {
- checkJson[stagetask][p].checkCount.push(0);
- }
- }
- if (t.radio[p] instanceof Array) {
- if (
- t.testJson[p].answer.sort().join(",") ==
- t.radio[p].sort().join(",")
- ) {
- checkJson[stagetask][p].right = 100;
- isCount += checkJson[stagetask][p].right;
- } else {
- checkJson[stagetask][p].right = 0;
- isCount += 0;
- }
- for (var q = 0; q < t.radio[p].length; q++) {
- checkJson[stagetask][p].checkPerson[
- parseInt(t.radio[p][q])
- ]
- ? checkJson[stagetask][p].checkPerson[
- parseInt(t.radio[p][q])
- ].push(res.data[0][k].sName)
- : (checkJson[stagetask][p].checkPerson[
- parseInt(t.radio[p][q])
- ] = [res.data[0][k].sName]);
- checkJson[stagetask][p].checkCount[
- parseInt(t.radio[p][q])
- ]
- ? checkJson[stagetask][p].checkCount[
- parseInt(t.radio[p][q])
- ]++
- : (checkJson[stagetask][p].checkCount[
- parseInt(t.radio[p][q])
- ] = 1);
- }
- } else {
- if (t.testJson[p].answer == t.radio[p]) {
- checkJson[stagetask][p].right = 100;
- isCount += checkJson[stagetask][p].right;
- } else {
- checkJson[stagetask][p].right = 0;
- isCount += 0;
- }
- if (parseInt(t.radio[p]) || parseInt(t.radio[p]) == 0) {
- checkJson[stagetask][p].checkPerson[parseInt(t.radio[p])]
- ? checkJson[stagetask][p].checkPerson[
- parseInt(t.radio[p])
- ].push(res.data[0][k].sName)
- : (checkJson[stagetask][p].checkPerson[
- parseInt(t.radio[p])
- ] = [res.data[0][k].sName]);
- checkJson[stagetask][p].checkCount[parseInt(t.radio[p])]
- ? checkJson[stagetask][p].checkCount[
- parseInt(t.radio[p])
- ]++
- : (checkJson[stagetask][p].checkCount[
- parseInt(t.radio[p])
- ] = 1);
- }
- }
- }
- checkJson[stagetask].allRight = isCount / t.radio.length;
- }
- }
- }
- for (var i = 0; i < worksDetail.length; i++) {
- workJson[worksDetail[i].stage + "-" + worksDetail[i].task].img.push(
- {
- src: worksDetail[i].content,
- id: i,
- score: worksDetail[i].score
- ? JSON.parse(worksDetail[i].score).wScore
- : worksDetail[i].score,
- }
- );
- }
- for (var i = 0; i < pptInfo.length; i++) {
- var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
- if (
- a.indexOf(
- pptInfo[i].content
- .split(".")
- [pptInfo[i].content.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- var a =
- "https://view.officeapps.live.com/op/view.aspx?src=" +
- encodeURIComponent(pptInfo[i].content);
- workJson[pptInfo[i].stage + "-" + pptInfo[i].task].wpptInfo.push({
- wpptInfo: a,
- score: pptInfo[i].score
- ? JSON.parse(pptInfo[i].score).wScore
- : pptInfo[i].score,
- });
- this.showPDF = false;
- } else if (
- pptInfo[i].content
- .split(".")
- [
- pptInfo[i].content.split(".").length - 1
- ].toLocaleUpperCase() == "PDF"
- ) {
- workJson[pptInfo[i].stage + "-" + pptInfo[i].task].wpptInfo.push({
- wpptInfo: pptInfo[i].content,
- score: pptInfo[i].score
- ? JSON.parse(pptInfo[i].score).wScore
- : pptInfo[i].score,
- });
- this.showPDF = true;
- }
- }
- for (var i = 0; i < answerInfo.length; i++) {
- const element = answerInfo[i];
- workJson[
- answerInfo[i].stage + "-" + answerInfo[i].task
- ].answerInfo.push({
- answerInfo: JSON.parse(element.content)[0],
- score: answerInfo[i].score
- ? JSON.parse(answerInfo[i].score).wScore
- : answerInfo[i].score,
- });
- }
- for (var i = 0; i < pjInfo.length; i++) {
- var pj = pjInfo[i];
- var a =
- chapters[0][pjInfo[i].stage].chapterInfo[0].taskJson[
- pjInfo[i].task
- ].toolChoose;
- var rateJson = [];
- for (var z = 0; z < a.length; z++) {
- if (a[z].tool[0] == 40) {
- rateJson = a[z].rateJson;
- }
- }
- workJson[pjInfo[i].stage + "-" + pjInfo[i].task].pjInfo.push({
- answer: JSON.parse(pj.content),
- rateJson: rateJson,
- score: pjInfo[i].score
- ? JSON.parse(pjInfo[i].score).wScore
- : pjInfo[i].score,
- });
- }
- for (var i = 0; i < xztkInfo.length; i++) {
- if (xztkInfo[i].type == 7) {
- var xztk = xztkInfo[i];
- var a =
- chapters[0][xztkInfo[i].stage].chapterInfo[0].taskJson[
- xztkInfo[i].task
- ].toolChoose;
- var selectJson = [];
- for (var z = 0; z < a.length; z++) {
- if (a[z].tool[0] == 41) {
- selectJson = a[z].selectJson;
- }
- }
- workJson[
- xztkInfo[i].stage + "-" + xztkInfo[i].task
- ].xztkInfo.push({
- answer: xztk.content.split(",").map(Number),
- selectJson: selectJson,
- score: xztkInfo[i].score
- ? JSON.parse(xztkInfo[i].score).wScore
- : xztkInfo[i].score,
- });
- }
- }
- // 排序
- for (var i = 0; i < lccjInfo.length; i++) {
- var lccj = lccjInfo[i];
- workJson[lccjInfo[i].stage + "-" + lccjInfo[i].task].lccjInfo.push({
- lccjInfo: JSON.parse(lccj.content),
- score: lccjInfo[i].score
- ? JSON.parse(lccjInfo[i].score).wScore
- : lccjInfo[i].score,
- });
- }
- for (var i = 0; i < bgInfo.length; i++) {
- var bg = bgInfo[i];
- workJson[bgInfo[i].stage + "-" + bgInfo[i].task].bgInfo.push({
- bgInfo: JSON.parse(bg.content),
- score: bgInfo[i].score
- ? JSON.parse(bgInfo[i].score).wScore
- : bgInfo[i].score,
- });
- }
- for (var i = 0; i < cocopiInfo.length; i++) {
- var cocopi = cocopiInfo[i];
- var c = ["DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
- var d = [
- "BMP",
- "PJP",
- "APNG",
- "PNG",
- "JPG",
- "GIF",
- "SVG",
- "JPEG",
- "JPG",
- "ICO",
- "PGPEG",
- "AVIF",
- ];
- var t = 0; //t = 1是图片 2是文档 3是pdf
- if (
- d.indexOf(
- cocopi.content
- .split(".")
- [cocopi.content.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- t = 1;
- workJson[
- cocopiInfo[i].stage + "-" + cocopiInfo[i].task
- ].cocopiInfo.push({
- url: cocopi.content,
- type: t,
- score: cocopiInfo[i].score
- ? JSON.parse(cocopiInfo[i].score).wScore
- : cocopiInfo[i].score,
- });
- } else if (
- c.indexOf(
- cocopi.content
- .split(".")
- [cocopi.content.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- t = 2;
- var a =
- "https://view.officeapps.live.com/op/view.aspx?src=" +
- encodeURIComponent(cocopi.content);
- workJson[
- cocopiInfo[i].stage + "-" + cocopiInfo[i].task
- ].cocopiInfo.push({
- url: a,
- type: t,
- score: cocopiInfo[i].score
- ? JSON.parse(cocopiInfo[i].score).wScore
- : cocopiInfo[i].score,
- });
- } else if (
- cocopi.content
- .split(".")
- [cocopi.content.split(".").length - 1].toLocaleUpperCase() ==
- "PDF"
- ) {
- t = 3;
- workJson[
- cocopiInfo[i].stage + "-" + cocopiInfo[i].task
- ].cocopiInfo.push({
- url: cocopi.content,
- type: t,
- score: cocopiInfo[i].score
- ? JSON.parse(cocopiInfo[i].score).wScore
- : cocopiInfo[i].score,
- });
- }
- }
- for (var i = 0; i < wordInfo.length; i++) {
- var word = wordInfo[i];
- workJson[wordInfo[i].stage + "-" + wordInfo[i].task].wordInfo.push({
- wordInfo: JSON.parse(word.content),
- score: wordInfo[i].score
- ? JSON.parse(wordInfo[i].score).wScore
- : wordInfo[i].score,
- });
- }
- // const result = workJson.filter((item, index, arr) => {
- // return (
- // arr.findIndex((temp) => temp.stagetask === item.stagetask) ===
- // index
- // );
- // });
- let result = [];
- let checkJsonArray = [];
- for (var wi = 0; wi < Object.keys(workJson).length; wi++) {
- result.push(workJson[Object.keys(workJson)[wi]]);
- checkJsonArray.push(checkJson[Object.keys(checkJson)[wi]]);
- }
- var resultNewArray = result.sort(function (x, y) {
- // 以stagetask字段为排序依据
- var x_parts = x.stagetask.split("-");
- var y_parts = y.stagetask.split("-");
- // 首先比较第一个数字
- if (x_parts[0] !== y_parts[0]) {
- return parseInt(x_parts[0]) - parseInt(y_parts[0]);
- }
- // 如果第一个数字相同,则比较第二个数字
- return parseInt(x_parts[1]) - parseInt(y_parts[1]);
- });
- var checkJsonNewArray = checkJsonArray.sort(function (x, y) {
- // 以stagetask字段为排序依据
- var x_parts = x.stagetask.split("-");
- var y_parts = y.stagetask.split("-");
- // 首先比较第一个数字
- if (x_parts[0] !== y_parts[0]) {
- return parseInt(x_parts[0]) - parseInt(y_parts[0]);
- }
- // 如果第一个数字相同,则比较第二个数字
- return parseInt(x_parts[1]) - parseInt(y_parts[1]);
- });
- result = resultNewArray;
-
- checkJsonArray = checkJsonNewArray;
- this.checkJson = checkJsonArray;
- for (var l = 0; l < b.length; l++) {
- var eListOld =
- chapters[0][b[l].stage].chapterInfo[0].taskJson[b[l].task].eList;
- if (eListOld && eListOld.length) {
- var eListNew = Object.keys(eListOld).map(function (key) {
- return {
- detail: eListOld[key].detail,
- score: eListOld[key].score,
- value: eListOld[key].value,
- isai: eListOld[key].isai,
- target: eListOld[key].target
- };
- });
- eList = eListNew;
-
- if (eList && eList.length) {
- _ooption = [];
- result[l].eList = eList;
- for (var i = 0; i < eList.length; i++) {
- _ooption.push({ value: 0, name: eList[i].value });
- result[l].rateList[eList[i].detail] = 0;
- }
- result[l].rateList.content = "";
- this.ooption[l] = _ooption;
- }
- if (b[l].rate && eList && eList.length) {
- _rate[l] = JSON.parse(b[l].rate);
- _rateList[l] = Object.keys(JSON.parse(b[l].rate));
- for (var i = 0; i < _rateList[l].length; i++) {
- var _c = Object.keys(result[l].rateList);
- if (_c.indexOf(_rateList[l][i]) != -1) {
- result[l].rateList[_rateList[l][i]] =
- _rate[l][_rateList[l][i]];
- }
- }
- for (var i = 0; i < this.ooption[l].length; i++) {
- if (_rateList[l].indexOf(this.ooption[l][i].name) != -1) {
- this.ooption[l][i].value =
- _rate[l][this.ooption[l][i].name];
- }
- }
- } else {
- _rate[l] = [];
- _rateList[l] = [];
- }
- }
- if (workEvaList.length > 0) {
- for (var p = 0; p < workEvaList.length; p++) {
- if (
- b[l].stage == workEvaList[p].stage &&
- b[l].task == workEvaList[p].task
- ) {
- var eListOld =
- chapters[0][b[l].stage].chapterInfo[0].taskJson[b[l].task]
- .eList;
- if (eListOld && eListOld.length) {
- var eListNew = Object.keys(eListOld).map(function (key) {
- return {
- detail: eListOld[key].detail,
- score: eListOld[key].score,
- value: eListOld[key].value,
- isai: eListOld[key].isai,
- target: eListOld[key].target
- };
- });
- eList = eListNew;
- if (eList && eList.length) {
- _ooption = [];
- result[l].eList = eList;
-
- for (var i = 0; i < eList.length; i++) {
- _ooption.push({ value: 0, name: eList[i].value });
- result[l].rateList[eList[i].detail] = 0;
- }
- result[l].rateList.content = "";
- this.ooption[l] = _ooption;
- }
- if (workEvaList[p].rate && eList && eList.length) {
- _rate[l] = JSON.parse(workEvaList[p].rate);
- _rateList[l] = Object.keys(
- JSON.parse(workEvaList[p].rate)
- );
- for (var i = 0; i < _rateList[l].length; i++) {
- var _c = Object.keys(result[l].rateList);
- if (_c.indexOf(_rateList[l][i]) != -1) {
- result[l].rateList[_rateList[l][i]] =
- _rate[l][_rateList[l][i]];
- }
- }
- for (var i = 0; i < this.ooption[l].length; i++) {
- if (
- _rateList[l].indexOf(this.ooption[l][i].name) != -1
- ) {
- this.ooption[l][i].value =
- _rate[l][this.ooption[l][i].name];
- }
- }
- } else {
- _rate[l] = [];
- _rateList[l] = [];
- }
- }
- } else {
- _rate[l] = [];
- _rateList[l] = [];
- }
- }
- }
- }
- this.worksDetail = result;
- console.log(' this.worksDetail', this.worksDetail);
-
- this.courseDetail = res.data[0][0];
- // console.log('this.courseDetail',);
- this.$forceUpdate;
- this.dialogVisible3 = true;
- setTimeout(() => {
- for (var p = 0; p < res.data[0].length; p++) {
- if (!this.ooption[p]) {
- this.chartObj[p] = null;
- continue;
- }
- var _ooption = JSON.parse(JSON.stringify(this.ooption[p]));
- var _option = JSON.parse(JSON.stringify(this.radarOption));
- _option.radar.indicator = [];
- _option.series[0].data[0].value = [];
- for (var i = 0; i < _ooption.length; i++) {
- _option.radar.indicator.push({
- name: _ooption[i].name,
- max: 5,
- });
- _option.series[0].data[0].value.push(_ooption[i].value);
- }
- this.setChart(_option, p);
- }
-
- }, 0);
- let _dyList = JSON.parse(JSON.stringify(this.dyList));
- // let _dyList2 = [];
- // let _dyList3 = [];
- // for (var c = 0; c < _dyList.length; c++) {
- // _dyList[c].taskList = [];
- // _dyList2.push(_dyList[c]);
- // }
- // _dyList = JSON.parse(JSON.stringify(this.dyList));
- // for (var c = 0; c < result.length; c++) {
- // let _stage = result[c].stagetask.split("-")[0];
- // let _task = result[c].stagetask.split("-")[1];
- // _dyList2[_stage].taskList.push(_dyList[_stage].taskList[_task]);
- // _dyList2[_stage].taskList;
- // }
- for (var dc = 0; dc < _dyList.length; dc++) {
- // _dyList[dc].isOpen = dc === 0 ? true : false;
- _dyList[dc].isOpen = true;
- }
- for (var i = 0; i < result.length; i++) {
- for (var j = 0; j < _dyList.length; j++) {
- var sta = result[i].stagetask.split("-")[0];
- var ta = result[i].stagetask.split("-")[1];
- if (sta == _dyList[j].id) {
- for (var z = 0; z < _dyList[j].taskList.length; z++) {
- if (ta == _dyList[j].taskList[z].id) {
- _dyList[j].taskList[z].isWork = true;
- }
- }
- }
- }
- }
- this.dyList2 = _dyList;
- this.stageIndex = this.dyList2[0].id;
- this.taskCount = this.dyList2[0].taskList[0].id;
- this.navId =
- this.dyList2[0].id + "-" + this.dyList2[0].taskList[0].id;
- if (type == 0) {
- if (index == 0) {
- this.isPre = true;
- } else {
- this.isPre = false;
- }
- if (index == 9) {
- this.isNext = true;
- } else {
- this.isNext = false;
- }
- }
-
- if(this.cutTabNum == 2){
- this.$nextTick(()=>{
- this.openTask2(con)
- })
- }else{
- this.$nextTick(()=>{
- this.openTask(con,this.chooseDy?this.chooseDy:0,this.chooseTask?this.chooseTask:0,this.chooseDy?this.dyList2.findIndex(i=>i.id==this.chooseDy):0,this.chooseTask?this.dyList2[this.dyList2.findIndex(i=>i.id==this.chooseDy)].taskList.findIndex(i=>i.id==this.chooseTask):0)
- })
- }
-
- // this.preStep();
- // this.nextStep();
- })
- .catch((err) => {
- console.error(err);
- });
- },
-
- checkAsk(askJson) {
- this.askJson = askJson;
- this.dialogVisible4 = true;
- },
- setChart(option, k) {
- let _this = this;
- // 雷达图显示的标签
- let newPromise = new Promise((resolve) => {
- resolve();
- });
- //然后异步执行echarts的初始化函数
- newPromise.then(() => {
- const chartObj = _this.$echarts.init(
- //劳动课程
- // _this.$el.querySelector("#charts_canvas")
-
- document.getElementsByClassName("charts_canvas")[k]
- );
- // 初始化雷达图
- _this.chartObj[k] = chartObj;
- _this.chartObj[k].setOption(option);
- });
- },
- giveScore() {
- this.rateList = this.chapInfo[this.publicIndex].rate;
- this.dialogVisible2 = true;
- },
- openFile(f, t) {
- console.log('fff',f);
-
- this.pptImgUrl = f;
- if (t == 2) {
- this.showPDF = false;
- } else {
- this.showPDF = true;
- }
- this.dialogVisible6 = true;
- },
- openFile2(f) {
- this.pptImgUrl = f.wpptInfo;
- var fileA = [
- "DOC",
- "DOCX",
- "DOCM",
- "DOTM",
- "DOTX",
- "PPTX",
- "PPSX",
- "PPT",
- "PPS",
- "PPTM",
- "POTM",
- "PPAM",
- "POTX",
- "PPSM",
- "XLSX",
- "XLS",
- ];
- if (
- fileA.indexOf(
- this.pptImgUrl
- .split(".")
- [this.pptImgUrl.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- this.showPDF = false; //word 文件
- } else if (
- "pdf".indexOf(
- this.pptImgUrl
- .split(".")
- [this.pptImgUrl.split(".").length - 1].toLocaleLowerCase()
- ) != -1
- ) {
- this.showPDF = true; //pdf
- }
- this.dialogVisible6 = true;
- },
- //获取班级列表
- getClass() {
- let params = {
- oid: this.oid,
- };
- this.ajax
- .get(this.$store.state.api + "selectClassBySchool", params)
- .then((res) => {
- this.grade = res.data[0];
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- //获取分组分类
- getGroup() {
- let params = {};
- this.ajax
- .get(this.$store.state.api + "getGroup", params)
- .then((res) => {
- this.subjectJuri = res.data[0];
- this.projectJuri = res.data[0];
- })
- .catch((err) => {
- console.error(err);
- });
- },
- searchWork1() {
- this.page = 1;
- this.chooseTask = "";
- if (this.typeCheck) {
- if (this.cutTabNum==0) {
- this.getWorks1()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks2()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks2()
- }
- }else{
- if (this.cutTabNum==0) {
- this.getWorks()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks()
- }
- }
- // if (this.cutTabNum==0) {
- // this.getWorks()
- // }
- // if (this.cutTabNum==1) {
- // this.getStageWorks()
- // }
- // if (this.cutTabNum==2) {
- // this.getTaskWorks()
- // }
- // this.getWorks();
- },
- searchWork2() {
- this.page = 1;
- // console.log(this.typeCheck);
-
- if (this.typeCheck) {
- if (this.cutTabNum==0) {
- this.getWorks1()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks2()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks2()
- }
- }else{
- if (this.cutTabNum==0) {
- this.getWorks()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks()
- }
- }
-
- // this.getWorks();
- },
- // fullTools() {
- // this.full = !this.full;
- // },
- //获取作业
- getWorks() {
- this.isLoading = true;
- var mr = this.mr;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage: this.chooseDy,
- task: this.chooseTask,
- page: this.page,
- };
- this.ajax
- .get(this.$store.state.api + "getCourseWorks5", params) //getCourseWorks3
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- this.classArray = res.data[1]
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getWorks1() {
- this.isLoading = true;
- let params = {
- cid: this.id,
- uname: this.uname,
- choseClass:this.choseClass,
- stage: this.chooseDy,
- task: this.chooseTask,
- };
- this.ajax
- .get(this.$store.state.api + "getCourseWorks6", params) //getCourseWorks4
- .then((res) => {
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.tableData = res.data[0];
- })
- .catch((err) => {
- this.isLoading = false;
- console.error(err);
- });
- },
- getCourseDetail() {
- this.studentLoading = true;
- let params = {
- cid: this.cid,
- choseClass:this.choseClass
- };
- this.ajax
- .get(this.$store.state.api + "getCourseWorksReport2", params)//getCourseWorksReport
- .then((res) => {
- this.course = res.data[0][0];
- var dyJSON = JSON.parse(res.data[0][0].chapters);
- let dyList = [];
- for (var i = 0; i < dyJSON.length; i++) {
- dyList.push({ name: dyJSON[i].dyName, id: i, taskList: [] });
- var a = dyJSON[i].chapterInfo[0].taskJson;
- for (var j = 0; j < a.length; j++) {
- dyList[i].taskList.push({ name: a[j].task, id: j });
- }
- }
- this.studentLoading = false;
- this.dyList = dyList;
- this.userAarray = res.data[1];
- if (this.cutTabNum==0) {
- this.getWorks()
- }
- if (this.cutTabNum==1) {
- this.getStageWorks()
- }
- if (this.cutTabNum==2) {
- this.getTaskWorks()
- }
- // this.getWorks();
- })
- .catch((err) => {
- console.error(err);
- });
- },
- // getCourseDetail() {
- // const loading = this.$loading.service({
- // background: "rgba(255, 255, 255, 0.7)",
- // target: document.querySelector(".student_table"),
- // });
- // let params = {
- // courseId: this.id,
- // };
- // this.ajax
- // .get(this.$store.state.api + "selectCourseDetail", params)
- // .then((res) => {
- // loading.close();
- // // this.chapInfo = JSON.parse(res.data[0][0].chapters);
- // var dyJSON = JSON.parse(res.data[0][0].chapters);
- // let dyList = [];
- // for (var i = 0; i < dyJSON.length; i++) {
- // dyList.push({ name: dyJSON[i].dyName, id: i, taskList: [] });
- // var a = dyJSON[i].chapterInfo[0].taskJson;
- // for (var j = 0; j < a.length; j++) {
- // dyList[i].taskList.push({ name: a[j].task, id: j });
- // }
- // }
- // this.dyList = dyList;
- // // var dyJSON = JSON.parse()
- // })
- // .catch((err) => {
- // loading.close();
- // console.error(err);
- // });
- // },
- handlePictureCardPreview(url) {
- this.dialogImageUrl = url;
- this.pictureDialog = true;
- },
- updatePj() {
- for (var i = 0; i < this.worksDetail.length; i++) {
- if (!this.worksDetail[i].eList.length) {
- continue;
- }
- this.updateWorks(
- this.worksDetail[i].stagetask,
- this.worksDetail[i].rateList,
- i
- );
- }
- },
- getStar(i) {
- const k = i;
- var _ooption = JSON.parse(JSON.stringify(this.ooption[k]));
- var _rate = this.worksDetail[i].rateList;
- var _rateList = Object.keys(this.worksDetail[i].rateList);
- for (var i = 0; i < _ooption.length; i++) {
- if (_rateList.indexOf(_ooption[i].name) != -1) {
- _ooption[i].value = _rate[_ooption[i].name];
- }
- }
- // var _option = JSON.parse(JSON.stringify(this.radarOption));
- var _option = this.radarOption;
- _option.radar.indicator = [];
- _option.series[0].data[0].value = [];
- for (var i = 0; i < _ooption.length; i++) {
- _option.radar.indicator.push({ name: _ooption[i].name, max: 5 });
- _option.series[0].data[0].value.push(_ooption[i].value);
- }
- if (this.chartObj && this.chartObj[k]) {
- // _option.series[0].data = _ooption;
- this.chartObj[k].setOption(_option);
- } else {
- this.setChart(_ooption);
- }
- },
- updateWorks(stagetask, rateList, i) {
- // console.log(this.worksDetail[i]);
-
- // return console.log(stagetask, rateList, i);
-
- var arr = stagetask.split("-");
- let params = {
- cid: this.id,
- s: arr[0],
- t: arr[1],
- rate: rateList,
- uid: this.studentId,
- };
- const k = i;
- this.ajax
- .get(this.$store.state.api + "updateWorksEva", params)
- .then((res) => {
- // var _ooption = JSON.parse(JSON.stringify(this.ooption[k]));
- // var _rate = rateList;
- // var _rateList = Object.keys(rateList);
- // for (var i = 0; i < _ooption.length; i++) {
- // if (_rateList.indexOf(_ooption[i].name) != -1) {
- // _ooption[i].value = _rate[_ooption[i].name];
- // }
- // }
- // var _option = this.radarOption;
- // _option.radar.indicator = [];
- // _option.series[0].data[0].value = [];
- // for (var i = 0; i < _ooption.length; i++) {
- // _option.radar.indicator.push({ name: _ooption[i].name, max: 5 });
- // _option.series[0].data[0].value.push(_ooption[i].value);
- // }
- // if (this.chartObj) {
- // this.chartObj[k].setOption(_option);
- // } else {
- // this.setChart(_ooption);
- // }
- // let _k = 0;
- // for (var i = 0; i < this.worksDetail.length; i++) {
- // if (this.worksDetail[i].eList.length) {
- // _k = i;
- // }
- // }
- // if (k == _k) {
- // this.$message({
- // message: "评价成功",
- // type: "success",
- // });
- // }
- this.$message({
- message: "评价成功",
- type: "success",
- });
- })
- .catch((err) => {
- this.$message.error("评价失败");
- console.error(err);
- });
- },
- switchVideo(media, index) {
- this.playerO = {};
- this.playerOptions.poster = "";
- this.playerOptions.sources[0].src = media;
- this.playerO = this.playerOptions;
- },
- onPlayerPlay() {},
- // this.$store.commit("update", ["userInfo", userInfo]);
- lookWork2(w,id, uid, cid) {
-
- // this.scopeId = id;
- let params = {
- uid: uid,
- cid: cid,
- };
- this.ajax
- .get(this.$store.state.api + "selectAllWorksDetail", params)
- .then((res) => {
- this.sInfo = res.data[0][0];
- this.chapInfo = JSON.parse(res.data[0][0].chapters);
- var chapters = JSON.parse(res.data[0][0].chapters);
- var worksDetail = res.data[1];
- // this.scopeId = res.data[2][0].id;
- // var scopeId = res.data[2][0].id;
- var askInfo = res.data[3];
- var answerInfo = res.data[4];
- var linkInfo = res.data[5];
- var chooseInfo = res.data[6];
- var pjInfo = res.data[7]; //个人评价作业
- var xztkInfo = res.data[8]; //选择匹配作业
- var lccjInfo = res.data[9]; //排序作业
- var bgInfo = res.data[10]; //表格作业
- var cocopiInfo = res.data[11]; //cocopi或源码编辑作业
- var wordInfo = res.data[12]; //文档作业
- var workEvaList = res.data[13];
- this.scopeId = res.data[2].length ? res.data[2][0].id : this.sInfo.id;
- var workJson = {
- img: [],
- imgIndex: 0,
- eList: [],
- // rateList: {},
- askInfo: [],
- answerInfo: [],
- wpptInfo: [],
- chooseInfo: [],
- pjInfo: [],
- xztkInfo: [],
- lccjInfo: [],
- bgInfo: [],
- cocopiInfo: [],
- wordInfo: [],
- };
-
- var _title =
- "<h2>" +
- "第" +
- (w.stage + 1) +
- "阶段 " +
- (this.dyList[w.stage].name ? this.dyList[w.stage].name : `阶段${w.stage + 1}`) +
- "</h2>";
- var _subtitle =
- "<h3>" +
- "任务" +
- (w.task + 1) +
- " " +
- (this.dyList[w.stage].taskList[w.task].name ? this.dyList[w.stage].taskList[w.task].name : `任务${w.task + 1}`) +
- "</h3>";
- for (var i = 0; i < worksDetail.length; i++) {
- if (worksDetail[i].stage == w.stage && worksDetail[i].task == w.task) {
- workJson.img.push({
- src: worksDetail[i].content,
- id: i,
- score: worksDetail[i].score
- ? JSON.parse(worksDetail[i].score).wScore
- : worksDetail[i].score,
- });
- }
- }
- for (var i = 0; i < askInfo.length; i++) {
- if (askInfo[i].stage == w.stage && askInfo[i].task == w.task) {
- const element = askInfo[i];
- let a = JSON.parse(element.content)[0];
- let e = [];
- for (var y = 0; y < a.askJson.length; y++) {
- if (a.askJson[y].type == "2") {
- e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
- } else {
- e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
- }
- }
- a.radio = e;
- workJson.askInfo.push({
- askInfo: a,
- score: askInfo[i].score
- ? JSON.parse(askInfo[i].score).wScore
- : askInfo[i].score,
- });
- }
- }
-
- for (var i = 0; i < chooseInfo.length; i++) {
- if (chooseInfo[i].stage == w.stage && chooseInfo[i].task == w.task) {
- const element1 = chooseInfo[i];
- let t = JSON.parse(element1.content)[0].testJson;
- console.log('t',t);
-
- let e = [];
- for (var y = 0; y < t.testJson.length; y++) {
- if (t.testJson[y].type == "2") {
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
- } else {
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
- }
- }
- t.radio = e;
- workJson.chooseInfo.push({
- chooseInfo: t,
- score: chooseInfo[i].score
- ? JSON.parse(chooseInfo[i].score).wScore
- : chooseInfo[i].score,
- });
- }
-
- }
- for (var i = 0; i < answerInfo.length; i++) {
- if (answerInfo[i].stage == w.stage && answerInfo[i].task == w.task) {
- const element = answerInfo[i];
- workJson.answerInfo.push({
- answerInfo: JSON.parse(element.content)[0],
- score: answerInfo[i].score
- ? JSON.parse(answerInfo[i].score).wScore
- : answerInfo[i].score,
- });
- }
- }
- for (var i = 0; i < pjInfo.length; i++) {
- if (pjInfo[i].stage == w.stage && pjInfo[i].task == w.task) {
- var pj = pjInfo[i];
- console.log('pj',pj);
-
- var a =
- chapters[w.stage].chapterInfo[0].taskJson[
- w.task
- ].toolChoose;
- var rateJson = [];
- for (var z = 0; z < a.length; z++) {
- if (a[z].tool[0] == 40) {
- rateJson = a[z].rateJson;
- }
- }
- workJson.pjInfo.push({
- answer: JSON.parse(pj.content),
- rateJson: rateJson,
- score: pjInfo[i].score
- ? JSON.parse(pjInfo[i].score).wScore
- : pjInfo[i].score,
- });
- }
- }
- for (var i = 0; i < xztkInfo.length; i++) {
- if (xztkInfo[i].stage == w.stage && xztkInfo[i].task == w.task) {
- const element = xztkInfo[i];
- workJson.xztkInfo.push(element.content);
- }
- }
- if (lccjInfo.length > 0) {
- for (var i = 0; i < lccjInfo.length; i++) {
- if (lccjInfo[i].stage == w.stage && lccjInfo[i].task == w.task) {
- var lccj = lccjInfo[i];
-
- workJson.lccjInfo.push({
- lccjInfo: JSON.parse(lccj.content),
- score: lccjInfo[i].score
- ? JSON.parse(lccjInfo[i].score).wScore
- : lccjInfo[i].score,
- });
- }
- }
- }
- for (var i = 0; i < bgInfo.length; i++) {
- if (bgInfo[i].stage == w.stage && bgInfo[i].task == w.task) {
- var bg = bgInfo[i];
- workJson.bgInfo.push({
- bgInfo: JSON.parse(bg.content),
- score: bgInfo[i].score
- ? JSON.parse(bgInfo[i].score).wScore
- : bgInfo[i].score,
- });
- }
- }
- // for (var i = 0; i < cocopiInfo.length; i++) {
- // if (cocopiInfo[i].stage == w.stage && cocopiInfo[i].task == w.task) {
- // var cocopi = cocopiInfo[i];
- // var c = ["DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
- // var d = [
- // "BMP",
- // "PJP",
- // "APNG",
- // "PNG",
- // "JPG",
- // "GIF",
- // "SVG",
- // "JPEG",
- // "JPG",
- // "ICO",
- // "PGPEG",
- // "AVIF",
- // ];
- // var t = 0; //t = 1是图片 2是文档 3是pdf
- // if (
- // d.indexOf(
- // cocopi.content
- // .split(".")
- // [cocopi.content.split(".").length - 1].toLocaleUpperCase()
- // ) != -1
- // ) {
- // t = 1;
- // workJson.cocopiInfo.push({
- // url: cocopi.content,
- // type: t,
- // score: cocopiInfo[i].score
- // ? JSON.parse(cocopiInfo[i].score).wScore
- // : cocopiInfo[i].score,
- // });
- // } else if (
- // c.indexOf(
- // cocopi.content
- // .split(".")
- // [cocopi.content.split(".").length - 1].toLocaleUpperCase()
- // ) != -1
- // ) {
- // t = 2;
- // var a =
- // "https://view.officeapps.live.com/op/view.aspx?src=" +
- // encodeURIComponent(cocopi.content);
- // workJson.cocopiInfo.push({
- // url: a,
- // type: t,
- // score: cocopiInfo[i].score
- // ? JSON.parse(cocopiInfo[i].score).wScore
- // : cocopiInfo[i].score,
- // });
- // } else if (
- // cocopi.content
- // .split(".")
- // [cocopi.content.split(".").length - 1].toLocaleUpperCase() ==
- // "PDF"
- // ) {
- // t = 3;
- // workJson.cocopiInfo.push({
- // url: cocopi.content,
- // type: t,
- // score: cocopiInfo[i].score
- // ? JSON.parse(cocopiInfo[i].score).wScore
- // : cocopiInfo[i].score,
- // });
- // }
- // }
- // }
- for (var i = 0; i < wordInfo.length; i++) {
- if (wordInfo[i].stage == w.stage && wordInfo[i].task == w.task) {
- var word = wordInfo[i];
- workJson.wordInfo.push({
- wordInfo: JSON.parse(word.content),
- score: wordInfo[i].score
- ? JSON.parse(wordInfo[i].score).wScore
- : wordInfo[i].score,
- });
- }
- }
- this.worksDetail = workJson;
- // this.courseDetail = res.data[0][0];
- this.$forceUpdate;
- var _course = `<h1>${w.course}</h1>`;
-
- var _img = "";
- if (workJson.img.length > 0) {
- for (var i = 0; i < workJson.img.length; i++) {
- _img += `<div style="margin-top:10px"><div>图片${
- i + 1
- }</div><img style="max-width:500px" src="${
- workJson.img[i].src
- }"/></div>`;
- }
- }
- var _ask = "";
- if (workJson.askInfo.length > 0) {
- var _ask = "<h3>问卷</h3>";
- for (var i = 0; i < workJson.askInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>标题:${workJson.askInfo[i].askInfo.askJson.askTitle}</h4>`;
- for (
- var j = 0;
- j < workJson.askInfo[i].askInfo.askJson.askJson.length;
- j++
- ) {
- var _div2 = document.createElement("div");
- _div2.innerHTML = `<h5>第${j + 1}题:${
- workJson.askInfo[i].askInfo.askJson.askJson[j].askstitle
- } 选择:${
- workJson.askInfo[i].askInfo.answer &&
- workJson.askInfo[i].askInfo.answer.length > 0
- ? workJson.askInfo[i].askInfo.answer[0]
- : 1
- }</h5> `;
- var _div3 = document.createElement("div");
- for (
- var z = 0;
- z <
- workJson.askInfo[i].askInfo.askJson.askJson[j].checkList
- .length;
- z++
- ) {
- _div3.innerHTML += `<span style="margin-right:5px">${z + 1}.${
- workJson.askInfo[i].askInfo.askJson.askJson[j].checkList[z]
- }</span>`;
- }
- _div2.innerHTML += `<div>${_div3.innerHTML}</div>`;
- _div.innerHTML += `<div>${_div2.innerHTML}</div>`;
- }
- _ask += `<div>${_div.innerHTML}</div>`;
- }
- }
- var _xztkInfo = "";
- if (workJson.xztkInfo.length > 0) {
- var _xztkInfo = "<h3>选择匹配</h3>"
- // console.log('workJson.xztkInfo',workJson.xztkInfo);
- workJson.xztkInfo.forEach((e,i)=>{
- _xztkInfo += `<h6>${e}</h6>`;
- })
- }
- var _answer = "";
- if (workJson.answerInfo.length > 0) {
- var _answer = "<h3>问答</h3>";
- for (var i = 0; i < workJson.answerInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>问答:${workJson.answerInfo[i].answerInfo.answerTitle}</h4>`;
- _div.innerHTML += `<div>${workJson.answerInfo[i].answerInfo.answer}</div>`;
- _answer += `<div>${_div.innerHTML}</div>`;
- }
- }
- var _link = "";
- if (linkInfo.length > 0) {
- for (var i = 0; i < linkInfo.length; i++) {
- if (linkInfo[i].stage == w.stage && linkInfo[i].task == w.task) {
- _link += `<div style="margin-top:10px"><a href='${linkInfo[i].content}'>${linkInfo[i].content}</a></div>`;
- }
- }
- }
- var _choose = "";
- if (workJson.chooseInfo.length > 0) {
- var _choose = "<h3>选择题</h3>";
- for (var i = 0; i < workJson.chooseInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>标题:${workJson.chooseInfo[i].chooseInfo.testTitle}</h4>`;
- for (
- var j = 0;
- j < workJson.chooseInfo[i].chooseInfo.testJson.length;
- j++
- ) {
- var _div2 = document.createElement("div");
- _div2.innerHTML = `<h5>第${j + 1}题:${
- workJson.chooseInfo[i].chooseInfo.testJson[j].teststitle
- } 选择:${
- workJson.chooseInfo[i].chooseInfo.testJson[j].type == 1 ? workJson.chooseInfo[i].chooseInfo.radio[j] : workJson.chooseInfo[i].chooseInfo.radio[j].join(',')
- } 答案:${
- workJson.chooseInfo[i].chooseInfo.testJson[j].answer
- }</h5> `;
- var _div3 = document.createElement("div");
- for (
- var z = 0;
- z <
- workJson.chooseInfo[i].chooseInfo.testJson[j].checkList
- .length;
- z++
- ) {
- _div3.innerHTML += `<span style="margin-right:5px">${z}.${
- workJson.chooseInfo[i].chooseInfo.testJson[j].checkList[z]
- }</span>`;
- }
- _div2.innerHTML += `<div>${_div3.innerHTML}</div>`;
- _div.innerHTML += `<div>${_div2.innerHTML}</div>`;
- }
- _choose += `<div>${_div.innerHTML}</div>`;
- }
- }
- var _lccjInfo = "";
- if (workJson.lccjInfo.length>0) {
- if (workJson.lccjInfo[0].lccjInfo.length > 0) {
- var _lccjInfo = "<h3>排序<h3>";
- for (var i = 0; i < workJson.lccjInfo[0].lccjInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>第${i+1}题${workJson.lccjInfo[0].lccjInfo[i].sentenceTitle}</h4> `;
- var _div2 = document.createElement("div");
- _div2.innerHTML+= ` 句子 ${i + 1}:${ workJson.lccjInfo[0].lccjInfo[i].addSentence.join(',')} 选择:${
- workJson.lccjInfo[0].lccjInfo[i].chooseSenList.join(',')
- } 答案:${
- workJson.lccjInfo[0].lccjInfo[i].rightAnswer.join(',')
- }`
- _div.innerHTML += `<div>${_div2.innerHTML}</div>`;
- _lccjInfo += `<div>${_div.innerHTML}</div>`;
- }
- }
- }
-
- var _bg = "";
- if (workJson.bgInfo.length > 0) {
- var _bg = "<h3>表格<h3>";
- for (var i = 0; i < workJson.bgInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>${workJson.bgInfo[i].bgInfo.text}</h4> `;
- _bg += `<div>${_div.innerHTML}</div>`;
- }
- }
- var _word = "";
- if (workJson.wordInfo.length > 0) {
- var _word = "<h3>文档<h3>";
- for (var i = 0; i < workJson.wordInfo.length; i++) {
- var _div = document.createElement("div");
- _div.innerHTML = `<h4>${workJson.wordInfo[i].wordInfo.text}</h4> `;
- _word += `<div>${_div.innerHTML}</div>`;
- }
- }
- var _html =
- _course +
- _title +
- _subtitle +
- _img +
- _xztkInfo +
- _ask +
- _answer +
- _link +
- _choose +
- _lccjInfo +
- _bg +
- _word;
- this.generate(_html,w);
- })
- .catch((err) => {
- console.error(err);
- });
- },
- isOpen(s) {
- // this.stageIndex = s;
- this.dyList2[s].isOpen = !this.dyList2[s].isOpen;
- },
- openTask(s, i, dyi, navi) {
- // console.log('openTask2',con,s, i, dyi, navi);
- if (!this.dyList2[dyi].taskList[navi].isWork) {
- this.$message.warning("该任务暂时没提交作业");
- } else {
- const element = document.getElementById(`${s}+${i}`);
- if (element) {
- element.scrollIntoView();
- setTimeout(()=>{
- let scrollBody = document.querySelector(".zyBoxC").parentElement
- scrollBody.scrollTop = scrollBody.scrollTop - 70
- }, 0);
- // function scrollToElement(elementA) {
- // return new Promise((resolve) => {
- // const observer = new IntersectionObserver((entries) => {
- // if (entries[0].isIntersecting) {
- // observer.disconnect(); // 停止观察
- // setTimeout(() => {
- // resolve(); // 延迟以确保滚动完成
- // }, 300); // 可以调整延迟时间
- // }
- // }, { threshold: [1] }); // 阈值设为 1 确保完全可见
- // elementA.scrollIntoView({ behavior: 'smooth', block: "start" });
- // // elementA.scrollIntoView();
- // observer.observe(elementA);
- // });
- // }
- // // 使用示例
- // scrollToElement(element).then(()=>{
- // let scrollBody = document.querySelector(".zyBoxC").parentElement
- // setTimeout(() => {
- // scrollBody.scrollTop = scrollBody.scrollTop - 70;
- // }, 100); // 调整时间确保足够长
- // });
- }
- var a = s + "-" + i;
- // var b = document.getElementById(a);
- // var d = b.getAttribute("scrollindex");
- // c.scrollTop = parseInt(d) * 375;
- this.stageIndex = s;
- this.taskCount = i;
- this.navId = a;
- }
- },
- openTask2(con) {
- console.log(con);
-
- let s = con.stage
- let i = con.task
- const element = document.getElementById(`${s}+${i}`);
- if (element) {
- element.scrollIntoView();
- setTimeout(()=>{
- let scrollBody = document.querySelector(".zyBoxC").parentElement
- scrollBody.scrollTop = scrollBody.scrollTop - 70
- }, 0);
- // function scrollToElement(elementA) {
- // return new Promise((resolve) => {
- // const observer = new IntersectionObserver((entries) => {
- // if (entries[0].isIntersecting) {
- // observer.disconnect(); // 停止观察
- // setTimeout(() => {
- // resolve(); // 延迟以确保滚动完成
- // }, 300); // 可以调整延迟时间
- // }
- // }, { threshold: [1] }); // 阈值设为 1 确保完全可见
- // elementA.scrollIntoView({ behavior: 'smooth', block: "start" });
- // // elementA.scrollIntoView();
- // observer.observe(elementA);
- // });
- // }
- // // 使用示例
- // scrollToElement(element).then(()=>{
- // let scrollBody = document.querySelector(".zyBoxC").parentElement
- // setTimeout(() => {
- // scrollBody.scrollTop = scrollBody.scrollTop - 70;
- // }, 100); // 调整时间确保足够长
- // });
- }
- var a = s + "-" + i;
-
- this.stageIndex = s;
- this.taskCount = i;
- this.navId = a;
- },
- async generate(a,w) {
- // 将html文件中需要用到的数据挂载到store上
- this.$store.commit("update", ["report", a]);
- const content = `<!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>报告</title>
- </head>
- <body>
- ${this.$store.state.report}
- </body>
- </html>`;
- // debugger
- // 生成报告
- const link = document.createElement("a");
- let dname = w.course + "-"+ (this.dyList[w.stage].name ? this.dyList[w.stage].name : `阶段${w.stage+1}`) +"-" + (this.dyList[w.stage].taskList[w.task].name ? this.dyList[w.stage].taskList[w.task].name : `任务${w.task+1}`) + '-' +w.sName + ".html";
- // link.download = "报告.html"; // 文件名
- console.log('dname',dname);
-
- link.download = dname; // 文件名
- link.style.display = "none";
- // 创建文件流
- // 创建bolb实例时,内容一定要放在[]中
- const blob = new Blob([content], {
- type: "text/plain;charset='utf-8'",
- });
- link.href = window.URL.createObjectURL(blob);
- document.body.appendChild(link);
- link.click();
- document.body.removeChild(link);
- // saveAs(
- // htmlDocx.asBlob(content, {
- // orientation: "landscape", //跨域设置
- // }),
- // //文件名
- // "报告.doc"
- // );
- },
- preStep() {
- var uid = "";
- for (var i = 0; i < this.tableData.length; i++) {
- if (this.scopeId1 == this.tableData[i].id) {
- if (i - 1 == 0) {
- this.isPre = true;
- } else {
- this.isPre = false;
- }
- if (i - 1 < 9) {
- this.isNext = false;
- }
- uid = this.tableData[i - 1].userid;
- this.lookWork(this.tableData[i - 1].id, uid, 1);
- break;
- }
- }
- },
- nextStep() {
- var uid = "";
- for (var i = 0; i < this.tableData.length; i++) {
- if (this.scopeId1 == this.tableData[i].id) {
- if (i + 1 == 9) {
- this.isNext = true;
- } else {
- this.isNext = false;
- }
- if (i + 1 > 0) {
- this.isPre = false;
- }
- uid = this.tableData[i + 1].userid;
- this.lookWork(this.tableData[i + 1].id, uid, 1);
- break;
- }
- }
- },
- },
- created() {
- this.page = 1;
- this.isLoading = true;
- this.getCourseDetail();
- this.getClass();
- this.getGroup();
- },
- };
- </script>
- <style scoped>
- .pb_head > span:nth-child(2) {
- font-size: 16px;
- margin-left: 80px;
- color: #ab582f;
- }
- .pb_head {
- margin: 0 !important;
- width: 100% !important;
- }
- .student_page {
- margin-top: 10px;
- }
- .student_head {
- /* margin-top: 10px;
- padding-bottom: 15px; */
- padding: 20px 0;
- }
- .student_search {
- display: flex;
- }
- .student_search > div:nth-child(1) {
- line-height: 35px;
- font-size: 14px;
- }
- .student_search >>> .el-input__inner {
- width: 190px;
- height: 35px;
- margin-left: 10px;
- }
- .student_table >>> .el-table--border td {
- border-right: 0px !important;
- }
- .add_work >>> .el-dialog__header {
- padding: 20px 20px 10px;
- text-align: center;
- background: #32455b;
- }
- .add_work >>> .el-dialog__title {
- font-size: 14px !important;
- color: #fff !important;
- }
- .add_work >>> .el-dialog__headerbtn {
- font-size: 20px !important;
- top: 5px !important;
- right: 8px !important;
- }
- .add_work >>> .el-form-item__label {
- margin-left: 65px;
- }
- .add_work >>> .el-form-item {
- display: flex;
- }
- .add_work >>> .el-form-item__content {
- margin: 0 !important;
- }
- .add_work >>> .el-dialog__footer {
- text-align: center !important;
- }
- .add_work >>> .el-dialog {
- min-width: 650px !important;
- width: 1080px;
- }
- .add_work >>> .el-dialog__body {
- background: #fff;
- height: 660px;
- overflow: auto;
- }
- .header-title {
- display: flex;
- }
- .logoImg {
- width: 30px;
- }
- .logoImg > img {
- width: 100%;
- height: 100%;
- }
- .title_add_student {
- margin: 0 auto;
- color: #fff;
- }
- .first {
- margin-top: 25px;
- border-bottom: 1px solid #c5c5c5;
- }
- .one_top {
- display: flex;
- justify-content: space-between;
- }
- .one_top > div:nth-child(1) {
- color: #2490bf;
- font-size: 16px;
- }
- .one_top > button {
- width: 100px;
- background: #24a0a4;
- height: 30px;
- color: #e0e0e0;
- font-size: 13px;
- padding: 0 !important;
- }
- .work_Img {
- width: 150px;
- margin: 10px 0;
- }
- .assess_Img {
- width: 400px;
- margin: 0 auto;
- padding: 15px 0;
- }
- .work_Img > img,
- .assess_Img > img {
- width: 100%;
- height: 100%;
- }
- .work_input {
- border: 1px solid;
- width: 135px;
- height: 20px;
- line-height: 20px;
- font-size: 13px;
- padding: 5px;
- }
- .poetry {
- margin: 10px 0 15px 0;
- }
- .assess {
- background: #169bd5 !important;
- }
- .assess_top {
- border-bottom: 2px solid #eee;
- padding-bottom: 10px;
- }
- .assess_top > div:nth-child(1) {
- color: #2490bf;
- font-size: 16px;
- }
- .student_Answer {
- display: flex;
- margin: 5px 10px;
- /* padding-bottom: 25px; */
- }
- .workName {
- font-size: 18px;
- font-weight: bold;
- margin: 5px 10px;
- }
- .toux {
- width: 35px;
- /* margin: auto 0; */
- height: 35px;
- }
- .toux > img {
- width: 100%;
- height: 100%;
- }
- .nav {
- display: flex;
- flex-wrap: wrap;
- margin-top: 10px;
- flex-direction: column;
- }
- .studentName {
- margin-left: 10px;
- font-size: 13px;
- }
- .studentAnswer {
- font-size: 12px;
- margin: 5px 0 0 10px;
- height: 42px;
- overflow: auto;
- }
- .comment {
- /* margin: 20px 0 0 10px;
- overflow: auto;
- height: 75%;
- max-height: 330px; */
- overflow: auto;
- /* height: 290px; */
- height: 525px;
- background: #fff;
- border-radius: 5px;
- padding: 10px;
- box-sizing: border-box;
- }
- .comment_body {
- height: calc(100% - 25px);
- overflow: auto;
- }
- .comment > .comment_title {
- font-size: 18px;
- }
- .comment > .comment_title > span {
- font-size: 14px;
- }
- .other_Answer {
- display: flex;
- margin: 5px 10px;
- padding: 15px 0;
- justify-content: center;
- }
- .nav {
- margin-left: 5px;
- width: 80%;
- }
- .nameAndTime {
- display: flex;
- }
- .otherName {
- font-weight: bold;
- margin-left: 10px;
- font-size: 13px;
- }
- .time {
- margin-left: 25px;
- font-size: 12px;
- margin-top: 3px;
- }
- .otherAnswer {
- width: 80%;
- word-wrap: break-word;
- word-break: break-all;
- overflow: hidden;
- font-size: 12px;
- margin: 5px 0 0 10px;
- }
- .doingAssess {
- margin: 0 auto;
- width: 300px;
- background: #169bd5;
- height: 35px;
- line-height: 35px;
- border-radius: 3px;
- font-size: 13px;
- text-align: center;
- color: #fff;
- margin-top: 30px;
- cursor: pointer;
- }
- .score_top {
- display: flex;
- margin-bottom: 10px;
- }
- .userTou {
- width: 50px;
- }
- .userTou > img {
- width: 100%;
- height: 100%;
- }
- .score_user_name {
- line-height: 53px;
- margin-left: 15px;
- }
- .course_top {
- display: flex;
- align-items: center;
- }
- .course_top > div:nth-child(1) {
- line-height: 25px;
- }
- .course_top > div:nth-child(2) {
- border: 1px solid #ccc;
- width: 250px;
- text-align: center;
- height: 25px;
- line-height: 25px;
- margin-left: 30px;
- }
- .sd_score {
- font-size: 15px;
- background: #fff;
- height: 100%;
- /* padding-top: 40px; */
- padding: 40px 30px 10px;
- border-radius: 5px;
- width: 90%;
- box-shadow: 2px 2px 5px #909090;
- /* overflow: auto; */
- }
- .sd_score .score_boxTit{
- margin-top: 20px;
- /* padding: 0 30px; */
- box-sizing: border-box;
- font-size: 16px;
- font-weight: 600;
- color: rgba(0, 0, 0, 0.9);
- }
- .RootImg{
- position: absolute;
- left: 0;
- top: 50%;
- transform: translate(-20px,-50%);
- }
- .RootImgBlock{
- width: 50%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .sd_score .score_boxTit > span{
- border-left: 3px solid rgba(54, 129, 252, 1);
- padding-left: 5px;
- }
- .sd_score .score_box {
- display: flex;
- align-items: center;
- font-size: 14px !important;
- /* justify-content: flex-start; */
- justify-content: space-between;
- margin-bottom: 15px;
- /* margin: 10px 0 0 30px; */
- margin: 10px 0;
- position: relative;
- margin-left: 19px;
- }
- .sd_score .score_box > span:nth-child(1) {
- margin-right: 20px;
- /* text-align-last: justify; */
- /* max-width: 300px; */
- width: 150px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-word;
- }
- .sd_score .score_box:last-child {
- margin-bottom: 0;
- }
- .rate_size >>> .el-rate__icon {
- font-size: 22px;
- }
- .rate_size >>> .el-icon-star-off {
- font-size: 22px;
- }
- .sd_score > span:nth-child(1) {
- width: 130px;
- text-align: justify;
- text-align-last: justify;
- display: block;
- margin-right: 20px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 16px;
- }
- .worksTarget {
- margin: 15px 0;
- border-left: 3px solid rgba(54, 129, 252, 1);
- font-size: 16px;
- font-weight: 600;
- color: rgba(0, 0, 0, 0.9);
- }
- .worksTarget > span {
- margin-left: 5px;
- }
- .worksTargetCon {
- background: rgba(243, 247, 253, 1);
- margin: 0 30;
- padding: 10px;
- border-radius: 5px;
- box-sizing: border-box;
- margin-bottom: 10px;
- }
- .worksTargetCon > div {
- margin-bottom: 10px;
- }
- .worksTargetCon > div:last-child{
- margin: 0 !important;
- }
- .moreSay {
- margin: 0px 0 5px 20px;
- }
- .more_say_input {
- margin-left: 20px;
- width: 80%;
- }
- .more_say_input >>> .el-input__inner {
- height: 75px;
- font-size: 13px;
- padding: 0 0 0 10px;
- }
- .assess_right {
- width: 200px;
- background: #82b0ee;
- color: #fff;
- text-align: center;
- height: 30px;
- line-height: 30px;
- border-radius: 5px;
- margin: 0 auto;
- margin-top: 20px;
- font-size: 13px;
- cursor: pointer;
- }
- .student_page {
- margin-top: 10px;
- }
- .display {
- display: none;
- }
- .firstTop {
- background: #fff;
- display: flex;
- margin-bottom: 15px;
- flex-direction: column;
- align-items: flex-start;
- height: 90px;
- padding: 10px 25px;
- border-radius: 5px;
- width: 90%;
- box-shadow: 2px 2px 5px #909090;
- }
- .talkScore >>> .el-dialog__body {
- background: #efefef;
- margin: 0 !important;
- }
- .lastTop {
- background: #fff;
- border-radius: 5px;
- width: 98%;
- height: 120px;
- box-shadow: 2px 2px 5px #909090;
- }
- .left,
- .right {
- /* background: #fff; */
- border-radius: 5px;
- /* padding: 10px; */
- box-sizing: border-box;
- }
- .left {
- margin-right: 10px;
- width: 30%;
- min-height: 425px;
- }
- /* .left .left_top {
- background: #fff;
- padding: 10px;
- border-radius: 5px;
- margin-bottom: 15px;
- } */
- .left .left_bottom {
- background: #fff;
- padding: 10px;
- border-radius: 5px;
- height: 160px;
- }
- .right {
- width: 20%;
- background: none;
- padding: 0;
- }
- .courseTitle {
- font-size: 16px;
- color: #7c7c7c;
- width: 100%;
- /* min-width: 1246px; */
- /* margin-bottom: 10px; */
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 15px 20px 15px;
- box-sizing: border-box;
- z-index: 99;
- background-color:#ededed;
- position: sticky;
- top: 0;
- }
- .course_t {
- font-size: 19px;
- display: flex;
- align-items: flex-end;
- }
- .course_t span:nth-child(2) {
- font-size: 16px;
- margin-left: 10px;
- }
- .courseTitle span:nth-child(2) {
- /* font-size: 14px;
- cursor: pointer; */
- }
- .bigImg {
- margin-top: 10px;
- /* height: 300px; */
- height: 150px;
- }
- .bigImg > img,
- .thumbnail > div > img {
- width: 100%;
- height: 100%;
- object-fit: contain;
- }
- .thumbnail {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- margin: 5px 0 8px;
- overflow-x: auto;
- overflow-y: hidden;
- }
- .isClick {
- /* border: 3px solid #5f89d4; */
- border-radius: 5px;
- font-weight: bold;
- }
- .thumbnail > div {
- width: 80px;
- height: 80px;
- margin-right: 5px;
- cursor: pointer;
- flex-shrink: 0;
- box-sizing: border-box;
- }
- .zyBoxC {
- background: #ededed;
- display: flex;
- align-items: flex-start;
- /* justify-content: center; */
- flex-direction: column;
- min-height: calc(100% - 50px);
- }
- .zyBox {
- display: flex;
- min-width: 600px;
- width: 600px;
- position: relative;
- background: #fff;
- flex-direction: column;
- flex-wrap: nowrap;
- align-items: flex-start;
- overflow: hidden;
- border-radius: 5px;
- }
- .zyBoxC + .zyBoxC {
- margin-top: 10px;
- }
- .rbButtom {
- position: absolute;
- bottom: 0;
- right: 0;
- background: #06a7ff;
- width: 100px;
- height: 30px;
- border-radius: 5px;
- text-align: center;
- color: #fff;
- line-height: 30px;
- font-size: 14px;
- cursor: pointer;
- right: 10px;
- }
- .bigImg >>> .vjs-tech,
- .bigImg >>> .video-js {
- height: 300px !important;
- }
- .el-table >>> .even_row {
- background-color: #f1f1f1;
- }
- .data_body {
- height: 200px;
- display: flex;
- position: relative;
- border-radius: 5px;
- box-sizing: border-box;
- width: 100%;
- background: #fff;
- }
- .data_body .title {
- position: absolute;
- top: 10px;
- left: 10px;
- }
- .dialog_diy >>> .el-dialog__header {
- padding: 9px 20px 10px;
- background: #32455b !important;
- }
- .worksDialogCSS >>> .el-dialog__header {
- /* padding: 9px 20px 10px; */
- background: #32455b !important;
- }
- .worksDialogCSS >>> .el-dialog__body {
- width: 850px !important;
- }
- .worksDialogCSS >>> .el-dialog {
- width: 888px !important;
- }
- .dialog_diy >>> .el-dialog__title {
- color: #fff;
- font-size: 15px;
- }
- .dialog_diy >>> .el-dialog__headerbtn {
- top: 14px;
- }
- .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
- color: #fff;
- }
- .dialog_diy >>> .el-dialog__body,
- .dialog_diy >>> .el-dialog__footer {
- background: #fafafa;
- }
- .max_diy >>> .el-dialog {
- /* max-width: 1200px; */
- max-width: 1300px;
- /* height:800px */
- }
- .max_diy >>> .el-dialog__body {
- height: 800px;
- }
- .dialog_diy2 {
- overflow: hidden;
- }
- .dialog_diy2 >>> .el-dialog__header {
- padding: 9px 20px 10px;
- background: #32455b !important;
- }
- .dialog_diy2 >>> .el-dialog__title {
- color: #fff;
- font-size: 15px;
- }
- .dialog_diy2 >>> .el-dialog__headerbtn {
- top: 12px;
- }
- .dialog_diy2 >>> .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .dialog_diy2 >>> .el-dialog__headerbtn .el-dialog__close:hover {
- color: #fff;
- }
- .dialog_diy2 >>> .el-dialog__body,
- .dialog_diy2 >>> .el-dialog__footer {
- background: #ededed;
- padding: 0px;
- }
- .a_addBox2 {
- margin: 10px 0;
- background: #fff;
- padding: 15px;
- }
- .a_addBox {
- margin: 10px 0;
- background: #fff;
- padding: 0 15px;
- /* max-height: 400px; */
- /* max-height: 160px; */
- /* overflow: auto; */
- }
- .a_add_box,
- .isAddBox {
- border-bottom: 2px solid #eee;
- padding-bottom: 10px;
- }
- .isAddBox {
- border: none;
- }
- .a_add_head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 10px 0;
- /* font-size: 18px; */
- }
- .a_add_head .a_add_head_input {
- width: 300px;
- }
- .a_add_head .a_add_head_div {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .a_add_body {
- display: flex;
- align-items: center;
- }
- .a_add_body >>> .el-radio__label{
- font-size: 14px !important;
- }
- .a_add_input {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- /* flex-direction: column; */
- /* width: 100%; */
- }
- .a_add_input >>> el-radio-group {
- margin: 10px 0;
- }
- .a_add_input >>> .el-radio-group {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .redioStyle >>> .el-radio__label {
- font-size: 18px;
- }
- .redioStyle5 >>> .el-radio__label {
- font-size: 14px;
- color: #06a7ff !important;
- }
- .redioStyle2 >>> .el-radio__label {
- font-size: 14px;
- }
- .redioStyle3 >>> .el-checkbox__label {
- font-size: 14px;
- color: #06a7ff !important;
- }
- .redioStyle4 >>> .el-checkbox__label {
- font-size: 14px;
- }
- .task_title {
- font-size: 18px;
- font-weight: 700;
- }
- .ask_Answer {
- /* margin-top: 10px; */
- }
- .ask_Answer_title {
- font-size: 18px;
- }
- .ask_Answer_content {
- display: flex;
- justify-content: center;
- margin: 10px 0;
- }
- .answer_body {
- padding: 10px 0;
- border-bottom: 1px solid #f5f5f5;
- }
- .answer_title {
- font-size: 15px;
- font-weight: 700;
- }
- .answer_content {
- margin-top: 5px;
- }
- .ask_body {
- display: flex;
- font-size: 16px;
- margin-top: 10px;
- flex-direction: column;
- height: 130px;
- overflow: auto;
- /* padding: 0 10px; */
- box-sizing: border-box;
- }
- .ask_body div {
- /* cursor: pointer; */
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .ask_body div .btn {
- cursor: pointer;
- color: #fff;
- background-color: #409eff;
- text-align: center;
- font-size: 12px;
- padding: 6px 12px;
- box-sizing: border-box;
- border-radius: 5px;
- width: 60px;
- }
- .ask_body div span:nth-child(1) {
- max-width: 250px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .ask_body div + div {
- margin-top: 10px;
- }
- .work_nopicture {
- display: flex;
- justify-content: center;
- align-items: center;
- /* height: 350px; */
- height: 352px;
- }
- .student_table >>> .el-table,
- .student_table >>> .el-table__body-wrapper {
- height: auto !important;
- }
- .tx {
- width: 35px;
- }
- .ech {
- width: 100px;
- }
- .tx > img,
- .ech > img {
- width: 100%;
- height: 100%;
- }
- .txName {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-left: 10px;
- }
- .txName > div:nth-child(2),
- .txName > div:nth-child(3) {
- margin-left: 10px;
- }
- .top {
- display: flex;
- justify-content: space-between;
- padding: 15px 0 15px 20px;
- flex-direction: row;
- flex-wrap: nowrap;
- width: 95%;
- }
- .jdName > div:nth-child(1) {
- font-size: 20px;
- font-weight: bold;
- }
- .taskName {
- font-size: 14px;
- margin-top: 10px;
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .task {
- background: #49a0f0;
- color: #fff;
- width: 50px;
- height: 22px;
- border-radius: 5px;
- text-align: center;
- line-height: 22px;
- margin-right: 10px;
- }
- .contentBox {
- width: 100%;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- /* height: 253px; */
- }
- .left_top {
- width: 95%;
- margin: 0 0 0 20px;
- padding: 10px 0 10px 0;
- border-bottom: 2px solid #eee;
- }
- .right_top {
- width: 53%;
- }
- .cBox {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- width: 100%;
- height: calc(100% - 60px);
- padding: 0 20px 15px;
- box-sizing: border-box;
- /* overflow: auto; */
- }
- .right_score {
- min-width: 370px;
- min-height: 351px;
- margin-left: 10px;
- }
- .pb_left {
- width: 20%;
- margin-right: 10px;
- background: rgb(255, 255, 255);
- /* padding-right: 10px; */
- /* height: 500px; */
- /* height:calc(100% - 65px); */
- height: calc(100vh - 178px);
- overflow: auto;
- /* min-height: 800px; */
- border-radius: 5px;
- position: sticky;
- top: 70px;
- }
- .cTitle {
- background: #205cc6;
- width: 85%;
- margin: 10px auto;
- height: 50px;
- color: #fff;
- line-height: 50px;
- text-align: center;
- font-size: 20px;
- font-weight: bold;
- border-radius: 5px;
- cursor: pointer;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 0 10px;
- }
- .ml {
- margin-left: 20px;
- color: #5b7dba;
- border-left: 3px solid #5b7dba;
- padding-left: 5px;
- font-weight: bold;
- }
- .cru_selectBox {
- width: 100%;
- margin: 0 auto;
- overflow: auto;
- height: calc(100% - 90px);
- overflow-x: hidden;
- }
- .cru_selectBox::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 6px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 6px;
- }
- /*定义滚动条轨道 内阴影+圆角*/
- .cru_selectBox::-webkit-scrollbar-track {
- border-radius: 10px;
- background-color: #b8bdc9;
- }
- /*定义滑块 内阴影+圆角*/
- .cru_selectBox::-webkit-scrollbar-thumb {
- border-radius: 10px;
- -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
- background-color: #2c5ab3;
- }
- .blue_box_one {
- text-align: center;
- color: #fff;
- background-image: linear-gradient(90deg, #477cd7, #65b9fc);
- border-radius: 7px;
- margin: 10px auto;
- cursor: pointer;
- width: 95%;
- height: 45px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- }
- .blue_box_one > div:nth-child(1) {
- line-height: 30px;
- margin: 0 5px 0 10px;
- width: 30%;
- min-width: 70px;
- border-radius: 4px;
- }
- .blue_box_one > div:nth-child(2) {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- width: 70%;
- text-align: left;
- margin-right: 10px;
- max-width: calc(100% - 85px);
- }
- .blue_box_one > div:nth-child(2):hover {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- cursor: pointer;
- }
- .twoChild {
- width: 95%;
- margin: 10px auto;
- border-radius: 5px;
- background: #f2f2f2;
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: flex-start;
- align-items: flex-start;
- transition: all 0.5s;
- overflow: hidden;
- height: 0;
- background: #e7f3ff;
- }
- .twoChild > div:nth-child(1) {
- margin-top: 5px;
- }
- .navChild {
- width: 100%;
- cursor: pointer;
- margin-bottom: 10px;
- }
- .navActive {
- height: auto;
- }
- .navTask {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- align-content: flex-start;
- height: 40px;
- justify-content: flex-start;
- padding: 0 10px;
- width: 100%;
- box-sizing: border-box;
- }
- .vedioNav {
- margin: 10px 0 0 15px;
- border-bottom: 1px solid #d7d7d7;
- padding-bottom: 5px;
- background: #96d1ff;
- width: 55px;
- min-width: 55px;
- border-radius: 5px;
- color: #fff;
- text-align: center;
- height: 20px;
- line-height: 26px;
- font-size: 14px;
- }
- .isWorkCss {
- min-width: 20px;
- height: 20px;
- margin: 0 5px 0 10px;
- }
- .isWorkCss > img {
- width: 100%;
- height: 100%;
- }
- .navTaskname {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- padding-left: 5px;
- }
- .allBox {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- /* align-items: flex-start; */
- width: 100%;
- /* height: 351px; */
- margin-bottom: 20px;
- }
- .shuBox {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- align-items: center;
- width: 80%;
- flex-wrap: nowrap;
- /* overflow: auto; */
- /* height: 500px; */
- height: 100%;
- }
- .shuBox > .allBox:last-child {
- margin-bottom: 0;
- }
- .answerbox {
- display: flex;
- flex-direction: row;
- /* align-items: center; */
- margin-bottom: 20px;
- font-size: 16px;
- }
- .answerbox > div:nth-child(2) {
- margin-left: 15px;
- }
- .answerbox1 {
- display: flex;
- flex-direction: row;
- align-items: center;
- flex-wrap: nowrap;
- }
- .answerbox1 > div:nth-child(2) {
- margin-left: 10px;
- /* width: 265px; */
- max-height: 147px;
- overflow: auto;
- }
- .jdName {
- width: 100%;
- }
- .worksDialogCSS >>> .el-dialog {
- /* margin: 0 !important; */
- height: 100%;
- }
- .worksDialogCSS >>> .el-dialog__body {
- height: calc(100% - 100px);
- }
- .openTaskActive {
- color: #4386e6;
- font-weight: bold;
- }
- .isClick {
- background: #4d9def;
- }
- .buttonCss {
- width: 100%;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: flex-end;
- margin: 0px 0 20px;
- padding: 0 20px;
- box-sizing: border-box;
- }
- .fullStyle >>> .el-dialog__body {
- height: calc(100% - 40px) !important;
- /* height: 100%; */
- overflow: auto;
- }
- .fullStyle >>> .el-dialog,
- .fullStyle {
- width: 100% !important;
- max-width: 100% !important;
- height: 100% !important;
- margin: 0 !important;
- }
- .worksTimeBlack{
- /* padding: 0 30px; */
- box-sizing: border-box;
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: rgba(0, 0, 0, 0.9);
- }
- .worksTimeBlack > .worksTimeBlackTit{
- font-size: 18px;
- font-weight: 600;
- }
- .worksTime {
- /* position: absolute;
- top: 10px;
- right: 20px; */
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: baseline;
- }
- .fullBox {
- /* overflow: unset !important;
- height: auto !important; */
- }
- .fullZyBox {
- width: 60% !important;
- }
- .rightScoreFullBox {
- width: 40%;
- }
- .topButton {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- }
- .topButton >>> .el-button {
- color: #409eff;
- border-color: #c6e2ff;
- background-color: #ecf5ff;
- }
- .topButton >>> .el-button:hover {
- color: #606266;
- border-color: #dcdfe6;
- background-color: #fff;
- }
- .radioBox {
- display: flex;
- flex-direction: column;
- flex-wrap: wrap;
- /* align-items: center; */
- }
- .radioBox >>> .el-radio {
- margin-bottom: 5px;
- }
- .radioBox >>> .el-checkbox {
- margin-bottom: 5px;
- }
- .radioBox > div {
- margin: 10px 0 0 10px;
- }
- .radioBox >>> .el-radio__input,
- .radioBox >>> .el-checkbox__inner {
- margin-left: 10px;
- }
- .radioBox >>> .el-radio,
- .radioBox >>> .el-checkbox {
- display: flex;
- align-items: center;
- }
- .inImg {
- width: 100px;
- }
- .inImg > img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .xuan_right_box {
- padding: 10px;
- background: rgb(247, 247, 247);
- margin: 10px 12px;
- border-radius: 5px;
- }
- .tool_right_box {
- display: flex;
- align-items: center;
- }
- .tool_right_box + .tool_right_box {
- margin-top: 10px;
- }
- .right_box_xuan,
- .allRightBox > span:nth-child(2) {
- background: rgb(0 123 255);
- color: #fff;
- border-radius: 5px;
- padding: 5px;
- margin-left: 10px;
- }
- .allRightBox {
- padding: 10px 12px;
- }
- .typeCheck {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- margin-left: 10px;
- /* margin-bottom: 20px; */
- }
- .typeCheck > span {
- margin-left: 10px;
- }
- .contentAuto {
- width: 100%;
- /* height: 253px; */
- overflow: auto;
- }
- .evalCss {
- background: #fff;
- font-size: 18px;
- }
- .middleBox {
- padding: 20px 0 15px 0;
- }
- .pfBox {
- padding-bottom: 30px;
- }
- .nameAndrate {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- padding-bottom: 10px;
- height: 30px;
- line-height: 30px;
- width: 100%;
- }
- .nameAndrate > div {
- margin-left: 10px;
- color: #000;
- height: 30px;
- }
- .nameAndrate >>> .el-rate__icon {
- font-size: 28px !important;
- }
- .pfBox > div:nth-child(2) {
- background: #f7f6f9;
- min-height: 45px;
- border-radius: 10px;
- font-size: 16px;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- padding: 10px 20px;
- box-sizing: border-box;
- color: #000;
- }
- .bz {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- width: 100%;
- }
- .bz > div {
- padding: 0 10px;
- }
- .pj {
- font: inherit;
- color: currentColor;
- width: 100%;
- margin: 0;
- padding: 15px 14px;
- display: block;
- min-width: 0;
- outline: none;
- box-sizing: content-box;
- background: none;
- -webkit-tap-highlight-color: transparent;
- border: 1px solid rgba(0, 0, 0, 0.23);
- border-radius: 4px;
- box-sizing: border-box;
- resize: none;
- }
- .select_box2_box {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- align-items: center;
- }
- .select_box2_img {
- width: 70%;
- height: 100%;
- overflow: auto;
- background: #fff;
- border-radius: 5px;
- margin-top: 10px;
- }
- .select_box2_img img {
- width: 100%;
- }
- .select_box2_answer_box {
- margin: 0 0 10px 20px;
- width: 85%;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- }
- .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
- color: #000;
- }
- .rightWidthCss {
- width: 100%;
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .rightAnswer {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- color: red;
- margin-bottom: 31px;
- }
- .rightAnswerCss {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- padding-top: 30px;
- }
- .blueCss {
- color: #767de1;
- margin-left: 10px;
- }
- .redCss {
- color: red;
- }
- .sentenBox {
- background: #fff;
- /* background-image: url("../../../assets/icon/conSentences/stuBg.png"); */
- /* background-position: 102%; */
- /* background-repeat: no-repeat; */
- /* background-size: 60%; */
- }
- .isWrong {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-content: center;
- align-items: center;
- }
- .cardList,
- .cardList1 {
- padding: 10px 0 10px 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- box-sizing: border-box;
- border-bottom: 1px solid #f4f4f4;
- width: 98%;
- margin: 0 auto;
- min-width: 60%;
- max-width: 85%;
- }
- .cardList1 {
- padding: 10px 0 10px 10px !important;
- margin: 0 !important;
- }
- .cardBox {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- align-content: center;
- }
- .cardBox > div {
- margin-bottom: 10px;
- }
- .isCard,
- .isCard1 {
- width: 130px;
- height: 60px;
- text-align: center;
- line-height: 60px;
- font-size: 20px;
- cursor: pointer;
- background-image: url("../../../assets/icon/conSentences/titleBorder.png");
- background-size: cover;
- transition: all 2s;
- margin-right: 20px;
- }
- .isCard > div,
- .isCard1 > div {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 75%;
- margin: 0 auto;
- font-size: 16px;
- }
- .cardAnswerBox {
- font-size: 16px;
- width: 97%;
- border: 5px;
- padding: 0;
- border-radius: 5px;
- margin: 10px auto;
- word-break: break-word;
- }
- .answerRight {
- width: 25%;
- }
- .isTj {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- min-width: 100px;
- }
- .isTj > div:nth-child(2) {
- color: #727070;
- margin-left: 5px;
- }
- .isTjImg {
- width: 20px;
- height: 20px;
- }
- .isTjImg > img {
- width: 100%;
- height: 100%;
- }
- /* table 样式 */
- .cont >>> table {
- border-top: 1px solid #ccc;
- border-left: 1px solid #ccc;
- }
- .cont >>> table td,
- .cont >>> table th {
- border-bottom: 1px solid #ccc;
- border-right: 1px solid #ccc;
- padding: 15px 5px;
- max-width: 0px;
- }
- .cont >>> table th {
- border-bottom: 2px solid #ccc;
- text-align: center;
- }
- /* blockquote 样式 */
- .cont >>> blockquote {
- display: block;
- border-left: 8px solid #d0e5f2;
- padding: 5px 10px;
- margin: 10px 0;
- line-height: 1.4;
- font-size: 100%;
- background-color: #f1f1f1;
- }
- /* code 样式 */
- .cont >>> code {
- display: inline-block;
- *display: inline;
- *zoom: 1;
- background-color: #f1f1f1;
- border-radius: 3px;
- padding: 3px 5px;
- margin: 0 3px;
- }
- .cont >>> pre code {
- display: block;
- }
- /* ul ol 样式 */
- .cont >>> ul,
- ol {
- margin: 10px 0 10px 20px;
- }
- .workImg {
- width: 90%;
- /* height: calc(100% - 40px); */
- height: 105px;
- position: relative;
- }
- .workImg > img {
- width: 100%;
- height: 100%;
- object-fit: contain;
- cursor: pointer;
- }
- .cutTab {
- display: flex;
- margin: 10px 0;
- }
- .cutTab > .ctrlBtn {
- margin-right: 15px;
- padding: 5px 0;
- cursor: pointer;
- font-size: 14px;
- }
- .cutTab > .ctrlBtn2 {
- cursor: pointer;
- margin-right: 15px;
- border-bottom: 3px #409EFF solid;
- font-weight: 600;
- font-size: 14px;
- padding: 5px 0;
- color: #409EFF;
- }
- </style>
|