| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767 |
- <template>
- <div :class="prefixCls" class="case-portrait-page qj-portrait-page">
- <div class="qj-page">
- <aside class="qj-sidebar">
- <div class="qj-side-head">
- <div class="qj-side-title"
- >画像对象 <span class="qj-count">{{ filteredPersonList.length }}</span></div
- >
- </div>
- <div class="qj-side-search">
- <Input v-model:value="personKeyword" placeholder="搜索姓名 / 证件号" allow-clear>
- <template #prefix>
- <SearchOutlined class="qj-search-icon" />
- </template>
- </Input>
- </div>
- <Button type="primary" block class="qj-add-btn" @click="openCreateModal">
- <PlusOutlined />
- 新增对象
- </Button>
- <div class="qj-person-list">
- <template v-if="filteredPersonList.length">
- <div
- v-for="item in filteredPersonList"
- :key="item.person.personCertNo || item.person.personName || item.index"
- class="qj-person"
- :class="{ active: selectedPersonId === item.index }"
- :title="toPersonName(item.person)"
- @click="selectPerson(item.index)"
- >
- <Popover placement="rightTop" trigger="hover" overlayClassName="person-card-popover">
- <template #content>
- <div class="avatar-pop-content">
- <div class="edit-item" @click.stop="openEditModal(item.person)">编辑</div>
- <div class="edit-item delete" @click.stop="handleDelete(item.person)">删除</div>
- </div>
- </template>
- <div class="qj-person-trigger">
- <PersonAvatar
- class="qj-person-avatar"
- :src="getPersonPhoto(item.person)"
- :alt="toPersonName(item.person)"
- :size="34"
- />
- <div class="qj-person-info">
- <div class="qj-person-name" :title="toPersonName(item.person)">{{ toPersonName(item.person) }}</div>
- <div v-if="item.person.personCertNo" class="qj-person-sub">{{ item.person.personCertNo }}</div>
- </div>
- </div>
- </Popover>
- </div>
- </template>
- <div v-else class="qj-side-empty">
- <EmptyState
- :title="personList.length ? '未找到匹配对象' : '暂无对象'"
- :description="personList.length ? '试试更换搜索关键词' : '可点击上方“新增对象”创建画像主体'"
- variant="compact"
- :min-height="150"
- />
- </div>
- </div>
- <div class="qj-side-foot">
- <Button class="qj-group-btn" @click="openGroupModal">
- <FolderOpenOutlined />
- 对象分组
- </Button>
- </div>
- </aside>
- <div ref="rightPanelRef" class="qj-right">
- <div class="qj-scroll">
- <section id="section-basic" class="qj-hero">
- <div class="qj-hero-top">
- <PersonAvatar class="qj-hero-avatar" :src="basicPhoto" :alt="basicName" :size="72" />
- <div class="qj-hero-id">
- <div class="qj-hero-name-row">
- <h1 class="qj-hero-name">{{ basicName }}</h1>
- <span class="qj-badge qj-badge-primary"><UserOutlined />画像主体</span>
- <span class="qj-badge">对象分组:{{ objectGroupText }}</span>
- </div>
- </div>
- <div class="qj-hero-actions">
- <Button class="qj-hero-edit-btn" @click="handleEditBasicInfo">
- <EditOutlined />
- 编辑资料
- </Button>
- </div>
- </div>
- <div class="qj-hero-meta">
- <div v-for="item in displayBasicInfo" :key="item.label" class="qj-hero-meta__item">
- <span class="qj-hero-meta__label">{{ item.label }}:</span>
- <span class="qj-hero-meta__value" :class="{ muted: item.value === '-' }" :title="item.value">{{
- item.value
- }}</span>
- </div>
- </div>
- </section>
- <nav class="qj-anchors" aria-label="页面章节">
- <button
- v-for="nav in navItems"
- :key="nav.id"
- type="button"
- class="qj-anchor"
- :class="{ active: activeNavId === nav.id }"
- @click="scrollToSection(nav.id)"
- >
- <component :is="nav.icon" />
- {{ nav.label }}
- </button>
- <span class="qj-anchors-tip">滚动页面时自动定位</span>
- </nav>
- <section id="section-relation" class="qj-card qj-relation-card">
- <IntimacyPanel :selected-person="selectedPerson" @jump-to-analysis="handleJumpToAnalysis" />
- </section>
- <section id="section-comm" class="qj-card">
- <div class="qj-card-head">
- <div class="qj-card-title">通讯信息</div>
- <div class="qj-head-actions">
- <Button type="link" class="qj-link" @click="openCallSummaryModal">
- <FileTextOutlined />
- 通信汇总
- </Button>
- </div>
- </div>
- <div class="qj-card-body qj-comm-metrics">
- <div class="qj-metrics two">
- <div class="qj-metric">
- <span class="qj-metric-icon"><PhoneOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">电话号码</div>
- <div class="qj-metric-value">{{ commSummary.phoneSummary }}</div>
- <div class="qj-metric-chips">
- <button
- v-for="carrier in carrierTags"
- :key="carrier.carrierName"
- type="button"
- class="qj-chip"
- @click="openCallOperPhoneModal(carrier)"
- >
- {{ carrier.label }}
- </button>
- <span v-if="!carrierTags.length" class="qj-chip neutral">-</span>
- </div>
- </div>
- </div>
- <div class="qj-metric">
- <span class="qj-metric-icon"><CalendarOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">通讯记录时间段</div>
- <div class="qj-metric-value">{{ commSummary.timeRange }}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="qj-split">
- <div class="qj-pane">
- <div class="qj-pane-head">
- <div class="qj-pane-title">通信类型占比</div>
- </div>
- <div v-if="hasRenderableCommTypeRatioData" class="qj-donut-wrap">
- <div ref="commTypeChartRef" class="qj-donut-chart"></div>
- <div class="qj-legend">
- <div v-for="item in commTypeLegend" :key="item.name" class="qj-legend-row">
- <span class="qj-legend-dot" :style="{ backgroundColor: item.color }"></span>
- <div>
- <div class="qj-legend-label">
- {{ item.name }}
- <span class="qj-legend-pct">{{ item.rate }}%</span>
- </div>
- <div class="qj-legend-value">{{ item.count }} <small>次</small></div>
- </div>
- </div>
- </div>
- </div>
- <div v-else class="qj-chart-empty">
- <EmptyState description="通信占比数据接入后将在此展示" />
- </div>
- </div>
- <div class="qj-pane">
- <div class="qj-pane-head">
- <div class="qj-pane-title">常联系对象 TOP10</div>
- <div class="qj-pane-tools">
- <span class="qj-mini-field">
- <CalendarOutlined />
- <DatePicker.RangePicker
- v-model:value="commTopQuery.dateRange"
- class="qj-range-picker"
- value-format="YYYY-MM-DD"
- :placeholder="['开始日期', '结束日期']"
- />
- </span>
- <Button type="link" size="small" class="qj-link" @click="openCallSummaryFromTopContacts">
- 查看更多
- </Button>
- </div>
- </div>
- <div v-if="hasRenderableTopContacts" class="qj-rank-list">
- <button
- v-for="(row, index) in commTopRankRows"
- :key="`${row.name}-${index}`"
- type="button"
- class="qj-rank-row"
- @click="handleCommTopRowClick(row)"
- >
- <span class="qj-rank-no">{{ index + 1 }}</span>
- <span class="qj-rank-name" :title="row.name">{{ row.name }}</span>
- <span class="qj-rank-track">
- <span class="qj-rank-bar" :style="{ width: `${row.rate}%` }"></span>
- </span>
- <span class="qj-rank-val">{{ row.count }}</span>
- </button>
- </div>
- <div v-else class="qj-chart-empty">
- <EmptyState description="筛选联系人后可查看 TOP10 统计结果" />
- </div>
- </div>
- </div>
- <div class="qj-stations">
- <span class="qj-stations-label"><EnvironmentOutlined />常通话基站</span>
- <template v-if="stations.length">
- <span v-for="station in stations" :key="station" class="qj-station">{{ station }}</span>
- </template>
- <span v-else class="qj-station-empty">-</span>
- <Button type="link" class="qj-link qj-stations-map" @click="viewStationMap">查看地图</Button>
- </div>
- </section>
- <section id="section-trade" class="qj-card">
- <div class="qj-card-head">
- <div class="qj-card-title">交易信息</div>
- <div class="qj-head-actions">
- <Button type="link" class="qj-link" @click="openTransSummaryModal">
- <FileTextOutlined />
- 交易汇总
- </Button>
- </div>
- </div>
- <div class="qj-card-body">
- <div class="qj-metrics four">
- <div class="qj-metric">
- <span class="qj-metric-icon"><CreditCardOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">银行卡</div>
- <div class="qj-metric-value">{{ tradeSummary.cardSummary }}</div>
- <div class="qj-metric-chips">
- <button
- v-for="tag in tradeBankTags"
- :key="tag.bankName"
- type="button"
- class="qj-chip"
- @click="openTransBankCardModal(tag)"
- >
- {{ tag.label }}
- </button>
- <span v-if="!tradeBankTags.length" class="qj-chip neutral">-</span>
- </div>
- </div>
- </div>
- <div class="qj-metric">
- <span class="qj-metric-icon green"><ArrowDownOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">总收入 · {{ tradeSummary.incomeRate }}</div>
- <div class="qj-metric-value green">{{ tradeSummary.incomeAmount }}</div>
- </div>
- </div>
- <div class="qj-metric">
- <span class="qj-metric-icon"><ArrowUpOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">总支出 · {{ tradeSummary.expendRate }}</div>
- <div class="qj-metric-value blue">{{ tradeSummary.expendAmount }}</div>
- </div>
- </div>
- <div class="qj-metric">
- <span class="qj-metric-icon red"><MoneyCollectOutlined /></span>
- <div class="qj-metric-main">
- <div class="qj-metric-label">单笔最高支出</div>
- <div class="qj-metric-value red">{{ tradeSummary.maxExpend }}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="qj-split">
- <div class="qj-pane">
- <div class="qj-pane-head">
- <div class="qj-pane-title">借贷类型占比</div>
- </div>
- <template v-if="hasTradeRatioData">
- <div class="qj-donut-wrap">
- <div class="qj-donut-visual">
- <div ref="tradeRatioChartRef" class="qj-donut-chart"></div>
- <div class="qj-donut-center">
- <strong>{{ transStatData?.cardCount ?? 0 }}</strong>
- <span>银行卡</span>
- </div>
- </div>
- <div class="qj-legend">
- <button
- type="button"
- class="qj-legend-row qj-legend-click"
- @click="handleDrillByDebitCredit('收入')"
- >
- <span class="qj-legend-dot" style="background: #12b76a"></span>
- <div>
- <div class="qj-legend-label">
- 总收入
- <span class="qj-legend-pct">{{ tradeSummary.incomeRate }}</span>
- </div>
- <div class="qj-legend-value">{{ tradeSummary.incomeAmount }}</div>
- </div>
- </button>
- <button
- type="button"
- class="qj-legend-row qj-legend-click"
- @click="handleDrillByDebitCredit('支出')"
- >
- <span class="qj-legend-dot" style="background: #2a50ec"></span>
- <div>
- <div class="qj-legend-label">
- 总支出
- <span class="qj-legend-pct">{{ tradeSummary.expendRate }}</span>
- </div>
- <div class="qj-legend-value">{{ tradeSummary.expendAmount }}</div>
- </div>
- </button>
- </div>
- </div>
- <div class="qj-kpis">
- <div class="qj-kpi">
- <div class="qj-kpi-label">单笔最高支出</div>
- <div class="qj-kpi-value">{{ tradeSummary.maxExpend }}</div>
- </div>
- <div class="qj-kpi">
- <div class="qj-kpi-label">单笔最高收入</div>
- <div class="qj-kpi-value" :class="tradeSummary.maxIncome === '-' ? 'muted' : 'green'">{{
- tradeSummary.maxIncome
- }}</div>
- </div>
- </div>
- </template>
- <div v-else class="qj-chart-empty">
- <EmptyState description="借贷类型汇总完成后将在此展示" />
- </div>
- </div>
- <div class="qj-pane">
- <div class="qj-pane-head">
- <div class="qj-pane-title">常交易对象 TOP10</div>
- <div class="qj-pane-tools">
- <span class="qj-mini-field">
- 统计指标:
- <Select
- v-model:value="tradeTopQuery.indicator"
- class="qj-inline-select"
- :options="tradeMetricOptions"
- />
- </span>
- <span class="qj-mini-field">
- <CalendarOutlined />
- <DatePicker.RangePicker
- v-model:value="tradeTopQuery.dateRange"
- class="qj-range-picker"
- value-format="YYYY-MM-DD"
- :placeholder="['开始日期', '结束日期']"
- />
- </span>
- <Radio.Group v-model:value="tradeTopQuery.dimension" class="qj-seg">
- <Radio value="交易金额">交易金额</Radio>
- <Radio value="交易次数">交易次数</Radio>
- </Radio.Group>
- <Button type="link" size="small" class="qj-link" @click="openTransSummaryModal">查看更多</Button>
- </div>
- </div>
- <div v-if="tradeTop.length" class="qj-rank-list">
- <button
- v-for="(row, index) in tradeTopRankRows"
- :key="`${row.name}-${index}`"
- type="button"
- class="qj-rank-row qj-rank-wide"
- @click="handleDrillByTradeTop(row)"
- >
- <span class="qj-rank-no">{{ index + 1 }}</span>
- <span class="qj-rank-name" :title="row.name">{{ row.name }}</span>
- <span class="qj-rank-track">
- <span class="qj-rank-bar" :style="{ width: `${row.rate}%` }"></span>
- </span>
- <span class="qj-rank-amount">{{ formatTradeRankValue(row.value) }}</span>
- </button>
- </div>
- <div v-else class="qj-chart-empty">
- <EmptyState description="调整日期或统计指标后可查看 TOP10 结果" />
- </div>
- </div>
- </div>
- <div class="qj-trend">
- <div class="qj-trend-head">
- <div class="qj-trend-title">交易趋势</div>
- <div class="qj-trend-desc">按时间维度观察收入与支出走势,可结合对方名称与日期范围进行筛选</div>
- <div class="qj-trend-tools">
- <span class="qj-field">
- 对方名称
- <Select
- v-model:value="tradeTrendQuery.otherName"
- class="qj-trend-select"
- placeholder="请选择对方名称"
- allow-clear
- show-search
- :filter-option="false"
- :options="tradeTrendOtherNameOptions"
- :loading="tradeTrendOtherNameLoading"
- :not-found-content="tradeTrendOtherNameLoading ? '加载中...' : '暂无数据'"
- @search="handleTradeTrendOtherNameSearch"
- @popupScroll="handleTradeTrendOtherNamePopupScroll"
- @dropdownVisibleChange="handleTradeTrendOtherNameDropdownVisibleChange"
- />
- </span>
- <span class="qj-field">
- 交易日期
- <DatePicker.RangePicker
- v-model:value="tradeTrendQuery.dateRange"
- class="qj-range-picker qj-trend-range"
- value-format="YYYY-MM-DD"
- :placeholder="['开始日期', '结束日期']"
- />
- </span>
- <span class="qj-field">
- 时间维度
- <span class="qj-seg">
- <span
- class="qj-seg-item"
- :class="{ on: tradeTrendQuery.timeDimension === 'MONTH' }"
- @click="changeTradeTrendDimension('MONTH')"
- >月</span
- >
- <span
- class="qj-seg-item"
- :class="{ on: tradeTrendQuery.timeDimension === 'YEAR' }"
- @click="changeTradeTrendDimension('YEAR')"
- >年</span
- >
- </span>
- </span>
- <span class="qj-trend-legend">
- <button
- v-for="(item, index) in trendLegendArr"
- :key="item.name"
- type="button"
- class="qj-trend-legend-item"
- :class="{ off: !item.isShow }"
- @click="changeLegend(item.name, index)"
- >
- <i :style="{ backgroundColor: item.color }"></i>
- {{ item.name }}
- </button>
- </span>
- </div>
- </div>
- <div v-if="trendPoints.length && trendLabels.length" class="qj-trend-chart-box">
- <div ref="tradeTrendScrollRef" class="qj-trend-scroll">
- <div class="qj-trend-chart" :style="trendChartStyle">
- <div ref="tradeTrendChartRef" class="qj-trend-echart"></div>
- </div>
- </div>
- </div>
- <div v-else class="qj-chart-empty qj-trend-empty">
- <EmptyState description="设置查询条件后可查看收入与支出趋势" />
- </div>
- <div class="qj-footnote">统计口径:按交易日期归集,收入与支出分列展示</div>
- </div>
- </section>
- </div>
- </div>
- </div>
- <Modal
- v-model:open="personModalVisible"
- @ok="handleSubmit"
- @cancel="closePersonModal"
- :confirmLoading="saving"
- :width="1040"
- :centered="true"
- :okText="isEditMode ? '保存修改' : '创建对象'"
- cancelText="取消"
- wrapClassName="person-edit-modal"
- destroyOnClose
- >
- <template #title>
- <div class="portrait-modal-title-block">
- <div class="portrait-modal-title">{{ isEditMode ? '编辑对象' : '新增对象' }}</div>
- <div class="portrait-modal-subtitle">维护画像主体的基础信息、联系方式与银行卡资料</div>
- </div>
- </template>
- <Form layout="vertical" class="person-form">
- <div class="person-form-section">
- <div class="form-section-head">
- <div>
- <div class="form-section-title">主要信息</div>
- <div class="form-section-desc">基础身份信息、籍贯住址与对象标签归类</div>
- </div>
- </div>
- <div class="person-form-grid">
- <Form.Item label="姓名" required :validateStatus="personNameError ? 'error' : ''" :help="personNameError">
- <Input v-model:value="personForm.personName" placeholder="请输入姓名" @blur="validatePersonName" />
- </Form.Item>
- <Form.Item label="证件号">
- <Input v-model:value="personForm.personCertNo" placeholder="请输入证件号" />
- </Form.Item>
- <Form.Item label="性别">
- <Select
- v-model:value="personForm.personGender"
- placeholder="请选择"
- :getPopupContainer="getModalPopupContainer"
- >
- <Select.Option value="男">男</Select.Option>
- <Select.Option value="女">女</Select.Option>
- </Select>
- </Form.Item>
- <Form.Item label="婚姻状态">
- <Select v-model:value="personForm.marry" placeholder="请选择" :getPopupContainer="getModalPopupContainer">
- <Select.Option :value="0">未知</Select.Option>
- <Select.Option :value="1">已婚</Select.Option>
- <Select.Option :value="2">未婚</Select.Option>
- </Select>
- </Form.Item>
- <Form.Item label="出生日期">
- <Input v-model:value="personForm.personBirth" placeholder="请输入 YYYY-MM-DD" />
- </Form.Item>
- <Form.Item label="年龄">
- <Input v-model:value="personForm.personAge" placeholder="请输入年龄" />
- </Form.Item>
- <Form.Item label="标签">
- <Select
- v-model:value="personForm.personTag"
- placeholder="请选择标签"
- :getPopupContainer="getModalPopupContainer"
- >
- <Select.Option value="MAIN">主体</Select.Option>
- </Select>
- </Form.Item>
- <Form.Item label="民族">
- <Input v-model:value="personForm.nation" placeholder="请输入民族" />
- </Form.Item>
- <Form.Item label="籍贯">
- <Input v-model:value="personForm.nativePlace" placeholder="请输入籍贯" />
- </Form.Item>
- <Form.Item label="户籍地">
- <Input v-model:value="personForm.householdRegistered" placeholder="请输入户籍地" />
- </Form.Item>
- <Form.Item label="地址">
- <Input v-model:value="personForm.personAddress" placeholder="请输入地址" />
- </Form.Item>
- <Form.Item label="上传头像" class="form-item-span-2 person-avatar-form-item">
- <div class="person-avatar-upload">
- <input
- ref="avatarInputRef"
- type="file"
- accept="image/*"
- hidden
- aria-hidden="true"
- class="person-avatar-upload__input"
- @change="handleAvatarFileChange"
- />
- <button type="button" class="person-avatar-upload__preview" @click="openAvatarFileDialog">
- <PersonAvatar :src="personAvatarPreviewSrc" :size="92" alt="人物头像" />
- </button>
- <div class="person-avatar-upload__tips">
- <div class="person-avatar-upload__title">支持上传人物头像</div>
- <div class="person-avatar-upload__desc">点击头像或按钮选择图片,保存时直接写入本地图片地址。</div>
- <div class="person-avatar-upload__actions">
- <Button @click="openAvatarFileDialog">上传头像</Button>
- <Button v-if="personForm.photograph" @click="clearAvatarSelection">清空头像</Button>
- </div>
- </div>
- </div>
- </Form.Item>
- </div>
- </div>
- <div class="person-form-section">
- <div class="form-section-head">
- <div>
- <div class="form-section-title">扩展信息</div>
- <div class="form-section-desc">联系方式与银行卡信息补充</div>
- </div>
- </div>
- <div class="person-form-grid">
- <Form.Item label="联系电话" class="form-item-span-2">
- <div class="dynamic-input-list">
- <div v-for="(phone, index) in personForm.phoneList" :key="index" class="dynamic-input-item">
- <Form.Item
- :validateStatus="phoneListErrors[index] ? 'error' : ''"
- :help="phoneListErrors[index]"
- :style="{ marginBottom: '8px' }"
- >
- <Input
- v-model:value="personForm.phoneList[index]"
- placeholder="请输入手机号"
- @blur="validatePhone(index)"
- />
- </Form.Item>
- <Button v-if="personForm.phoneList.length > 1" class="remove-btn" @click="removePhone(index)">
- <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
- <path d="M19 13H5v-2h14v2z" />
- </svg>
- </Button>
- <Button class="add-btn" @click="addPhone">
- <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
- <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
- </svg>
- </Button>
- </div>
- </div>
- </Form.Item>
- <Form.Item label="银行卡" class="form-item-span-2">
- <div class="dynamic-input-list">
- <div v-for="(card, index) in personForm.cardList" :key="index" class="dynamic-input-item">
- <Form.Item
- :validateStatus="cardListErrors[index] ? 'error' : ''"
- :help="cardListErrors[index]"
- :style="{ marginBottom: '8px' }"
- >
- <Input
- v-model:value="personForm.cardList[index]"
- placeholder="请输入银行卡号"
- @blur="validateCard(index)"
- />
- </Form.Item>
- <Button v-if="personForm.cardList.length > 1" class="remove-btn" @click="removeCard(index)">
- <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
- <path d="M19 13H5v-2h14v2z" />
- </svg>
- </Button>
- <Button class="add-btn" @click="addCard">
- <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
- <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
- </svg>
- </Button>
- </div>
- </div>
- </Form.Item>
- </div>
- </div>
- </Form>
- </Modal>
- <QueryTableModal
- v-model:open="callSummaryModalVisible"
- title="通信汇总"
- :z-index="callSummaryModalZIndex"
- :loading="callSummaryLoading"
- :filters="callSummaryQuery"
- :filter-schema="callSummaryFilterSchema"
- :columns="callSummaryColumns"
- :data-source="callSummaryRows"
- :pagination="callSummaryPagination"
- :total-pages="callSummaryTotalPages"
- :page-size-options="pageSizeOptions"
- :show-table-setting="false"
- :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
- :can-fullscreen="true"
- @search="handleSearchCallSummary"
- @reset="handleResetCallSummary"
- @prev-page="handleCallSummaryPrevPage"
- @next-page="handleCallSummaryNextPage"
- @page-size-change="handleCallSummaryPageSizeChange"
- @page-change="handleCallSummaryPageChange"
- @sort-change="handleSortCallSummary"
- />
- <QueryTableModal
- v-model:open="callOperPhoneModalVisible"
- :title="callOperPhoneModalTitle"
- wrap-class-name="call-oper-phone-modal"
- :loading="callOperPhoneLoading"
- :filters="callOperPhoneQuery"
- :filter-schema="callOperPhoneFilterSchema"
- :columns="callOperPhoneColumns"
- :data-source="callOperPhoneRows"
- :pagination="callOperPhonePagination"
- :total-pages="callOperPhoneTotalPages"
- :page-size-options="pageSizeOptions"
- :show-table-setting="true"
- :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
- :can-fullscreen="true"
- @search="handleSearchCallOperPhone"
- @reset="handleResetCallOperPhone"
- @prev-page="handleCallOperPhonePrevPage"
- @next-page="handleCallOperPhoneNextPage"
- @page-size-change="handleCallOperPhonePageSizeChange"
- @page-change="handleCallOperPhonePageChange"
- @sort-change="handleSortCallOperPhone"
- />
- <CallRecordModal
- v-model:open="callRecordModalVisible"
- title="通信记录"
- :z-index="callRecordModalZIndex"
- :base-query="callRecordBaseQuery"
- :hide-technical-id-columns="true"
- @jump="handleCallRecordJump"
- />
- <QueryTableModal
- v-model:open="transSummaryModalVisible"
- title="交易汇总"
- :z-index="transSummaryModalZIndex"
- :loading="transSummaryLoading"
- :filters="transSummaryQuery"
- :filter-schema="transSummaryFilterSchema"
- :columns="transSummaryColumns"
- :data-source="transSummaryRows"
- :pagination="transSummaryPagination"
- :total-pages="transSummaryTotalPages"
- :page-size-options="pageSizeOptions"
- :show-table-setting="false"
- :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
- :can-fullscreen="true"
- @search="handleSearchTransSummary"
- @reset="handleResetTransSummary"
- @prev-page="handleTransSummaryPrevPage"
- @next-page="handleTransSummaryNextPage"
- @page-size-change="handleTransSummaryPageSizeChange"
- @page-change="handleTransSummaryPageChange"
- @sort-change="handleSortTransSummary"
- />
- <QueryTableModal
- v-model:open="transBankCardModalVisible"
- :title="transBankCardModalTitle"
- :loading="transBankCardLoading"
- :filters="transBankCardQuery"
- :filter-schema="transBankCardFilterSchema"
- :columns="transBankCardColumns"
- :data-source="transBankCardRows"
- :pagination="transBankCardPagination"
- :total-pages="transBankCardTotalPages"
- :page-size-options="pageSizeOptions"
- :show-table-setting="true"
- :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
- :can-fullscreen="true"
- @search="handleSearchTransBankCard"
- @reset="handleResetTransBankCard"
- @prev-page="handleTransBankCardPrevPage"
- @next-page="handleTransBankCardNextPage"
- @page-size-change="handleTransBankCardPageSizeChange"
- @page-change="handleTransBankCardPageChange"
- @sort-change="handleSortTransBankCard"
- />
- <TransRecordModal
- v-model:open="transRecordModalVisible"
- :z-index="transRecordModalZIndex"
- :base-query="transRecordBaseQuery"
- :hide-technical-id-columns="true"
- @jump="handleTransRecordJump"
- />
- <StationMapModal v-model:open="stationMapModalVisible" :stations="stationMapPoints" :title="stationMapModalTitle" />
- <PersonGroupManageModal ref="groupManageModalRef" v-model:open="groupModalVisible" />
- </div>
- </template>
- <script lang="ts" setup name="ViewsDmPortrait">
- import {
- computed,
- ref,
- onMounted,
- onActivated,
- onDeactivated,
- reactive,
- watch,
- nextTick,
- onBeforeUnmount,
- h,
- } from 'vue';
- import { useRoute, useRouter } from 'vue-router';
- import { Button, DatePicker, Input, Select, Modal, Form, Popover, Radio } from 'ant-design-vue';
- import {
- SearchOutlined,
- PlusOutlined,
- EditOutlined,
- FolderOpenOutlined,
- IdcardOutlined,
- TeamOutlined,
- PhoneOutlined,
- WalletOutlined,
- CalendarOutlined,
- CreditCardOutlined,
- ArrowUpOutlined,
- ArrowDownOutlined,
- MoneyCollectOutlined,
- EnvironmentOutlined,
- FileTextOutlined,
- UserOutlined,
- } from '@ant-design/icons-vue';
- import componentSetting from '@/core/settings/componentSetting';
- import { useDesign } from '@/core/hooks/web/useDesign';
- import { useGlobSetting } from '@/core/hooks/setting';
- import { useMessage } from '@/core/hooks/web/useMessage';
- import { getModalPopupContainer as resolveModalPopupContainer } from '@/core/utils';
- import { normalizeAvatarSrc } from '@/core/utils/avatar';
- import {
- COMPARE_OPERATOR_OPTIONS,
- DEFAULT_COMPARE_OPERATOR,
- normalizeCompareOperator,
- } from '@/core/utils/compareOperator';
- import { EmptyState } from '@/core/components/EmptyState';
- import { PersonAvatar } from '@/core/components/PersonAvatar';
- import PersonGroupManageModal from '@/person/components/PersonGroupManageModal.vue';
- import QueryTableModal from './components/QueryTableModal.vue';
- import IntimacyPanel from './components/IntimacyPanel.vue';
- import StationMapModal from './components/StationMapModal.vue';
- import CallRecordModal from '../../../call/views/components/CallRecordModal.vue';
- import TransRecordModal from '../../../trans/views/components/TransRecordModal.vue';
- import * as echarts from 'echarts';
- import type { CallRecordQuery } from '../../../call/api/types/query';
- import type { TransRecordQuery } from '../../../trans/api/types/query';
- import {
- getPersons,
- createPersonBasicInfo,
- updatePersonBasicInfo,
- deletePersonBasicInfo,
- } from '../../../person/api/personApi';
- import type {
- PersonBasicInfo,
- PersonBasicInfoDTO,
- CallDataProfileStatDTO,
- CallOftenTop10DTO,
- CallOpenInfo,
- CallStatStationDTO,
- TransBankCardInfoDTO,
- TransDataProfileStatDTO,
- TransOftenTop10DTO,
- TransTrendDTO,
- TransRecordSummaryDTO,
- } from '../../../person/api/types/dto';
- import {
- callStat,
- callOftenTop10,
- getCallOperPhoneInfo,
- callStatStation,
- getTransOtherName,
- transStat,
- transOfPersons,
- transAmountTrendYM,
- transAmountTrendY,
- getTransBankCardInfo,
- getTransRecordSummary,
- getCallRecordSummary,
- } from '../../../person/api/dpApi';
- import { getCallRecord } from '../../../call/api/callApi';
- import {
- CallOperPhoneInfoQuery,
- TransBankCardInfoQuery,
- TransRecordSummaryQuery,
- } from '../../../person/api/types/query';
- const { prefixCls } = useDesign('case-portrait');
- const { ctxAdminPath } = useGlobSetting();
- const { createMessage, createConfirm } = useMessage();
- const route = useRoute();
- const router = useRouter();
- const getModalPopupContainer = (triggerNode?: HTMLElement) => resolveModalPopupContainer(triggerNode);
- type PortraitPerson = PersonBasicInfo & {
- personNation?: string;
- personEducation?: string;
- personMarriage?: string;
- personHeight?: string | number;
- personResidence?: string;
- personWorkUnit?: string;
- personGroup?: string;
- };
- const personList = ref<PortraitPerson[]>([]);
- const selectedPersonId = ref<number | null>(null);
- const personModalVisible = ref(false);
- const callSummaryModalVisible = ref(false);
- const callSummaryModalZIndex = 1200;
- const callOperPhoneModalVisible = ref(false);
- const callRecordModalVisible = ref(false);
- const callRecordModalZIndex = 1210;
- const transSummaryModalVisible = ref(false);
- const transSummaryModalZIndex = 1200;
- const transBankCardModalVisible = ref(false);
- const transRecordModalVisible = ref(false);
- const transRecordModalZIndex = 1210;
- const stationMapModalVisible = ref(false);
- const groupModalVisible = ref(false);
- const groupManageModalRef = ref<InstanceType<typeof PersonGroupManageModal> | null>(null);
- const isEditMode = ref(false);
- const saving = ref(false);
- const editingPerson = ref<PersonBasicInfo | null>(null);
- const loadingProfile = ref(false);
- const stationMapPoints = computed<CallStatStationDTO[]>(() =>
- stationData.value.filter((item): item is CallStatStationDTO => {
- if (!item || typeof item !== 'object') return false;
- const longitude = Number(String(item.personStationLongitude || '').trim());
- const latitude = Number(String(item.personStationLatitude || '').trim());
- return Number.isFinite(longitude) && Number.isFinite(latitude);
- }),
- );
- const canViewStationMap = computed(() => stationMapPoints.value.length > 0);
- const stationMapModalTitle = computed(() => {
- const personName = selectedPerson.value?.personName?.trim();
- const suffix = stationMapPoints.value.length ? `(${stationMapPoints.value.length}个节点)` : '';
- return personName ? `${personName} - 通信基站${suffix}` : `通信基站${suffix}`;
- });
- const callStatData = ref<CallDataProfileStatDTO | null>(null);
- const transStatData = ref<TransDataProfileStatDTO | null>(null);
- const callOperPhoneModalTitle = ref('运营商手机号信息');
- const transBankCardModalTitle = ref('银行卡交易信息');
- const commTypeRatioData = ref<{ value: number; name: string; itemStyle?: { color: string } }[]>([]);
- const commTop10Data = ref<CallOftenTop10DTO[]>([]);
- const stationData = ref<CallStatStationDTO[]>([]);
- const stationDisplayLimit = 3;
- const tradeTop10Data = ref<TransOftenTop10DTO[]>([]);
- const tradeTrendData = ref<TransTrendDTO[]>([]);
- const tradeTrendChartRef = ref<HTMLElement | null>(null);
- const tradeTrendScrollRef = ref<HTMLElement | null>(null);
- const tradeRatioChartRef = ref<HTMLElement | null>(null);
- const tradeTopChartRef = ref<HTMLElement | null>(null);
- const commTypeChartRef = ref<HTMLElement | null>(null);
- const commTopChartRef = ref<HTMLElement | null>(null);
- let tradeTrendChart: echarts.ECharts | null = null;
- let tradeRatioChart: echarts.ECharts | null = null;
- let tradeTopChart: echarts.ECharts | null = null;
- let commTypeChart: echarts.ECharts | null = null;
- let commTopChart: echarts.ECharts | null = null;
- let chartResizeObserver: ResizeObserver | null = null;
- let chartResizeFrame: number | null = null;
- const observedChartElements = new Set<Element>();
- let tradeTrendSearchTimer: number | null = null;
- const trendLegendArr = ref([
- { isShow: true, name: '收入', color: '#12b76a' },
- { isShow: true, name: '支出', color: '#2a50ec' },
- ]);
- const commTopQuery = reactive({
- dateRange: undefined as [string, string] | undefined,
- });
- type TradeTopDimension = '交易金额' | '交易次数';
- const tradeTopQuery = reactive({
- indicator: 'personName',
- dateRange: undefined as [string, string] | undefined,
- dimension: '交易金额' as TradeTopDimension,
- });
- const tradeTrendQuery = reactive({
- otherName: '',
- dateRange: undefined as [string, string] | undefined,
- timeDimension: 'YEAR' as 'MONTH' | 'YEAR',
- });
- const tradeTrendOtherNameOptions = ref<{ label: string; value: string }[]>([]);
- const tradeTrendOtherNameLoading = ref(false);
- const tradeTrendOtherNameSearch = ref('');
- const tradeTrendOtherNamePage = ref(1);
- const tradeTrendOtherNameHasMore = ref(true);
- const tradeTrendOtherNameLoadedPerson = ref('');
- const avatarInputRef = ref<HTMLInputElement | null>(null);
- const avatarPreviewObjectUrl = ref('');
- let tradeTrendOtherNameSearchTimer: number | null = null;
- let tradeTrendOtherNameRequestId = 0;
- const personForm = reactive({
- personName: '',
- personCertNo: '',
- personBirth: '',
- personGender: '',
- personAge: '',
- personAddress: '',
- photograph: '',
- marry: 0,
- nation: '',
- nativePlace: '',
- householdRegistered: '',
- personTag: '',
- phoneList: [''],
- cardList: [''],
- });
- const phoneListErrors = ref<string[]>([]);
- const cardListErrors = ref<string[]>([]);
- const personNameError = ref('');
- const createCallSummaryQuery = () => ({
- keyword: '',
- otherName: '',
- otherPhone: '',
- callDirection: '',
- callType: '',
- startDate: '',
- endDate: '',
- orderKey: '',
- sort: 'DESC' as 'ASC' | 'DESC',
- });
- type CallSummaryQueryState = ReturnType<typeof createCallSummaryQuery>;
- const callSummaryLoading = ref(false);
- const callSummaryQuery = reactive<CallSummaryQueryState>(createCallSummaryQuery());
- const callSummaryBaseQuery = ref<CallSummaryQueryState>(createCallSummaryQuery());
- const callSummaryRows = ref<any[]>([]);
- const callSummaryPagination = reactive({
- page: 1,
- limit: componentSetting.table.defaultPageSize,
- total: 0,
- });
- const callSummaryTotalPages = computed(() => {
- if (!callSummaryPagination.total) return 1;
- return Math.max(1, Math.ceil(callSummaryPagination.total / callSummaryPagination.limit));
- });
- const createCallOperPhoneQuery = () => ({
- personName: '',
- operatorName: '',
- phoneNumber: '',
- orderKey: '',
- sort: 'DESC' as 'ASC' | 'DESC',
- phoneList: [] as string[],
- operatorId: '',
- });
- type CallOperPhoneQueryState = ReturnType<typeof createCallOperPhoneQuery>;
- const callOperPhoneLoading = ref(false);
- const callOperPhoneQuery = reactive<CallOperPhoneQueryState>(createCallOperPhoneQuery());
- const callOperPhoneBaseQuery = ref<CallOperPhoneQueryState>(createCallOperPhoneQuery());
- const callOperPhoneAllRows = ref<any[]>([]);
- const callOperPhoneRows = ref<any[]>([]);
- const callOperPhonePagination = reactive({
- page: 1,
- limit: componentSetting.table.defaultPageSize,
- total: 0,
- });
- const callOperPhoneTotalPages = computed(() => {
- if (!callOperPhonePagination.total) return 1;
- return Math.max(1, Math.ceil(callOperPhonePagination.total / callOperPhonePagination.limit));
- });
- const createTransBankCardQuery = () => ({
- keyword: '',
- orderKey: '',
- sort: 'DESC' as 'ASC' | 'DESC',
- bankName: '',
- cardNoList: [] as string[],
- });
- type TransBankCardQueryState = ReturnType<typeof createTransBankCardQuery>;
- const transBankCardLoading = ref(false);
- const transBankCardQuery = reactive<TransBankCardQueryState>(createTransBankCardQuery());
- const transBankCardBaseQuery = ref<TransBankCardQueryState>(createTransBankCardQuery());
- const transBankCardRows = ref<any[]>([]);
- const transBankCardPagination = reactive({
- page: 1,
- limit: componentSetting.table.defaultPageSize,
- total: 0,
- });
- const transBankCardTotalPages = computed(() => {
- if (!transBankCardPagination.total) return 1;
- return Math.max(1, Math.ceil(transBankCardPagination.total / transBankCardPagination.limit));
- });
- const createTransSummaryQuery = () => ({
- personCardNo: '',
- otherName: '',
- transAmount: '',
- transAmountSymbol: DEFAULT_COMPARE_OPERATOR,
- transCount: '',
- transCountSymbol: DEFAULT_COMPARE_OPERATOR,
- orderKey: '',
- sort: 'DESC' as 'ASC' | 'DESC',
- });
- type TransSummaryQueryState = ReturnType<typeof createTransSummaryQuery>;
- const transSummaryLoading = ref(false);
- const transSummaryQuery = reactive<TransSummaryQueryState>(createTransSummaryQuery());
- const transSummaryBaseQuery = ref<TransSummaryQueryState>(createTransSummaryQuery());
- type TransRecordDrilldownQuery = Partial<TransRecordQuery> & Record<string, any>;
- const transSummaryRows = ref<any[]>([]);
- const callRecordBaseQuery = ref<Partial<CallRecordQuery>>({});
- const transRecordBaseQuery = ref<TransRecordDrilldownQuery>({});
- const transSummaryPagination = reactive({
- page: 1,
- limit: componentSetting.table.defaultPageSize,
- total: 0,
- });
- const transSummaryTotalPages = computed(() => {
- if (!transSummaryPagination.total) return 1;
- return Math.max(1, Math.ceil(transSummaryPagination.total / transSummaryPagination.limit));
- });
- const pageSizeOptions = componentSetting.table.pageSizeOptions.map((value) => ({ label: value, value }));
- const compareOperatorOptions = COMPARE_OPERATOR_OPTIONS;
- const callSummaryFilterSchema = [
- { field: 'otherPhone', label: '对方号码', type: 'input' as const, placeholder: '请输入对方号码', width: 260 },
- { field: 'otherName', label: '对方姓名', type: 'input' as const, placeholder: '请输入对方姓名', width: 260 },
- ];
- const callSummaryColumns = [
- { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 160, sorter: true },
- { title: '本方号码', dataIndex: 'personPhone', key: 'personPhone', width: 180, sorter: true },
- { title: '对方姓名', dataIndex: 'otherName', key: 'otherName', width: 160, sorter: true },
- { title: '对方号码', dataIndex: 'otherPhone', key: 'otherPhone', width: 200, sorter: true },
- { title: '通话次数', dataIndex: 'callCount', key: 'callCount', width: 120, sorter: true },
- {
- title: '操作',
- dataIndex: 'action',
- key: 'action',
- width: 120,
- fixed: 'right' as const,
- align: 'center' as const,
- customRender: ({ record }: any) =>
- h(
- Button,
- {
- type: 'link',
- size: 'small',
- onClick: () => handleViewCallSummaryDetail(record),
- },
- { default: () => '查看详情' },
- ),
- },
- ];
- const callOperPhoneFilterSchema = [
- { field: 'phoneNumber', label: '手机号码', type: 'input' as const, placeholder: '请输入手机号码', width: 220 },
- ];
- const callOperPhoneColumns = [
- { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 180, sorter: true },
- { title: '手机号码', dataIndex: 'personPhone', key: 'personPhone', width: 180, sorter: true },
- { title: '号码类型', dataIndex: 'phoneType', key: 'phoneType', width: 140, sorter: true },
- { title: '运营商标识', dataIndex: 'operatorId', key: 'operatorId', width: 180, sorter: true },
- { title: '用户类型', dataIndex: 'personType', key: 'personType', width: 140, sorter: true },
- { title: '使用人证件号码', dataIndex: 'personCertNo', key: 'personCertNo', width: 220, sorter: true },
- { title: '使用人证件地址', dataIndex: 'personCertAddress', key: 'personCertAddress', width: 260 },
- { title: '通信地址', dataIndex: 'mailingAddress', key: 'mailingAddress', width: 260 },
- { title: '号码归属省', dataIndex: 'province', key: 'province', width: 140, sorter: true },
- { title: '号码归属市', dataIndex: 'city', key: 'city', width: 140, sorter: true },
- { title: '号码状态', dataIndex: 'phoneStatus', key: 'phoneStatus', width: 140, sorter: true },
- { title: '入网时间', dataIndex: 'activationDateTime', key: 'activationDateTime', width: 200, sorter: true },
- { title: '销户时间', dataIndex: 'closingDateTime', key: 'closingDateTime', width: 200, sorter: true },
- { title: '首次通话时间', dataIndex: 'firstCallDateTime', key: 'firstCallDateTime', width: 200, sorter: true },
- {
- title: '最后停机时间',
- dataIndex: 'lastSuspensionDateTime',
- key: 'lastSuspensionDateTime',
- width: 200,
- sorter: true,
- },
- {
- title: '操作',
- dataIndex: 'action',
- key: 'action',
- width: 120,
- fixed: 'right' as const,
- align: 'center' as const,
- customRender: ({ record }: any) =>
- h(
- Button,
- {
- type: 'link',
- size: 'small',
- onClick: () => handleViewCallOperPhoneDetail(record),
- },
- { default: () => '查看详情' },
- ),
- },
- ];
- const transBankCardFilterSchema = [
- { field: 'keyword', label: '卡号', type: 'input' as const, placeholder: '请输入卡号' },
- ];
- const transBankCardColumns = [
- { title: '本方卡号', dataIndex: 'personCardNo', key: 'personCardNo', width: 200, sorter: true },
- { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 140 },
- { title: '所属银行', dataIndex: 'bankName', key: 'bankName', width: 180, sorter: true },
- { title: '收入总金额', dataIndex: 'incomeTotalAmount', key: 'incomeTotalAmount', width: 140, sorter: true },
- { title: '支出总金额', dataIndex: 'expenseTotalAmount', key: 'expenseTotalAmount', width: 140, sorter: true },
- { title: '净额', dataIndex: 'netAmount', key: 'netAmount', width: 140, sorter: true },
- { title: '交易总金额', dataIndex: 'transTotalAmount', key: 'transTotalAmount', width: 140, sorter: true },
- { title: '交易笔数', dataIndex: 'transCount', key: 'transCount', width: 100, sorter: true },
- { title: '账户余额', dataIndex: 'totalBalance', key: 'totalBalance', width: 140, sorter: true },
- { title: '账户状态', dataIndex: 'accountStatus', key: 'accountStatus', width: 100, sorter: true },
- { title: '开户日期', dataIndex: 'openingDate', key: 'openingDate', width: 140, sorter: true },
- { title: '销户日期', dataIndex: 'closeAccountDate', key: 'closeAccountDate', width: 140, sorter: true },
- {
- title: '操作',
- dataIndex: 'action',
- key: 'action',
- width: 120,
- fixed: 'right' as const,
- align: 'center' as const,
- customRender: ({ record }: any) =>
- h(
- Button,
- {
- type: 'link',
- size: 'small',
- onClick: () => handleViewTransBankCardDetail(record),
- },
- { default: () => '查看详情' },
- ),
- },
- ];
- const transSummaryFilterSchema = [
- {
- field: 'personCardNo',
- label: '银行卡(账号)',
- type: 'input' as const,
- placeholder: '请输入银行卡(账号)',
- width: 260,
- },
- {
- field: 'otherName',
- label: '对方名称',
- type: 'input' as const,
- placeholder: '请输入对方名称',
- width: 260,
- },
- {
- field: 'transAmount',
- label: '交易总金额',
- type: 'compare-input' as const,
- operatorField: 'transAmountSymbol',
- options: compareOperatorOptions,
- operatorWidth: 72,
- inputWidth: 180,
- inputMaxWidth: 180,
- placeholder: '请输入交易总金额',
- },
- {
- field: 'transCount',
- label: '交易次数',
- type: 'compare-input' as const,
- operatorField: 'transCountSymbol',
- options: compareOperatorOptions,
- operatorWidth: 72,
- inputWidth: 180,
- inputMaxWidth: 180,
- placeholder: '请输入交易次数',
- },
- ];
- const transSummaryColumns = [
- { title: '本方卡号', dataIndex: 'personCardNo', key: 'personCardNo', width: 180, sorter: true },
- { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 160, sorter: true },
- { title: '对方卡号', dataIndex: 'otherCardNo', key: 'otherCardNo', width: 180, sorter: true },
- { title: '对方名称', dataIndex: 'otherName', key: 'otherName', width: 160, sorter: true },
- { title: '所属银行', dataIndex: 'bankName', key: 'bankName', width: 180, sorter: true },
- { title: '交易次数', dataIndex: 'transCount', key: 'transCount', width: 120, sorter: true },
- { title: '交易总金额', dataIndex: 'transTotalAmount', key: 'transTotalAmount', width: 140, sorter: true },
- { title: '收入总金额', dataIndex: 'incomeTotalAmount', key: 'incomeTotalAmount', width: 180, sorter: true },
- { title: '支出总金额', dataIndex: 'expenseTotalAmount', key: 'expenseTotalAmount', width: 180, sorter: true },
- {
- title: '操作',
- dataIndex: 'action',
- key: 'action',
- width: 120,
- fixed: 'right' as const,
- align: 'center' as const,
- customRender: ({ record }: any) =>
- h(
- Button,
- {
- type: 'link',
- size: 'small',
- onClick: () => handleViewTransSummaryDetail(record),
- },
- { default: () => '查看详情' },
- ),
- },
- ];
- const toPersonName = (person: PersonBasicInfo) => person.personName ?? '-';
- const getSelectedPersonPhones = (person = selectedPerson.value) => {
- const phones = (person?.phoneList || []).map((item) => String(item.personNo || '').trim()).filter(Boolean);
- return phones.length ? Array.from(new Set(phones)) : undefined;
- };
- const toLibNoList = (text: string, libType: 2 | 3) => {
- return text
- .split(',')
- .map((item) => item.trim())
- .filter(Boolean)
- .map((personNo) => ({ personNo, libType }));
- };
- const normalizePersonIdCard = (value?: string | null) =>
- String(value ?? '')
- .trim()
- .replace(/\s/g, '')
- .toUpperCase();
- const isLeapYear = (year: number) => (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
- const isValidDateParts = (year: number, month: number, day: number) => {
- if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day)) return false;
- if (month < 1 || month > 12 || day < 1) return false;
- const dayList = [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
- return day <= dayList[month - 1];
- };
- const getPersonIdCardCheckCode = (body: string) => {
- const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
- const codes = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];
- const total = body.split('').reduce((sum, char, index) => sum + Number(char) * weights[index], 0);
- return codes[total % 11];
- };
- const parsePersonProfileFromIdCard = (value?: string | null) => {
- const certNo = normalizePersonIdCard(value);
- if (!certNo) return null;
- let birthText = '';
- let gender = '';
- if (/^\d{15}$/u.test(certNo)) {
- const year = Number(`19${certNo.slice(6, 8)}`);
- const month = Number(certNo.slice(8, 10));
- const day = Number(certNo.slice(10, 12));
- if (!isValidDateParts(year, month, day)) return null;
- birthText = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
- gender = Number(certNo[14]) % 2 === 1 ? '男' : '女';
- } else if (/^\d{17}[\dX]$/u.test(certNo)) {
- const year = Number(certNo.slice(6, 10));
- const month = Number(certNo.slice(10, 12));
- const day = Number(certNo.slice(12, 14));
- if (!isValidDateParts(year, month, day)) return null;
- if (getPersonIdCardCheckCode(certNo.slice(0, 17)) !== certNo[17]) return null;
- birthText = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
- gender = Number(certNo[16]) % 2 === 1 ? '男' : '女';
- } else {
- return null;
- }
- const [yearText, monthText, dayText] = birthText.split('-');
- const birthDate = new Date(Number(yearText), Number(monthText) - 1, Number(dayText));
- if (Number.isNaN(birthDate.getTime())) return null;
- const now = new Date();
- let age = now.getFullYear() - birthDate.getFullYear();
- const currentMonthDay = `${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`;
- if (`${monthText}-${dayText}` > currentMonthDay) {
- age -= 1;
- }
- age = Math.max(0, age);
- return {
- personBirth: birthText,
- personGender: gender,
- personAge: String(age),
- };
- };
- const autofillPersonProfileByIdCard = (certNo?: string | null) => {
- const parsed = parsePersonProfileFromIdCard(certNo);
- if (!parsed) return;
- personForm.personBirth = parsed.personBirth;
- personForm.personGender = parsed.personGender;
- personForm.personAge = parsed.personAge;
- };
- const resetPersonForm = () => {
- revokeAvatarPreviewObjectUrl();
- personForm.personName = '';
- personForm.personCertNo = '';
- personForm.personBirth = '';
- personForm.personGender = '';
- personForm.personAge = '';
- personForm.personAddress = '';
- updatePersonPhotograph('');
- personForm.marry = 0;
- personForm.nation = '';
- personForm.nativePlace = '';
- personForm.householdRegistered = '';
- personForm.personTag = '';
- personForm.phoneList = [''];
- personForm.cardList = [''];
- phoneListErrors.value = [];
- cardListErrors.value = [];
- personNameError.value = '';
- };
- const fillPersonForm = (person: PersonBasicInfo) => {
- revokeAvatarPreviewObjectUrl();
- personForm.personName = person.personName ?? '';
- personForm.personCertNo = person.personCertNo ?? '';
- personForm.personBirth = person.personBirth ?? '';
- personForm.personGender = person.personGender ?? '';
- personForm.personAge = person.personAge !== undefined && person.personAge !== null ? String(person.personAge) : '';
- personForm.personAddress = person.personAddress ?? '';
- updatePersonPhotograph(person.photograph);
- personForm.marry = person.marry ?? 0;
- personForm.nation = person.nation ?? '';
- personForm.nativePlace = person.nativePlace ?? '';
- personForm.householdRegistered = person.householdRegistered ?? '';
- personForm.personTag = person.personTag ?? '';
- const phoneArr = (person.phoneList || []).map((item) => item.personNo ?? '').filter(Boolean);
- personForm.phoneList = phoneArr.length > 0 ? phoneArr : [''];
- const cardArr = (person.cardList || []).map((item) => item.personNo ?? '').filter(Boolean);
- personForm.cardList = cardArr.length > 0 ? cardArr : [''];
- if (personForm.personCertNo && (!personForm.personBirth || !personForm.personGender || !personForm.personAge)) {
- autofillPersonProfileByIdCard(personForm.personCertNo);
- }
- phoneListErrors.value = [];
- cardListErrors.value = [];
- personNameError.value = '';
- };
- watch(
- () => personForm.personCertNo,
- (value) => {
- const certNo = normalizePersonIdCard(value);
- if (!certNo) return;
- autofillPersonProfileByIdCard(certNo);
- },
- );
- const resetRightPanelData = () => {
- callStatData.value = null;
- transStatData.value = null;
- commTypeRatioData.value = [];
- commTop10Data.value = [];
- stationData.value = [];
- tradeTop10Data.value = [];
- tradeTrendData.value = [];
- };
- const normalizeObjectList = <T extends Record<string, any>>(source: unknown): T[] => {
- if (!Array.isArray(source)) return [];
- return source.filter((item): item is T => !!item && typeof item === 'object');
- };
- const normalizeTrendRows = (resp: any): TransTrendDTO[] => {
- if (Array.isArray(resp)) return normalizeObjectList<TransTrendDTO>(resp);
- if (Array.isArray(resp?.records)) return normalizeObjectList<TransTrendDTO>(resp.records);
- if (Array.isArray(resp?.data)) return normalizeObjectList<TransTrendDTO>(resp.data);
- return [];
- };
- const loadTradeTrendData = async (personName: string) => {
- const startDate = tradeTrendQuery.dateRange?.[0];
- const endDate = tradeTrendQuery.dateRange?.[1];
- const otherName = String(tradeTrendQuery.otherName || '').trim();
- const payload = {
- personName,
- otherName: otherName || undefined,
- startDate: startDate || undefined,
- endDate: endDate || undefined,
- } as any;
- const resp =
- tradeTrendQuery.timeDimension === 'YEAR' ? await transAmountTrendY(payload) : await transAmountTrendYM(payload);
- return normalizeTrendRows(resp);
- };
- const normalizeStringList = (resp: any) => {
- const candidates = [resp, resp?.records, resp?.list, resp?.data, resp?.data?.records, resp?.data?.list];
- for (const item of candidates) {
- if (Array.isArray(item)) {
- return item.map((value) => String(value || '').trim()).filter(Boolean);
- }
- }
- return [] as string[];
- };
- const setTradeTrendOtherNameOptions = (names: string[], replace = false) => {
- const optionMap = new Map<string, { label: string; value: string }>();
- const appendOption = (value: string) => {
- const normalized = String(value || '').trim();
- if (!normalized) return;
- optionMap.set(normalized, { label: normalized, value: normalized });
- };
- if (!replace) {
- tradeTrendOtherNameOptions.value.forEach((item) => appendOption(item.value));
- }
- names.forEach((item) => appendOption(item));
- const currentValue = String(tradeTrendQuery.otherName || '').trim();
- if (currentValue) {
- appendOption(currentValue);
- }
- tradeTrendOtherNameOptions.value = Array.from(optionMap.values());
- };
- const resetTradeTrendOtherNameState = () => {
- tradeTrendOtherNameRequestId += 1;
- if (tradeTrendOtherNameSearchTimer !== null) {
- window.clearTimeout(tradeTrendOtherNameSearchTimer);
- tradeTrendOtherNameSearchTimer = null;
- }
- tradeTrendOtherNameOptions.value = [];
- tradeTrendOtherNameSearch.value = '';
- tradeTrendOtherNamePage.value = 1;
- tradeTrendOtherNameHasMore.value = true;
- tradeTrendOtherNameLoadedPerson.value = '';
- tradeTrendOtherNameLoading.value = false;
- };
- const resetProfilePanelQueries = () => {
- commTopQuery.dateRange = undefined;
- tradeTopQuery.indicator = 'personName';
- tradeTopQuery.dateRange = undefined;
- tradeTopQuery.dimension = '交易金额';
- tradeTrendQuery.otherName = '';
- tradeTrendQuery.dateRange = undefined;
- tradeTrendQuery.timeDimension = 'YEAR';
- trendLegendArr.value = [
- { isShow: true, name: '收入', color: '#12b76a' },
- { isShow: true, name: '支出', color: '#2a50ec' },
- ];
- resetTradeTrendOtherNameState();
- };
- const loadTradeTrendOtherNameOptions = async (options?: { reset?: boolean; search?: string }) => {
- const { reset = false, search = tradeTrendOtherNameSearch.value } = options || {};
- const personName = selectedPerson.value?.personName?.trim();
- if (!personName) {
- resetTradeTrendOtherNameState();
- return;
- }
- if (tradeTrendOtherNameLoading.value) return;
- if (!reset && !tradeTrendOtherNameHasMore.value) return;
- const page = reset ? 1 : tradeTrendOtherNamePage.value;
- const currentRequestId = ++tradeTrendOtherNameRequestId;
- tradeTrendOtherNameLoading.value = true;
- try {
- const resp = await getTransOtherName({
- personName,
- search: search || undefined,
- page,
- limit: 20,
- } as any);
- if (currentRequestId !== tradeTrendOtherNameRequestId) return;
- const list = normalizeStringList(resp);
- const total = Number((resp as any)?.total ?? (resp as any)?.data?.total ?? 0);
- const prevSize = reset ? 0 : tradeTrendOtherNameOptions.value.length;
- setTradeTrendOtherNameOptions(list, reset);
- tradeTrendOtherNamePage.value = page + 1;
- tradeTrendOtherNameHasMore.value =
- Number.isFinite(total) && total > 0 ? tradeTrendOtherNameOptions.value.length < total : list.length >= 20;
- if (!reset && tradeTrendOtherNameOptions.value.length <= prevSize) {
- tradeTrendOtherNameHasMore.value = false;
- }
- tradeTrendOtherNameLoadedPerson.value = personName;
- } catch (error) {
- if (currentRequestId !== tradeTrendOtherNameRequestId) return;
- console.error('获取交易趋势对方名称失败', error);
- if (reset) {
- setTradeTrendOtherNameOptions([], true);
- }
- tradeTrendOtherNameHasMore.value = false;
- } finally {
- if (currentRequestId === tradeTrendOtherNameRequestId) {
- tradeTrendOtherNameLoading.value = false;
- }
- }
- };
- const normalizeCallTopRows = (resp: any): CallOftenTop10DTO[] => {
- if (Array.isArray(resp)) return normalizeObjectList<CallOftenTop10DTO>(resp).slice(0, 10);
- if (Array.isArray(resp?.records)) return normalizeObjectList<CallOftenTop10DTO>(resp.records).slice(0, 10);
- if (Array.isArray(resp?.data)) return normalizeObjectList<CallOftenTop10DTO>(resp.data).slice(0, 10);
- return [];
- };
- const buildCallTopRowsFromRecords = (records: any[]): CallOftenTop10DTO[] => {
- const counter = new Map<string, { otherName?: string; otherPhone?: string; callCount: number }>();
- records.forEach((item) => {
- const otherPhone = item?.otherPhone || '';
- const otherName = item?.otherName || '';
- const key = `${otherPhone}__${otherName}`;
- const current = counter.get(key) || {
- otherName,
- otherPhone,
- callCount: 0,
- };
- current.callCount += 1;
- counter.set(key, current);
- });
- return Array.from(counter.values())
- .sort((a, b) => b.callCount - a.callCount)
- .slice(0, 10)
- .map((item) => ({
- otherName: item.otherName,
- otherPhone: item.otherPhone,
- callCount: item.callCount,
- }));
- };
- const loadCommTopData = async (personName: string) => {
- const startDate = commTopQuery.dateRange?.[0];
- const endDate = commTopQuery.dateRange?.[1];
- if (!startDate && !endDate) {
- const resp = await callOftenTop10({ personName });
- return normalizeCallTopRows(resp);
- }
- const resp = (await getCallRecord({
- page: 1,
- limit: 50000,
- personName,
- personPhones: getSelectedPersonPhones(),
- startDate: startDate || undefined,
- endDate: endDate || undefined,
- } as any)) as any;
- const records = Array.isArray(resp?.records)
- ? resp.records
- : Array.isArray(resp?.data)
- ? resp.data
- : Array.isArray(resp)
- ? resp
- : [];
- return buildCallTopRowsFromRecords(records);
- };
- const normalizeTradeTopRows = (resp: any): TransOftenTop10DTO[] => {
- if (Array.isArray(resp)) return normalizeObjectList<TransOftenTop10DTO>(resp);
- if (Array.isArray(resp?.records)) return normalizeObjectList<TransOftenTop10DTO>(resp.records);
- if (Array.isArray(resp?.data)) return normalizeObjectList<TransOftenTop10DTO>(resp.data);
- return [];
- };
- const loadTradeTopData = async (personName: string) => {
- const startDate = tradeTopQuery.dateRange?.[0];
- const endDate = tradeTopQuery.dateRange?.[1];
- const resp = await transOfPersons({
- personName,
- dimension: tradeTopQuery.dimension,
- indicator: tradeTopQuery.indicator,
- startDate: startDate || undefined,
- endDate: endDate || undefined,
- page: 1,
- limit: 10,
- });
- return normalizeTradeTopRows(resp);
- };
- const buildCommTypeRatioData = (callStatInfo?: CallDataProfileStatDTO | null) => {
- const callTypeColorMap: Record<string, string> = {
- 主叫: '#2a50ec',
- 被叫: '#2ec8d9',
- 其他: '#f6b659',
- };
- const callTypeOrder = ['被叫', '主叫', '其他'];
- const ratioEntries = Object.entries(callStatInfo?.callRatioMap || {}).sort(([nameA], [nameB]) => {
- const indexA = callTypeOrder.indexOf(nameA);
- const indexB = callTypeOrder.indexOf(nameB);
- return (indexA === -1 ? 99 : indexA) - (indexB === -1 ? 99 : indexB);
- });
- if (ratioEntries.length) {
- const normalizedRatioEntries = ratioEntries
- .map(([name, value]) => {
- const rawValue = typeof value === 'string' ? value.replace('%', '') : value;
- const ratioValue = Number(rawValue || 0);
- return {
- name,
- value: Number.isFinite(ratioValue) ? ratioValue : 0,
- itemStyle: {
- color: callTypeColorMap[name] || '#5b8ff9',
- },
- };
- })
- .filter((item) => String(item.name || '').trim() && item.value > 0);
- if (normalizedRatioEntries.length) {
- return normalizedRatioEntries;
- }
- }
- const countEntries = [
- { name: '被叫', count: Number(callStatInfo?.inCount || 0) },
- { name: '主叫', count: Number(callStatInfo?.outCount || 0) },
- { name: '其他', count: Number(callStatInfo?.otherCount || 0) },
- ];
- const total = countEntries.reduce((sum, item) => sum + (Number.isFinite(item.count) ? item.count : 0), 0);
- if (!total) return [];
- return countEntries.map(({ name, count }) => ({
- name,
- value: Number((((Number.isFinite(count) ? count : 0) / total) * 100).toFixed(2)),
- itemStyle: {
- color: callTypeColorMap[name] || '#5b8ff9',
- },
- }));
- };
- const normalizeStationList = (resp: any): CallStatStationDTO[] => {
- if (Array.isArray(resp)) return normalizeObjectList<CallStatStationDTO>(resp);
- if (Array.isArray(resp?.data)) return normalizeObjectList<CallStatStationDTO>(resp.data);
- if (Array.isArray(resp?.list)) return normalizeObjectList<CallStatStationDTO>(resp.list);
- if (Array.isArray(resp?.records)) return normalizeObjectList<CallStatStationDTO>(resp.records);
- if (Array.isArray(resp?.data?.list)) return normalizeObjectList<CallStatStationDTO>(resp.data.list);
- if (Array.isArray(resp?.data?.records)) return normalizeObjectList<CallStatStationDTO>(resp.data.records);
- return [];
- };
- const fetchProfileData = async () => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- resetRightPanelData();
- return;
- }
- loadingProfile.value = true;
- try {
- const [callStatResp, transStatResp, callTop10Resp, callStationResp, transTop10Resp, transTrendResp] =
- await Promise.all([
- callStat(personName),
- transStat(personName),
- loadCommTopData(personName),
- callStatStation({ personName }),
- loadTradeTopData(personName),
- loadTradeTrendData(personName),
- ]);
- callStatData.value = callStatResp || null;
- transStatData.value = transStatResp || null;
- commTypeRatioData.value = buildCommTypeRatioData(callStatResp);
- commTop10Data.value = normalizeCallTopRows(callTop10Resp);
- stationData.value = normalizeStationList(callStationResp);
- tradeTop10Data.value = normalizeTradeTopRows(transTop10Resp);
- tradeTrendData.value = normalizeTrendRows(transTrendResp);
- } catch (error) {
- console.error('获取数据画像右侧数据失败', error);
- resetRightPanelData();
- } finally {
- loadingProfile.value = false;
- }
- };
- function selectPerson(id: number) {
- if (selectedPersonId.value === id) return;
- resetProfilePanelQueries();
- selectedPersonId.value = id;
- fetchProfileData();
- }
- const findPortraitPersonIndex = () => {
- const routePersonName = String(route.query.personName || '').trim();
- const routePersonCertNo = String(route.query.personCertNo || '').trim();
- if (!routePersonName && !routePersonCertNo) return -1;
- return personList.value.findIndex((person) => {
- const currentName = String(person.personName || '').trim();
- const currentCertNo = String(person.personCertNo || '').trim();
- if (routePersonCertNo && currentCertNo && currentCertNo === routePersonCertNo) return true;
- if (routePersonName && currentName && currentName === routePersonName) return true;
- return false;
- });
- };
- const syncSelectedPersonFromRoute = async () => {
- const targetIndex = findPortraitPersonIndex();
- if (targetIndex < 0) return false;
- if (selectedPersonId.value === targetIndex) return true;
- resetProfilePanelQueries();
- selectedPersonId.value = targetIndex;
- await fetchProfileData();
- return true;
- };
- const fetchPersons = async () => {
- try {
- const data = await getPersons();
- personList.value = Array.isArray(data) ? data : [];
- if (!personList.value.length) {
- selectedPersonId.value = null;
- return;
- }
- if (await syncSelectedPersonFromRoute()) {
- return;
- }
- if (selectedPersonId.value === null) {
- resetProfilePanelQueries();
- selectedPersonId.value = 0;
- await fetchProfileData();
- }
- } catch (error) {
- console.error('获取人员信息失败', error);
- personList.value = [];
- }
- };
- const openCreateModal = () => {
- isEditMode.value = false;
- editingPerson.value = null;
- resetPersonForm();
- personModalVisible.value = true;
- };
- const revokeAvatarPreviewObjectUrl = () => {
- if (!avatarPreviewObjectUrl.value) return;
- URL.revokeObjectURL(avatarPreviewObjectUrl.value);
- avatarPreviewObjectUrl.value = '';
- };
- const updatePersonPhotograph = (source?: string | null) => {
- personForm.photograph = String(source || '').trim();
- };
- const personAvatarPreviewSrc = computed(
- () => avatarPreviewObjectUrl.value || String(personForm.photograph || '').trim(),
- );
- const stripLocalFileProtocol = (value: string) => {
- const source = String(value || '').trim();
- if (!/^file:\/\//i.test(source)) return source;
- const decoded = decodeURI(source.replace(/^file:\/\//i, ''));
- if (/^\/[a-zA-Z]:/.test(decoded)) {
- return decoded.slice(1);
- }
- return decoded;
- };
- const resolveLocalAvatarPath = (file: File) => {
- const electronApi = window.electron;
- const localPath =
- electronApi?.getPathForFile?.(file) || String((file as File & { path?: string }).path || '').trim();
- if (localPath) {
- return stripLocalFileProtocol(localPath);
- }
- return '';
- };
- const updateAvatarPreviewFromFile = (file: File) => {
- revokeAvatarPreviewObjectUrl();
- avatarPreviewObjectUrl.value = URL.createObjectURL(file);
- };
- const openAvatarFileDialog = () => {
- avatarInputRef.value?.click();
- };
- const clearAvatarSelection = () => {
- revokeAvatarPreviewObjectUrl();
- updatePersonPhotograph('');
- if (avatarInputRef.value) {
- avatarInputRef.value.value = '';
- }
- };
- const handleAvatarFileChange = (event: Event) => {
- const input = event.target as HTMLInputElement | null;
- const file = input?.files?.[0];
- if (!file) return;
- if (file.type && !file.type.startsWith('image/')) {
- createMessage.warning('请选择图片文件');
- input.value = '';
- return;
- }
- updateAvatarPreviewFromFile(file);
- updatePersonPhotograph(resolveLocalAvatarPath(file) || avatarPreviewObjectUrl.value);
- input.value = '';
- };
- const openEditModal = (person: PersonBasicInfo) => {
- isEditMode.value = true;
- editingPerson.value = person;
- fillPersonForm(person);
- personModalVisible.value = true;
- };
- const handleEditBasicInfo = () => {
- if (!selectedPerson.value) {
- createMessage.warning('请先选择对象');
- return;
- }
- openEditModal(selectedPerson.value);
- };
- interface JumpToAnalysisPayload {
- personName: string;
- otherName: string;
- behaviorType: string;
- detailRecord: Record<string, unknown>;
- path: string;
- query?: Record<string, string>;
- }
- const handleJumpToAnalysis = async (payload: JumpToAnalysisPayload) => {
- if (!payload.path) {
- createMessage.warning('当前行为暂未配置分析页跳转。');
- return;
- }
- const query: Record<string, string> = {
- ...(payload.query || {}),
- };
- const personName = String(payload.personName || '').trim();
- const otherName = String(payload.otherName || '').trim();
- if (personName) {
- query.personName = personName;
- if (!query.personNames) {
- query.personNames = personName;
- }
- }
- if (otherName) {
- query.otherName = otherName;
- }
- query.jumpAt = String(Date.now());
- createMessage.info(`正在跳转至${payload.behaviorType}分析页面...`);
- await router.push({
- path: payload.path,
- query,
- });
- };
- const closePersonModal = () => {
- personModalVisible.value = false;
- };
- const openGroupModal = () => {
- groupModalVisible.value = true;
- };
- const openGroupModalFromRoute = async () => {
- if (route.query.openGroupModal !== '1') return;
- groupModalVisible.value = true;
- if (route.query.openCreateGroupModal === '1') {
- await nextTick();
- groupManageModalRef.value?.startCreateGroup();
- }
- const { openGroupModal: _openGroupModal, openCreateGroupModal: _openCreateGroupModal, ...query } = route.query;
- await router.replace({ path: route.path, query });
- };
- watch(
- () => [route.query.openGroupModal, route.query.openCreateGroupModal],
- () => {
- void openGroupModalFromRoute();
- },
- );
- const resolvePageTotal = (resp: any, records: unknown[] = []) => {
- const total = Number(resp?.total ?? resp?.count ?? resp?.page?.total ?? resp?.page?.count);
- if (Number.isFinite(total) && total >= 0) {
- return total;
- }
- return records.length;
- };
- const loadCallSummary = async () => {
- const person = selectedPerson.value;
- if (!person?.personName) {
- callSummaryRows.value = [];
- callSummaryPagination.total = 0;
- return;
- }
- const personPhones = getSelectedPersonPhones(person);
- callSummaryLoading.value = true;
- try {
- const resp = await getCallRecordSummary(
- Object.assign(callSummaryQuery, {
- page: callSummaryPagination.page,
- limit: callSummaryPagination.limit,
- personName: person.personName,
- personPhones,
- keyword: callSummaryQuery.keyword || undefined,
- otherName: callSummaryQuery.otherName || undefined,
- otherPhones: callSummaryQuery.otherPhone ? [callSummaryQuery.otherPhone] : undefined,
- callDirection: callSummaryQuery.callDirection || undefined,
- callType: callSummaryQuery.callType || undefined,
- startDate: callSummaryQuery.startDate || undefined,
- endDate: callSummaryQuery.endDate || undefined,
- orderKey: callSummaryQuery.orderKey || undefined,
- sort: callSummaryQuery.sort || undefined,
- }) as any,
- );
- const records = Array.isArray(resp?.records) ? resp.records : Array.isArray(resp) ? resp : [];
- callSummaryRows.value = records.map((item: any, index: number) => ({
- rowKey: `${item.personName || ''}-${item.personPhone || ''}-${item.otherPhone || ''}-${index}`,
- personName: fallbackValue(item.personName || person.personName),
- personPhone: fallbackValue(item.personPhone),
- otherName: fallbackValue(item.otherName),
- otherPhone: fallbackValue(item.otherPhone),
- callCount: fallbackValue(item.callCount),
- }));
- callSummaryPagination.total = resolvePageTotal(resp, records);
- } catch (error) {
- console.error('查询通话记录列表失败', error);
- callSummaryRows.value = [];
- callSummaryPagination.total = 0;
- } finally {
- callSummaryLoading.value = false;
- }
- };
- const loadCallOperPhoneInfo = async () => {
- const person = selectedPerson.value;
- if (!person?.personName || !callOperPhoneQuery.phoneList.length) {
- callOperPhoneAllRows.value = [];
- callOperPhoneRows.value = [];
- callOperPhonePagination.total = 0;
- return;
- }
- callOperPhoneLoading.value = true;
- try {
- const resp = await getCallOperPhoneInfo({
- personName: person.personName,
- phoneList: callOperPhoneQuery.phoneList.length ? callOperPhoneQuery.phoneList : undefined,
- operatorId: callOperPhoneQuery.operatorId || undefined,
- } as CallOperPhoneInfoQuery);
- const rawRecords = Array.isArray((resp as any)?.records)
- ? (resp as any).records
- : Array.isArray(resp)
- ? resp
- : [];
- callOperPhoneAllRows.value = rawRecords.map((item: CallOpenInfo, index: number) => ({
- rowKey: `${item.personName || person.personName || ''}-${item.operatorId || ''}-${item.personPhone || ''}-${index}`,
- personName: item.personName || person.personName || '-',
- personPhone: fallbackValue(item.personPhone),
- phoneNumber: fallbackValue(item.personPhone),
- phoneType: fallbackValue(item.phoneType),
- operatorId: fallbackValue(item.operatorId),
- operatorName: fallbackValue(item.operatorId),
- personType: fallbackValue(item.personType),
- personCertNo: fallbackValue(item.personCertNo),
- personCertAddress: fallbackValue(item.personCertAddress),
- mailingAddress: fallbackValue(item.mailingAddress),
- province: fallbackValue(item.province),
- city: fallbackValue(item.city),
- phoneStatus: fallbackValue(item.phoneStatus),
- activationDateTime: fallbackValue(item.activationDateTime),
- closingDateTime: fallbackValue(item.closingDateTime),
- firstCallDateTime: fallbackValue(item.firstCallDateTime),
- lastSuspensionDateTime: fallbackValue(item.lastSuspensionDateTime),
- }));
- applyCallOperPhoneRows();
- } catch (error) {
- console.error('查询运营商手机号信息失败', error);
- callOperPhoneAllRows.value = [];
- callOperPhoneRows.value = [];
- callOperPhonePagination.total = 0;
- } finally {
- callOperPhoneLoading.value = false;
- }
- };
- const applyCallOperPhoneRows = () => {
- const personNameKeyword = callOperPhoneQuery.personName.trim().toLocaleLowerCase();
- const operatorNameKeyword = callOperPhoneQuery.operatorName.trim().toLocaleLowerCase();
- const phoneNumberKeyword = callOperPhoneQuery.phoneNumber.trim().toLocaleLowerCase();
- const filteredRows = callOperPhoneAllRows.value.filter((item) => {
- const matchPersonName =
- !personNameKeyword ||
- String(item.personName || '')
- .toLocaleLowerCase()
- .includes(personNameKeyword);
- const matchOperatorName =
- !operatorNameKeyword ||
- String(item.operatorName || '')
- .toLocaleLowerCase()
- .includes(operatorNameKeyword);
- const matchPhoneNumber =
- !phoneNumberKeyword ||
- String(item.phoneNumber || '')
- .toLocaleLowerCase()
- .includes(phoneNumberKeyword);
- return matchPersonName && matchOperatorName && matchPhoneNumber;
- });
- const sortedRows = [...filteredRows];
- if (callOperPhoneQuery.orderKey) {
- const sortFactor = callOperPhoneQuery.sort === 'ASC' ? 1 : -1;
- sortedRows.sort((left, right) => {
- const leftValue = String(left?.[callOperPhoneQuery.orderKey as keyof typeof left] || '');
- const rightValue = String(right?.[callOperPhoneQuery.orderKey as keyof typeof right] || '');
- return leftValue.localeCompare(rightValue, 'zh-CN', { numeric: true }) * sortFactor;
- });
- }
- callOperPhonePagination.total = sortedRows.length;
- const start = (callOperPhonePagination.page - 1) * callOperPhonePagination.limit;
- const end = start + callOperPhonePagination.limit;
- callOperPhoneRows.value = sortedRows.slice(start, end);
- };
- const loadTransBankCardInfo = async () => {
- if (!transBankCardQuery.bankName || !transBankCardQuery.cardNoList.length) {
- transBankCardRows.value = [];
- transBankCardPagination.total = 0;
- return;
- }
- transBankCardLoading.value = true;
- try {
- const resp = await getTransBankCardInfo({
- page: transBankCardPagination.page,
- limit: transBankCardPagination.limit,
- keyword: transBankCardQuery.keyword || undefined,
- orderKey: transBankCardQuery.orderKey || undefined,
- sort: transBankCardQuery.sort || undefined,
- bankName: transBankCardQuery.bankName || undefined,
- cardNoList: transBankCardQuery.cardNoList.length ? transBankCardQuery.cardNoList : undefined,
- } as TransBankCardInfoQuery);
- const rawRecords = Array.isArray((resp as any)?.records)
- ? (resp as any).records
- : Array.isArray(resp)
- ? resp
- : [];
- const records = Array.isArray((resp as any)?.records)
- ? rawRecords
- : rawRecords.slice(
- (transBankCardPagination.page - 1) * transBankCardPagination.limit,
- transBankCardPagination.page * transBankCardPagination.limit,
- );
- transBankCardRows.value = records.map((item: TransBankCardInfoDTO, index: number) => ({
- rowKey: `${item.personCardNo || ''}-${index}`,
- personCardNo: fallbackValue(item.personCardNo),
- personName: fallbackValue(item.personName),
- bankName: fallbackValue(item.bankName),
- transIncome: fallbackValue(item.transIncome),
- transExpend: fallbackValue(item.transExpend),
- transBalance: fallbackValue(item.transBalance),
- transCount: fallbackValue(item.transCount),
- accountLeftMoney: fallbackValue(item.accountLeftMoney),
- totalBalance: fallbackValue(item.totalBalance),
- accountStatus: fallbackValue(item.accountStatus),
- openAccountDate: fallbackValue(item.openAccountDate || item.openingDate),
- openingDate: fallbackValue(item.openingDate || item.openAccountDate),
- closeAccountDate: fallbackValue(item.closeAccountDate),
- incomeTotalAmount: fallbackValue(item.incomeTotalAmount),
- expenseTotalAmount: fallbackValue(item.expenseTotalAmount),
- netAmount: fallbackValue(item.netAmount),
- transTotalAmount: fallbackValue(item.transTotalAmount),
- }));
- transBankCardPagination.total = Number((resp as any)?.count || (resp as any)?.total || rawRecords.length || 0);
- } catch (error) {
- console.error('查询银行卡交易信息失败', error);
- transBankCardRows.value = [];
- transBankCardPagination.total = 0;
- } finally {
- transBankCardLoading.value = false;
- }
- };
- const applyCallSummaryQuery = (query: Partial<CallSummaryQueryState> = {}) => {
- Object.assign(callSummaryQuery, createCallSummaryQuery(), query);
- };
- const applyCallOperPhoneQuery = (query: Partial<CallOperPhoneQueryState> = {}) => {
- Object.assign(callOperPhoneQuery, createCallOperPhoneQuery(), query);
- };
- const applyTransBankCardQuery = (query: Partial<TransBankCardQueryState> = {}) => {
- Object.assign(transBankCardQuery, createTransBankCardQuery(), query);
- };
- const setCallSummaryBaseQuery = (query: Partial<CallSummaryQueryState> = {}) => {
- callSummaryBaseQuery.value = {
- ...createCallSummaryQuery(),
- ...query,
- };
- };
- const setCallOperPhoneBaseQuery = (query: Partial<CallOperPhoneQueryState> = {}) => {
- callOperPhoneBaseQuery.value = {
- ...createCallOperPhoneQuery(),
- ...query,
- };
- };
- const setTransBankCardBaseQuery = (query: Partial<TransBankCardQueryState> = {}) => {
- transBankCardBaseQuery.value = {
- ...createTransBankCardQuery(),
- ...query,
- };
- };
- const resetCallSummaryFilters = () => {
- applyCallSummaryQuery(callSummaryBaseQuery.value);
- };
- const resetCallOperPhoneFilters = () => {
- applyCallOperPhoneQuery(callOperPhoneBaseQuery.value);
- };
- const resetTransBankCardFilters = () => {
- applyTransBankCardQuery(transBankCardBaseQuery.value);
- };
- const getCommTopDateRangeQuery = (): Partial<CallSummaryQueryState> => {
- return {
- startDate: commTopQuery.dateRange?.[0] || '',
- endDate: commTopQuery.dateRange?.[1] || '',
- };
- };
- const openCallSummaryWithFilters = async (
- overrides: Partial<CallSummaryQueryState> = {},
- options?: { useCommTopDateRange?: boolean },
- ) => {
- const nextBaseQuery: Partial<CallSummaryQueryState> = options?.useCommTopDateRange
- ? getCommTopDateRangeQuery()
- : {};
- Object.assign(nextBaseQuery, overrides);
- setCallSummaryBaseQuery(nextBaseQuery);
- resetCallSummaryFilters();
- callSummaryModalVisible.value = true;
- callSummaryPagination.page = 1;
- await loadCallSummary();
- };
- const openCallOperPhoneModal = async (carrierInfo = carrierTags.value[0]) => {
- const person = selectedPerson.value;
- if (!person?.personName || !carrierInfo.carrierName || !carrierInfo.phoneList.length) {
- createMessage.warning('暂无运营商手机号数据');
- return;
- }
- callOperPhoneModalTitle.value = `${carrierInfo.carrierName}手机号信息`;
- setCallOperPhoneBaseQuery({
- phoneList: carrierInfo.phoneList,
- operatorId: carrierInfo.operatorId || '',
- });
- resetCallOperPhoneFilters();
- callOperPhoneModalVisible.value = true;
- callOperPhonePagination.page = 1;
- await loadCallOperPhoneInfo();
- };
- const openTransBankCardModal = async (tag: { bankName: string; cardNoList: string[] }) => {
- if (!tag.bankName || !tag.cardNoList.length) {
- createMessage.warning('暂无银行卡数据');
- return;
- }
- transBankCardModalTitle.value = '银行卡交易信息';
- setTransBankCardBaseQuery({
- bankName: tag.bankName,
- cardNoList: tag.cardNoList,
- });
- resetTransBankCardFilters();
- transBankCardModalVisible.value = true;
- transBankCardPagination.page = 1;
- await loadTransBankCardInfo();
- };
- const openCallRecordWithFilters = (
- overrides: Partial<CallRecordQuery> = {},
- options?: { useCommTopDateRange?: boolean; omitPersonPhones?: boolean },
- ) => {
- const person = selectedPerson.value;
- if (!person?.personName) return;
- callRecordBaseQuery.value = {
- personName: person.personName,
- ...(!options?.omitPersonPhones ? { personPhones: getSelectedPersonPhones(person) } : {}),
- ...(options?.useCommTopDateRange ? getCommTopDateRangeQuery() : {}),
- ...overrides,
- };
- callRecordModalVisible.value = true;
- };
- const toSummaryQueryText = (value?: string) => {
- const text = String(value || '').trim();
- return text && text !== '-' ? text : '';
- };
- const toSummaryNumericText = (value?: string | number) => {
- const text = String(value ?? '')
- .replace(/,/g, '')
- .trim();
- if (!text) return '';
- const num = Number(text);
- return Number.isFinite(num) ? text : '';
- };
- const handleViewCallSummaryDetail = (record: any) => {
- const person = selectedPerson.value;
- if (!person?.personName) {
- createMessage.warning('请先选择对象');
- return;
- }
- const personPhone = toSummaryQueryText(record?.personPhone);
- const otherName = toSummaryQueryText(record?.otherName);
- const otherPhone = toSummaryQueryText(record?.otherPhone);
- openCallRecordWithFilters({
- personPhones: personPhone ? [personPhone] : getSelectedPersonPhones(person),
- otherName: otherName || undefined,
- otherPhones: otherPhone ? [otherPhone] : undefined,
- callDirection: callSummaryQuery.callDirection || undefined,
- callType: callSummaryQuery.callType || undefined,
- startDate: callSummaryQuery.startDate || undefined,
- endDate: callSummaryQuery.endDate || undefined,
- });
- };
- const handleViewCallOperPhoneDetail = (record: any) => {
- const person = selectedPerson.value;
- if (!person?.personName) {
- createMessage.warning('请先选择对象');
- return;
- }
- const personPhone = toSummaryQueryText(record?.personPhone || record?.phoneNumber);
- if (!personPhone) {
- createMessage.warning('当前手机号信息缺失,无法查看详情');
- return;
- }
- const operatorId = toSummaryQueryText(record?.operatorId);
- openCallRecordWithFilters({
- personPhones: [personPhone],
- operatorId: operatorId || undefined,
- });
- };
- const handleViewTransSummaryDetail = (record: any) => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- createMessage.warning('请先选择对象');
- return;
- }
- openTransRecordDrilldown({
- personCardNo: toSummaryQueryText(record?.personCardNo) || undefined,
- otherName: toSummaryQueryText(record?.otherName) || undefined,
- otherCardNo: toSummaryQueryText(record?.otherCardNo) || undefined,
- bankName: toSummaryQueryText(record?.bankName) || undefined,
- });
- };
- const handleViewTransBankCardDetail = (record: any) => {
- const personCardNo = toSummaryQueryText(record?.personCardNo);
- if (!personCardNo) {
- createMessage.warning('当前卡号信息缺失,无法查看详情');
- return;
- }
- openTransRecordDrilldown({
- personCardNo,
- bankName: toSummaryQueryText(transBankCardQuery.bankName) || undefined,
- });
- };
- const openCallSummaryModal = async () => {
- await openCallSummaryWithFilters();
- };
- const loadTransSummary = async () => {
- const person = selectedPerson.value;
- if (!person?.personName) {
- transSummaryRows.value = [];
- transSummaryPagination.total = 0;
- return;
- }
- transSummaryLoading.value = true;
- try {
- const transAmount = toSummaryNumericText(transSummaryQuery.transAmount);
- const transCountText = toSummaryNumericText(transSummaryQuery.transCount);
- const query: TransRecordSummaryQuery = {
- page: transSummaryPagination.page,
- limit: transSummaryPagination.limit,
- personNames: person.personName ? [person.personName] : undefined,
- personCardNo: toSummaryQueryText(transSummaryQuery.personCardNo) || undefined,
- otherName: toSummaryQueryText(transSummaryQuery.otherName) || undefined,
- transAmount: transAmount || undefined,
- transCount: transCountText ? Number(transCountText) : undefined,
- transAmountSymbol: transAmount
- ? normalizeCompareOperator(transSummaryQuery.transAmountSymbol, DEFAULT_COMPARE_OPERATOR)
- : undefined,
- transCountSymbol: transCountText
- ? normalizeCompareOperator(transSummaryQuery.transCountSymbol, DEFAULT_COMPARE_OPERATOR)
- : undefined,
- orderKey: transSummaryQuery.orderKey || undefined,
- sort: transSummaryQuery.sort || undefined,
- };
- const resp = await getTransRecordSummary(query);
- const records = Array.isArray(resp?.records) ? resp.records : Array.isArray(resp) ? resp : [];
- transSummaryRows.value = records.map((item: TransRecordSummaryDTO, index: number) => ({
- rowKey: `${item.personName || ''}-${item.otherCardNo || ''}-${index}`,
- personCardNo: fallbackValue(item.personCardNo),
- personName: fallbackValue(item.personName || person.personName),
- otherCardNo: fallbackValue(item.otherCardNo),
- otherName: fallbackValue(item.otherName),
- bankName: fallbackValue(item.bankName),
- transCount: fallbackValue(item.transCount),
- transTotalAmount: fallbackValue(item.transTotalAmount),
- incomeTotalAmount: fallbackValue(item.incomeTotalAmount),
- expenseTotalAmount: fallbackValue(item.expenseTotalAmount),
- cashKey: Array.isArray(item.cashKey) && item.cashKey.length ? item.cashKey.join('、') : '-',
- }));
- transSummaryPagination.total = resolvePageTotal(resp, records);
- } catch (error) {
- console.error('查询交易汇总失败', error);
- transSummaryRows.value = [];
- transSummaryPagination.total = 0;
- } finally {
- transSummaryLoading.value = false;
- }
- };
- const applyTransSummaryQuery = (query: Partial<TransSummaryQueryState> = {}) => {
- Object.assign(transSummaryQuery, createTransSummaryQuery(), {
- ...query,
- transAmountSymbol: normalizeCompareOperator(query.transAmountSymbol, DEFAULT_COMPARE_OPERATOR),
- transCountSymbol: normalizeCompareOperator(query.transCountSymbol, DEFAULT_COMPARE_OPERATOR),
- });
- };
- const setTransSummaryBaseQuery = (query: Partial<TransSummaryQueryState> = {}) => {
- transSummaryBaseQuery.value = {
- ...createTransSummaryQuery(),
- ...query,
- transAmountSymbol: normalizeCompareOperator(query.transAmountSymbol, DEFAULT_COMPARE_OPERATOR),
- transCountSymbol: normalizeCompareOperator(query.transCountSymbol, DEFAULT_COMPARE_OPERATOR),
- };
- };
- const resetTransSummaryFilters = () => {
- applyTransSummaryQuery(transSummaryBaseQuery.value);
- };
- const openTransSummaryWithFilters = async (overrides: Partial<TransSummaryQueryState> = {}) => {
- setTransSummaryBaseQuery(overrides);
- resetTransSummaryFilters();
- transSummaryModalVisible.value = true;
- transSummaryPagination.page = 1;
- await loadTransSummary();
- };
- const openTransSummaryModal = async () => {
- await openTransSummaryWithFilters();
- };
- const handleSearchCallSummary = async () => {
- callSummaryPagination.page = 1;
- await loadCallSummary();
- };
- const handleSearchCallOperPhone = async () => {
- callOperPhonePagination.page = 1;
- applyCallOperPhoneRows();
- };
- const handleSearchTransBankCard = async () => {
- transBankCardPagination.page = 1;
- await loadTransBankCardInfo();
- };
- const handleSearchTransSummary = async () => {
- transSummaryPagination.page = 1;
- await loadTransSummary();
- };
- const handleResetCallSummary = async () => {
- resetCallSummaryFilters();
- callSummaryPagination.page = 1;
- await loadCallSummary();
- };
- const handleResetCallOperPhone = async () => {
- resetCallOperPhoneFilters();
- callOperPhonePagination.page = 1;
- applyCallOperPhoneRows();
- };
- const handleResetTransBankCard = async () => {
- resetTransBankCardFilters();
- transBankCardPagination.page = 1;
- await loadTransBankCardInfo();
- };
- const handleResetTransSummary = async () => {
- resetTransSummaryFilters();
- transSummaryPagination.page = 1;
- await loadTransSummary();
- };
- const handleCallSummaryPrevPage = async () => {
- if (callSummaryPagination.page <= 1) return;
- callSummaryPagination.page -= 1;
- await loadCallSummary();
- };
- const handleCallSummaryNextPage = async () => {
- if (callSummaryPagination.page >= callSummaryTotalPages.value) return;
- callSummaryPagination.page += 1;
- await loadCallSummary();
- };
- const handleCallSummaryPageChange = async (page: number, pageSize: number) => {
- if (callSummaryLoading.value) return;
- if (pageSize !== callSummaryPagination.limit) {
- await handleCallSummaryPageSizeChange(pageSize);
- return;
- }
- if (page === callSummaryPagination.page - 1) {
- await handleCallSummaryPrevPage();
- return;
- }
- if (page === callSummaryPagination.page + 1) {
- await handleCallSummaryNextPage();
- return;
- }
- if (page === callSummaryPagination.page) return;
- callSummaryPagination.page = page;
- await loadCallSummary();
- };
- const handleCallOperPhonePrevPage = async () => {
- if (callOperPhonePagination.page <= 1) return;
- callOperPhonePagination.page -= 1;
- applyCallOperPhoneRows();
- };
- const handleCallOperPhoneNextPage = async () => {
- if (callOperPhonePagination.page >= callOperPhoneTotalPages.value) return;
- callOperPhonePagination.page += 1;
- applyCallOperPhoneRows();
- };
- const handleCallOperPhonePageChange = async (page: number, pageSize: number) => {
- if (callOperPhoneLoading.value) return;
- if (pageSize !== callOperPhonePagination.limit) {
- await handleCallOperPhonePageSizeChange(pageSize);
- return;
- }
- if (page === callOperPhonePagination.page - 1) {
- await handleCallOperPhonePrevPage();
- return;
- }
- if (page === callOperPhonePagination.page + 1) {
- await handleCallOperPhoneNextPage();
- return;
- }
- if (page === callOperPhonePagination.page) return;
- callOperPhonePagination.page = page;
- applyCallOperPhoneRows();
- };
- const handleTransBankCardPrevPage = async () => {
- if (transBankCardPagination.page <= 1) return;
- transBankCardPagination.page -= 1;
- await loadTransBankCardInfo();
- };
- const handleTransBankCardNextPage = async () => {
- if (transBankCardPagination.page >= transBankCardTotalPages.value) return;
- transBankCardPagination.page += 1;
- await loadTransBankCardInfo();
- };
- const handleTransBankCardPageChange = async (page: number, pageSize: number) => {
- if (transBankCardLoading.value) return;
- if (pageSize !== transBankCardPagination.limit) {
- await handleTransBankCardPageSizeChange(pageSize);
- return;
- }
- if (page === transBankCardPagination.page - 1) {
- await handleTransBankCardPrevPage();
- return;
- }
- if (page === transBankCardPagination.page + 1) {
- await handleTransBankCardNextPage();
- return;
- }
- if (page === transBankCardPagination.page) return;
- transBankCardPagination.page = page;
- await loadTransBankCardInfo();
- };
- const handleCallSummaryPageSizeChange = async (value: number) => {
- callSummaryPagination.limit = Number(value);
- callSummaryPagination.page = 1;
- await loadCallSummary();
- };
- const handleCallOperPhonePageSizeChange = async (value: number) => {
- callOperPhonePagination.limit = Number(value);
- callOperPhonePagination.page = 1;
- applyCallOperPhoneRows();
- };
- const handleTransBankCardPageSizeChange = async (value: number) => {
- transBankCardPagination.limit = Number(value);
- transBankCardPagination.page = 1;
- await loadTransBankCardInfo();
- };
- const handleSortCallSummary = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
- callSummaryQuery.orderKey = orderKey;
- callSummaryQuery.sort = sort;
- callSummaryPagination.page = 1;
- await loadCallSummary();
- };
- const handleSortCallOperPhone = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
- callOperPhoneQuery.orderKey = orderKey;
- callOperPhoneQuery.sort = sort;
- callOperPhonePagination.page = 1;
- applyCallOperPhoneRows();
- };
- const handleSortTransBankCard = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
- transBankCardQuery.orderKey = orderKey;
- transBankCardQuery.sort = sort;
- transBankCardPagination.page = 1;
- await loadTransBankCardInfo();
- };
- const handleTransSummaryPrevPage = async () => {
- if (transSummaryPagination.page <= 1) return;
- transSummaryPagination.page -= 1;
- await loadTransSummary();
- };
- const handleTransSummaryNextPage = async () => {
- if (transSummaryPagination.page >= transSummaryTotalPages.value) return;
- transSummaryPagination.page += 1;
- await loadTransSummary();
- };
- const handleTransSummaryPageChange = async (page: number, pageSize: number) => {
- if (transSummaryLoading.value) return;
- if (pageSize !== transSummaryPagination.limit) {
- await handleTransSummaryPageSizeChange(pageSize);
- return;
- }
- if (page === transSummaryPagination.page - 1) {
- await handleTransSummaryPrevPage();
- return;
- }
- if (page === transSummaryPagination.page + 1) {
- await handleTransSummaryNextPage();
- return;
- }
- if (page === transSummaryPagination.page) return;
- transSummaryPagination.page = page;
- await loadTransSummary();
- };
- const handleTransSummaryPageSizeChange = async (value: number) => {
- transSummaryPagination.limit = Number(value);
- transSummaryPagination.page = 1;
- await loadTransSummary();
- };
- const handleSortTransSummary = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
- transSummaryQuery.orderKey = orderKey;
- transSummaryQuery.sort = sort;
- transSummaryPagination.page = 1;
- await loadTransSummary();
- };
- const openTransRecordDrilldown = (baseQuery: TransRecordDrilldownQuery) => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- createMessage.warning('请先选择对象');
- return;
- }
- transRecordBaseQuery.value = {
- personName,
- ...baseQuery,
- };
- transRecordModalVisible.value = true;
- };
- const handleTransRecordJump = () => {
- transRecordModalVisible.value = false;
- transBankCardModalVisible.value = false;
- transSummaryModalVisible.value = false;
- };
- const handleCallRecordJump = () => {
- callRecordModalVisible.value = false;
- callOperPhoneModalVisible.value = false;
- callSummaryModalVisible.value = false;
- };
- const handleDrillByDebitCredit = (flag: '收入' | '支出') => {
- openTransRecordDrilldown({
- debitCreditFlag: flag,
- });
- };
- const handleDrillByTradeTop = (item: { name: string; filterValue?: string }) => {
- const filterValue = String(item?.filterValue || item?.name || '').trim();
- const baseQuery: Partial<TransRecordQuery> = {
- indicator: tradeTopQuery.indicator,
- };
- const startDate = tradeTopQuery.dateRange?.[0];
- const endDate = tradeTopQuery.dateRange?.[1];
- if (startDate && endDate) {
- baseQuery.startDate = startDate;
- baseQuery.endDate = endDate;
- }
- if (filterValue) {
- if (tradeTopQuery.indicator === 'otherCardNo') {
- baseQuery.otherCardNo = filterValue;
- } else if (tradeTopQuery.indicator === 'personName') {
- baseQuery.otherName = filterValue;
- } else if (tradeTopQuery.indicator === 'branchName') {
- baseQuery.branchName = filterValue;
- } else if (tradeTopQuery.indicator === 'personIpAddress') {
- baseQuery.personIpAddress = filterValue;
- } else if (tradeTopQuery.indicator === 'personMacAddress') {
- baseQuery.personMacAddress = filterValue;
- }
- }
- openTransRecordDrilldown(baseQuery);
- };
- const handleCommTopRowClick = (row: { otherName?: string; otherPhone?: string }) => {
- if (!row) return;
- const baseQuery: Partial<CallRecordQuery> = row.otherPhone
- ? { otherPhones: [row.otherPhone] }
- : row.otherName
- ? { otherName: row.otherName }
- : {};
- openCallRecordWithFilters(baseQuery, { useCommTopDateRange: true, omitPersonPhones: true });
- };
- const handleSearchTradeTrend = async () => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- tradeTrendData.value = [];
- return;
- }
- loadingProfile.value = true;
- try {
- tradeTrendData.value = await loadTradeTrendData(personName);
- tradeTrendChart?.resize();
- } catch (error) {
- console.error('查询交易趋势失败', error);
- tradeTrendData.value = [];
- } finally {
- loadingProfile.value = false;
- }
- };
- const handleTradeTrendOtherNameSearch = (value: string) => {
- tradeTrendOtherNameSearch.value = String(value || '').trim();
- if (tradeTrendOtherNameSearchTimer !== null) {
- window.clearTimeout(tradeTrendOtherNameSearchTimer);
- }
- tradeTrendOtherNameSearchTimer = window.setTimeout(() => {
- tradeTrendOtherNameSearchTimer = null;
- void loadTradeTrendOtherNameOptions({
- reset: true,
- search: tradeTrendOtherNameSearch.value,
- });
- }, 240);
- };
- const handleTradeTrendOtherNamePopupScroll = (event: UIEvent) => {
- const target = event.target as HTMLElement | null;
- if (!target || tradeTrendOtherNameLoading.value || !tradeTrendOtherNameHasMore.value) return;
- if (target.scrollTop + target.clientHeight >= target.scrollHeight - 24) {
- void loadTradeTrendOtherNameOptions();
- }
- };
- const handleTradeTrendOtherNameDropdownVisibleChange = (open: boolean) => {
- if (!open) return;
- const personName = selectedPerson.value?.personName?.trim();
- if (!personName) return;
- if (tradeTrendOtherNameLoadedPerson.value !== personName || !tradeTrendOtherNameOptions.value.length) {
- tradeTrendOtherNameSearch.value = '';
- void loadTradeTrendOtherNameOptions({ reset: true, search: '' });
- }
- };
- const scheduleTradeTrendSearch = (delay = 240) => {
- if (tradeTrendSearchTimer !== null) {
- window.clearTimeout(tradeTrendSearchTimer);
- }
- tradeTrendSearchTimer = window.setTimeout(() => {
- tradeTrendSearchTimer = null;
- void handleSearchTradeTrend();
- }, delay);
- };
- const viewStationMap = () => {
- if (!canViewStationMap.value) {
- createMessage.warning('当前基站暂无可展示的坐标信息');
- return;
- }
- stationMapModalVisible.value = true;
- };
- const changeTradeTrendDimension = (dimension: 'MONTH' | 'YEAR') => {
- if (tradeTrendQuery.timeDimension === dimension) return;
- trendLegendArr.value = [
- { isShow: true, name: '收入', color: '#12b76a' },
- { isShow: true, name: '支出', color: '#2a50ec' },
- ];
- tradeTrendQuery.timeDimension = dimension;
- };
- const handleTrendChartResize = () => {
- tradeTrendChart?.resize();
- tradeRatioChart?.resize();
- tradeTopChart?.resize();
- commTopChart?.resize();
- if (commTypeChartRef.value && commTypeRatioData.value.length) {
- commTypeChart?.resize();
- initCommTypeChart();
- }
- };
- const handleSubmit = async () => {
- console.error('[portrait] handleSubmit clicked');
- (window as any).__portraitSaveDebug = {
- stage: 'clicked',
- form: { ...personForm },
- at: new Date().toISOString(),
- };
- console.error('[portrait] form snapshot before validation:', { ...personForm });
- // 校验姓名
- if (!personForm.personName.trim()) {
- console.error('[portrait] save blocked: empty personName');
- personNameError.value = '请输入姓名';
- createMessage.warning('请输入姓名');
- return;
- }
- // const nameRegex = /^[\u4e00-\u9fa5a-zA-Z\s·]+$/;
- // if (!nameRegex.test(personForm.personName.trim())) {
- // console.error('[portrait] save blocked: invalid personName');
- // personNameError.value = '姓名只能包含中文、字母或空格';
- // createMessage.warning('姓名格式不正确');
- // return;
- // }
- // if (personForm.personName.trim().length < 2) {
- // console.error('[portrait] save blocked: short personName');
- // personNameError.value = '姓名至少2个字符';
- // createMessage.warning('姓名至少2个字符');
- // return;
- // }
- personNameError.value = '';
- // 校验手机号
- const phoneErrors: string[] = [];
- personForm.phoneList.forEach((phone, index) => {
- if (phone.trim()) {
- const phoneRegex = /^1[3-9]\d{9}$/;
- if (!phoneRegex.test(phone.trim())) {
- phoneErrors[index] = '手机号格式不正确';
- }
- }
- });
- phoneListErrors.value = phoneErrors;
- // 校验银行卡
- const cardErrors: string[] = [];
- personForm.cardList.forEach((card, index) => {
- if (card.trim()) {
- if (card.trim().length < 16 || card.trim().length > 19) {
- cardErrors[index] = '银行卡号长度应为16-19位';
- }
- }
- });
- cardListErrors.value = cardErrors;
- if (phoneErrors.some(Boolean) || cardErrors.some(Boolean)) {
- console.error('[portrait] save blocked: phone/card validation failed', { phoneErrors, cardErrors });
- createMessage.warning('请检查输入格式');
- return;
- }
- saving.value = true;
- try {
- const uploadedPhotograph = String(personForm.photograph || '').trim();
- updatePersonPhotograph(uploadedPhotograph);
- const payload: PersonBasicInfoDTO = {
- personName: personForm.personName,
- personCertNo: personForm.personCertNo,
- personBirth: personForm.personBirth,
- personGender: personForm.personGender,
- personAge: personForm.personAge ? Number(personForm.personAge) : 0,
- personAddress: personForm.personAddress,
- photograph: uploadedPhotograph,
- marry: personForm.marry,
- nation: personForm.nation,
- nativePlace: personForm.nativePlace,
- householdRegistered: personForm.householdRegistered,
- personTag: personForm.personTag === '' ? null : personForm.personTag,
- phoneList: toLibNoList(personForm.phoneList.filter((p) => p.trim()).join(','), 2),
- cardList: toLibNoList(personForm.cardList.filter((c) => c.trim()).join(','), 3),
- };
- (window as any).__portraitSaveDebug = {
- stage: 'payload-ready',
- payload: JSON.parse(JSON.stringify(payload)),
- at: new Date().toISOString(),
- };
- console.error('[portrait] save person payload:', JSON.parse(JSON.stringify(payload)));
- if (isEditMode.value) {
- await updatePersonBasicInfo(payload);
- createMessage.success('更新成功');
- } else {
- await createPersonBasicInfo(payload);
- createMessage.success('新增成功');
- }
- personModalVisible.value = false;
- await fetchPersons();
- } catch (error: any) {
- console.error('[portrait] avatar upload/save error detail:', error?.response?.data || error?.message || error);
- console.error('[portrait] save debug snapshot:', (window as any).__portraitSaveDebug);
- console.error('保存人员失败', error);
- createMessage.error(isEditMode.value ? '更新失败' : '新增失败');
- } finally {
- saving.value = false;
- }
- };
- // 姓名校验方法
- const validatePersonName = () => {
- if (!personForm.personName.trim()) {
- personNameError.value = '请输入姓名';
- return;
- }
- const nameRegex = /^[\u4e00-\u9fa5a-zA-Z\s·]+$/;
- if (!nameRegex.test(personForm.personName.trim())) {
- personNameError.value = '姓名只能包含中文、字母或空格';
- return;
- }
- if (personForm.personName.trim().length < 2) {
- personNameError.value = '姓名至少2个字符';
- return;
- }
- personNameError.value = '';
- };
- // 手机号操作方法
- const addPhone = () => {
- personForm.phoneList.push('');
- phoneListErrors.value.push('');
- };
- const removePhone = (index: number) => {
- if (personForm.phoneList.length > 1) {
- personForm.phoneList.splice(index, 1);
- phoneListErrors.value.splice(index, 1);
- }
- };
- const validatePhone = (index: number) => {
- const phone = personForm.phoneList[index];
- if (phone.trim()) {
- const phoneRegex = /^1[3-9]\d{9}$/;
- phoneListErrors.value[index] = phoneRegex.test(phone.trim()) ? '' : '手机号格式不正确';
- } else {
- phoneListErrors.value[index] = '';
- }
- };
- // 银行卡操作方法
- const addCard = () => {
- personForm.cardList.push('');
- cardListErrors.value.push('');
- };
- const removeCard = (index: number) => {
- if (personForm.cardList.length > 1) {
- personForm.cardList.splice(index, 1);
- cardListErrors.value.splice(index, 1);
- }
- };
- const validateCard = (index: number) => {
- const card = personForm.cardList[index];
- if (card.trim()) {
- const len = card.trim().length;
- cardListErrors.value[index] = len >= 16 && len <= 19 ? '' : '银行卡号长度应为16-19位';
- } else {
- cardListErrors.value[index] = '';
- }
- };
- const handleDelete = (person: PersonBasicInfo) => {
- const name = person.personName;
- if (!name) {
- createMessage.warning('缺少人员姓名');
- return;
- }
- createConfirm({
- iconType: 'warning',
- centered: true,
- title: '确认删除对象',
- content: `确定要删除对象“${name}”吗?删除后无法恢复。`,
- okButtonProps: { type: 'primary' },
- autoFocusButton: 'ok',
- async onOk() {
- try {
- await deletePersonBasicInfo(name);
- createMessage.success('删除成功');
- await fetchPersons();
- } catch (error) {
- console.error('删除人员失败', error);
- createMessage.error('删除失败');
- }
- },
- });
- };
- // ==================== Quick Nav 滚动联动 ====================
- const rightPanelRef = ref<HTMLElement | null>(null);
- const activeNavId = ref('section-basic');
- const scheduleChartResize = () => {
- if (chartResizeFrame !== null) {
- window.cancelAnimationFrame(chartResizeFrame);
- }
- chartResizeFrame = window.requestAnimationFrame(() => {
- chartResizeFrame = null;
- handleTrendChartResize();
- if (tradeRatioChartRef.value && hasTradeRatioData.value && !tradeRatioChart) {
- initTradeRatioChart();
- }
- if (tradeTopChartRef.value && tradeTop.value.length && !tradeTopChart) {
- initTradeTopChart();
- }
- if (commTypeChartRef.value && hasRenderableCommTypeRatioData.value && !commTypeChart) {
- initCommTypeChart();
- }
- if (commTopChartRef.value && hasRenderableTopContacts.value && !commTopChart) {
- initCommTopChart();
- }
- if (tradeTrendChartRef.value && trendLabels.value.length && !tradeTrendChart) {
- initTradeTrendChart();
- }
- });
- };
- const observeChartElement = (element: Element | null) => {
- if (!chartResizeObserver || !element || observedChartElements.has(element)) return;
- chartResizeObserver.observe(element);
- observedChartElements.add(element);
- };
- const setupChartResizeObserver = () => {
- if (typeof ResizeObserver === 'undefined') return;
- if (!chartResizeObserver) {
- chartResizeObserver = new ResizeObserver(() => {
- scheduleChartResize();
- });
- }
- [
- rightPanelRef.value,
- tradeTrendChartRef.value,
- tradeRatioChartRef.value,
- tradeTopChartRef.value,
- commTypeChartRef.value,
- commTopChartRef.value,
- ].forEach(observeChartElement);
- scheduleChartResize();
- };
- const navItems = [
- { id: 'section-basic', label: '基本信息', icon: IdcardOutlined },
- { id: 'section-relation', label: '亲密关系人', icon: TeamOutlined },
- { id: 'section-comm', label: '通讯信息', icon: PhoneOutlined },
- { id: 'section-trade', label: '交易信息', icon: WalletOutlined },
- ];
- const scrollToSection = (id: string) => {
- const container = rightPanelRef.value;
- if (!container) return;
- const el = container.querySelector(`#${id}`) as HTMLElement | null;
- if (!el) return;
- // 吸顶分段导航自身占据高度,滚动目标需要避开它,避免标题被遮住
- const anchorBar = container.querySelector('.qj-anchors') as HTMLElement | null;
- const targetOffset = (anchorBar?.offsetHeight || 0) + 12;
- container.scrollTo({
- top: Math.max(0, el.offsetTop - container.offsetTop - targetOffset),
- behavior: 'smooth',
- });
- activeNavId.value = id;
- };
- let navScrollHandler: (() => void) | null = null;
- let navScrollFrame: number | null = null;
- const updateActiveNav = () => {
- const container = rightPanelRef.value;
- if (!container) return;
- const threshold = container.getBoundingClientRect().top + 80;
- let current = navItems[0].id;
- navItems.forEach((nav) => {
- const el = container.querySelector(`#${nav.id}`) as HTMLElement | null;
- if (el && el.getBoundingClientRect().top <= threshold) {
- current = nav.id;
- }
- });
- // 滚动到底部时最后一段可能无法贴顶,强制高亮最后一项
- if (container.scrollHeight - container.scrollTop - container.clientHeight <= 8) {
- current = navItems[navItems.length - 1].id;
- }
- activeNavId.value = current;
- };
- const initNavObserver = () => {
- const container = rightPanelRef.value;
- if (!container) return;
- if (navScrollHandler) {
- container.removeEventListener('scroll', navScrollHandler);
- }
- navScrollHandler = () => {
- if (navScrollFrame !== null) return;
- navScrollFrame = window.requestAnimationFrame(() => {
- navScrollFrame = null;
- updateActiveNav();
- });
- };
- container.addEventListener('scroll', navScrollHandler, { passive: true });
- updateActiveNav();
- };
- onMounted(() => {
- // 弹窗会被 teleport 到 body:用 body 标记把「弹窗按钮 32px」限定在本页
- document.body.classList.add('case-portrait-active');
- fetchPersons();
- resetRightPanelData();
- void openGroupModalFromRoute();
- window.addEventListener('resize', handleTrendChartResize);
- nextTick(() => {
- initNavObserver();
- setupChartResizeObserver();
- });
- });
- onActivated(() => {
- document.body.classList.add('case-portrait-active');
- });
- onDeactivated(() => {
- document.body.classList.remove('case-portrait-active');
- });
- onBeforeUnmount(() => {
- document.body.classList.remove('case-portrait-active');
- revokeAvatarPreviewObjectUrl();
- if (navScrollHandler && rightPanelRef.value) {
- rightPanelRef.value.removeEventListener('scroll', navScrollHandler);
- }
- navScrollHandler = null;
- if (navScrollFrame !== null) {
- window.cancelAnimationFrame(navScrollFrame);
- navScrollFrame = null;
- }
- if (tradeTrendSearchTimer !== null) {
- window.clearTimeout(tradeTrendSearchTimer);
- tradeTrendSearchTimer = null;
- }
- if (tradeTrendOtherNameSearchTimer !== null) {
- window.clearTimeout(tradeTrendOtherNameSearchTimer);
- tradeTrendOtherNameSearchTimer = null;
- }
- window.removeEventListener('resize', handleTrendChartResize);
- chartResizeObserver?.disconnect();
- chartResizeObserver = null;
- observedChartElements.clear();
- if (chartResizeFrame !== null) {
- window.cancelAnimationFrame(chartResizeFrame);
- chartResizeFrame = null;
- }
- if ((window as any)._handleTrendDetail) {
- delete (window as any)._handleTrendDetail;
- }
- if (tradeTrendChart) {
- tradeTrendChart.dispose();
- tradeTrendChart = null;
- }
- if (tradeRatioChart) {
- tradeRatioChart.dispose();
- tradeRatioChart = null;
- }
- if (tradeTopChart) {
- tradeTopChart.dispose();
- tradeTopChart = null;
- }
- if (commTypeChart) {
- commTypeChart.dispose();
- commTypeChart = null;
- }
- if (commTopChart) {
- commTopChart.dispose();
- commTopChart = null;
- }
- });
- const fallbackValue = (value: string | number | null | undefined) => {
- if (value === 0) return '0';
- if (value === null || value === undefined || value === '') return '-';
- return String(value);
- };
- const normalizePhotoSrc = (value?: string | null) => normalizeAvatarSrc(value);
- const getPersonPhoto = (person?: Partial<PersonBasicInfo> | null) => String(person?.photograph || '').trim();
- const selectedPerson = computed(() => {
- if (selectedPersonId.value === null) return null;
- return personList.value[selectedPersonId.value] ?? null;
- });
- const personKeyword = ref('');
- const filteredPersonList = computed(() => {
- const keyword = personKeyword.value.trim();
- const source = personList.value.map((person, index) => ({ person, index }));
- if (!keyword) return source;
- return source.filter(({ person }) => {
- const personName = String(person.personName || '');
- const certNo = String(person.personCertNo || '');
- return personName.includes(keyword) || certNo.includes(keyword);
- });
- });
- const basicInfo = computed(() => {
- const person = selectedPerson.value;
- if (!person) {
- return [
- { label: '身份证', value: '-' },
- { label: '性别', value: '-' },
- { label: '民族', value: '-' },
- { label: '年龄', value: '-' },
- { label: '出生日期', value: '-' },
- { label: '文化程度', value: '-' },
- { label: '婚姻状况', value: '-' },
- { label: '身高', value: '-' },
- { label: '户籍地', value: '-' },
- { label: '现住址', value: '-' },
- { label: '工作单位', value: '-' },
- { label: '对象分组', value: '-' },
- ];
- }
- return [
- { label: '身份证', value: fallbackValue(person.personCertNo) },
- { label: '性别', value: fallbackValue(person.personGender) },
- { label: '民族', value: fallbackValue(person.personNation) },
- { label: '年龄', value: fallbackValue(person.personAge) },
- { label: '出生日期', value: fallbackValue(person.personBirth) },
- { label: '文化程度', value: fallbackValue(person.personEducation) },
- { label: '婚姻状况', value: fallbackValue(person.personMarriage) },
- { label: '身高', value: fallbackValue(person.personHeight) },
- { label: '户籍地', value: fallbackValue(person.personResidence) },
- { label: '现住址', value: fallbackValue(person.personAddress) },
- { label: '工作单位', value: fallbackValue(person.personWorkUnit) },
- { label: '对象分组', value: fallbackValue(person.personGroup) },
- ];
- });
- const displayBasicInfo = computed(() =>
- basicInfo.value.filter((item) => item.label !== '身高' && item.label !== '文化程度' && item.label !== '对象分组'),
- );
- const objectGroupText = computed(() => {
- const value = basicInfo.value.find((item) => item.label === '对象分组')?.value;
- return value && value !== '-' ? value : '未分组';
- });
- const basicPhoto = computed(() => getPersonPhoto(selectedPerson.value));
- const basicName = computed(() => {
- return selectedPerson.value?.personName ?? '-';
- });
- const topContacts = computed(() => {
- if (!commTop10Data.value.length) return [];
- const max = Math.max(...commTop10Data.value.map((item) => Number(item.callCount || 0)), 1);
- return commTop10Data.value
- .slice(0, 10)
- .map((item, index) => {
- const count = Number(item.callCount || 0);
- return {
- name: item.otherName || item.otherPhone || `联系人${index + 1}`,
- otherName: item.otherName || '',
- otherPhone: item.otherPhone || '',
- count,
- rate: Math.round((count / max) * 100),
- };
- })
- .filter((item) => String(item.name || '').trim() && Number.isFinite(item.count) && item.count > 0)
- .sort((a, b) => b.count - a.count);
- });
- const commTopRankRows = computed(() => topContacts.value);
- const hasRenderableCommTypeRatioData = computed(() =>
- commTypeRatioData.value.some((item) => String(item.name || '').trim() && Number(item.value || 0) > 0),
- );
- const commTypeLegend = computed(() => {
- const total = Number(callStatData.value?.callCount || 0);
- const colorMap: Record<string, string> = {
- 主叫: '#2a50ec',
- 被叫: '#2ec8d9',
- 其他: '#f6b659',
- };
- const order = ['主叫', '被叫', '其他'];
- return commTypeRatioData.value
- .filter((item) => String(item.name || '').trim() && Number(item.value || 0) > 0)
- .map((item) => {
- const rate = Number(item.value || 0);
- return {
- name: item.name,
- rate: rate.toFixed(2),
- count: total ? Math.round((rate / 100) * total) : 0,
- color: colorMap[item.name] || '#f6b659',
- };
- })
- .sort((a, b) => {
- const indexA = order.indexOf(a.name);
- const indexB = order.indexOf(b.name);
- return (indexA === -1 ? 99 : indexA) - (indexB === -1 ? 99 : indexB);
- });
- });
- const hasRenderableTopContacts = computed(() =>
- topContacts.value.some((item) => String(item.name || '').trim() && Number(item.count || 0) > 0),
- );
- const tradeMetricOptions = ref([
- { label: '交易对方卡(账)号', value: 'otherCardNo' },
- { label: '交易对方', value: 'personName' },
- { label: 'ip地址', value: 'personIpAddress' },
- { label: 'mac地址', value: 'personMacAddress' },
- { label: '交易网点名称', value: 'branchName' },
- ]);
- const getTradeTopNumericValue = (item: TransOftenTop10DTO) => {
- return tradeTopQuery.dimension === '交易金额'
- ? parseMoneyValue(item.transTotalAmount)
- : Number(item.transCount || 0);
- };
- const tradeTop = computed(() => {
- if (!tradeTop10Data.value.length) return [];
- const max = Math.max(...tradeTop10Data.value.map((item) => getTradeTopNumericValue(item)), 1);
- return tradeTop10Data.value
- .map((item, index) => {
- const value = getTradeTopNumericValue(item);
- return {
- name: item.indicator || item.dimension || `对象${index + 1}`,
- filterValue: item.indicator || item.dimension || '',
- value,
- rate: Math.round((value / max) * 100),
- raw: item,
- };
- })
- .sort((a, b) => b.value - a.value);
- });
- const tradeTopRankRows = computed(() => tradeTop.value);
- const carrierTags = computed(() => {
- const operCountMap = callStatData.value?.operCountMap ?? {};
- return Object.entries(operCountMap)
- .map(([carrierName, phones]) => {
- const phoneList = Array.isArray(phones) ? phones.map((item) => String(item || '').trim()).filter(Boolean) : [];
- const name = String(carrierName || '').trim();
- return {
- carrierName: name,
- phoneList,
- carrierCount: phoneList.length,
- operatorId: name,
- label: `${name}(${phoneList.length})`,
- };
- })
- .filter((item) => item.carrierName);
- });
- const tradeBankTags = computed(() => {
- const bankCountMap = transStatData.value?.bankCountMap ?? {};
- return Object.entries(bankCountMap).map(([bankName, cards]) => {
- const cardNoList = Array.isArray(cards) ? cards.map((item) => String(item || '').trim()).filter(Boolean) : [];
- return {
- bankName,
- cardNoList,
- label: `${bankName}(${cardNoList.length})`,
- };
- });
- });
- const commSummary = computed(() => {
- const callStatInfo = callStatData.value;
- const phoneTotal = callStatInfo?.phoneCount ?? 0;
- const callCount = callStatInfo?.callCount;
- const otherCount = callStatInfo?.otherCount;
- const timeRange = callStatInfo?.callDateBnd
- ? String(callStatInfo.callDateBnd).replace(',', '至')
- : callStatInfo?.callDateStart
- ? `${callStatInfo.callDateStart} 至 ${callStatInfo.callDateEnd ?? '-'}`
- : '-';
- return {
- phoneSummary: phoneTotal ? `共计 ${phoneTotal} 个号码` : '-',
- totalCount: callCount ? `${callCount} 次` : '-',
- contactCount: otherCount ? `${otherCount} 个` : '-',
- timeRange,
- };
- });
- const parseMoneyValue = (value: unknown) => {
- if (value === null || value === undefined || value === '') return 0;
- if (typeof value === 'number') return Number.isFinite(value) ? value : 0;
- const num = Number(
- String(value)
- .replace(/[,%¥元\s]/g, '')
- .trim(),
- );
- return Number.isFinite(num) ? num : 0;
- };
- const parsePercentValue = (value: unknown) => {
- if (value === null || value === undefined || value === '') return null;
- const num = Number(
- String(value)
- .replace(/[,%\s]/g, '')
- .trim(),
- );
- return Number.isFinite(num) ? num : null;
- };
- const formatAmountValue = (value: number) => {
- return value.toLocaleString('zh-CN', {
- minimumFractionDigits: 2,
- maximumFractionDigits: 2,
- });
- };
- const formatMoneyText = (value: unknown) => {
- const amount = parseMoneyValue(value);
- return `${formatAmountValue(amount)}元`;
- };
- const formatMoneyHighlightText = (value: unknown) => {
- const amount = parseMoneyValue(value);
- if (amount <= 0) return '-';
- return `¥${formatAmountValue(amount)}`;
- };
- const formatPercentText = (value: unknown, fallback: number) => {
- const raw = value === null || value === undefined ? '' : String(value).trim();
- if (raw) {
- return raw.includes('%') ? raw : `${raw}%`;
- }
- return `${fallback.toFixed(4)}%`;
- };
- const tradeSummary = computed(() => {
- const transStatInfo = transStatData.value;
- const cardCount = transStatInfo?.cardCount ?? 0;
- const balance = transStatInfo?.totalBalance ?? 0;
- const bankCountMap = transStatInfo?.bankCountMap ?? {};
- const banks = Object.entries(bankCountMap).map(
- ([name, cards]) => `${name}(${Array.isArray(cards) ? cards.length : 0})`,
- );
- const infoStat = transStatInfo?.transInfoStat;
- const totalIncome = parseMoneyValue(infoStat?.totalIncome ?? infoStat?.incomeTotalAmount);
- const totalExpend = parseMoneyValue(infoStat?.totalExpend ?? infoStat?.expenseTotalAmount);
- const totalAmount = totalIncome + totalExpend;
- const incomeRate = totalAmount ? Number(((totalIncome / totalAmount) * 100).toFixed(4)) : 0;
- const expendRate = totalAmount ? Number(((totalExpend / totalAmount) * 100).toFixed(4)) : 0;
- const incomeRatio = parsePercentValue(infoStat?.incomeRatio) ?? incomeRate;
- const expendRatio = parsePercentValue(infoStat?.expenseRatio) ?? expendRate;
- const maxExpend = parseMoneyValue(infoStat?.maxExpend ?? infoStat?.maxSingleExpense);
- const maxIncome = parseMoneyValue(infoStat?.maxIncome ?? infoStat?.maxSingleIncome);
- return {
- cardSummary: cardCount ? `共计 ${cardCount} 张卡 总余额约 ${balance} 万` : '-',
- bankTags: banks,
- incomeRate: totalAmount ? formatPercentText(infoStat?.incomeRatio, incomeRate) : '-',
- incomeAmount: formatMoneyText(totalIncome),
- expendRate: totalAmount ? formatPercentText(infoStat?.expenseRatio, expendRate) : '-',
- expendAmount: formatMoneyText(totalExpend),
- maxExpend: formatMoneyHighlightText(maxExpend),
- maxIncome: formatMoneyHighlightText(maxIncome),
- incomeRatio,
- expendRatio,
- incomeValue: totalIncome,
- expendValue: totalExpend,
- };
- });
- const hasTradeSummary = computed(() => {
- const cardCount = Number(transStatData.value?.cardCount ?? 0);
- return cardCount > 0 || tradeBankTags.value.length > 0;
- });
- const hasTradeRatioData = computed(() => {
- return Number(tradeSummary.value.incomeValue || 0) > 0 || Number(tradeSummary.value.expendValue || 0) > 0;
- });
- const parseTrendAmount = (value: unknown) => {
- if (value === null || value === undefined) return 0;
- if (typeof value === 'number') return Number.isFinite(value) ? value : 0;
- const num = Number(String(value).replace(/,/g, '').trim());
- return Number.isFinite(num) ? num : 0;
- };
- const trendSummaryByDate = computed(() => {
- const map = new Map<string, { income: number; expend: number }>();
- tradeTrendData.value.forEach((item: any) => {
- const date = item?.transDate || '-';
- const flag = String(item?.debitCreditFlag || '').trim();
- const amount = parseTrendAmount(item?.transTotalAmount);
- const current = map.get(date) || { income: 0, expend: 0 };
- if (flag === '收入') {
- current.income += amount;
- } else if (flag === '支出') {
- current.expend += amount;
- }
- map.set(date, current);
- });
- return Array.from(map.entries())
- .map(([date, value]) => ({ date, ...value }))
- .sort((a, b) => a.date.localeCompare(b.date));
- });
- const trendLabels = computed(() => trendSummaryByDate.value.map((item) => item.date));
- const trendIncomePoints = computed(() => trendSummaryByDate.value.map((item) => item.income));
- const trendExpendPoints = computed(() => trendSummaryByDate.value.map((item) => item.expend));
- const trendPoints = computed(() => {
- const income = trendIncomePoints.value;
- const expend = trendExpendPoints.value;
- return income.map((v, i) => Math.max(Number(v || 0), Number(expend[i] || 0)));
- });
- const trendChartStyle = computed(() => {
- const widthN = Math.max(1, Math.floor(trendLabels.value.length / 15));
- const basePercent = (widthN + 1) * 100 - 100;
- const widthPercent = tradeTrendQuery.timeDimension === 'YEAR' ? Math.max(220, basePercent) : basePercent;
- const widthPx = tradeTrendQuery.timeDimension === 'YEAR' ? Math.max(1200, trendLabels.value.length * 420) : 0;
- return {
- height: '220px',
- width: tradeTrendQuery.timeDimension === 'YEAR' ? `${widthPx}px` : `${widthPercent}%`,
- minWidth: '100%',
- paddingRight: tradeTrendQuery.timeDimension === 'YEAR' ? '24px' : '0',
- };
- });
- const formatAmount = (value: number | string | null | undefined) => {
- const num = Number(value || 0);
- return num.toLocaleString('zh-CN');
- };
- const buildTooltipCard = ({
- title,
- value,
- color,
- suffix = '',
- subText,
- }: {
- title: string;
- value: string;
- color: string;
- suffix?: string;
- subText?: string;
- }) => {
- const sub = subText
- ? `<div style="font-size:11px; line-height:17px; color:#98a2b3; margin-top:5px;">${subText}</div>`
- : '';
- return [
- '<div style="padding:11px 13px; min-width:128px; background:#ffffff; border:1px solid #e7ebf3; border-radius:10px; box-shadow:0 8px 24px rgba(16,24,40,0.12);">',
- `<div style="font-size:12px; line-height:18px; color:#5b6577; margin-bottom:6px;">${title}</div>`,
- '<div style="display:flex; align-items:center; gap:7px;">',
- `<span style="width:7px; height:7px; border-radius:50%; background:${color}; display:inline-block;"></span>`,
- `<span style="font-size:13px; line-height:19px; color:#111827; font-weight:600;">${value}${suffix}</span>`,
- '</div>',
- sub,
- '</div>',
- ].join('');
- };
- const getConfinedTooltipPosition = (
- point: number[],
- _params: unknown,
- dom: HTMLElement,
- _rect: unknown,
- size: { viewSize: number[] },
- ) => {
- const [pointX, pointY] = point;
- const [viewWidth, viewHeight] = size.viewSize;
- const cardWidth = dom.offsetWidth || 160;
- const cardHeight = dom.offsetHeight || 96;
- const gap = 10;
- const left = Math.min(Math.max(pointX - cardWidth / 2, gap), Math.max(gap, viewWidth - cardWidth - gap));
- const top = Math.min(Math.max(pointY - cardHeight - 18, gap), Math.max(gap, viewHeight - cardHeight - gap));
- return [left, top];
- };
- const formatTrendAxisValue = (value: number) => {
- const numericValue = Number(value || 0);
- const absValue = Math.abs(numericValue);
- if (absValue >= 100000000) {
- return `${(numericValue / 100000000).toFixed(absValue % 100000000 === 0 ? 0 : 1)}亿`;
- }
- if (absValue >= 10000) {
- return `${(numericValue / 10000).toFixed(absValue % 10000 === 0 ? 0 : 1)}万`;
- }
- return numericValue.toLocaleString('zh-CN');
- };
- const buildTrendTooltipCard = (time: string, params: any[]) => {
- const rowHtml = params
- .filter((item) => item && item.seriesName)
- .map((item) => {
- const color = String(item?.color || (item?.seriesName === '收入' ? '#12b76a' : '#2a50ec'));
- return [
- '<div style="display:flex; align-items:center; justify-content:space-between; gap:18px;">',
- '<span style="display:flex; align-items:center; gap:7px; font-size:12px; line-height:18px; color:#5b6577;">',
- `<span style="width:7px; height:7px; border-radius:50%; background:${color}; display:inline-block;"></span>`,
- `${item.seriesName}`,
- '</span>',
- `<span style="font-size:12px; line-height:18px; color:#111827; font-weight:600;">${formatAmount(item?.value)}元</span>`,
- '</div>',
- ].join('');
- })
- .join('<div style="height:6px;"></div>');
- if (!rowHtml) return '';
- return [
- '<div style="padding:11px 13px; min-width:178px; background:#ffffff; border:1px solid #e7ebf3; border-radius:10px; box-shadow:0 8px 24px rgba(16,24,40,0.12);">',
- '<div style="display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px;">',
- `<span style="font-size:12px; line-height:18px; color:#111827; font-weight:600;">${time}</span>`,
- `<span style="font-size:11px; line-height:16px; color:#2a50ec; cursor:pointer;" onclick='window._handleTrendDetail(${JSON.stringify(time)})'>查看详情</span>`,
- '</div>',
- rowHtml,
- '</div>',
- ].join('');
- };
- const wrapAxisLabel = (value: string, maxCharsPerLine = 5) => {
- const chars = Array.from(value || '');
- if (chars.length <= maxCharsPerLine) return value;
- const lines: string[] = [];
- for (let index = 0; index < chars.length; index += maxCharsPerLine) {
- lines.push(chars.slice(index, index + maxCharsPerLine).join(''));
- }
- return lines.join('\n');
- };
- const resolveAxisLabelCharsPerLine = (container: HTMLElement | null | undefined, itemCount: number, fallback = 5) => {
- const width = container?.clientWidth || 0;
- if (!width || itemCount <= 0) return fallback;
- const usableWidth = Math.max(width - 72, 0);
- const slotWidth = usableWidth / Math.max(itemCount, 1);
- const approximateCharWidth = 7.5;
- const charsPerLine = Math.floor(slotWidth / approximateCharWidth);
- return Math.max(4, Math.min(24, charsPerLine || fallback));
- };
- const formatTradeTopAxisLabel = (value: string, maxCharsPerLine = 5, maxLines = 2) => {
- const chars = Array.from(value || '');
- if (!chars.length) return '';
- const normalizedCharsPerLine = Math.max(4, maxCharsPerLine);
- const normalizedMaxLines = Math.max(1, maxLines);
- const maxChars = normalizedCharsPerLine * normalizedMaxLines;
- if (chars.length <= maxChars) {
- return wrapAxisLabel(value, normalizedCharsPerLine);
- }
- const visibleChars = chars.slice(0, Math.max(maxChars - 1, 1));
- const truncatedValue = `${visibleChars.join('')}…`;
- return wrapAxisLabel(truncatedValue, normalizedCharsPerLine);
- };
- const getTradeTopAxisMax = (maxValue: number) => {
- if (maxValue <= 0) return 1;
- const magnitude = 10 ** Math.floor(Math.log10(maxValue));
- return Math.ceil((maxValue * 1.15) / magnitude) * magnitude;
- };
- const getNiceAxisInterval = (maxValue: number, targetSplitCount = 5) => {
- if (maxValue <= 0) return 1;
- const safeSplitCount = Math.max(1, targetSplitCount);
- const roughInterval = maxValue / safeSplitCount;
- const magnitude = 10 ** Math.floor(Math.log10(roughInterval));
- const normalized = roughInterval / magnitude;
- if (normalized <= 1) return magnitude;
- if (normalized <= 2) return 2 * magnitude;
- if (normalized <= 2.5) return 2.5 * magnitude;
- if (normalized <= 5) return 5 * magnitude;
- return 10 * magnitude;
- };
- const getCommTopAxisInterval = (maxValue: number) => {
- return Math.max(1, Math.ceil(getNiceAxisInterval(maxValue, 5)));
- };
- const getCommTopAxisMax = (maxValue: number) => {
- const interval = getCommTopAxisInterval(maxValue);
- return Math.max(interval, Math.ceil(maxValue / interval) * interval);
- };
- const formatTradeTopValue = (value: number) => {
- if (tradeTopQuery.dimension === '交易金额') {
- return `${value.toLocaleString('zh-CN', { maximumFractionDigits: 2 })} 元`;
- }
- return `${value.toLocaleString('zh-CN')} 次`;
- };
- const formatTradeRankValue = (value: number) => {
- if (tradeTopQuery.dimension === '交易金额') {
- return `¥${formatAmountValue(value)}`;
- }
- return `${Number(value || 0).toLocaleString('zh-CN')} 次`;
- };
- const changeLegend = (title: string, index: number) => {
- trendLegendArr.value[index].isShow = !trendLegendArr.value[index].isShow;
- tradeTrendChart?.dispatchAction({
- type: 'legendToggleSelect',
- name: title,
- });
- };
- const handleTrendDetail = async (name: string) => {
- const baseQuery: Partial<TransRecordQuery> = {};
- if (tradeTrendQuery.timeDimension === 'YEAR') {
- baseQuery.startDate = `${name}-01-01`;
- baseQuery.endDate = `${name}-12-31`;
- } else {
- baseQuery.startDate = `${name}-01`;
- const [yearStr, monthStr] = name.split('-');
- const year = Number(yearStr || 0);
- const month = Number(monthStr || 1);
- const lastDay = new Date(year, month, 0).getDate();
- baseQuery.endDate = `${name}-${String(lastDay).padStart(2, '0')}`;
- }
- const startDate = tradeTrendQuery.dateRange?.[0];
- const endDate = tradeTrendQuery.dateRange?.[1];
- if (startDate && endDate) {
- baseQuery.startDate = startDate;
- baseQuery.endDate = endDate;
- }
- const otherName = String(tradeTrendQuery.otherName || '').trim();
- if (otherName) {
- baseQuery.otherName = otherName;
- }
- openTransRecordDrilldown(baseQuery);
- };
- const openCallSummaryFromTopContacts = async () => {
- await openCallSummaryWithFilters({}, { useCommTopDateRange: true });
- };
- const initCommTypeChart = () => {
- if (!commTypeChartRef.value || !hasRenderableCommTypeRatioData.value) return;
- if (commTypeChart && commTypeChart.getDom() !== commTypeChartRef.value) {
- commTypeChart.dispose();
- commTypeChart = null;
- }
- if (!commTypeChart) commTypeChart = echarts.init(commTypeChartRef.value);
- const pieData = commTypeRatioData.value.map((item) => ({
- ...item,
- rawName: item.name,
- itemStyle: {
- // 图表统一使用纯色,主叫取项目主蓝
- color: item.name === '主叫' ? '#2a50ec' : item.name === '被叫' ? '#2ec8d9' : '#f6b659',
- },
- }));
- const option: echarts.EChartsOption = {
- backgroundColor: 'transparent',
- title: {
- text: String(Number(callStatData.value?.callCount || 0)),
- subtext: '通话总数',
- left: 'center',
- top: 'center',
- textStyle: {
- color: '#111827',
- fontSize: 26,
- fontWeight: 600,
- lineHeight: 30,
- },
- subtextStyle: {
- color: '#98a2b3',
- fontSize: 11,
- lineHeight: 16,
- },
- itemGap: 2,
- },
- tooltip: {
- trigger: 'item',
- confine: true,
- backgroundColor: 'transparent',
- borderWidth: 0,
- padding: 0,
- extraCssText: 'box-shadow:none;background:transparent;',
- position: getConfinedTooltipPosition,
- formatter: (params: any) => {
- const rawName = String(params?.data?.rawName || params?.name || '');
- const value = Number(params?.value || 0).toFixed(2);
- return buildTooltipCard({
- title: rawName,
- value,
- color: String(params?.color || '#2a50ec'),
- suffix: '%',
- });
- },
- },
- legend: {
- show: false,
- },
- series: [
- {
- type: 'pie',
- center: ['50%', '50%'],
- radius: ['58%', '80%'],
- avoidLabelOverlap: false,
- emphasis: {
- scale: false,
- },
- itemStyle: {
- borderWidth: 3,
- borderColor: '#ffffff',
- },
- labelLine: { show: false },
- label: { show: false },
- data: pieData,
- },
- ],
- };
- commTypeChart.setOption(option, true);
- commTypeChart.off('click');
- commTypeChart.on('click', (params: any) => {
- void (async () => {
- const rawName = String(params?.data?.rawName || '');
- const n = rawName || String(params?.data?.name || '');
- const callDirection = n.includes('主叫') ? '主叫' : n.includes('被叫') ? '被叫' : '';
- openCallRecordWithFilters(callDirection ? { callDirection } : {}, { omitPersonPhones: true });
- })();
- });
- };
- const initCommTopChart = () => {
- if (!commTopChartRef.value || !hasRenderableTopContacts.value) return;
- if (commTopChart && commTopChart.getDom() !== commTopChartRef.value) {
- commTopChart.dispose();
- commTopChart = null;
- }
- if (!commTopChart) commTopChart = echarts.init(commTopChartRef.value);
- const xData = topContacts.value.map((v) => v.name);
- const yData = topContacts.value.map((v) => Number(v.count || 0));
- const maxValue = Math.max(...yData, 0);
- const axisInterval = getCommTopAxisInterval(maxValue);
- const axisMax = getCommTopAxisMax(maxValue);
- const labelCharsPerLine = resolveAxisLabelCharsPerLine(commTopChartRef.value, xData.length, 5);
- const option: echarts.EChartsOption = {
- backgroundColor: 'transparent',
- tooltip: {
- trigger: 'item',
- confine: true,
- backgroundColor: 'transparent',
- borderWidth: 0,
- padding: 0,
- extraCssText: 'box-shadow:none;background:transparent;',
- position: getConfinedTooltipPosition,
- formatter: (params: any) => {
- const name = String(params?.name || '');
- const value = Number(params?.value || 0);
- return buildTooltipCard({
- title: name,
- value: value.toLocaleString('zh-CN'),
- color: '#2a50ec',
- subText: '联系次数',
- });
- },
- },
- grid: { top: 42, left: 18, right: 24, bottom: 8, outerBoundsMode: 'same', outerBoundsContain: 'axisLabel' },
- xAxis: [
- {
- type: 'category',
- data: xData,
- axisTick: {
- alignWithLabel: true,
- lineStyle: {
- color: '#8d95a3',
- },
- },
- axisLine: { lineStyle: { color: '#8d95a3' } },
- axisLabel: {
- interval: 0,
- color: '#6b7280',
- fontSize: 12,
- lineHeight: 16,
- margin: 10,
- formatter: (value: string) => wrapAxisLabel(value, labelCharsPerLine),
- },
- },
- ],
- yAxis: [
- {
- name: '次数',
- type: 'value',
- min: 0,
- max: axisMax,
- minInterval: 1,
- interval: axisInterval,
- splitNumber: Math.min(6, Math.max(1, Math.round(axisMax / axisInterval))),
- nameLocation: 'end',
- nameRotate: 0,
- nameGap: 14,
- nameTextStyle: {
- color: '#6b7280',
- fontSize: 12,
- align: 'left',
- padding: [0, 0, 0, -8],
- },
- axisLine: { show: false },
- axisTick: { show: false },
- axisLabel: {
- color: '#6b7280',
- formatter: (value: number) => value.toLocaleString('zh-CN'),
- },
- splitLine: {
- lineStyle: {
- color: '#dde5f2',
- },
- },
- },
- ],
- series: [
- {
- type: 'bar',
- barWidth: 34,
- data: yData,
- itemStyle: {
- borderRadius: [6, 6, 0, 0],
- // 纯色柱:不使用任何渐变
- color: '#2a50ec',
- },
- emphasis: {
- itemStyle: {
- color: '#0958d9',
- },
- },
- },
- ],
- };
- commTopChart.setOption(option, true);
- commTopChart.getZr().off('click');
- commTopChart.getZr().on('click', (params: any) => {
- void (async () => {
- const pointInPixel = [params.offsetX, params.offsetY];
- const pointInGrid = commTopChart!.convertFromPixel({ seriesIndex: 0 }, pointInPixel) as number[];
- const dataIndex = pointInGrid?.[0];
- const row = topContacts.value[dataIndex];
- if (!row) return;
- const baseQuery: Partial<CallRecordQuery> = row.otherPhone
- ? {
- otherPhones: [row.otherPhone],
- }
- : row.otherName
- ? {
- otherName: row.otherName,
- }
- : {};
- openCallRecordWithFilters(baseQuery, { useCommTopDateRange: true, omitPersonPhones: true });
- })();
- });
- requestAnimationFrame(() => {
- commTopChart?.resize();
- });
- };
- const initTradeRatioChart = () => {
- if (!tradeRatioChartRef.value || !hasTradeRatioData.value) return;
- if (tradeRatioChart && tradeRatioChart.getDom() !== tradeRatioChartRef.value) {
- tradeRatioChart.dispose();
- tradeRatioChart = null;
- }
- if (!tradeRatioChart) tradeRatioChart = echarts.init(tradeRatioChartRef.value);
- const income = Number(tradeSummary.value.incomeValue || 0);
- const expend = Number(tradeSummary.value.expendValue || 0);
- const option: echarts.EChartsOption = {
- backgroundColor: 'transparent',
- tooltip: {
- trigger: 'item',
- confine: true,
- backgroundColor: 'transparent',
- borderWidth: 0,
- padding: 0,
- extraCssText: 'box-shadow:none;background:transparent;',
- position: getConfinedTooltipPosition,
- formatter: (params: any) => {
- const name = String(params?.name || '');
- const value = Number(params?.value || 0);
- const ratio = Number(params?.percent || 0);
- return buildTooltipCard({
- title: name,
- value: `${formatAmountValue(value)}元`,
- color: String(params?.color || '#12b76a'),
- subText: `占比 ${ratio.toFixed(4)}%`,
- });
- },
- },
- legend: { show: false },
- series: [
- {
- type: 'pie',
- radius: ['56%', '82%'],
- center: ['50%', '50%'],
- avoidLabelOverlap: false,
- emphasis: {
- scale: false,
- },
- itemStyle: {
- borderWidth: 3,
- borderColor: '#ffffff',
- },
- label: { show: false },
- labelLine: { show: false },
- data: [
- { value: income, name: '收入', itemStyle: { color: '#12b76a' } },
- { value: expend, name: '支出', itemStyle: { color: '#2a50ec' } },
- ].filter((item) => item.value > 0),
- },
- ],
- };
- tradeRatioChart.setOption(option, true);
- tradeRatioChart.off('click');
- tradeRatioChart.on('click', (params: any) => {
- const name = String(params?.name || '');
- if (name === '收入' || name === '支出') {
- void handleDrillByDebitCredit(name as '收入' | '支出');
- }
- });
- requestAnimationFrame(() => {
- tradeRatioChart?.resize();
- });
- };
- const initTradeTopChart = () => {
- if (!tradeTopChartRef.value || !tradeTop.value.length) return;
- if (tradeTopChart && tradeTopChart.getDom() !== tradeTopChartRef.value) {
- tradeTopChart.dispose();
- tradeTopChart = null;
- }
- if (!tradeTopChart) tradeTopChart = echarts.init(tradeTopChartRef.value);
- const xData = tradeTop.value.map((v) => v.name);
- const yData = tradeTop.value.map((v) => Number(v.value || 0));
- const maxValue = Math.max(...yData, 0);
- const labelCharsPerLine = resolveAxisLabelCharsPerLine(tradeTopChartRef.value, xData.length, 5);
- const option: echarts.EChartsOption = {
- backgroundColor: 'transparent',
- tooltip: {
- trigger: 'item',
- backgroundColor: 'transparent',
- borderWidth: 0,
- padding: 0,
- extraCssText: 'box-shadow:none;background:transparent;',
- formatter: (params: any) => {
- const name = String(params?.name || '');
- const value = Number(params?.value || 0);
- return buildTooltipCard({
- title: name,
- value: formatTradeTopValue(value),
- color: '#2a50ec',
- subText: tradeTopQuery.dimension,
- });
- },
- },
- grid: { top: 48, left: 20, right: 24, bottom: 64, outerBoundsMode: 'same', outerBoundsContain: 'axisLabel' },
- xAxis: [
- {
- type: 'category',
- data: xData,
- axisTick: { alignWithLabel: true },
- axisLine: { lineStyle: { color: '#8d95a3' } },
- axisLabel: {
- interval: 0,
- color: '#6b7280',
- fontSize: 12,
- lineHeight: 16,
- margin: 10,
- formatter: (value: string) => formatTradeTopAxisLabel(value, labelCharsPerLine, 2),
- },
- },
- ],
- yAxis: [
- {
- name: tradeTopQuery.dimension === '交易金额' ? '金额' : '次数',
- type: 'value',
- min: 0,
- max: getTradeTopAxisMax(maxValue),
- splitNumber: 5,
- nameLocation: 'end',
- nameRotate: 0,
- nameGap: 18,
- nameTextStyle: {
- color: '#6b7280',
- fontSize: 12,
- align: 'left',
- padding: [0, 0, 0, -8],
- },
- axisLine: { show: false },
- axisTick: { show: false },
- axisLabel: {
- color: '#6b7280',
- formatter: (value: number) => value.toLocaleString('zh-CN'),
- },
- splitLine: {
- lineStyle: {
- color: '#dde5f2',
- },
- },
- },
- ],
- series: [
- {
- type: 'bar',
- barWidth: 36,
- data: yData,
- itemStyle: {
- borderRadius: [6, 6, 0, 0],
- // 纯色柱:常交易对象 TOP10 使用项目主蓝,禁止渐变
- color: '#2a50ec',
- },
- emphasis: {
- itemStyle: {
- color: '#0958d9',
- },
- },
- },
- ],
- };
- tradeTopChart.setOption(option, true);
- tradeTopChart.getZr().off('click');
- tradeTopChart.getZr().on('click', (params: any) => {
- void (async () => {
- if (!tradeTop10Data.value.length) return;
- const pointInPixel = [params.offsetX, params.offsetY];
- const pointInGrid = tradeTopChart!.convertFromPixel({ seriesIndex: 0 }, pointInPixel) as number[];
- const dataIndex = pointInGrid?.[0];
- const row = tradeTop.value[dataIndex];
- if (!row) return;
- handleDrillByTradeTop(row);
- })();
- });
- requestAnimationFrame(() => {
- tradeTopChart?.resize();
- });
- };
- const initTradeTrendChart = () => {
- if (!tradeTrendChartRef.value) return;
- if (tradeTrendChart) {
- tradeTrendChart.dispose();
- tradeTrendChart = null;
- }
- tradeTrendChart = echarts.init(tradeTrendChartRef.value);
- const option: echarts.EChartsOption = {
- backgroundColor: 'transparent',
- tooltip: {
- backgroundColor: 'transparent',
- borderWidth: 0,
- padding: 0,
- extraCssText: 'box-shadow:none;background:transparent;',
- position: (pt: number[], _params: any, _dom: any, _rect: any, size: any) => {
- const [width] = size?.contentSize || [0];
- return [pt[0] - width / 2, pt[1] + 10];
- },
- trigger: 'axis',
- axisPointer: {
- type: 'line',
- lineStyle: {
- // 指示线跟随项目主蓝,替代原来的暖橙色
- color: 'rgba(42, 80, 236, 0.35)',
- width: 1.5,
- type: 'dashed',
- },
- },
- showContent: true,
- alwaysShowContent: false,
- showDelay: 0,
- hideDelay: 1000,
- enterable: true,
- confine: false,
- transitionDuration: 0.4,
- formatter: (params: any) => {
- const list = Array.isArray(params) ? params : [params];
- const time = list[0]?.axisValueLabel || list[0]?.name || '-';
- return buildTrendTooltipCard(time, list);
- },
- },
- legend: {
- show: false,
- data: ['收入', '支出'],
- selected: {
- 收入: trendLegendArr.value[0]?.isShow ?? true,
- 支出: trendLegendArr.value[1]?.isShow ?? true,
- },
- },
- grid: {
- left: 44,
- right: 24,
- bottom: 30,
- top: 18,
- outerBoundsMode: 'same',
- outerBoundsContain: 'axisLabel',
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: trendLabels.value,
- axisLine: {
- lineStyle: {
- color: '#e5e7eb',
- },
- },
- axisTick: { show: false },
- axisLabel: {
- interval: 0,
- color: '#6b7280',
- fontSize: 12,
- margin: 16,
- formatter: (value: string) => {
- const maxLength = tradeTrendQuery.timeDimension === 'YEAR' ? 4 : 7;
- const val = String(value ?? '');
- const rowN = Math.ceil(val.length / maxLength);
- if (rowN <= 1) return val;
- let ret = '';
- for (let i = 0; i < rowN; i++) {
- ret += val.substring(i * maxLength, (i + 1) * maxLength) + '\n';
- }
- return ret;
- },
- },
- },
- yAxis: {
- type: 'value',
- axisLine: { show: false },
- axisTick: { show: false },
- axisLabel: {
- color: '#6b7280',
- fontSize: 12,
- formatter: (value: number) => formatTrendAxisValue(value),
- },
- splitNumber: 5,
- splitLine: {
- lineStyle: {
- color: '#eef2f7',
- type: 'dashed',
- },
- },
- },
- series: [
- {
- name: '收入',
- type: 'line',
- smooth: true,
- symbol: 'circle',
- symbolSize: 8,
- showSymbol: false,
- itemStyle: {
- color: '#12b76a',
- borderColor: '#ffffff',
- borderWidth: 2,
- },
- lineStyle: { width: 2.5, color: '#12b76a' },
- areaStyle: {
- // 纯色低透明度填充(禁止渐变)
- color: 'rgba(18, 183, 106, 0.10)',
- },
- emphasis: {
- focus: 'series',
- },
- data: trendIncomePoints.value,
- },
- {
- name: '支出',
- type: 'line',
- smooth: true,
- symbol: 'circle',
- symbolSize: 8,
- showSymbol: false,
- itemStyle: {
- color: '#2a50ec',
- borderColor: '#ffffff',
- borderWidth: 2,
- },
- lineStyle: { width: 2.5, color: '#2a50ec' },
- areaStyle: {
- // 纯色低透明度填充(禁止渐变)
- color: 'rgba(42, 80, 236, 0.10)',
- },
- emphasis: {
- focus: 'series',
- },
- data: trendExpendPoints.value,
- },
- ],
- };
- tradeTrendChart.setOption(option, true);
- (window as any)._handleTrendDetail = handleTrendDetail;
- };
- watch(
- () => [trendLabels.value, trendIncomePoints.value, trendExpendPoints.value],
- async () => {
- if (!trendLabels.value.length) return;
- await nextTick();
- setupChartResizeObserver();
- if (!tradeTrendChartRef.value) return;
- initTradeTrendChart();
- requestAnimationFrame(() => {
- tradeTrendChart?.resize();
- });
- if (tradeTrendScrollRef.value) {
- tradeTrendScrollRef.value.scrollLeft = 0;
- }
- },
- { deep: true },
- );
- watch(
- () => [
- String(tradeTrendQuery.otherName || '').trim(),
- tradeTrendQuery.dateRange?.[0],
- tradeTrendQuery.dateRange?.[1],
- tradeTrendQuery.timeDimension,
- ],
- () => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- tradeTrendData.value = [];
- return;
- }
- scheduleTradeTrendSearch(tradeTrendQuery.timeDimension === 'YEAR' ? 0 : 240);
- },
- );
- watch(
- () => selectedPerson.value?.personName || '',
- (personName) => {
- resetTradeTrendOtherNameState();
- if (!personName) return;
- const currentValue = String(tradeTrendQuery.otherName || '').trim();
- if (currentValue) {
- setTradeTrendOtherNameOptions([currentValue], true);
- }
- void loadTradeTrendOtherNameOptions({ reset: true, search: '' });
- },
- );
- watch(
- () => tradeTrendChartRef.value,
- async (el) => {
- if (!el || !trendLabels.value.length) return;
- await nextTick();
- setupChartResizeObserver();
- initTradeTrendChart();
- requestAnimationFrame(() => {
- tradeTrendChart?.resize();
- });
- },
- );
- watch(
- () => [tradeSummary.value.incomeValue, tradeSummary.value.expendValue, tradeRatioChartRef.value],
- async () => {
- if (!hasTradeRatioData.value || !tradeRatioChartRef.value) {
- if (tradeRatioChart) {
- tradeRatioChart.dispose();
- tradeRatioChart = null;
- }
- return;
- }
- await nextTick();
- setupChartResizeObserver();
- initTradeRatioChart();
- },
- );
- watch(
- () => tradeTop.value,
- async () => {
- await nextTick();
- setupChartResizeObserver();
- if (!tradeTop.value.length || !tradeTopChartRef.value) return;
- initTradeTopChart();
- },
- { deep: true },
- );
- watch(
- () => [
- tradeTopQuery.indicator,
- tradeTopQuery.dimension,
- tradeTopQuery.dateRange?.[0],
- tradeTopQuery.dateRange?.[1],
- ],
- async () => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- tradeTop10Data.value = [];
- return;
- }
- try {
- tradeTop10Data.value = await loadTradeTopData(personName);
- } catch (error) {
- console.error('获取常交易对象TOP10失败', error);
- tradeTop10Data.value = [];
- }
- },
- );
- watch(
- () => [hasRenderableCommTypeRatioData.value, commTypeRatioData.value, commTypeChartRef.value],
- async () => {
- if (!hasRenderableCommTypeRatioData.value || !commTypeChartRef.value) {
- if (commTypeChart) {
- commTypeChart.dispose();
- commTypeChart = null;
- }
- return;
- }
- await nextTick();
- setupChartResizeObserver();
- initCommTypeChart();
- requestAnimationFrame(() => {
- commTypeChart?.resize();
- });
- },
- { deep: true },
- );
- watch(
- () => [hasRenderableTopContacts.value, topContacts.value, commTopChartRef.value],
- async () => {
- if (!hasRenderableTopContacts.value || !commTopChartRef.value) {
- if (commTopChart) {
- commTopChart.dispose();
- commTopChart = null;
- }
- return;
- }
- await nextTick();
- setupChartResizeObserver();
- initCommTopChart();
- },
- { deep: true },
- );
- watch(
- () => [commTopQuery.dateRange?.[0], commTopQuery.dateRange?.[1]],
- async () => {
- const personName = selectedPerson.value?.personName;
- if (!personName) {
- commTop10Data.value = [];
- return;
- }
- try {
- commTop10Data.value = await loadCommTopData(personName);
- } catch (error) {
- console.error('获取常联系对象TOP10失败', error);
- commTop10Data.value = [];
- }
- },
- );
- const stations = computed(() => {
- if (!stationData.value.length) return [];
- return stationData.value
- .filter((item): item is CallStatStationDTO => !!item && typeof item === 'object')
- .map((item) => {
- if (item.personStationName) return item.personStationName;
- const regionId = item.personRegionId || '';
- const cellId = item.personCellId || '';
- if (regionId && cellId) return `${regionId}-${cellId}`;
- return regionId || cellId || '-';
- })
- .filter(Boolean)
- .slice(0, stationDisplayLimit);
- });
- </script>
- <style lang="less">
- @prefix-cls: ~'jeesite-case-portrait';
- .@{prefix-cls}.case-portrait-page {
- padding: 0;
- background: #f5f6f8;
- height: 100%;
- width: calc(100% + 24px);
- margin: 0 -12px;
- box-sizing: border-box;
- overflow: hidden;
- .page-main {
- position: relative;
- display: flex;
- flex-direction: column;
- gap: 12px;
- min-width: 0;
- height: 100%;
- padding: 16px 0;
- box-sizing: border-box;
- overflow: hidden;
- }
- .page-layout {
- display: grid;
- grid-template-columns: 196px minmax(0, 1fr);
- gap: 16px;
- align-items: start;
- flex: 1 1 auto;
- min-height: 0;
- }
- .left-panel {
- position: sticky;
- top: 0;
- align-self: start;
- height: calc(100vh - 100px);
- max-height: calc(100vh - 100px);
- .panel-card {
- position: relative;
- overflow: hidden;
- background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
- border: 1px solid #dfe9fb;
- border-radius: 22px;
- padding: 16px 14px 18px;
- display: flex;
- flex-direction: column;
- gap: 14px;
- box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
- height: 100%;
- box-sizing: border-box;
- &::before {
- content: '';
- position: absolute;
- left: -12px;
- top: -24px;
- width: 180px;
- height: 140px;
- background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0) 74%);
- pointer-events: none;
- }
- }
- .search-box {
- position: relative;
- z-index: 1;
- .ant-input,
- .ant-input-affix-wrapper {
- height: 40px;
- border-radius: 999px;
- border-color: #d8e4fb;
- background: rgba(255, 255, 255, 0.92);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
- padding-inline: 14px;
- }
- .ant-input-affix-wrapper {
- display: flex;
- align-items: center;
- overflow: hidden;
- box-sizing: border-box;
- }
- .ant-input-affix-wrapper > .ant-input {
- height: 100%;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- }
- .ant-input-affix-wrapper .ant-input-suffix,
- .ant-input-affix-wrapper .ant-input-clear-icon {
- display: inline-flex;
- align-items: center;
- }
- .ant-input:focus,
- .ant-input-focused,
- .ant-input-affix-wrapper-focused {
- border-color: #8ab4ff;
- box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
- }
- }
- .left-actions {
- display: flex;
- position: relative;
- z-index: 1;
- .ant-btn {
- height: 40px;
- border: 0;
- border-radius: 999px;
- font-weight: 600;
- letter-spacing: 0.04em;
- background: linear-gradient(135deg, #2f7df6 0%, #56b1ff 100%);
- box-shadow: 0 12px 22px rgba(59, 130, 246, 0.24);
- }
- }
- .person-list {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 8px;
- flex: 1;
- overflow-y: auto;
- overflow-x: hidden;
- min-height: 0;
- padding: 4px 2px 0 0;
- &::before {
- display: none;
- }
- &::-webkit-scrollbar {
- width: 4px;
- }
- &::-webkit-scrollbar-thumb {
- background: #ccc;
- border-radius: 2px;
- }
- .empty-tip {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 10px;
- position: relative;
- z-index: 1;
- width: 100%;
- min-height: 148px;
- padding: 24px 14px;
- box-sizing: border-box;
- border-radius: 24px;
- border: 1px dashed rgba(183, 202, 234, 0.72);
- background:
- radial-gradient(circle at top right, rgba(119, 177, 255, 0.12), transparent 32%),
- linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(243, 247, 255, 0.92) 100%);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
- &::before {
- content: '';
- flex: 0 0 52px;
- width: 52px;
- height: 52px;
- border-radius: 18px;
- border: 1px solid rgba(187, 208, 247, 0.82);
- background:
- radial-gradient(circle at 50% 16px, #5b8ff9 0 5px, transparent 6px),
- linear-gradient(#d5e3ff 0 0) center 34px / 26px 3px no-repeat,
- linear-gradient(180deg, #76a9ff 0%, #4f7cff 100%) 17px 30px / 6px 11px no-repeat,
- linear-gradient(180deg, #8fc6ff 0%, #60a5fa 100%) 25px 26px / 6px 15px no-repeat,
- linear-gradient(180deg, #c4b5fd 0%, #93c5fd 100%) 33px 23px / 6px 18px no-repeat,
- linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.92) 100%);
- background-repeat: no-repeat;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.92),
- 0 14px 24px rgba(59, 130, 246, 0.1);
- }
- }
- }
- .person-card {
- width: 100%;
- max-width: none;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- gap: 10px;
- min-height: 60px;
- padding: 10px 12px;
- border-radius: 12px;
- background: #fafafa;
- border: 1px solid #e7edf5;
- cursor: pointer;
- transition:
- border-color 0.22s ease,
- box-shadow 0.22s ease,
- background 0.22s ease;
- position: relative;
- overflow: visible;
- z-index: 1;
- &::before {
- display: none;
- }
- &::after {
- display: none;
- }
- &:hover {
- background: #fff;
- border-color: #d7e4f6;
- box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
- .person-avatar .jeesite-person-avatar__media {
- background: linear-gradient(135deg, #4d92ff 0%, #73c0ff 100%);
- box-shadow: 0 8px 14px rgba(59, 130, 246, 0.18);
- }
- .person-name {
- color: #0f172a;
- }
- }
- &.active {
- background: #ffffff;
- border-color: #9ec5fe;
- box-shadow:
- inset 0 0 0 1px rgba(47, 125, 246, 0.12),
- 0 8px 18px rgba(59, 130, 246, 0.08);
- .person-avatar .jeesite-person-avatar__media {
- background: linear-gradient(135deg, #2f7df6 0%, #57b3ff 100%);
- box-shadow: 0 8px 14px rgba(59, 130, 246, 0.2);
- }
- .person-name {
- color: #0f172a;
- font-weight: 600;
- }
- }
- }
- .person-avatar-wrap {
- position: relative;
- width: 44px;
- height: 44px;
- flex: 0 0 44px;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: none;
- &::before {
- display: none;
- }
- }
- .person-avatar {
- display: flex;
- position: relative;
- z-index: 1;
- transition: all 0.22s ease;
- }
- .person-name {
- position: relative;
- z-index: 1;
- flex: 1;
- min-width: 0;
- max-width: none;
- min-height: auto;
- font-size: 13px;
- line-height: 1.5;
- color: #5b6472;
- font-weight: 500;
- text-align: left;
- word-break: break-word;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- transition:
- color 0.22s ease,
- font-weight 0.22s ease;
- }
- .group-btn-wrap {
- margin-top: auto;
- padding-top: 14px;
- border-top: 1px solid rgba(209, 223, 246, 0.88);
- position: relative;
- z-index: 1;
- .group-btn {
- width: 100%;
- height: 40px;
- border-radius: 999px;
- border-color: #d6e4ff;
- color: #205ecf;
- background: rgba(255, 255, 255, 0.88);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
- }
- }
- }
- .right-panel {
- display: flex;
- flex-direction: column;
- align-self: stretch;
- flex: 1 1 auto;
- gap: 16px;
- min-width: 0;
- min-height: 0;
- overflow-y: auto;
- padding-right: 8px;
- &::-webkit-scrollbar {
- width: 6px;
- }
- &::-webkit-scrollbar-thumb {
- background: #ccc;
- border-radius: 3px;
- }
- }
- .section-card {
- background: #fff;
- border-radius: 12px;
- padding: 16px;
- box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
- }
- .quick-nav-shell {
- display: none;
- }
- .comm-section {
- padding: 14px 18px 18px;
- background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
- border: 1px solid #e6eefc;
- box-shadow: 0 12px 28px rgba(37, 74, 151, 0.06);
- }
- .comm-info {
- display: flex;
- flex-direction: column;
- gap: 10px;
- font-size: 12px;
- color: #475569;
- }
- .comm-row {
- display: flex;
- align-items: center;
- gap: 12px;
- .label {
- font-weight: 600;
- color: #1f2937;
- }
- .value {
- font-weight: 600;
- }
- .carrier {
- color: #2563eb;
- }
- }
- .comm-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 8px 24px;
- .grid-item {
- display: flex;
- gap: 6px;
- color: #475569;
- }
- .label {
- color: #6b7280;
- }
- .value {
- font-weight: 600;
- color: #1f2937;
- }
- }
- .comm-divider {
- border-top: 1px dashed #e2e8f0;
- margin: 12px 0;
- }
- .comm-chart-row {
- display: grid;
- grid-template-columns: 380px 1fr;
- gap: 18px;
- align-items: stretch;
- }
- .comm-chart-header,
- .trade-chart-header,
- .comm-top-header,
- .trade-top-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 16px;
- min-height: 36px;
- }
- .trade-section {
- padding: 14px 18px 18px;
- background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
- border: 1px solid #eef0f5;
- box-shadow: 0 12px 28px rgba(59, 78, 122, 0.06);
- }
- .trade-summary {
- font-size: 12px;
- color: #475569;
- }
- .trade-row {
- display: flex;
- flex-wrap: wrap;
- gap: 8px 12px;
- align-items: center;
- .label {
- font-weight: 600;
- color: #1f2937;
- }
- .value {
- font-weight: 600;
- }
- }
- .trade-tag {
- background: #eef2ff;
- color: #2563eb;
- padding: 2px 8px;
- border-radius: 6px;
- font-size: 12px;
- }
- .trade-chart-row {
- display: grid;
- grid-template-columns: 380px 1fr;
- gap: 18px;
- align-items: stretch;
- }
- .trade-chart {
- display: flex;
- flex-direction: column;
- gap: 12px;
- min-width: 0;
- height: 100%;
- }
- .trade-kpi {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
- gap: 10px 24px;
- font-size: 14px;
- color: #374151;
- .trade-kpi-item {
- display: flex;
- align-items: center;
- gap: 4px;
- }
- .trade-kpi-label {
- color: #374151;
- }
- .trade-kpi-value {
- font-weight: 600;
- }
- .down {
- color: #ff8a66;
- }
- .up {
- color: #2ac8a0;
- }
- }
- .legend-sub {
- margin-left: 18px;
- color: #64748b;
- font-size: 12px;
- }
- .bar.clickable {
- cursor: pointer;
- }
- .trade-top-echart {
- width: 100%;
- height: 320px;
- }
- .trade-section .chart-tools,
- .trade-section .trend-tools {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 6px;
- font-size: 12px;
- color: #64748b;
- .select-input {
- width: 120px;
- }
- .search-input {
- width: 300px;
- max-width: 100%;
- }
- .range-date-input {
- width: 260px;
- }
- }
- .trade-top-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 18px;
- flex-wrap: wrap;
- }
- .trade-top-tools {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- flex-wrap: wrap;
- gap: 10px;
- font-size: 14px;
- color: #1f2937;
- .tool-label {
- color: #1f2937;
- white-space: nowrap;
- font-weight: 500;
- }
- .metric-select {
- width: 118px;
- }
- .trade-top-range {
- width: 264px;
- }
- .metric-select,
- .trade-top-range {
- .ant-select-selector,
- &.ant-picker {
- border-radius: 12px;
- border-color: rgba(137, 153, 204, 0.22);
- background: rgba(255, 255, 255, 0.72);
- backdrop-filter: blur(12px);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.82),
- 0 10px 24px rgba(76, 88, 128, 0.08);
- }
- }
- }
- .comm-top-header {
- flex-wrap: wrap;
- .chart-title {
- font-size: 15px;
- }
- }
- .comm-top-tools {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- flex: 1;
- flex-wrap: wrap;
- gap: 10px;
- font-size: 14px;
- color: #1f2937;
- .tool-label {
- color: #1f2937;
- white-space: nowrap;
- font-weight: 500;
- }
- .comm-top-range {
- width: 420px;
- max-width: 100%;
- &.ant-picker {
- border-radius: 12px;
- border-color: rgba(137, 153, 204, 0.22);
- background: rgba(255, 255, 255, 0.72);
- backdrop-filter: blur(12px);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.82),
- 0 10px 24px rgba(76, 88, 128, 0.08);
- }
- }
- }
- .trade-top-dimension {
- display: inline-flex;
- align-items: center;
- gap: 18px;
- .ant-radio-wrapper {
- margin-inline-end: 0;
- color: #3f4756;
- }
- }
- .visual-chart-surface {
- position: relative;
- display: flex;
- flex: 1;
- flex-direction: column;
- margin-top: 12px;
- border: 1px solid rgba(137, 153, 204, 0.18);
- border-radius: 22px;
- background: rgba(255, 255, 255, 0.7);
- backdrop-filter: blur(14px);
- box-sizing: border-box;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.82),
- 0 18px 36px rgba(42, 66, 118, 0.1);
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- inset: 0;
- pointer-events: none;
- background:
- radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 32%),
- linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 24%);
- }
- &::after {
- content: '';
- position: absolute;
- width: 180px;
- height: 180px;
- top: -88px;
- right: -78px;
- border-radius: 50%;
- filter: blur(4px);
- opacity: 0.6;
- pointer-events: none;
- }
- }
- .visual-chart-surface > * {
- position: relative;
- z-index: 1;
- }
- .visual-chart-surface--comm {
- background: linear-gradient(
- 145deg,
- rgba(241, 247, 255, 0.92) 0%,
- rgba(234, 246, 255, 0.8) 45%,
- rgba(255, 255, 255, 0.78) 100%
- );
- border-color: rgba(124, 165, 255, 0.2);
- &::after {
- background: radial-gradient(circle, rgba(102, 199, 255, 0.18) 0%, rgba(102, 199, 255, 0) 70%);
- }
- }
- .visual-chart-surface--trade {
- background: linear-gradient(
- 145deg,
- rgba(255, 248, 242, 0.94) 0%,
- rgba(248, 244, 255, 0.82) 44%,
- rgba(255, 255, 255, 0.8) 100%
- );
- border-color: rgba(255, 181, 134, 0.2);
- &::after {
- background: radial-gradient(circle, rgba(255, 153, 102, 0.18) 0%, rgba(255, 153, 102, 0) 70%);
- }
- }
- .visual-chart-surface--ratio {
- min-height: 356px;
- }
- .visual-chart-surface--bar {
- min-height: 356px;
- }
- .visual-chart-surface--trend {
- min-height: 446px;
- padding: 18px 18px 16px;
- }
- .radio {
- padding: 2px 8px;
- border-radius: 999px;
- background: #f1f5f9;
- color: #64748b;
- cursor: pointer;
- &.active {
- background: #e0e7ff;
- color: #1d4ed8;
- font-weight: 600;
- }
- }
- .trade-trend {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .trade-trend-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 16px 20px;
- flex-wrap: wrap;
- }
- .trade-trend-heading {
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-width: 0;
- }
- .trade-trend-subtitle {
- font-size: 13px;
- line-height: 1.6;
- color: #7b8797;
- }
- .trade-trend-toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
- gap: 14px 18px;
- padding: 16px 18px;
- border: 1px solid rgba(255, 198, 170, 0.58);
- border-radius: 20px;
- background:
- radial-gradient(circle at right top, rgba(255, 189, 143, 0.18), transparent 28%),
- linear-gradient(145deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 244, 238, 0.92) 100%);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.9),
- 0 14px 28px rgba(255, 147, 106, 0.08);
- }
- .trade-trend-filters {
- display: flex;
- align-items: center;
- flex: 1;
- min-width: 0;
- flex-wrap: wrap;
- gap: 10px;
- .tool-label {
- font-size: 13px;
- color: #374151;
- white-space: nowrap;
- font-weight: 500;
- }
- .trend-search-input {
- width: 220px;
- }
- .trend-range-input {
- width: 286px;
- max-width: 100%;
- }
- .trend-search-input {
- :deep(.ant-select-selector) {
- border-radius: 12px;
- border-color: rgba(174, 157, 196, 0.24);
- background: rgba(255, 255, 255, 0.82);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.9),
- 0 10px 24px rgba(132, 110, 144, 0.08);
- }
- }
- .trend-range-input {
- border-radius: 12px;
- border-color: rgba(174, 157, 196, 0.24);
- background: rgba(255, 255, 255, 0.82);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.9),
- 0 10px 24px rgba(132, 110, 144, 0.08);
- }
- }
- .trade-trend-dimension {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 4px;
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.76);
- border: 1px solid rgba(255, 208, 184, 0.78);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
- .radio {
- min-width: 38px;
- padding: 5px 12px;
- text-align: center;
- background: transparent;
- }
- }
- .trade-trend-chart-box {
- margin-top: 0;
- }
- .trade-top-chart-box {
- padding: 16px;
- height: 100%;
- box-sizing: border-box;
- }
- .comm-top-chart-box {
- padding: 16px;
- height: 100%;
- box-sizing: border-box;
- }
- .chart-more-link {
- margin-left: auto;
- height: 30px;
- padding: 0 12px;
- border: 1px solid rgba(133, 153, 197, 0.18);
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.56);
- backdrop-filter: blur(12px);
- box-shadow: 0 8px 20px rgba(76, 88, 128, 0.08);
- font-size: 13px;
- color: #2a5fd6;
- }
- .chart-more-link.ant-btn-link {
- display: inline-flex;
- flex: 0 0 auto;
- align-items: center;
- justify-content: center;
- text-decoration: none;
- }
- .comm-top-echart {
- width: 100%;
- height: 300px;
- }
- .trend-chart-scroll {
- flex: 1;
- min-height: 0;
- width: 100%;
- overflow-x: auto;
- box-sizing: border-box;
- padding: 16px 4px 0;
- }
- .trend-chart {
- position: relative;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- overflow: visible;
- }
- .trend-echart {
- width: 100%;
- height: 100%;
- min-height: 340px;
- }
- .comm-chart-box {
- padding: 18px 16px;
- height: 100%;
- justify-content: center;
- box-sizing: border-box;
- }
- .comm-echart {
- width: 100%;
- height: 300px;
- }
- .chart-more-btn {
- position: absolute;
- top: 8px;
- right: 8px;
- z-index: 2;
- }
- .comm-chart {
- display: flex;
- flex-direction: column;
- gap: 12px;
- min-width: 0;
- height: 100%;
- }
- .chart-title {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 15px;
- font-weight: 600;
- color: #1e293b;
- letter-spacing: 0.01em;
- .flag {
- width: 3px;
- height: 12px;
- background: linear-gradient(180deg, #64a8ff 0%, #2866ff 100%);
- border-radius: 999px;
- box-shadow: 0 0 0 3px rgba(100, 168, 255, 0.1);
- }
- }
- .trade-section {
- .chart-title {
- .flag {
- background: linear-gradient(180deg, #ffb069 0%, #ff7f50 100%);
- box-shadow: 0 0 0 3px rgba(255, 176, 105, 0.1);
- }
- }
- }
- .trend-title-row {
- .trend-legend-item {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- margin-left: 0;
- padding: 8px 14px;
- border-radius: 999px;
- border: 1px solid rgba(255, 201, 177, 0.58);
- background: rgba(255, 255, 255, 0.72);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.9),
- 0 10px 22px rgba(255, 150, 112, 0.08);
- cursor: pointer;
- font-weight: 500;
- transition:
- transform 0.2s ease,
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- opacity 0.2s ease;
- &:hover {
- transform: translateY(-1px);
- border-color: rgba(255, 167, 128, 0.66);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.92),
- 0 12px 24px rgba(255, 146, 108, 0.12);
- }
- &.is-muted {
- opacity: 0.62;
- box-shadow: none;
- }
- }
- .circles {
- width: 10px;
- height: 10px;
- flex: 0 0 10px;
- border-radius: 50%;
- display: inline-block;
- }
- .circles-text {
- color: #3f4756;
- font-size: 13px;
- }
- }
- .chart-tools {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 12px;
- color: #64748b;
- .date-input {
- width: 120px;
- }
- }
- .donut-wrap {
- display: flex;
- align-items: center;
- gap: 22px;
- }
- .donut-legend {
- display: flex;
- flex-direction: column;
- flex: 1;
- min-width: 0;
- gap: 18px;
- font-size: 14px;
- color: #1f2937;
- .legend-main {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 4px;
- line-height: 1.2;
- }
- .legend-title {
- color: #374151;
- }
- .legend-rate {
- font-weight: 500;
- color: #374151;
- }
- .legend-amount {
- padding-left: 24px;
- line-height: 1.3;
- color: #4b5563;
- word-break: break-all;
- }
- .dot {
- width: 16px;
- height: 16px;
- border-radius: 50%;
- display: inline-block;
- flex: 0 0 16px;
- &.success {
- background: #2ac8a0;
- }
- &.warning {
- background: #ff8a66;
- }
- }
- }
- .trade-ratio-panel {
- padding: 18px 20px 16px;
- display: flex;
- flex-direction: column;
- gap: 20px;
- height: 100%;
- justify-content: space-between;
- box-sizing: border-box;
- }
- .legend-click {
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding: 12px 14px;
- border: 1px solid rgba(160, 171, 207, 0.18);
- border-radius: 16px;
- background: rgba(255, 255, 255, 0.44);
- backdrop-filter: blur(12px);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.72),
- 0 10px 20px rgba(74, 86, 120, 0.06);
- cursor: pointer;
- transition:
- opacity 0.2s ease,
- border-color 0.2s ease,
- transform 0.2s ease;
- &:hover {
- opacity: 0.92;
- border-color: rgba(120, 145, 215, 0.3);
- transform: translateY(-1px);
- }
- }
- .empty-state__title {
- font-size: 15px;
- line-height: 1.3;
- font-weight: 700;
- color: #526072;
- letter-spacing: 0.01em;
- }
- .empty-state__desc {
- display: none;
- }
- .chart-empty,
- .group-left .group-list .ant-list-empty-text,
- .member-list .ant-list-empty-text {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 10px;
- padding: 24px 18px;
- box-sizing: border-box;
- text-align: center;
- font-size: 14px;
- line-height: 1.6;
- color: #8ea0b2;
- border: 1px dashed rgba(183, 202, 234, 0.72);
- border-radius: 20px;
- background:
- radial-gradient(circle at top right, rgba(119, 177, 255, 0.12), transparent 32%),
- linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(243, 247, 255, 0.92) 100%);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
- overflow: hidden;
- &::before {
- content: '';
- flex: 0 0 56px;
- width: 56px;
- height: 56px;
- border-radius: 18px;
- border: 1px solid rgba(187, 208, 247, 0.82);
- background:
- radial-gradient(circle at 50% 16px, #5b8ff9 0 5px, transparent 6px),
- linear-gradient(#d5e3ff 0 0) center 35px / 28px 3px no-repeat,
- linear-gradient(180deg, #76a9ff 0%, #4f7cff 100%) 18px 31px / 6px 12px no-repeat,
- linear-gradient(180deg, #8fc6ff 0%, #60a5fa 100%) 27px 26px / 6px 17px no-repeat,
- linear-gradient(180deg, #c4b5fd 0%, #93c5fd 100%) 36px 22px / 6px 21px no-repeat,
- linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.92) 100%);
- background-repeat: no-repeat;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.92),
- 0 14px 24px rgba(59, 130, 246, 0.1);
- }
- }
- .chart-empty {
- min-height: 156px;
- margin-top: 8px;
- }
- .trade-trend-empty {
- min-height: 446px;
- margin-top: 0;
- border-radius: 22px;
- border-color: rgba(255, 198, 170, 0.58);
- background:
- radial-gradient(circle at right top, rgba(255, 188, 143, 0.18), transparent 28%),
- linear-gradient(145deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 245, 240, 0.92) 100%);
- color: #94a3b8;
- &::before {
- border-color: rgba(255, 205, 177, 0.9);
- background:
- radial-gradient(circle at 50% 16px, #ff9a66 0 5px, transparent 6px),
- linear-gradient(#ffe2d1 0 0) center 35px / 28px 3px no-repeat,
- linear-gradient(180deg, #ffba74 0%, #ff8b66 100%) 18px 31px / 6px 12px no-repeat,
- linear-gradient(180deg, #ffd28f 0%, #ffba74 100%) 27px 26px / 6px 17px no-repeat,
- linear-gradient(180deg, #fdc7d7 0%, #ffbe86 100%) 36px 22px / 6px 21px no-repeat,
- linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 240, 0.92) 100%);
- background-repeat: no-repeat;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.92),
- 0 14px 24px rgba(255, 153, 102, 0.12);
- }
- }
- .station-list {
- display: flex;
- flex-wrap: wrap;
- gap: 12px;
- }
- .station-item {
- background: #f8fafc;
- border-radius: 8px;
- padding: 6px 10px;
- font-size: 12px;
- color: #475569;
- }
- .trade-ratio-echart {
- width: 180px;
- height: 180px;
- flex: 0 0 180px;
- }
- .donut.trade {
- background: conic-gradient(#22c55e 0 9.7591%, #f97316 9.7591% 100%);
- }
- .station-row {
- display: flex;
- align-items: center;
- gap: 12px;
- font-size: 12px;
- color: #1f2937;
- margin-bottom: 8px;
- }
- .section-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- flex-wrap: wrap;
- gap: 14px 18px;
- margin-bottom: 16px;
- padding-bottom: 12px;
- border-bottom: 1px solid rgba(221, 230, 244, 0.92);
- }
- .section-title {
- display: inline-flex;
- align-items: center;
- gap: 10px;
- font-size: 18px;
- font-weight: 700;
- line-height: 1.2;
- color: #0f172a;
- letter-spacing: 0.02em;
- &::before {
- content: '';
- width: 4px;
- height: 16px;
- border-radius: 999px;
- background: linear-gradient(180deg, #68abff 0%, #2f7df6 100%);
- box-shadow: 0 0 0 3px rgba(104, 171, 255, 0.12);
- }
- }
- .section-tools {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- flex-wrap: wrap;
- gap: 12px;
- margin-left: auto;
- }
- .section-action {
- padding: 0 14px;
- color: #2563eb;
- font-weight: 600;
- }
- .section-action.ant-btn-link {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- height: 32px;
- border: 1px solid rgba(191, 203, 228, 0.74);
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.82);
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.9),
- 0 10px 22px rgba(76, 88, 128, 0.06);
- text-decoration: none;
- &:hover {
- border-color: rgba(147, 197, 253, 0.92);
- background: #eff6ff;
- color: #1d4ed8;
- }
- }
- .basic-content {
- display: grid;
- grid-template-columns: 108px minmax(0, 1fr);
- gap: 10px;
- }
- .basic-profile {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 4px;
- padding: 8px 6px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- }
- .profile-avatar {
- display: flex;
- }
- .profile-name {
- font-size: 13px;
- font-weight: 600;
- color: #1f2937;
- }
- .info-grid {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 5px;
- }
- .info-item {
- font-size: 13px;
- color: #334155;
- display: flex;
- align-items: flex-start;
- gap: 2px;
- min-width: 0;
- min-height: 40px;
- padding: 6px 8px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- flex-direction: column;
- }
- .info-label {
- color: #64748b;
- font-size: 12px;
- line-height: 16px;
- white-space: nowrap;
- flex: 0 0 auto;
- }
- .info-value {
- min-width: 0;
- white-space: normal;
- word-break: break-all;
- overflow-wrap: anywhere;
- line-height: 16px;
- }
- .relation-search {
- width: 220px;
- border-radius: 8px;
- }
- .relation-list {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
- gap: 16px;
- }
- .relation-card {
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- padding: 12px;
- display: flex;
- flex-direction: column;
- gap: 10px;
- position: relative;
- }
- .relation-avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background: #e0e7ff;
- color: #1d4ed8;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- }
- .relation-main {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .relation-name {
- font-weight: 600;
- color: #1f2937;
- }
- .relation-score {
- font-size: 13px;
- color: #64748b;
- span {
- color: #1d4ed8;
- font-weight: 600;
- }
- }
- .relation-tags {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- }
- .tag {
- padding: 2px 6px;
- border-radius: 6px;
- background: #f1f5f9;
- color: #475569;
- font-size: 12px;
- }
- .relation-action {
- padding: 0;
- align-self: flex-end;
- color: #3b82f6;
- }
- }
- .quick-nav {
- position: absolute;
- top: 66px;
- right: 0;
- width: 84px;
- background: #fff;
- border: 1px solid #e5e7eb;
- border-radius: 12px;
- padding: 8px 0;
- display: flex;
- flex-direction: column;
- gap: 4px;
- box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
- z-index: 20;
- .nav-item {
- font-size: 12px;
- color: #475569;
- padding: 6px 12px;
- text-align: center;
- cursor: pointer;
- &.active {
- color: #2563eb;
- font-weight: 600;
- }
- }
- }
- .portrait-modal-title-block {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .portrait-modal-title {
- font-size: 20px;
- line-height: 1.3;
- font-weight: 700;
- color: #111827;
- }
- .portrait-modal-subtitle {
- font-size: 12px;
- line-height: 1.6;
- color: #6b7280;
- }
- :deep(.object-group-modal .ant-modal) {
- width: 960px !important;
- max-width: calc(100vw - 40px);
- }
- :deep(.object-group-modal .ant-modal-content) {
- max-height: 640px;
- display: flex;
- flex-direction: column;
- padding: 0;
- overflow: hidden;
- border-radius: 16px;
- background: #fff;
- box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
- }
- :deep(.object-group-modal .ant-modal-header) {
- flex: 0 0 auto;
- padding: 16px 18px;
- border-bottom: 1px solid #e5e7eb;
- background: @modal-header-bg-color;
- }
- :deep(.object-group-modal .ant-modal-title) {
- color: inherit;
- }
- :deep(.object-group-modal .ant-modal-close) {
- top: 16px;
- right: 18px;
- color: #64748b;
- }
- :deep(.object-group-modal .ant-modal-close-x) {
- width: 36px;
- height: 36px;
- }
- :deep(.object-group-modal .ant-modal-body) {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- padding: 16px 18px 18px;
- background: #fff;
- }
- :deep(.object-group-modal .ant-modal-body::-webkit-scrollbar) {
- width: 6px;
- }
- :deep(.object-group-modal .ant-modal-body::-webkit-scrollbar-thumb) {
- background: #cbd5e1;
- border-radius: 999px;
- }
- .group-modal-content {
- display: flex;
- flex-direction: column;
- gap: 12px;
- padding: 0;
- }
- .group-modal-actions {
- display: flex;
- align-items: center;
- gap: 12px;
- flex-wrap: wrap;
- padding: 12px 14px;
- border: 1px solid #e5e7eb;
- border-radius: 14px;
- background: #fafafa;
- }
- .group-modal-actions__info {
- margin-right: auto;
- font-size: 12px;
- line-height: 1.6;
- color: #6b7280;
- }
- .group-modal-actions__buttons {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- }
- .group-modal-actions .head-btn {
- min-width: 112px;
- height: 40px;
- border-radius: 12px;
- padding: 0 22px;
- border: 1px solid #d6deea;
- background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
- color: #1f2937;
- font-size: 13px;
- font-weight: 600;
- box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- > span {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- line-height: 1;
- }
- }
- .group-modal-actions .head-btn:hover,
- .group-modal-actions .head-btn:focus {
- border-color: #c4cfdd;
- background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
- color: #111827;
- }
- .group-modal-actions .head-btn--primary,
- .group-modal-actions .head-btn--accent {
- color: #1f2937;
- background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
- border-color: #d6deea;
- }
- .group-modal-actions .head-btn--danger {
- color: #1f2937;
- background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
- border-color: #d6deea;
- }
- .group-modal-main {
- display: grid;
- grid-template-columns: 308px minmax(0, 1fr);
- gap: 14px;
- height: min(500px, calc(100vh - 240px));
- min-height: 400px;
- }
- .group-left,
- .group-right {
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
- border: 1px solid #dfe6ef;
- border-radius: 16px;
- background: #fff;
- box-shadow: none;
- }
- .group-panel-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- padding: 14px 16px 10px;
- border-bottom: 1px solid #eef2f7;
- }
- .group-panel-head--right {
- padding-bottom: 10px;
- }
- .group-panel-title {
- font-size: 15px;
- font-weight: 600;
- color: #111827;
- }
- .group-panel-title-wrap {
- min-width: 0;
- }
- .group-panel-subtitle {
- margin-top: 4px;
- font-size: 12px;
- line-height: 1.5;
- color: #6b7280;
- }
- .group-panel-badge {
- min-width: 28px;
- height: 28px;
- padding: 0 10px;
- border-radius: 999px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: #eff6ff;
- color: #2563eb;
- font-size: 12px;
- font-weight: 700;
- }
- .group-left {
- padding: 0;
- }
- .group-left .group-list .ant-list-item {
- padding: 0;
- border: 0;
- }
- .group-left .group-list .ant-list-item + .ant-list-item {
- margin-top: 8px;
- }
- .group-left .group-list {
- flex: 1;
- min-height: 0;
- padding: 12px;
- overflow-y: auto;
- }
- .group-left .group-list .ant-list-empty-text {
- min-height: 164px;
- }
- .group-select-btn {
- min-height: 44px;
- height: 44px;
- border-radius: 12px;
- padding: 0 12px;
- font-size: 14px;
- line-height: 42px;
- box-shadow: none;
- }
- .group-select-btn > span {
- display: block;
- width: 100%;
- height: 42px;
- line-height: 42px;
- }
- .group-select-btn__name {
- display: block;
- width: 100%;
- height: 42px;
- line-height: 42px;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- text-align: center;
- font-weight: 600;
- }
- .group-select-btn.ant-btn-default {
- border-color: #d7dee8;
- color: #111827;
- background: #fff;
- }
- .group-select-btn.ant-btn-default:hover {
- border-color: #c7d1dd;
- color: #1f2937;
- background: #fafafa;
- }
- .group-select-btn.ant-btn-primary {
- border-color: #4665eb;
- background: linear-gradient(180deg, #4b68f3 0%, #3f5de6 100%);
- color: #fff;
- box-shadow: 0 8px 18px rgba(63, 93, 230, 0.18);
- }
- .group-right {
- padding: 0 14px 14px;
- }
- .member-list {
- flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding-top: 12px;
- padding-right: 4px;
- }
- .member-list .ant-list-items {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .member-list .ant-list-item {
- padding: 14px 16px;
- border: 1px solid #edf1f5;
- border-radius: 14px;
- background: #fff;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
- }
- .member-list .ant-list-empty-text {
- min-height: 188px;
- }
- .member-list .ant-list-item-meta {
- align-items: center;
- }
- .member-list .ant-list-item-meta-title {
- margin-bottom: 2px;
- }
- .member-list .ant-list-item-action {
- margin-left: 18px;
- }
- .member-list .ant-list-item-action > li {
- padding: 0 0 0 10px;
- }
- .member-avatar-icon {
- background: #b7b7b7;
- color: #fff;
- box-shadow: none;
- }
- .member-avatar-icon svg {
- width: 18px;
- height: 18px;
- }
- .member-name-row {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .member-name {
- font-size: 15px;
- font-weight: 600;
- color: #111827;
- }
- .member-main-tag {
- padding: 2px 8px;
- border-radius: 999px;
- background: #eff6ff;
- color: #1d4ed8;
- font-size: 12px;
- font-weight: 700;
- }
- .member-desc {
- font-size: 12px;
- color: #6b7280;
- }
- .member-main-btn,
- .member-remove-btn {
- height: auto;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- font-size: 12px;
- font-weight: 600;
- box-shadow: none;
- text-decoration: none;
- }
- .member-main-btn {
- color: #2563eb;
- &:hover {
- color: #1d4ed8;
- background: transparent;
- border-color: transparent;
- }
- &.ant-btn-link:disabled,
- &.ant-btn-link.ant-btn-disabled,
- &.ant-btn-link[disabled] {
- color: #9ca3af;
- cursor: not-allowed;
- background: transparent;
- border-color: transparent;
- box-shadow: none;
- }
- }
- .member-remove-btn {
- color: #2563eb;
- &:hover {
- color: #1d4ed8;
- background: transparent;
- border-color: transparent;
- }
- }
- @media (max-width: 960px) {
- :deep(.object-group-modal .ant-modal) {
- max-width: calc(100vw - 24px);
- }
- :deep(.object-group-modal .ant-modal-body) {
- padding: 20px;
- }
- .group-modal-actions {
- align-items: flex-start;
- }
- .group-modal-actions__info {
- margin-right: 0;
- }
- .group-modal-actions__buttons {
- width: 100%;
- }
- .group-modal-main {
- grid-template-columns: minmax(0, 1fr);
- }
- .group-left .group-list {
- max-height: 220px;
- }
- .member-list .ant-list-item {
- flex-wrap: wrap;
- gap: 12px;
- }
- .member-list .ant-list-item-action {
- margin-left: 0;
- }
- .member-list .ant-list-item-action > li {
- padding-left: 0;
- }
- .create-group-modal {
- .ant-modal {
- max-width: calc(100vw - 24px);
- }
- .ant-modal-body {
- padding: 20px;
- }
- .create-group-section {
- padding: 16px 16px 4px;
- }
- }
- }
- .dynamic-input-list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .dynamic-input-item {
- display: flex;
- align-items: flex-start;
- gap: 10px;
- .ant-form-item {
- flex: 1;
- min-width: 0;
- margin-bottom: 0;
- }
- .remove-btn,
- .add-btn {
- width: 36px;
- height: 36px;
- min-width: 36px;
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 12px;
- border: 1px solid #dbe5f5;
- background: rgba(255, 255, 255, 0.86);
- color: #64748b;
- margin-top: 2px;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.8),
- 0 8px 18px rgba(95, 108, 143, 0.08);
- &:hover {
- color: #3b82f6;
- background: #eff6ff;
- border-color: #bfdbfe;
- }
- }
- .remove-btn:hover {
- color: #ef4444;
- background: #fef2f2;
- border-color: #fecaca;
- }
- }
- .person-card-popover {
- .ant-popover-inner {
- border-radius: 10px;
- box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
- padding: 0;
- }
- .ant-popover-inner-content {
- padding: 6px 0;
- }
- .avatar-pop-content {
- min-width: 86px;
- }
- .edit-item {
- padding: 8px 14px;
- font-size: 14px;
- line-height: 1;
- color: #334155;
- cursor: pointer;
- transition: all 0.2s ease;
- user-select: none;
- &:hover {
- background: #f1f5f9;
- color: #1d4ed8;
- }
- &.delete {
- color: #ef4444;
- &:hover {
- background: #fff1f2;
- color: #dc2626;
- }
- }
- }
- }
- .create-group-modal {
- .ant-modal-content {
- max-height: 720px;
- display: flex;
- flex-direction: column;
- padding: 0;
- overflow: hidden;
- border-radius: 14px;
- background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
- box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
- }
- .ant-modal-header {
- flex: 0 0 auto;
- padding: 20px;
- border-bottom: 1px solid #e5e7eb;
- background: @modal-header-bg-color;
- }
- .ant-modal-title {
- font-size: 16px;
- font-weight: 600;
- line-height: 24px;
- color: #111827;
- }
- .ant-modal-close {
- top: 14px;
- right: 16px;
- color: #64748b;
- border-radius: 8px;
- transition: background-color 0.2s ease;
- }
- .ant-modal-close:hover {
- background: rgba(37, 99, 235, 0.08);
- }
- .ant-modal-close-x {
- width: 36px;
- height: 36px;
- }
- .ant-modal-body {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- padding: 20px;
- }
- .ant-modal-body::-webkit-scrollbar {
- width: 6px;
- }
- .ant-modal-body::-webkit-scrollbar-thumb {
- background: #cbd5e1;
- border-radius: 3px;
- }
- .ant-modal-footer {
- flex: 0 0 auto;
- margin: 0;
- padding: 20px;
- border-top: 1px solid #e5e7eb;
- background: #fff;
- }
- .create-group-form {
- display: flex;
- flex-direction: column;
- gap: 14px;
- .ant-form-item {
- margin-bottom: 10px;
- }
- .ant-form-item-label > label {
- color: #374151;
- font-weight: 600;
- }
- .ant-input,
- .ant-select-selector,
- .ant-input-affix-wrapper {
- height: 42px;
- border-radius: 8px;
- border-color: #dbe2ea;
- background: #fff;
- box-shadow: none;
- transition:
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- background 0.2s ease;
- }
- .ant-select-single .ant-select-selector {
- display: flex;
- align-items: center;
- }
- .ant-select-single .ant-select-selector .ant-select-selection-item,
- .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
- line-height: 40px;
- }
- .ant-input-textarea textarea {
- min-height: 108px;
- border-radius: 8px;
- border-color: #dbe2ea;
- background: #fff;
- box-shadow: none;
- resize: none;
- }
- .ant-input:focus,
- .ant-input-focused,
- .ant-select-focused .ant-select-selector,
- .ant-select-open .ant-select-selector,
- .ant-input-affix-wrapper-focused,
- .ant-input-textarea textarea:focus {
- border-color: #1677ff;
- box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
- background: #fff;
- }
- }
- .create-group-section {
- padding: 16px 16px 4px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
- box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
- }
- .create-group-section__head {
- margin-bottom: 14px;
- padding-bottom: 10px;
- border-bottom: 1px solid #eef2f7;
- }
- .create-group-section__title {
- font-size: 15px;
- line-height: 1.3;
- color: #111827;
- font-weight: 700;
- }
- .create-group-section__desc {
- margin-top: 4px;
- font-size: 12px;
- line-height: 1.5;
- color: #64748b;
- }
- }
- .add-group-person-modal {
- .ant-modal {
- max-width: calc(100vw - 24px);
- }
- .ant-modal-content {
- max-height: min(760px, calc(100vh - 32px));
- display: flex;
- flex-direction: column;
- padding: 0;
- overflow: hidden;
- border-radius: 14px;
- background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
- box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
- }
- .ant-modal-header {
- flex: 0 0 auto;
- padding: 20px;
- border-bottom: 1px solid #e5e7eb;
- background: @modal-header-bg-color;
- }
- .ant-modal-title {
- font-size: 16px;
- font-weight: 600;
- line-height: 24px;
- color: #111827;
- }
- .ant-modal-close {
- top: 14px;
- right: 16px;
- color: #64748b;
- border-radius: 8px;
- transition: background-color 0.2s ease;
- }
- .ant-modal-close:hover {
- background: rgba(37, 99, 235, 0.08);
- }
- .ant-modal-close-x {
- width: 36px;
- height: 36px;
- }
- .ant-modal-body {
- flex: 1 1 auto;
- display: flex;
- flex-direction: column;
- min-height: 0;
- padding: 20px;
- overflow: hidden;
- }
- .ant-modal-footer {
- flex: 0 0 auto;
- margin: 0;
- padding: 20px;
- border-top: 1px solid #e5e7eb;
- background: #fff;
- }
- }
- .add-object-modal {
- display: flex;
- flex-direction: column;
- flex: 1 1 auto;
- gap: 14px;
- min-height: 0;
- overflow: hidden;
- }
- .add-object-modal__search {
- display: flex;
- flex-direction: column;
- gap: 12px;
- padding: 14px 16px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
- .ant-input,
- .ant-input-affix-wrapper {
- border-radius: 8px;
- }
- }
- .add-object-modal__search-head {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 12px;
- }
- .add-object-modal__title {
- font-size: 15px;
- font-weight: 700;
- color: #111827;
- }
- .add-object-modal__desc,
- .add-object-modal__stats {
- font-size: 12px;
- line-height: 1.6;
- color: #64748b;
- }
- .add-object-modal__content {
- flex: 1 1 auto;
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
- padding: 0 2px 2px;
- }
- .add-object-list {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- padding-right: 4px;
- padding-bottom: 2px;
- }
- .add-object-item {
- display: flex;
- align-items: center;
- gap: 14px;
- padding: 14px 16px;
- border: 1px solid #e5e7eb;
- border-radius: 14px;
- background: #fff;
- cursor: pointer;
- transition: all 0.2s ease;
- & + .add-object-item {
- margin-top: 10px;
- }
- &:hover {
- border-color: #cbd5e1;
- box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
- }
- &.is-selected {
- border-color: #93c5fd;
- background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
- box-shadow: 0 10px 22px rgba(59, 130, 246, 0.08);
- }
- &.is-disabled {
- cursor: not-allowed;
- opacity: 0.72;
- background: #f8fafc;
- }
- }
- .add-object-item__avatar {
- flex: 0 0 auto;
- background: linear-gradient(135deg, #e0ecff 0%, #c7dbff 100%);
- color: #3157d5;
- font-weight: 700;
- }
- .add-object-item__body {
- flex: 1;
- min-width: 0;
- }
- .add-object-item__head {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- }
- .add-object-item__name {
- min-width: 0;
- font-size: 15px;
- font-weight: 700;
- color: #111827;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .add-object-item__tag {
- flex: 0 0 auto;
- padding: 1px 8px;
- border-radius: 999px;
- background: #e2e8f0;
- color: #475569;
- font-size: 12px;
- line-height: 20px;
- }
- .add-object-item__meta {
- display: flex;
- flex-wrap: wrap;
- gap: 8px 16px;
- margin-top: 6px;
- font-size: 12px;
- line-height: 1.7;
- color: #64748b;
- }
- .add-object-modal__empty {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 320px;
- border: 1px dashed #d7dee8;
- border-radius: 14px;
- background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
- color: #94a3b8;
- font-size: 14px;
- }
- .person-edit-modal {
- .ant-modal-content {
- max-height: 720px;
- display: flex;
- flex-direction: column;
- padding: 0;
- overflow: hidden;
- border-radius: 14px;
- background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
- box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
- }
- .ant-modal-header {
- flex: 0 0 auto;
- padding: 20px;
- border-bottom: 1px solid #e5e7eb;
- background: @modal-header-bg-color;
- }
- .ant-modal-title {
- color: inherit;
- }
- .ant-modal-close {
- top: 14px;
- right: 16px;
- color: #64748b;
- border-radius: 8px;
- transition: background-color 0.2s ease;
- }
- .ant-modal-close:hover {
- background: rgba(37, 99, 235, 0.08);
- }
- .ant-modal-close-x {
- width: 36px;
- height: 36px;
- }
- .ant-modal-body {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- padding: 20px;
- }
- .ant-modal-body::-webkit-scrollbar {
- width: 6px;
- }
- .ant-modal-body::-webkit-scrollbar-thumb {
- background: #cbd5e1;
- border-radius: 3px;
- }
- .ant-modal-footer {
- flex: 0 0 auto;
- margin: 0;
- padding: 20px;
- border-top: 1px solid #e5e7eb;
- background: #fff;
- }
- .person-form {
- display: flex;
- flex-direction: column;
- gap: 14px;
- }
- .person-form-section {
- padding: 16px 16px 4px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
- box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
- }
- .form-section-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-bottom: 14px;
- padding-bottom: 10px;
- border-bottom: 1px solid #eef2f7;
- }
- .form-section-title {
- font-size: 15px;
- line-height: 1.3;
- color: #111827;
- font-weight: 700;
- }
- .form-section-desc {
- margin-top: 4px;
- font-size: 12px;
- line-height: 1.5;
- color: #6b7280;
- }
- .person-form-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- column-gap: 16px;
- row-gap: 6px;
- }
- .form-item-span-2 {
- grid-column: 1 / -1;
- }
- .person-form-grid .ant-form-item {
- margin-bottom: 10px;
- }
- .person-form-grid .ant-form-item-label > label {
- font-size: 13px;
- font-weight: 600;
- color: #374151;
- }
- .person-form-grid .ant-form-item .ant-input,
- .person-form-grid .ant-form-item .ant-input-affix-wrapper,
- .person-form-grid .ant-form-item .ant-picker {
- width: 100%;
- height: 42px;
- border-radius: 8px;
- border-color: #dbe2ea;
- background: #fff;
- box-shadow: none;
- transition:
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- background 0.2s ease;
- }
- .person-form-grid .ant-form-item .ant-input:focus,
- .person-form-grid .ant-form-item .ant-input-focused,
- .person-form-grid .ant-form-item .ant-input-affix-wrapper-focused,
- .person-form-grid .ant-form-item .ant-picker-focused {
- border-color: #1677ff;
- box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
- background: #fff;
- }
- .person-form-grid .ant-form-item .ant-select {
- width: 100%;
- }
- .person-form-grid .ant-form-item .ant-select-selector {
- height: 42px;
- border-radius: 8px;
- border-color: #dbe2ea;
- background: #fff;
- box-shadow: none;
- transition:
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- background 0.2s ease;
- }
- .person-form-grid .ant-form-item .ant-select-focused .ant-select-selector,
- .person-form-grid .ant-form-item .ant-select-open .ant-select-selector {
- border-color: #1677ff;
- box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
- background: #fff;
- }
- .person-form-grid .ant-form-item .ant-select-single .ant-select-selector .ant-select-selection-item,
- .person-form-grid .ant-form-item .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
- line-height: 40px;
- }
- .person-form-grid .dynamic-input-list {
- gap: 12px;
- }
- .person-avatar-form-item {
- margin-bottom: 12px;
- }
- .person-avatar-upload {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 14px 16px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
- }
- .person-avatar-upload__input {
- display: none;
- width: 0;
- height: 0;
- opacity: 0;
- pointer-events: none;
- }
- .person-avatar-upload__preview {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 0;
- border: 0;
- background: transparent;
- cursor: pointer;
- flex: 0 0 auto;
- }
- .person-avatar-upload__preview :deep(.jeesite-person-avatar) {
- border-radius: 999px;
- transition:
- transform 0.2s ease,
- box-shadow 0.2s ease;
- }
- .person-avatar-upload__preview:hover :deep(.jeesite-person-avatar) {
- transform: translateY(-1px);
- box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
- }
- .person-avatar-upload__tips {
- min-width: 0;
- flex: 1 1 auto;
- }
- .person-avatar-upload__title {
- font-size: 14px;
- line-height: 22px;
- font-weight: 600;
- color: #111827;
- }
- .person-avatar-upload__desc {
- margin-top: 4px;
- font-size: 12px;
- line-height: 20px;
- color: #6b7280;
- }
- .person-avatar-upload__actions {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-top: 12px;
- flex-wrap: wrap;
- }
- .person-form-grid .dynamic-input-item {
- padding: 12px 12px 10px;
- border: 1px solid #e2e8f0;
- border-radius: 10px;
- background: #fff;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
- }
- .person-form-grid .dynamic-input-item .ant-form-item {
- margin-bottom: 0;
- }
- .person-form-grid .dynamic-input-item .ant-form-item-explain {
- margin-top: 6px;
- }
- .person-form-grid .dynamic-input-item .add-btn,
- .person-form-grid .dynamic-input-item .remove-btn {
- width: 32px;
- height: 32px;
- min-width: 32px;
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 8px;
- border: 1px solid #dbe2ea;
- background: #fff;
- color: #475569;
- margin-top: 4px;
- box-shadow: none;
- }
- .person-form-grid .dynamic-input-item .add-btn:hover {
- color: #2563eb;
- border-color: #bfdbfe;
- background: #eff6ff;
- }
- .person-form-grid .dynamic-input-item .remove-btn:hover {
- color: #dc2626;
- border-color: #fecaca;
- background: #fff1f2;
- }
- }
- @media (max-width: 1200px) {
- .person-edit-modal {
- .ant-modal-body {
- padding: 20px;
- }
- .person-form-grid {
- grid-template-columns: minmax(0, 1fr);
- }
- .form-item-span-2 {
- grid-column: auto;
- }
- .person-avatar-upload {
- align-items: flex-start;
- flex-direction: column;
- }
- }
- }
- .call-oper-phone-modal {
- .query-table-wrap {
- gap: 14px;
- }
- .query-table-search {
- margin: 6px 6px 0;
- padding: 14px 16px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
- .label {
- color: #475569;
- font-size: 12px;
- font-weight: 600;
- }
- .ant-input,
- .ant-input-affix-wrapper,
- .ant-picker,
- .ant-select-selector {
- border-radius: 8px !important;
- }
- .ant-btn {
- height: 32px;
- padding: 0 16px;
- border-radius: 8px;
- }
- }
- .ant-modal-body > .scroll-container,
- .ant-modal-body > .scroll-container > .scrollbar__wrap,
- .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view,
- .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view > div {
- height: 100%;
- min-height: 0;
- }
- .ant-modal-body > .scroll-container > .scrollbar__wrap {
- overflow: hidden;
- }
- .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view {
- margin: 0 !important;
- }
- .ant-modal-body > .scroll-container > .scrollbar__bar.is-vertical,
- .ant-modal-body > .scroll-container > .is-vertical {
- display: none !important;
- opacity: 0 !important;
- pointer-events: none;
- }
- }
- .@{prefix-cls}.case-portrait-page {
- background: #fff;
- // padding: 0 8px 2px;
- display: flex;
- flex-direction: column;
- min-height: 0;
- :deep(.ant-btn) {
- border-radius: 8px;
- }
- :deep(.ant-btn-primary) {
- box-shadow: none;
- }
- :deep(.ant-input),
- :deep(.ant-input-affix-wrapper),
- :deep(.ant-picker),
- :deep(.ant-select-selector) {
- border-color: #dbe2ea;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- :deep(.ant-input:hover),
- :deep(.ant-input-affix-wrapper:hover),
- :deep(.ant-picker:hover),
- :deep(.ant-select:not(.ant-select-disabled):hover .ant-select-selector) {
- border-color: #cbd5e1;
- }
- :deep(.ant-input:focus),
- :deep(.ant-input-focused),
- :deep(.ant-input-affix-wrapper-focused),
- :deep(.ant-picker-focused),
- :deep(.ant-select-focused .ant-select-selector),
- :deep(.ant-select-open .ant-select-selector) {
- border-color: #1677ff;
- box-shadow: 0 0 0 2px rgb(22 119 255 / 12%);
- }
- .page-main {
- display: flex;
- flex-direction: column;
- flex: 1 1 auto;
- min-height: 0;
- height: auto;
- gap: 12px;
- padding: 0;
- overflow: hidden;
- }
- .page-layout {
- flex: 1 1 auto;
- min-height: 0;
- height: auto;
- align-items: stretch;
- grid-template-columns: 156px minmax(0, 1fr);
- gap: 2px;
- padding: 2px;
- background: #f3f4f6;
- overflow: hidden;
- box-sizing: border-box;
- }
- .left-panel {
- position: relative;
- top: auto;
- align-self: stretch;
- display: flex;
- height: auto;
- max-height: none;
- min-height: 0;
- overflow: hidden;
- }
- .left-panel .panel-card {
- flex: 1 1 auto;
- width: 100%;
- height: auto;
- min-height: 0;
- max-height: 100%;
- background: #fff;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- padding: 8px;
- gap: 8px;
- box-shadow: none;
- }
- .left-panel .panel-card::before,
- .person-list::before,
- .person-card::before,
- .person-card::after,
- .person-avatar-wrap::before {
- display: none;
- }
- .panel-heading {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- padding: 0 4px 2px;
- }
- .panel-heading__title {
- font-size: 14px;
- font-weight: 600;
- color: #111827;
- }
- .panel-heading__badge {
- min-width: 28px;
- height: 24px;
- padding: 0 8px;
- border-radius: 999px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: #eff6ff;
- color: #1d4ed8;
- font-size: 12px;
- font-weight: 600;
- }
- .search-box :deep(.ant-input),
- .search-box :deep(.ant-input-affix-wrapper) {
- height: 34px;
- padding-inline: 10px;
- border-radius: 8px;
- background: #fff;
- }
- .search-box :deep(.ant-input-affix-wrapper) {
- display: flex;
- align-items: center;
- overflow: hidden;
- box-sizing: border-box;
- }
- .search-box :deep(.ant-input-affix-wrapper > .ant-input) {
- height: 100%;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- }
- .search-box :deep(.ant-input-affix-wrapper .ant-input-suffix),
- .search-box :deep(.ant-input-affix-wrapper .ant-input-clear-icon) {
- display: inline-flex;
- align-items: center;
- }
- .left-panel .panel-card .side-action-btn.ant-btn {
- height: 34px;
- border-radius: 8px;
- font-weight: 600;
- letter-spacing: normal;
- box-shadow: none;
- transition:
- border-color 0.2s ease,
- background-color 0.2s ease,
- color 0.2s ease;
- }
- .left-panel .panel-card .side-action-btn--primary.ant-btn {
- border-color: #2a50ec;
- background: #2a50ec;
- color: #fff;
- &:hover,
- &:focus {
- border-color: #4b6bf0;
- background: #4b6bf0;
- color: #fff;
- }
- &:active {
- border-color: #1e3ed0;
- background: #1e3ed0;
- color: #fff;
- }
- }
- .person-list {
- flex: 1 1 auto;
- min-height: 0;
- align-items: stretch;
- gap: 8px;
- padding: 2px 0 0;
- }
- .person-list .empty-tip {
- width: 100%;
- min-height: 148px;
- padding: 0;
- gap: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- }
- .person-list .empty-tip::before {
- content: none;
- display: none;
- }
- .person-card {
- width: 100%;
- max-width: none;
- min-height: 0;
- padding: 8px 10px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fff;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- gap: 10px;
- transition:
- border-color 0.2s ease,
- background 0.2s ease,
- box-shadow 0.2s ease;
- &:hover {
- transform: none;
- background: #fff;
- border-color: #91caff;
- box-shadow: none;
- }
- &.active {
- transform: none;
- background: rgba(247, 251, 255, 0.72);
- border-color: #1677ff;
- box-shadow: none;
- }
- }
- .person-card:hover .person-avatar .jeesite-person-avatar__media,
- .person-card.active .person-avatar .jeesite-person-avatar__media {
- background: #1677ff;
- border-color: #bfdbfe;
- box-shadow: none;
- }
- .person-card:hover .person-name,
- .person-card.active .person-name {
- color: #111827;
- font-weight: 600;
- }
- .person-avatar-wrap {
- width: 40px;
- height: 40px;
- flex: 0 0 40px;
- transform: none;
- }
- .person-trigger {
- display: flex;
- align-items: center;
- gap: 10px;
- flex: 1;
- min-width: 0;
- cursor: pointer;
- }
- .person-avatar {
- background: transparent;
- box-shadow: none;
- }
- .person-name {
- flex: 1;
- min-width: 0;
- max-width: none;
- min-height: auto;
- font-size: 13px;
- line-height: 20px;
- text-align: left;
- color: #374151;
- letter-spacing: 0;
- }
- .left-panel .panel-card .group-btn-wrap {
- margin-top: auto;
- flex-shrink: 0;
- padding-top: 8px;
- padding-bottom: 2px;
- border-top: 1px solid #eef2f7;
- background: #fff;
- position: relative;
- z-index: 2;
- }
- .left-panel .panel-card .group-btn-wrap .group-btn.ant-btn {
- width: 100%;
- border-color: #dbe2ea;
- background: #fff;
- color: #1677ff;
- &:hover,
- &:focus {
- border-color: #bfdbfe;
- background: #f8fbff;
- color: #1d4ed8;
- }
- &:active {
- border-color: #91caff;
- background: #e6f4ff;
- color: #0958d9;
- }
- }
- .right-panel {
- min-height: 0;
- height: auto;
- gap: 2px;
- padding-right: 0;
- background: #f3f4f6;
- }
- .right-panel::-webkit-scrollbar-thumb {
- background: #d1d5db;
- }
- .section-card,
- .comm-section,
- .trade-section {
- padding: 16px;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- background: #fff;
- box-shadow: none;
- }
- .section-header {
- margin-bottom: 16px;
- padding-bottom: 12px;
- gap: 12px 16px;
- border-bottom: 1px solid #eef2f7;
- }
- .section-title {
- gap: 8px;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- letter-spacing: 0;
- &::before {
- width: 3px;
- height: 14px;
- background: #1677ff;
- box-shadow: none;
- }
- }
- .section-tools {
- gap: 8px;
- }
- .section-action {
- padding: 0 12px;
- color: #1677ff;
- font-weight: 500;
- }
- .section-action.ant-btn-link {
- height: 32px;
- border: 1px solid #dbe2ea;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- &:hover {
- border-color: #bfdbfe;
- background: #f9fafb;
- color: #0958d9;
- }
- }
- .basic-content {
- grid-template-columns: 108px minmax(0, 1fr);
- gap: 10px;
- }
- .basic-profile {
- gap: 4px;
- padding: 8px 6px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- justify-content: center;
- }
- .profile-avatar {
- width: 56px;
- height: 56px;
- border-radius: 50%;
- background: #1677ff;
- box-shadow: none;
- font-size: 22px;
- }
- .profile-name {
- color: #111827;
- font-size: 13px;
- }
- .info-grid {
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 5px;
- }
- .info-item {
- gap: 2px;
- min-height: 40px;
- padding: 6px 8px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- flex-direction: column;
- }
- .info-label {
- font-size: 12px;
- color: #6b7280;
- line-height: 16px;
- }
- .info-value {
- color: #111827;
- font-size: 13px;
- line-height: 16px;
- }
- .relation-search {
- width: 240px;
- max-width: 100%;
- }
- .relation-list {
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- gap: 12px;
- }
- .relation-card {
- gap: 12px;
- padding: 14px;
- border: 1px solid #e5e7eb;
- border-radius: 12px;
- background: #fff;
- box-shadow: none;
- transition:
- border-color 0.2s ease,
- box-shadow 0.2s ease;
- &:hover {
- border-color: #bfdbfe;
- box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
- }
- }
- .relation-avatar {
- width: 42px;
- height: 42px;
- border-radius: 12px;
- background: #eff6ff;
- color: #1677ff;
- }
- .relation-name {
- font-size: 14px;
- color: #111827;
- }
- .relation-score {
- font-size: 12px;
- color: #6b7280;
- span {
- color: #1677ff;
- }
- }
- .relation-tags {
- gap: 8px;
- }
- .tag {
- padding: 4px 8px;
- border-radius: 999px;
- background: #f3f4f6;
- color: #4b5563;
- font-size: 12px;
- }
- .relation-action {
- align-self: flex-start;
- color: #1677ff;
- font-weight: 500;
- }
- .comm-info,
- .trade-summary {
- display: flex;
- flex-direction: column;
- gap: 8px;
- font-size: 13px;
- color: #4b5563;
- }
- .comm-row,
- .trade-row {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px 12px;
- padding: 10px 12px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- }
- .comm-row .label,
- .trade-row .label {
- color: #374151;
- font-weight: 600;
- }
- .comm-row .value,
- .trade-row .value {
- color: #111827;
- font-weight: 600;
- }
- .comm-row .carrier {
- display: inline-flex;
- align-items: center;
- height: 24px;
- padding: 0 8px;
- border-radius: 999px;
- background: #eff6ff;
- color: #1677ff;
- font-size: 12px;
- }
- .comm-row .carrier--link {
- border: none;
- cursor: pointer;
- transition:
- background-color 0.2s ease,
- color 0.2s ease,
- box-shadow 0.2s ease;
- }
- .comm-row .carrier--link:hover {
- background: #dbeafe;
- color: #145bdb;
- box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12);
- }
- .trade-tag {
- display: inline-flex;
- align-items: center;
- height: 24px;
- padding: 0 8px;
- border-radius: 999px;
- border: none;
- background: #eff6ff;
- color: #1677ff;
- font-size: 12px;
- }
- .trade-tag--link {
- cursor: pointer;
- transition:
- background-color 0.2s ease,
- color 0.2s ease,
- box-shadow 0.2s ease;
- }
- .trade-tag--link:hover {
- background: #eff6ff;
- color: #1677ff;
- box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12);
- }
- .comm-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 8px 12px;
- }
- .comm-summary-card {
- padding: 10px 12px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- }
- .comm-grid .grid-item {
- gap: 6px;
- min-width: 0;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- flex-direction: column;
- }
- .comm-grid .label {
- font-size: 12px;
- color: #6b7280;
- }
- .comm-grid .value {
- color: #111827;
- font-weight: 600;
- }
- .comm-divider {
- margin: 16px 0;
- border-top: 1px solid #eef2f7;
- }
- .comm-chart-row,
- .trade-chart-row {
- grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
- gap: 12px;
- }
- .comm-chart,
- .trade-chart,
- .trade-trend {
- gap: 12px;
- }
- .chart-title {
- gap: 8px;
- font-size: 14px;
- color: #111827;
- .flag {
- width: 3px;
- height: 12px;
- background: #1677ff;
- box-shadow: none;
- }
- }
- .trade-section .chart-title .flag {
- background: #1677ff;
- box-shadow: none;
- }
- .comm-top-header,
- .trade-top-header,
- .trade-trend-header {
- align-items: flex-start;
- gap: 12px 16px;
- }
- .comm-top-tools,
- .trade-top-tools,
- .trade-trend-filters {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- font-size: 12px;
- color: #6b7280;
- }
- .comm-top-tools,
- .trade-top-tools {
- flex: 1;
- justify-content: flex-end;
- }
- .comm-top-tools .tool-label,
- .trade-top-tools .tool-label,
- .trade-trend-filters .tool-label {
- color: #6b7280;
- font-size: 12px;
- font-weight: 400;
- }
- .comm-top-tools .comm-top-range {
- width: 320px;
- max-width: 100%;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- .trade-top-tools .metric-select {
- width: 116px;
- }
- .trade-top-tools .trade-top-range {
- width: 260px;
- max-width: 100%;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- .trade-top-tools .metric-select :deep(.ant-select-selector) {
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- .trade-top-dimension {
- gap: 10px;
- padding: 6px 10px;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- background: #fafafa;
- }
- .trade-top-dimension .ant-radio-wrapper {
- color: #374151;
- font-size: 12px;
- }
- .visual-chart-surface,
- .visual-chart-surface--comm,
- .visual-chart-surface--trade {
- margin-top: 0;
- border: 1px solid #e5e7eb;
- border-radius: 12px;
- background: #fff;
- backdrop-filter: none;
- box-shadow: none;
- }
- .visual-chart-surface::before,
- .visual-chart-surface::after {
- display: none;
- }
- .visual-chart-surface--ratio,
- .visual-chart-surface--bar {
- min-height: 340px;
- }
- .visual-chart-surface--trend {
- min-height: 420px;
- padding: 0;
- }
- .comm-chart-box,
- .comm-top-chart-box,
- .trade-top-chart-box,
- .trade-ratio-panel {
- padding: 16px;
- box-sizing: border-box;
- height: 100%;
- }
- .trade-ratio-panel {
- gap: 16px;
- }
- .chart-more-link {
- height: 28px;
- padding: 0 10px;
- border: 1px solid #dbe2ea;
- border-radius: 8px;
- background: #fff;
- backdrop-filter: none;
- box-shadow: none;
- color: #1677ff;
- font-size: 12px;
- }
- .comm-echart,
- .comm-top-echart {
- height: 280px;
- }
- .trade-top-echart {
- height: 300px;
- }
- .trade-ratio-echart {
- width: 176px;
- height: 176px;
- flex: 0 0 176px;
- }
- .donut-wrap {
- align-items: center;
- gap: 16px;
- }
- .donut-legend {
- gap: 12px;
- font-size: 13px;
- color: #374151;
- }
- .donut-legend .legend-title {
- color: #374151;
- }
- .donut-legend .legend-rate,
- .donut-legend .legend-amount {
- color: #111827;
- }
- .legend-click {
- gap: 8px;
- padding: 12px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- backdrop-filter: none;
- box-shadow: none;
- &:hover {
- border-color: #dbe2ea;
- opacity: 1;
- transform: none;
- }
- }
- .trade-kpi {
- gap: 12px;
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- .trade-kpi .trade-kpi-item {
- padding: 12px 14px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #fafafa;
- justify-content: space-between;
- }
- .trade-kpi .trade-kpi-label {
- color: #6b7280;
- }
- .trade-kpi .trade-kpi-value {
- color: #111827;
- }
- .trade-kpi .trade-kpi-value.down {
- color: #f97316;
- }
- .trade-kpi .trade-kpi-value.up {
- color: #10b981;
- }
- .trade-trend-subtitle {
- color: #6b7280;
- font-size: 12px;
- }
- .trade-trend-toolbar {
- gap: 10px 12px;
- padding: 12px 14px;
- border: 1px solid #e5e7eb;
- border-radius: 10px;
- background: #fafafa;
- box-shadow: none;
- }
- .trade-trend-filters {
- gap: 8px;
- }
- .trade-trend-filters .trend-search-input {
- width: 220px;
- }
- .trade-trend-filters .trend-range-input {
- width: 280px;
- max-width: 100%;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- .trade-trend-dimension {
- gap: 4px;
- padding: 4px;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- }
- .radio {
- padding: 4px 12px;
- border-radius: 6px;
- background: transparent;
- color: #6b7280;
- &.active {
- background: #e6f4ff;
- color: #1677ff;
- }
- }
- .trend-title-row .trend-legend-item {
- padding: 6px 10px;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- background: #fff;
- box-shadow: none;
- &:hover {
- border-color: #bfdbfe;
- box-shadow: none;
- transform: none;
- }
- &.is-muted {
- opacity: 0.55;
- }
- }
- .trend-title-row .circles-text {
- color: #374151;
- font-size: 12px;
- }
- .trend-chart-scroll {
- padding: 0;
- }
- .trend-chart {
- border: 1px solid #e5e7eb;
- border-radius: 12px;
- background: #fff;
- box-shadow: none;
- }
- .trend-echart {
- min-height: 320px;
- }
- .empty-state__title {
- font-size: 14px;
- font-weight: 600;
- color: #4b5563;
- }
- .empty-state__desc {
- display: block;
- color: #9ca3af;
- font-size: 12px;
- line-height: 18px;
- }
- .chart-empty {
- min-height: 180px;
- margin-top: 0;
- padding: 0;
- gap: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- color: inherit;
- }
- .chart-empty::before {
- content: none;
- display: none;
- }
- .trade-trend-empty {
- min-height: 420px;
- border: 0;
- border-radius: 0;
- background: transparent;
- }
- .trade-trend-chart-box {
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- backdrop-filter: none;
- padding: 0;
- }
- .station-row {
- gap: 10px;
- margin-bottom: 10px;
- color: #374151;
- }
- .station-list {
- gap: 8px;
- }
- .station-item {
- padding: 6px 10px;
- border: 1px solid #eef2f7;
- border-radius: 8px;
- background: #fafafa;
- color: #4b5563;
- }
- }
- .quick-nav {
- background: rgb(255 255 255 / 96%);
- backdrop-filter: blur(8px);
- box-shadow: 0 8px 20px rgb(15 23 42 / 8%);
- .nav-item {
- padding: 6px 10px;
- border-radius: 8px;
- color: #6b7280;
- transition:
- background 0.2s ease,
- color 0.2s ease;
- &:hover {
- background: #f9fafb;
- color: #374151;
- }
- &.active {
- background: #e6f4ff;
- color: #1677ff;
- }
- }
- }
- /* ==========================================================================
- * 数据画像界面优化:对象列表 / 基本信息排版 / 图表配色
- * 约束:全部使用纯色,不出现任何渐变;主色沿用界面现有的项目蓝 #1677ff
- * ========================================================================== */
- .@{prefix-cls}.case-portrait-page {
- // ---------------- 左侧对象列表 ----------------
- .page-layout {
- // 左右两栏间距与右侧卡片之间的上下间距保持一致(右侧卡片 gap = 2px)
- grid-template-columns: 208px minmax(0, 1fr);
- gap: 2px;
- }
- .left-panel .panel-card {
- padding: 12px 10px;
- gap: 10px;
- border-radius: 14px;
- }
- .panel-heading {
- padding: 2px 4px 0;
- }
- .panel-heading__title {
- font-size: 14px;
- font-weight: 600;
- color: #111827;
- }
- .panel-heading__badge {
- min-width: 24px;
- height: 22px;
- padding: 0 7px;
- background: #eff6ff;
- color: #1d4ed8;
- font-variant-numeric: tabular-nums;
- }
- // 对象列表搜索框:紧凑尺寸 + 小圆角,与面板内其他输入/列表项风格统一
- // 注意:本页 style 非 scoped,:deep() 不会编译,必须用普通选择器 + 更高层级覆盖旧版胶囊样式
- .left-panel .panel-card .search-box .ant-input-affix-wrapper,
- .left-panel .panel-card .search-box .ant-input {
- height: 32px;
- padding: 0 10px;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- background: #f8fafc;
- box-shadow: none;
- font-size: 13px;
- transition:
- border-color 0.2s ease,
- background-color 0.2s ease,
- box-shadow 0.2s ease;
- }
- .left-panel .panel-card .search-box .ant-input-affix-wrapper:hover,
- .left-panel .panel-card .search-box .ant-input:hover {
- border-color: #cbd5e1;
- background: #fff;
- }
- .left-panel .panel-card .search-box .ant-input-affix-wrapper.ant-input-affix-wrapper-focused,
- .left-panel .panel-card .search-box .ant-input:focus {
- border-color: #2a50ec;
- background: #fff;
- box-shadow: 0 0 0 2px rgb(42 80 236 / 12%);
- }
- .left-panel .panel-card .search-box .ant-input-affix-wrapper > .ant-input {
- height: 100%;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- font-size: 13px;
- }
- .left-panel .panel-card .search-box .ant-input-affix-wrapper .ant-input-prefix {
- margin-inline-end: 6px;
- color: #9ca3af;
- font-size: 13px;
- }
- .left-panel .panel-card .search-box .search-box__icon {
- color: #9ca3af;
- font-size: 13px;
- }
- .left-actions .side-action-btn--primary.ant-btn {
- height: 36px;
- border-radius: 8px;
- }
- .person-list {
- gap: 2px;
- padding: 2px 0 0;
- }
- .left-panel .person-list .person-card {
- // 列表项内填充在现有基础上缩小约 1/3(10px 12px → 6px 8px),行高同步收紧
- min-height: 52px;
- padding: 6px 8px;
- }
- .person-card {
- min-height: 52px;
- padding: 8px;
- gap: 8px;
- border: 1px solid transparent;
- border-radius: 10px;
- background: transparent;
- }
- .person-card:hover {
- border-color: #eef2f7;
- background: #f8fafc;
- box-shadow: none;
- }
- // 选中态:边框/头像/姓名统一使用项目主色(选择器需覆盖旧版 .left-panel .person-list 层级样式)
- .left-panel .person-list .person-card.active {
- border-color: #2a50ec;
- box-shadow: none;
- }
- .person-trigger {
- gap: 9px;
- }
- .person-avatar-wrap {
- width: 34px;
- height: 34px;
- flex: 0 0 34px;
- }
- .person-info {
- display: flex;
- flex: 1;
- min-width: 0;
- flex-direction: column;
- gap: 1px;
- }
- .person-name {
- display: block;
- min-width: 0;
- overflow: hidden;
- font-size: 13px;
- line-height: 18px;
- font-weight: 500;
- color: #374151;
- white-space: nowrap;
- text-overflow: ellipsis;
- -webkit-line-clamp: unset;
- word-break: normal;
- }
- .person-card:hover .person-name {
- color: #1f2937;
- }
- .left-panel .person-list .person-card.active .person-name {
- color: #2a50ec;
- font-weight: 600;
- }
- .person-sub {
- overflow: hidden;
- font-size: 11px;
- line-height: 15px;
- color: #94a3b8;
- white-space: nowrap;
- text-overflow: ellipsis;
- font-variant-numeric: tabular-nums;
- // 身份证号取消脱敏后为 18 位,收一点字距保证窄栏内完整展示
- letter-spacing: -0.2px;
- }
- .person-card.active .person-sub {
- color: #3b82f6;
- }
- // 头像:默认浅蓝底 + 主蓝图标,悬浮/选中为主蓝实底(纯色,替换原渐变)
- .person-avatar .jeesite-person-avatar__media {
- color: #1677ff;
- background: #eff6ff;
- border-color: #dbeafe;
- box-shadow: none;
- }
- .left-panel .person-list .person-card:hover .person-avatar .jeesite-person-avatar__media,
- .left-panel .person-list .person-card.active .person-avatar .jeesite-person-avatar__media {
- color: #fff;
- background: #2a50ec;
- border-color: #2a50ec;
- box-shadow: none;
- }
- // 空态:纯色占位,去掉原来的渐变底与渐变图标
- .left-panel .person-list .empty-tip {
- border: 1px dashed #e5e7eb;
- border-radius: 12px;
- background: #fafafa;
- box-shadow: none;
- }
- .left-panel .person-list .empty-tip::before {
- content: none;
- display: none;
- }
- // ---------------- 基本信息 ----------------
- .basic-content {
- grid-template-columns: 184px minmax(0, 1fr);
- gap: 12px;
- align-items: stretch;
- }
- .basic-profile {
- justify-content: center;
- gap: 6px;
- padding: 18px 12px;
- border: 1px solid #eef2f7;
- border-radius: 12px;
- background: #f8fafc;
- }
- .profile-avatar {
- width: 72px;
- height: 72px;
- }
- .profile-info {
- display: flex;
- max-width: 100%;
- min-width: 0;
- flex-direction: column;
- align-items: center;
- gap: 2px;
- }
- .profile-name {
- display: -webkit-box;
- max-width: 100%;
- overflow: hidden;
- font-size: 15px;
- line-height: 20px;
- font-weight: 600;
- color: #111827;
- text-align: center;
- word-break: break-all;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- .profile-caption {
- font-size: 11px;
- line-height: 15px;
- color: #94a3b8;
- }
- .info-grid {
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 8px;
- }
- .info-item {
- min-height: 52px;
- justify-content: center;
- gap: 3px;
- padding: 9px 12px;
- border: 1px solid #eef2f7;
- border-radius: 10px;
- background: #f8fafc;
- }
- .info-label {
- font-size: 11px;
- line-height: 15px;
- color: #94a3b8;
- letter-spacing: 0.02em;
- }
- .info-value {
- font-size: 13px;
- line-height: 18px;
- font-weight: 500;
- color: #111827;
- word-break: break-all;
- overflow-wrap: anywhere;
- }
- // ---------------- 头像 / 亲密度数字配色 ----------------
- // 基本信息主体头像、亲密关系人头像统一使用项目主色
- .profile-avatar,
- .profile-avatar .jeesite-person-avatar__media,
- .relation-avatar,
- .relation-avatar .jeesite-person-avatar__media {
- background: #2a50ec;
- border-color: #2a50ec;
- }
- // 亲密度数字:去掉底色,改为红色字体
- .intimacy-card__score-badge {
- background: transparent;
- color: #dc2626;
- box-shadow: none;
- }
- // 亲密度详情中的数值:同样是红色字体
- .intimacy-detail .value--accent,
- .intimacy-detail .detail-value--clickable {
- color: #dc2626;
- }
- // ---------------- 图表标题:纯色旗标 ----------------
- .chart-title .flag,
- .trade-section .chart-title .flag {
- background: #1677ff;
- box-shadow: none;
- }
- // ---------------- 右侧操作统一为文字按钮:无边框/无底色,主色 #2a50ec ----------------
- .section-action.ant-btn-link,
- .chart-more-link.ant-btn-link {
- height: auto;
- padding: 0 4px;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- color: #2a50ec;
- font-weight: 500;
- line-height: 20px;
- &:hover,
- &:focus {
- border: 0;
- background: transparent;
- color: #4b6bf0;
- box-shadow: none;
- }
- &:active {
- color: #1e3ed0;
- }
- }
- }
- @media (max-width: 1440px) {
- .@{prefix-cls}.case-portrait-page {
- .comm-chart-row,
- .trade-chart-row {
- grid-template-columns: 1fr;
- }
- .basic-content {
- grid-template-columns: 160px minmax(0, 1fr);
- }
- .info-grid {
- grid-template-columns: repeat(3, minmax(0, 1fr));
- }
- }
- }
- @media (max-width: 1200px) {
- .@{prefix-cls}.case-portrait-page {
- .page-layout {
- grid-template-columns: 156px minmax(0, 1fr);
- }
- .left-panel {
- height: auto;
- min-width: 0;
- }
- .left-panel .panel-card {
- max-height: 100%;
- }
- .basic-content {
- grid-template-columns: 148px minmax(0, 1fr);
- }
- .info-grid,
- .comm-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- .chart-more-link {
- margin-left: auto;
- }
- .quick-nav-shell {
- display: none;
- }
- }
- .quick-nav {
- display: none;
- }
- }
- @media (max-width: 992px) {
- .@{prefix-cls}.case-portrait-page {
- padding: 12px;
- .page-layout,
- .right-panel {
- gap: 10px;
- }
- .section-card,
- .comm-section,
- .trade-section {
- padding: 14px;
- }
- .relation-search,
- .comm-top-tools .comm-top-range,
- .trade-top-tools .metric-select,
- .trade-top-tools .trade-top-range,
- .trade-trend-filters .trend-search-input,
- .trade-trend-filters .trend-range-input {
- width: 100%;
- }
- .info-grid,
- .comm-grid,
- .relation-list,
- .trade-kpi {
- grid-template-columns: 1fr;
- }
- .basic-content {
- grid-template-columns: 1fr;
- }
- .basic-profile {
- flex-direction: row;
- justify-content: flex-start;
- gap: 12px;
- padding: 12px;
- }
- .profile-info {
- align-items: flex-start;
- }
- .profile-name {
- text-align: left;
- }
- .comm-top-tools,
- .trade-top-tools,
- .trade-trend-filters,
- .section-tools {
- width: 100%;
- }
- }
- }
- html[data-theme='dark'] {
- .@{prefix-cls}.case-portrait-page {
- background: #0f172a;
- .panel-card,
- .section-card {
- background: #111827;
- box-shadow: none;
- }
- .person-item {
- background: #1f2937;
- &:hover {
- background: #1e293b;
- }
- }
- .person-name,
- .section-title,
- .profile-name,
- .relation-name {
- color: #e5e7eb;
- }
- .info-item,
- .info-label,
- .relation-score,
- .tag {
- color: #9ca3af;
- }
- .relation-card {
- border-color: #1f2937;
- }
- .tag {
- background: #1f2937;
- }
- .basic-profile,
- .info-item {
- border-color: #1f2937;
- background: #1f2937;
- }
- .info-label,
- .profile-caption,
- .person-sub {
- color: #94a3b8;
- }
- .info-value,
- .person-name {
- color: #e5e7eb;
- }
- .left-panel .person-list .empty-tip {
- border-color: #1f2937;
- background: #111827;
- }
- .person-card.active {
- border-color: #2a50ec;
- background: #172554;
- }
- .person-avatar .jeesite-person-avatar__media {
- color: #60a5fa;
- background: #1e293b;
- border-color: #334155;
- }
- }
- }
- /* 数据画像页相关弹窗统一纯色:不出现任何渐变 */
- .create-group-modal .ant-modal-content,
- .add-group-person-modal .ant-modal-content,
- .person-edit-modal .ant-modal-content,
- .person-edit-modal .person-form-section,
- .person-edit-modal .person-avatar-upload,
- .add-group-person-modal .add-object-modal__search,
- .add-group-person-modal .add-object-modal__empty {
- background: #fff;
- }
- .create-group-modal .create-group-section {
- background: #f8fafc;
- }
- .add-group-person-modal .add-object-item__avatar {
- background: #e0ecff;
- }
- .add-group-person-modal .add-object-item.is-selected {
- background: #eff6ff;
- }
- .object-group-modal .group-modal-actions .head-btn {
- background: #fff;
- }
- .object-group-modal .group-modal-actions .head-btn:hover,
- .object-group-modal .group-modal-actions .head-btn:focus {
- background: #f3f6fb;
- }
- .object-group-modal .group-modal-actions .head-btn--primary,
- .object-group-modal .group-modal-actions .head-btn--accent,
- .object-group-modal .group-modal-actions .head-btn--danger {
- background: #fff;
- }
- .object-group-modal .group-select-btn.ant-btn-primary {
- background: #2a50ec;
- }
- /* 数据画像页所有弹窗:按钮高度统一 32px。
- 弹窗被 teleport 到 body,用本页挂载时加的 body 标记限定作用域,避免影响其他页面弹窗。
- 需要 !important:全局弹窗页脚样式(core/design/ant/index.less)把页脚按钮定成了 36px,
- 选择器层级更高,普通覆盖不生效。 */
- body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn {
- height: 32px !important;
- }
- /* 亲密弹框里的「刷新配置」本身是小号按钮:保持原有小尺寸(24px),不参与上面的 32px 统一 */
- body.case-portrait-active .ant-modal-wrap.intimacy-config-modal .ant-btn-sm {
- height: 24px !important;
- }
- /* 数据画像页弹窗主按钮:统一使用项目主色 #2a50ec。
- 组件内部(ModalFooter / QueryTableModal 等)对主按钮有更高优先级的历史配色覆盖,
- 这里用 !important 统一成本页要求的项目主色。 */
- body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary {
- border-color: #2a50ec !important;
- background: #2a50ec !important;
- color: #fff;
- }
- body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):hover,
- body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):focus {
- border-color: #4b6bf0 !important;
- background: #4b6bf0 !important;
- color: #fff;
- }
- body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):active {
- border-color: #1e3ed0 !important;
- background: #1e3ed0 !important;
- color: #fff;
- }
- </style>
- <style lang="less">
- /* ==========================================================================
- * 数据画像页 UI 重构(按确认稿实现)
- * 结构:左侧对象列表固定,右侧内容区独立滚动;页面内卡片间距 10px。
- * 说明:本页原有逻辑与接口保持不变,以下仅负责新版页面结构与视觉。
- * ========================================================================== */
- .case-portrait-page.qj-portrait-page {
- width: calc(100% + 24px);
- height: 100%;
- margin: 0 -12px;
- padding: 0;
- background: #f4f6fa;
- overflow: hidden;
- .qj-page {
- display: grid;
- grid-template-columns: 236px minmax(0, 1fr);
- gap: 8px;
- height: 100%;
- min-height: 0;
- padding: 8px 10px;
- box-sizing: border-box;
- }
- /* ---------------- 左侧对象列表(固定) ---------------- */
- .qj-sidebar {
- display: flex;
- flex-direction: column;
- gap: 7px;
- min-height: 0;
- height: 100%;
- padding: 10px 8px 8px;
- border: 1px solid #e7ebf3;
- border-radius: 14px;
- background: #ffffff;
- box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
- box-sizing: border-box;
- overflow: hidden;
- }
- .qj-side-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 3px;
- flex: 0 0 auto;
- }
- .qj-side-title {
- display: flex;
- align-items: center;
- gap: 7px;
- font-size: 14px;
- font-weight: 600;
- line-height: 20px;
- color: #111827;
- }
- .qj-count {
- min-width: 22px;
- height: 20px;
- padding: 0 6px;
- border-radius: 999px;
- background: #eef2ff;
- color: #2a50ec;
- font-size: 11px;
- font-weight: 600;
- line-height: 20px;
- text-align: center;
- font-variant-numeric: tabular-nums;
- }
- .qj-side-search {
- flex: 0 0 auto;
- .ant-input-affix-wrapper,
- .ant-input {
- height: 30px;
- padding: 0 9px;
- border: 1px solid #e7ebf3;
- border-radius: 8px;
- background: #f8fafc;
- box-shadow: none;
- font-size: 12px;
- transition:
- border-color 0.2s ease,
- background-color 0.2s ease,
- box-shadow 0.2s ease;
- }
- .ant-input-affix-wrapper:hover,
- .ant-input:hover {
- border-color: #cbd5e1;
- background: #ffffff;
- }
- .ant-input-affix-wrapper-focused,
- .ant-input:focus {
- border-color: #2a50ec;
- background: #ffffff;
- box-shadow: 0 0 0 2px rgba(42, 80, 236, 0.12);
- }
- .ant-input-affix-wrapper > .ant-input {
- height: 100%;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- font-size: 12px;
- }
- .ant-input-prefix {
- margin-inline-end: 6px;
- }
- .qj-search-icon {
- color: #98a2b3;
- font-size: 13px;
- }
- }
- .qj-add-btn.ant-btn {
- flex: 0 0 auto;
- height: 32px;
- border: 1px solid #2a50ec;
- border-radius: 8px;
- background: #2a50ec;
- box-shadow: 0 2px 6px rgba(42, 80, 236, 0.18);
- font-size: 13px;
- font-weight: 500;
- .anticon {
- font-size: 13px;
- }
- &:hover,
- &:focus {
- border-color: #4b6bf0;
- background: #4b6bf0;
- }
- &:active {
- border-color: #1e3ed0;
- background: #1e3ed0;
- }
- }
- .qj-person-list {
- display: flex;
- flex: 1 1 auto;
- flex-direction: column;
- gap: 2px;
- min-height: 0;
- padding: 2px 2px 0 0;
- overflow-y: auto;
- overflow-x: hidden;
- &::-webkit-scrollbar {
- width: 4px;
- }
- &::-webkit-scrollbar-thumb {
- border-radius: 2px;
- background: #d5dbe6;
- }
- }
- .qj-person {
- display: flex;
- align-items: center;
- min-height: 46px;
- padding: 6px 7px;
- border: 1px solid transparent;
- border-radius: 10px;
- cursor: pointer;
- transition:
- background-color 0.2s ease,
- border-color 0.2s ease;
- &:hover {
- border-color: #eff2f7;
- background: #f8fafc;
- .qj-person-name {
- color: #1f2937;
- }
- }
- &.active {
- border-color: #2a50ec;
- background: #f6f8ff;
- .qj-person-name {
- color: #2a50ec;
- font-weight: 600;
- }
- .qj-person-sub {
- color: #5b7cfa;
- }
- .qj-person-avatar .jeesite-person-avatar__media {
- border-color: #2a50ec;
- background: #2a50ec;
- color: #ffffff;
- }
- }
- }
- .qj-person-trigger {
- display: flex;
- align-items: center;
- gap: 9px;
- width: 100%;
- min-width: 0;
- }
- .qj-person-avatar {
- flex: 0 0 34px;
- .jeesite-person-avatar__media {
- border: 1px solid #dfe5ff;
- background: #eef2ff;
- box-shadow: none;
- color: #2a50ec;
- }
- }
- .qj-person-info {
- display: flex;
- flex: 1;
- min-width: 0;
- flex-direction: column;
- gap: 1px;
- }
- .qj-person-name {
- overflow: hidden;
- font-size: 13px;
- line-height: 18px;
- font-weight: 500;
- color: #374151;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .qj-person-sub {
- overflow: hidden;
- font-size: 11px;
- line-height: 15px;
- color: #98a2b3;
- letter-spacing: -0.15px;
- white-space: nowrap;
- text-overflow: ellipsis;
- font-variant-numeric: tabular-nums;
- }
- .qj-side-empty {
- display: flex;
- flex: 1;
- align-items: center;
- justify-content: center;
- min-height: 0;
- padding: 10px 4px;
- }
- .qj-side-foot {
- flex: 0 0 auto;
- padding-top: 8px;
- border-top: 1px solid #eff2f7;
- }
- .qj-group-btn.ant-btn {
- width: 100%;
- height: 32px;
- border: 1px solid #e7ebf3;
- border-radius: 8px;
- background: #ffffff;
- color: #2a50ec;
- font-size: 13px;
- font-weight: 500;
- box-shadow: none;
- .anticon {
- font-size: 13px;
- }
- &:hover,
- &:focus {
- border-color: #bfcdfb;
- background: #f8faff;
- color: #4b6bf0;
- }
- }
- /* ---------------- 右侧滚动区 ---------------- */
- .qj-right {
- min-width: 0;
- min-height: 0;
- height: 100%;
- padding-right: 3px;
- overflow-y: auto;
- overflow-x: hidden;
- scrollbar-width: thin;
- scrollbar-color: #c7cfdd transparent;
- &::-webkit-scrollbar {
- width: 6px;
- }
- &::-webkit-scrollbar-thumb {
- border-radius: 3px;
- background: #c7cfdd;
- }
- &::-webkit-scrollbar-track {
- background: transparent;
- }
- }
- .qj-scroll {
- min-height: 100%;
- padding-bottom: 4px;
- box-sizing: border-box;
- }
- /* ---------------- 对象档案头 ---------------- */
- .qj-hero {
- flex: 0 0 auto;
- padding: 12px 14px;
- border: 1px solid #e7ebf3;
- border-radius: 14px;
- background: #ffffff;
- box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
- }
- .qj-hero-top {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- }
- .qj-hero-avatar {
- flex: 0 0 72px;
- .jeesite-person-avatar__media {
- border: 1px solid #d9e3ff;
- border-radius: 18px;
- background: #f1f5ff;
- box-shadow: none;
- color: #2a50ec;
- }
- }
- .qj-hero-id {
- display: flex;
- flex: 1;
- min-width: 0;
- flex-direction: column;
- align-self: stretch;
- justify-content: center;
- }
- .qj-hero-name-row {
- display: flex;
- align-items: center;
- gap: 9px;
- flex-wrap: wrap;
- }
- .qj-hero-name {
- margin: 0;
- font-size: 22px;
- line-height: 30px;
- font-weight: 600;
- letter-spacing: 0.2px;
- color: #111827;
- }
- .qj-hero-meta {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 5px 22px;
- margin-top: 6px;
- font-size: 12px;
- line-height: 18px;
- }
- .qj-hero-meta__item {
- display: flex;
- align-items: flex-start;
- min-width: 0;
- }
- .qj-hero-meta__label {
- flex: 0 0 auto;
- color: #98a2b3;
- white-space: nowrap;
- }
- .qj-hero-meta__value {
- min-width: 0;
- color: #111827;
- font-weight: 500;
- overflow-wrap: anywhere;
- &.muted {
- color: #98a2b3;
- font-weight: 400;
- }
- }
- .qj-badge {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- height: 21px;
- padding: 0 8px;
- border: 1px solid #e7ebf3;
- border-radius: 5px;
- background: #f4f6fa;
- color: #5b6577;
- font-size: 11px;
- font-weight: 500;
- line-height: 19px;
- white-space: nowrap;
- .anticon {
- font-size: 11px;
- }
- }
- .qj-badge-primary {
- border-color: #dfe5ff;
- background: #eef2ff;
- color: #2a50ec;
- }
- .qj-hero-actions {
- flex: 0 0 auto;
- align-self: center;
- }
- .qj-hero-edit-btn.ant-btn {
- height: 32px;
- padding: 0 12px;
- border: 1px solid #e7ebf3;
- border-radius: 8px;
- background: #ffffff;
- color: #374151;
- font-size: 12px;
- font-weight: 500;
- box-shadow: none;
- .anticon {
- font-size: 12px;
- }
- &:hover,
- &:focus {
- border-color: #bfcdfb;
- color: #2a50ec;
- }
- }
- /* ---------------- 吸顶分段导航 ---------------- */
- .qj-anchors {
- position: sticky;
- top: 0;
- z-index: 8;
- display: flex;
- align-items: center;
- gap: 3px;
- margin: 8px 0;
- padding: 3px;
- border: 1px solid #e7ebf3;
- border-radius: 10px;
- background: rgba(255, 255, 255, 0.97);
- box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
- }
- .qj-anchor {
- display: inline-flex;
- align-items: center;
- gap: 7px;
- height: 28px;
- padding: 0 12px;
- border: 0;
- border-radius: 8px;
- background: transparent;
- color: #5b6577;
- font-size: 13px;
- line-height: 28px;
- cursor: pointer;
- transition:
- background-color 0.2s ease,
- color 0.2s ease;
- .anticon {
- font-size: 14px;
- }
- &:hover {
- background: #f7f9fc;
- color: #111827;
- }
- &.active {
- background: #eef2ff;
- color: #2a50ec;
- font-weight: 600;
- }
- }
- .qj-anchors-tip {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- margin-left: auto;
- padding-right: 12px;
- color: #98a2b3;
- font-size: 11px;
- }
- /* ---------------- 通用卡片 ---------------- */
- .qj-card {
- margin-bottom: 8px;
- border: 1px solid #e7ebf3;
- border-radius: 14px;
- background: #ffffff;
- box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
- overflow: hidden;
- &:last-child {
- margin-bottom: 0;
- }
- }
- .qj-card-head {
- display: flex;
- align-items: center;
- gap: 10px;
- min-height: 42px;
- padding: 0 14px;
- border-bottom: 1px solid #eff2f7;
- }
- .qj-card-title {
- position: relative;
- padding-left: 11px;
- color: #111827;
- font-size: 15px;
- font-weight: 600;
- line-height: 22px;
- &::before {
- content: '';
- position: absolute;
- left: 0;
- top: 4px;
- bottom: 4px;
- width: 3px;
- border-radius: 2px;
- background: #2a50ec;
- }
- }
- .qj-card-sub {
- color: #98a2b3;
- font-size: 11px;
- line-height: 16px;
- }
- .qj-head-actions {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-left: auto;
- }
- .qj-link.ant-btn {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- height: auto;
- padding: 0 2px;
- border: 0;
- border-radius: 0;
- background: transparent;
- color: #2a50ec;
- font-size: 12px;
- font-weight: 500;
- line-height: 20px;
- box-shadow: none;
- .anticon {
- font-size: 12px;
- }
- &:hover,
- &:focus {
- border: 0;
- background: transparent;
- color: #4b6bf0;
- }
- &:active {
- color: #1e3ed0;
- }
- }
- .qj-card-body {
- padding: 10px 14px 12px;
- }
- /* ---------------- 通讯 / 交易:指标条 ---------------- */
- .qj-metrics {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 6px;
- &.four {
- grid-template-columns: repeat(4, minmax(0, 1fr));
- }
- }
- .qj-metric {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- padding: 8px 10px;
- border: 1px solid #eff2f7;
- border-radius: 9px;
- background: #fbfcfe;
- }
- .qj-metric-icon {
- display: inline-flex;
- flex: 0 0 30px;
- align-items: center;
- justify-content: center;
- width: 30px;
- height: 30px;
- border-radius: 8px;
- background: #eef2ff;
- color: #2a50ec;
- .anticon {
- font-size: 15px;
- }
- &.green {
- background: #e8f8f0;
- color: #0b8a4f;
- }
- &.orange {
- background: #fff4e5;
- color: #b25c00;
- }
- &.red {
- background: #fdecec;
- color: #c02b31;
- }
- }
- .qj-metric-main {
- flex: 1;
- min-width: 0;
- }
- .qj-metric-label {
- overflow: hidden;
- color: #98a2b3;
- font-size: 11px;
- line-height: 16px;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .qj-metric-value {
- margin-top: 2px;
- overflow: hidden;
- color: #1f2937;
- font-size: 13px;
- font-weight: 600;
- line-height: 19px;
- white-space: nowrap;
- text-overflow: ellipsis;
- &.green {
- color: #0b8a4f;
- }
- &.orange {
- color: #b25c00;
- }
- &.red {
- color: #c02b31;
- }
- &.blue {
- color: #2a50ec;
- }
- }
- .qj-metric-chips {
- display: flex;
- gap: 5px;
- align-items: center;
- margin-top: 3px;
- overflow: hidden;
- }
- .qj-chip {
- display: inline-flex;
- align-items: center;
- height: 19px;
- padding: 0 6px;
- border: 0;
- border-radius: 4px;
- background: #eef2ff;
- color: #2448c9;
- font-size: 10px;
- line-height: 19px;
- white-space: nowrap;
- cursor: pointer;
- &:hover {
- background: #dfe6ff;
- }
- &.neutral {
- border: 1px solid #eff2f7;
- background: #f4f6fa;
- color: #5b6577;
- cursor: default;
- }
- }
- /* ---------------- 双栏图表区 ---------------- */
- .qj-split {
- display: grid;
- grid-template-columns: 0.92fr 1.08fr;
- margin-top: 8px;
- border-top: 1px solid #eff2f7;
- }
- .qj-pane {
- min-width: 0;
- padding: 10px 14px 12px;
- & + & {
- border-left: 1px solid #eff2f7;
- }
- }
- .qj-pane-head {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- min-height: 28px;
- margin-bottom: 6px;
- }
- .qj-pane-title {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- color: #1f2937;
- font-size: 13px;
- font-weight: 600;
- line-height: 20px;
- white-space: nowrap;
- &::before {
- content: '';
- width: 3px;
- height: 12px;
- border-radius: 2px;
- background: #2a50ec;
- }
- }
- .qj-pane-tools {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 4px;
- flex-wrap: wrap;
- margin-left: auto;
- .qj-link.ant-btn {
- font-size: 11px;
- }
- }
- .qj-mini-field {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- height: 28px;
- padding: 0 7px;
- border: 1px solid #e7ebf3;
- border-radius: 7px;
- background: #ffffff;
- color: #5b6577;
- font-size: 11px;
- line-height: 26px;
- white-space: nowrap;
- > .anticon {
- color: #98a2b3;
- font-size: 11px;
- }
- .ant-picker {
- width: 170px;
- padding: 0;
- border: 0;
- border-radius: 0;
- background: transparent;
- box-shadow: none;
- .ant-picker-input > input {
- font-size: 11px;
- }
- .ant-picker-suffix,
- .ant-picker-clear {
- color: #98a2b3;
- font-size: 11px;
- }
- }
- .ant-select {
- min-width: 100px;
- }
- .ant-select-selector {
- height: 24px !important;
- padding: 0 !important;
- border: 0 !important;
- background: transparent !important;
- box-shadow: none !important;
- font-size: 11px;
- }
- .ant-select-selection-item,
- .ant-select-selection-placeholder {
- padding: 0;
- line-height: 24px !important;
- font-size: 11px;
- }
- .ant-select-arrow {
- color: #98a2b3;
- font-size: 11px;
- }
- .qj-inline-select {
- width: 96px;
- min-width: 96px;
- }
- }
- .qj-range-picker.ant-picker {
- width: 170px;
- }
- /* 纯色分段控件(Ant Radio.Group) */
- .qj-seg {
- display: inline-flex;
- align-items: center;
- height: 28px;
- padding: 2px;
- border: 1px solid #e7ebf3;
- border-radius: 7px;
- background: #ffffff;
- .ant-radio-wrapper {
- display: inline-flex;
- align-items: center;
- height: 22px;
- margin-inline-end: 0;
- padding: 0 8px;
- border-radius: 5px;
- color: #5b6577;
- font-size: 10px;
- line-height: 22px;
- transition:
- background-color 0.2s ease,
- color 0.2s ease;
- }
- .ant-radio-wrapper > .ant-radio {
- display: none;
- }
- .ant-radio-wrapper > span:last-child {
- padding: 0;
- }
- .ant-radio-wrapper-checked {
- background: #eef2ff;
- color: #2a50ec;
- font-weight: 600;
- }
- }
- /* 自定义月份 / 年份分段 */
- .qj-seg-item {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 30px;
- height: 22px;
- padding: 0 8px;
- border-radius: 5px;
- color: #5b6577;
- font-size: 11px;
- line-height: 22px;
- cursor: pointer;
- transition:
- background-color 0.2s ease,
- color 0.2s ease;
- &.on {
- background: #eef2ff;
- color: #2a50ec;
- font-weight: 600;
- }
- }
- /* ---------------- 环形图 ---------------- */
- .qj-donut-wrap {
- display: flex;
- align-items: center;
- gap: 14px;
- padding: 4px 2px 2px;
- }
- .qj-donut-chart {
- width: 176px;
- height: 176px;
- flex: 0 0 176px;
- }
- .qj-donut-visual {
- position: relative;
- flex: 0 0 176px;
- width: 176px;
- height: 176px;
- }
- .qj-donut-center {
- position: absolute;
- inset: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 2px;
- pointer-events: none;
- strong {
- color: #111827;
- font-size: 26px;
- font-weight: 600;
- line-height: 30px;
- }
- span {
- color: #98a2b3;
- font-size: 11px;
- line-height: 16px;
- }
- }
- .qj-legend {
- display: flex;
- flex: 1;
- min-width: 0;
- flex-direction: column;
- gap: 8px;
- }
- .qj-legend-row {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- width: 100%;
- padding: 0 0 7px;
- border: 0;
- border-bottom: 1px dashed #eff2f7;
- border-radius: 0;
- background: transparent;
- text-align: left;
- &:last-child {
- padding-bottom: 0;
- border-bottom: 0;
- }
- &.qj-legend-click {
- cursor: pointer;
- &:hover {
- .qj-legend-value {
- color: #2a50ec;
- }
- }
- }
- }
- .qj-legend-dot {
- flex: 0 0 8px;
- width: 8px;
- height: 8px;
- margin-top: 5px;
- border-radius: 50%;
- }
- .qj-legend-label {
- display: flex;
- align-items: center;
- gap: 6px;
- flex-wrap: wrap;
- color: #5b6577;
- font-size: 11px;
- line-height: 16px;
- }
- .qj-legend-pct {
- color: #98a2b3;
- font-size: 10px;
- }
- .qj-legend-value {
- margin-top: 2px;
- color: #1f2937;
- font-size: 14px;
- font-weight: 600;
- line-height: 20px;
- font-variant-numeric: tabular-nums;
- small {
- margin-left: 3px;
- color: #98a2b3;
- font-size: 11px;
- font-weight: 400;
- }
- }
- .qj-kpis {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 6px;
- margin-top: 6px;
- }
- .qj-kpi {
- min-width: 0;
- padding: 7px 9px;
- border: 1px solid #eff2f7;
- border-radius: 8px;
- background: #fbfcfe;
- }
- .qj-kpi-label {
- color: #98a2b3;
- font-size: 10px;
- line-height: 15px;
- white-space: nowrap;
- }
- .qj-kpi-value {
- margin-top: 1px;
- overflow: hidden;
- color: #2a50ec;
- font-size: 13px;
- font-weight: 600;
- line-height: 19px;
- white-space: nowrap;
- text-overflow: ellipsis;
- &.green {
- color: #12b76a;
- }
- &.orange {
- color: #f79009;
- }
- &.muted {
- color: #98a2b3;
- font-weight: 500;
- }
- }
- /* ---------------- TOP10 横向排行 ---------------- */
- .qj-rank-list {
- display: flex;
- flex-direction: column;
- gap: 2px;
- padding: 2px 0 0;
- }
- .qj-rank-row {
- display: grid;
- grid-template-columns: 18px 102px minmax(40px, 1fr) 34px;
- align-items: center;
- gap: 8px;
- width: 100%;
- height: 25px;
- padding: 0 2px;
- border: 0;
- border-radius: 4px;
- background: transparent;
- font-size: 11px;
- line-height: 25px;
- text-align: left;
- cursor: pointer;
- transition: background-color 0.2s ease;
- &:hover:not(:disabled) {
- background: #f7f9fc;
- .qj-rank-name {
- color: #2a50ec;
- }
- }
- &:disabled {
- cursor: default;
- }
- &.qj-rank-wide {
- grid-template-columns: 18px 154px minmax(40px, 1fr) 92px;
- }
- }
- .qj-rank-no {
- color: #98a2b3;
- font-size: 10px;
- text-align: center;
- font-variant-numeric: tabular-nums;
- }
- .qj-rank-row:first-child .qj-rank-no {
- color: #2a50ec;
- font-weight: 600;
- }
- .qj-rank-name {
- overflow: hidden;
- color: #4b5563;
- white-space: nowrap;
- text-overflow: ellipsis;
- transition: color 0.2s ease;
- }
- .qj-rank-track {
- display: block;
- height: 8px;
- border-radius: 4px;
- background: #f0f3f8;
- overflow: hidden;
- }
- .qj-rank-bar {
- display: block;
- height: 100%;
- border-radius: 4px;
- background: #2a50ec;
- }
- .qj-rank-row:nth-child(n + 4) .qj-rank-bar {
- background: #7d98f8;
- }
- .qj-rank-val {
- color: #1f2937;
- font-weight: 600;
- text-align: right;
- font-variant-numeric: tabular-nums;
- }
- .qj-rank-amount {
- color: #1f2937;
- font-size: 11px;
- font-weight: 600;
- text-align: right;
- white-space: nowrap;
- font-variant-numeric: tabular-nums;
- }
- /* ---------------- 基站条 ---------------- */
- .qj-stations {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- padding: 8px 14px;
- border-top: 1px solid #eff2f7;
- background: #fbfcfe;
- }
- .qj-stations-label {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- color: #374151;
- font-size: 12px;
- font-weight: 600;
- white-space: nowrap;
- .anticon {
- color: #2a50ec;
- font-size: 13px;
- }
- }
- .qj-station {
- display: inline-flex;
- align-items: center;
- height: 22px;
- padding: 0 8px;
- border: 1px solid #e7ebf3;
- border-radius: 5px;
- background: #ffffff;
- color: #4b5563;
- font-family: 'SFMono-Regular', Consolas, monospace;
- font-size: 11px;
- line-height: 20px;
- letter-spacing: 0.02em;
- }
- .qj-station-empty {
- color: #98a2b3;
- font-size: 11px;
- }
- .qj-stations-map {
- margin-left: auto;
- }
- /* ---------------- 交易趋势 ---------------- */
- .qj-trend {
- padding: 10px 14px 12px;
- border-top: 1px solid #eff2f7;
- }
- .qj-trend-head {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- flex-wrap: wrap;
- margin-bottom: 6px;
- }
- .qj-trend-title {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- color: #1f2937;
- font-size: 13px;
- font-weight: 600;
- line-height: 20px;
- white-space: nowrap;
- &::before {
- content: '';
- width: 3px;
- height: 12px;
- border-radius: 2px;
- background: #2a50ec;
- }
- }
- .qj-trend-desc {
- padding-top: 1px;
- color: #98a2b3;
- font-size: 11px;
- line-height: 18px;
- }
- .qj-trend-tools {
- display: flex;
- align-items: center;
- gap: 12px;
- flex-wrap: wrap;
- margin-left: auto;
- }
- .qj-field {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- color: #98a2b3;
- font-size: 11px;
- line-height: 28px;
- white-space: nowrap;
- }
- .qj-trend-select.ant-select {
- width: 160px;
- .ant-select-selector {
- height: 28px !important;
- padding: 0 9px !important;
- border: 1px solid #e7ebf3 !important;
- border-radius: 7px !important;
- background: #ffffff !important;
- box-shadow: none !important;
- font-size: 11px;
- }
- .ant-select-selection-item,
- .ant-select-selection-placeholder {
- line-height: 26px !important;
- font-size: 11px;
- }
- .ant-select-arrow {
- color: #98a2b3;
- font-size: 11px;
- }
- }
- .qj-trend-range.ant-picker {
- width: 216px;
- height: 28px;
- padding: 0 9px;
- border: 1px solid #e7ebf3;
- border-radius: 7px;
- background: #ffffff;
- box-shadow: none;
- .ant-picker-input > input {
- font-size: 11px;
- }
- .ant-picker-suffix,
- .ant-picker-clear {
- color: #98a2b3;
- font-size: 11px;
- }
- }
- .qj-trend-legend {
- display: inline-flex;
- align-items: center;
- gap: 12px;
- margin-left: 4px;
- }
- .qj-trend-legend-item {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- padding: 0;
- border: 0;
- background: transparent;
- color: #5b6577;
- font-size: 11px;
- line-height: 20px;
- cursor: pointer;
- i {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- }
- &.off {
- opacity: 0.42;
- text-decoration: line-through;
- }
- }
- .qj-trend-chart-box {
- width: 100%;
- min-width: 0;
- }
- .qj-trend-scroll {
- width: 100%;
- overflow-x: auto;
- overflow-y: hidden;
- &::-webkit-scrollbar {
- height: 5px;
- }
- &::-webkit-scrollbar-thumb {
- border-radius: 3px;
- background: #cbd5e1;
- }
- }
- .qj-trend-chart {
- min-width: 100%;
- }
- .qj-trend-echart {
- width: 100%;
- height: 100%;
- }
- .qj-footnote {
- padding: 0 0 2px;
- color: #98a2b3;
- font-size: 10px;
- line-height: 16px;
- text-align: right;
- }
- .qj-chart-empty {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 180px;
- color: #98a2b3;
- font-size: 12px;
- }
- .qj-trend-empty {
- min-height: 180px;
- }
- /* ---------------- 响应式 ---------------- */
- @media (max-width: 1440px) {
- .qj-page {
- grid-template-columns: 216px minmax(0, 1fr);
- }
- .qj-metrics.four {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
- @media (max-width: 1200px) {
- .qj-page {
- grid-template-columns: 200px minmax(0, 1fr);
- }
- .qj-anchors-tip {
- display: none;
- }
- .qj-split {
- grid-template-columns: 1fr;
- .qj-pane + .qj-pane {
- border-top: 1px solid #eff2f7;
- border-left: 0;
- }
- }
- .qj-hero-meta {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
- @media (max-width: 992px) {
- .qj-page {
- grid-template-columns: 176px minmax(0, 1fr);
- gap: 8px;
- padding: 10px;
- }
- .qj-sidebar {
- padding: 10px 8px;
- }
- .qj-hero {
- padding: 14px 14px 0;
- }
- .qj-hero-top {
- flex-wrap: wrap;
- }
- .qj-hero-actions {
- margin-left: 88px;
- }
- .qj-card-head {
- padding: 0 12px;
- }
- .qj-card-body {
- padding: 12px;
- }
- .qj-pane {
- padding: 12px;
- }
- .qj-metrics,
- .qj-metrics.four {
- grid-template-columns: 1fr;
- }
- .qj-hero-meta {
- grid-template-columns: 1fr;
- }
- .qj-donut-wrap {
- flex-wrap: wrap;
- }
- .qj-donut-chart,
- .qj-donut-visual {
- margin: 0 auto;
- }
- .qj-legend {
- flex-basis: 100%;
- }
- .qj-trend-head {
- gap: 8px;
- }
- .qj-trend-tools {
- width: 100%;
- margin-left: 0;
- }
- .qj-trend-select.ant-select,
- .qj-trend-range.ant-picker {
- width: 100%;
- }
- .qj-trend-scroll {
- overflow-x: auto;
- }
- }
- /* ---------------- 暗色主题 ---------------- */
- html[data-theme='dark'] & {
- background: #0f172a;
- .qj-sidebar,
- .qj-hero,
- .qj-card,
- .qj-anchors {
- border-color: #1f2937;
- background: #111827;
- box-shadow: none;
- }
- .qj-card-head,
- .qj-side-foot,
- .qj-stations,
- .qj-trend,
- .qj-split {
- border-color: #1f2937;
- }
- .qj-stations {
- background: #0f172a;
- }
- .qj-side-title,
- .qj-hero-name,
- .qj-card-title,
- .qj-pane-title,
- .qj-trend-title,
- .qj-hero-meta__value,
- .qj-metric-value,
- .qj-rank-val,
- .qj-rank-amount,
- .qj-legend-value,
- .qj-donut-center strong,
- .qj-kpi-value,
- .qj-stations-label {
- color: #e5e7eb;
- }
- .qj-hero-meta,
- .qj-hero-meta__label,
- .qj-metric-label,
- .qj-legend-label,
- .qj-trend-desc,
- .qj-field,
- .qj-rank-name,
- .qj-rank-no,
- .qj-station-empty,
- .qj-footnote {
- color: #94a3b8;
- }
- .qj-person:hover {
- background: #172033;
- }
- .qj-person.active {
- background: #172554;
- }
- .qj-metric,
- .qj-kpi,
- .qj-station {
- border-color: #1f2937;
- background: #0f172a;
- }
- .qj-metric-value.green {
- color: #34d399;
- }
- .qj-metric-value.orange {
- color: #fbbf24;
- }
- .qj-metric-value.red {
- color: #f87171;
- }
- .qj-mini-field,
- .qj-trend-select.ant-select .ant-select-selector,
- .qj-trend-range.ant-picker,
- .qj-seg {
- border-color: #1f2937 !important;
- background: #0f172a !important;
- color: #94a3b8;
- }
- .qj-range-picker.ant-picker {
- background: transparent;
- }
- .qj-anchor:hover {
- background: #172033;
- color: #e5e7eb;
- }
- .qj-anchor.active {
- background: #172554;
- color: #93b4ff;
- }
- }
- }
- /* 亲密关系卡片:压过旧版 portrait 样式的残留影响 */
- .qj-portrait-page #section-relation {
- .intimacy-panel {
- .section-header {
- align-items: center;
- flex-wrap: wrap;
- min-height: 42px;
- margin-bottom: 0;
- padding: 0 14px;
- border-bottom: 1px solid #eff2f7;
- }
- .section-title {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- padding-left: 11px;
- font-size: 15px;
- font-weight: 600;
- line-height: 22px;
- letter-spacing: 0;
- color: #111827;
- &::before {
- content: '';
- position: absolute;
- left: 0;
- top: 4px;
- bottom: 4px;
- width: 3px;
- height: auto;
- border-radius: 2px;
- background: #2a50ec;
- }
- }
- .section-tools {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-left: auto;
- }
- .relation-search {
- width: 208px;
- }
- .section-action.ant-btn {
- height: auto;
- padding: 0 2px;
- border: 0;
- background: transparent;
- color: #2a50ec;
- font-size: 12px;
- font-weight: 500;
- line-height: 20px;
- box-shadow: none;
- .anticon {
- font-size: 12px;
- }
- &:hover,
- &:focus {
- border: 0;
- background: transparent;
- color: #4b6bf0;
- }
- }
- .relation-avatar {
- width: 38px;
- height: 38px;
- background: transparent;
- }
- .intimacy-card__score-badge {
- min-width: 0;
- height: auto;
- padding: 0;
- border-radius: 0;
- background: transparent;
- color: #e5484d;
- font-size: 20px;
- line-height: 24px;
- font-weight: 600;
- box-shadow: none;
- }
- .intimacy-detail .value--accent,
- .intimacy-detail .detail-value--clickable {
- color: #e5484d;
- }
- }
- }
- @media (max-width: 992px) {
- .qj-portrait-page #section-relation .intimacy-panel {
- .section-header {
- flex-direction: column;
- align-items: stretch;
- }
- .section-tools,
- .relation-search {
- width: 100%;
- }
- }
- }
- </style>
|