index.vue 196 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop" v-if="gotype && !disableBack && !peopleId">
  6. <div class="r_pub_button_retrun" @click="retrunCourse">
  7. 返回
  8. </div>
  9. </div>
  10. <div class="courseTop" v-else>
  11. <div class="stepsNav" v-if="!examineId && !disableBack">
  12. <el-breadcrumb separator-class="el-icon-arrow-right" v-if="review === '1'">
  13. <el-breadcrumb-item v-if="!back" :to="{
  14. path:
  15. '/test?userid=' +
  16. userid +
  17. '&oid=' +
  18. oid +
  19. '&org=' +
  20. org +
  21. '&role=' +
  22. role,
  23. }">表单管理</el-breadcrumb-item>
  24. <el-breadcrumb-item v-else-if="back == 'sass'" :to="{
  25. path:
  26. '/sassPlatform?userid=' +
  27. userid +
  28. '&oid=' +
  29. oid +
  30. '&org=' +
  31. org +
  32. '&role=' +
  33. role,
  34. }">sass平台</el-breadcrumb-item>
  35. <el-breadcrumb-item>
  36. <span style="color: rgb(15, 126, 255)">查看表单</span>
  37. </el-breadcrumb-item>
  38. </el-breadcrumb>
  39. </div>
  40. <div v-if="!peopleId && !disableBack" class="r_pub_button_retrun" @click="retrunCourse">
  41. 返回
  42. </div>
  43. </div>
  44. <div class="step_box" ref="stepBox" v-loading="pdfLoading">
  45. <div class="boxSticky" ref="boxSticky">
  46. <div class="test_title" :style="!isDesktop ? 'justify-content: center;' : ''">
  47. <div class="left">
  48. <div class="title">{{ testJson.title }}</div>
  49. <div class="info" v-if="isDesktop">
  50. <div class="info_box" v-if="testJson.typeN">
  51. <span>类型:</span>
  52. <span>{{ testJson.typeN }}</span>
  53. </div>
  54. <div class="info_box">
  55. <span>填写范围:</span>
  56. <span>{{
  57. testJson.juriP ? testJson.juriP : "所有人"
  58. }}</span>
  59. </div>
  60. <div class="info_box" v-if="testJson.overtime">
  61. <span>截止时间:</span>
  62. <span>{{ testJson.overtime }}</span>
  63. </div>
  64. </div>
  65. </div>
  66. <div v-if="!peopleId">
  67. <div class="right" v-if="isDesktop">
  68. <div class="data_box">
  69. <span>提交数量</span>
  70. <!-- <span><span class="big">{{ works.length }}</span>份</span> -->
  71. <span><span class="big">{{ worksArray.length }}</span>份</span>
  72. </div>
  73. <div class="data_box" v-if="testJson.juriP">
  74. <span>表单完成率</span>
  75. <span><span class="big">{{
  76. ((iscount / pcount) * 100).toFixed(0)
  77. }}</span>%</span>
  78. </div>
  79. <div class="data_box" v-if="testJson.juriP">
  80. <span>未完成人数</span>
  81. <span><span class="big">{{ pcount - iscount }}</span></span>
  82. </div>
  83. <div class="btn_box" @click="dialogVisibleShare = true">
  84. <span></span>
  85. <span>提醒</span>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="right" v-if="review === '1'">
  90. <div class="score_box">总分:<span>{{scoList2.reduce((acc, curr) => acc + curr.sco, 0)}}</span></div>
  91. </div>
  92. </div>
  93. <!-- pc端 查看切换 isDesktop-->
  94. <div class="search_nav" v-if="isDesktop">
  95. <div class="right">
  96. <span :class="{ active: stype == 2 }" @click="checkDataType(2)">按人员查看</span>
  97. <span :class="{ active: stype == 1 }" @click="checkDataType(1)" v-if="!peopleId">按题目查看</span>
  98. <span :class="{ active: stype == 3 }" @click="checkDataType(3)" v-show="false">按数量查看</span>
  99. </div>
  100. <div class="left" v-if="isDesktop">
  101. <!-- <div style="margin-right: 10px;position: relative;" v-if="stype == 2 || stype == 3"> -->
  102. <!-- <div style="margin-right: 10px;position: relative;">
  103. <el-select v-model="TeachingValue" @change="searchCourse" placeholder="按教研室">
  104. <el-option
  105. label="全部"
  106. value="">
  107. </el-option>
  108. <el-option
  109. v-for="item in TeachingOptions"
  110. :key="item.id"
  111. :label="item.name"
  112. :value="item.id">
  113. </el-option>
  114. </el-select>
  115. </div> -->
  116. <div style="margin-right: 10px; position: relative" v-if="stype == 2 || stype == 3">
  117. <!-- <el-date-picker
  118. v-model="SubmitTime"
  119. type="date"
  120. @change="searchCourse"
  121. value-format="yyyy-MM-dd"
  122. placeholder="选择日期"
  123. >
  124. </el-date-picker> -->
  125. <!-- <el-select v-model="SubmitTime" placeholder="按提交时间筛选">
  126. <el-option
  127. label="全部"
  128. value="">
  129. </el-option>
  130. <el-option
  131. v-for="item in SubmitTimeOptions"
  132. :key="item.id"
  133. :label="item.name"
  134. :value="item.id">
  135. </el-option>
  136. </el-select> -->
  137. </div>
  138. <div style="margin-right: 10px; position: relative" v-if="stype == 2 || stype == 3">
  139. <el-input v-model="courseName" class="student_input" :disabled="!!peopleId"
  140. placeholder="请输入需要搜索的姓名"></el-input>
  141. <span class="serach_icon" @click="searchCourse"></span>
  142. </div>
  143. <div class="btnA" v-if="stype == 1 && !pdfLoading" @click="exportPDF">
  144. 导出PDF
  145. </div>
  146. <div class="btnA" v-if="stype == 2" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
  147. 导出数据
  148. <div v-show="btnDisplay" class="buttonBox">
  149. <div type="primary" @click="exportExcel">下载汇总表格</div>
  150. <div type="primary" @click="exportAllWord">
  151. 导出人员数据
  152. </div>
  153. <div type="primary" v-if="stype == 2" @click="exportWordData">
  154. word导出
  155. </div>
  156. </div>
  157. </div>
  158. <div class="btnA" v-if="stype == 3" @click="exportAllWord2">
  159. 导出人员数据
  160. </div>
  161. <div class="btnA" @click="openChat" v-if="this.worksArray.length && !peopleId">
  162. AI分析
  163. </div>
  164. <el-popover v-if="stype == 2 && ((peopleId && review == 1) || (!peopleId && !review))"
  165. placement="top-start" width="320" ref="popover1" :visible-arrow="false" trigger="click">
  166. <div class="openCeBox">
  167. <div v-if="aiscoLoading" class="openCeBoxLoading">
  168. 小可努力生成中,请稍等片刻<img style="width: 50px;" src="../../../../assets/KekeLoading.gif" alt="">
  169. </div>
  170. <div style="display: flex;justify-content: space-between;align-items: center;">
  171. <div class="TopTit">智能评分</div>
  172. <el-popover placement="bottom" @click.native.stop :visible-arrow="false" width="300"
  173. ref="popover2" v-model="opQvisible" trigger="click">
  174. <div>
  175. <div style="display: flex;align-items: center;margin-bottom: 10px;">
  176. <img src="../../../../assets/delicon.svg" alt="">是否确认清空
  177. </div>
  178. <div style="padding: 0 20px;box-sizing: border-box;">清空会删除所有配置信息,并同步删除已经生成完成的数据列。请谨慎操作!</div>
  179. <div style="display: flex;justify-content: flex-end;margin-top: 10px;">
  180. <el-button class="BtnOPC" @click="opQvisible = false"> 取消</el-button>
  181. <el-button class="BtnOPC" @click="cleancueWord" style="background: #1456F0;"
  182. type="primary">确定</el-button>
  183. </div>
  184. </div>
  185. <div class="Topkong" slot="reference">
  186. <img src="../../../../assets/clear.svg" alt="">
  187. 清空
  188. </div>
  189. </el-popover>
  190. </div>
  191. <div style="font-size: 12px;color: #6E6B6B;">标题</div>
  192. <div>
  193. <el-input v-model="cueWord.openCeTit" placeholder="输入列标题"></el-input>
  194. </div>
  195. <div style="font-size: 12px;color: #6E6B6B;">配置</div>
  196. <div style="background: #F5F6F7;padding: 10px;box-sizing: border-box;border-radius: 5px;">
  197. <div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 5px;">
  198. <div style="font-size: 12px;color: #6E6B6B;">输入指令*</div>
  199. <div style="position: relative;font-size: 12px;color: #3992EA;">
  200. <div style="cursor: pointer;" @click="quoteShow">
  201. <i class="el-icon-circle-plus-outline"></i>
  202. 引用字段
  203. </div>
  204. <div class="quoteBlock" v-if="quoteV">
  205. <el-input v-model="opcInp" placeholder="请输入内容">
  206. <i slot="prefix" class="el-input__icon el-icon-search"></i>
  207. </el-input>
  208. <div class="quoteBlockCon">
  209. <div v-if="!opcInp.trim() ? true : '序号'.includes(opcInp)"
  210. :class="[cueWord.fieldList.indexOf('序号') != -1 ? 'selCss' : '']"
  211. @click="addfield('序号')">
  212. 序号</div>
  213. <div v-if="!opcInp.trim() ? true : '提交人'.includes(opcInp)"
  214. :class="[cueWord.fieldList.indexOf('提交人') != -1 ? 'selCss' : '']"
  215. @click="addfield('提交人')">提交人</div>
  216. <template v-for="(i, index) in teaType">
  217. <div v-if="!opcInp.trim() ? true : i.name.includes(opcInp)"
  218. :class="[cueWord.fieldList.indexOf(i.name) != -1 ? 'selCss' : '']"
  219. @click="addfield(i.name)" :key="index + 'a'">
  220. <el-tooltip class="item" effect="dark" :content="i.name" placement="top">
  221. <div style="
  222. white-space: nowrap;
  223. overflow: hidden;
  224. text-overflow: ellipsis;">
  225. {{ i.name }}</div>
  226. </el-tooltip>
  227. </div>
  228. </template>
  229. <div v-if="!opcInp.trim() ? true : '提交时间'.includes(opcInp)"
  230. :class="[cueWord.fieldList.indexOf('提交时间') != -1 ? 'selCss' : '']"
  231. @click="addfield('提交时间')">提交时间</div>
  232. <template v-for="(i, index) in fie(chapters)">
  233. <div :class="[cueWord.fieldList.indexOf(i.json.title) != -1 ? 'selCss' : '']"
  234. v-if="!opcInp.trim() ? true : i.json.title.includes(opcInp)"
  235. @click="addfield(i.json.title)" :key="index + 'b'">
  236. <el-tooltip class="item" effect="dark" :content="i.json.title" placement="top">
  237. <div style="
  238. white-space: nowrap;
  239. overflow: hidden;
  240. text-overflow: ellipsis;">
  241. {{ i.json.title }}</div>
  242. </el-tooltip>
  243. </div>
  244. </template>
  245. </div>
  246. </div>
  247. <div class="maskCss" v-if="quoteV" @click.stop="quoteV = false, opcInp = ''"></div>
  248. </div>
  249. </div>
  250. <div style="display: flex;gap: 8px;margin-bottom: 5px;flex-wrap: wrap;">
  251. <span class="SPCE" v-for="(i, index) in cueWord.fieldList" :key="index + 'c'">
  252. {{ i }} <i @click="addfield(i)" class="el-icon-close" style="cursor: pointer;"></i>
  253. </span>
  254. </div>
  255. <div>
  256. <el-input resize="none" type="textarea" :rows="8" placeholder="请输入内容"
  257. v-model="cueWord.openCeCon">
  258. </el-input>
  259. </div>
  260. </div>
  261. <!-- <div style="display: flex;justify-content: flex-start;align-items: center;gap: 5px;">
  262. <el-switch
  263. v-model="openCeVal"
  264. >
  265. </el-switch>
  266. <span>自动更新
  267. <el-tooltip class="item" effect="dark" content="开启后,当前字段将跟随配置内容的变化同步更新" placement="top">
  268. <i class="el-icon-warning-outline"></i>
  269. </el-tooltip>
  270. </span>
  271. </div> -->
  272. <div style="margin-top: 10px;display: flex;justify-content: flex-end;">
  273. <el-button @click="opQvisible0 = false">取消</el-button>
  274. <el-button style="background: #1456F0;" @click="markScoAuto()" type="primary">自动评分</el-button>
  275. <el-button style="background: #1456F0;" @click="markSco()" type="primary">运行</el-button>
  276. </div>
  277. </div>
  278. <div slot="reference" class="btnA">
  279. 智能评分
  280. </div>
  281. </el-popover>
  282. <!--v-if="this.worksArray.length"-->
  283. </div>
  284. </div>
  285. <!-- 手机端 查看切换 isDesktop-->
  286. <div class="search_nav" style="display: flex; justify-content: space-evenly; border: none"
  287. v-if="!isDesktop">
  288. <div class="right">
  289. <span :class="{ active2: stype == 1 }" @click="checkDataType(1)">按题目查看</span>
  290. <span :class="{ active2: stype == 2 }" @click="checkDataType(2)">按人员查看</span>
  291. <span :class="{ active2: stype == 3 }" @click="checkDataType(3)" v-show="false">按数量查看</span>
  292. </div>
  293. </div>
  294. </div>
  295. <!-- 按题目pc端 isDesktop-->
  296. <div class="title_content" v-if="stype == 1 && isDesktop" v-loading="isLoading">
  297. <div class="title_box" v-if="!testArray.length" style="
  298. display: flex;
  299. align-items: center;
  300. justify-content: center;
  301. height: 500px;
  302. ">
  303. 暂无内容
  304. </div>
  305. <div class="title_box" v-for="(item, index) in testArray" :key="index">
  306. <div class="title">
  307. <el-tooltip :content="selectType(item)" placement="top" effect="dark">
  308. <span class="test_icon" :class="{
  309. test_icon_check: item.type == 1 && item.atype == 2,
  310. test_icon_checkO: item.type == 1 && item.atype == 1,
  311. test_icon_gap: item.type == 3,
  312. test_icon_file: item.type == 5,
  313. test_course_file: item.type == 6 || item.type == 11,
  314. test_eva_file: item.type == 7,
  315. test_icon_time: item.type == 8,
  316. test_icon_sweep: item.type == 12,
  317. test_icon_number: item.type == 13,
  318. test_icon_clockIn: item.type == 14
  319. }"></span>
  320. </el-tooltip>
  321. <span style="line-height: 25px">{{ item.title }}</span>
  322. <el-button v-if="item.type == 5 && item.array.length > 0" class="title_downBtn" type="primary"
  323. size="small" @click.stop="downloadFileType5(item.array, item.title, index)">批量下载附件</el-button>
  324. <div v-if="item.type == 7" style="right: 0; position: absolute">
  325. 平均分:{{ getAverageScore(index) }}
  326. </div>
  327. </div>
  328. <div class="detail" v-if="item.detail">{{ item.detail }}</div>
  329. <div class="content1" v-if="item.type == 1">
  330. <div class="left">
  331. <div class="title">
  332. <span>选项</span>
  333. <span>小计</span>
  334. <span>比例</span>
  335. </div>
  336. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  337. <span>
  338. <el-tooltip :content="data.name" placement="top" effect="dark">
  339. <!-- content to trigger tooltip here -->
  340. <span>{{ data.name }}</span>
  341. </el-tooltip>
  342. </span>
  343. <span>{{ data.count }}</span>
  344. <span>
  345. <el-progress style="display: flex; align-items: center" :stroke-width="12" color="#3681fc"
  346. :percentage="data.count
  347. ? parseFloat(
  348. ((data.count / item.count) * 100).toFixed(2)
  349. )
  350. : 0
  351. "></el-progress>
  352. </span>
  353. </div>
  354. </div>
  355. <div class="right">
  356. <checkPie :dataJ="item.array"></checkPie>
  357. </div>
  358. </div>
  359. <div class="content2" v-if="item.type == 3">
  360. <div class="left" style="min-height: 482px;">
  361. <div class="title">
  362. <span>序号</span>
  363. <span>词频</span>
  364. <span>答案文本</span>
  365. </div>
  366. <div class="data" v-for="(data, index3) in item.showArray" :key="index + '-' + index3">
  367. <span>{{ index3 + 1 }}</span>
  368. <span>{{ data.count }}次</span>
  369. <el-tooltip :content="data.name" placement="top" effect="dark">
  370. <!-- content to trigger tooltip here -->
  371. <span>{{ data.name }}</span>
  372. </el-tooltip>
  373. </div>
  374. <div class="paging" v-if="item.limit">
  375. <el-pagination background :hide-on-single-page="true" :page-size="item.limit"
  376. @current-change="textPagingChange($event, item, index)" :current-page="item.nowPage"
  377. layout="prev, pager, next" :total="item.total">
  378. </el-pagination>
  379. </div>
  380. </div>
  381. <div class="right">
  382. <div class="noWordCloud" v-if="!item.wordCloutData">
  383. <el-button v-if="!item.loadingWordCloud" type="primary"
  384. @click="getWordCloutData(item, index)">生成词云图</el-button>
  385. <div v-else>
  386. <span>小可努力生成中,请稍等片刻</span>
  387. <img src="../../../../assets/KekeLoading.gif">
  388. </div>
  389. </div>
  390. <wordcloud v-else :data="item.wordCloutData" nameKey="name" valueKey="count" :showTooltip="false"
  391. :wordClick="wordClickHandler">
  392. </wordcloud>
  393. </div>
  394. </div>
  395. <div class="content3" :style="{
  396. position: 'relative',
  397. overflow: fileLoading[index].bool ? 'hidden' : 'auto',
  398. }" v-if="item.type == 5">
  399. <div class="file" v-for="(file, index2) in item.array" :key="index + '-' + index2"
  400. @click.stop="checkFile(file)">
  401. <img class="download" src="../../../../assets/icon/fileIcon/download.png"
  402. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  403. <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
  404. <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
  405. <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
  406. <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
  407. <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
  408. <div class="name">
  409. <el-tooltip :content="file.name" placement="top" effect="dark">
  410. <span>{{ file.name }}</span>
  411. </el-tooltip>
  412. </div>
  413. </div>
  414. <div v-if="fileLoading[index].bool" class="mask">
  415. <div class="progressBox">
  416. <div class="lbox">
  417. <img src="../../../../assets/loading.gif" />打包中,请稍后
  418. </div>
  419. <div style="margin-bottom: 10px">
  420. <span>{{ fileLoading[index].load }}</span>
  421. /
  422. <span>{{ fileLoading[index].count }}</span>
  423. </div>
  424. <el-progress :text-inside="true" :stroke-width="20" :percentage="fileLoading[index].progress
  425. ? fileLoading[index].progress
  426. : 0
  427. " style="width: 80%"></el-progress>
  428. </div>
  429. </div>
  430. </div>
  431. <div class="content4" v-if="item.type == 6">
  432. <div class="out_box" v-for="(item, index) in item.courseArray" :key="index + '-' + index2">
  433. <div class="tup">
  434. <img :src="item.cover != null && item.cover != ''
  435. ? JSON.parse(item.cover).length > 0
  436. ? JSON.parse(item.cover)[0].url
  437. : mr
  438. : mr
  439. " alt />
  440. <div class="bottom_box">
  441. <div>
  442. <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
  443. <span>{{ item.title }}</span>
  444. </el-tooltip>
  445. </div>
  446. <div class="kc_t">
  447. <span>{{ item.username }}</span>
  448. <span>{{
  449. item.state == 1
  450. ? "阶段模式"
  451. : item.state == 2
  452. ? "任务模式"
  453. : "极简模式"
  454. }}</span>
  455. </div>
  456. <div class="kc_time">
  457. <span style="color: #717c8d">创建日期:</span>{{ item.time }}
  458. </div>
  459. <div class="kc_time">
  460. <span style="color: #717c8d">修改日期:</span>{{ item.update_at }}
  461. </div>
  462. </div>
  463. </div>
  464. </div>
  465. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  466. {{ courses }}
  467. </div> -->
  468. </div>
  469. <div class="content1" v-if="item.type == 7">
  470. <div class="left">
  471. <div class="title">
  472. <span>评分</span>
  473. <span>小计</span>
  474. <span>比例</span>
  475. </div>
  476. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  477. <span>
  478. <span>{{ data.name }}</span>
  479. </span>
  480. <span>{{ data.count }}</span>
  481. <span>
  482. <el-progress style="display: flex; align-items: center" :stroke-width="12" color="#3681fc"
  483. :percentage="data.count
  484. ? parseFloat(
  485. ((data.count / item.count) * 100).toFixed(2)
  486. )
  487. : 0
  488. "></el-progress>
  489. </span>
  490. </div>
  491. </div>
  492. <div class="right">
  493. <checkPie :dataJ="item.array"></checkPie>
  494. </div>
  495. </div>
  496. <div class="content2" v-if="item.type == 8">
  497. <div class="left">
  498. <div class="title">
  499. <span>序号</span>
  500. <span>词频</span>
  501. <span>日期</span>
  502. </div>
  503. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  504. <span>{{ index2 + 1 }}</span>
  505. <span>{{ data.count }}次</span>
  506. <el-tooltip :content="data.name" placement="top" effect="dark">
  507. <!-- content to trigger tooltip here -->
  508. <span>{{ data.name }}</span>
  509. </el-tooltip>
  510. </div>
  511. </div>
  512. <div class="right">
  513. <wordcloud :data="item.array" nameKey="name" valueKey="count" :showTooltip="false"
  514. :wordClick="wordClickHandler">
  515. </wordcloud>
  516. </div>
  517. </div>
  518. <div class="content4" v-if="item.type == 11">
  519. <div class="out_box" v-for="(item, index) in item.courseArray" :key="index + '-' + index2">
  520. <div class="tup">
  521. <img :src="item.cover != null && item.cover != ''
  522. ? JSON.parse(item.cover).length > 0
  523. ? JSON.parse(item.cover)[0].url
  524. : mr
  525. : mr
  526. " alt />
  527. <div class="bottom_box">
  528. <div>
  529. <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
  530. <span>{{ item.title }}</span>
  531. </el-tooltip>
  532. </div>
  533. <div class="kc_t">
  534. <span>{{ item.username }}</span>
  535. <span>{{
  536. item.state == 1
  537. ? "阶段模式"
  538. : item.state == 2
  539. ? "任务模式"
  540. : "极简模式"
  541. }}</span>
  542. </div>
  543. <div class="kc_time">
  544. <span style="color: #717c8d">创建日期:</span>{{ item.time }}
  545. </div>
  546. <div class="kc_time">
  547. <span style="color: #717c8d">修改日期:</span>{{ item.update_at }}
  548. </div>
  549. </div>
  550. </div>
  551. </div>
  552. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  553. {{ courses }}
  554. </div> -->
  555. </div>
  556. <div class="content1" v-if="item.type == 13">
  557. <div class="left">
  558. <div class="title">
  559. <span>数字</span>
  560. <span>次数</span>
  561. <span>比例</span>
  562. </div>
  563. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  564. <span>
  565. <span>{{ data.name }}</span>
  566. </span>
  567. <span>{{ data.count }}</span>
  568. <span>
  569. <el-progress style="display: flex; align-items: center" :stroke-width="12" color="#3681fc"
  570. :percentage="data.count
  571. ? parseFloat(
  572. ((data.count / item.count) * 100).toFixed(2)
  573. )
  574. : 0
  575. "></el-progress>
  576. </span>
  577. </div>
  578. </div>
  579. <div class="right">
  580. <checkPie :dataJ="item.array"></checkPie>
  581. </div>
  582. </div>
  583. </div>
  584. </div>
  585. <!-- 按题目手机端 !isDesktop-->
  586. <div class="title_content" v-if="stype == 1 && !isDesktop" v-loading="isLoading">
  587. <div class="title_box" v-if="!testArray.length" style="
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. height: 500px;
  592. ">
  593. 暂无内容
  594. </div>
  595. <div class="title_box" v-for="(item, index) in testArray" :key="index">
  596. <div class="title" style="
  597. font-size: 16px;
  598. display: flex;
  599. justify-content: space-between;
  600. align-items: center;
  601. ">
  602. <!-- <el-tooltip :content="selectType(item)" placement="top" effect="dark">
  603. <span class="test_icon"
  604. :class="{ test_icon_check: item.type == 1 && item.atype == 2, test_icon_checkO: item.type == 1 && item.atype == 1, test_icon_gap: item.type == 3, test_icon_file: item.type == 5, test_course_file: item.type == 6, test_eva_file: item.type == 7,test_icon_time: item.type == 8 }"></span>
  605. </el-tooltip> -->
  606. <div style="display: flex">
  607. <div class="topicTitCss">第{{ index + 1 }}题:</div>
  608. <el-tooltip :content="item.title" placement="top" effect="dark">
  609. <div style="
  610. width: 100px;
  611. overflow: hidden;
  612. white-space: nowrap;
  613. text-overflow: ellipsis;
  614. ">
  615. {{ item.title }}
  616. </div>
  617. </el-tooltip>
  618. </div>
  619. <div style="display: flex">
  620. <!-- <div v-if="item.type==7" style="right:0;position: absolute;">平均分:{{ getAverageScore(index) }}</div> -->
  621. <div style="
  622. color: rgba(0, 0, 0, 0.4);
  623. display: flex;
  624. align-items: center;
  625. ">
  626. [{{ selectType(item) }}]
  627. </div>
  628. <!-- <el-button style="padding: 5px;" v-if="item.type == 5 && item.array.length>0" class="title_downBtn" type="primary" size="small" @click.stop="downloadFileType5(item.array,item.title)">批量下载附件</el-button> -->
  629. </div>
  630. </div>
  631. <div class="detail" v-if="item.detail">{{ item.detail }}</div>
  632. <div class="content1" style="width: 100%; display: block" v-if="item.type == 1">
  633. <div class="left" style="width: 100%" v-if="!item.cut">
  634. <div class="isDesktopTitle">
  635. <div>选项</div>
  636. <div>小计</div>
  637. <div>比例</div>
  638. </div>
  639. <div class="isDesktopTitle" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  640. <!-- <span> -->
  641. <el-tooltip :content="data.name" placement="top" effect="dark">
  642. <!-- content to trigger tooltip here -->
  643. <div>{{ data.name }}</div>
  644. </el-tooltip>
  645. <!-- </span> -->
  646. <div>{{ data.count }}</div>
  647. <div>
  648. {{
  649. data.count
  650. ? parseFloat(
  651. ((data.count / item.count) * 100).toFixed(2)
  652. )
  653. : 0
  654. }}
  655. <!-- <el-progress style="display: flex;align-items: center;" :stroke-width="12" color="#3681fc"
  656. :percentage="data.count ? parseFloat(((data.count / item.count) * 100).toFixed(2)) : 0"></el-progress> -->
  657. </div>
  658. </div>
  659. </div>
  660. <div class="right isDesktopRight" v-if="item.cut">
  661. <checkPie :dataJ="item.array"></checkPie>
  662. </div>
  663. <div class="cutBtnBlockCss">
  664. <div class="cutBtnCss" @click="item.cut = !item.cut">
  665. {{ item.cut ? "查看详情" : "查看视图" }}
  666. </div>
  667. </div>
  668. </div>
  669. <div class="content2" style="width: 100%; display: block" v-if="item.type == 3">
  670. <div class="left" style="width: 100%" v-if="!item.cut">
  671. <div class="title">
  672. <span>序号</span>
  673. <span>词频</span>
  674. <span>答案文本</span>
  675. </div>
  676. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  677. <span>{{ index2 + 1 }}</span>
  678. <span>{{ data.count }}次</span>
  679. <el-tooltip :content="data.name" placement="top" effect="dark">
  680. <!-- content to trigger tooltip here -->
  681. <span>{{ data.name }}</span>
  682. </el-tooltip>
  683. </div>
  684. </div>
  685. <div class="right isDesktopRight" v-if="item.cut">
  686. <wordcloud :data="item.array" nameKey="name" valueKey="count" :showTooltip="false"
  687. :wordClick="wordClickHandler">
  688. </wordcloud>
  689. </div>
  690. <div class="cutBtnBlockCss">
  691. <div class="cutBtnCss" @click="item.cut = !item.cut">
  692. {{ item.cut ? "查看详情" : "查看视图" }}
  693. </div>
  694. </div>
  695. </div>
  696. <div class="content3" v-if="item.type == 5">
  697. <div class="file" v-for="(file, index2) in item.array" :key="index + '-' + index2"
  698. @click.stop="checkFile(file)">
  699. <img class="download" src="../../../../assets/icon/fileIcon/download.png"
  700. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  701. <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
  702. <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
  703. <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
  704. <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
  705. <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
  706. <div class="name">
  707. <el-tooltip :content="file.name" placement="top" effect="dark">
  708. <span>{{ file.name }}</span>
  709. </el-tooltip>
  710. </div>
  711. </div>
  712. </div>
  713. <div class="content4" v-if="item.type == 6">
  714. <div class="out_box" v-for="(item, index) in item.courseArray" :key="index + '-' + index2">
  715. <div class="tup">
  716. <img :src="item.cover != null && item.cover != ''
  717. ? JSON.parse(item.cover).length > 0
  718. ? JSON.parse(item.cover)[0].url
  719. : mr
  720. : mr
  721. " alt />
  722. <div class="bottom_box">
  723. <div>
  724. <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
  725. <span>{{ item.title }}</span>
  726. </el-tooltip>
  727. </div>
  728. <div class="kc_t">
  729. <span>{{ item.username }}</span>
  730. <span>{{
  731. item.state == 1
  732. ? "阶段模式"
  733. : item.state == 2
  734. ? "任务模式"
  735. : "极简模式"
  736. }}</span>
  737. </div>
  738. <div class="kc_time">
  739. <span style="color: #717c8d">创建日期:</span>{{ item.time }}
  740. </div>
  741. <div class="kc_time">
  742. <span style="color: #717c8d">修改日期:</span>{{ item.update_at }}
  743. </div>
  744. </div>
  745. </div>
  746. </div>
  747. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  748. {{ courses }}
  749. </div> -->
  750. </div>
  751. <div class="content1" style="width: 100%; display: block" v-if="item.type == 7">
  752. <div class="left" style="width: 100%" v-if="!item.cut">
  753. <div class="isDesktopTitle">
  754. <div>评分</div>
  755. <div>小计</div>
  756. <div style="width: 120px">比例</div>
  757. </div>
  758. <div class="isDesktopTitle" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  759. <!-- <span> -->
  760. <div>{{ data.name }}</div>
  761. <!-- </span> -->
  762. <div>{{ data.count }}</div>
  763. <div style="width: 120px">
  764. {{
  765. data.count
  766. ? parseFloat(
  767. ((data.count / item.count) * 100).toFixed(2)
  768. )
  769. : 0
  770. }}
  771. <!-- <el-progress style="display: flex;align-items: center;" :stroke-width="12" color="#3681fc"
  772. :percentage="data.count ? parseFloat(((data.count / item.count) * 100).toFixed(2)) : 0"></el-progress> -->
  773. </div>
  774. </div>
  775. </div>
  776. <div class="right isDesktopRight" v-if="item.cut">
  777. <checkPie :dataJ="item.array"></checkPie>
  778. </div>
  779. <div class="cutBtnBlockCss">
  780. <div class="cutBtnCss" @click="item.cut = !item.cut">
  781. {{ item.cut ? "查看详情" : "查看视图" }}
  782. </div>
  783. </div>
  784. </div>
  785. <div class="content2" style="width: 100%; display: block" v-if="item.type == 8">
  786. <div class="left" style="width: 100%" v-if="!item.cut">
  787. <div class="title">
  788. <span>序号</span>
  789. <span>词频</span>
  790. <span>日期</span>
  791. </div>
  792. <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
  793. <span>{{ index2 + 1 }}</span>
  794. <span>{{ data.count }}次</span>
  795. <el-tooltip :content="data.name" placement="top" effect="dark">
  796. <!-- content to trigger tooltip here -->
  797. <span>{{ data.name }}</span>
  798. </el-tooltip>
  799. </div>
  800. </div>
  801. <div class="right isDesktopRight" v-if="item.cut">
  802. <wordcloud :data="item.array" nameKey="name" valueKey="count" :showTooltip="false"
  803. :wordClick="wordClickHandler">
  804. </wordcloud>
  805. </div>
  806. <div class="cutBtnBlockCss">
  807. <div class="cutBtnCss" @click="item.cut = !item.cut">
  808. {{ item.cut ? "查看详情" : "查看视图" }}
  809. </div>
  810. </div>
  811. </div>
  812. <div class="content4" v-if="item.type == 11">
  813. <div class="out_box" v-for="(item, index) in item.courseArray" :key="index + '-' + index2">
  814. <div class="tup">
  815. <img :src="item.cover != null && item.cover != ''
  816. ? JSON.parse(item.cover).length > 0
  817. ? JSON.parse(item.cover)[0].url
  818. : mr
  819. : mr
  820. " alt />
  821. <div class="bottom_box">
  822. <div>
  823. <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
  824. <span>{{ item.title }}</span>
  825. </el-tooltip>
  826. </div>
  827. <div class="kc_t">
  828. <span>{{ item.username }}</span>
  829. <span>{{
  830. item.state == 1
  831. ? "阶段模式"
  832. : item.state == 2
  833. ? "任务模式"
  834. : "极简模式"
  835. }}</span>
  836. </div>
  837. <div class="kc_time">
  838. <span style="color: #717c8d">创建日期:</span>{{ item.time }}
  839. </div>
  840. <div class="kc_time">
  841. <span style="color: #717c8d">修改日期:</span>{{ item.update_at }}
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  847. {{ courses }}
  848. </div> -->
  849. </div>
  850. </div>
  851. </div>
  852. <div class="aiBoxRight" ref="aiBoxRightDivRef" v-show="aiChatV && isDesktop" v-if="!peopleId">
  853. <aiBoxRight :courseId="cid" :worksArray="[{ name: testJson.title, worksArray: worksArray }]" ref="aiChat">
  854. </aiBoxRight>
  855. </div>
  856. <!-- 按人员pc端 isDesktop-->
  857. <div class="table_content" v-if="stype == 2 && isDesktop">
  858. <el-table class="el-table" ref="table" :data="tableWorksArray" border :fit="true" :key="2"
  859. v-loading="isLoading" style="width: 100%" :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  860. @filter-change="handleFilterChange" @selection-change="handleSelectionChange">
  861. <el-table-column label="序号" type="selection" width="55">
  862. </el-table-column>
  863. <el-table-column fixed label="序号" width="80px" align="left">
  864. <template slot-scope="scope">
  865. {{ scope.$index + 1 }}
  866. </template>
  867. </el-table-column>
  868. <el-table-column fixed prop="name" label="提交人" width="120px" align="left">
  869. </el-table-column>
  870. <el-table-column v-for="item in teaType" :key="item.id" :label="item.name" width="120px" align="left"
  871. :filters="getNameTTypeFiler(item)" :filter-method="getNameTTypeFiler(item) ? (value, row) => {
  872. return filterTType(value, row, index);
  873. } : null">
  874. <template slot-scope="scope">
  875. {{ getTType(item.id, scope.row.cclassid) }}
  876. </template>
  877. </el-table-column>
  878. <el-table-column prop="time" label="提交时间" width="170px" align="left">
  879. <template slot="header">
  880. <div style="display: flex; align-items: center">
  881. <span
  882. :class="{ timePickerActive: (submissionTimePicker && submissionTimePicker.length > 0) }">提交时间</span>
  883. <div class="tableDatePicker">
  884. <el-date-picker v-model="submissionTimePicker" @change="submissionTimePickerChange"
  885. type="daterange" range-separator="▼" :picker-options="pickerOptions([])">
  886. </el-date-picker>
  887. </div>
  888. </div>
  889. </template>
  890. <template slot-scope="scope">
  891. <span :style="`${testJson.overtime &&
  892. new Date(testJson.overtime) < new Date(scope.row.time)
  893. ? 'color:#d12920'
  894. : ''
  895. }`">{{ scope.row.time }}</span>
  896. </template>
  897. </el-table-column>
  898. <el-table-column v-for="(item, index) in chapters" :key="index" :label="item.json.title"
  899. :min-width="item.type == 5 ? 200 : 150" align="left" :filters="item.type == 1
  900. ? item.nameFilters
  901. : item.type == 6 || item.type == 11
  902. ? item.nameFilters
  903. : null
  904. " :filter-method="item.type == 1
  905. ? (value, row) => {
  906. return filterName(value, row, index);
  907. }
  908. : item.type == 6 || item.type == 11
  909. ? (value, row) => {
  910. return filterCourse(value, row, index);
  911. }
  912. : null
  913. " :filter-placement="item.type == 1 || item.type == 6 || item.type == 11
  914. ? filterPlacement
  915. : null
  916. ">
  917. <!-- item.type==8?getTimeFilterText(item,index): item.type==8?(value,row)=>{return filterTime(value,row,index)}: item.type == 8 ||-->
  918. <template slot="header">
  919. <div v-if="item.type == 8" style="display: flex; align-items: center">
  920. <span
  921. :class="{ timePickerActive: (tableDatePicker[index] && tableDatePicker[index].length > 0) }">{{
  922. item.json.title }}</span>
  923. <div class="tableDatePicker">
  924. <el-date-picker v-model="tableDatePicker[index]" @blur="tableDataPickerChange" type="daterange"
  925. range-separator="▼" :picker-options="pickerOptions(item.json.timeSort)">
  926. </el-date-picker>
  927. </div>
  928. </div>
  929. <div v-else style="float: left">
  930. {{ item.json.title }}
  931. </div>
  932. </template>
  933. <template slot-scope="scope">
  934. <div v-if="scope.row.array[index].type == 1" style="display: flex; flex-wrap: wrap">
  935. <span class="answer_type" v-for="(answer2, index2) in scope.row.array[index].json
  936. .answer2" :key="index + '-' + index2">{{
  937. scope.row.array[index].json.array[answer2].option
  938. }}</span>
  939. </div>
  940. <div v-if="
  941. scope.row.array[index].type == 3
  942. " style="display: flex; flex-wrap: wrap">
  943. <span v-if="scope.row.array[index].json.answer2.length < 30"> {{ scope.row.array[index].json.answer2
  944. }}</span>
  945. <el-tooltip v-else class="item" effect="light" :content="scope.row.array[index].json.answer2"
  946. placement="top">
  947. <span
  948. style="display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;">
  949. {{ scope.row.array[index].json.answer2 }}
  950. </span>
  951. </el-tooltip>
  952. </div>
  953. <div v-if="
  954. scope.row.array[index].type == 8
  955. " style="display: flex; flex-wrap: wrap">
  956. {{ scope.row.array[index].json.answer2 }}
  957. </div>
  958. <div v-if="scope.row.array[index].type == 5" style="display: flex; flex-wrap: wrap"
  959. class="table_file">
  960. <template v-if="scope.row.array[index].json.file">
  961. <template v-for="(file, index2) in scope.row.array[index].json.file">
  962. <div class="file" v-if="index2 < 3" :key="index + '-' + index2" @click.stop="checkFile(file)">
  963. <img class="download" src="../../../../assets/icon/fileIcon/download.png"
  964. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  965. <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
  966. <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
  967. <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
  968. <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
  969. <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
  970. <div class="name">
  971. <el-tooltip :content="file.name" placement="top" effect="dark">
  972. <span>{{ file.name }}</span>
  973. </el-tooltip>
  974. </div>
  975. </div>
  976. </template>
  977. </template>
  978. <template v-if="scope.row.array[index].json.file">
  979. <div class="file_more" v-if="scope.row.array[index].json.file.length > 3">
  980. <el-tooltip class="item" effect="light" content="查看更多" placement="top-start">
  981. <svg t="1753409620948" @click="checkFileListOpen(scope.row.array[index].json.file)"
  982. class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
  983. p-id="4403" width="200" height="200">
  984. <path
  985. d="M134.26141867 386.08713955c-69.25213392 0-125.91286045 56.66072652-125.91286045 125.91286045s56.66072652 125.91286045 125.91286045 125.91286045S260.17427911 581.25213392 260.17427911 512s-56.66072652-125.91286045-125.91286044-125.91286045z m755.47716266 0c-69.25213392 0-125.91286045 56.66072652-125.91286044 125.91286045s56.66072652 125.91286045 125.91286044 125.91286045S1015.65144178 581.25213392 1015.65144178 512s-56.66072652-125.91286045-125.91286045-125.91286045z m-377.73858133 0c-69.25213392 0-125.91286045 56.66072652-125.91286045 125.91286045S442.74786608 637.91286045 512 637.91286045 637.91286045 581.25213392 637.91286045 512 581.25213392 386.08713955 512 386.08713955z"
  986. fill="#515151" p-id="4404"></path>
  987. </svg>
  988. </el-tooltip>
  989. </div>
  990. </template>
  991. </div>
  992. <div v-if="scope.row.array[index].type == 6" style="display: flex; flex-wrap: wrap">
  993. {{ scope.row.array[index].json.answer2 }}
  994. </div>
  995. <div v-if="scope.row.array[index].type == 7" style="display: flex; flex-wrap: wrap">
  996. {{ getScore(scope.row.array[index].json) }}
  997. </div>
  998. <div v-if="scope.row.array[index].type == 11" style="display: flex; flex-wrap: wrap">
  999. {{ scope.row.array[index].json.answer2 }}
  1000. </div>
  1001. <div v-if="scope.row.array[index].type == 12" style="display: flex; flex-wrap: wrap">
  1002. {{ scope.row.array[index].json.answer2 }}
  1003. </div>
  1004. <div v-if="scope.row.array[index].type == 13" style="display: flex; flex-wrap: wrap">
  1005. {{ scope.row.array[index].json.answer2 }}<span>{{ scope.row.array[index].json.type == '4' ? '%' : ''
  1006. }}</span>
  1007. </div>
  1008. <div v-if="scope.row.array[index].type == 14" style="display: flex; flex-wrap: wrap">
  1009. {{ scope.row.array[index].json.answer2 }}
  1010. </div>
  1011. </template>
  1012. </el-table-column>
  1013. <el-table-column label="dee" width="150px" fixed="right" v-if="scoListCopy.length">
  1014. <template #header>
  1015. <div>
  1016. <span>{{ cueWordCopy.openCeTit }} <span class="proBar" v-if="aiscoLoading">AI生成中</span></span>
  1017. </div>
  1018. </template>
  1019. <template slot-scope="scope">
  1020. <span>{{ userSco(scope.row.id) }}</span>
  1021. </template>
  1022. </el-table-column>
  1023. <el-table-column label="操作" :width="review == '1' ? '180px' : '280px'" fixed="right" v-if="isN != 1">
  1024. <template slot-scope="scope">
  1025. <el-button @click="getTest(scope.row)" type="primary"
  1026. v-if="(examineData && examineData.type == 1) || !examineData" size="small">查看</el-button>
  1027. <el-button @click="editTest(scope.row)" type="primary"
  1028. v-if="((examineData && examineData.type == 1) || !examineData) && review != '1' && scope.row.isReview != 1"
  1029. size="small">编辑</el-button>
  1030. <el-button @click="returnTest(scope.row)" type="primary" size="small"
  1031. v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'">退回</el-button>
  1032. <!-- v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'" -->
  1033. <!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
  1034. <el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
  1035. <el-button @click="deleteTest(scope.row.id)" type="primary" size="small"
  1036. v-if="((examineData && examineData.type == 1) || !examineData) && review != '1' && scope.row.isReview != 1">删除</el-button>
  1037. </template>
  1038. </el-table-column>
  1039. <el-table-column label="状态" width="100px" fixed="right" align="center" v-if="!review && peopleId">
  1040. <template slot-scope="scope">
  1041. <!-- v-if="review==='1'" -->
  1042. <span :class="`typeStatus typeStatus_${scope.row.type}`">{{ typeStatusList[scope.row.type] }}</span>
  1043. </template>
  1044. </el-table-column>
  1045. <el-table-column label="审核状态" width="120px" fixed="right" v-if="review === '1'">
  1046. <template slot-scope="scope">
  1047. <el-checkbox @change="reviewChange(scope.row)" true-label="1" false-label="0"
  1048. v-model="scope.row.isReview">审核通过</el-checkbox>
  1049. </template>
  1050. </el-table-column>
  1051. </el-table>
  1052. </div>
  1053. <!-- 按人员手机端 !isDesktop-->
  1054. <div class="table_content" v-if="stype == 2 && !isDesktop">
  1055. <div v-for="(i, index) in worksArray" :key="i.id" class="isDesktopTable_content">
  1056. <div class="isDTitle CutCss">
  1057. <div style="font-size: 16px; font-weight: 600">
  1058. {{ i.name }}
  1059. </div>
  1060. <div :style="'font-size: 14px' + i.cut
  1061. ? 'color:rgba(54, 129, 252, 1)'
  1062. : 'color: rgba(0, 0, 0, 0.6);'
  1063. ">
  1064. {{ i.time }}
  1065. </div>
  1066. <div @click="i.cut = !i.cut">
  1067. <img v-if="!i.cut" src="../../../../assets/icon/fileIcon/downImg.png" alt="" />
  1068. <img v-else src="../../../../assets/icon/fileIcon/upImg.png" alt="" />
  1069. </div>
  1070. </div>
  1071. <div v-if="i.cut">
  1072. <div class="isDBri">
  1073. <div>序号:{{ i.time }}</div>
  1074. <div>提交时间:{{ i.time }}</div>
  1075. <div>评课人:{{ i.uteaName }}</div>
  1076. </div>
  1077. <div style="
  1078. height: 1px;
  1079. background-color: #717c8d;
  1080. width: 100%;
  1081. margin-bottom: 10px;
  1082. "></div>
  1083. <div>
  1084. <div v-for="(k, kin) in chapters" :key="k.id" class="isCTiBlc">
  1085. <div v-if="k.type == 1">
  1086. <div class="isDTitle2">
  1087. <div style="display: flex; justify-content: space-between">
  1088. <div style="display: flex">
  1089. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1090. <div class="isDTitle2JsonTit">
  1091. {{ k.json.title }}
  1092. </div>
  1093. </div>
  1094. <div style="color: rgba(0, 0, 0, 0.4)">
  1095. [{{ selectType2(k.type, k.json.type) }}]
  1096. </div>
  1097. </div>
  1098. <div class="IsDAnswer">
  1099. <div v-for="(r, index2) in i.array[kin].json.answer2" :key="index + '-' + index2">
  1100. {{ i.array[kin].json.array[r].option }}
  1101. </div>
  1102. </div>
  1103. </div>
  1104. </div>
  1105. <div v-if="k.type == 3 || k.type == 8">
  1106. <div class="isDTitle2">
  1107. <div style="display: flex; justify-content: space-between">
  1108. <div style="display: flex">
  1109. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1110. <div class="isDTitle2JsonTit">
  1111. {{ k.json.title }}
  1112. </div>
  1113. </div>
  1114. <div style="color: rgba(0, 0, 0, 0.4)">
  1115. [{{ selectType2(k.type, k.json.type) }}]
  1116. </div>
  1117. </div>
  1118. <div class="IsDAnswer">
  1119. {{ i.array[kin].json.answer2 }}
  1120. </div>
  1121. </div>
  1122. </div>
  1123. <div v-if="k.type == 5">
  1124. <div class="isDTitle2">
  1125. <div style="display: flex; justify-content: space-between">
  1126. <div style="display: flex">
  1127. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1128. <div class="isDTitle2JsonTit">
  1129. {{ k.json.title }}
  1130. </div>
  1131. </div>
  1132. <div style="color: rgba(0, 0, 0, 0.4)">
  1133. [{{ selectType2(k.type, k.json.type) }}]
  1134. </div>
  1135. </div>
  1136. <div class="IsDAnswer">
  1137. <div class="IsDFile" v-for="(file, index2) in i.array[kin].json.file"
  1138. :key="index + '-' + index2" @click.stop="checkFile(file)">
  1139. <img class="IsDownload" src="../../../../assets/icon/fileIcon/download.png"
  1140. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  1141. <img class="IsDImg" :src="wordIcon" alt="" v-if="file.type == 1" />
  1142. <img class="IsDImg" :src="videoIcon" alt="" v-if="file.type == 2" />
  1143. <img class="IsDImg" :src="file.url" alt="" v-if="file.type == 3" />
  1144. <img class="IsDImg" :src="wordIcon" alt="" v-if="file.type == 4" />
  1145. <img class="IsDImg" :src="fileIcon" alt="" v-if="file.type == 5" />
  1146. <div class="name" style="
  1147. height: 30px;
  1148. background-color: #f9f9f9;
  1149. overflow: hidden;
  1150. white-space: nowrap;
  1151. text-overflow: ellipsis;
  1152. ">
  1153. <!-- <el-tooltip :content="file.name" placement="top" effect="dark"> -->
  1154. {{ file.name }}
  1155. <!-- </el-tooltip> -->
  1156. </div>
  1157. </div>
  1158. </div>
  1159. </div>
  1160. </div>
  1161. <div v-if="k.type.type == 6">
  1162. <div class="isDTitle2">
  1163. <div style="display: flex; justify-content: space-between">
  1164. <div style="display: flex">
  1165. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1166. <div class="isDTitle2JsonTit">
  1167. {{ k.json.title }}
  1168. </div>
  1169. </div>
  1170. <div style="color: rgba(0, 0, 0, 0.4)">
  1171. [{{ selectType2(k.type, k.json.type) }}]
  1172. </div>
  1173. </div>
  1174. <div class="IsDAnswer">
  1175. {{ i.array[kin].json.answer2 }}
  1176. </div>
  1177. </div>
  1178. </div>
  1179. <div v-if="k.type == 7">
  1180. <div class="isDTitle2">
  1181. <div style="display: flex; justify-content: space-between">
  1182. <div style="display: flex">
  1183. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1184. <div class="isDTitle2JsonTit">
  1185. {{ k.json.title }}
  1186. </div>
  1187. </div>
  1188. <div style="color: rgba(0, 0, 0, 0.4)">
  1189. [{{ selectType2(k.type, k.json.type) }}]
  1190. </div>
  1191. </div>
  1192. <div class="IsDAnswer">
  1193. {{ getScore(i.array[index].json) }}
  1194. </div>
  1195. </div>
  1196. </div>
  1197. <div v-if="k.type.type == 11">
  1198. <div class="isDTitle2">
  1199. <div style="display: flex; justify-content: space-between">
  1200. <div style="display: flex">
  1201. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1202. <div class="isDTitle2JsonTit">
  1203. {{ k.json.title }}
  1204. </div>
  1205. </div>
  1206. <div style="color: rgba(0, 0, 0, 0.4)">
  1207. [{{ selectType2(k.type, k.json.type) }}]
  1208. </div>
  1209. </div>
  1210. <div class="IsDAnswer">
  1211. {{ i.array[kin].json.answer2 }}
  1212. </div>
  1213. </div>
  1214. </div>
  1215. </div>
  1216. </div>
  1217. <div style="width: 100%; display: flex; justify-content: end">
  1218. <div @click="i.cut = !i.cut" style="
  1219. display: flex;
  1220. flex-direction: column;
  1221. align-items: center;
  1222. ">
  1223. <img src="../../../../assets/icon/fileIcon/retractImg.png" alt="" />
  1224. <div style="color: rgba(0, 0, 0, 0.4); font-size: 16px">
  1225. 收起
  1226. </div>
  1227. </div>
  1228. </div>
  1229. </div>
  1230. <div style="
  1231. height: 1px;
  1232. background-color: #717c8d;
  1233. width: 100%;
  1234. margin-bottom: 10px;
  1235. "></div>
  1236. </div>
  1237. <!-- <el-table class="el-table" ref="table" :data="worksArray" border :fit="true" :key="2" v-loading="isLoading"
  1238. style="width: 100%" :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  1239. @filter-change="handleFilterChange">
  1240. <el-table-column fixed label="序号" width="80px" align="left">
  1241. <template slot-scope="scope">
  1242. {{ scope.$index + 1 }}
  1243. </template>
  1244. </el-table-column>
  1245. <el-table-column fixed prop="name" label="提交人" width="120px" align="left">
  1246. </el-table-column>
  1247. <el-table-column prop="time" label="提交时间" width="170px" align="left">
  1248. <template slot-scope="scope">
  1249. <span :style="`${testJson.overtime&&new Date(testJson.overtime)<new Date(scope.row.time)?'color:#d12920':''}`">{{ scope.row.time }}</span>
  1250. </template>
  1251. </el-table-column>
  1252. <el-table-column v-for="(item, index) in chapters" :key="index" :label="item.json.title"
  1253. :min-width="item.type == 5 ? 200 : 150" align="left" :filters="item.type == 1 ? item.nameFilters : item.type == 6? item.nameFilters : null"
  1254. :filter-method="item.type == 1 ? (value, row) => { return filterName(value, row, index) } : item.type == 6?(value, row) => { return filterCourse(value, row, index)}:null"
  1255. :filter-placement="item.type == 1 || item.type ==6 ? filterPlacement : null">
  1256. <template slot-scope="scope">
  1257. <div v-if="scope.row.array[index].type == 1" style="display: flex; flex-wrap: wrap;">
  1258. <span class="answer_type" v-for="(answer2, index2) in scope.row.array[index].json.answer2"
  1259. :key="index + '-' + index2">{{ scope.row.array[index].json.array[answer2].option }}</span>
  1260. </div>
  1261. <div v-if="scope.row.array[index].type == 3 || scope.row.array[index].type == 8" style="display: flex; flex-wrap: wrap;">
  1262. {{ scope.row.array[index].json.answer2 }}
  1263. </div>
  1264. <div v-if="scope.row.array[index].type == 5" style="display: flex; flex-wrap: wrap;"
  1265. class="table_file">
  1266. <div class="file" v-for="(file, index2) in scope.row.array[index].json.file"
  1267. :key="index + '-' + index2" @click.stop="checkFile(file)">
  1268. <img class="download" src="../../../../assets/icon/fileIcon/download.png"
  1269. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  1270. <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
  1271. <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
  1272. <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
  1273. <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
  1274. <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
  1275. <div class="name">
  1276. <el-tooltip :content="file.name" placement="top" effect="dark">
  1277. <span>{{ file.name }}</span>
  1278. </el-tooltip>
  1279. </div>
  1280. </div>
  1281. </div>
  1282. <div v-if="scope.row.array[index].type == 6" style="display: flex; flex-wrap: wrap;">
  1283. {{ scope.row.array[index].json.answer2}}
  1284. </div>
  1285. <div v-if="scope.row.array[index].type == 7" style="display: flex; flex-wrap: wrap;">
  1286. {{ getScore(scope.row.array[index].json) }}
  1287. </div>
  1288. </template>
  1289. </el-table-column>
  1290. <el-table-column label="操作" width="300px" fixed="right" v-if="isN!=1">
  1291. <template slot-scope="scope">
  1292. <el-button @click="getTest(scope.row)" type="primary" size="small">查看</el-button>
  1293. <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
  1294. <el-button @click="deleteTest(scope.row.id)" type="primary" size="small">删除</el-button>
  1295. </template>
  1296. </el-table-column>
  1297. </el-table> -->
  1298. </div>
  1299. <div class="table_content" v-if="stype == 3">
  1300. <div class="student_table">
  1301. <el-table ref="table" :data="tableData" border :fit="true" v-loading="isLoading" style="width: 100%"
  1302. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  1303. <el-table-column prop="username" label="提交人" min-width="15" align="center">
  1304. </el-table-column>
  1305. <el-table-column prop="time" label="提交时间" min-width="15" align="center">
  1306. </el-table-column>
  1307. <el-table-column label="是否批改" min-width="15" align="center">
  1308. <template slot-scope="scope">
  1309. <div>{{ scope.row.type == 3 ? "是" : "否" }}</div>
  1310. </template>
  1311. </el-table-column>
  1312. <el-table-column label="操作" width="300px" v-if="isDesktop">
  1313. <template slot-scope="scope">
  1314. <el-button @click="getTest(scope.row)" type="primary" size="small">查看</el-button>
  1315. <el-button @click="setWordHtml2(scope.row)" type="primary" size="small">导出答题信息</el-button>
  1316. <el-button @click="deleteTest(scope.row.id)" type="primary" size="small">删除</el-button>
  1317. </template>
  1318. </el-table-column>
  1319. </el-table>
  1320. </div>
  1321. <div class="student_page">
  1322. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1323. @current-change="handleCurrentChange">
  1324. </el-pagination>
  1325. </div>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. <share-box :testJson="testJson" :TeachingValue="TeachingValue" :TeachName="TeachNameCpt"
  1331. :dialogVisibleShare.sync="dialogVisibleShare"></share-box>
  1332. <wpdf :dialogVisiblePdf.sync="dialogVisiblePdf" :url="wurl"></wpdf>
  1333. <wVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :url="wurl"></wVideo>
  1334. <wOffice :dialogVisibleOffice.sync="dialogVisibleOffice" :url="wurl"></wOffice>
  1335. <docxTemplateDialog ref="docxTemplateDialogRef" @changeCover="changeCover" />
  1336. <checkFileListDialog ref="checkFileListDialogRef" @checkFile="checkFile" @downloadFile="downloadFile" />
  1337. <returnTestDialog ref="returnTestDialogRef" :title="testJson.title" @success="getData" />
  1338. </div>
  1339. </template>
  1340. <script>
  1341. import shareBox from "../shareBox/index.vue";
  1342. import videoIcon from "../../../../assets/icon/fileIcon/isVideo.png";
  1343. import wordIcon from "../../../../assets/icon/fileIcon/isWord.png";
  1344. import fileIcon from "../../../../assets/icon/fileIcon/word2.png";
  1345. import wVideo from "../file/wVideo.vue";
  1346. import wpdf from "../file/wPdf2.vue";
  1347. import wOffice from "../file/wOffice.vue";
  1348. import wordcloud from "vue-wordcloud";
  1349. import checkPie from "../data/checkPie.vue";
  1350. import { downloadPDF } from "../../../tools/pdf";
  1351. import JSZip from "jszip";
  1352. import FileSaver from "file-saver";
  1353. import XLSX from "xlsx-js-style";
  1354. import aiBoxRight from "./aiBoxRight.vue";
  1355. import { v4 as uuidv4 } from "uuid";
  1356. // word模板
  1357. import docxTemplateDialog from "./docxTemplateDialog";
  1358. //查看文件
  1359. import checkFileListDialog from "./checkFileListDialog.vue";
  1360. //退回弹窗
  1361. import returnTestDialog from "./returnTestDialog.vue";
  1362. const getFile = (url) => {
  1363. return new Promise((resolve, reject) => {
  1364. var credentials = {
  1365. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1366. secretAccessKey: "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",
  1367. }; //秘钥形式的登录上传
  1368. window.AWS.config.update(credentials);
  1369. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1370. let url2 = url;
  1371. let _url2 = "";
  1372. if (
  1373. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1374. ) {
  1375. _url2 = url2.split(
  1376. "https://view.officeapps.live.com/op/view.aspx?src="
  1377. )[1];
  1378. } else {
  1379. _url2 = url2;
  1380. }
  1381. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1382. let name = decodeURIComponent(
  1383. _url2
  1384. .split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  1385. .replace(/\+/g, " ")
  1386. );
  1387. var params = {
  1388. Bucket: "ccrb",
  1389. Key: name,
  1390. };
  1391. s3.getObject(params, function (err, data) {
  1392. if (err) {
  1393. console.log(err, err.stack);
  1394. resolve({ data: 1 });
  1395. } else {
  1396. if (data.Body.byteLength <= 85 * 1024 * 1024) {
  1397. resolve({ data: data.Body });
  1398. } else {
  1399. resolve({ data: 1 });
  1400. }
  1401. console.log(data);
  1402. } // sxuccessful response
  1403. });
  1404. // axios({
  1405. });
  1406. };
  1407. export default {
  1408. components: {
  1409. shareBox,
  1410. wVideo,
  1411. wpdf,
  1412. wOffice,
  1413. checkPie,
  1414. wordcloud,
  1415. aiBoxRight,
  1416. docxTemplateDialog,
  1417. checkFileListDialog,
  1418. returnTestDialog
  1419. },
  1420. data() {
  1421. return {
  1422. gotype: (window.topU && window.topU.gotype) ? window.topU.gotype : '',
  1423. aiscoId: '',
  1424. aiscoLoading: true,
  1425. cueWord: {
  1426. openCeCon: '', //指令
  1427. openCeTit: '', //标题
  1428. fieldList: []
  1429. },
  1430. cueWordCopy: {
  1431. openCeCon: '', //指令
  1432. openCeTit: '', //标题
  1433. fieldList: []
  1434. },
  1435. scoList: [],
  1436. scoListCopy: [], //没有什么别的用处只是为了展示用,让表单在评分的过程中不清零
  1437. quoteV: false,
  1438. openCeVal: false,
  1439. opQvisible: false,
  1440. opQvisible2: false,
  1441. opcInp: '',
  1442. languageSetting: 0,
  1443. userid: this.$route.query.userid,
  1444. oid: this.$route.query.oid,
  1445. org: this.$route.query.org,
  1446. role: this.$route.query.role,
  1447. cid: this.$route.query.cid,
  1448. isN: this.$route.query.isN,
  1449. peopleId: this.$route.query.peopleId,
  1450. back: this.$route.query.back,
  1451. screenWidth: window.innerWidth,
  1452. examineId: this.$route.query.examineId,
  1453. tType: this.$route.query.tType,
  1454. isDesktop: false,
  1455. aiChatV: false,
  1456. title: "",
  1457. testType: [],
  1458. see: false,
  1459. cJson: [],
  1460. loading: false,
  1461. look: "",
  1462. TeachingOptions: [],
  1463. TeachingValue: "",
  1464. SubmitTimeOptions: [],
  1465. SubmitTime: "",
  1466. tableHeight: 500,
  1467. isLoading: false,
  1468. pageSize: 10,
  1469. total: 0,
  1470. page: 1,
  1471. tableData: [],
  1472. testJson: {},
  1473. works: [],
  1474. iscount: 0,
  1475. pcount: 0,
  1476. stype: 1,
  1477. courseName: "",
  1478. dialogVisibleShare: false,
  1479. worksArray: [],
  1480. tableWorksArray: [],
  1481. testArray: [],
  1482. options2: {
  1483. 1: "选择题",
  1484. // 2: "问答题",
  1485. 3: "问答题",
  1486. 4: "添加文档",
  1487. 5: "附件",
  1488. },
  1489. videoIcon: videoIcon,
  1490. wordIcon: wordIcon,
  1491. fileIcon: fileIcon,
  1492. dialogVisiblePdf: false,
  1493. dialogVisibleVideo: false,
  1494. dialogVisibleOffice: false,
  1495. wurl: "",
  1496. chapters: [],
  1497. filterPlacement: "bottom-end",
  1498. pdfLoading: false,
  1499. btnDisplay: false,
  1500. fileLoading: [],
  1501. selectWorkList: [],
  1502. tableDatePicker: [],
  1503. submissionTimePicker: [],
  1504. // fileLoadCount: [],
  1505. // fileLoadNum: [],
  1506. // infoprogress: [],
  1507. teaType: [],
  1508. examineData: null,
  1509. disableBack: this.$route.query.disableBack === 'true',
  1510. timeLimit: this.$route.query.timeLimit,
  1511. sortTime: [],
  1512. review: this.$route.query.review,
  1513. defaultTimeLimit: [],
  1514. typeStatusList: ["", "未提交", "已提交", "", "已退回"]
  1515. };
  1516. },
  1517. watch: {},
  1518. computed: {
  1519. // 去除不能评分的指令
  1520. fie() {
  1521. return function (val) {
  1522. console.log('fie', val);
  1523. const con = val.filter(e => [12, 11, 6, 14].indexOf(e.type) == -1)
  1524. return con
  1525. }
  1526. },
  1527. // ai评分分数
  1528. userSco() {
  1529. return function (val) {
  1530. const con = this.scoListCopy.find(u => u.id === val);
  1531. // console.log('con',con);
  1532. return con ? con.sco : '';
  1533. }
  1534. },
  1535. TeachNameCpt: function () {
  1536. // `this` 指向 vm 实例
  1537. return this.TeachingOptions.filter((i) => {
  1538. return i.id == this.TeachingValue;
  1539. });
  1540. },
  1541. // vcWords() {
  1542. // return function (array) {
  1543. // let _array = [];
  1544. // if (array.length) {
  1545. // for (var i = 0; i < array.length; i++) {
  1546. // _array.push(
  1547. // {
  1548. // text: array[i].name,
  1549. // weight: array[i].count,
  1550. // }
  1551. // )
  1552. // }
  1553. // }
  1554. // console.log(_array);
  1555. // return array.length ? _array : [];
  1556. // };
  1557. // },
  1558. getScore() {
  1559. return function (item) {
  1560. let array = [];
  1561. for (var i = parseInt(item.small); i <= parseInt(item.big); i++) {
  1562. array.push(i);
  1563. }
  1564. return item.answer2 ? array[item.answer2] : "";
  1565. };
  1566. },
  1567. selectType() {
  1568. return function (item) {
  1569. if (item.type == 1 && item.atype == 2) {
  1570. return "多选题";
  1571. } else if (item.type == 1 && item.atype == 1) {
  1572. return "单选题";
  1573. } else if (item.type == 3) {
  1574. return "问答题";
  1575. } else if (item.type == 5) {
  1576. return "附件";
  1577. } else if (item.type == 6 || item.type == 11) {
  1578. return "课程";
  1579. } else if (item.type == 7) {
  1580. return "评分";
  1581. } else if (item.type == 8) {
  1582. return "日期";
  1583. }
  1584. };
  1585. },
  1586. selectType2() {
  1587. return function (val1, val2) {
  1588. if (val1 == 1 && val2 == 2) {
  1589. return "多选题";
  1590. } else if (val1 == 1 && val2 == 1) {
  1591. return "单选题";
  1592. } else if (val1 == 3) {
  1593. return "问答题";
  1594. } else if (val1 == 5) {
  1595. return "附件";
  1596. } else if (val1 == 6) {
  1597. return "课程";
  1598. } else if (val1 == 7) {
  1599. return "评分";
  1600. } else if (val1 == 8) {
  1601. return "日期";
  1602. }
  1603. };
  1604. },
  1605. // 获取评分的平均分
  1606. getAverageScore() {
  1607. return (_index) => {
  1608. let _result = 0;
  1609. let _sum = 0;
  1610. this.worksArray.forEach((i1) => {
  1611. let _answer2 = i1.array[_index].json.answer2
  1612. let small = i1.array[_index].json.small
  1613. let flag = true
  1614. // 判断_answer2是否为空或为字符串
  1615. let val = 0;
  1616. if (_answer2 === "" || _answer2 === null || _answer2 === undefined) {
  1617. val = 0;
  1618. flag = false
  1619. } else if (typeof _answer2 === "string") {
  1620. val = Number(_answer2) || 0;
  1621. } else {
  1622. val = _answer2;
  1623. }
  1624. if (flag) {
  1625. _result += val + small;
  1626. _sum += 1;
  1627. }
  1628. });
  1629. _result = _sum ? (_result / _sum).toFixed(2) : 0;
  1630. return _result ? _result : 0;
  1631. };
  1632. },
  1633. getTimeFilterText() {
  1634. return (item, index) => {
  1635. let _result = [];
  1636. if (item.type == 8) {
  1637. let array = [];
  1638. this.worksArray.forEach((i) => {
  1639. if (i.array[index].type == 8) {
  1640. let _data = i.array[index].json.answer2;
  1641. if (!array.map((r) => r.value).includes(_data)) {
  1642. array.push({ text: _data, value: _data });
  1643. }
  1644. }
  1645. });
  1646. array.sort((a, b) => {
  1647. const dateA = new Date(
  1648. a.value.replace(/年|月/g, "-").replace(/日/g, "")
  1649. );
  1650. const dateB = new Date(
  1651. b.value.replace(/年|月/g, "-").replace(/日/g, "")
  1652. );
  1653. return dateB - dateA; // 从小到大排序
  1654. });
  1655. console.log("👉排序:", array);
  1656. _result = array;
  1657. }
  1658. return _result;
  1659. };
  1660. },
  1661. getTType() {
  1662. return function (pid, cclassid) {
  1663. if (cclassid) {
  1664. let string = [];
  1665. this.teaType.forEach((e) => {
  1666. if (e.id == pid) {
  1667. for (var i = 0; i < e.child.length; i++) {
  1668. if (cclassid.includes(e.child[i].id)) {
  1669. string.push(e.child[i].name);
  1670. }
  1671. }
  1672. }
  1673. });
  1674. return string.length ? string.join(",") : "-";
  1675. } else {
  1676. return "-";
  1677. }
  1678. };
  1679. },
  1680. getNameTTypeFiler() {
  1681. return (item) => {
  1682. return item.child.length ? item.child.map(child => ({
  1683. text: child.name,
  1684. value: child.id
  1685. })) : null;
  1686. };
  1687. },
  1688. pickerOptions() {
  1689. return (dataList) => {
  1690. let _result = {
  1691. shortcuts: []
  1692. }
  1693. if (dataList && dataList.length > 0) {
  1694. for (let i = 0; i < dataList.length; i++) {
  1695. if (dataList[i].time.length <= 0) continue;
  1696. _result.shortcuts.push({
  1697. text: dataList[i].title ? dataList[i].title : "-",
  1698. onClick(picker) {
  1699. let startTime = dataList[i].time[0];
  1700. let endTime = dataList[i].time[1]
  1701. picker.$emit('pick', [startTime, endTime]);
  1702. }
  1703. })
  1704. }
  1705. }
  1706. if (this.sortTime.length > 0) {
  1707. this.sortTime.forEach(i => {
  1708. _result.shortcuts.push({
  1709. text: i.title ? i.title : "-",
  1710. onClick(picker) {
  1711. picker.$emit('pick', [new Date(i.time[0]), new Date(i.time[1])]);
  1712. }
  1713. })
  1714. })
  1715. }
  1716. return _result;
  1717. }
  1718. },
  1719. scoList2() {
  1720. let result = [];
  1721. if (this.peopleId) {
  1722. result = this.scoList.filter(i => this.tableWorksArray.map(i => i.id).indexOf(i.id) != -1)
  1723. } else {
  1724. result = this.scoList;
  1725. }
  1726. return result
  1727. }
  1728. },
  1729. methods: {
  1730. // 清除分数
  1731. cleancueWord() {
  1732. if (!this.aiscoId) return
  1733. let params = [{
  1734. tid: this.cid
  1735. }]
  1736. console.log('params', params);
  1737. this.ajax
  1738. .post(this.$store.state.api + "deltestAisco", params)
  1739. .then((res) => {
  1740. console.log(res);
  1741. this.$message({
  1742. message: "删除成功",
  1743. type: "success"
  1744. });
  1745. this.getAiSco()
  1746. })
  1747. .catch((err) => {
  1748. this.$message({
  1749. message: "删除失败",
  1750. type: "error"
  1751. });
  1752. console.error(err);
  1753. });
  1754. this.opQvisible = false
  1755. },
  1756. // 点击开始评分(全部进行评分)
  1757. async markSco() {
  1758. if (!this.cueWord.openCeTit.trim()) return this.$message.error('请输入标题')
  1759. if (!this.cueWord.openCeCon.trim()) return this.$message.error('请输入指令')
  1760. if (this.cueWord.fieldList.length == 0) return this.$message.error('请选择引用字段')
  1761. this.aiscoLoading = true
  1762. let forAllList = [];
  1763. this.scoList = []
  1764. for (let kin = 0; kin < this.tableWorksArray.length; kin++) {
  1765. let userWork = []
  1766. let _fileid = []
  1767. let kpl = this.tableWorksArray[kin].array
  1768. // console.log('kpl',this.tableWorksArray[kin]);
  1769. for (let index = 0; index < kpl.length; index++) {
  1770. if ((kpl[index].type == 3 || kpl[index].type == 13 || kpl[index].type == 8) && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1771. if (kpl[index].json.answer2) {
  1772. userWork.push(kpl[index].json.title + ':' + kpl[index].json.answer2)
  1773. } else {
  1774. userWork.push(kpl[index].json.title + ':' + '')
  1775. }
  1776. }
  1777. if (kpl[index].type == 5 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1778. if (kpl[index].json.file && kpl[index].json.file[0].url) {
  1779. _fileid.push(kpl[index].json.file[0].url)
  1780. }
  1781. userWork.push(kpl[index].json.title + ':' + _fileid.join('、'))
  1782. }
  1783. if (kpl[index].type == 7 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1784. if (kpl[index].json.answer2) {
  1785. userWork.push(kpl[index].json.title + ':' + kpl[index].json.answer2)
  1786. } else {
  1787. userWork.push(kpl[index].json.title + ':' + '')
  1788. }
  1789. }
  1790. if (kpl[index].type == 1 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1791. let kk = []
  1792. if (kpl[index].json && kpl[index].json.answer2 && kpl[index].json.answer2.length) {
  1793. kpl[index].json.answer2.forEach((e) => {
  1794. kk.push(kpl[index].json.array[e].option)
  1795. })
  1796. }
  1797. userWork.push(kpl[index].json.title + ':' + kk.join(','))
  1798. }
  1799. }
  1800. let info = [
  1801. this.cueWord.fieldList.includes('序号') ? '序号:' + (kin + 1) : '',
  1802. this.cueWord.fieldList.includes('提交人') ? '提交人:' + this.tableWorksArray[kin].name : '',
  1803. this.cueWord.fieldList.includes('学段') ? '学段:' + this.getTType(this.teaType[0].id, this.tableWorksArray[kin].cclassid) : '',
  1804. this.cueWord.fieldList.includes('年级') ? '年级:' + this.getTType(this.teaType[1].id, this.tableWorksArray[kin].cclassid) : '',
  1805. this.cueWord.fieldList.includes('学科') ? '学科:' + this.getTType(this.teaType[2].id, this.tableWorksArray[kin].cclassid) : '',
  1806. this.cueWord.fieldList.includes('职务') ? '职务:' + this.getTType(this.teaType[3].id, this.tableWorksArray[kin].cclassid) : '',
  1807. this.cueWord.fieldList.includes('教龄') ? '教龄:' + this.getTType(this.teaType[4].id, this.tableWorksArray[kin].cclassid) : '',
  1808. this.cueWord.fieldList.includes('提交时间') ? '提交时间:' + this.tableWorksArray[kin].time : '',
  1809. userWork.filter(Boolean).join('\n')
  1810. ].filter(Boolean).join('\n');
  1811. forAllList.push({ id: this.tableWorksArray[kin].id, data: info })
  1812. // console.log('info',info);
  1813. }
  1814. // console.log('forAllList',forAllList);
  1815. let messages = `
  1816. NOTICE
  1817. Role: 你是一个高级数据处理师。
  1818. - 深入理解各种数据处理标准,确保处理流程的准确性。
  1819. - 熟练掌握数据结构知识,能快速解析“字段名称:具体内容”结构的文本。
  1820. - 具备强大的逻辑分析能力,以便制定合理的数据处理流程。
  1821. - 有丰富的数据处理经验,能应对多种类型的数据操作。
  1822. - 拥有精准的数据分析能力,准确得出处理结果。
  1823. - 擅长根据不同评价标准进行数据评价,保证结果符合要求。
  1824. - 能够高效地处理大量数据,保证工作的时效性。
  1825. Language: ${this.getLang()}
  1826. ## 上下文
  1827. 在数据处理任务缺乏合适工具或人力时,如数据分析项目、数据审核任务场景下,存在多组特定结构的文本数据,需数据处理大师理解标准和内容,制定流程并处理数据,按要求输出结果。
  1828. ## 数据处理标准
  1829. ${this.cueWord.openCeCon}
  1830. ## 数据内容
  1831. ${JSON.stringify(forAllList)}
  1832. ## 任务
  1833. 1. 数据标准理解:详细了解{数据处理标准}(如准确性、完整性、一致性等要求)
  1834. 2. 数据内容理解: 阅读并理解{数据内容}包括多组“字段名称:具体内容”结构的文本数据。
  1835. 3. 处理流程制定:根据所理解的{数据处理标准},制定详细的数据处理流程,包括数据分析(如统计分析、关联分析等)、数据评价(根据标准打分或分类等)等步骤。
  1836. 4. 数据处理操作:按照制定的流程对数据进行分析、处理和评价等操作。
  1837. 5. 结果输出:仅输出按照用户要求处理后的结果,确保结果清晰、准确且易于理解。
  1838. ### 理论框架
  1839. ### 数据生命周期管理理论
  1840. 1. 基本原理:
  1841. - 数据生命周期涵盖数据的创建、存储、使用、共享、归档和销毁等阶段,每个阶段有不同的管理要求。
  1842. - 明确各阶段的数据特征与管理重点有助于确保数据质量和合规性。
  1843. 2. 具体应用:
  1844. - 确定处理阶段:根据数据处理任务确定数据处于生命周期的哪个阶段进行针对性处理。
  1845. - 遵循管理规范:按照各阶段的管理要求,如存储安全规范,在处理中保障数据。
  1846. - 规划流程:基于数据生命周期各阶段顺序规划合理的数据处理流程。
  1847. ### ETL(Extract,Transform,Load)理论
  1848. 1. 基本原理:
  1849. - ETL是数据仓库中的一种数据处理过程,包括抽取、转换和加载三个主要步骤。
  1850. - 用于将不同来源的数据整合到数据仓库中,保证数据的一致性和准确性。
  1851. 2. 具体应用:
  1852. - 数据抽取:从多组文本数据中提取所需的字段和内容。
  1853. - 数据转换:对抽取的数据按照标准进行格式转换、清洗等操作。
  1854. - 数据加载:将处理好的数据加载到合适的存储或输出结构中。
  1855. ### 数据质量评估理论
  1856. 1. 基本原理:
  1857. - 从准确性、完整性、一致性等多方面评估数据质量,以确保数据可靠。
  1858. - 不同的数据用途有不同的质量要求,需建立相应评估指标。
  1859. 2. 具体应用:
  1860. - 质量指标确定:根据处理标准确定数据质量评估指标。
  1861. - 数据检查:按照指标对处理过程中的数据进行检查。
  1862. - 结果验证:依据评估结果验证最终输出的数据是否符合要求。
  1863. ##响应
  1864. 严格按照用户的需求进行输出,不要输出多余的内容
  1865. ## 要求
  1866. - 以清晰的逻辑构建处理流程,步骤分明。
  1867. - 对数据内容进行全面分析,不遗漏任何关键信息。
  1868. - 根据评价标准严格进行评价操作,保证结果的公正性。
  1869. - 处理结果输出简洁明了,仅包含符合要求的内容。
  1870. - 考虑到可能存在的多种数据结构,保持处理方法的通用性。
  1871. - 针对数据处理过程中的特殊情况提供应对措施。
  1872. - 以专业的态度对待数据,确保数据的安全性与完整性。
  1873. - 输出格式[{id:数据id,sco:评分}]。
  1874. - 不输出分析过程,直接输出最后计算结果。
  1875. ## 限制
  1876. - 不应包含未经定义的数据处理术语,以免造成混淆。
  1877. - 避免输出与数据处理标准无关的内容。
  1878. - 不应包含模糊不清的处理步骤或操作。
  1879. - 避免提及无法获取的外部工具或资源,除非有替代方案。
  1880. - 不应包含未经证实的数据处理假设。
  1881. - 不要回复你不知道的内容
  1882. - 不要直接回复<demo>的内容
  1883. - 所输出的内容必须按照给定的格式进行组织,不能偏离框架要求。
  1884. - 请使用准确可靠的信息来源,确保规划的可行性和实用性。
  1885. - 如果查询信息不是真实信息,如 xxx 等占位字符,不要采纳或使用。
  1886. - 不要给用户提供任何虚假信息!不要给用户提供任何虚假信息!不要给用户提供任何虚假信息`;
  1887. // console.log('messages',messages);
  1888. let params = {
  1889. id: '978252d7-a26e-4e70-8d75-3336497abac1',
  1890. message: [
  1891. {
  1892. type: "text",
  1893. text: messages.replaceAll("\n", " ").replaceAll("*", "")
  1894. }
  1895. ],
  1896. userId: this.userid,
  1897. model: 'open-gpt-4.1',
  1898. file_ids: [],
  1899. sound_url: '',
  1900. temperature: 0.2,
  1901. top_p: 1,
  1902. max_completion_tokens: 100000,
  1903. // uid: _uid,
  1904. session_name: uuidv4(),
  1905. // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
  1906. // message: [
  1907. // {
  1908. // type: "text",
  1909. // text: messages.replaceAll("\n", " ").replaceAll("*", "")
  1910. // }
  1911. // ],
  1912. // session_name: uuidv4(),
  1913. // userId: this.userid,
  1914. // file_ids: '',
  1915. // model: "gpt-4o-2024-11-20"
  1916. };
  1917. this.ajax
  1918. .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
  1919. .then(response => {
  1920. let data = response.data;
  1921. // console.log("data", data.message);
  1922. // console.log('kkkk',JSON.parse(data.message));
  1923. this.scoList = JSON.parse(data.message)
  1924. this.aiscoLoading = false
  1925. this.uploadSCo()
  1926. })
  1927. .catch(error => {
  1928. this.aiscoLoading = false
  1929. this.$message.error('评分失败')
  1930. reject(error)
  1931. console.log(error);
  1932. });
  1933. },
  1934. // 点击开始自动评分(未评分得数据进行评分)
  1935. async markScoAuto() {
  1936. let scoid = this.scoList.map(e => e.id);
  1937. console.log('scoid', scoid);
  1938. let TabArr = this.tableWorksArray.filter(e => scoid.indexOf(e.id) == -1)
  1939. console.log('this.TabArr', TabArr);
  1940. if (!TabArr.length) return this.$message.error('已全部评分')
  1941. if (!this.cueWord.openCeTit.trim()) return this.$message.error('请输入标题')
  1942. if (!this.cueWord.openCeCon.trim()) return this.$message.error('请输入指令')
  1943. if (this.cueWord.fieldList.length == 0) return this.$message.error('请选择引用字段')
  1944. this.aiscoLoading = true
  1945. let forAllList = [];
  1946. this.scoList = []
  1947. // 进行整理数据,将用户回答都存在一个数组里
  1948. for (let kin = 0; kin < TabArr.length; kin++) {
  1949. let userWork = []
  1950. let _fileid = []
  1951. let kpl = TabArr[kin].array
  1952. // console.log('kpl',this.TabArr[kin]);
  1953. for (let index = 0; index < kpl.length; index++) {
  1954. if ((kpl[index].type == 3 || kpl[index].type == 13 || kpl[index].type == 8) && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1955. if (kpl[index].json.answer2) {
  1956. userWork.push(kpl[index].json.title + ':' + kpl[index].json.answer2)
  1957. } else {
  1958. userWork.push(kpl[index].json.title + ':' + '')
  1959. }
  1960. }
  1961. if (kpl[index].type == 5 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1962. if (kpl[index].json.file && kpl[index].json.file[0].url) {
  1963. _fileid.push(kpl[index].json.file[0].url)
  1964. }
  1965. userWork.push(kpl[index].json.title + ':' + _fileid.join('、'))
  1966. }
  1967. if (kpl[index].type == 7 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1968. if (kpl[index].json.answer2) {
  1969. userWork.push(kpl[index].json.title + ':' + kpl[index].json.answer2)
  1970. } else {
  1971. userWork.push(kpl[index].json.title + ':' + '')
  1972. }
  1973. }
  1974. if (kpl[index].type == 1 && this.cueWord.fieldList.includes(kpl[index].json.title)) {
  1975. let kk = []
  1976. if (kpl[index].json && kpl[index].json.answer2 && kpl[index].json.answer2.length) {
  1977. kpl[index].json.answer2.forEach((e) => {
  1978. kk.push(kpl[index].json.array[e].option)
  1979. })
  1980. }
  1981. userWork.push(kpl[index].json.title + ':' + kk.join(','))
  1982. }
  1983. }
  1984. let info = [
  1985. this.cueWord.fieldList.includes('序号') ? '序号:' + (kin + 1) : '',
  1986. this.cueWord.fieldList.includes('提交人') ? '提交人:' + TabArr[kin].name : '',
  1987. this.cueWord.fieldList.includes('学段') ? '学段:' + this.getTType(this.teaType[0].id, TabArr[kin].cclassid) : '',
  1988. this.cueWord.fieldList.includes('年级') ? '年级:' + this.getTType(this.teaType[1].id, TabArr[kin].cclassid) : '',
  1989. this.cueWord.fieldList.includes('学科') ? '学科:' + this.getTType(this.teaType[2].id, TabArr[kin].cclassid) : '',
  1990. this.cueWord.fieldList.includes('职务') ? '职务:' + this.getTType(this.teaType[3].id, TabArr[kin].cclassid) : '',
  1991. this.cueWord.fieldList.includes('教龄') ? '教龄:' + this.getTType(this.teaType[4].id, TabArr[kin].cclassid) : '',
  1992. this.cueWord.fieldList.includes('提交时间') ? '提交时间:' + TabArr[kin].time : '',
  1993. userWork.filter(Boolean).join('\n')
  1994. ].filter(Boolean).join('\n');
  1995. forAllList.push({ id: TabArr[kin].id, data: info })
  1996. // console.log('info',info);
  1997. }
  1998. // console.log('forAllList',forAllList);
  1999. let messages = `
  2000. NOTICE
  2001. Role: 你是一个高级数据处理师。
  2002. - 深入理解各种数据处理标准,确保处理流程的准确性。
  2003. - 熟练掌握数据结构知识,能快速解析“字段名称:具体内容”结构的文本。
  2004. - 具备强大的逻辑分析能力,以便制定合理的数据处理流程。
  2005. - 有丰富的数据处理经验,能应对多种类型的数据操作。
  2006. - 拥有精准的数据分析能力,准确得出处理结果。
  2007. - 擅长根据不同评价标准进行数据评价,保证结果符合要求。
  2008. - 能够高效地处理大量数据,保证工作的时效性。
  2009. Language: ${this.getLang()}
  2010. ## 上下文
  2011. 在数据处理任务缺乏合适工具或人力时,如数据分析项目、数据审核任务场景下,存在多组特定结构的文本数据,需数据处理大师理解标准和内容,制定流程并处理数据,按要求输出结果。
  2012. ## 数据处理标准
  2013. ${this.cueWord.openCeCon}
  2014. ## 数据内容
  2015. ${JSON.stringify(forAllList)}
  2016. ## 任务
  2017. 1. 数据标准理解:详细了解{数据处理标准}(如准确性、完整性、一致性等要求)
  2018. 2. 数据内容理解: 阅读并理解{数据内容}包括多组“字段名称:具体内容”结构的文本数据。
  2019. 3. 处理流程制定:根据所理解的{数据处理标准},制定详细的数据处理流程,包括数据分析(如统计分析、关联分析等)、数据评价(根据标准打分或分类等)等步骤。
  2020. 4. 数据处理操作:按照制定的流程对数据进行分析、处理和评价等操作。
  2021. 5. 结果输出:仅输出按照用户要求处理后的结果,确保结果清晰、准确且易于理解。
  2022. ### 理论框架
  2023. ### 数据生命周期管理理论
  2024. 1. 基本原理:
  2025. - 数据生命周期涵盖数据的创建、存储、使用、共享、归档和销毁等阶段,每个阶段有不同的管理要求。
  2026. - 明确各阶段的数据特征与管理重点有助于确保数据质量和合规性。
  2027. 2. 具体应用:
  2028. - 确定处理阶段:根据数据处理任务确定数据处于生命周期的哪个阶段进行针对性处理。
  2029. - 遵循管理规范:按照各阶段的管理要求,如存储安全规范,在处理中保障数据。
  2030. - 规划流程:基于数据生命周期各阶段顺序规划合理的数据处理流程。
  2031. ### ETL(Extract,Transform,Load)理论
  2032. 1. 基本原理:
  2033. - ETL是数据仓库中的一种数据处理过程,包括抽取、转换和加载三个主要步骤。
  2034. - 用于将不同来源的数据整合到数据仓库中,保证数据的一致性和准确性。
  2035. 2. 具体应用:
  2036. - 数据抽取:从多组文本数据中提取所需的字段和内容。
  2037. - 数据转换:对抽取的数据按照标准进行格式转换、清洗等操作。
  2038. - 数据加载:将处理好的数据加载到合适的存储或输出结构中。
  2039. ### 数据质量评估理论
  2040. 1. 基本原理:
  2041. - 从准确性、完整性、一致性等多方面评估数据质量,以确保数据可靠。
  2042. - 不同的数据用途有不同的质量要求,需建立相应评估指标。
  2043. 2. 具体应用:
  2044. - 质量指标确定:根据处理标准确定数据质量评估指标。
  2045. - 数据检查:按照指标对处理过程中的数据进行检查。
  2046. - 结果验证:依据评估结果验证最终输出的数据是否符合要求。
  2047. ##响应
  2048. 严格按照用户的需求进行输出,不要输出多余的内容
  2049. ## 要求
  2050. - 以清晰的逻辑构建处理流程,步骤分明。
  2051. - 对数据内容进行全面分析,不遗漏任何关键信息。
  2052. - 根据评价标准严格进行评价操作,保证结果的公正性。
  2053. - 处理结果输出简洁明了,仅包含符合要求的内容。
  2054. - 考虑到可能存在的多种数据结构,保持处理方法的通用性。
  2055. - 针对数据处理过程中的特殊情况提供应对措施。
  2056. - 以专业的态度对待数据,确保数据的安全性与完整性。
  2057. - 输出格式[{id:数据id,sco:评分}]。
  2058. - 不输出分析过程,直接输出最后计算结果。
  2059. ## 限制
  2060. - 不应包含未经定义的数据处理术语,以免造成混淆。
  2061. - 避免输出与数据处理标准无关的内容。
  2062. - 不应包含模糊不清的处理步骤或操作。
  2063. - 避免提及无法获取的外部工具或资源,除非有替代方案。
  2064. - 不应包含未经证实的数据处理假设。
  2065. - 不要回复你不知道的内容
  2066. - 不要直接回复<demo>的内容
  2067. - 所输出的内容必须按照给定的格式进行组织,不能偏离框架要求。
  2068. - 请使用准确可靠的信息来源,确保规划的可行性和实用性。
  2069. - 如果查询信息不是真实信息,如 xxx 等占位字符,不要采纳或使用。
  2070. - 不要给用户提供任何虚假信息!不要给用户提供任何虚假信息!不要给用户提供任何虚假信息`;
  2071. // console.log('messages',messages);
  2072. let params = {
  2073. id: '978252d7-a26e-4e70-8d75-3336497abac1',
  2074. message: [
  2075. {
  2076. type: "text",
  2077. text: messages.replaceAll("\n", " ").replaceAll("*", "")
  2078. }
  2079. ],
  2080. userId: this.userid,
  2081. model: 'open-gpt-4.1',
  2082. file_ids: [],
  2083. sound_url: '',
  2084. temperature: 0.2,
  2085. top_p: 1,
  2086. max_completion_tokens: 100000,
  2087. // uid: _uid,
  2088. session_name: uuidv4(),
  2089. // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
  2090. // message: [
  2091. // {
  2092. // type: "text",
  2093. // text: messages.replaceAll("\n", " ").replaceAll("*", "")
  2094. // }
  2095. // ],
  2096. // session_name: uuidv4(),
  2097. // userId: this.userid,
  2098. // file_ids: '',
  2099. // model: "gpt-4o-2024-11-20"
  2100. };
  2101. this.ajax
  2102. .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
  2103. .then(response => {
  2104. let data = response.data;
  2105. this.scoList = JSON.parse(data.message)
  2106. this.aiscoLoading = false
  2107. this.uploadSCo()
  2108. })
  2109. .catch(error => {
  2110. this.aiscoLoading = false
  2111. this.$message.error('评分失败')
  2112. reject(error)
  2113. console.log(error);
  2114. });
  2115. },
  2116. // 获取评分
  2117. async getAiSco() {
  2118. return new Promise((resolve, reject) => {
  2119. this.aiscoLoading = true
  2120. let params = {
  2121. tid: this.cid,
  2122. };
  2123. this.ajax
  2124. .get(this.$store.state.api + "getTestAiSco", params)
  2125. .then((res) => {
  2126. if (res.data[0].length) {
  2127. this.aiscoId = res.data[0][0].id
  2128. this.cueWord = JSON.parse(res.data[0][0].cueWord)
  2129. this.cueWordCopy = JSON.parse(res.data[0][0].cueWord)
  2130. this.scoList = JSON.parse(res.data[0][0].json)
  2131. this.scoListCopy = JSON.parse(res.data[0][0].json)
  2132. } else {
  2133. this.cueWord = {
  2134. openCeCon: '', //指令
  2135. openCeTit: '', //标题
  2136. fieldList: []
  2137. }
  2138. this.cueWordCopy = {
  2139. openCeCon: '', //指令
  2140. openCeTit: '', //标题
  2141. fieldList: []
  2142. }
  2143. this.scoList = []
  2144. this.scoListCopy = []
  2145. }
  2146. this.aiscoLoading = false
  2147. // console.log('8888888888',res.data[0]);
  2148. resolve(1)
  2149. })
  2150. .catch((err) => {
  2151. reject(err)
  2152. this.aiscoLoading = false
  2153. console.error(err);
  2154. });
  2155. })
  2156. },
  2157. // 上传评分
  2158. uploadSCo() {
  2159. this.aiscoLoading = true
  2160. // val有数据就是自动评分把将新老数据结合在一起
  2161. let scoArr = []
  2162. // 新添加的评分
  2163. const ids1 = this.scoList.map(item => item.id);
  2164. // console.log('ids1',ids1);
  2165. // jiu评分
  2166. scoArr = this.scoListCopy.filter(item => !ids1.includes(item.id));
  2167. // console.log('scoArr',JSON.parse(JSON.stringify('scoArr')));
  2168. scoArr = [...this.scoList, ...scoArr]
  2169. let params = [{
  2170. tid: this.cid,
  2171. uid: this.userid,
  2172. json: JSON.stringify(scoArr),
  2173. cw: JSON.stringify(this.cueWord)
  2174. }]
  2175. // console.log('params',params);
  2176. this.ajax
  2177. .post(this.$store.state.api + "addtestAiSco", params)
  2178. .then((res) => {
  2179. // console.log(res);
  2180. this.$message({
  2181. message: "评价成功",
  2182. type: "success"
  2183. });
  2184. this.getAiSco()
  2185. })
  2186. .catch((err) => {
  2187. this.aiscoLoading = false
  2188. this.$message({
  2189. message: "评价失败",
  2190. type: "error"
  2191. });
  2192. console.error(err);
  2193. });
  2194. },
  2195. // 获取文档id
  2196. createFileid(url) {
  2197. let _this = this;
  2198. return new Promise((resolve, reject) => {
  2199. try {
  2200. _this.ajax
  2201. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  2202. url: url
  2203. })
  2204. .then(res => {
  2205. let _data = res.data.FunctionResponse;
  2206. if (_data.result && _data.result.id) {
  2207. resolve(_data.result.id);
  2208. } else {
  2209. resolve(1);
  2210. }
  2211. })
  2212. .catch(function (error) {
  2213. resolve(1);
  2214. });
  2215. } catch (e) {
  2216. resolve(1);
  2217. }
  2218. });
  2219. },
  2220. getLang() {
  2221. let lang = "";
  2222. if (this.languageSetting == 0) {
  2223. lang = "Chinese.";
  2224. } else if (this.languageSetting == 1) {
  2225. lang = "Traditional Chinese.";
  2226. } else if (this.languageSetting == 2) {
  2227. lang = "English.";
  2228. }
  2229. return lang;
  2230. },
  2231. // 打开引用字段弹框
  2232. quoteShow() {
  2233. this.quoteV = !this.quoteV
  2234. },
  2235. // 添加指令字段
  2236. addfield(val) {
  2237. if (this.cueWord.fieldList.indexOf(val) != -1) {
  2238. const index = this.cueWord.fieldList.indexOf(val)
  2239. this.cueWord.fieldList.splice(index, 1)
  2240. } else {
  2241. this.cueWord.fieldList.push(val)
  2242. }
  2243. },
  2244. openChat() {
  2245. this.aiChatV = !this.aiChatV;
  2246. this.$nextTick(() => {
  2247. const boxStickyHeight = this.$refs.boxSticky
  2248. ? this.$refs.boxSticky.offsetHeight
  2249. : 0;
  2250. const chatHeight = `calc(100% - ${boxStickyHeight}px - 46px)`;
  2251. // this.$refs.aiChat.$el.style.height = chatHeight;
  2252. this.$refs.aiBoxRightDivRef.style.height = chatHeight;
  2253. });
  2254. },
  2255. fileClose(done) {
  2256. done();
  2257. },
  2258. //获取教研室列表
  2259. getClass2() {
  2260. let params = {
  2261. oid: this.oid,
  2262. };
  2263. this.ajax
  2264. .get(this.$store.state.api + "selectTeacherOfficeBySchool", params)
  2265. .then((res) => {
  2266. console.log("this.TeachingOptions", this.TeachingOptions);
  2267. console.log(res.data);
  2268. let data = res.data[0];
  2269. this.TeachingOptions.forEach((e) => {
  2270. data.forEach((i) => {
  2271. if (e.id == i.id) {
  2272. e.name = i.name;
  2273. }
  2274. });
  2275. });
  2276. })
  2277. .catch((err) => {
  2278. this.isLoading = false;
  2279. console.error(err);
  2280. });
  2281. },
  2282. getClass3() {
  2283. let params = {
  2284. oid: this.oid,
  2285. };
  2286. this.ajax
  2287. .get(this.$store.state.api + "selectTeacherOfficeBySchool", params)
  2288. .then((res) => {
  2289. console.log(res.data);
  2290. this.TeachingOptions = res.data[0].filter((item) => {
  2291. return item.parentid == "6";
  2292. });
  2293. // console.log('this.TeachingOptions',this.TeachingOptions);
  2294. })
  2295. .catch((err) => {
  2296. this.isLoading = false;
  2297. console.error(err);
  2298. });
  2299. },
  2300. filterName(value, row, index) {
  2301. let name = [];
  2302. for (var i = 0; i < row.array[index].json.answer2.length; i++) {
  2303. name.push(
  2304. row.array[index].json.array[row.array[index].json.answer2[i]].option
  2305. );
  2306. }
  2307. console.log(name.indexOf(value) != -1);
  2308. return name.indexOf(value) != -1;
  2309. },
  2310. // 筛选课程
  2311. filterCourse(value, row, index) {
  2312. return row.array[index].json.answer2.indexOf(value) != -1;
  2313. },
  2314. //筛选日期
  2315. filterTime(value, row, index) {
  2316. return row.array[index].json.answer2.indexOf(value) != -1;
  2317. },
  2318. filterTType(value, row, index) {
  2319. return row.cclassid && row.cclassid.indexOf(value) != -1;
  2320. },
  2321. wordClickHandler(name, value) {
  2322. // this.$notify({
  2323. // title: name,
  2324. // message: "数量:"+value
  2325. // });
  2326. },
  2327. retrunCourse() {
  2328. if (!this.back) {
  2329. this.goTo(
  2330. "/test?userid=" +
  2331. this.userid +
  2332. "&oid=" +
  2333. this.oid +
  2334. "&org=" +
  2335. this.org +
  2336. "&role=" +
  2337. this.role
  2338. );
  2339. } else if (this.back == "sass") {
  2340. this.$router.back();
  2341. // this.goTo(
  2342. // "/sassPlatform?userid=" +
  2343. // this.userid +
  2344. // "&oid=" +
  2345. // this.oid +
  2346. // "&org=" +
  2347. // this.org +
  2348. // "&role=" +
  2349. // this.role
  2350. // );
  2351. }
  2352. },
  2353. goTo(path) {
  2354. this.$router.push(path);
  2355. },
  2356. tableRowClassName({ row, rowIndex }) {
  2357. if ((rowIndex + 1) % 2 === 0) {
  2358. return "even_row";
  2359. } else {
  2360. return "";
  2361. }
  2362. },
  2363. changeHeight() {
  2364. if (this.stype == 1) {
  2365. return;
  2366. }
  2367. this.tableHeight = this.$refs.stepBox.offsetHeight - 120;
  2368. if (this.tableHeight <= 530) {
  2369. this.tableHeight = 530;
  2370. }
  2371. // 监听窗口大小变化
  2372. let self = this;
  2373. window.onresize = function () {
  2374. if (self.stype == 1) {
  2375. return;
  2376. }
  2377. self.tableHeight = this.$refs.stepBox.offsetHeight - 120;
  2378. if (self.tableHeight <= 530) {
  2379. self.tableHeight = 530;
  2380. }
  2381. };
  2382. // this.$refs.table.$el.offsetTop:表格距离浏览器的高度 //200表示你想要调整的表格距离底部的高度(你可以自己随意调整),因为我们一般都有放分页组件的,所以需要给它留一个高度
  2383. },
  2384. handleCurrentChange(val) {
  2385. this.page = val;
  2386. this.getData2();
  2387. },
  2388. getTest(row) {
  2389. this.$router.push(
  2390. "/checkTest2?cid=" +
  2391. row.courseid +
  2392. "&userid=" +
  2393. this.userid +
  2394. "&userid2=" +
  2395. row.userid +
  2396. "&tid=" +
  2397. row.id +
  2398. "&oid=" +
  2399. this.oid +
  2400. "&org=" +
  2401. this.org +
  2402. "&type=2" +
  2403. "&role=" +
  2404. this.role +
  2405. "&back=1"
  2406. );
  2407. },
  2408. editTest(row) {
  2409. this.$router.push(
  2410. "/doTest?cid=" +
  2411. row.courseid +
  2412. "&userid=" +
  2413. this.userid +
  2414. "&userid2=" +
  2415. row.userid +
  2416. "&tid=" +
  2417. row.id +
  2418. "&oid=" +
  2419. this.oid +
  2420. "&org=" +
  2421. this.org +
  2422. "&type=2" +
  2423. "&role=" +
  2424. this.role +
  2425. "&back=1"
  2426. );
  2427. // doTest?cid=721eadc1-087c-11f0-b508-005056924926&tid=66db0a89-0a11-11f0-9261-005056924926&userid=6c56ec0e-2c74-11ef-bee5-005056b86db5&oid=414f2361-ad04-11ed-b13d-005056b86db5&org=0fec3a8a-ad04-11ed-b13d-005056b86db5&type=3&role=0
  2428. console.log("编辑", row)
  2429. },
  2430. checkDataType(type) {
  2431. this.TeachingValue = "";
  2432. if (this.stype != type) {
  2433. this.stype = type;
  2434. this.courseName = "";
  2435. if (type == 3) {
  2436. this.getData2();
  2437. } else {
  2438. this.getData();
  2439. }
  2440. this.changeHeight();
  2441. }
  2442. },
  2443. searchCourse() {
  2444. if (this.stype == 3) {
  2445. this.getData2();
  2446. } else {
  2447. this.getData();
  2448. }
  2449. },
  2450. async getData() {
  2451. this.isLoading = true;
  2452. await this.getAiSco()
  2453. let params = [
  2454. {
  2455. cid: this.cid,
  2456. cn: this.courseName,
  2457. tim: !this.SubmitTime ? "" : this.SubmitTime,
  2458. tea: this.TeachingValue,
  2459. },
  2460. ];
  2461. this.ajax
  2462. .post(this.$store.state.api + "getTestWorksNoPageCopy2", params)
  2463. .then(async (res) => {
  2464. this.testJson = res.data[0][0];
  2465. console.log(
  2466. "this.testJson",
  2467. JSON.parse(JSON.stringify(this.testJson))
  2468. );
  2469. let a = "";
  2470. if (this.testJson.juriP) {
  2471. a = this.testJson.juriP;
  2472. }
  2473. if (this.testJson.juriP2) {
  2474. if (a) {
  2475. a = this.testJson.juriP + "," + this.testJson.juriP2;
  2476. } else {
  2477. a = this.testJson.juriP2;
  2478. }
  2479. }
  2480. this.testJson.juriP = a;
  2481. if (this.testJson.juriP) {
  2482. let ajuri2 = this.testJson.juri2.split(",");
  2483. this.TeachingOptions = ajuri2.map((key, index) => ({
  2484. id: key,
  2485. name: "",
  2486. }));
  2487. this.getClass2();
  2488. } else {
  2489. this.getClass3();
  2490. }
  2491. // console.log('dddd',this.TeachingOptions);
  2492. let _worksData = res.data[1];
  2493. console.log("_worksData", _worksData)
  2494. if (this.peopleId) {
  2495. _worksData = _worksData.filter(i => i.userid === this.peopleId)
  2496. }
  2497. // if(this.timeLimit){
  2498. // console.log("timeLimit", this.timeLimit)
  2499. // // 2024-12-31T16:00:00.000Z,2025-12-31T16:00:00.000Z
  2500. // // 根据 timeLimit 筛选 _worksData
  2501. // let [startStr, endStr] = this.timeLimit.split(',');
  2502. // let startDate = startStr ? new Date(startStr) : null;
  2503. // let endDate = endStr ? new Date(endStr) : null;
  2504. // _worksData = _worksData.filter(i => {
  2505. // if (!i.time) return false;
  2506. // // i.time 例子:2025年02月25日 10:17:46
  2507. // let match = i.time.match(/^(\d{4})年(\d{2})月(\d{2})日/);
  2508. // if (!match) return false;
  2509. // let year = parseInt(match[1]);
  2510. // let month = parseInt(match[2]);
  2511. // let day = parseInt(match[3]);
  2512. // // 构造当前数据的日期对象
  2513. // let curDate = new Date(year, month - 1, day, 0, 0, 0);
  2514. // // 判断是否在区间内(包含等于)
  2515. // if (startDate && endDate) {
  2516. // return curDate >= startDate && curDate <= endDate;
  2517. // } else if (startDate) {
  2518. // return curDate >= startDate;
  2519. // } else if (endDate) {
  2520. // return curDate <= endDate;
  2521. // }
  2522. // return true;
  2523. // });
  2524. // }
  2525. // if(this.timeLimit){
  2526. // if(_worksData[0]){
  2527. // let _data = JSON.parse(_worksData[0].courseJson)
  2528. // let _flag = false;
  2529. // _data.forEach((item,index)=>{
  2530. // if(item.type == 8 && item.json.title == "获奖时间"){
  2531. // _flag = true
  2532. // let time = this.timeLimit.split(",");
  2533. // this.tableDatePicker[index] = [new Date(time[0]),new Date(time[1])]
  2534. // }
  2535. // })
  2536. // if(!_flag){
  2537. // let time = this.timeLimit.split(",");
  2538. // this.submissionTimePicker = [new Date(time[0]),new Date(time[1])];
  2539. // }
  2540. // this.tableDataPickerChange();
  2541. // this.submissionTimePickerChange()
  2542. // }
  2543. // }
  2544. this.works = _worksData;
  2545. this.iscount = res.data[2][0].count;
  2546. this.pcount = res.data[3][0].count;
  2547. let chapters = this.setJSON(
  2548. this.setJson2(
  2549. JSON.parse(JSON.stringify(JSON.parse(res.data[0][0].chapters)))
  2550. )
  2551. );
  2552. this.chapters = this.setFilter(
  2553. this.JSONSetting(
  2554. JSON.parse(JSON.stringify(JSON.parse(res.data[0][0].chapters)))
  2555. )
  2556. );
  2557. let courseCount11 = [];
  2558. let testArray = [];
  2559. let array = [];
  2560. let courseIds = []; // 初始化一个空数组来存储所有的courseId
  2561. for (let i = 0; i < this.works.length; i++) {
  2562. let cJson = this.setJSON(
  2563. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2564. );
  2565. if (JSON.stringify(cJson) == JSON.stringify(chapters)) {
  2566. let _json = this.JSONSetting(
  2567. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2568. );
  2569. for (var ja = 0; ja < _json.length; ja++) {
  2570. let _json2 = _json[ja].json;
  2571. if (_json[ja].type == 6) {
  2572. let courseId = _json2.answer2;
  2573. courseIds.push(courseId); // 将type为6的courseId添加到数组中
  2574. }
  2575. if (_json[ja].type == 11) {
  2576. let _answer = _json2.answer2;
  2577. _answer.length
  2578. ? (courseCount11 = courseCount11.concat(_answer))
  2579. : "";
  2580. _json[ja].json.courseId = _answer ? _answer : [];
  2581. courseIds = courseIds.concat(_answer); // 将type为11的courseId添加到数组中
  2582. }
  2583. }
  2584. }
  2585. }
  2586. // 将所有的courseId去重
  2587. courseIds = Array.from(new Set(courseIds));
  2588. // 使用一个数组来存储所有的courseId后,执行getCourseInfoTestAll
  2589. let courseTitles = {}; // 初始化一个空对象来存储所有的courseTitles
  2590. let params2 = [
  2591. {
  2592. cid: courseIds.join(","),
  2593. },
  2594. ];
  2595. let data2 = await this.ajax.post(
  2596. this.$store.state.api + "getCourseInfoTestAll2",
  2597. params2
  2598. );
  2599. let result2 = data2.data[0];
  2600. result2.forEach((i) => {
  2601. // _title.push(i.title);
  2602. courseTitles[i.courseId] = i.title;
  2603. });
  2604. for (let i = 0; i < this.works.length; i++) {
  2605. let cJson = this.setJSON(
  2606. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2607. );
  2608. console.log(cJson, '===', chapters)
  2609. // if (JSON.stringify(cJson) == JSON.stringify(chapters)) {
  2610. let _json = this.JSONSetting(
  2611. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2612. );
  2613. let _json2 = this.JSONSetting(
  2614. JSON.parse(JSON.stringify(JSON.parse(JSON.stringify(chapters))))
  2615. );
  2616. // console.log("json2",_json2)
  2617. // _json.forEach((item) => {
  2618. // console.log('_jsonItem',item)
  2619. // if(){
  2620. // }
  2621. // if (item.type == 11) {
  2622. // let cid = item.json.answer2;
  2623. // let _title = [];
  2624. // for (var i = 0; i < cid.length; i++) {
  2625. // _title.push(courseTitles[cid[i]]);
  2626. // }
  2627. // item.json.answer2 = _title.length ? _title.join(",") : "";
  2628. // }
  2629. // if (item.type == 6) {
  2630. // let courseId = item.json.answer2;
  2631. // item.json.answer2 = courseTitles[courseId] || "";
  2632. // }
  2633. // });
  2634. _json2.forEach(item => {
  2635. let _index = _json.findIndex(i => (i.type == item.type && i.ttype == item.ttype && i.json.title == item.json.title))
  2636. if (_index != -1) {
  2637. item.json = _json[_index].json;
  2638. if (item.type == 11) {
  2639. let cid = item.json.answer2;
  2640. let _title = [];
  2641. for (var i = 0; i < cid.length; i++) {
  2642. _title.push(courseTitles[cid[i]]);
  2643. }
  2644. item.json.answer2 = _title.length ? _title.join(",") : "";
  2645. }
  2646. if (item.type == 6) {
  2647. let courseId = item.json.answer2;
  2648. item.json.answer2 = courseTitles[courseId] || "";
  2649. }
  2650. }
  2651. })
  2652. if (JSON.stringify(_json2) == JSON.stringify(this.JSONSetting(JSON.parse(JSON.stringify(chapters))))) continue
  2653. // 更新对应的_json对象的answer2
  2654. array.push({
  2655. courseid: this.works[i].courseid,
  2656. cclassid: this.works[i].cclassid,
  2657. id: this.works[i].id,
  2658. userid: this.works[i].userid,
  2659. name: this.works[i].username ? this.works[i].username : "匿名",
  2660. time: this.works[i].time,
  2661. array: _json2,
  2662. testName: this.works[i].testName,
  2663. isReview: this.works[i].isReview,
  2664. cut: 0,
  2665. uteaName: this.works[i].uteaName,
  2666. courseJson: JSON.parse(this.works[i].courseJson),
  2667. type: this.works[i].type
  2668. });
  2669. // }
  2670. }
  2671. let allCourseIds = [];
  2672. for (var i = 0; i < this.chapters.length; i++) {
  2673. let el = this.chapters[i];
  2674. let topic = {
  2675. type: el.type,
  2676. cut: 0,
  2677. title: el.json ? el.json.title : "",
  2678. detail: el.json ? el.json.detail : "",
  2679. atype: el.json ? el.json.type : "",
  2680. choice: el.json ? el.json.array : "",
  2681. array: [],
  2682. answer: el.json ? el.json.answer : "",
  2683. answer2: "",
  2684. count: 0,
  2685. courses: el.json ? el.json.courses : [],
  2686. small: el.json ? el.json.small : "",
  2687. big: el.json ? el.json.big : "",
  2688. };
  2689. if (topic.type == 1) {
  2690. for (var t = 0; t < topic.choice.length; t++) {
  2691. topic.array.push({
  2692. name: topic.choice[t].option,
  2693. count: 0,
  2694. });
  2695. }
  2696. } else if (topic.type == 3) {
  2697. } else if (topic.type == 5) {
  2698. } else if (topic.type == 6) {
  2699. let _answer = topic.array;
  2700. allCourseIds = allCourseIds.concat(_answer);
  2701. } else if (topic.type == 7) {
  2702. for (
  2703. var t = parseInt(topic.small);
  2704. t <= parseInt(topic.big);
  2705. t++
  2706. ) {
  2707. topic.array.push({
  2708. name: t,
  2709. count: 0,
  2710. });
  2711. }
  2712. } else if (topic.type == 11) {
  2713. const uniqueArray = courseCount11.filter(
  2714. (item, index) => courseCount11.indexOf(item) === index
  2715. );
  2716. let _answer = uniqueArray;
  2717. allCourseIds = allCourseIds.concat(_answer);
  2718. }
  2719. for (var j = 0; j < array.length; j++) {
  2720. let el2 = array[j];
  2721. console.log("==>", el2)
  2722. if (topic.type == 1) {
  2723. let _answer = el2.array[i].json.answer2;
  2724. if (!_answer) continue;
  2725. for (var k = 0; k < _answer.length; k++) {
  2726. topic.array[_answer[k]].count++;
  2727. topic.count++;
  2728. }
  2729. } else if (topic.type == 3 || topic.type == 8) {
  2730. let type3 = 1;
  2731. let _answer = el2.array[i].json.answer2;
  2732. if (_answer) {
  2733. for (var k = 0; k < topic.array.length; k++) {
  2734. if (topic.array[k].name == _answer) {
  2735. topic.array[k].count++;
  2736. type3 = 2;
  2737. topic.count++;
  2738. break;
  2739. }
  2740. }
  2741. if (type3 == 1) {
  2742. topic.array.push({
  2743. name: _answer,
  2744. count: 1,
  2745. });
  2746. }
  2747. let limit = 10;
  2748. if (topic.array.length > limit) {
  2749. topic.showArray = topic.array.slice(0, limit)
  2750. topic.nowPage = 1;
  2751. topic.total = topic.array.length;
  2752. topic.limit = limit;
  2753. } else {
  2754. topic.showArray = topic.array;
  2755. }
  2756. topic.loadingWordCloud = false;
  2757. topic.wordCloutData = null;
  2758. }
  2759. } else if (topic.type == 5) {
  2760. let _answer = el2.array[i].json.file
  2761. ? el2.array[i].json.file
  2762. : [];
  2763. let _user = { userid: el2.userid, username: el2.name };
  2764. for (var k = 0; k < _answer.length; k++) {
  2765. topic.array.push({ ..._answer[k], ..._user });
  2766. }
  2767. } else if (topic.type == 7) {
  2768. if (el2.array[i].json.answer2) {
  2769. let _answer = el2.array[i].json.answer2;
  2770. topic.array[_answer].count++;
  2771. topic.count++;
  2772. }
  2773. } else if (topic.type == 6) {
  2774. if (el2.array[i].json.courses) {
  2775. let _answer = el2.array[i].json.courses.length
  2776. ? el2.array[i].json.courses.join(",")
  2777. : "";
  2778. topic.answer2 = _answer;
  2779. }
  2780. } else if (topic.type == 11) {
  2781. const uniqueArray = courseCount11.filter(
  2782. (item, index) => courseCount11.indexOf(item) === index
  2783. );
  2784. let _answer = uniqueArray;
  2785. topic.answer2 = _answer;
  2786. } else if (topic.type == 13) {
  2787. if (el2.array[i].json.answer2 !== '') {
  2788. let _answer = String(el2.array[i].json.answer2);
  2789. let _type = el2.array[i].json.type;
  2790. console.log("👉", el2.array[i].json)
  2791. if (_type == '4') _answer += '%';
  2792. if (!topic.array) topic.array = [];
  2793. if (topic.array.findIndex(i => i.name == _answer) != -1) {
  2794. topic.array.find(i => i.name == _answer).count++;
  2795. } else {
  2796. topic.array.push({
  2797. name: _answer,
  2798. count: 1
  2799. })
  2800. }
  2801. topic.count++;
  2802. }
  2803. } else if (topic.type == 14) {
  2804. console.log("===", el2)
  2805. }
  2806. }
  2807. console.log("topictopictopictopic", topic);
  2808. testArray.push(topic);
  2809. this.fileLoading.push({
  2810. bool: false,
  2811. count: 0,
  2812. load: 0,
  2813. progress: 0,
  2814. });
  2815. }
  2816. // 去重courseId
  2817. allCourseIds = Array.from(new Set(allCourseIds));
  2818. let params = [
  2819. {
  2820. cid: allCourseIds.join(","),
  2821. },
  2822. ];
  2823. let data = await this.ajax.post(
  2824. this.$store.state.api + "getCourseInfoTestAll2",
  2825. params
  2826. );
  2827. let result = data.data[0];
  2828. for (var i = 0; i < this.chapters.length; i++) {
  2829. let el = this.chapters[i];
  2830. let topic = testArray[i];
  2831. if (topic.type == 6 || topic.type == 11) {
  2832. result.forEach((i) => {
  2833. i.update_at = new Date(i.update_at)
  2834. .toLocaleString("zh-CN", {
  2835. year: "numeric",
  2836. month: "2-digit",
  2837. day: "2-digit",
  2838. hour: "2-digit",
  2839. minute: "2-digit",
  2840. second: "2-digit",
  2841. hour12: false,
  2842. })
  2843. .replace(/\//g, "-");
  2844. });
  2845. if (topic.type == 6) {
  2846. result.forEach((elc) => {
  2847. if (
  2848. this.chapters
  2849. .find((f) => f.type == 6)
  2850. .nameFilters.find((c) => c.value == elc.title) ==
  2851. undefined &&
  2852. topic.answer2.includes(elc.courseId)
  2853. ) {
  2854. this.chapters
  2855. .find((c) => c.type == 6)
  2856. .nameFilters.push({ text: elc.title, value: elc.title });
  2857. }
  2858. });
  2859. } else if (topic.type == 11) {
  2860. result.forEach((elc) => {
  2861. if (
  2862. this.chapters
  2863. .find((f, index) => index == i)
  2864. .nameFilters.find((c) => c.value == elc.title) ==
  2865. undefined &&
  2866. topic.answer2.includes(elc.courseId)
  2867. ) {
  2868. this.chapters
  2869. .find((c, index) => index == i)
  2870. .nameFilters.push({ text: elc.title, value: elc.title });
  2871. }
  2872. });
  2873. }
  2874. // this.chapters.find(i=>i.type==6 || i.type==11).nameFilters = result.map(r=>{return{text:r.title,value:r.courseId}})
  2875. if (topic.answer2.length) {
  2876. let _answer = topic.answer2;
  2877. topic.courseArray = result.filter((el) => {
  2878. return _answer.includes(el.courseId);
  2879. });
  2880. } else {
  2881. topic.courseArray = [];
  2882. }
  2883. // topic.courseArray = result
  2884. }
  2885. }
  2886. this.testArray = testArray;
  2887. this.worksArray = array;
  2888. this.tableWorksArray = array;
  2889. this.isLoading = false;
  2890. this.teaType = res.data[5];
  2891. let typeInfo = res.data[6];
  2892. this.teaType.forEach((e) => {
  2893. e.child = [];
  2894. e.value = [];
  2895. typeInfo.forEach((i) => {
  2896. if (e.id == i.parentid) {
  2897. e.child.push({ id: i.id, name: i.name });
  2898. }
  2899. });
  2900. });
  2901. console.log(this.teaType, "teaType");
  2902. if (this.timeLimit) {
  2903. console.log("this.timeLimit", this.timeLimit)
  2904. if (this.works[0]) {
  2905. let _data = JSON.parse(this.works[0].courseJson)
  2906. console.log("this.works", this.works)
  2907. _data.forEach((item, index) => {
  2908. if (item.type == 8) {
  2909. let time = this.timeLimit.split(",");
  2910. if(time[0]==='2025-09-30T16:00:00.000Z' && time[1]==='2026-09-30T16:00:00.000Z'){
  2911. time[0]='Wed Jan 01 2025 00:00:00 GMT+0800 (中国标准时间)'
  2912. time[1]='Wed Dec 31 2025 00:00:00 GMT+0800 (中国标准时间)'
  2913. console.log("设置默认时间")
  2914. }
  2915. this.tableDatePicker[index] = [new Date(time[0]), new Date(time[1])]
  2916. }
  2917. })
  2918. if (this.tableDatePicker.length <= 0) {
  2919. let time = this.timeLimit.split(",");
  2920. this.submissionTimePicker = [new Date(time[0]), new Date(time[1])]
  2921. this.submissionTimePickerChange()
  2922. }else{
  2923. this.tableDataPickerChange();
  2924. }
  2925. // if(!_flag){ // this.submissionTimePicker = [new Date(time[0]),new Date(time[1])];
  2926. // this.submissionTimePickerChange()
  2927. // }else{
  2928. // this.$nextTick(()=>{
  2929. this.$forceUpdate();
  2930. // })
  2931. // }
  2932. }
  2933. }
  2934. })
  2935. .catch((err) => {
  2936. console.error(err);
  2937. });
  2938. },
  2939. getData2() {
  2940. this.isLoading = true;
  2941. let params = {
  2942. cid: this.cid,
  2943. page: this.page,
  2944. pageSize: this.pageSize,
  2945. cn: this.courseName,
  2946. };
  2947. this.ajax
  2948. .get(this.$store.state.api + "getTestWorksPage3", params)
  2949. .then((res) => {
  2950. this.isLoading = false;
  2951. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  2952. this.tableData = res.data[0];
  2953. })
  2954. .catch((err) => {
  2955. console.error(err);
  2956. });
  2957. },
  2958. setJSON(json) {
  2959. return json.filter((item) => {
  2960. if (item.array) {
  2961. item.array = item.array.filter((item2) => {
  2962. if (item2.ttype == 1 && item2.json) {
  2963. delete item2.json.answer2;
  2964. delete item2.json.score2;
  2965. delete item2.json.file;
  2966. delete item2.json.codeScanningTime;
  2967. delete item2.json.timeSort;
  2968. }
  2969. if (item2.array) {
  2970. item2.array = item2.array.filter((item3) => {
  2971. if (item3.ttype == 1 && item3.json) {
  2972. delete item3.json.answer2;
  2973. delete item3.json.score2;
  2974. delete item3.json.file;
  2975. delete item3.json.codeScanningTime;
  2976. delete item3.json.timeSort;
  2977. }
  2978. return item3;
  2979. });
  2980. }
  2981. return item2;
  2982. });
  2983. } else if (item.ttype == 1 && item.json) {
  2984. delete item.json.answer2;
  2985. delete item.json.score2;
  2986. delete item.json.file;
  2987. delete item.json.codeScanningTime;
  2988. delete item.json.timeSort;
  2989. }
  2990. return item;
  2991. console.log(item.array);
  2992. });
  2993. },
  2994. setJson2(json) {
  2995. let _json = json;
  2996. // this.type = _json[0].ttype;
  2997. let checkArray = _json.filter((item) => {
  2998. if (item.array) {
  2999. item.array = item.array.filter((item2) => {
  3000. if (item2.ttype == 1 && item2.json && !item2.json.answer2) {
  3001. item2.json.answer2 = [];
  3002. }
  3003. if (item2.array) {
  3004. item2.array = item2.array.filter((item3) => {
  3005. if (item3.ttype == 1 && item3.json && !item3.json.answer2) {
  3006. item3.json.answer2 = [];
  3007. }
  3008. return item3;
  3009. });
  3010. }
  3011. return (
  3012. (item2.ttype != 1 && item2.array.length > 0) || item2.ttype == 1
  3013. );
  3014. });
  3015. }
  3016. if (item.ttype == 1 && item.json && !item.json.answer2) {
  3017. item.json.answer2 = [];
  3018. }
  3019. console.log(item.array);
  3020. return (item.ttype != 1 && item.array.length > 0) || item.ttype == 1;
  3021. });
  3022. console.log(checkArray);
  3023. return checkArray;
  3024. },
  3025. JSONSetting(json) {
  3026. let _json = json;
  3027. let array = [];
  3028. _json.filter((item) => {
  3029. if (item.array) {
  3030. item.array = item.array.filter((item2) => {
  3031. if (item2.ttype == 1 && item2.json) {
  3032. array.push(item2);
  3033. }
  3034. if (item2.array) {
  3035. item2.array = item2.array.filter((item3) => {
  3036. if (item3.ttype == 1 && item3.json) {
  3037. array.push(item3);
  3038. }
  3039. return item3;
  3040. });
  3041. }
  3042. return item2;
  3043. });
  3044. }
  3045. if (item.ttype == 1 && item.json) {
  3046. array.push(item);
  3047. }
  3048. console.log(item.array);
  3049. return item;
  3050. });
  3051. console.log(array);
  3052. return array;
  3053. },
  3054. setFilter(json) {
  3055. let _json = json;
  3056. let array = [];
  3057. _json.filter((item) => {
  3058. (item.nameFilters = []),
  3059. (item.filterParams = {
  3060. name: [],
  3061. });
  3062. if (item.type == 1) {
  3063. for (var i = 0; i < item.json.array.length; i++) {
  3064. item.nameFilters.push({
  3065. text: item.json.array[i].option,
  3066. value: item.json.array[i].option,
  3067. });
  3068. }
  3069. }
  3070. array.push(item);
  3071. return item;
  3072. });
  3073. return array;
  3074. },
  3075. checkFile(item) {
  3076. if (item.type == 3) {
  3077. this.$hevueImgPreview(item.url);
  3078. } else if (item.type == 5) {
  3079. this.downloadFile(item);
  3080. } else if (item.type == 1) {
  3081. this.dialogVisibleOffice = true;
  3082. this.wurl = item.url;
  3083. } else if (item.type == 2) {
  3084. this.dialogVisibleVideo = true;
  3085. this.wurl = item.url;
  3086. } else if (item.type == 4) {
  3087. this.dialogVisiblePdf = true;
  3088. this.wurl = item.url;
  3089. }
  3090. },
  3091. downloadFile(f) {
  3092. var credentials = {
  3093. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3094. secretAccessKey: "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",
  3095. }; //秘钥形式的登录上传
  3096. window.AWS.config.update(credentials);
  3097. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3098. let url2 = f.url;
  3099. let _url2 = "";
  3100. if (
  3101. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3102. ) {
  3103. _url2 = url2.split(
  3104. "https://view.officeapps.live.com/op/view.aspx?src="
  3105. )[1];
  3106. } else {
  3107. _url2 = url2;
  3108. }
  3109. let _this = this;
  3110. _this.downLoading = _url2;
  3111. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  3112. let name = decodeURIComponent(
  3113. _url2
  3114. .split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  3115. .replace(/\+/g, " ")
  3116. );
  3117. var params = {
  3118. Bucket: "ccrb",
  3119. Key: name,
  3120. };
  3121. s3.getObject(params, function (err, data) {
  3122. _this.downLoading = "";
  3123. if (err) console.log(err, err.stack); // an error occurred
  3124. else {
  3125. let url = window.URL.createObjectURL(new Blob([data.Body]));
  3126. let a = document.createElement("a");
  3127. a.name = f.name;
  3128. a.href = url;
  3129. a.download = f.name;
  3130. a.click();
  3131. console.log(data);
  3132. } // sxuccessful response
  3133. });
  3134. },
  3135. deleteTest(tid) {
  3136. let _this = this;
  3137. _this
  3138. .$confirm("确定删除此提交的表单么?", "提示", {
  3139. confirmButtonText: "确定",
  3140. cancelButtonText: "取消",
  3141. type: "warning",
  3142. })
  3143. .then(() => {
  3144. let params = [
  3145. {
  3146. tid: tid,
  3147. },
  3148. ];
  3149. _this.ajax
  3150. .post(_this.$store.state.api + "deleteTestCourseWorks", params)
  3151. .then((res) => {
  3152. _this.$message.success("删除成功");
  3153. if (_this.stype == 3) {
  3154. _this.getData2();
  3155. } else {
  3156. _this.getData();
  3157. }
  3158. })
  3159. .catch((err) => {
  3160. console.error(err);
  3161. });
  3162. })
  3163. .catch(() => {
  3164. return;
  3165. });
  3166. },
  3167. exportPDF() {
  3168. this.pdfLoading = true;
  3169. var a = document.getElementsByTagName("img");
  3170. for (var i = 0; i < a.length; i++) {
  3171. a[i].crossOrigin = "*";
  3172. }
  3173. downloadPDF(this.$refs.stepBox, this.testJson.title, () => {
  3174. var _a = document.getElementsByTagName("img");
  3175. for (var i = 0; i < _a.length; i++) {
  3176. _a[i].removeAttribute("crossorigin");
  3177. }
  3178. setTimeout(() => {
  3179. this.pdfLoading = false;
  3180. }, 2000);
  3181. });
  3182. },
  3183. score(json) {
  3184. let score = 0;
  3185. json.forEach((el) => {
  3186. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  3187. el.array.forEach((item) => {
  3188. if (item.ttype == 2 && item.array.length > 0) {
  3189. item.array.forEach((item2) => {
  3190. if (item2.ttype == 1 && item2.json) {
  3191. score += item2.json.score ? parseFloat(item2.json.score) : 0;
  3192. }
  3193. });
  3194. } else if (item.ttype == 1 && item.json) {
  3195. score += item.json.score ? parseFloat(item.json.score) : 0;
  3196. }
  3197. });
  3198. } else if (el.ttype == 1 && el.json) {
  3199. score += el.json.score ? parseFloat(el.json.score) : 0;
  3200. }
  3201. });
  3202. return score > 0 ? score + "分" : "";
  3203. },
  3204. score2(json) {
  3205. let score = 0;
  3206. // let type = 1
  3207. json.forEach((el) => {
  3208. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  3209. el.array.forEach((item) => {
  3210. if (item.ttype == 2 && item.array.length > 0) {
  3211. item.array.forEach((item2) => {
  3212. if (item2.ttype == 1 && item2.json) {
  3213. score += item2.json.score2
  3214. ? parseFloat(item2.json.score2)
  3215. : 0;
  3216. }
  3217. });
  3218. } else if (item.ttype == 1 && item.json) {
  3219. score += item.json.score2 ? parseFloat(item.json.score2) : 0;
  3220. }
  3221. });
  3222. } else if (el.ttype == 1 && el.json) {
  3223. score += el.json.score2 ? parseFloat(el.json.score2) : 0;
  3224. }
  3225. });
  3226. return score + "分";
  3227. },
  3228. setWordHtml(data) {
  3229. let _data = data;
  3230. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3231. let score = this.score(data.courseJson);
  3232. let isScore = this.score2(data.courseJson);
  3233. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3234. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${_data.name
  3235. }</b>${scoreContent}(填写范围)${this.testJson.juriP ? this.testJson.juriP : "所有人"
  3236. }(提交时间)${_data.time}</div>`;
  3237. let _detail = this.testJson.brief
  3238. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3239. : "";
  3240. let _test = `<div style='margin-top:40px;'>`;
  3241. for (let i = 0; i < _data.array.length; i++) {
  3242. let item = _data.array[i];
  3243. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${item.json.title
  3244. }</div>`;
  3245. _test += _div;
  3246. if (item.type == 1) {
  3247. for (let j = 0; j < item.json.array.length; j++) {
  3248. let check = item.json.array[j];
  3249. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3250. ? "☑"
  3251. : "☐"
  3252. } ${check.option}</div>`;
  3253. _test += _option;
  3254. }
  3255. } else if (item.type == 3 && item.json.answer2) {
  3256. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3257. _test += _option;
  3258. } else if (item.type == 5 && item.json.file) {
  3259. for (let j = 0; j < item.json.file.length; j++) {
  3260. let check = item.json.file[j];
  3261. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3262. _test += _option;
  3263. }
  3264. } else if (item.type == 6 && item.json.answer2) {
  3265. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3266. _test += _option;
  3267. } else if (item.type == 7 && item.json.answer2) {
  3268. let _score = this.getScore2(item.json);
  3269. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3270. _test += _option;
  3271. } else if (item.type == 8 && item.json.answer2) {
  3272. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3273. _test += _option;
  3274. } else if (item.type == 11 && item.json.answer2) {
  3275. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3276. _test += _option;
  3277. }
  3278. }
  3279. _test += `</div>`;
  3280. let _html = _title + _content + _detail + _test;
  3281. this.exportToWord(_data.name + "-" + _data.time, _html);
  3282. },
  3283. setWordHtml2(data) {
  3284. let _data = data;
  3285. _data.array = this.JSONSetting(
  3286. JSON.parse(JSON.stringify(JSON.parse(data.courseJson)))
  3287. );
  3288. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3289. let score = this.score(JSON.parse(data.courseJson));
  3290. let isScore = this.score2(JSON.parse(data.courseJson));
  3291. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3292. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${_data.username ? _data.username : "匿名"
  3293. }</b>${scoreContent}(填写范围)${this.testJson.juriP ? this.testJson.juriP : "所有人"
  3294. }(提交时间)${_data.time}</div>`;
  3295. let _detail = this.testJson.brief
  3296. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3297. : "";
  3298. let _test = `<div style='margin-top:40px;'>`;
  3299. for (let i = 0; i < _data.array.length; i++) {
  3300. let item = _data.array[i];
  3301. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${item.json.title
  3302. }</div>`;
  3303. _test += _div;
  3304. if (item.type == 1) {
  3305. for (let j = 0; j < item.json.array.length; j++) {
  3306. let check = item.json.array[j];
  3307. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3308. ? "☑"
  3309. : "☐"
  3310. } ${check.option}</div>`;
  3311. _test += _option;
  3312. }
  3313. } else if (item.type == 3 && item.json.answer2) {
  3314. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3315. _test += _option;
  3316. } else if (item.type == 5 && item.json.file) {
  3317. for (let j = 0; j < item.json.file.length; j++) {
  3318. let check = item.json.file[j];
  3319. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3320. _test += _option;
  3321. }
  3322. } else if (item.type == 6 && item.json.answer2) {
  3323. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3324. _test += _option;
  3325. } else if (item.type == 7 && item.json.answer2) {
  3326. let _score = this.getScore2(item.json);
  3327. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3328. _test += _option;
  3329. } else if (item.type == 8 && item.json.answer2) {
  3330. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3331. _test += _option;
  3332. } else if (item.type == 11 && item.json.answer2) {
  3333. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3334. _test += _option;
  3335. }
  3336. }
  3337. _test += `</div>`;
  3338. let _html = _title + _content + _detail + _test;
  3339. this.exportToWord(
  3340. _data.username ? _data.username : "匿名" + "-" + _data.time,
  3341. _html
  3342. );
  3343. },
  3344. async exportToWord(a, html) {
  3345. // 将html文件中需要用到的数据挂载到store上
  3346. const content = `<!DOCTYPE html>
  3347. <html lang="en">
  3348. <head>
  3349. <meta charset="UTF-8">
  3350. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  3351. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3352. <title>${a}</title>
  3353. <style>
  3354. </style>
  3355. </head>
  3356. <body>
  3357. ${html}
  3358. </body>
  3359. </html>`;
  3360. // debugger
  3361. // 生成报告
  3362. const link = document.createElement("a");
  3363. let dname = a + ".doc";
  3364. // link.download = "报告.html"; // 文件名
  3365. link.download = dname; // 文件名
  3366. link.style.display = "none";
  3367. // 创建文件流
  3368. // 创建bolb实例时,内容一定要放在[]中
  3369. const blob = new Blob([content], {
  3370. type: "text/plain;charset='utf-8'",
  3371. });
  3372. link.href = window.URL.createObjectURL(blob);
  3373. document.body.appendChild(link);
  3374. link.click();
  3375. document.body.removeChild(link);
  3376. },
  3377. setWordHtmlAll(data) {
  3378. let _data = data;
  3379. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3380. let score = this.score(data.courseJson);
  3381. let isScore = this.score2(data.courseJson);
  3382. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3383. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${_data.name
  3384. }</b>${scoreContent}(填写范围)${this.testJson.juriP ? this.testJson.juriP : "所有人"
  3385. }(提交时间)${_data.time}</div>`;
  3386. let _detail = this.testJson.brief
  3387. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3388. : "";
  3389. let _test = `<div style='margin-top:40px;'>`;
  3390. for (let i = 0; i < _data.array.length; i++) {
  3391. let item = _data.array[i];
  3392. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${item.json.title
  3393. }</div>`;
  3394. _test += _div;
  3395. if (item.type == 1) {
  3396. for (let j = 0; j < item.json.array.length; j++) {
  3397. let check = item.json.array[j];
  3398. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3399. ? "☑"
  3400. : "☐"
  3401. } ${check.option}</div>`;
  3402. _test += _option;
  3403. }
  3404. } else if (item.type == 3 && item.json.answer2) {
  3405. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3406. _test += _option;
  3407. } else if (item.type == 5 && item.json.file) {
  3408. for (let j = 0; j < item.json.file.length; j++) {
  3409. let check = item.json.file[j];
  3410. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3411. _test += _option;
  3412. }
  3413. } else if (item.type == 6 && item.json.answer2) {
  3414. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3415. _test += _option;
  3416. } else if (item.type == 7 && item.json.answer2) {
  3417. let _score = this.getScore2(item.json);
  3418. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3419. _test += _option;
  3420. } else if (item.type == 8 && item.json.answer2) {
  3421. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3422. _test += _option;
  3423. } else if (item.type == 11 && item.json.answer2) {
  3424. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3425. _test += _option;
  3426. }
  3427. }
  3428. _test += `</div>`;
  3429. let _html = _title + _content + _detail + _test;
  3430. return this.exportToWordAll(_data.name + "-" + _data.time, _html);
  3431. },
  3432. async setWordHtmlAll2(data) {
  3433. let _data = data;
  3434. _data.array = this.JSONSetting(
  3435. JSON.parse(JSON.stringify(JSON.parse(data.courseJson)))
  3436. );
  3437. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3438. let score = this.score(JSON.parse(data.courseJson));
  3439. let isScore = this.score2(JSON.parse(data.courseJson));
  3440. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3441. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${_data.username ? _data.username : "匿名"
  3442. }</b>${scoreContent}(填写范围)${this.testJson.juriP ? this.testJson.juriP : "所有人"
  3443. }(提交时间)${_data.time}</div>`;
  3444. let _detail = this.testJson.brief
  3445. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3446. : "";
  3447. let _test = `<div style='margin-top:40px;'>`;
  3448. for (let i = 0; i < _data.array.length; i++) {
  3449. let item = _data.array[i];
  3450. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${item.json.title
  3451. }</div>`;
  3452. _test += _div;
  3453. if (item.type == 1) {
  3454. for (let j = 0; j < item.json.array.length; j++) {
  3455. let check = item.json.array[j];
  3456. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3457. ? "☑"
  3458. : "☐"
  3459. } ${check.option}</div>`;
  3460. _test += _option;
  3461. }
  3462. } else if (item.type == 3 && item.json.answer2) {
  3463. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3464. _test += _option;
  3465. } else if (item.type == 5 && item.json.file) {
  3466. for (let j = 0; j < item.json.file.length; j++) {
  3467. let check = item.json.file[j];
  3468. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3469. _test += _option;
  3470. }
  3471. } else if (item.type == 6 && item.json.answer2) {
  3472. let _cjson = await this.getCourse(item.json.answer2);
  3473. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${_cjson ? _cjson.title : ""
  3474. }</div>`;
  3475. _test += _option;
  3476. } else if (item.type == 7 && item.json.answer2) {
  3477. let _score = this.getScore2(item.json);
  3478. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3479. _test += _option;
  3480. } else if (item.type == 8 && item.json.answer2) {
  3481. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3482. _test += _option;
  3483. } else if (
  3484. item.type == 11 &&
  3485. item.json.answer2 &&
  3486. item.json.answer2.length
  3487. ) {
  3488. let _answer = item.json.answer2;
  3489. _answer.length ? (courseCount11 = courseCount11.concat(_answer)) : "";
  3490. _json[ja].json.courseId = _answer ? _answer : [];
  3491. let params = [
  3492. {
  3493. cid: _answer.length ? _answer.join(",") : "",
  3494. },
  3495. ];
  3496. let data = await this.ajax.post(
  3497. this.$store.state.api + "getCourseInfoTestAll2",
  3498. params
  3499. );
  3500. let result = data.data[0];
  3501. let _title = [];
  3502. // this.chapters.find(i=>i.type==6).nameFilters = result.map(r=>{return{text:r.title,value:r.courseId}})
  3503. result.forEach((i) => {
  3504. _title.push(i.title);
  3505. });
  3506. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${_title.length ? _title.join(",") : ""
  3507. }</div>`;
  3508. _test += _option;
  3509. }
  3510. }
  3511. _test += `</div>`;
  3512. let _html = _title + _content + _detail + _test;
  3513. return this.exportToWordAll(
  3514. _data.username ? _data.username : "匿名" + "-" + _data.time,
  3515. _html
  3516. );
  3517. },
  3518. async exportToWordAll(a, html) {
  3519. // 将html文件中需要用到的数据挂载到store上
  3520. const content = `<!DOCTYPE html>
  3521. <html lang="en">
  3522. <head>
  3523. <meta charset="UTF-8">
  3524. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  3525. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3526. <title>${a}</title>
  3527. <style>
  3528. </style>
  3529. </head>
  3530. <body>
  3531. ${html}
  3532. </body>
  3533. </html>`;
  3534. // debugger
  3535. // 生成报告
  3536. const link = document.createElement("a");
  3537. let dname = a + ".doc";
  3538. // link.download = "报告.html"; // 文件名
  3539. link.download = dname; // 文件名
  3540. link.style.display = "none";
  3541. // 创建文件流
  3542. // 创建bolb实例时,内容一定要放在[]中
  3543. const blob = new Blob([content], {
  3544. type: "text/plain;charset='utf-8'",
  3545. });
  3546. return blob;
  3547. },
  3548. exportAllWord() {
  3549. if (this.selectWorkList.length <= 0)
  3550. return this.$message.info("请先选择需要导出的表单数据");
  3551. this.pdfLoading = true;
  3552. const _chapInfo = this.selectWorkList; //this.worksArray
  3553. let url = [];
  3554. for (let i = 0; i < _chapInfo.length; i++) {
  3555. url.push({
  3556. name: _chapInfo[i].name + "-" + _chapInfo[i].time,
  3557. blob: this.setWordHtmlAll(_chapInfo[i]),
  3558. });
  3559. }
  3560. console.log(url);
  3561. this.downLoadAll(url);
  3562. },
  3563. exportAllWord2() {
  3564. this.pdfLoading = true;
  3565. let params = {
  3566. cid: this.cid,
  3567. page: 1,
  3568. pageSize: 999,
  3569. cn: this.courseName,
  3570. };
  3571. this.ajax
  3572. .get(this.$store.state.api + "getTestWorksPage3", params)
  3573. .then((res) => {
  3574. const _chapInfo = res.data[0];
  3575. let url = [];
  3576. for (let i = 0; i < _chapInfo.length; i++) {
  3577. url.push({
  3578. name: _chapInfo[i].username + "-" + _chapInfo[i].time,
  3579. blob: this.setWordHtmlAll2(_chapInfo[i]),
  3580. });
  3581. }
  3582. console.log(url);
  3583. this.downLoadAll(url);
  3584. })
  3585. .catch((err) => {
  3586. console.error(err);
  3587. });
  3588. },
  3589. downLoadAll(url) {
  3590. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  3591. const zip = new JSZip();
  3592. const cache = {};
  3593. data.forEach((item) => {
  3594. // 下载文件, 并存成ArrayBuffer对象
  3595. const file_name = item.name; // 获取文件名
  3596. zip.file(file_name + ".doc", item.blob, { binary: true }); // 逐个添加文件
  3597. cache[file_name] = item.blob;
  3598. });
  3599. zip.generateAsync({ type: "blob" }).then((content) => {
  3600. // 生成二进制流
  3601. FileSaver.saveAs(content, this.testJson.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  3602. setTimeout(() => {
  3603. this.pdfLoading = false;
  3604. }, 2000);
  3605. });
  3606. },
  3607. handleFilterChange() {
  3608. console.log(this.$refs.table.store.states.data);
  3609. },
  3610. exportExcel() {
  3611. let res = this.$refs.table.store.states.data;
  3612. if (!res.length) {
  3613. this.$message.error("无导出数据");
  3614. return;
  3615. }
  3616. this.isLoading = true;
  3617. let chapters = this.chapters;
  3618. var array = [];
  3619. for (var i = 0; i < res.length; i++) {
  3620. var _json = {};
  3621. _json["序号"] = i + 1;
  3622. _json["提交人"] = res[i].name ? res[i].name : "匿名";
  3623. _json["提交时间"] = res[i].time;
  3624. for (var j = 0; j < chapters.length; j++) {
  3625. _json[j + 1 + "." + chapters[j].json.title] = "";
  3626. if (res[i].array[j].type == 1 && res[i].array[j].json.answer2) {
  3627. let a = [];
  3628. for (
  3629. var answer2 = 0;
  3630. answer2 < res[i].array[j].json.answer2.length;
  3631. answer2++
  3632. ) {
  3633. a.push(
  3634. res[i].array[j].json.array[
  3635. res[i].array[j].json.answer2[answer2]
  3636. ].option
  3637. );
  3638. }
  3639. _json[j + 1 + "." + chapters[j].json.title] = a.join("、");
  3640. } else if (
  3641. res[i].array[j].type == 3 &&
  3642. res[i].array[j].json.answer2
  3643. ) {
  3644. _json[j + 1 + "." + chapters[j].json.title] =
  3645. res[i].array[j].json.answer2;
  3646. } else if (res[i].array[j].type == 5 && res[i].array[j].json.file) {
  3647. let files = [];
  3648. for (
  3649. let file = 0;
  3650. file < res[i].array[j].json.file.length;
  3651. file++
  3652. ) {
  3653. let check = res[i].array[j].json.file[file];
  3654. files.push(file + 1 + "." + check.name + "----" + check.url);
  3655. }
  3656. _json[j + 1 + "." + chapters[j].json.title] = files.join("\n");
  3657. } else if (
  3658. res[i].array[j].type == 6 &&
  3659. res[i].array[j].json.answer2
  3660. ) {
  3661. _json[j + 1 + "." + chapters[j].json.title] =
  3662. res[i].array[j].json.answer2;
  3663. } else if (
  3664. res[i].array[j].type == 7 &&
  3665. res[i].array[j].json.answer2
  3666. ) {
  3667. let _score = this.getScore2(res[i].array[j].json);
  3668. _json[j + 1 + "." + chapters[j].json.title] = _score;
  3669. } else if (
  3670. res[i].array[j].type == 8 &&
  3671. res[i].array[j].json.answer2
  3672. ) {
  3673. _json[j + 1 + "." + chapters[j].json.title] =
  3674. res[i].array[j].json.answer2;
  3675. } else if (
  3676. res[i].array[j].type == 11 &&
  3677. res[i].array[j].json.answer2
  3678. ) {
  3679. _json[j + 1 + "." + chapters[j].json.title] =
  3680. res[i].array[j].json.answer2;
  3681. }
  3682. }
  3683. array.push(_json);
  3684. }
  3685. let widthJson = [];
  3686. let widthArray = Object.keys(array[0]);
  3687. for (let i = 0; i < widthArray.length; i++) {
  3688. if (i == 0) {
  3689. widthJson.push({ wch: 5 });
  3690. } else {
  3691. widthJson.push({ wch: 30 });
  3692. }
  3693. }
  3694. const workbook = XLSX.utils.book_new(); //创建一个新的工作簿对象
  3695. let ws = XLSX.utils.json_to_sheet(array); //将json对象数组转化成工作表
  3696. ws["!cols"] = widthJson;
  3697. const styleObj = {
  3698. alignment: {
  3699. horizontal: "center",
  3700. vertical: "center", // 设置垂直居中
  3701. },
  3702. }; // 设置居中对齐和加粗样式
  3703. for (let cell in ws) {
  3704. if (!cell[0].startsWith("!")) {
  3705. ws[cell]["s"] = styleObj;
  3706. }
  3707. }
  3708. XLSX.utils.book_append_sheet(workbook, ws, "sheet1"); //把sheet添加到workbook里,第三个参数是sheet名
  3709. XLSX.writeFile(workbook, this.testJson.title + ".xlsx");
  3710. this.isLoading = false;
  3711. this.$message({
  3712. message: "导出成功",
  3713. type: "success",
  3714. });
  3715. },
  3716. async getCourse(id) {
  3717. let params = {
  3718. cid: id,
  3719. };
  3720. let res = await this.ajax.get(
  3721. this.$store.state.api + "getCourseInfoTest",
  3722. params
  3723. );
  3724. return res.data[0][0];
  3725. },
  3726. getScore2(item) {
  3727. let array = [];
  3728. for (var i = parseInt(item.small); i <= parseInt(item.big); i++) {
  3729. array.push(i);
  3730. }
  3731. return item.answer2 ? array[item.answer2] : "";
  3732. },
  3733. checkScreenSize() {
  3734. this.screenWidth = window.innerWidth;
  3735. this.isDesktop = this.screenWidth > 750; // 你可以根据需要调整这个阈值
  3736. },
  3737. downloadFileType5(fileData, title = "附件", index) {
  3738. this.fileLoading[index].bool = true;
  3739. this.fileLoading[index].count = 0;
  3740. this.fileLoading[index].load = 0;
  3741. this.fileLoading[index].progress = 0;
  3742. let data = fileData;
  3743. const zip = new JSZip();
  3744. let downFileArray = [];
  3745. let uniqueArr = data.filter(
  3746. (v, i, a) => a.map((mb) => mb.userid).indexOf(v.userid) == i
  3747. );
  3748. uniqueArr.forEach((i) => {
  3749. downFileArray.push({
  3750. userid: i.userid,
  3751. username: i.username ? i.username : "匿名",
  3752. urlList: data.filter((d) => d.userid == i.userid).map((m) => m),
  3753. });
  3754. });
  3755. let promises = [];
  3756. console.log("downFileArray", downFileArray);
  3757. downFileArray.forEach((e) => {
  3758. this.fileLoading[index].count += e.urlList.length;
  3759. });
  3760. if (downFileArray.length == 1) {
  3761. //只有一位老师的情况
  3762. if (downFileArray[0].urlList.length > 1) {
  3763. //多个文件的情况
  3764. const folder = zip.folder(`${downFileArray[0].username}`);
  3765. downFileArray[0].urlList.forEach((i) => {
  3766. const promise = getFile(i.url).then((data) => {
  3767. if (data.data != 1) {
  3768. // 下载文件, 并存成ArrayBuffer对象
  3769. const file_name = i.name; // 获取文件名
  3770. folder.file(file_name, data.data, { binary: true }); // 逐个添加文件
  3771. }
  3772. this.fileLoading[index].load += 1;
  3773. this.fileLoading[index].progress = parseInt(
  3774. (this.fileLoading[index].load / this.fileLoading[index].count) *
  3775. 100
  3776. );
  3777. if (
  3778. this.fileLoading[index].load == this.fileLoading[index].count
  3779. ) {
  3780. this.fileLoading[index].bool = false;
  3781. }
  3782. });
  3783. promises.push(promise);
  3784. });
  3785. } else {
  3786. //只有一个文件的情况
  3787. promises.push(
  3788. getFile(downFileArray[0].urlList[0].url).then((data) => {
  3789. if (data.data != 1) {
  3790. // 下载文件, 并存成ArrayBuffer对象
  3791. const file_name = `${downFileArray[0].username}-${downFileArray[0].urlList[0].name}`; // 获取文件名
  3792. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  3793. }
  3794. this.fileLoading[index].load += 1;
  3795. this.fileLoading[index].progress = parseInt(
  3796. (this.fileLoading[index].load / this.fileLoading[index].count) *
  3797. 100
  3798. );
  3799. if (
  3800. this.fileLoading[index].load == this.fileLoading[index].count
  3801. ) {
  3802. this.fileLoading[index].bool = false;
  3803. }
  3804. })
  3805. );
  3806. }
  3807. } else if (downFileArray.length > 1) {
  3808. //有多位老师的情况
  3809. downFileArray.forEach((i) => {
  3810. if (i.urlList.length == 1) {
  3811. //只有一个文件的情况
  3812. promises.push(
  3813. getFile(i.urlList[0].url).then((data) => {
  3814. if (data.data != 1) {
  3815. // 下载文件, 并存成ArrayBuffer对象
  3816. const file_name = `${i.username ? i.username : "匿名"}-${i.urlList[0].name
  3817. }`; // 获取文件名
  3818. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  3819. }
  3820. this.fileLoading[index].load += 1;
  3821. this.fileLoading[index].progress = parseInt(
  3822. (this.fileLoading[index].load /
  3823. this.fileLoading[index].count) *
  3824. 100
  3825. );
  3826. if (
  3827. this.fileLoading[index].load == this.fileLoading[index].count
  3828. ) {
  3829. this.fileLoading[index].bool = false;
  3830. }
  3831. })
  3832. );
  3833. } else if (i.urlList.length > 1) {
  3834. //有多个文件的
  3835. const folder = zip.folder(`${i.username ? i.username : "匿名"}`);
  3836. i.urlList.forEach((ui) => {
  3837. const promise = getFile(ui.url).then((data) => {
  3838. if (data.data != 1) {
  3839. // 下载文件, 并存成ArrayBuffer对象
  3840. const file_name = ui.name; // 获取文件名
  3841. folder.file(file_name, data.data, { binary: true }); // 逐个添加文件
  3842. }
  3843. this.fileLoading[index].load += 1;
  3844. this.fileLoading[index].progress = parseInt(
  3845. (this.fileLoading[index].load /
  3846. this.fileLoading[index].count) *
  3847. 100
  3848. );
  3849. if (
  3850. this.fileLoading[index].load == this.fileLoading[index].count
  3851. ) {
  3852. this.fileLoading[index].bool = false;
  3853. }
  3854. });
  3855. promises.push(promise);
  3856. });
  3857. }
  3858. });
  3859. }
  3860. Promise.all(promises).then(() => {
  3861. console.log("开始下载")
  3862. this.fileLoading[index].bool = true;
  3863. zip.generateAsync({ type: "blob" }).then((content) => {
  3864. // 生成二进制流
  3865. FileSaver.saveAs(content, `${this.testJson.title}-${title}.zip`); // 利用file-saver保存文件 自定义文件名
  3866. this.fileLoading[index].bool = false;
  3867. });
  3868. });
  3869. },
  3870. getUserInfo() {
  3871. let params = {
  3872. uid: this.peopleId,
  3873. };
  3874. this.ajax
  3875. .get(this.$store.state.api + "selectTestUser", params)
  3876. .then((res) => {
  3877. console.log("111111111111111111111", res.data[0][0]);
  3878. // 用于存储归类后的数据的对象
  3879. // this.checkDataType(2)
  3880. this.stype = 2;
  3881. this.courseName = res.data[0][0].name;
  3882. this.searchCourse();
  3883. })
  3884. .catch((err) => {
  3885. console.error(err);
  3886. });
  3887. },
  3888. setWordTemplate(item) {
  3889. this.$refs.docxTemplateDialogRef.open({
  3890. fileData: this.testJson.cover ? JSON.parse(this.testJson.cover) : null,
  3891. testJson: this.testJson,
  3892. courseId: this.testJson.courseId,
  3893. formData: [item],
  3894. }); //这里可以传数据
  3895. },
  3896. changeCover(data) {
  3897. this.testJson.cover = data;
  3898. },
  3899. exportWordData() {
  3900. if (this.selectWorkList.length <= 0)
  3901. return this.$message.info("请先选择需要导出的表单数据");
  3902. this.$refs.docxTemplateDialogRef.open({
  3903. fileData: this.testJson.cover ? JSON.parse(this.testJson.cover) : null,
  3904. testJson: this.testJson,
  3905. courseId: this.testJson.courseId,
  3906. formData: this.selectWorkList,
  3907. }); //这里可以传数据this.worksArray
  3908. },
  3909. handleSelectionChange(value) {
  3910. this.selectWorkList = value;
  3911. },
  3912. tableDataPickerChange() {
  3913. console.log(this.tableDatePicker)
  3914. let _copyData = JSON.parse(JSON.stringify(this.worksArray));
  3915. this.tableDatePicker.forEach((i, index) => {
  3916. /*[null,["2024-12-05T00:00:00.000","2025-01-12T00:00:00.000"],["2024-12-04T00:00:00.000","2025-01-24T00:00:00.000"]] */
  3917. if (i && i.length > 0) {
  3918. let _startDate = new Date(i[0]);
  3919. let _endDate = new Date(i[1]);
  3920. _copyData = _copyData.filter((f) => {
  3921. console.log(" f.array[index].json.answer2", f.array[index].json.answer2)
  3922. let _answerData = f.array[index].json.answer2 || ""
  3923. let _answer = _answerData.replace(/日/g, "").replace(/年|月/g, "-");
  3924. let _answerDate = new Date(_answer);
  3925. return _answerDate >= _startDate && _answerDate <= _endDate;
  3926. });
  3927. }
  3928. });
  3929. this.tableWorksArray = _copyData;
  3930. this.$forceUpdate()
  3931. },
  3932. submissionTimePickerChange() {
  3933. const picker = this.submissionTimePicker;
  3934. // 未选择时间范围时,直接使用原始数据副本
  3935. if (!picker || !picker.length) {
  3936. this.tableWorksArray = [...this.worksArray];
  3937. this.$forceUpdate();
  3938. return;
  3939. }
  3940. // 提前创建起止日期对象,避免在 filter 回调中重复构造
  3941. const startDate = new Date(picker[0]);
  3942. const endDate = new Date(picker[1]);
  3943. console.log("startDate",startDate)
  3944. console.log("endDate",endDate)
  3945. // 将中文时间格式(如 "2024年1月1日")转为标准格式再解析
  3946. const parseSubmissionTime = (timeStr) =>
  3947. new Date(timeStr.replace(/年|月/g, "-").replace(/日/g, ""));
  3948. this.tableWorksArray = this.worksArray.filter((item) => {
  3949. const itemDate = parseSubmissionTime(item.time);
  3950. return itemDate >= startDate && itemDate <= endDate;
  3951. });
  3952. this.$forceUpdate();
  3953. },
  3954. textPagingChange(event, item, index) {
  3955. this.testArray[index].nowPage = event;
  3956. let _nowPage = this.testArray[index].nowPage;
  3957. let _limit = this.testArray[index].limit;
  3958. this.testArray[index].showArray = this.testArray[index].array.slice(((_nowPage == 0 ? 1 : _nowPage) - 1) * _limit, ((_nowPage == 0 ? 1 : _nowPage) - 1) * _limit + _limit);
  3959. },
  3960. getWordCloutData(item, index) {
  3961. console.log(item, index);
  3962. this.testArray[index].loadingWordCloud = true;
  3963. const _msg = `NOTICE
  3964. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  3965. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  3966. Instruction: Based on the context, follow "Format example", write content.
  3967. ## 任务
  3968. 请基于以下表单文本,提炼出多个关键词,用于绘制词云图。请给出相应的关键词,关键词出现的频次。请确保输出的关键字准确反映表单文本的主要内容和主题。
  3969. ## 要求
  3970. 1. **提取关键词**:从提供的课堂实录文本中提取出多个最具代表性的关键字。关键词应该涵盖表单文本中的主要概念、重要术语和核心主题。尽量选择多样化的关键词,避免过于集中在某一个主题或概念上。
  3971. 2. **词频统计**:计算每个关键字在文本中出现的频率。
  3972. 3. **输出格式**:输出结果应包含每个关键字、对应的词频数量。
  3973. ## 输出格式
  3974. ### 输出格式
  3975. [
  3976. {"count":1,"name":"氯化钠"},
  3977. {"count":2,"name":"溶液"},
  3978. {"count":1,"name":"实验"},
  3979. {"count":3,"name":"质量分数"},
  3980. {"count":1,"name":"溶质"},
  3981. {"count":2,"name":"氢氧化钠"},
  3982. {"count":1,"name":"溶解度"},
  3983. {"count":4,"name":"饱和溶液"}
  3984. ]
  3985. 请仅仅输出表头,输出关键词和相应的内容,无需其它任何说明文字。
  3986. 冒号、逗号等符号均使用英文字符。
  3987. ### Format example
  3988. [
  3989. {"count":1,"name":"氯化钠"},
  3990. {"count":2,"name":"溶液"},
  3991. {"count":1,"name":"实验"},
  3992. {"count":3,"name":"质量分数"},
  3993. {"count":1,"name":"溶质"},
  3994. {"count":2,"name":"氢氧化钠"},
  3995. {"count":1,"name":"溶解度"},
  3996. {"count":4,"name":"饱和溶液"}
  3997. ]
  3998. ## 表单文本
  3999. ${JSON.stringify(item.array)}
  4000. `;
  4001. const _uuid = uuidv4();
  4002. let params = {
  4003. // model: "gpt-3.5-turbo",
  4004. temperature: 0,
  4005. max_tokens: 4096,
  4006. top_p: 1,
  4007. frequency_penalty: 0,
  4008. presence_penalty: 0,
  4009. messages: [{ role: "user", content: _msg }],
  4010. uid: _uuid,
  4011. mind_map_question: "",
  4012. stream: false,
  4013. model: "gpt-4o-2024-11-20",
  4014. };
  4015. this.ajax
  4016. .post("https://gpt4.cocorobo.cn/chat", params)
  4017. .then((res) => {
  4018. let _data = res.data.FunctionResponse.choices[0];
  4019. let _jsonData = _data.message.content;
  4020. _jsonData = _jsonData.replaceAll("```json", "").replaceAll("```", "");
  4021. let _result = JSON.parse(_jsonData);
  4022. this.testArray[index].wordCloutData = _result;
  4023. this.testArray[index].loadingWordCloud = false;
  4024. console.log(_result);
  4025. }).catch(e => {
  4026. console.log(e);
  4027. this.testArray[index].loadingWordCloud = false;
  4028. this.testArray[index].wordCloutData = null;
  4029. this.$message.error("生成词云图失败")
  4030. })
  4031. },
  4032. getExamineData() {
  4033. let params = {
  4034. uid: this.peopleId,
  4035. type: this.tType,
  4036. tid: this.examineId,
  4037. }
  4038. this.ajax.get(this.$store.state.api + "getTestExamineByUserId2", params).then(res => {
  4039. // this.examineData = res.data[0][0];
  4040. if (res.data[0].length > 0) {
  4041. this.examineData = res.data[0][0];
  4042. }
  4043. }).catch(e => {
  4044. console.log(e);
  4045. this.examineData = null;
  4046. })
  4047. },
  4048. //查看文件列表
  4049. checkFileListOpen(list) {
  4050. this.$refs.checkFileListDialogRef.open(list);
  4051. },
  4052. getClassSortTime() {
  4053. let params = {
  4054. pid: "11"
  4055. }
  4056. this.ajax.get(this.$store.state.api + "select_ClassByParentid", params).then(res => {
  4057. let _data = res.data[0];
  4058. if (_data.length > 0) {
  4059. _data.forEach(i => {
  4060. if (i.value) {
  4061. this.sortTime.push(JSON.parse(i.value))
  4062. }
  4063. })
  4064. }
  4065. }).catch(e => {
  4066. console.log(e);
  4067. })
  4068. },
  4069. reviewChange(row) {
  4070. console.log(row);
  4071. let params = [{
  4072. id: row.id,
  4073. isReview: row.isReview
  4074. }]
  4075. this.ajax.post(this.$store.state.api + "update_testCourseWorks_isReviewById", params).then(res => {
  4076. console.log(res);
  4077. }).catch(e => {
  4078. console.log(e);
  4079. })
  4080. // console.log(row);
  4081. // this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
  4082. // this.$forceUpdate()
  4083. },
  4084. //退回表单
  4085. returnTest(row) {
  4086. if (row.type == '1') return this.$message.info("该表单未提交")
  4087. if (row.type == '4') return this.$message.info("该表单已退回")
  4088. // this.$refs.returnTestDialogRef.open(row)
  4089. let params = [{
  4090. id: row.id,
  4091. type: "4"
  4092. }];
  4093. this.ajax.post(this.$store.state.api + "update_testCourseWorks_typeById", params).then(res => {
  4094. if (res.data == 1) {
  4095. this.reviewChangeFn(row.id)
  4096. this.getData();
  4097. // this.tableWorksArray = this.tableWorksArray.filter(i=>i.id!==row.id);
  4098. this.$message.success("表单退回成功");
  4099. }
  4100. }).catch(e => {
  4101. console.log(e);
  4102. })
  4103. },
  4104. reviewChangeFn(id) {
  4105. let params = [{
  4106. id: id,
  4107. isReview: 0
  4108. }]
  4109. this.ajax.post(this.$store.state.api + "update_testCourseWorks_isReviewById", params).then(res => {
  4110. console.log(res);
  4111. }).catch(e => {
  4112. console.log(e);
  4113. })
  4114. // console.log(row);
  4115. // this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
  4116. // this.$forceUpdate()
  4117. },
  4118. },
  4119. beforeDestroy() {
  4120. document.getElementsByTagName("html")[0].style.overflow = "";
  4121. window.removeEventListener("resize", this.checkScreenSize);
  4122. },
  4123. mounted() {
  4124. this.checkScreenSize();
  4125. window.addEventListener("resize", this.checkScreenSize);
  4126. document.getElementsByTagName("html")[0].scrollTop = 0;
  4127. document.getElementsByTagName("html")[0].style.overflow = "hidden";
  4128. this.$nextTick(function () {
  4129. if (this.peopleId) {
  4130. this.getUserInfo();
  4131. } else {
  4132. this.getData();
  4133. }
  4134. if (this.examineId) {
  4135. this.getExamineData();
  4136. }
  4137. // this.getClass2()
  4138. this.changeHeight();
  4139. });
  4140. this.getClassSortTime();
  4141. },
  4142. };
  4143. </script>
  4144. <style scoped>
  4145. .pb_content {
  4146. height: 100% !important;
  4147. /* margin: 0 20px 0 20px; */
  4148. }
  4149. .cutBtnBlockCss {
  4150. width: 100%;
  4151. display: flex;
  4152. justify-content: end;
  4153. }
  4154. .cutBtnCss {
  4155. width: 68px;
  4156. height: 27px;
  4157. font-size: 14px;
  4158. border-radius: 5px;
  4159. display: flex;
  4160. color: rgba(54, 129, 252, 1);
  4161. justify-content: center;
  4162. align-items: center;
  4163. margin-top: 10px;
  4164. border: 1px rgba(54, 129, 252, 1) solid;
  4165. }
  4166. .isDesktopRight {
  4167. width: 100% !important;
  4168. margin: 0 !important;
  4169. height: 300px !important;
  4170. border: none !important;
  4171. }
  4172. .isDTitle2JsonTit {
  4173. width: 130px;
  4174. color: rgba(0, 0, 0, 0.9);
  4175. overflow: hidden;
  4176. white-space: nowrap;
  4177. text-overflow: ellipsis;
  4178. }
  4179. .IsDAnswer {
  4180. margin: 20px 0 30px;
  4181. color: rgba(0, 0, 0, 0.6);
  4182. }
  4183. .CutCss {
  4184. height: 60px;
  4185. line-height: 60px;
  4186. }
  4187. .topicTitCss {
  4188. color: rgba(0, 0, 0, 0.9);
  4189. font-weight: 600;
  4190. margin-right: 5px;
  4191. }
  4192. .IsDFile {
  4193. width: 150px;
  4194. height: 120px;
  4195. border-radius: 10px;
  4196. position: relative;
  4197. display: flex;
  4198. flex-direction: column;
  4199. overflow: hidden;
  4200. margin-bottom: 5px;
  4201. }
  4202. .IsDownload {
  4203. position: absolute;
  4204. width: 30px;
  4205. top: 5px;
  4206. right: 5px;
  4207. }
  4208. .IsDImg {
  4209. width: 100%;
  4210. height: 70px;
  4211. flex: 1;
  4212. }
  4213. .pb_content_body {
  4214. width: 100% !important;
  4215. height: 100%;
  4216. }
  4217. .pb_content_body>.right {
  4218. height: 100%;
  4219. width: 100%;
  4220. display: flex;
  4221. overflow: hidden;
  4222. flex-direction: column;
  4223. }
  4224. .basic_box {
  4225. margin: 0 auto;
  4226. position: relative;
  4227. padding: 0 20px 0 20px;
  4228. }
  4229. .courseTop {
  4230. display: flex;
  4231. flex-direction: row;
  4232. justify-content: space-between;
  4233. align-items: center;
  4234. width: calc(100% - 40px);
  4235. margin: 0 auto;
  4236. padding: 10px 0;
  4237. }
  4238. .stepsNav {
  4239. display: flex;
  4240. flex-direction: row;
  4241. justify-content: flex-start;
  4242. align-items: center;
  4243. }
  4244. .step_box {
  4245. width: calc(100% - 40px);
  4246. margin: 0 auto;
  4247. height: calc(100% - 50px);
  4248. overflow: auto;
  4249. background: #ffff;
  4250. border-radius: 5px;
  4251. }
  4252. .el-table>>>.even_row {
  4253. background-color: #f1f1f1 !important;
  4254. }
  4255. .student_page {
  4256. margin-top: 10px;
  4257. }
  4258. .test_title {
  4259. display: flex;
  4260. padding: 15px 15px;
  4261. width: 100%;
  4262. box-sizing: border-box;
  4263. justify-content: space-between;
  4264. align-items: center;
  4265. flex-wrap: wrap;
  4266. margin-bottom: 10px;
  4267. }
  4268. .test_title .left {
  4269. max-width: 100%;
  4270. margin-top: 10px;
  4271. }
  4272. .test_title .left .title {
  4273. width: 100%;
  4274. font-size: 24px;
  4275. font-weight: 700;
  4276. overflow: hidden;
  4277. text-overflow: ellipsis;
  4278. white-space: nowrap;
  4279. }
  4280. .test_title .left .info {
  4281. display: flex;
  4282. margin-top: 15px;
  4283. }
  4284. .test_title .left .info .info_box {
  4285. font-size: 14px;
  4286. }
  4287. .test_title .left .info .info_box+.info_box {
  4288. margin-left: 20px;
  4289. padding-left: 20px;
  4290. border-left: 1px solid #e7e7e7;
  4291. }
  4292. .test_title .left .info .info_box span:nth-child(1) {
  4293. color: #00000099;
  4294. }
  4295. /* .test_title .left .info .info_box span:nth-child(2) {
  4296. } */
  4297. .test_title .right {
  4298. display: flex;
  4299. align-items: center;
  4300. margin-top: 10px;
  4301. max-width: 100%;
  4302. }
  4303. .test_title .right .data_box {
  4304. margin-right: 15px;
  4305. width: 150px;
  4306. border: 1px solid #e7e7e7;
  4307. border-radius: 5px;
  4308. padding: 0 10px;
  4309. height: 57px;
  4310. font-size: 14px;
  4311. color: #00000099;
  4312. display: flex;
  4313. justify-content: space-between;
  4314. align-items: center;
  4315. }
  4316. /* .test_title .right .data_box span:nth-child(1) {
  4317. }
  4318. .test_title .right .data_box span:nth-child(2) {
  4319. } */
  4320. .test_title .right .data_box span:nth-child(2) .big {
  4321. font-size: 22px;
  4322. }
  4323. .test_title .right .btn_box {
  4324. display: flex;
  4325. flex-direction: column;
  4326. width: 57px;
  4327. height: 57px;
  4328. background: #3681fc;
  4329. border-radius: 5px;
  4330. font-size: 14px;
  4331. cursor: pointer;
  4332. align-items: center;
  4333. justify-content: center;
  4334. color: #fff;
  4335. }
  4336. .test_title .right .btn_box span:nth-child(1) {
  4337. display: block;
  4338. width: 12px;
  4339. height: 14px;
  4340. margin-bottom: 5px;
  4341. background-image: url("../../../../assets/icon/test/icon_share.png");
  4342. background-size: 100% 100%;
  4343. }
  4344. /* .test_title .right .btn_box span:nth-child(2) {
  4345. } */
  4346. .search_nav {
  4347. border-bottom: 1px solid #e7e7e7;
  4348. width: 100%;
  4349. box-sizing: border-box;
  4350. padding: 0 15px 10px;
  4351. display: flex;
  4352. align-items: flex-end;
  4353. height: 50px;
  4354. }
  4355. .search_nav>.right {
  4356. display: flex;
  4357. align-items: center;
  4358. }
  4359. .search_nav>.right>span {
  4360. height: 24px;
  4361. font-size: 14px;
  4362. color: #000;
  4363. cursor: pointer;
  4364. position: relative;
  4365. }
  4366. .search_nav>.isDesktopRightCut {
  4367. display: flex;
  4368. justify-content: space-between;
  4369. width: 60%;
  4370. }
  4371. .search_nav>.right>span+span {
  4372. margin-left: 35px;
  4373. }
  4374. .search_nav>.right>span.active {
  4375. color: #3681fc;
  4376. font-weight: 600;
  4377. }
  4378. .search_nav>.right>span.active::before {
  4379. content: "";
  4380. position: absolute;
  4381. bottom: -10px;
  4382. width: 15px;
  4383. height: 3px;
  4384. background: #3681fc;
  4385. left: 50%;
  4386. transform: translateX(-50%);
  4387. }
  4388. .search_nav>.left {
  4389. display: flex;
  4390. align-items: center;
  4391. margin-left: auto;
  4392. }
  4393. .search_nav>.right>span.active2 {
  4394. color: #3681fc;
  4395. font-weight: 600;
  4396. }
  4397. .search_nav>.right>span.active2::before {
  4398. content: "";
  4399. position: absolute;
  4400. bottom: -10px;
  4401. width: 100%;
  4402. height: 3px;
  4403. background: #3681fc;
  4404. left: 50%;
  4405. transform: translateX(-50%);
  4406. }
  4407. .student_input>>>.el-input__inner {
  4408. height: 40px;
  4409. width: 190px;
  4410. font-size: 13px;
  4411. padding: 0 35px 0 10px;
  4412. }
  4413. .serach_icon {
  4414. position: absolute;
  4415. right: 12px;
  4416. top: 50%;
  4417. transform: translateY(-50%);
  4418. width: 13px;
  4419. height: 13px;
  4420. background: url("../../../../assets/icon/test/test_search.png") no-repeat;
  4421. background-size: 100% 100%;
  4422. cursor: pointer;
  4423. }
  4424. .title_content {
  4425. padding-bottom: 10px;
  4426. }
  4427. .title_content>.title_box {
  4428. width: calc(100% - 48px);
  4429. margin: 20px auto 0;
  4430. }
  4431. .title_content>.title_box>.title {
  4432. font-size: 18px;
  4433. display: flex;
  4434. min-height: 35px;
  4435. white-space: pre-line;
  4436. position: relative;
  4437. }
  4438. .title_content>.title_box>.title>.test_icon {
  4439. min-width: 20px;
  4440. height: 20px;
  4441. }
  4442. .title_content>.title_box>.detail {
  4443. font-size: 14px;
  4444. color: #00000099;
  4445. margin-top: 8px;
  4446. white-space: pre-line;
  4447. }
  4448. .title_content>.title_box>.content1 {
  4449. display: flex;
  4450. width: 100%;
  4451. margin-top: 10px;
  4452. }
  4453. .title_content>.title_box>.content1>>>.el-progress__text {
  4454. color: #3681fc;
  4455. min-width: 55px;
  4456. font-size: 16px !important;
  4457. }
  4458. .title_content>.title_box>.content1>.left {
  4459. width: calc(100% - 620px);
  4460. border: 1px solid #e7e7e7;
  4461. }
  4462. .title_content>.title_box>.content1>.left>div+div {
  4463. border-top: 1px solid #e7e7e7;
  4464. }
  4465. .title_content>.title_box>.content1>.left>.title,
  4466. .title_content>.title_box>.content1>.left>.data {
  4467. display: flex;
  4468. height: 40px;
  4469. align-items: center;
  4470. width: 100%;
  4471. padding: 0 15px;
  4472. box-sizing: border-box;
  4473. line-height: 16px;
  4474. }
  4475. .title_content>.title_box>.content1>.left>.title>span,
  4476. .title_content>.title_box>.content1>.left>.data>span {
  4477. overflow: hidden;
  4478. text-overflow: ellipsis;
  4479. white-space: nowrap;
  4480. }
  4481. .title_content>.title_box>.content1>.left>.title>span:nth-child(1),
  4482. .title_content>.title_box>.content1>.left>.data>span:nth-child(1) {
  4483. width: calc(100% - 320px - 110px);
  4484. }
  4485. .title_content>.title_box>.content1>.left>.title>span:nth-child(2),
  4486. .title_content>.title_box>.content1>.left>.data>span:nth-child(2) {
  4487. width: 110px;
  4488. }
  4489. .title_content>.title_box>.content1>.left>.title>span:nth-child(3),
  4490. .title_content>.title_box>.content1>.left>.data>span:nth-child(3) {
  4491. width: 320px;
  4492. }
  4493. .isDesktopTitle {
  4494. display: flex;
  4495. justify-content: space-around;
  4496. }
  4497. .isDesktopTitle>div {
  4498. width: 60px;
  4499. height: 30px;
  4500. line-height: 30px;
  4501. overflow: hidden;
  4502. white-space: nowrap;
  4503. text-overflow: ellipsis;
  4504. }
  4505. /* .isDesktopTitle:nth-child(1){
  4506. width: 60px;
  4507. }
  4508. .isDesktopTitle:nth-child(2){
  4509. width: 60px;
  4510. }
  4511. .isDesktopTitle:nth-child(3){
  4512. flex: 1;
  4513. } */
  4514. .title_content>.title_box>.content1>.left>.title {
  4515. font-weight: 700;
  4516. background: #f9fafb;
  4517. }
  4518. .title_content>.title_box>.content1>.right {
  4519. width: 600px;
  4520. margin-left: 20px;
  4521. border: 1px solid #e7e7e7;
  4522. min-height: 300px;
  4523. box-sizing: border-box;
  4524. }
  4525. .title_content>.title_box>.content2 {
  4526. display: flex;
  4527. width: 100%;
  4528. margin-top: 10px;
  4529. }
  4530. .title_content>.title_box>.content2>.left {
  4531. width: calc(100% - 620px);
  4532. border: 1px solid #e7e7e7;
  4533. box-sizing: border-box;
  4534. }
  4535. .title_content>.title_box>.content2>.left>div+div {
  4536. border-top: 1px solid #e7e7e7;
  4537. }
  4538. .title_content>.title_box>.content2>.left>.title,
  4539. .title_content>.title_box>.content2>.left>.data {
  4540. display: flex;
  4541. height: 40px;
  4542. align-items: center;
  4543. width: 100%;
  4544. padding: 0 15px;
  4545. box-sizing: border-box;
  4546. line-height: 16px;
  4547. }
  4548. .title_content>.title_box>.content2>.left>.title>span,
  4549. .title_content>.title_box>.content2>.left>.data>span {
  4550. overflow: hidden;
  4551. text-overflow: ellipsis;
  4552. white-space: nowrap;
  4553. }
  4554. .title_content>.title_box>.content2>.left>.title>span:nth-child(1),
  4555. .title_content>.title_box>.content2>.left>.data>span:nth-child(1) {
  4556. width: 55px;
  4557. }
  4558. .title_content>.title_box>.content2>.left>.title>span:nth-child(2),
  4559. .title_content>.title_box>.content2>.left>.data>span:nth-child(2) {
  4560. width: 110px;
  4561. }
  4562. .title_content>.title_box>.content2>.left>.title>span:nth-child(3),
  4563. .title_content>.title_box>.content2>.left>.data>span:nth-child(3) {
  4564. max-width: calc(100% - 110px - 55px);
  4565. }
  4566. .title_content>.title_box>.content2>.left>.title {
  4567. font-weight: 700;
  4568. background: #f9fafb;
  4569. }
  4570. .title_content>.title_box>.content2>.right {
  4571. width: 600px;
  4572. margin-left: 20px;
  4573. border: 1px solid #e7e7e7;
  4574. box-sizing: border-box;
  4575. }
  4576. .title_content>.title_box>.content2>.right>>>.wordCloud {
  4577. height: auto;
  4578. min-height: 300px;
  4579. }
  4580. .title_content>.title_box>.content3 {
  4581. display: flex;
  4582. width: 100%;
  4583. overflow: auto;
  4584. }
  4585. .title_content>.title_box>.content3>.file {
  4586. min-width: 200px;
  4587. width: 200px;
  4588. height: 140px;
  4589. margin: 10px 10px 10px 0px;
  4590. border-radius: 15px;
  4591. box-shadow: rgb(223, 218, 218) 0px 0px 6px 1px;
  4592. overflow: hidden;
  4593. margin-right: 15px;
  4594. position: relative;
  4595. display: flex;
  4596. flex-direction: column;
  4597. }
  4598. .title_content>.title_box>.content3>.file>.img {
  4599. width: 100%;
  4600. height: calc(100% - 35px);
  4601. object-fit: cover;
  4602. cursor: pointer;
  4603. }
  4604. .title_content>.title_box>.content3>.file>.del {
  4605. position: absolute;
  4606. width: 25px;
  4607. top: 10px;
  4608. right: 10px;
  4609. cursor: pointer;
  4610. }
  4611. .title_content>.title_box>.content3>.file>.download {
  4612. position: absolute;
  4613. width: 25px;
  4614. top: 10px;
  4615. right: 35px;
  4616. cursor: pointer;
  4617. opacity: 0.8;
  4618. }
  4619. .title_content>.title_box>.content3>.file>.name {
  4620. height: 35px;
  4621. width: 100%;
  4622. background: #f9f9f9;
  4623. display: flex;
  4624. align-items: center;
  4625. padding: 0 10px;
  4626. box-sizing: border-box;
  4627. }
  4628. .title_content>.title_box>.content3>.file>.name>span {
  4629. display: block;
  4630. text-overflow: ellipsis;
  4631. max-width: 100%;
  4632. white-space: nowrap;
  4633. overflow: hidden;
  4634. }
  4635. .table_content {
  4636. /* width: calc(100% - 48px);
  4637. margin: 20px auto 0; */
  4638. padding: 20px 24px;
  4639. width: 100%;
  4640. box-sizing: border-box;
  4641. }
  4642. .table_content>>>.el-table td {
  4643. padding: 5px 0;
  4644. }
  4645. .isDesktopTable_content {
  4646. width: 100%;
  4647. }
  4648. .isDTitle {
  4649. display: flex;
  4650. justify-content: space-between;
  4651. }
  4652. .isDBri {
  4653. display: flex;
  4654. padding: 15px 0;
  4655. font-size: 14px;
  4656. color: rgba(0, 0, 0, 0.4);
  4657. flex-direction: column;
  4658. height: 80px;
  4659. justify-content: space-between;
  4660. }
  4661. .answer_type {
  4662. background: #f0f2f5;
  4663. padding: 5px 10px;
  4664. display: block;
  4665. border-radius: 3px;
  4666. margin: 5px;
  4667. }
  4668. .table_file {
  4669. max-height: 250px;
  4670. overflow-x: hidden;
  4671. }
  4672. .table_file>.file {
  4673. min-width: 100px;
  4674. width: 100px;
  4675. height: 70px;
  4676. margin: 10px 10px 10px 0px;
  4677. border-radius: 5px;
  4678. box-shadow: rgb(223, 218, 218) 0px 0px 6px 1px;
  4679. overflow: hidden;
  4680. margin-right: 15px;
  4681. position: relative;
  4682. display: flex;
  4683. flex-direction: column;
  4684. }
  4685. .table_file>.file>.img {
  4686. width: 100%;
  4687. height: calc(100% - 20px);
  4688. object-fit: cover;
  4689. cursor: pointer;
  4690. }
  4691. .table_file>.file>.del {
  4692. position: absolute;
  4693. width: 25px;
  4694. top: 10px;
  4695. right: 10px;
  4696. cursor: pointer;
  4697. }
  4698. .table_file>.file>.download {
  4699. position: absolute;
  4700. width: 25px;
  4701. top: 10px;
  4702. right: 35px;
  4703. cursor: pointer;
  4704. opacity: 0.8;
  4705. }
  4706. .table_file>.file>.name {
  4707. height: 20px;
  4708. width: 100%;
  4709. background: #f9f9f9;
  4710. display: flex;
  4711. align-items: center;
  4712. padding: 0 10px;
  4713. box-sizing: border-box;
  4714. font-size: 12px;
  4715. }
  4716. .table_file>.file>.name>span {
  4717. display: block;
  4718. text-overflow: ellipsis;
  4719. max-width: 100%;
  4720. white-space: nowrap;
  4721. overflow: hidden;
  4722. }
  4723. .btnA {
  4724. color: #fff;
  4725. background-color: #0061ff;
  4726. padding: 0 24px;
  4727. font-size: 14px;
  4728. min-width: 64px;
  4729. font-weight: 500;
  4730. border-radius: 4px;
  4731. box-sizing: border-box;
  4732. border: none;
  4733. cursor: pointer;
  4734. transition: all 0.2s ease-in-out;
  4735. height: 36px;
  4736. display: flex;
  4737. align-items: center;
  4738. justify-content: center;
  4739. line-height: 1;
  4740. margin-right: 10px;
  4741. position: relative;
  4742. }
  4743. .buttonBox {
  4744. position: absolute;
  4745. bottom: -0;
  4746. transform: translateY(100%);
  4747. background: #fff;
  4748. border-radius: 5px;
  4749. box-shadow: 0 0 3px 1px #e3e3e3;
  4750. width: 100%;
  4751. z-index: 999;
  4752. }
  4753. .buttonBox>div {
  4754. height: 40px;
  4755. line-height: 40px;
  4756. width: 100%;
  4757. text-align: center;
  4758. color: #000;
  4759. box-sizing: border-box;
  4760. }
  4761. .buttonBox>div+div {
  4762. border-top: 1px solid #e0e0e0;
  4763. }
  4764. .buttonBox>div:hover {
  4765. background: #f6f8ff;
  4766. }
  4767. .content4 {
  4768. width: 100%;
  4769. height: auto;
  4770. display: flex;
  4771. flex-wrap: nowrap;
  4772. overflow: auto;
  4773. }
  4774. .out_box {
  4775. display: flex;
  4776. flex-direction: column;
  4777. flex-wrap: nowrap;
  4778. /* width: 200px; */
  4779. min-width: 280px;
  4780. width: 280px;
  4781. background: #fff;
  4782. /* background-color: white; */
  4783. margin-right: 15px;
  4784. /* border: 1px solid #ccc; */
  4785. height: fit-content;
  4786. box-sizing: border-box;
  4787. border-radius: 0px 0px 5px 5px;
  4788. /* overflow: hidden; */
  4789. margin-bottom: 15px;
  4790. position: relative;
  4791. border-radius: 8px;
  4792. box-sizing: border-box;
  4793. overflow: hidden;
  4794. border: 1px solid #3682fc00;
  4795. cursor: pointer;
  4796. border: 1px solid #6a9ff5;
  4797. height: auto;
  4798. }
  4799. .out_boxActive {
  4800. box-sizing: border-box;
  4801. border: 3px solid #3681fc !important;
  4802. }
  4803. .out_box:hover {
  4804. border: 1px solid #3681fc;
  4805. }
  4806. .bottom_box {
  4807. width: 100%;
  4808. display: flex;
  4809. padding: 10px;
  4810. flex-direction: column;
  4811. box-sizing: border-box;
  4812. height: 121px;
  4813. flex-wrap: nowrap;
  4814. justify-content: space-evenly;
  4815. }
  4816. .bottom_box>div:nth-child(1) {
  4817. width: 100%;
  4818. /* overflow: hidden;
  4819. text-overflow: ellipsis;
  4820. white-space: nowrap;
  4821. font-weight: bold; */
  4822. display: flex;
  4823. align-items: center;
  4824. justify-content: space-between;
  4825. }
  4826. .bottom_box>div:nth-child(1)>span:nth-child(1) {
  4827. max-width: 100%;
  4828. overflow: hidden;
  4829. text-overflow: ellipsis;
  4830. white-space: nowrap;
  4831. font-weight: bold;
  4832. }
  4833. .bottom_box>div:nth-child(1)>span:nth-child(2) {
  4834. min-width: fit-content;
  4835. font-size: 14px;
  4836. color: #8c8c8c;
  4837. }
  4838. .tup {
  4839. width: 100%;
  4840. height: auto;
  4841. margin: 0 auto;
  4842. overflow: hidden;
  4843. display: flex;
  4844. flex-direction: column;
  4845. align-items: center;
  4846. padding: 10px;
  4847. box-sizing: border-box;
  4848. }
  4849. .tup>img {
  4850. width: 100%;
  4851. /* height: 100%; */
  4852. height: 150px;
  4853. /* object-fit: cover; */
  4854. object-fit: contain;
  4855. }
  4856. .kc_time {
  4857. margin-top: 8px;
  4858. font-size: 14px;
  4859. color: #717c8d;
  4860. }
  4861. .kc_time+.kc_time {
  4862. margin-top: 0;
  4863. }
  4864. .kc_t {
  4865. margin-top: 5px;
  4866. width: 100%;
  4867. white-space: nowrap;
  4868. overflow: hidden;
  4869. text-overflow: ellipsis;
  4870. display: flex;
  4871. align-items: center;
  4872. justify-content: space-between;
  4873. }
  4874. .kc_t>span:nth-child(1) {
  4875. max-width: 100%;
  4876. overflow: hidden;
  4877. text-overflow: ellipsis;
  4878. white-space: nowrap;
  4879. }
  4880. .kc_t>span:nth-child(2) {
  4881. min-width: fit-content;
  4882. font-size: 14px;
  4883. color: #8c8c8c;
  4884. }
  4885. .title_box>.title>.title_downBtn {
  4886. position: absolute;
  4887. right: 10px;
  4888. top: 0;
  4889. }
  4890. .fileLoadDiv>>>.el-dialog__header {
  4891. display: none;
  4892. }
  4893. .fileLoadDiv>>>.el-dialog__body {
  4894. display: flex;
  4895. justify-content: center;
  4896. }
  4897. .fileLoadDiv>>>.el-dialog {
  4898. margin-top: 60vh !important;
  4899. width: 200px !important;
  4900. height: 80px;
  4901. display: flex;
  4902. justify-content: center;
  4903. align-items: center;
  4904. border-radius: 15px;
  4905. }
  4906. .mask {
  4907. background-color: rgb(0 0 0 / 30%);
  4908. /* position: fixed; */
  4909. position: absolute;
  4910. top: 0;
  4911. left: 0;
  4912. width: 100%;
  4913. height: 100%;
  4914. z-index: 90;
  4915. display: flex;
  4916. align-items: center;
  4917. justify-content: center;
  4918. }
  4919. .progressBox {
  4920. width: 300px;
  4921. height: 150px;
  4922. background: #fff;
  4923. border-radius: 10px;
  4924. box-shadow: 0 0 6px 1px #bfbfbf;
  4925. display: flex;
  4926. align-items: center;
  4927. justify-content: center;
  4928. flex-direction: column;
  4929. position: relative;
  4930. color: #6c6c6c;
  4931. }
  4932. .progressBox>>>.el-progress-bar__outer {
  4933. background-color: #d1dfff !important;
  4934. }
  4935. .progressBox .lbox {
  4936. height: 50px;
  4937. font-size: 19px;
  4938. display: flex;
  4939. align-items: center;
  4940. color: #747474;
  4941. }
  4942. .progressBox .lbox img {
  4943. width: 40px;
  4944. margin-right: 20px;
  4945. }
  4946. .boxSticky {
  4947. position: sticky;
  4948. top: 0;
  4949. z-index: 999;
  4950. background: #fff;
  4951. }
  4952. .aiBoxRight {
  4953. height: calc(100% - 158px - 46px);
  4954. width: 500px;
  4955. margin: 0 auto;
  4956. position: fixed;
  4957. z-index: 999;
  4958. right: 30px;
  4959. bottom: 10px;
  4960. box-shadow: 0 0 5px 2px #00000045;
  4961. border-radius: 5px;
  4962. overflow: hidden;
  4963. }
  4964. .tableDatePicker {
  4965. width: 20px;
  4966. height: 20px;
  4967. margin-left: 5px;
  4968. }
  4969. .tableDatePicker>>>.el-date-editor {
  4970. width: 100% !important;
  4971. height: 100% !important;
  4972. padding: 0 !important;
  4973. cursor: pointer;
  4974. background: none;
  4975. border: none;
  4976. }
  4977. .tableDatePicker>>>.el-date-editor>i {
  4978. display: none;
  4979. }
  4980. .tableDatePicker>>>.el-date-editor>input {
  4981. display: none;
  4982. }
  4983. .tableDatePicker>>>.el-date-editor>span {
  4984. width: 100%;
  4985. height: 100%;
  4986. display: flex;
  4987. justify-content: center;
  4988. align-items: center;
  4989. color: #9095a7;
  4990. }
  4991. .tableDatePicker>>>.el-date-editor>.el-range__close-icon {
  4992. display: block;
  4993. position: relative;
  4994. top: -6px;
  4995. color: red;
  4996. }
  4997. .paging {
  4998. width: 100%;
  4999. height: 40px;
  5000. display: flex;
  5001. justify-content: flex-end;
  5002. align-items: center;
  5003. margin-top: auto;
  5004. }
  5005. .noWordCloud {
  5006. width: 100%;
  5007. height: 100%;
  5008. min-height: 300px;
  5009. display: flex;
  5010. justify-content: center;
  5011. align-items: center;
  5012. }
  5013. .noWordCloud>div {
  5014. display: flex;
  5015. align-items: center;
  5016. }
  5017. .noWordCloud>div>img {
  5018. width: 40px;
  5019. height: 40px;
  5020. margin-left: 5px;
  5021. }
  5022. .timePickerActive {
  5023. color: #409EFF;
  5024. }
  5025. .openCeBox {
  5026. width: 320px;
  5027. display: flex;
  5028. flex-direction: column;
  5029. gap: 10px;
  5030. font-size: 14px !important;
  5031. padding: 10px;
  5032. box-sizing: border-box;
  5033. position: relative;
  5034. }
  5035. .openCeBoxLoading {
  5036. position: absolute;
  5037. left: 0;
  5038. top: 0;
  5039. width: 100%;
  5040. height: 100%;
  5041. z-index: 10;
  5042. background: #fff;
  5043. opacity: .8;
  5044. display: flex;
  5045. align-items: center;
  5046. justify-content: center;
  5047. color: #000;
  5048. }
  5049. .TopTit {
  5050. font-family: PingFang SC;
  5051. font-weight: 600;
  5052. font-size: 16px;
  5053. line-height: 24px;
  5054. color: #000;
  5055. }
  5056. .Topkong {
  5057. font-family: PingFang SC;
  5058. font-weight: 400;
  5059. font-size: 12px;
  5060. color: #000;
  5061. display: flex;
  5062. align-items: center;
  5063. gap: 5px;
  5064. cursor: pointer;
  5065. }
  5066. .BtnOPC {
  5067. width: 50px;
  5068. height: 30px;
  5069. font-size: 14px;
  5070. display: flex;
  5071. justify-content: center;
  5072. align-items: center;
  5073. background: #E7E7E7;
  5074. }
  5075. .quoteBlock {
  5076. position: absolute;
  5077. right: 0;
  5078. width: 220px;
  5079. background: #fff;
  5080. border-radius: 10px;
  5081. color: #000;
  5082. z-index: 100001;
  5083. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  5084. /* 浅灰色阴影 */
  5085. border-radius: 5px;
  5086. overflow: hidden;
  5087. }
  5088. .quoteBlock>>>.el-input__inner {
  5089. border-radius: 0 !important;
  5090. border: none !important;
  5091. box-shadow: none !important;
  5092. resize: none !important;
  5093. border-bottom: 1px #DCDFE6 solid !important;
  5094. }
  5095. .quoteBlockCon {
  5096. padding: 10px 10px;
  5097. box-sizing: border-box;
  5098. display: flex;
  5099. flex-direction: column;
  5100. gap: 8px;
  5101. font-size: 14px;
  5102. height: 200px;
  5103. overflow: auto;
  5104. }
  5105. .quoteBlockCon>div {
  5106. height: 25px;
  5107. line-height: 25px;
  5108. cursor: pointer;
  5109. padding: 0 5px;
  5110. box-sizing: border-box;
  5111. border-radius: 5px;
  5112. }
  5113. .maskCss {
  5114. /* background: #000; */
  5115. position: fixed;
  5116. top: 0;
  5117. left: 0;
  5118. width: 100%;
  5119. height: 100%;
  5120. z-index: 10000;
  5121. opacity: .5;
  5122. }
  5123. .SPCE {
  5124. font-size: 12px;
  5125. background: #fff;
  5126. padding: 2px 5px;
  5127. box-sizing: border-box;
  5128. border-radius: 3px;
  5129. }
  5130. .selCss {
  5131. background: #e7e7e7;
  5132. color: #0061ff;
  5133. }
  5134. .proBar {
  5135. background: #dae0f0;
  5136. font-size: 14px;
  5137. font-weight: normal;
  5138. color: #6f93ea;
  5139. padding: 4px;
  5140. border-radius: 3px;
  5141. }
  5142. .file_more {
  5143. width: 20px;
  5144. height: 20px;
  5145. margin-left: 10px;
  5146. margin-top: auto;
  5147. margin-bottom: 10px;
  5148. }
  5149. .file_more>svg {
  5150. width: 100%;
  5151. height: 100%;
  5152. cursor: pointer;
  5153. }
  5154. .el-checkbox {
  5155. display: flex;
  5156. align-items: center;
  5157. }
  5158. .score_box {
  5159. font-size: 22px;
  5160. margin-right: 20px;
  5161. font-weight: bold;
  5162. }
  5163. .typeStatus {
  5164. padding: 4px 8px;
  5165. border-radius: 4px;
  5166. border: solid 1px gray;
  5167. display: flex;
  5168. align-items: center;
  5169. justify-content: center;
  5170. font-size: 12px;
  5171. }
  5172. .typeStatus_2 {
  5173. background: #F0F9F2;
  5174. border-color: #B5E3BF;
  5175. color: #5FC875;
  5176. }
  5177. .typeStatus_4 {
  5178. background: #FEF5EC;
  5179. border-color: #FAD0A1;
  5180. color: #F7933B;
  5181. }
  5182. .typeStatus_1 {
  5183. background: #EEF3FC;
  5184. border-color: #0F40F5;
  5185. color: #0F40F5;
  5186. }
  5187. </style>