portrait.vue 292 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767
  1. <template>
  2. <div :class="prefixCls" class="case-portrait-page qj-portrait-page">
  3. <div class="qj-page">
  4. <aside class="qj-sidebar">
  5. <div class="qj-side-head">
  6. <div class="qj-side-title"
  7. >画像对象 <span class="qj-count">{{ filteredPersonList.length }}</span></div
  8. >
  9. </div>
  10. <div class="qj-side-search">
  11. <Input v-model:value="personKeyword" placeholder="搜索姓名 / 证件号" allow-clear>
  12. <template #prefix>
  13. <SearchOutlined class="qj-search-icon" />
  14. </template>
  15. </Input>
  16. </div>
  17. <Button type="primary" block class="qj-add-btn" @click="openCreateModal">
  18. <PlusOutlined />
  19. 新增对象
  20. </Button>
  21. <div class="qj-person-list">
  22. <template v-if="filteredPersonList.length">
  23. <div
  24. v-for="item in filteredPersonList"
  25. :key="item.person.personCertNo || item.person.personName || item.index"
  26. class="qj-person"
  27. :class="{ active: selectedPersonId === item.index }"
  28. :title="toPersonName(item.person)"
  29. @click="selectPerson(item.index)"
  30. >
  31. <Popover placement="rightTop" trigger="hover" overlayClassName="person-card-popover">
  32. <template #content>
  33. <div class="avatar-pop-content">
  34. <div class="edit-item" @click.stop="openEditModal(item.person)">编辑</div>
  35. <div class="edit-item delete" @click.stop="handleDelete(item.person)">删除</div>
  36. </div>
  37. </template>
  38. <div class="qj-person-trigger">
  39. <PersonAvatar
  40. class="qj-person-avatar"
  41. :src="getPersonPhoto(item.person)"
  42. :alt="toPersonName(item.person)"
  43. :size="34"
  44. />
  45. <div class="qj-person-info">
  46. <div class="qj-person-name" :title="toPersonName(item.person)">{{ toPersonName(item.person) }}</div>
  47. <div v-if="item.person.personCertNo" class="qj-person-sub">{{ item.person.personCertNo }}</div>
  48. </div>
  49. </div>
  50. </Popover>
  51. </div>
  52. </template>
  53. <div v-else class="qj-side-empty">
  54. <EmptyState
  55. :title="personList.length ? '未找到匹配对象' : '暂无对象'"
  56. :description="personList.length ? '试试更换搜索关键词' : '可点击上方“新增对象”创建画像主体'"
  57. variant="compact"
  58. :min-height="150"
  59. />
  60. </div>
  61. </div>
  62. <div class="qj-side-foot">
  63. <Button class="qj-group-btn" @click="openGroupModal">
  64. <FolderOpenOutlined />
  65. 对象分组
  66. </Button>
  67. </div>
  68. </aside>
  69. <div ref="rightPanelRef" class="qj-right">
  70. <div class="qj-scroll">
  71. <section id="section-basic" class="qj-hero">
  72. <div class="qj-hero-top">
  73. <PersonAvatar class="qj-hero-avatar" :src="basicPhoto" :alt="basicName" :size="72" />
  74. <div class="qj-hero-id">
  75. <div class="qj-hero-name-row">
  76. <h1 class="qj-hero-name">{{ basicName }}</h1>
  77. <span class="qj-badge qj-badge-primary"><UserOutlined />画像主体</span>
  78. <span class="qj-badge">对象分组:{{ objectGroupText }}</span>
  79. </div>
  80. </div>
  81. <div class="qj-hero-actions">
  82. <Button class="qj-hero-edit-btn" @click="handleEditBasicInfo">
  83. <EditOutlined />
  84. 编辑资料
  85. </Button>
  86. </div>
  87. </div>
  88. <div class="qj-hero-meta">
  89. <div v-for="item in displayBasicInfo" :key="item.label" class="qj-hero-meta__item">
  90. <span class="qj-hero-meta__label">{{ item.label }}:</span>
  91. <span class="qj-hero-meta__value" :class="{ muted: item.value === '-' }" :title="item.value">{{
  92. item.value
  93. }}</span>
  94. </div>
  95. </div>
  96. </section>
  97. <nav class="qj-anchors" aria-label="页面章节">
  98. <button
  99. v-for="nav in navItems"
  100. :key="nav.id"
  101. type="button"
  102. class="qj-anchor"
  103. :class="{ active: activeNavId === nav.id }"
  104. @click="scrollToSection(nav.id)"
  105. >
  106. <component :is="nav.icon" />
  107. {{ nav.label }}
  108. </button>
  109. <span class="qj-anchors-tip">滚动页面时自动定位</span>
  110. </nav>
  111. <section id="section-relation" class="qj-card qj-relation-card">
  112. <IntimacyPanel :selected-person="selectedPerson" @jump-to-analysis="handleJumpToAnalysis" />
  113. </section>
  114. <section id="section-comm" class="qj-card">
  115. <div class="qj-card-head">
  116. <div class="qj-card-title">通讯信息</div>
  117. <div class="qj-head-actions">
  118. <Button type="link" class="qj-link" @click="openCallSummaryModal">
  119. <FileTextOutlined />
  120. 通信汇总
  121. </Button>
  122. </div>
  123. </div>
  124. <div class="qj-card-body qj-comm-metrics">
  125. <div class="qj-metrics two">
  126. <div class="qj-metric">
  127. <span class="qj-metric-icon"><PhoneOutlined /></span>
  128. <div class="qj-metric-main">
  129. <div class="qj-metric-label">电话号码</div>
  130. <div class="qj-metric-value">{{ commSummary.phoneSummary }}</div>
  131. <div class="qj-metric-chips">
  132. <button
  133. v-for="carrier in carrierTags"
  134. :key="carrier.carrierName"
  135. type="button"
  136. class="qj-chip"
  137. @click="openCallOperPhoneModal(carrier)"
  138. >
  139. {{ carrier.label }}
  140. </button>
  141. <span v-if="!carrierTags.length" class="qj-chip neutral">-</span>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="qj-metric">
  146. <span class="qj-metric-icon"><CalendarOutlined /></span>
  147. <div class="qj-metric-main">
  148. <div class="qj-metric-label">通讯记录时间段</div>
  149. <div class="qj-metric-value">{{ commSummary.timeRange }}</div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="qj-split">
  155. <div class="qj-pane">
  156. <div class="qj-pane-head">
  157. <div class="qj-pane-title">通信类型占比</div>
  158. </div>
  159. <div v-if="hasRenderableCommTypeRatioData" class="qj-donut-wrap">
  160. <div ref="commTypeChartRef" class="qj-donut-chart"></div>
  161. <div class="qj-legend">
  162. <div v-for="item in commTypeLegend" :key="item.name" class="qj-legend-row">
  163. <span class="qj-legend-dot" :style="{ backgroundColor: item.color }"></span>
  164. <div>
  165. <div class="qj-legend-label">
  166. {{ item.name }}
  167. <span class="qj-legend-pct">{{ item.rate }}%</span>
  168. </div>
  169. <div class="qj-legend-value">{{ item.count }} <small>次</small></div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <div v-else class="qj-chart-empty">
  175. <EmptyState description="通信占比数据接入后将在此展示" />
  176. </div>
  177. </div>
  178. <div class="qj-pane">
  179. <div class="qj-pane-head">
  180. <div class="qj-pane-title">常联系对象 TOP10</div>
  181. <div class="qj-pane-tools">
  182. <span class="qj-mini-field">
  183. <CalendarOutlined />
  184. <DatePicker.RangePicker
  185. v-model:value="commTopQuery.dateRange"
  186. class="qj-range-picker"
  187. value-format="YYYY-MM-DD"
  188. :placeholder="['开始日期', '结束日期']"
  189. />
  190. </span>
  191. <Button type="link" size="small" class="qj-link" @click="openCallSummaryFromTopContacts">
  192. 查看更多
  193. </Button>
  194. </div>
  195. </div>
  196. <div v-if="hasRenderableTopContacts" class="qj-rank-list">
  197. <button
  198. v-for="(row, index) in commTopRankRows"
  199. :key="`${row.name}-${index}`"
  200. type="button"
  201. class="qj-rank-row"
  202. @click="handleCommTopRowClick(row)"
  203. >
  204. <span class="qj-rank-no">{{ index + 1 }}</span>
  205. <span class="qj-rank-name" :title="row.name">{{ row.name }}</span>
  206. <span class="qj-rank-track">
  207. <span class="qj-rank-bar" :style="{ width: `${row.rate}%` }"></span>
  208. </span>
  209. <span class="qj-rank-val">{{ row.count }}</span>
  210. </button>
  211. </div>
  212. <div v-else class="qj-chart-empty">
  213. <EmptyState description="筛选联系人后可查看 TOP10 统计结果" />
  214. </div>
  215. </div>
  216. </div>
  217. <div class="qj-stations">
  218. <span class="qj-stations-label"><EnvironmentOutlined />常通话基站</span>
  219. <template v-if="stations.length">
  220. <span v-for="station in stations" :key="station" class="qj-station">{{ station }}</span>
  221. </template>
  222. <span v-else class="qj-station-empty">-</span>
  223. <Button type="link" class="qj-link qj-stations-map" @click="viewStationMap">查看地图</Button>
  224. </div>
  225. </section>
  226. <section id="section-trade" class="qj-card">
  227. <div class="qj-card-head">
  228. <div class="qj-card-title">交易信息</div>
  229. <div class="qj-head-actions">
  230. <Button type="link" class="qj-link" @click="openTransSummaryModal">
  231. <FileTextOutlined />
  232. 交易汇总
  233. </Button>
  234. </div>
  235. </div>
  236. <div class="qj-card-body">
  237. <div class="qj-metrics four">
  238. <div class="qj-metric">
  239. <span class="qj-metric-icon"><CreditCardOutlined /></span>
  240. <div class="qj-metric-main">
  241. <div class="qj-metric-label">银行卡</div>
  242. <div class="qj-metric-value">{{ tradeSummary.cardSummary }}</div>
  243. <div class="qj-metric-chips">
  244. <button
  245. v-for="tag in tradeBankTags"
  246. :key="tag.bankName"
  247. type="button"
  248. class="qj-chip"
  249. @click="openTransBankCardModal(tag)"
  250. >
  251. {{ tag.label }}
  252. </button>
  253. <span v-if="!tradeBankTags.length" class="qj-chip neutral">-</span>
  254. </div>
  255. </div>
  256. </div>
  257. <div class="qj-metric">
  258. <span class="qj-metric-icon green"><ArrowDownOutlined /></span>
  259. <div class="qj-metric-main">
  260. <div class="qj-metric-label">总收入 · {{ tradeSummary.incomeRate }}</div>
  261. <div class="qj-metric-value green">{{ tradeSummary.incomeAmount }}</div>
  262. </div>
  263. </div>
  264. <div class="qj-metric">
  265. <span class="qj-metric-icon"><ArrowUpOutlined /></span>
  266. <div class="qj-metric-main">
  267. <div class="qj-metric-label">总支出 · {{ tradeSummary.expendRate }}</div>
  268. <div class="qj-metric-value blue">{{ tradeSummary.expendAmount }}</div>
  269. </div>
  270. </div>
  271. <div class="qj-metric">
  272. <span class="qj-metric-icon red"><MoneyCollectOutlined /></span>
  273. <div class="qj-metric-main">
  274. <div class="qj-metric-label">单笔最高支出</div>
  275. <div class="qj-metric-value red">{{ tradeSummary.maxExpend }}</div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. <div class="qj-split">
  281. <div class="qj-pane">
  282. <div class="qj-pane-head">
  283. <div class="qj-pane-title">借贷类型占比</div>
  284. </div>
  285. <template v-if="hasTradeRatioData">
  286. <div class="qj-donut-wrap">
  287. <div class="qj-donut-visual">
  288. <div ref="tradeRatioChartRef" class="qj-donut-chart"></div>
  289. <div class="qj-donut-center">
  290. <strong>{{ transStatData?.cardCount ?? 0 }}</strong>
  291. <span>银行卡</span>
  292. </div>
  293. </div>
  294. <div class="qj-legend">
  295. <button
  296. type="button"
  297. class="qj-legend-row qj-legend-click"
  298. @click="handleDrillByDebitCredit('收入')"
  299. >
  300. <span class="qj-legend-dot" style="background: #12b76a"></span>
  301. <div>
  302. <div class="qj-legend-label">
  303. 总收入
  304. <span class="qj-legend-pct">{{ tradeSummary.incomeRate }}</span>
  305. </div>
  306. <div class="qj-legend-value">{{ tradeSummary.incomeAmount }}</div>
  307. </div>
  308. </button>
  309. <button
  310. type="button"
  311. class="qj-legend-row qj-legend-click"
  312. @click="handleDrillByDebitCredit('支出')"
  313. >
  314. <span class="qj-legend-dot" style="background: #2a50ec"></span>
  315. <div>
  316. <div class="qj-legend-label">
  317. 总支出
  318. <span class="qj-legend-pct">{{ tradeSummary.expendRate }}</span>
  319. </div>
  320. <div class="qj-legend-value">{{ tradeSummary.expendAmount }}</div>
  321. </div>
  322. </button>
  323. </div>
  324. </div>
  325. <div class="qj-kpis">
  326. <div class="qj-kpi">
  327. <div class="qj-kpi-label">单笔最高支出</div>
  328. <div class="qj-kpi-value">{{ tradeSummary.maxExpend }}</div>
  329. </div>
  330. <div class="qj-kpi">
  331. <div class="qj-kpi-label">单笔最高收入</div>
  332. <div class="qj-kpi-value" :class="tradeSummary.maxIncome === '-' ? 'muted' : 'green'">{{
  333. tradeSummary.maxIncome
  334. }}</div>
  335. </div>
  336. </div>
  337. </template>
  338. <div v-else class="qj-chart-empty">
  339. <EmptyState description="借贷类型汇总完成后将在此展示" />
  340. </div>
  341. </div>
  342. <div class="qj-pane">
  343. <div class="qj-pane-head">
  344. <div class="qj-pane-title">常交易对象 TOP10</div>
  345. <div class="qj-pane-tools">
  346. <span class="qj-mini-field">
  347. 统计指标:
  348. <Select
  349. v-model:value="tradeTopQuery.indicator"
  350. class="qj-inline-select"
  351. :options="tradeMetricOptions"
  352. />
  353. </span>
  354. <span class="qj-mini-field">
  355. <CalendarOutlined />
  356. <DatePicker.RangePicker
  357. v-model:value="tradeTopQuery.dateRange"
  358. class="qj-range-picker"
  359. value-format="YYYY-MM-DD"
  360. :placeholder="['开始日期', '结束日期']"
  361. />
  362. </span>
  363. <Radio.Group v-model:value="tradeTopQuery.dimension" class="qj-seg">
  364. <Radio value="交易金额">交易金额</Radio>
  365. <Radio value="交易次数">交易次数</Radio>
  366. </Radio.Group>
  367. <Button type="link" size="small" class="qj-link" @click="openTransSummaryModal">查看更多</Button>
  368. </div>
  369. </div>
  370. <div v-if="tradeTop.length" class="qj-rank-list">
  371. <button
  372. v-for="(row, index) in tradeTopRankRows"
  373. :key="`${row.name}-${index}`"
  374. type="button"
  375. class="qj-rank-row qj-rank-wide"
  376. @click="handleDrillByTradeTop(row)"
  377. >
  378. <span class="qj-rank-no">{{ index + 1 }}</span>
  379. <span class="qj-rank-name" :title="row.name">{{ row.name }}</span>
  380. <span class="qj-rank-track">
  381. <span class="qj-rank-bar" :style="{ width: `${row.rate}%` }"></span>
  382. </span>
  383. <span class="qj-rank-amount">{{ formatTradeRankValue(row.value) }}</span>
  384. </button>
  385. </div>
  386. <div v-else class="qj-chart-empty">
  387. <EmptyState description="调整日期或统计指标后可查看 TOP10 结果" />
  388. </div>
  389. </div>
  390. </div>
  391. <div class="qj-trend">
  392. <div class="qj-trend-head">
  393. <div class="qj-trend-title">交易趋势</div>
  394. <div class="qj-trend-desc">按时间维度观察收入与支出走势,可结合对方名称与日期范围进行筛选</div>
  395. <div class="qj-trend-tools">
  396. <span class="qj-field">
  397. 对方名称
  398. <Select
  399. v-model:value="tradeTrendQuery.otherName"
  400. class="qj-trend-select"
  401. placeholder="请选择对方名称"
  402. allow-clear
  403. show-search
  404. :filter-option="false"
  405. :options="tradeTrendOtherNameOptions"
  406. :loading="tradeTrendOtherNameLoading"
  407. :not-found-content="tradeTrendOtherNameLoading ? '加载中...' : '暂无数据'"
  408. @search="handleTradeTrendOtherNameSearch"
  409. @popupScroll="handleTradeTrendOtherNamePopupScroll"
  410. @dropdownVisibleChange="handleTradeTrendOtherNameDropdownVisibleChange"
  411. />
  412. </span>
  413. <span class="qj-field">
  414. 交易日期
  415. <DatePicker.RangePicker
  416. v-model:value="tradeTrendQuery.dateRange"
  417. class="qj-range-picker qj-trend-range"
  418. value-format="YYYY-MM-DD"
  419. :placeholder="['开始日期', '结束日期']"
  420. />
  421. </span>
  422. <span class="qj-field">
  423. 时间维度
  424. <span class="qj-seg">
  425. <span
  426. class="qj-seg-item"
  427. :class="{ on: tradeTrendQuery.timeDimension === 'MONTH' }"
  428. @click="changeTradeTrendDimension('MONTH')"
  429. >月</span
  430. >
  431. <span
  432. class="qj-seg-item"
  433. :class="{ on: tradeTrendQuery.timeDimension === 'YEAR' }"
  434. @click="changeTradeTrendDimension('YEAR')"
  435. >年</span
  436. >
  437. </span>
  438. </span>
  439. <span class="qj-trend-legend">
  440. <button
  441. v-for="(item, index) in trendLegendArr"
  442. :key="item.name"
  443. type="button"
  444. class="qj-trend-legend-item"
  445. :class="{ off: !item.isShow }"
  446. @click="changeLegend(item.name, index)"
  447. >
  448. <i :style="{ backgroundColor: item.color }"></i>
  449. {{ item.name }}
  450. </button>
  451. </span>
  452. </div>
  453. </div>
  454. <div v-if="trendPoints.length && trendLabels.length" class="qj-trend-chart-box">
  455. <div ref="tradeTrendScrollRef" class="qj-trend-scroll">
  456. <div class="qj-trend-chart" :style="trendChartStyle">
  457. <div ref="tradeTrendChartRef" class="qj-trend-echart"></div>
  458. </div>
  459. </div>
  460. </div>
  461. <div v-else class="qj-chart-empty qj-trend-empty">
  462. <EmptyState description="设置查询条件后可查看收入与支出趋势" />
  463. </div>
  464. <div class="qj-footnote">统计口径:按交易日期归集,收入与支出分列展示</div>
  465. </div>
  466. </section>
  467. </div>
  468. </div>
  469. </div>
  470. <Modal
  471. v-model:open="personModalVisible"
  472. @ok="handleSubmit"
  473. @cancel="closePersonModal"
  474. :confirmLoading="saving"
  475. :width="1040"
  476. :centered="true"
  477. :okText="isEditMode ? '保存修改' : '创建对象'"
  478. cancelText="取消"
  479. wrapClassName="person-edit-modal"
  480. destroyOnClose
  481. >
  482. <template #title>
  483. <div class="portrait-modal-title-block">
  484. <div class="portrait-modal-title">{{ isEditMode ? '编辑对象' : '新增对象' }}</div>
  485. <div class="portrait-modal-subtitle">维护画像主体的基础信息、联系方式与银行卡资料</div>
  486. </div>
  487. </template>
  488. <Form layout="vertical" class="person-form">
  489. <div class="person-form-section">
  490. <div class="form-section-head">
  491. <div>
  492. <div class="form-section-title">主要信息</div>
  493. <div class="form-section-desc">基础身份信息、籍贯住址与对象标签归类</div>
  494. </div>
  495. </div>
  496. <div class="person-form-grid">
  497. <Form.Item label="姓名" required :validateStatus="personNameError ? 'error' : ''" :help="personNameError">
  498. <Input v-model:value="personForm.personName" placeholder="请输入姓名" @blur="validatePersonName" />
  499. </Form.Item>
  500. <Form.Item label="证件号">
  501. <Input v-model:value="personForm.personCertNo" placeholder="请输入证件号" />
  502. </Form.Item>
  503. <Form.Item label="性别">
  504. <Select
  505. v-model:value="personForm.personGender"
  506. placeholder="请选择"
  507. :getPopupContainer="getModalPopupContainer"
  508. >
  509. <Select.Option value="男">男</Select.Option>
  510. <Select.Option value="女">女</Select.Option>
  511. </Select>
  512. </Form.Item>
  513. <Form.Item label="婚姻状态">
  514. <Select v-model:value="personForm.marry" placeholder="请选择" :getPopupContainer="getModalPopupContainer">
  515. <Select.Option :value="0">未知</Select.Option>
  516. <Select.Option :value="1">已婚</Select.Option>
  517. <Select.Option :value="2">未婚</Select.Option>
  518. </Select>
  519. </Form.Item>
  520. <Form.Item label="出生日期">
  521. <Input v-model:value="personForm.personBirth" placeholder="请输入 YYYY-MM-DD" />
  522. </Form.Item>
  523. <Form.Item label="年龄">
  524. <Input v-model:value="personForm.personAge" placeholder="请输入年龄" />
  525. </Form.Item>
  526. <Form.Item label="标签">
  527. <Select
  528. v-model:value="personForm.personTag"
  529. placeholder="请选择标签"
  530. :getPopupContainer="getModalPopupContainer"
  531. >
  532. <Select.Option value="MAIN">主体</Select.Option>
  533. </Select>
  534. </Form.Item>
  535. <Form.Item label="民族">
  536. <Input v-model:value="personForm.nation" placeholder="请输入民族" />
  537. </Form.Item>
  538. <Form.Item label="籍贯">
  539. <Input v-model:value="personForm.nativePlace" placeholder="请输入籍贯" />
  540. </Form.Item>
  541. <Form.Item label="户籍地">
  542. <Input v-model:value="personForm.householdRegistered" placeholder="请输入户籍地" />
  543. </Form.Item>
  544. <Form.Item label="地址">
  545. <Input v-model:value="personForm.personAddress" placeholder="请输入地址" />
  546. </Form.Item>
  547. <Form.Item label="上传头像" class="form-item-span-2 person-avatar-form-item">
  548. <div class="person-avatar-upload">
  549. <input
  550. ref="avatarInputRef"
  551. type="file"
  552. accept="image/*"
  553. hidden
  554. aria-hidden="true"
  555. class="person-avatar-upload__input"
  556. @change="handleAvatarFileChange"
  557. />
  558. <button type="button" class="person-avatar-upload__preview" @click="openAvatarFileDialog">
  559. <PersonAvatar :src="personAvatarPreviewSrc" :size="92" alt="人物头像" />
  560. </button>
  561. <div class="person-avatar-upload__tips">
  562. <div class="person-avatar-upload__title">支持上传人物头像</div>
  563. <div class="person-avatar-upload__desc">点击头像或按钮选择图片,保存时直接写入本地图片地址。</div>
  564. <div class="person-avatar-upload__actions">
  565. <Button @click="openAvatarFileDialog">上传头像</Button>
  566. <Button v-if="personForm.photograph" @click="clearAvatarSelection">清空头像</Button>
  567. </div>
  568. </div>
  569. </div>
  570. </Form.Item>
  571. </div>
  572. </div>
  573. <div class="person-form-section">
  574. <div class="form-section-head">
  575. <div>
  576. <div class="form-section-title">扩展信息</div>
  577. <div class="form-section-desc">联系方式与银行卡信息补充</div>
  578. </div>
  579. </div>
  580. <div class="person-form-grid">
  581. <Form.Item label="联系电话" class="form-item-span-2">
  582. <div class="dynamic-input-list">
  583. <div v-for="(phone, index) in personForm.phoneList" :key="index" class="dynamic-input-item">
  584. <Form.Item
  585. :validateStatus="phoneListErrors[index] ? 'error' : ''"
  586. :help="phoneListErrors[index]"
  587. :style="{ marginBottom: '8px' }"
  588. >
  589. <Input
  590. v-model:value="personForm.phoneList[index]"
  591. placeholder="请输入手机号"
  592. @blur="validatePhone(index)"
  593. />
  594. </Form.Item>
  595. <Button v-if="personForm.phoneList.length > 1" class="remove-btn" @click="removePhone(index)">
  596. <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
  597. <path d="M19 13H5v-2h14v2z" />
  598. </svg>
  599. </Button>
  600. <Button class="add-btn" @click="addPhone">
  601. <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
  602. <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
  603. </svg>
  604. </Button>
  605. </div>
  606. </div>
  607. </Form.Item>
  608. <Form.Item label="银行卡" class="form-item-span-2">
  609. <div class="dynamic-input-list">
  610. <div v-for="(card, index) in personForm.cardList" :key="index" class="dynamic-input-item">
  611. <Form.Item
  612. :validateStatus="cardListErrors[index] ? 'error' : ''"
  613. :help="cardListErrors[index]"
  614. :style="{ marginBottom: '8px' }"
  615. >
  616. <Input
  617. v-model:value="personForm.cardList[index]"
  618. placeholder="请输入银行卡号"
  619. @blur="validateCard(index)"
  620. />
  621. </Form.Item>
  622. <Button v-if="personForm.cardList.length > 1" class="remove-btn" @click="removeCard(index)">
  623. <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
  624. <path d="M19 13H5v-2h14v2z" />
  625. </svg>
  626. </Button>
  627. <Button class="add-btn" @click="addCard">
  628. <svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
  629. <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
  630. </svg>
  631. </Button>
  632. </div>
  633. </div>
  634. </Form.Item>
  635. </div>
  636. </div>
  637. </Form>
  638. </Modal>
  639. <QueryTableModal
  640. v-model:open="callSummaryModalVisible"
  641. title="通信汇总"
  642. :z-index="callSummaryModalZIndex"
  643. :loading="callSummaryLoading"
  644. :filters="callSummaryQuery"
  645. :filter-schema="callSummaryFilterSchema"
  646. :columns="callSummaryColumns"
  647. :data-source="callSummaryRows"
  648. :pagination="callSummaryPagination"
  649. :total-pages="callSummaryTotalPages"
  650. :page-size-options="pageSizeOptions"
  651. :show-table-setting="false"
  652. :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
  653. :can-fullscreen="true"
  654. @search="handleSearchCallSummary"
  655. @reset="handleResetCallSummary"
  656. @prev-page="handleCallSummaryPrevPage"
  657. @next-page="handleCallSummaryNextPage"
  658. @page-size-change="handleCallSummaryPageSizeChange"
  659. @page-change="handleCallSummaryPageChange"
  660. @sort-change="handleSortCallSummary"
  661. />
  662. <QueryTableModal
  663. v-model:open="callOperPhoneModalVisible"
  664. :title="callOperPhoneModalTitle"
  665. wrap-class-name="call-oper-phone-modal"
  666. :loading="callOperPhoneLoading"
  667. :filters="callOperPhoneQuery"
  668. :filter-schema="callOperPhoneFilterSchema"
  669. :columns="callOperPhoneColumns"
  670. :data-source="callOperPhoneRows"
  671. :pagination="callOperPhonePagination"
  672. :total-pages="callOperPhoneTotalPages"
  673. :page-size-options="pageSizeOptions"
  674. :show-table-setting="true"
  675. :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
  676. :can-fullscreen="true"
  677. @search="handleSearchCallOperPhone"
  678. @reset="handleResetCallOperPhone"
  679. @prev-page="handleCallOperPhonePrevPage"
  680. @next-page="handleCallOperPhoneNextPage"
  681. @page-size-change="handleCallOperPhonePageSizeChange"
  682. @page-change="handleCallOperPhonePageChange"
  683. @sort-change="handleSortCallOperPhone"
  684. />
  685. <CallRecordModal
  686. v-model:open="callRecordModalVisible"
  687. title="通信记录"
  688. :z-index="callRecordModalZIndex"
  689. :base-query="callRecordBaseQuery"
  690. :hide-technical-id-columns="true"
  691. @jump="handleCallRecordJump"
  692. />
  693. <QueryTableModal
  694. v-model:open="transSummaryModalVisible"
  695. title="交易汇总"
  696. :z-index="transSummaryModalZIndex"
  697. :loading="transSummaryLoading"
  698. :filters="transSummaryQuery"
  699. :filter-schema="transSummaryFilterSchema"
  700. :columns="transSummaryColumns"
  701. :data-source="transSummaryRows"
  702. :pagination="transSummaryPagination"
  703. :total-pages="transSummaryTotalPages"
  704. :page-size-options="pageSizeOptions"
  705. :show-table-setting="false"
  706. :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
  707. :can-fullscreen="true"
  708. @search="handleSearchTransSummary"
  709. @reset="handleResetTransSummary"
  710. @prev-page="handleTransSummaryPrevPage"
  711. @next-page="handleTransSummaryNextPage"
  712. @page-size-change="handleTransSummaryPageSizeChange"
  713. @page-change="handleTransSummaryPageChange"
  714. @sort-change="handleSortTransSummary"
  715. />
  716. <QueryTableModal
  717. v-model:open="transBankCardModalVisible"
  718. :title="transBankCardModalTitle"
  719. :loading="transBankCardLoading"
  720. :filters="transBankCardQuery"
  721. :filter-schema="transBankCardFilterSchema"
  722. :columns="transBankCardColumns"
  723. :data-source="transBankCardRows"
  724. :pagination="transBankCardPagination"
  725. :total-pages="transBankCardTotalPages"
  726. :page-size-options="pageSizeOptions"
  727. :show-table-setting="true"
  728. :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
  729. :can-fullscreen="true"
  730. @search="handleSearchTransBankCard"
  731. @reset="handleResetTransBankCard"
  732. @prev-page="handleTransBankCardPrevPage"
  733. @next-page="handleTransBankCardNextPage"
  734. @page-size-change="handleTransBankCardPageSizeChange"
  735. @page-change="handleTransBankCardPageChange"
  736. @sort-change="handleSortTransBankCard"
  737. />
  738. <TransRecordModal
  739. v-model:open="transRecordModalVisible"
  740. :z-index="transRecordModalZIndex"
  741. :base-query="transRecordBaseQuery"
  742. :hide-technical-id-columns="true"
  743. @jump="handleTransRecordJump"
  744. />
  745. <StationMapModal v-model:open="stationMapModalVisible" :stations="stationMapPoints" :title="stationMapModalTitle" />
  746. <PersonGroupManageModal ref="groupManageModalRef" v-model:open="groupModalVisible" />
  747. </div>
  748. </template>
  749. <script lang="ts" setup name="ViewsDmPortrait">
  750. import {
  751. computed,
  752. ref,
  753. onMounted,
  754. onActivated,
  755. onDeactivated,
  756. reactive,
  757. watch,
  758. nextTick,
  759. onBeforeUnmount,
  760. h,
  761. } from 'vue';
  762. import { useRoute, useRouter } from 'vue-router';
  763. import { Button, DatePicker, Input, Select, Modal, Form, Popover, Radio } from 'ant-design-vue';
  764. import {
  765. SearchOutlined,
  766. PlusOutlined,
  767. EditOutlined,
  768. FolderOpenOutlined,
  769. IdcardOutlined,
  770. TeamOutlined,
  771. PhoneOutlined,
  772. WalletOutlined,
  773. CalendarOutlined,
  774. CreditCardOutlined,
  775. ArrowUpOutlined,
  776. ArrowDownOutlined,
  777. MoneyCollectOutlined,
  778. EnvironmentOutlined,
  779. FileTextOutlined,
  780. UserOutlined,
  781. } from '@ant-design/icons-vue';
  782. import componentSetting from '@/core/settings/componentSetting';
  783. import { useDesign } from '@/core/hooks/web/useDesign';
  784. import { useGlobSetting } from '@/core/hooks/setting';
  785. import { useMessage } from '@/core/hooks/web/useMessage';
  786. import { getModalPopupContainer as resolveModalPopupContainer } from '@/core/utils';
  787. import { normalizeAvatarSrc } from '@/core/utils/avatar';
  788. import {
  789. COMPARE_OPERATOR_OPTIONS,
  790. DEFAULT_COMPARE_OPERATOR,
  791. normalizeCompareOperator,
  792. } from '@/core/utils/compareOperator';
  793. import { EmptyState } from '@/core/components/EmptyState';
  794. import { PersonAvatar } from '@/core/components/PersonAvatar';
  795. import PersonGroupManageModal from '@/person/components/PersonGroupManageModal.vue';
  796. import QueryTableModal from './components/QueryTableModal.vue';
  797. import IntimacyPanel from './components/IntimacyPanel.vue';
  798. import StationMapModal from './components/StationMapModal.vue';
  799. import CallRecordModal from '../../../call/views/components/CallRecordModal.vue';
  800. import TransRecordModal from '../../../trans/views/components/TransRecordModal.vue';
  801. import * as echarts from 'echarts';
  802. import type { CallRecordQuery } from '../../../call/api/types/query';
  803. import type { TransRecordQuery } from '../../../trans/api/types/query';
  804. import {
  805. getPersons,
  806. createPersonBasicInfo,
  807. updatePersonBasicInfo,
  808. deletePersonBasicInfo,
  809. } from '../../../person/api/personApi';
  810. import type {
  811. PersonBasicInfo,
  812. PersonBasicInfoDTO,
  813. CallDataProfileStatDTO,
  814. CallOftenTop10DTO,
  815. CallOpenInfo,
  816. CallStatStationDTO,
  817. TransBankCardInfoDTO,
  818. TransDataProfileStatDTO,
  819. TransOftenTop10DTO,
  820. TransTrendDTO,
  821. TransRecordSummaryDTO,
  822. } from '../../../person/api/types/dto';
  823. import {
  824. callStat,
  825. callOftenTop10,
  826. getCallOperPhoneInfo,
  827. callStatStation,
  828. getTransOtherName,
  829. transStat,
  830. transOfPersons,
  831. transAmountTrendYM,
  832. transAmountTrendY,
  833. getTransBankCardInfo,
  834. getTransRecordSummary,
  835. getCallRecordSummary,
  836. } from '../../../person/api/dpApi';
  837. import { getCallRecord } from '../../../call/api/callApi';
  838. import {
  839. CallOperPhoneInfoQuery,
  840. TransBankCardInfoQuery,
  841. TransRecordSummaryQuery,
  842. } from '../../../person/api/types/query';
  843. const { prefixCls } = useDesign('case-portrait');
  844. const { ctxAdminPath } = useGlobSetting();
  845. const { createMessage, createConfirm } = useMessage();
  846. const route = useRoute();
  847. const router = useRouter();
  848. const getModalPopupContainer = (triggerNode?: HTMLElement) => resolveModalPopupContainer(triggerNode);
  849. type PortraitPerson = PersonBasicInfo & {
  850. personNation?: string;
  851. personEducation?: string;
  852. personMarriage?: string;
  853. personHeight?: string | number;
  854. personResidence?: string;
  855. personWorkUnit?: string;
  856. personGroup?: string;
  857. };
  858. const personList = ref<PortraitPerson[]>([]);
  859. const selectedPersonId = ref<number | null>(null);
  860. const personModalVisible = ref(false);
  861. const callSummaryModalVisible = ref(false);
  862. const callSummaryModalZIndex = 1200;
  863. const callOperPhoneModalVisible = ref(false);
  864. const callRecordModalVisible = ref(false);
  865. const callRecordModalZIndex = 1210;
  866. const transSummaryModalVisible = ref(false);
  867. const transSummaryModalZIndex = 1200;
  868. const transBankCardModalVisible = ref(false);
  869. const transRecordModalVisible = ref(false);
  870. const transRecordModalZIndex = 1210;
  871. const stationMapModalVisible = ref(false);
  872. const groupModalVisible = ref(false);
  873. const groupManageModalRef = ref<InstanceType<typeof PersonGroupManageModal> | null>(null);
  874. const isEditMode = ref(false);
  875. const saving = ref(false);
  876. const editingPerson = ref<PersonBasicInfo | null>(null);
  877. const loadingProfile = ref(false);
  878. const stationMapPoints = computed<CallStatStationDTO[]>(() =>
  879. stationData.value.filter((item): item is CallStatStationDTO => {
  880. if (!item || typeof item !== 'object') return false;
  881. const longitude = Number(String(item.personStationLongitude || '').trim());
  882. const latitude = Number(String(item.personStationLatitude || '').trim());
  883. return Number.isFinite(longitude) && Number.isFinite(latitude);
  884. }),
  885. );
  886. const canViewStationMap = computed(() => stationMapPoints.value.length > 0);
  887. const stationMapModalTitle = computed(() => {
  888. const personName = selectedPerson.value?.personName?.trim();
  889. const suffix = stationMapPoints.value.length ? `(${stationMapPoints.value.length}个节点)` : '';
  890. return personName ? `${personName} - 通信基站${suffix}` : `通信基站${suffix}`;
  891. });
  892. const callStatData = ref<CallDataProfileStatDTO | null>(null);
  893. const transStatData = ref<TransDataProfileStatDTO | null>(null);
  894. const callOperPhoneModalTitle = ref('运营商手机号信息');
  895. const transBankCardModalTitle = ref('银行卡交易信息');
  896. const commTypeRatioData = ref<{ value: number; name: string; itemStyle?: { color: string } }[]>([]);
  897. const commTop10Data = ref<CallOftenTop10DTO[]>([]);
  898. const stationData = ref<CallStatStationDTO[]>([]);
  899. const stationDisplayLimit = 3;
  900. const tradeTop10Data = ref<TransOftenTop10DTO[]>([]);
  901. const tradeTrendData = ref<TransTrendDTO[]>([]);
  902. const tradeTrendChartRef = ref<HTMLElement | null>(null);
  903. const tradeTrendScrollRef = ref<HTMLElement | null>(null);
  904. const tradeRatioChartRef = ref<HTMLElement | null>(null);
  905. const tradeTopChartRef = ref<HTMLElement | null>(null);
  906. const commTypeChartRef = ref<HTMLElement | null>(null);
  907. const commTopChartRef = ref<HTMLElement | null>(null);
  908. let tradeTrendChart: echarts.ECharts | null = null;
  909. let tradeRatioChart: echarts.ECharts | null = null;
  910. let tradeTopChart: echarts.ECharts | null = null;
  911. let commTypeChart: echarts.ECharts | null = null;
  912. let commTopChart: echarts.ECharts | null = null;
  913. let chartResizeObserver: ResizeObserver | null = null;
  914. let chartResizeFrame: number | null = null;
  915. const observedChartElements = new Set<Element>();
  916. let tradeTrendSearchTimer: number | null = null;
  917. const trendLegendArr = ref([
  918. { isShow: true, name: '收入', color: '#12b76a' },
  919. { isShow: true, name: '支出', color: '#2a50ec' },
  920. ]);
  921. const commTopQuery = reactive({
  922. dateRange: undefined as [string, string] | undefined,
  923. });
  924. type TradeTopDimension = '交易金额' | '交易次数';
  925. const tradeTopQuery = reactive({
  926. indicator: 'personName',
  927. dateRange: undefined as [string, string] | undefined,
  928. dimension: '交易金额' as TradeTopDimension,
  929. });
  930. const tradeTrendQuery = reactive({
  931. otherName: '',
  932. dateRange: undefined as [string, string] | undefined,
  933. timeDimension: 'YEAR' as 'MONTH' | 'YEAR',
  934. });
  935. const tradeTrendOtherNameOptions = ref<{ label: string; value: string }[]>([]);
  936. const tradeTrendOtherNameLoading = ref(false);
  937. const tradeTrendOtherNameSearch = ref('');
  938. const tradeTrendOtherNamePage = ref(1);
  939. const tradeTrendOtherNameHasMore = ref(true);
  940. const tradeTrendOtherNameLoadedPerson = ref('');
  941. const avatarInputRef = ref<HTMLInputElement | null>(null);
  942. const avatarPreviewObjectUrl = ref('');
  943. let tradeTrendOtherNameSearchTimer: number | null = null;
  944. let tradeTrendOtherNameRequestId = 0;
  945. const personForm = reactive({
  946. personName: '',
  947. personCertNo: '',
  948. personBirth: '',
  949. personGender: '',
  950. personAge: '',
  951. personAddress: '',
  952. photograph: '',
  953. marry: 0,
  954. nation: '',
  955. nativePlace: '',
  956. householdRegistered: '',
  957. personTag: '',
  958. phoneList: [''],
  959. cardList: [''],
  960. });
  961. const phoneListErrors = ref<string[]>([]);
  962. const cardListErrors = ref<string[]>([]);
  963. const personNameError = ref('');
  964. const createCallSummaryQuery = () => ({
  965. keyword: '',
  966. otherName: '',
  967. otherPhone: '',
  968. callDirection: '',
  969. callType: '',
  970. startDate: '',
  971. endDate: '',
  972. orderKey: '',
  973. sort: 'DESC' as 'ASC' | 'DESC',
  974. });
  975. type CallSummaryQueryState = ReturnType<typeof createCallSummaryQuery>;
  976. const callSummaryLoading = ref(false);
  977. const callSummaryQuery = reactive<CallSummaryQueryState>(createCallSummaryQuery());
  978. const callSummaryBaseQuery = ref<CallSummaryQueryState>(createCallSummaryQuery());
  979. const callSummaryRows = ref<any[]>([]);
  980. const callSummaryPagination = reactive({
  981. page: 1,
  982. limit: componentSetting.table.defaultPageSize,
  983. total: 0,
  984. });
  985. const callSummaryTotalPages = computed(() => {
  986. if (!callSummaryPagination.total) return 1;
  987. return Math.max(1, Math.ceil(callSummaryPagination.total / callSummaryPagination.limit));
  988. });
  989. const createCallOperPhoneQuery = () => ({
  990. personName: '',
  991. operatorName: '',
  992. phoneNumber: '',
  993. orderKey: '',
  994. sort: 'DESC' as 'ASC' | 'DESC',
  995. phoneList: [] as string[],
  996. operatorId: '',
  997. });
  998. type CallOperPhoneQueryState = ReturnType<typeof createCallOperPhoneQuery>;
  999. const callOperPhoneLoading = ref(false);
  1000. const callOperPhoneQuery = reactive<CallOperPhoneQueryState>(createCallOperPhoneQuery());
  1001. const callOperPhoneBaseQuery = ref<CallOperPhoneQueryState>(createCallOperPhoneQuery());
  1002. const callOperPhoneAllRows = ref<any[]>([]);
  1003. const callOperPhoneRows = ref<any[]>([]);
  1004. const callOperPhonePagination = reactive({
  1005. page: 1,
  1006. limit: componentSetting.table.defaultPageSize,
  1007. total: 0,
  1008. });
  1009. const callOperPhoneTotalPages = computed(() => {
  1010. if (!callOperPhonePagination.total) return 1;
  1011. return Math.max(1, Math.ceil(callOperPhonePagination.total / callOperPhonePagination.limit));
  1012. });
  1013. const createTransBankCardQuery = () => ({
  1014. keyword: '',
  1015. orderKey: '',
  1016. sort: 'DESC' as 'ASC' | 'DESC',
  1017. bankName: '',
  1018. cardNoList: [] as string[],
  1019. });
  1020. type TransBankCardQueryState = ReturnType<typeof createTransBankCardQuery>;
  1021. const transBankCardLoading = ref(false);
  1022. const transBankCardQuery = reactive<TransBankCardQueryState>(createTransBankCardQuery());
  1023. const transBankCardBaseQuery = ref<TransBankCardQueryState>(createTransBankCardQuery());
  1024. const transBankCardRows = ref<any[]>([]);
  1025. const transBankCardPagination = reactive({
  1026. page: 1,
  1027. limit: componentSetting.table.defaultPageSize,
  1028. total: 0,
  1029. });
  1030. const transBankCardTotalPages = computed(() => {
  1031. if (!transBankCardPagination.total) return 1;
  1032. return Math.max(1, Math.ceil(transBankCardPagination.total / transBankCardPagination.limit));
  1033. });
  1034. const createTransSummaryQuery = () => ({
  1035. personCardNo: '',
  1036. otherName: '',
  1037. transAmount: '',
  1038. transAmountSymbol: DEFAULT_COMPARE_OPERATOR,
  1039. transCount: '',
  1040. transCountSymbol: DEFAULT_COMPARE_OPERATOR,
  1041. orderKey: '',
  1042. sort: 'DESC' as 'ASC' | 'DESC',
  1043. });
  1044. type TransSummaryQueryState = ReturnType<typeof createTransSummaryQuery>;
  1045. const transSummaryLoading = ref(false);
  1046. const transSummaryQuery = reactive<TransSummaryQueryState>(createTransSummaryQuery());
  1047. const transSummaryBaseQuery = ref<TransSummaryQueryState>(createTransSummaryQuery());
  1048. type TransRecordDrilldownQuery = Partial<TransRecordQuery> & Record<string, any>;
  1049. const transSummaryRows = ref<any[]>([]);
  1050. const callRecordBaseQuery = ref<Partial<CallRecordQuery>>({});
  1051. const transRecordBaseQuery = ref<TransRecordDrilldownQuery>({});
  1052. const transSummaryPagination = reactive({
  1053. page: 1,
  1054. limit: componentSetting.table.defaultPageSize,
  1055. total: 0,
  1056. });
  1057. const transSummaryTotalPages = computed(() => {
  1058. if (!transSummaryPagination.total) return 1;
  1059. return Math.max(1, Math.ceil(transSummaryPagination.total / transSummaryPagination.limit));
  1060. });
  1061. const pageSizeOptions = componentSetting.table.pageSizeOptions.map((value) => ({ label: value, value }));
  1062. const compareOperatorOptions = COMPARE_OPERATOR_OPTIONS;
  1063. const callSummaryFilterSchema = [
  1064. { field: 'otherPhone', label: '对方号码', type: 'input' as const, placeholder: '请输入对方号码', width: 260 },
  1065. { field: 'otherName', label: '对方姓名', type: 'input' as const, placeholder: '请输入对方姓名', width: 260 },
  1066. ];
  1067. const callSummaryColumns = [
  1068. { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 160, sorter: true },
  1069. { title: '本方号码', dataIndex: 'personPhone', key: 'personPhone', width: 180, sorter: true },
  1070. { title: '对方姓名', dataIndex: 'otherName', key: 'otherName', width: 160, sorter: true },
  1071. { title: '对方号码', dataIndex: 'otherPhone', key: 'otherPhone', width: 200, sorter: true },
  1072. { title: '通话次数', dataIndex: 'callCount', key: 'callCount', width: 120, sorter: true },
  1073. {
  1074. title: '操作',
  1075. dataIndex: 'action',
  1076. key: 'action',
  1077. width: 120,
  1078. fixed: 'right' as const,
  1079. align: 'center' as const,
  1080. customRender: ({ record }: any) =>
  1081. h(
  1082. Button,
  1083. {
  1084. type: 'link',
  1085. size: 'small',
  1086. onClick: () => handleViewCallSummaryDetail(record),
  1087. },
  1088. { default: () => '查看详情' },
  1089. ),
  1090. },
  1091. ];
  1092. const callOperPhoneFilterSchema = [
  1093. { field: 'phoneNumber', label: '手机号码', type: 'input' as const, placeholder: '请输入手机号码', width: 220 },
  1094. ];
  1095. const callOperPhoneColumns = [
  1096. { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 180, sorter: true },
  1097. { title: '手机号码', dataIndex: 'personPhone', key: 'personPhone', width: 180, sorter: true },
  1098. { title: '号码类型', dataIndex: 'phoneType', key: 'phoneType', width: 140, sorter: true },
  1099. { title: '运营商标识', dataIndex: 'operatorId', key: 'operatorId', width: 180, sorter: true },
  1100. { title: '用户类型', dataIndex: 'personType', key: 'personType', width: 140, sorter: true },
  1101. { title: '使用人证件号码', dataIndex: 'personCertNo', key: 'personCertNo', width: 220, sorter: true },
  1102. { title: '使用人证件地址', dataIndex: 'personCertAddress', key: 'personCertAddress', width: 260 },
  1103. { title: '通信地址', dataIndex: 'mailingAddress', key: 'mailingAddress', width: 260 },
  1104. { title: '号码归属省', dataIndex: 'province', key: 'province', width: 140, sorter: true },
  1105. { title: '号码归属市', dataIndex: 'city', key: 'city', width: 140, sorter: true },
  1106. { title: '号码状态', dataIndex: 'phoneStatus', key: 'phoneStatus', width: 140, sorter: true },
  1107. { title: '入网时间', dataIndex: 'activationDateTime', key: 'activationDateTime', width: 200, sorter: true },
  1108. { title: '销户时间', dataIndex: 'closingDateTime', key: 'closingDateTime', width: 200, sorter: true },
  1109. { title: '首次通话时间', dataIndex: 'firstCallDateTime', key: 'firstCallDateTime', width: 200, sorter: true },
  1110. {
  1111. title: '最后停机时间',
  1112. dataIndex: 'lastSuspensionDateTime',
  1113. key: 'lastSuspensionDateTime',
  1114. width: 200,
  1115. sorter: true,
  1116. },
  1117. {
  1118. title: '操作',
  1119. dataIndex: 'action',
  1120. key: 'action',
  1121. width: 120,
  1122. fixed: 'right' as const,
  1123. align: 'center' as const,
  1124. customRender: ({ record }: any) =>
  1125. h(
  1126. Button,
  1127. {
  1128. type: 'link',
  1129. size: 'small',
  1130. onClick: () => handleViewCallOperPhoneDetail(record),
  1131. },
  1132. { default: () => '查看详情' },
  1133. ),
  1134. },
  1135. ];
  1136. const transBankCardFilterSchema = [
  1137. { field: 'keyword', label: '卡号', type: 'input' as const, placeholder: '请输入卡号' },
  1138. ];
  1139. const transBankCardColumns = [
  1140. { title: '本方卡号', dataIndex: 'personCardNo', key: 'personCardNo', width: 200, sorter: true },
  1141. { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 140 },
  1142. { title: '所属银行', dataIndex: 'bankName', key: 'bankName', width: 180, sorter: true },
  1143. { title: '收入总金额', dataIndex: 'incomeTotalAmount', key: 'incomeTotalAmount', width: 140, sorter: true },
  1144. { title: '支出总金额', dataIndex: 'expenseTotalAmount', key: 'expenseTotalAmount', width: 140, sorter: true },
  1145. { title: '净额', dataIndex: 'netAmount', key: 'netAmount', width: 140, sorter: true },
  1146. { title: '交易总金额', dataIndex: 'transTotalAmount', key: 'transTotalAmount', width: 140, sorter: true },
  1147. { title: '交易笔数', dataIndex: 'transCount', key: 'transCount', width: 100, sorter: true },
  1148. { title: '账户余额', dataIndex: 'totalBalance', key: 'totalBalance', width: 140, sorter: true },
  1149. { title: '账户状态', dataIndex: 'accountStatus', key: 'accountStatus', width: 100, sorter: true },
  1150. { title: '开户日期', dataIndex: 'openingDate', key: 'openingDate', width: 140, sorter: true },
  1151. { title: '销户日期', dataIndex: 'closeAccountDate', key: 'closeAccountDate', width: 140, sorter: true },
  1152. {
  1153. title: '操作',
  1154. dataIndex: 'action',
  1155. key: 'action',
  1156. width: 120,
  1157. fixed: 'right' as const,
  1158. align: 'center' as const,
  1159. customRender: ({ record }: any) =>
  1160. h(
  1161. Button,
  1162. {
  1163. type: 'link',
  1164. size: 'small',
  1165. onClick: () => handleViewTransBankCardDetail(record),
  1166. },
  1167. { default: () => '查看详情' },
  1168. ),
  1169. },
  1170. ];
  1171. const transSummaryFilterSchema = [
  1172. {
  1173. field: 'personCardNo',
  1174. label: '银行卡(账号)',
  1175. type: 'input' as const,
  1176. placeholder: '请输入银行卡(账号)',
  1177. width: 260,
  1178. },
  1179. {
  1180. field: 'otherName',
  1181. label: '对方名称',
  1182. type: 'input' as const,
  1183. placeholder: '请输入对方名称',
  1184. width: 260,
  1185. },
  1186. {
  1187. field: 'transAmount',
  1188. label: '交易总金额',
  1189. type: 'compare-input' as const,
  1190. operatorField: 'transAmountSymbol',
  1191. options: compareOperatorOptions,
  1192. operatorWidth: 72,
  1193. inputWidth: 180,
  1194. inputMaxWidth: 180,
  1195. placeholder: '请输入交易总金额',
  1196. },
  1197. {
  1198. field: 'transCount',
  1199. label: '交易次数',
  1200. type: 'compare-input' as const,
  1201. operatorField: 'transCountSymbol',
  1202. options: compareOperatorOptions,
  1203. operatorWidth: 72,
  1204. inputWidth: 180,
  1205. inputMaxWidth: 180,
  1206. placeholder: '请输入交易次数',
  1207. },
  1208. ];
  1209. const transSummaryColumns = [
  1210. { title: '本方卡号', dataIndex: 'personCardNo', key: 'personCardNo', width: 180, sorter: true },
  1211. { title: '本方姓名', dataIndex: 'personName', key: 'personName', width: 160, sorter: true },
  1212. { title: '对方卡号', dataIndex: 'otherCardNo', key: 'otherCardNo', width: 180, sorter: true },
  1213. { title: '对方名称', dataIndex: 'otherName', key: 'otherName', width: 160, sorter: true },
  1214. { title: '所属银行', dataIndex: 'bankName', key: 'bankName', width: 180, sorter: true },
  1215. { title: '交易次数', dataIndex: 'transCount', key: 'transCount', width: 120, sorter: true },
  1216. { title: '交易总金额', dataIndex: 'transTotalAmount', key: 'transTotalAmount', width: 140, sorter: true },
  1217. { title: '收入总金额', dataIndex: 'incomeTotalAmount', key: 'incomeTotalAmount', width: 180, sorter: true },
  1218. { title: '支出总金额', dataIndex: 'expenseTotalAmount', key: 'expenseTotalAmount', width: 180, sorter: true },
  1219. {
  1220. title: '操作',
  1221. dataIndex: 'action',
  1222. key: 'action',
  1223. width: 120,
  1224. fixed: 'right' as const,
  1225. align: 'center' as const,
  1226. customRender: ({ record }: any) =>
  1227. h(
  1228. Button,
  1229. {
  1230. type: 'link',
  1231. size: 'small',
  1232. onClick: () => handleViewTransSummaryDetail(record),
  1233. },
  1234. { default: () => '查看详情' },
  1235. ),
  1236. },
  1237. ];
  1238. const toPersonName = (person: PersonBasicInfo) => person.personName ?? '-';
  1239. const getSelectedPersonPhones = (person = selectedPerson.value) => {
  1240. const phones = (person?.phoneList || []).map((item) => String(item.personNo || '').trim()).filter(Boolean);
  1241. return phones.length ? Array.from(new Set(phones)) : undefined;
  1242. };
  1243. const toLibNoList = (text: string, libType: 2 | 3) => {
  1244. return text
  1245. .split(',')
  1246. .map((item) => item.trim())
  1247. .filter(Boolean)
  1248. .map((personNo) => ({ personNo, libType }));
  1249. };
  1250. const normalizePersonIdCard = (value?: string | null) =>
  1251. String(value ?? '')
  1252. .trim()
  1253. .replace(/\s/g, '')
  1254. .toUpperCase();
  1255. const isLeapYear = (year: number) => (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  1256. const isValidDateParts = (year: number, month: number, day: number) => {
  1257. if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day)) return false;
  1258. if (month < 1 || month > 12 || day < 1) return false;
  1259. const dayList = [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  1260. return day <= dayList[month - 1];
  1261. };
  1262. const getPersonIdCardCheckCode = (body: string) => {
  1263. const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
  1264. const codes = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];
  1265. const total = body.split('').reduce((sum, char, index) => sum + Number(char) * weights[index], 0);
  1266. return codes[total % 11];
  1267. };
  1268. const parsePersonProfileFromIdCard = (value?: string | null) => {
  1269. const certNo = normalizePersonIdCard(value);
  1270. if (!certNo) return null;
  1271. let birthText = '';
  1272. let gender = '';
  1273. if (/^\d{15}$/u.test(certNo)) {
  1274. const year = Number(`19${certNo.slice(6, 8)}`);
  1275. const month = Number(certNo.slice(8, 10));
  1276. const day = Number(certNo.slice(10, 12));
  1277. if (!isValidDateParts(year, month, day)) return null;
  1278. birthText = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
  1279. gender = Number(certNo[14]) % 2 === 1 ? '男' : '女';
  1280. } else if (/^\d{17}[\dX]$/u.test(certNo)) {
  1281. const year = Number(certNo.slice(6, 10));
  1282. const month = Number(certNo.slice(10, 12));
  1283. const day = Number(certNo.slice(12, 14));
  1284. if (!isValidDateParts(year, month, day)) return null;
  1285. if (getPersonIdCardCheckCode(certNo.slice(0, 17)) !== certNo[17]) return null;
  1286. birthText = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
  1287. gender = Number(certNo[16]) % 2 === 1 ? '男' : '女';
  1288. } else {
  1289. return null;
  1290. }
  1291. const [yearText, monthText, dayText] = birthText.split('-');
  1292. const birthDate = new Date(Number(yearText), Number(monthText) - 1, Number(dayText));
  1293. if (Number.isNaN(birthDate.getTime())) return null;
  1294. const now = new Date();
  1295. let age = now.getFullYear() - birthDate.getFullYear();
  1296. const currentMonthDay = `${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`;
  1297. if (`${monthText}-${dayText}` > currentMonthDay) {
  1298. age -= 1;
  1299. }
  1300. age = Math.max(0, age);
  1301. return {
  1302. personBirth: birthText,
  1303. personGender: gender,
  1304. personAge: String(age),
  1305. };
  1306. };
  1307. const autofillPersonProfileByIdCard = (certNo?: string | null) => {
  1308. const parsed = parsePersonProfileFromIdCard(certNo);
  1309. if (!parsed) return;
  1310. personForm.personBirth = parsed.personBirth;
  1311. personForm.personGender = parsed.personGender;
  1312. personForm.personAge = parsed.personAge;
  1313. };
  1314. const resetPersonForm = () => {
  1315. revokeAvatarPreviewObjectUrl();
  1316. personForm.personName = '';
  1317. personForm.personCertNo = '';
  1318. personForm.personBirth = '';
  1319. personForm.personGender = '';
  1320. personForm.personAge = '';
  1321. personForm.personAddress = '';
  1322. updatePersonPhotograph('');
  1323. personForm.marry = 0;
  1324. personForm.nation = '';
  1325. personForm.nativePlace = '';
  1326. personForm.householdRegistered = '';
  1327. personForm.personTag = '';
  1328. personForm.phoneList = [''];
  1329. personForm.cardList = [''];
  1330. phoneListErrors.value = [];
  1331. cardListErrors.value = [];
  1332. personNameError.value = '';
  1333. };
  1334. const fillPersonForm = (person: PersonBasicInfo) => {
  1335. revokeAvatarPreviewObjectUrl();
  1336. personForm.personName = person.personName ?? '';
  1337. personForm.personCertNo = person.personCertNo ?? '';
  1338. personForm.personBirth = person.personBirth ?? '';
  1339. personForm.personGender = person.personGender ?? '';
  1340. personForm.personAge = person.personAge !== undefined && person.personAge !== null ? String(person.personAge) : '';
  1341. personForm.personAddress = person.personAddress ?? '';
  1342. updatePersonPhotograph(person.photograph);
  1343. personForm.marry = person.marry ?? 0;
  1344. personForm.nation = person.nation ?? '';
  1345. personForm.nativePlace = person.nativePlace ?? '';
  1346. personForm.householdRegistered = person.householdRegistered ?? '';
  1347. personForm.personTag = person.personTag ?? '';
  1348. const phoneArr = (person.phoneList || []).map((item) => item.personNo ?? '').filter(Boolean);
  1349. personForm.phoneList = phoneArr.length > 0 ? phoneArr : [''];
  1350. const cardArr = (person.cardList || []).map((item) => item.personNo ?? '').filter(Boolean);
  1351. personForm.cardList = cardArr.length > 0 ? cardArr : [''];
  1352. if (personForm.personCertNo && (!personForm.personBirth || !personForm.personGender || !personForm.personAge)) {
  1353. autofillPersonProfileByIdCard(personForm.personCertNo);
  1354. }
  1355. phoneListErrors.value = [];
  1356. cardListErrors.value = [];
  1357. personNameError.value = '';
  1358. };
  1359. watch(
  1360. () => personForm.personCertNo,
  1361. (value) => {
  1362. const certNo = normalizePersonIdCard(value);
  1363. if (!certNo) return;
  1364. autofillPersonProfileByIdCard(certNo);
  1365. },
  1366. );
  1367. const resetRightPanelData = () => {
  1368. callStatData.value = null;
  1369. transStatData.value = null;
  1370. commTypeRatioData.value = [];
  1371. commTop10Data.value = [];
  1372. stationData.value = [];
  1373. tradeTop10Data.value = [];
  1374. tradeTrendData.value = [];
  1375. };
  1376. const normalizeObjectList = <T extends Record<string, any>>(source: unknown): T[] => {
  1377. if (!Array.isArray(source)) return [];
  1378. return source.filter((item): item is T => !!item && typeof item === 'object');
  1379. };
  1380. const normalizeTrendRows = (resp: any): TransTrendDTO[] => {
  1381. if (Array.isArray(resp)) return normalizeObjectList<TransTrendDTO>(resp);
  1382. if (Array.isArray(resp?.records)) return normalizeObjectList<TransTrendDTO>(resp.records);
  1383. if (Array.isArray(resp?.data)) return normalizeObjectList<TransTrendDTO>(resp.data);
  1384. return [];
  1385. };
  1386. const loadTradeTrendData = async (personName: string) => {
  1387. const startDate = tradeTrendQuery.dateRange?.[0];
  1388. const endDate = tradeTrendQuery.dateRange?.[1];
  1389. const otherName = String(tradeTrendQuery.otherName || '').trim();
  1390. const payload = {
  1391. personName,
  1392. otherName: otherName || undefined,
  1393. startDate: startDate || undefined,
  1394. endDate: endDate || undefined,
  1395. } as any;
  1396. const resp =
  1397. tradeTrendQuery.timeDimension === 'YEAR' ? await transAmountTrendY(payload) : await transAmountTrendYM(payload);
  1398. return normalizeTrendRows(resp);
  1399. };
  1400. const normalizeStringList = (resp: any) => {
  1401. const candidates = [resp, resp?.records, resp?.list, resp?.data, resp?.data?.records, resp?.data?.list];
  1402. for (const item of candidates) {
  1403. if (Array.isArray(item)) {
  1404. return item.map((value) => String(value || '').trim()).filter(Boolean);
  1405. }
  1406. }
  1407. return [] as string[];
  1408. };
  1409. const setTradeTrendOtherNameOptions = (names: string[], replace = false) => {
  1410. const optionMap = new Map<string, { label: string; value: string }>();
  1411. const appendOption = (value: string) => {
  1412. const normalized = String(value || '').trim();
  1413. if (!normalized) return;
  1414. optionMap.set(normalized, { label: normalized, value: normalized });
  1415. };
  1416. if (!replace) {
  1417. tradeTrendOtherNameOptions.value.forEach((item) => appendOption(item.value));
  1418. }
  1419. names.forEach((item) => appendOption(item));
  1420. const currentValue = String(tradeTrendQuery.otherName || '').trim();
  1421. if (currentValue) {
  1422. appendOption(currentValue);
  1423. }
  1424. tradeTrendOtherNameOptions.value = Array.from(optionMap.values());
  1425. };
  1426. const resetTradeTrendOtherNameState = () => {
  1427. tradeTrendOtherNameRequestId += 1;
  1428. if (tradeTrendOtherNameSearchTimer !== null) {
  1429. window.clearTimeout(tradeTrendOtherNameSearchTimer);
  1430. tradeTrendOtherNameSearchTimer = null;
  1431. }
  1432. tradeTrendOtherNameOptions.value = [];
  1433. tradeTrendOtherNameSearch.value = '';
  1434. tradeTrendOtherNamePage.value = 1;
  1435. tradeTrendOtherNameHasMore.value = true;
  1436. tradeTrendOtherNameLoadedPerson.value = '';
  1437. tradeTrendOtherNameLoading.value = false;
  1438. };
  1439. const resetProfilePanelQueries = () => {
  1440. commTopQuery.dateRange = undefined;
  1441. tradeTopQuery.indicator = 'personName';
  1442. tradeTopQuery.dateRange = undefined;
  1443. tradeTopQuery.dimension = '交易金额';
  1444. tradeTrendQuery.otherName = '';
  1445. tradeTrendQuery.dateRange = undefined;
  1446. tradeTrendQuery.timeDimension = 'YEAR';
  1447. trendLegendArr.value = [
  1448. { isShow: true, name: '收入', color: '#12b76a' },
  1449. { isShow: true, name: '支出', color: '#2a50ec' },
  1450. ];
  1451. resetTradeTrendOtherNameState();
  1452. };
  1453. const loadTradeTrendOtherNameOptions = async (options?: { reset?: boolean; search?: string }) => {
  1454. const { reset = false, search = tradeTrendOtherNameSearch.value } = options || {};
  1455. const personName = selectedPerson.value?.personName?.trim();
  1456. if (!personName) {
  1457. resetTradeTrendOtherNameState();
  1458. return;
  1459. }
  1460. if (tradeTrendOtherNameLoading.value) return;
  1461. if (!reset && !tradeTrendOtherNameHasMore.value) return;
  1462. const page = reset ? 1 : tradeTrendOtherNamePage.value;
  1463. const currentRequestId = ++tradeTrendOtherNameRequestId;
  1464. tradeTrendOtherNameLoading.value = true;
  1465. try {
  1466. const resp = await getTransOtherName({
  1467. personName,
  1468. search: search || undefined,
  1469. page,
  1470. limit: 20,
  1471. } as any);
  1472. if (currentRequestId !== tradeTrendOtherNameRequestId) return;
  1473. const list = normalizeStringList(resp);
  1474. const total = Number((resp as any)?.total ?? (resp as any)?.data?.total ?? 0);
  1475. const prevSize = reset ? 0 : tradeTrendOtherNameOptions.value.length;
  1476. setTradeTrendOtherNameOptions(list, reset);
  1477. tradeTrendOtherNamePage.value = page + 1;
  1478. tradeTrendOtherNameHasMore.value =
  1479. Number.isFinite(total) && total > 0 ? tradeTrendOtherNameOptions.value.length < total : list.length >= 20;
  1480. if (!reset && tradeTrendOtherNameOptions.value.length <= prevSize) {
  1481. tradeTrendOtherNameHasMore.value = false;
  1482. }
  1483. tradeTrendOtherNameLoadedPerson.value = personName;
  1484. } catch (error) {
  1485. if (currentRequestId !== tradeTrendOtherNameRequestId) return;
  1486. console.error('获取交易趋势对方名称失败', error);
  1487. if (reset) {
  1488. setTradeTrendOtherNameOptions([], true);
  1489. }
  1490. tradeTrendOtherNameHasMore.value = false;
  1491. } finally {
  1492. if (currentRequestId === tradeTrendOtherNameRequestId) {
  1493. tradeTrendOtherNameLoading.value = false;
  1494. }
  1495. }
  1496. };
  1497. const normalizeCallTopRows = (resp: any): CallOftenTop10DTO[] => {
  1498. if (Array.isArray(resp)) return normalizeObjectList<CallOftenTop10DTO>(resp).slice(0, 10);
  1499. if (Array.isArray(resp?.records)) return normalizeObjectList<CallOftenTop10DTO>(resp.records).slice(0, 10);
  1500. if (Array.isArray(resp?.data)) return normalizeObjectList<CallOftenTop10DTO>(resp.data).slice(0, 10);
  1501. return [];
  1502. };
  1503. const buildCallTopRowsFromRecords = (records: any[]): CallOftenTop10DTO[] => {
  1504. const counter = new Map<string, { otherName?: string; otherPhone?: string; callCount: number }>();
  1505. records.forEach((item) => {
  1506. const otherPhone = item?.otherPhone || '';
  1507. const otherName = item?.otherName || '';
  1508. const key = `${otherPhone}__${otherName}`;
  1509. const current = counter.get(key) || {
  1510. otherName,
  1511. otherPhone,
  1512. callCount: 0,
  1513. };
  1514. current.callCount += 1;
  1515. counter.set(key, current);
  1516. });
  1517. return Array.from(counter.values())
  1518. .sort((a, b) => b.callCount - a.callCount)
  1519. .slice(0, 10)
  1520. .map((item) => ({
  1521. otherName: item.otherName,
  1522. otherPhone: item.otherPhone,
  1523. callCount: item.callCount,
  1524. }));
  1525. };
  1526. const loadCommTopData = async (personName: string) => {
  1527. const startDate = commTopQuery.dateRange?.[0];
  1528. const endDate = commTopQuery.dateRange?.[1];
  1529. if (!startDate && !endDate) {
  1530. const resp = await callOftenTop10({ personName });
  1531. return normalizeCallTopRows(resp);
  1532. }
  1533. const resp = (await getCallRecord({
  1534. page: 1,
  1535. limit: 50000,
  1536. personName,
  1537. personPhones: getSelectedPersonPhones(),
  1538. startDate: startDate || undefined,
  1539. endDate: endDate || undefined,
  1540. } as any)) as any;
  1541. const records = Array.isArray(resp?.records)
  1542. ? resp.records
  1543. : Array.isArray(resp?.data)
  1544. ? resp.data
  1545. : Array.isArray(resp)
  1546. ? resp
  1547. : [];
  1548. return buildCallTopRowsFromRecords(records);
  1549. };
  1550. const normalizeTradeTopRows = (resp: any): TransOftenTop10DTO[] => {
  1551. if (Array.isArray(resp)) return normalizeObjectList<TransOftenTop10DTO>(resp);
  1552. if (Array.isArray(resp?.records)) return normalizeObjectList<TransOftenTop10DTO>(resp.records);
  1553. if (Array.isArray(resp?.data)) return normalizeObjectList<TransOftenTop10DTO>(resp.data);
  1554. return [];
  1555. };
  1556. const loadTradeTopData = async (personName: string) => {
  1557. const startDate = tradeTopQuery.dateRange?.[0];
  1558. const endDate = tradeTopQuery.dateRange?.[1];
  1559. const resp = await transOfPersons({
  1560. personName,
  1561. dimension: tradeTopQuery.dimension,
  1562. indicator: tradeTopQuery.indicator,
  1563. startDate: startDate || undefined,
  1564. endDate: endDate || undefined,
  1565. page: 1,
  1566. limit: 10,
  1567. });
  1568. return normalizeTradeTopRows(resp);
  1569. };
  1570. const buildCommTypeRatioData = (callStatInfo?: CallDataProfileStatDTO | null) => {
  1571. const callTypeColorMap: Record<string, string> = {
  1572. 主叫: '#2a50ec',
  1573. 被叫: '#2ec8d9',
  1574. 其他: '#f6b659',
  1575. };
  1576. const callTypeOrder = ['被叫', '主叫', '其他'];
  1577. const ratioEntries = Object.entries(callStatInfo?.callRatioMap || {}).sort(([nameA], [nameB]) => {
  1578. const indexA = callTypeOrder.indexOf(nameA);
  1579. const indexB = callTypeOrder.indexOf(nameB);
  1580. return (indexA === -1 ? 99 : indexA) - (indexB === -1 ? 99 : indexB);
  1581. });
  1582. if (ratioEntries.length) {
  1583. const normalizedRatioEntries = ratioEntries
  1584. .map(([name, value]) => {
  1585. const rawValue = typeof value === 'string' ? value.replace('%', '') : value;
  1586. const ratioValue = Number(rawValue || 0);
  1587. return {
  1588. name,
  1589. value: Number.isFinite(ratioValue) ? ratioValue : 0,
  1590. itemStyle: {
  1591. color: callTypeColorMap[name] || '#5b8ff9',
  1592. },
  1593. };
  1594. })
  1595. .filter((item) => String(item.name || '').trim() && item.value > 0);
  1596. if (normalizedRatioEntries.length) {
  1597. return normalizedRatioEntries;
  1598. }
  1599. }
  1600. const countEntries = [
  1601. { name: '被叫', count: Number(callStatInfo?.inCount || 0) },
  1602. { name: '主叫', count: Number(callStatInfo?.outCount || 0) },
  1603. { name: '其他', count: Number(callStatInfo?.otherCount || 0) },
  1604. ];
  1605. const total = countEntries.reduce((sum, item) => sum + (Number.isFinite(item.count) ? item.count : 0), 0);
  1606. if (!total) return [];
  1607. return countEntries.map(({ name, count }) => ({
  1608. name,
  1609. value: Number((((Number.isFinite(count) ? count : 0) / total) * 100).toFixed(2)),
  1610. itemStyle: {
  1611. color: callTypeColorMap[name] || '#5b8ff9',
  1612. },
  1613. }));
  1614. };
  1615. const normalizeStationList = (resp: any): CallStatStationDTO[] => {
  1616. if (Array.isArray(resp)) return normalizeObjectList<CallStatStationDTO>(resp);
  1617. if (Array.isArray(resp?.data)) return normalizeObjectList<CallStatStationDTO>(resp.data);
  1618. if (Array.isArray(resp?.list)) return normalizeObjectList<CallStatStationDTO>(resp.list);
  1619. if (Array.isArray(resp?.records)) return normalizeObjectList<CallStatStationDTO>(resp.records);
  1620. if (Array.isArray(resp?.data?.list)) return normalizeObjectList<CallStatStationDTO>(resp.data.list);
  1621. if (Array.isArray(resp?.data?.records)) return normalizeObjectList<CallStatStationDTO>(resp.data.records);
  1622. return [];
  1623. };
  1624. const fetchProfileData = async () => {
  1625. const personName = selectedPerson.value?.personName;
  1626. if (!personName) {
  1627. resetRightPanelData();
  1628. return;
  1629. }
  1630. loadingProfile.value = true;
  1631. try {
  1632. const [callStatResp, transStatResp, callTop10Resp, callStationResp, transTop10Resp, transTrendResp] =
  1633. await Promise.all([
  1634. callStat(personName),
  1635. transStat(personName),
  1636. loadCommTopData(personName),
  1637. callStatStation({ personName }),
  1638. loadTradeTopData(personName),
  1639. loadTradeTrendData(personName),
  1640. ]);
  1641. callStatData.value = callStatResp || null;
  1642. transStatData.value = transStatResp || null;
  1643. commTypeRatioData.value = buildCommTypeRatioData(callStatResp);
  1644. commTop10Data.value = normalizeCallTopRows(callTop10Resp);
  1645. stationData.value = normalizeStationList(callStationResp);
  1646. tradeTop10Data.value = normalizeTradeTopRows(transTop10Resp);
  1647. tradeTrendData.value = normalizeTrendRows(transTrendResp);
  1648. } catch (error) {
  1649. console.error('获取数据画像右侧数据失败', error);
  1650. resetRightPanelData();
  1651. } finally {
  1652. loadingProfile.value = false;
  1653. }
  1654. };
  1655. function selectPerson(id: number) {
  1656. if (selectedPersonId.value === id) return;
  1657. resetProfilePanelQueries();
  1658. selectedPersonId.value = id;
  1659. fetchProfileData();
  1660. }
  1661. const findPortraitPersonIndex = () => {
  1662. const routePersonName = String(route.query.personName || '').trim();
  1663. const routePersonCertNo = String(route.query.personCertNo || '').trim();
  1664. if (!routePersonName && !routePersonCertNo) return -1;
  1665. return personList.value.findIndex((person) => {
  1666. const currentName = String(person.personName || '').trim();
  1667. const currentCertNo = String(person.personCertNo || '').trim();
  1668. if (routePersonCertNo && currentCertNo && currentCertNo === routePersonCertNo) return true;
  1669. if (routePersonName && currentName && currentName === routePersonName) return true;
  1670. return false;
  1671. });
  1672. };
  1673. const syncSelectedPersonFromRoute = async () => {
  1674. const targetIndex = findPortraitPersonIndex();
  1675. if (targetIndex < 0) return false;
  1676. if (selectedPersonId.value === targetIndex) return true;
  1677. resetProfilePanelQueries();
  1678. selectedPersonId.value = targetIndex;
  1679. await fetchProfileData();
  1680. return true;
  1681. };
  1682. const fetchPersons = async () => {
  1683. try {
  1684. const data = await getPersons();
  1685. personList.value = Array.isArray(data) ? data : [];
  1686. if (!personList.value.length) {
  1687. selectedPersonId.value = null;
  1688. return;
  1689. }
  1690. if (await syncSelectedPersonFromRoute()) {
  1691. return;
  1692. }
  1693. if (selectedPersonId.value === null) {
  1694. resetProfilePanelQueries();
  1695. selectedPersonId.value = 0;
  1696. await fetchProfileData();
  1697. }
  1698. } catch (error) {
  1699. console.error('获取人员信息失败', error);
  1700. personList.value = [];
  1701. }
  1702. };
  1703. const openCreateModal = () => {
  1704. isEditMode.value = false;
  1705. editingPerson.value = null;
  1706. resetPersonForm();
  1707. personModalVisible.value = true;
  1708. };
  1709. const revokeAvatarPreviewObjectUrl = () => {
  1710. if (!avatarPreviewObjectUrl.value) return;
  1711. URL.revokeObjectURL(avatarPreviewObjectUrl.value);
  1712. avatarPreviewObjectUrl.value = '';
  1713. };
  1714. const updatePersonPhotograph = (source?: string | null) => {
  1715. personForm.photograph = String(source || '').trim();
  1716. };
  1717. const personAvatarPreviewSrc = computed(
  1718. () => avatarPreviewObjectUrl.value || String(personForm.photograph || '').trim(),
  1719. );
  1720. const stripLocalFileProtocol = (value: string) => {
  1721. const source = String(value || '').trim();
  1722. if (!/^file:\/\//i.test(source)) return source;
  1723. const decoded = decodeURI(source.replace(/^file:\/\//i, ''));
  1724. if (/^\/[a-zA-Z]:/.test(decoded)) {
  1725. return decoded.slice(1);
  1726. }
  1727. return decoded;
  1728. };
  1729. const resolveLocalAvatarPath = (file: File) => {
  1730. const electronApi = window.electron;
  1731. const localPath =
  1732. electronApi?.getPathForFile?.(file) || String((file as File & { path?: string }).path || '').trim();
  1733. if (localPath) {
  1734. return stripLocalFileProtocol(localPath);
  1735. }
  1736. return '';
  1737. };
  1738. const updateAvatarPreviewFromFile = (file: File) => {
  1739. revokeAvatarPreviewObjectUrl();
  1740. avatarPreviewObjectUrl.value = URL.createObjectURL(file);
  1741. };
  1742. const openAvatarFileDialog = () => {
  1743. avatarInputRef.value?.click();
  1744. };
  1745. const clearAvatarSelection = () => {
  1746. revokeAvatarPreviewObjectUrl();
  1747. updatePersonPhotograph('');
  1748. if (avatarInputRef.value) {
  1749. avatarInputRef.value.value = '';
  1750. }
  1751. };
  1752. const handleAvatarFileChange = (event: Event) => {
  1753. const input = event.target as HTMLInputElement | null;
  1754. const file = input?.files?.[0];
  1755. if (!file) return;
  1756. if (file.type && !file.type.startsWith('image/')) {
  1757. createMessage.warning('请选择图片文件');
  1758. input.value = '';
  1759. return;
  1760. }
  1761. updateAvatarPreviewFromFile(file);
  1762. updatePersonPhotograph(resolveLocalAvatarPath(file) || avatarPreviewObjectUrl.value);
  1763. input.value = '';
  1764. };
  1765. const openEditModal = (person: PersonBasicInfo) => {
  1766. isEditMode.value = true;
  1767. editingPerson.value = person;
  1768. fillPersonForm(person);
  1769. personModalVisible.value = true;
  1770. };
  1771. const handleEditBasicInfo = () => {
  1772. if (!selectedPerson.value) {
  1773. createMessage.warning('请先选择对象');
  1774. return;
  1775. }
  1776. openEditModal(selectedPerson.value);
  1777. };
  1778. interface JumpToAnalysisPayload {
  1779. personName: string;
  1780. otherName: string;
  1781. behaviorType: string;
  1782. detailRecord: Record<string, unknown>;
  1783. path: string;
  1784. query?: Record<string, string>;
  1785. }
  1786. const handleJumpToAnalysis = async (payload: JumpToAnalysisPayload) => {
  1787. if (!payload.path) {
  1788. createMessage.warning('当前行为暂未配置分析页跳转。');
  1789. return;
  1790. }
  1791. const query: Record<string, string> = {
  1792. ...(payload.query || {}),
  1793. };
  1794. const personName = String(payload.personName || '').trim();
  1795. const otherName = String(payload.otherName || '').trim();
  1796. if (personName) {
  1797. query.personName = personName;
  1798. if (!query.personNames) {
  1799. query.personNames = personName;
  1800. }
  1801. }
  1802. if (otherName) {
  1803. query.otherName = otherName;
  1804. }
  1805. query.jumpAt = String(Date.now());
  1806. createMessage.info(`正在跳转至${payload.behaviorType}分析页面...`);
  1807. await router.push({
  1808. path: payload.path,
  1809. query,
  1810. });
  1811. };
  1812. const closePersonModal = () => {
  1813. personModalVisible.value = false;
  1814. };
  1815. const openGroupModal = () => {
  1816. groupModalVisible.value = true;
  1817. };
  1818. const openGroupModalFromRoute = async () => {
  1819. if (route.query.openGroupModal !== '1') return;
  1820. groupModalVisible.value = true;
  1821. if (route.query.openCreateGroupModal === '1') {
  1822. await nextTick();
  1823. groupManageModalRef.value?.startCreateGroup();
  1824. }
  1825. const { openGroupModal: _openGroupModal, openCreateGroupModal: _openCreateGroupModal, ...query } = route.query;
  1826. await router.replace({ path: route.path, query });
  1827. };
  1828. watch(
  1829. () => [route.query.openGroupModal, route.query.openCreateGroupModal],
  1830. () => {
  1831. void openGroupModalFromRoute();
  1832. },
  1833. );
  1834. const resolvePageTotal = (resp: any, records: unknown[] = []) => {
  1835. const total = Number(resp?.total ?? resp?.count ?? resp?.page?.total ?? resp?.page?.count);
  1836. if (Number.isFinite(total) && total >= 0) {
  1837. return total;
  1838. }
  1839. return records.length;
  1840. };
  1841. const loadCallSummary = async () => {
  1842. const person = selectedPerson.value;
  1843. if (!person?.personName) {
  1844. callSummaryRows.value = [];
  1845. callSummaryPagination.total = 0;
  1846. return;
  1847. }
  1848. const personPhones = getSelectedPersonPhones(person);
  1849. callSummaryLoading.value = true;
  1850. try {
  1851. const resp = await getCallRecordSummary(
  1852. Object.assign(callSummaryQuery, {
  1853. page: callSummaryPagination.page,
  1854. limit: callSummaryPagination.limit,
  1855. personName: person.personName,
  1856. personPhones,
  1857. keyword: callSummaryQuery.keyword || undefined,
  1858. otherName: callSummaryQuery.otherName || undefined,
  1859. otherPhones: callSummaryQuery.otherPhone ? [callSummaryQuery.otherPhone] : undefined,
  1860. callDirection: callSummaryQuery.callDirection || undefined,
  1861. callType: callSummaryQuery.callType || undefined,
  1862. startDate: callSummaryQuery.startDate || undefined,
  1863. endDate: callSummaryQuery.endDate || undefined,
  1864. orderKey: callSummaryQuery.orderKey || undefined,
  1865. sort: callSummaryQuery.sort || undefined,
  1866. }) as any,
  1867. );
  1868. const records = Array.isArray(resp?.records) ? resp.records : Array.isArray(resp) ? resp : [];
  1869. callSummaryRows.value = records.map((item: any, index: number) => ({
  1870. rowKey: `${item.personName || ''}-${item.personPhone || ''}-${item.otherPhone || ''}-${index}`,
  1871. personName: fallbackValue(item.personName || person.personName),
  1872. personPhone: fallbackValue(item.personPhone),
  1873. otherName: fallbackValue(item.otherName),
  1874. otherPhone: fallbackValue(item.otherPhone),
  1875. callCount: fallbackValue(item.callCount),
  1876. }));
  1877. callSummaryPagination.total = resolvePageTotal(resp, records);
  1878. } catch (error) {
  1879. console.error('查询通话记录列表失败', error);
  1880. callSummaryRows.value = [];
  1881. callSummaryPagination.total = 0;
  1882. } finally {
  1883. callSummaryLoading.value = false;
  1884. }
  1885. };
  1886. const loadCallOperPhoneInfo = async () => {
  1887. const person = selectedPerson.value;
  1888. if (!person?.personName || !callOperPhoneQuery.phoneList.length) {
  1889. callOperPhoneAllRows.value = [];
  1890. callOperPhoneRows.value = [];
  1891. callOperPhonePagination.total = 0;
  1892. return;
  1893. }
  1894. callOperPhoneLoading.value = true;
  1895. try {
  1896. const resp = await getCallOperPhoneInfo({
  1897. personName: person.personName,
  1898. phoneList: callOperPhoneQuery.phoneList.length ? callOperPhoneQuery.phoneList : undefined,
  1899. operatorId: callOperPhoneQuery.operatorId || undefined,
  1900. } as CallOperPhoneInfoQuery);
  1901. const rawRecords = Array.isArray((resp as any)?.records)
  1902. ? (resp as any).records
  1903. : Array.isArray(resp)
  1904. ? resp
  1905. : [];
  1906. callOperPhoneAllRows.value = rawRecords.map((item: CallOpenInfo, index: number) => ({
  1907. rowKey: `${item.personName || person.personName || ''}-${item.operatorId || ''}-${item.personPhone || ''}-${index}`,
  1908. personName: item.personName || person.personName || '-',
  1909. personPhone: fallbackValue(item.personPhone),
  1910. phoneNumber: fallbackValue(item.personPhone),
  1911. phoneType: fallbackValue(item.phoneType),
  1912. operatorId: fallbackValue(item.operatorId),
  1913. operatorName: fallbackValue(item.operatorId),
  1914. personType: fallbackValue(item.personType),
  1915. personCertNo: fallbackValue(item.personCertNo),
  1916. personCertAddress: fallbackValue(item.personCertAddress),
  1917. mailingAddress: fallbackValue(item.mailingAddress),
  1918. province: fallbackValue(item.province),
  1919. city: fallbackValue(item.city),
  1920. phoneStatus: fallbackValue(item.phoneStatus),
  1921. activationDateTime: fallbackValue(item.activationDateTime),
  1922. closingDateTime: fallbackValue(item.closingDateTime),
  1923. firstCallDateTime: fallbackValue(item.firstCallDateTime),
  1924. lastSuspensionDateTime: fallbackValue(item.lastSuspensionDateTime),
  1925. }));
  1926. applyCallOperPhoneRows();
  1927. } catch (error) {
  1928. console.error('查询运营商手机号信息失败', error);
  1929. callOperPhoneAllRows.value = [];
  1930. callOperPhoneRows.value = [];
  1931. callOperPhonePagination.total = 0;
  1932. } finally {
  1933. callOperPhoneLoading.value = false;
  1934. }
  1935. };
  1936. const applyCallOperPhoneRows = () => {
  1937. const personNameKeyword = callOperPhoneQuery.personName.trim().toLocaleLowerCase();
  1938. const operatorNameKeyword = callOperPhoneQuery.operatorName.trim().toLocaleLowerCase();
  1939. const phoneNumberKeyword = callOperPhoneQuery.phoneNumber.trim().toLocaleLowerCase();
  1940. const filteredRows = callOperPhoneAllRows.value.filter((item) => {
  1941. const matchPersonName =
  1942. !personNameKeyword ||
  1943. String(item.personName || '')
  1944. .toLocaleLowerCase()
  1945. .includes(personNameKeyword);
  1946. const matchOperatorName =
  1947. !operatorNameKeyword ||
  1948. String(item.operatorName || '')
  1949. .toLocaleLowerCase()
  1950. .includes(operatorNameKeyword);
  1951. const matchPhoneNumber =
  1952. !phoneNumberKeyword ||
  1953. String(item.phoneNumber || '')
  1954. .toLocaleLowerCase()
  1955. .includes(phoneNumberKeyword);
  1956. return matchPersonName && matchOperatorName && matchPhoneNumber;
  1957. });
  1958. const sortedRows = [...filteredRows];
  1959. if (callOperPhoneQuery.orderKey) {
  1960. const sortFactor = callOperPhoneQuery.sort === 'ASC' ? 1 : -1;
  1961. sortedRows.sort((left, right) => {
  1962. const leftValue = String(left?.[callOperPhoneQuery.orderKey as keyof typeof left] || '');
  1963. const rightValue = String(right?.[callOperPhoneQuery.orderKey as keyof typeof right] || '');
  1964. return leftValue.localeCompare(rightValue, 'zh-CN', { numeric: true }) * sortFactor;
  1965. });
  1966. }
  1967. callOperPhonePagination.total = sortedRows.length;
  1968. const start = (callOperPhonePagination.page - 1) * callOperPhonePagination.limit;
  1969. const end = start + callOperPhonePagination.limit;
  1970. callOperPhoneRows.value = sortedRows.slice(start, end);
  1971. };
  1972. const loadTransBankCardInfo = async () => {
  1973. if (!transBankCardQuery.bankName || !transBankCardQuery.cardNoList.length) {
  1974. transBankCardRows.value = [];
  1975. transBankCardPagination.total = 0;
  1976. return;
  1977. }
  1978. transBankCardLoading.value = true;
  1979. try {
  1980. const resp = await getTransBankCardInfo({
  1981. page: transBankCardPagination.page,
  1982. limit: transBankCardPagination.limit,
  1983. keyword: transBankCardQuery.keyword || undefined,
  1984. orderKey: transBankCardQuery.orderKey || undefined,
  1985. sort: transBankCardQuery.sort || undefined,
  1986. bankName: transBankCardQuery.bankName || undefined,
  1987. cardNoList: transBankCardQuery.cardNoList.length ? transBankCardQuery.cardNoList : undefined,
  1988. } as TransBankCardInfoQuery);
  1989. const rawRecords = Array.isArray((resp as any)?.records)
  1990. ? (resp as any).records
  1991. : Array.isArray(resp)
  1992. ? resp
  1993. : [];
  1994. const records = Array.isArray((resp as any)?.records)
  1995. ? rawRecords
  1996. : rawRecords.slice(
  1997. (transBankCardPagination.page - 1) * transBankCardPagination.limit,
  1998. transBankCardPagination.page * transBankCardPagination.limit,
  1999. );
  2000. transBankCardRows.value = records.map((item: TransBankCardInfoDTO, index: number) => ({
  2001. rowKey: `${item.personCardNo || ''}-${index}`,
  2002. personCardNo: fallbackValue(item.personCardNo),
  2003. personName: fallbackValue(item.personName),
  2004. bankName: fallbackValue(item.bankName),
  2005. transIncome: fallbackValue(item.transIncome),
  2006. transExpend: fallbackValue(item.transExpend),
  2007. transBalance: fallbackValue(item.transBalance),
  2008. transCount: fallbackValue(item.transCount),
  2009. accountLeftMoney: fallbackValue(item.accountLeftMoney),
  2010. totalBalance: fallbackValue(item.totalBalance),
  2011. accountStatus: fallbackValue(item.accountStatus),
  2012. openAccountDate: fallbackValue(item.openAccountDate || item.openingDate),
  2013. openingDate: fallbackValue(item.openingDate || item.openAccountDate),
  2014. closeAccountDate: fallbackValue(item.closeAccountDate),
  2015. incomeTotalAmount: fallbackValue(item.incomeTotalAmount),
  2016. expenseTotalAmount: fallbackValue(item.expenseTotalAmount),
  2017. netAmount: fallbackValue(item.netAmount),
  2018. transTotalAmount: fallbackValue(item.transTotalAmount),
  2019. }));
  2020. transBankCardPagination.total = Number((resp as any)?.count || (resp as any)?.total || rawRecords.length || 0);
  2021. } catch (error) {
  2022. console.error('查询银行卡交易信息失败', error);
  2023. transBankCardRows.value = [];
  2024. transBankCardPagination.total = 0;
  2025. } finally {
  2026. transBankCardLoading.value = false;
  2027. }
  2028. };
  2029. const applyCallSummaryQuery = (query: Partial<CallSummaryQueryState> = {}) => {
  2030. Object.assign(callSummaryQuery, createCallSummaryQuery(), query);
  2031. };
  2032. const applyCallOperPhoneQuery = (query: Partial<CallOperPhoneQueryState> = {}) => {
  2033. Object.assign(callOperPhoneQuery, createCallOperPhoneQuery(), query);
  2034. };
  2035. const applyTransBankCardQuery = (query: Partial<TransBankCardQueryState> = {}) => {
  2036. Object.assign(transBankCardQuery, createTransBankCardQuery(), query);
  2037. };
  2038. const setCallSummaryBaseQuery = (query: Partial<CallSummaryQueryState> = {}) => {
  2039. callSummaryBaseQuery.value = {
  2040. ...createCallSummaryQuery(),
  2041. ...query,
  2042. };
  2043. };
  2044. const setCallOperPhoneBaseQuery = (query: Partial<CallOperPhoneQueryState> = {}) => {
  2045. callOperPhoneBaseQuery.value = {
  2046. ...createCallOperPhoneQuery(),
  2047. ...query,
  2048. };
  2049. };
  2050. const setTransBankCardBaseQuery = (query: Partial<TransBankCardQueryState> = {}) => {
  2051. transBankCardBaseQuery.value = {
  2052. ...createTransBankCardQuery(),
  2053. ...query,
  2054. };
  2055. };
  2056. const resetCallSummaryFilters = () => {
  2057. applyCallSummaryQuery(callSummaryBaseQuery.value);
  2058. };
  2059. const resetCallOperPhoneFilters = () => {
  2060. applyCallOperPhoneQuery(callOperPhoneBaseQuery.value);
  2061. };
  2062. const resetTransBankCardFilters = () => {
  2063. applyTransBankCardQuery(transBankCardBaseQuery.value);
  2064. };
  2065. const getCommTopDateRangeQuery = (): Partial<CallSummaryQueryState> => {
  2066. return {
  2067. startDate: commTopQuery.dateRange?.[0] || '',
  2068. endDate: commTopQuery.dateRange?.[1] || '',
  2069. };
  2070. };
  2071. const openCallSummaryWithFilters = async (
  2072. overrides: Partial<CallSummaryQueryState> = {},
  2073. options?: { useCommTopDateRange?: boolean },
  2074. ) => {
  2075. const nextBaseQuery: Partial<CallSummaryQueryState> = options?.useCommTopDateRange
  2076. ? getCommTopDateRangeQuery()
  2077. : {};
  2078. Object.assign(nextBaseQuery, overrides);
  2079. setCallSummaryBaseQuery(nextBaseQuery);
  2080. resetCallSummaryFilters();
  2081. callSummaryModalVisible.value = true;
  2082. callSummaryPagination.page = 1;
  2083. await loadCallSummary();
  2084. };
  2085. const openCallOperPhoneModal = async (carrierInfo = carrierTags.value[0]) => {
  2086. const person = selectedPerson.value;
  2087. if (!person?.personName || !carrierInfo.carrierName || !carrierInfo.phoneList.length) {
  2088. createMessage.warning('暂无运营商手机号数据');
  2089. return;
  2090. }
  2091. callOperPhoneModalTitle.value = `${carrierInfo.carrierName}手机号信息`;
  2092. setCallOperPhoneBaseQuery({
  2093. phoneList: carrierInfo.phoneList,
  2094. operatorId: carrierInfo.operatorId || '',
  2095. });
  2096. resetCallOperPhoneFilters();
  2097. callOperPhoneModalVisible.value = true;
  2098. callOperPhonePagination.page = 1;
  2099. await loadCallOperPhoneInfo();
  2100. };
  2101. const openTransBankCardModal = async (tag: { bankName: string; cardNoList: string[] }) => {
  2102. if (!tag.bankName || !tag.cardNoList.length) {
  2103. createMessage.warning('暂无银行卡数据');
  2104. return;
  2105. }
  2106. transBankCardModalTitle.value = '银行卡交易信息';
  2107. setTransBankCardBaseQuery({
  2108. bankName: tag.bankName,
  2109. cardNoList: tag.cardNoList,
  2110. });
  2111. resetTransBankCardFilters();
  2112. transBankCardModalVisible.value = true;
  2113. transBankCardPagination.page = 1;
  2114. await loadTransBankCardInfo();
  2115. };
  2116. const openCallRecordWithFilters = (
  2117. overrides: Partial<CallRecordQuery> = {},
  2118. options?: { useCommTopDateRange?: boolean; omitPersonPhones?: boolean },
  2119. ) => {
  2120. const person = selectedPerson.value;
  2121. if (!person?.personName) return;
  2122. callRecordBaseQuery.value = {
  2123. personName: person.personName,
  2124. ...(!options?.omitPersonPhones ? { personPhones: getSelectedPersonPhones(person) } : {}),
  2125. ...(options?.useCommTopDateRange ? getCommTopDateRangeQuery() : {}),
  2126. ...overrides,
  2127. };
  2128. callRecordModalVisible.value = true;
  2129. };
  2130. const toSummaryQueryText = (value?: string) => {
  2131. const text = String(value || '').trim();
  2132. return text && text !== '-' ? text : '';
  2133. };
  2134. const toSummaryNumericText = (value?: string | number) => {
  2135. const text = String(value ?? '')
  2136. .replace(/,/g, '')
  2137. .trim();
  2138. if (!text) return '';
  2139. const num = Number(text);
  2140. return Number.isFinite(num) ? text : '';
  2141. };
  2142. const handleViewCallSummaryDetail = (record: any) => {
  2143. const person = selectedPerson.value;
  2144. if (!person?.personName) {
  2145. createMessage.warning('请先选择对象');
  2146. return;
  2147. }
  2148. const personPhone = toSummaryQueryText(record?.personPhone);
  2149. const otherName = toSummaryQueryText(record?.otherName);
  2150. const otherPhone = toSummaryQueryText(record?.otherPhone);
  2151. openCallRecordWithFilters({
  2152. personPhones: personPhone ? [personPhone] : getSelectedPersonPhones(person),
  2153. otherName: otherName || undefined,
  2154. otherPhones: otherPhone ? [otherPhone] : undefined,
  2155. callDirection: callSummaryQuery.callDirection || undefined,
  2156. callType: callSummaryQuery.callType || undefined,
  2157. startDate: callSummaryQuery.startDate || undefined,
  2158. endDate: callSummaryQuery.endDate || undefined,
  2159. });
  2160. };
  2161. const handleViewCallOperPhoneDetail = (record: any) => {
  2162. const person = selectedPerson.value;
  2163. if (!person?.personName) {
  2164. createMessage.warning('请先选择对象');
  2165. return;
  2166. }
  2167. const personPhone = toSummaryQueryText(record?.personPhone || record?.phoneNumber);
  2168. if (!personPhone) {
  2169. createMessage.warning('当前手机号信息缺失,无法查看详情');
  2170. return;
  2171. }
  2172. const operatorId = toSummaryQueryText(record?.operatorId);
  2173. openCallRecordWithFilters({
  2174. personPhones: [personPhone],
  2175. operatorId: operatorId || undefined,
  2176. });
  2177. };
  2178. const handleViewTransSummaryDetail = (record: any) => {
  2179. const personName = selectedPerson.value?.personName;
  2180. if (!personName) {
  2181. createMessage.warning('请先选择对象');
  2182. return;
  2183. }
  2184. openTransRecordDrilldown({
  2185. personCardNo: toSummaryQueryText(record?.personCardNo) || undefined,
  2186. otherName: toSummaryQueryText(record?.otherName) || undefined,
  2187. otherCardNo: toSummaryQueryText(record?.otherCardNo) || undefined,
  2188. bankName: toSummaryQueryText(record?.bankName) || undefined,
  2189. });
  2190. };
  2191. const handleViewTransBankCardDetail = (record: any) => {
  2192. const personCardNo = toSummaryQueryText(record?.personCardNo);
  2193. if (!personCardNo) {
  2194. createMessage.warning('当前卡号信息缺失,无法查看详情');
  2195. return;
  2196. }
  2197. openTransRecordDrilldown({
  2198. personCardNo,
  2199. bankName: toSummaryQueryText(transBankCardQuery.bankName) || undefined,
  2200. });
  2201. };
  2202. const openCallSummaryModal = async () => {
  2203. await openCallSummaryWithFilters();
  2204. };
  2205. const loadTransSummary = async () => {
  2206. const person = selectedPerson.value;
  2207. if (!person?.personName) {
  2208. transSummaryRows.value = [];
  2209. transSummaryPagination.total = 0;
  2210. return;
  2211. }
  2212. transSummaryLoading.value = true;
  2213. try {
  2214. const transAmount = toSummaryNumericText(transSummaryQuery.transAmount);
  2215. const transCountText = toSummaryNumericText(transSummaryQuery.transCount);
  2216. const query: TransRecordSummaryQuery = {
  2217. page: transSummaryPagination.page,
  2218. limit: transSummaryPagination.limit,
  2219. personNames: person.personName ? [person.personName] : undefined,
  2220. personCardNo: toSummaryQueryText(transSummaryQuery.personCardNo) || undefined,
  2221. otherName: toSummaryQueryText(transSummaryQuery.otherName) || undefined,
  2222. transAmount: transAmount || undefined,
  2223. transCount: transCountText ? Number(transCountText) : undefined,
  2224. transAmountSymbol: transAmount
  2225. ? normalizeCompareOperator(transSummaryQuery.transAmountSymbol, DEFAULT_COMPARE_OPERATOR)
  2226. : undefined,
  2227. transCountSymbol: transCountText
  2228. ? normalizeCompareOperator(transSummaryQuery.transCountSymbol, DEFAULT_COMPARE_OPERATOR)
  2229. : undefined,
  2230. orderKey: transSummaryQuery.orderKey || undefined,
  2231. sort: transSummaryQuery.sort || undefined,
  2232. };
  2233. const resp = await getTransRecordSummary(query);
  2234. const records = Array.isArray(resp?.records) ? resp.records : Array.isArray(resp) ? resp : [];
  2235. transSummaryRows.value = records.map((item: TransRecordSummaryDTO, index: number) => ({
  2236. rowKey: `${item.personName || ''}-${item.otherCardNo || ''}-${index}`,
  2237. personCardNo: fallbackValue(item.personCardNo),
  2238. personName: fallbackValue(item.personName || person.personName),
  2239. otherCardNo: fallbackValue(item.otherCardNo),
  2240. otherName: fallbackValue(item.otherName),
  2241. bankName: fallbackValue(item.bankName),
  2242. transCount: fallbackValue(item.transCount),
  2243. transTotalAmount: fallbackValue(item.transTotalAmount),
  2244. incomeTotalAmount: fallbackValue(item.incomeTotalAmount),
  2245. expenseTotalAmount: fallbackValue(item.expenseTotalAmount),
  2246. cashKey: Array.isArray(item.cashKey) && item.cashKey.length ? item.cashKey.join('、') : '-',
  2247. }));
  2248. transSummaryPagination.total = resolvePageTotal(resp, records);
  2249. } catch (error) {
  2250. console.error('查询交易汇总失败', error);
  2251. transSummaryRows.value = [];
  2252. transSummaryPagination.total = 0;
  2253. } finally {
  2254. transSummaryLoading.value = false;
  2255. }
  2256. };
  2257. const applyTransSummaryQuery = (query: Partial<TransSummaryQueryState> = {}) => {
  2258. Object.assign(transSummaryQuery, createTransSummaryQuery(), {
  2259. ...query,
  2260. transAmountSymbol: normalizeCompareOperator(query.transAmountSymbol, DEFAULT_COMPARE_OPERATOR),
  2261. transCountSymbol: normalizeCompareOperator(query.transCountSymbol, DEFAULT_COMPARE_OPERATOR),
  2262. });
  2263. };
  2264. const setTransSummaryBaseQuery = (query: Partial<TransSummaryQueryState> = {}) => {
  2265. transSummaryBaseQuery.value = {
  2266. ...createTransSummaryQuery(),
  2267. ...query,
  2268. transAmountSymbol: normalizeCompareOperator(query.transAmountSymbol, DEFAULT_COMPARE_OPERATOR),
  2269. transCountSymbol: normalizeCompareOperator(query.transCountSymbol, DEFAULT_COMPARE_OPERATOR),
  2270. };
  2271. };
  2272. const resetTransSummaryFilters = () => {
  2273. applyTransSummaryQuery(transSummaryBaseQuery.value);
  2274. };
  2275. const openTransSummaryWithFilters = async (overrides: Partial<TransSummaryQueryState> = {}) => {
  2276. setTransSummaryBaseQuery(overrides);
  2277. resetTransSummaryFilters();
  2278. transSummaryModalVisible.value = true;
  2279. transSummaryPagination.page = 1;
  2280. await loadTransSummary();
  2281. };
  2282. const openTransSummaryModal = async () => {
  2283. await openTransSummaryWithFilters();
  2284. };
  2285. const handleSearchCallSummary = async () => {
  2286. callSummaryPagination.page = 1;
  2287. await loadCallSummary();
  2288. };
  2289. const handleSearchCallOperPhone = async () => {
  2290. callOperPhonePagination.page = 1;
  2291. applyCallOperPhoneRows();
  2292. };
  2293. const handleSearchTransBankCard = async () => {
  2294. transBankCardPagination.page = 1;
  2295. await loadTransBankCardInfo();
  2296. };
  2297. const handleSearchTransSummary = async () => {
  2298. transSummaryPagination.page = 1;
  2299. await loadTransSummary();
  2300. };
  2301. const handleResetCallSummary = async () => {
  2302. resetCallSummaryFilters();
  2303. callSummaryPagination.page = 1;
  2304. await loadCallSummary();
  2305. };
  2306. const handleResetCallOperPhone = async () => {
  2307. resetCallOperPhoneFilters();
  2308. callOperPhonePagination.page = 1;
  2309. applyCallOperPhoneRows();
  2310. };
  2311. const handleResetTransBankCard = async () => {
  2312. resetTransBankCardFilters();
  2313. transBankCardPagination.page = 1;
  2314. await loadTransBankCardInfo();
  2315. };
  2316. const handleResetTransSummary = async () => {
  2317. resetTransSummaryFilters();
  2318. transSummaryPagination.page = 1;
  2319. await loadTransSummary();
  2320. };
  2321. const handleCallSummaryPrevPage = async () => {
  2322. if (callSummaryPagination.page <= 1) return;
  2323. callSummaryPagination.page -= 1;
  2324. await loadCallSummary();
  2325. };
  2326. const handleCallSummaryNextPage = async () => {
  2327. if (callSummaryPagination.page >= callSummaryTotalPages.value) return;
  2328. callSummaryPagination.page += 1;
  2329. await loadCallSummary();
  2330. };
  2331. const handleCallSummaryPageChange = async (page: number, pageSize: number) => {
  2332. if (callSummaryLoading.value) return;
  2333. if (pageSize !== callSummaryPagination.limit) {
  2334. await handleCallSummaryPageSizeChange(pageSize);
  2335. return;
  2336. }
  2337. if (page === callSummaryPagination.page - 1) {
  2338. await handleCallSummaryPrevPage();
  2339. return;
  2340. }
  2341. if (page === callSummaryPagination.page + 1) {
  2342. await handleCallSummaryNextPage();
  2343. return;
  2344. }
  2345. if (page === callSummaryPagination.page) return;
  2346. callSummaryPagination.page = page;
  2347. await loadCallSummary();
  2348. };
  2349. const handleCallOperPhonePrevPage = async () => {
  2350. if (callOperPhonePagination.page <= 1) return;
  2351. callOperPhonePagination.page -= 1;
  2352. applyCallOperPhoneRows();
  2353. };
  2354. const handleCallOperPhoneNextPage = async () => {
  2355. if (callOperPhonePagination.page >= callOperPhoneTotalPages.value) return;
  2356. callOperPhonePagination.page += 1;
  2357. applyCallOperPhoneRows();
  2358. };
  2359. const handleCallOperPhonePageChange = async (page: number, pageSize: number) => {
  2360. if (callOperPhoneLoading.value) return;
  2361. if (pageSize !== callOperPhonePagination.limit) {
  2362. await handleCallOperPhonePageSizeChange(pageSize);
  2363. return;
  2364. }
  2365. if (page === callOperPhonePagination.page - 1) {
  2366. await handleCallOperPhonePrevPage();
  2367. return;
  2368. }
  2369. if (page === callOperPhonePagination.page + 1) {
  2370. await handleCallOperPhoneNextPage();
  2371. return;
  2372. }
  2373. if (page === callOperPhonePagination.page) return;
  2374. callOperPhonePagination.page = page;
  2375. applyCallOperPhoneRows();
  2376. };
  2377. const handleTransBankCardPrevPage = async () => {
  2378. if (transBankCardPagination.page <= 1) return;
  2379. transBankCardPagination.page -= 1;
  2380. await loadTransBankCardInfo();
  2381. };
  2382. const handleTransBankCardNextPage = async () => {
  2383. if (transBankCardPagination.page >= transBankCardTotalPages.value) return;
  2384. transBankCardPagination.page += 1;
  2385. await loadTransBankCardInfo();
  2386. };
  2387. const handleTransBankCardPageChange = async (page: number, pageSize: number) => {
  2388. if (transBankCardLoading.value) return;
  2389. if (pageSize !== transBankCardPagination.limit) {
  2390. await handleTransBankCardPageSizeChange(pageSize);
  2391. return;
  2392. }
  2393. if (page === transBankCardPagination.page - 1) {
  2394. await handleTransBankCardPrevPage();
  2395. return;
  2396. }
  2397. if (page === transBankCardPagination.page + 1) {
  2398. await handleTransBankCardNextPage();
  2399. return;
  2400. }
  2401. if (page === transBankCardPagination.page) return;
  2402. transBankCardPagination.page = page;
  2403. await loadTransBankCardInfo();
  2404. };
  2405. const handleCallSummaryPageSizeChange = async (value: number) => {
  2406. callSummaryPagination.limit = Number(value);
  2407. callSummaryPagination.page = 1;
  2408. await loadCallSummary();
  2409. };
  2410. const handleCallOperPhonePageSizeChange = async (value: number) => {
  2411. callOperPhonePagination.limit = Number(value);
  2412. callOperPhonePagination.page = 1;
  2413. applyCallOperPhoneRows();
  2414. };
  2415. const handleTransBankCardPageSizeChange = async (value: number) => {
  2416. transBankCardPagination.limit = Number(value);
  2417. transBankCardPagination.page = 1;
  2418. await loadTransBankCardInfo();
  2419. };
  2420. const handleSortCallSummary = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
  2421. callSummaryQuery.orderKey = orderKey;
  2422. callSummaryQuery.sort = sort;
  2423. callSummaryPagination.page = 1;
  2424. await loadCallSummary();
  2425. };
  2426. const handleSortCallOperPhone = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
  2427. callOperPhoneQuery.orderKey = orderKey;
  2428. callOperPhoneQuery.sort = sort;
  2429. callOperPhonePagination.page = 1;
  2430. applyCallOperPhoneRows();
  2431. };
  2432. const handleSortTransBankCard = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
  2433. transBankCardQuery.orderKey = orderKey;
  2434. transBankCardQuery.sort = sort;
  2435. transBankCardPagination.page = 1;
  2436. await loadTransBankCardInfo();
  2437. };
  2438. const handleTransSummaryPrevPage = async () => {
  2439. if (transSummaryPagination.page <= 1) return;
  2440. transSummaryPagination.page -= 1;
  2441. await loadTransSummary();
  2442. };
  2443. const handleTransSummaryNextPage = async () => {
  2444. if (transSummaryPagination.page >= transSummaryTotalPages.value) return;
  2445. transSummaryPagination.page += 1;
  2446. await loadTransSummary();
  2447. };
  2448. const handleTransSummaryPageChange = async (page: number, pageSize: number) => {
  2449. if (transSummaryLoading.value) return;
  2450. if (pageSize !== transSummaryPagination.limit) {
  2451. await handleTransSummaryPageSizeChange(pageSize);
  2452. return;
  2453. }
  2454. if (page === transSummaryPagination.page - 1) {
  2455. await handleTransSummaryPrevPage();
  2456. return;
  2457. }
  2458. if (page === transSummaryPagination.page + 1) {
  2459. await handleTransSummaryNextPage();
  2460. return;
  2461. }
  2462. if (page === transSummaryPagination.page) return;
  2463. transSummaryPagination.page = page;
  2464. await loadTransSummary();
  2465. };
  2466. const handleTransSummaryPageSizeChange = async (value: number) => {
  2467. transSummaryPagination.limit = Number(value);
  2468. transSummaryPagination.page = 1;
  2469. await loadTransSummary();
  2470. };
  2471. const handleSortTransSummary = async ({ orderKey, sort }: { orderKey: string; sort: 'ASC' | 'DESC' }) => {
  2472. transSummaryQuery.orderKey = orderKey;
  2473. transSummaryQuery.sort = sort;
  2474. transSummaryPagination.page = 1;
  2475. await loadTransSummary();
  2476. };
  2477. const openTransRecordDrilldown = (baseQuery: TransRecordDrilldownQuery) => {
  2478. const personName = selectedPerson.value?.personName;
  2479. if (!personName) {
  2480. createMessage.warning('请先选择对象');
  2481. return;
  2482. }
  2483. transRecordBaseQuery.value = {
  2484. personName,
  2485. ...baseQuery,
  2486. };
  2487. transRecordModalVisible.value = true;
  2488. };
  2489. const handleTransRecordJump = () => {
  2490. transRecordModalVisible.value = false;
  2491. transBankCardModalVisible.value = false;
  2492. transSummaryModalVisible.value = false;
  2493. };
  2494. const handleCallRecordJump = () => {
  2495. callRecordModalVisible.value = false;
  2496. callOperPhoneModalVisible.value = false;
  2497. callSummaryModalVisible.value = false;
  2498. };
  2499. const handleDrillByDebitCredit = (flag: '收入' | '支出') => {
  2500. openTransRecordDrilldown({
  2501. debitCreditFlag: flag,
  2502. });
  2503. };
  2504. const handleDrillByTradeTop = (item: { name: string; filterValue?: string }) => {
  2505. const filterValue = String(item?.filterValue || item?.name || '').trim();
  2506. const baseQuery: Partial<TransRecordQuery> = {
  2507. indicator: tradeTopQuery.indicator,
  2508. };
  2509. const startDate = tradeTopQuery.dateRange?.[0];
  2510. const endDate = tradeTopQuery.dateRange?.[1];
  2511. if (startDate && endDate) {
  2512. baseQuery.startDate = startDate;
  2513. baseQuery.endDate = endDate;
  2514. }
  2515. if (filterValue) {
  2516. if (tradeTopQuery.indicator === 'otherCardNo') {
  2517. baseQuery.otherCardNo = filterValue;
  2518. } else if (tradeTopQuery.indicator === 'personName') {
  2519. baseQuery.otherName = filterValue;
  2520. } else if (tradeTopQuery.indicator === 'branchName') {
  2521. baseQuery.branchName = filterValue;
  2522. } else if (tradeTopQuery.indicator === 'personIpAddress') {
  2523. baseQuery.personIpAddress = filterValue;
  2524. } else if (tradeTopQuery.indicator === 'personMacAddress') {
  2525. baseQuery.personMacAddress = filterValue;
  2526. }
  2527. }
  2528. openTransRecordDrilldown(baseQuery);
  2529. };
  2530. const handleCommTopRowClick = (row: { otherName?: string; otherPhone?: string }) => {
  2531. if (!row) return;
  2532. const baseQuery: Partial<CallRecordQuery> = row.otherPhone
  2533. ? { otherPhones: [row.otherPhone] }
  2534. : row.otherName
  2535. ? { otherName: row.otherName }
  2536. : {};
  2537. openCallRecordWithFilters(baseQuery, { useCommTopDateRange: true, omitPersonPhones: true });
  2538. };
  2539. const handleSearchTradeTrend = async () => {
  2540. const personName = selectedPerson.value?.personName;
  2541. if (!personName) {
  2542. tradeTrendData.value = [];
  2543. return;
  2544. }
  2545. loadingProfile.value = true;
  2546. try {
  2547. tradeTrendData.value = await loadTradeTrendData(personName);
  2548. tradeTrendChart?.resize();
  2549. } catch (error) {
  2550. console.error('查询交易趋势失败', error);
  2551. tradeTrendData.value = [];
  2552. } finally {
  2553. loadingProfile.value = false;
  2554. }
  2555. };
  2556. const handleTradeTrendOtherNameSearch = (value: string) => {
  2557. tradeTrendOtherNameSearch.value = String(value || '').trim();
  2558. if (tradeTrendOtherNameSearchTimer !== null) {
  2559. window.clearTimeout(tradeTrendOtherNameSearchTimer);
  2560. }
  2561. tradeTrendOtherNameSearchTimer = window.setTimeout(() => {
  2562. tradeTrendOtherNameSearchTimer = null;
  2563. void loadTradeTrendOtherNameOptions({
  2564. reset: true,
  2565. search: tradeTrendOtherNameSearch.value,
  2566. });
  2567. }, 240);
  2568. };
  2569. const handleTradeTrendOtherNamePopupScroll = (event: UIEvent) => {
  2570. const target = event.target as HTMLElement | null;
  2571. if (!target || tradeTrendOtherNameLoading.value || !tradeTrendOtherNameHasMore.value) return;
  2572. if (target.scrollTop + target.clientHeight >= target.scrollHeight - 24) {
  2573. void loadTradeTrendOtherNameOptions();
  2574. }
  2575. };
  2576. const handleTradeTrendOtherNameDropdownVisibleChange = (open: boolean) => {
  2577. if (!open) return;
  2578. const personName = selectedPerson.value?.personName?.trim();
  2579. if (!personName) return;
  2580. if (tradeTrendOtherNameLoadedPerson.value !== personName || !tradeTrendOtherNameOptions.value.length) {
  2581. tradeTrendOtherNameSearch.value = '';
  2582. void loadTradeTrendOtherNameOptions({ reset: true, search: '' });
  2583. }
  2584. };
  2585. const scheduleTradeTrendSearch = (delay = 240) => {
  2586. if (tradeTrendSearchTimer !== null) {
  2587. window.clearTimeout(tradeTrendSearchTimer);
  2588. }
  2589. tradeTrendSearchTimer = window.setTimeout(() => {
  2590. tradeTrendSearchTimer = null;
  2591. void handleSearchTradeTrend();
  2592. }, delay);
  2593. };
  2594. const viewStationMap = () => {
  2595. if (!canViewStationMap.value) {
  2596. createMessage.warning('当前基站暂无可展示的坐标信息');
  2597. return;
  2598. }
  2599. stationMapModalVisible.value = true;
  2600. };
  2601. const changeTradeTrendDimension = (dimension: 'MONTH' | 'YEAR') => {
  2602. if (tradeTrendQuery.timeDimension === dimension) return;
  2603. trendLegendArr.value = [
  2604. { isShow: true, name: '收入', color: '#12b76a' },
  2605. { isShow: true, name: '支出', color: '#2a50ec' },
  2606. ];
  2607. tradeTrendQuery.timeDimension = dimension;
  2608. };
  2609. const handleTrendChartResize = () => {
  2610. tradeTrendChart?.resize();
  2611. tradeRatioChart?.resize();
  2612. tradeTopChart?.resize();
  2613. commTopChart?.resize();
  2614. if (commTypeChartRef.value && commTypeRatioData.value.length) {
  2615. commTypeChart?.resize();
  2616. initCommTypeChart();
  2617. }
  2618. };
  2619. const handleSubmit = async () => {
  2620. console.error('[portrait] handleSubmit clicked');
  2621. (window as any).__portraitSaveDebug = {
  2622. stage: 'clicked',
  2623. form: { ...personForm },
  2624. at: new Date().toISOString(),
  2625. };
  2626. console.error('[portrait] form snapshot before validation:', { ...personForm });
  2627. // 校验姓名
  2628. if (!personForm.personName.trim()) {
  2629. console.error('[portrait] save blocked: empty personName');
  2630. personNameError.value = '请输入姓名';
  2631. createMessage.warning('请输入姓名');
  2632. return;
  2633. }
  2634. // const nameRegex = /^[\u4e00-\u9fa5a-zA-Z\s·]+$/;
  2635. // if (!nameRegex.test(personForm.personName.trim())) {
  2636. // console.error('[portrait] save blocked: invalid personName');
  2637. // personNameError.value = '姓名只能包含中文、字母或空格';
  2638. // createMessage.warning('姓名格式不正确');
  2639. // return;
  2640. // }
  2641. // if (personForm.personName.trim().length < 2) {
  2642. // console.error('[portrait] save blocked: short personName');
  2643. // personNameError.value = '姓名至少2个字符';
  2644. // createMessage.warning('姓名至少2个字符');
  2645. // return;
  2646. // }
  2647. personNameError.value = '';
  2648. // 校验手机号
  2649. const phoneErrors: string[] = [];
  2650. personForm.phoneList.forEach((phone, index) => {
  2651. if (phone.trim()) {
  2652. const phoneRegex = /^1[3-9]\d{9}$/;
  2653. if (!phoneRegex.test(phone.trim())) {
  2654. phoneErrors[index] = '手机号格式不正确';
  2655. }
  2656. }
  2657. });
  2658. phoneListErrors.value = phoneErrors;
  2659. // 校验银行卡
  2660. const cardErrors: string[] = [];
  2661. personForm.cardList.forEach((card, index) => {
  2662. if (card.trim()) {
  2663. if (card.trim().length < 16 || card.trim().length > 19) {
  2664. cardErrors[index] = '银行卡号长度应为16-19位';
  2665. }
  2666. }
  2667. });
  2668. cardListErrors.value = cardErrors;
  2669. if (phoneErrors.some(Boolean) || cardErrors.some(Boolean)) {
  2670. console.error('[portrait] save blocked: phone/card validation failed', { phoneErrors, cardErrors });
  2671. createMessage.warning('请检查输入格式');
  2672. return;
  2673. }
  2674. saving.value = true;
  2675. try {
  2676. const uploadedPhotograph = String(personForm.photograph || '').trim();
  2677. updatePersonPhotograph(uploadedPhotograph);
  2678. const payload: PersonBasicInfoDTO = {
  2679. personName: personForm.personName,
  2680. personCertNo: personForm.personCertNo,
  2681. personBirth: personForm.personBirth,
  2682. personGender: personForm.personGender,
  2683. personAge: personForm.personAge ? Number(personForm.personAge) : 0,
  2684. personAddress: personForm.personAddress,
  2685. photograph: uploadedPhotograph,
  2686. marry: personForm.marry,
  2687. nation: personForm.nation,
  2688. nativePlace: personForm.nativePlace,
  2689. householdRegistered: personForm.householdRegistered,
  2690. personTag: personForm.personTag === '' ? null : personForm.personTag,
  2691. phoneList: toLibNoList(personForm.phoneList.filter((p) => p.trim()).join(','), 2),
  2692. cardList: toLibNoList(personForm.cardList.filter((c) => c.trim()).join(','), 3),
  2693. };
  2694. (window as any).__portraitSaveDebug = {
  2695. stage: 'payload-ready',
  2696. payload: JSON.parse(JSON.stringify(payload)),
  2697. at: new Date().toISOString(),
  2698. };
  2699. console.error('[portrait] save person payload:', JSON.parse(JSON.stringify(payload)));
  2700. if (isEditMode.value) {
  2701. await updatePersonBasicInfo(payload);
  2702. createMessage.success('更新成功');
  2703. } else {
  2704. await createPersonBasicInfo(payload);
  2705. createMessage.success('新增成功');
  2706. }
  2707. personModalVisible.value = false;
  2708. await fetchPersons();
  2709. } catch (error: any) {
  2710. console.error('[portrait] avatar upload/save error detail:', error?.response?.data || error?.message || error);
  2711. console.error('[portrait] save debug snapshot:', (window as any).__portraitSaveDebug);
  2712. console.error('保存人员失败', error);
  2713. createMessage.error(isEditMode.value ? '更新失败' : '新增失败');
  2714. } finally {
  2715. saving.value = false;
  2716. }
  2717. };
  2718. // 姓名校验方法
  2719. const validatePersonName = () => {
  2720. if (!personForm.personName.trim()) {
  2721. personNameError.value = '请输入姓名';
  2722. return;
  2723. }
  2724. const nameRegex = /^[\u4e00-\u9fa5a-zA-Z\s·]+$/;
  2725. if (!nameRegex.test(personForm.personName.trim())) {
  2726. personNameError.value = '姓名只能包含中文、字母或空格';
  2727. return;
  2728. }
  2729. if (personForm.personName.trim().length < 2) {
  2730. personNameError.value = '姓名至少2个字符';
  2731. return;
  2732. }
  2733. personNameError.value = '';
  2734. };
  2735. // 手机号操作方法
  2736. const addPhone = () => {
  2737. personForm.phoneList.push('');
  2738. phoneListErrors.value.push('');
  2739. };
  2740. const removePhone = (index: number) => {
  2741. if (personForm.phoneList.length > 1) {
  2742. personForm.phoneList.splice(index, 1);
  2743. phoneListErrors.value.splice(index, 1);
  2744. }
  2745. };
  2746. const validatePhone = (index: number) => {
  2747. const phone = personForm.phoneList[index];
  2748. if (phone.trim()) {
  2749. const phoneRegex = /^1[3-9]\d{9}$/;
  2750. phoneListErrors.value[index] = phoneRegex.test(phone.trim()) ? '' : '手机号格式不正确';
  2751. } else {
  2752. phoneListErrors.value[index] = '';
  2753. }
  2754. };
  2755. // 银行卡操作方法
  2756. const addCard = () => {
  2757. personForm.cardList.push('');
  2758. cardListErrors.value.push('');
  2759. };
  2760. const removeCard = (index: number) => {
  2761. if (personForm.cardList.length > 1) {
  2762. personForm.cardList.splice(index, 1);
  2763. cardListErrors.value.splice(index, 1);
  2764. }
  2765. };
  2766. const validateCard = (index: number) => {
  2767. const card = personForm.cardList[index];
  2768. if (card.trim()) {
  2769. const len = card.trim().length;
  2770. cardListErrors.value[index] = len >= 16 && len <= 19 ? '' : '银行卡号长度应为16-19位';
  2771. } else {
  2772. cardListErrors.value[index] = '';
  2773. }
  2774. };
  2775. const handleDelete = (person: PersonBasicInfo) => {
  2776. const name = person.personName;
  2777. if (!name) {
  2778. createMessage.warning('缺少人员姓名');
  2779. return;
  2780. }
  2781. createConfirm({
  2782. iconType: 'warning',
  2783. centered: true,
  2784. title: '确认删除对象',
  2785. content: `确定要删除对象“${name}”吗?删除后无法恢复。`,
  2786. okButtonProps: { type: 'primary' },
  2787. autoFocusButton: 'ok',
  2788. async onOk() {
  2789. try {
  2790. await deletePersonBasicInfo(name);
  2791. createMessage.success('删除成功');
  2792. await fetchPersons();
  2793. } catch (error) {
  2794. console.error('删除人员失败', error);
  2795. createMessage.error('删除失败');
  2796. }
  2797. },
  2798. });
  2799. };
  2800. // ==================== Quick Nav 滚动联动 ====================
  2801. const rightPanelRef = ref<HTMLElement | null>(null);
  2802. const activeNavId = ref('section-basic');
  2803. const scheduleChartResize = () => {
  2804. if (chartResizeFrame !== null) {
  2805. window.cancelAnimationFrame(chartResizeFrame);
  2806. }
  2807. chartResizeFrame = window.requestAnimationFrame(() => {
  2808. chartResizeFrame = null;
  2809. handleTrendChartResize();
  2810. if (tradeRatioChartRef.value && hasTradeRatioData.value && !tradeRatioChart) {
  2811. initTradeRatioChart();
  2812. }
  2813. if (tradeTopChartRef.value && tradeTop.value.length && !tradeTopChart) {
  2814. initTradeTopChart();
  2815. }
  2816. if (commTypeChartRef.value && hasRenderableCommTypeRatioData.value && !commTypeChart) {
  2817. initCommTypeChart();
  2818. }
  2819. if (commTopChartRef.value && hasRenderableTopContacts.value && !commTopChart) {
  2820. initCommTopChart();
  2821. }
  2822. if (tradeTrendChartRef.value && trendLabels.value.length && !tradeTrendChart) {
  2823. initTradeTrendChart();
  2824. }
  2825. });
  2826. };
  2827. const observeChartElement = (element: Element | null) => {
  2828. if (!chartResizeObserver || !element || observedChartElements.has(element)) return;
  2829. chartResizeObserver.observe(element);
  2830. observedChartElements.add(element);
  2831. };
  2832. const setupChartResizeObserver = () => {
  2833. if (typeof ResizeObserver === 'undefined') return;
  2834. if (!chartResizeObserver) {
  2835. chartResizeObserver = new ResizeObserver(() => {
  2836. scheduleChartResize();
  2837. });
  2838. }
  2839. [
  2840. rightPanelRef.value,
  2841. tradeTrendChartRef.value,
  2842. tradeRatioChartRef.value,
  2843. tradeTopChartRef.value,
  2844. commTypeChartRef.value,
  2845. commTopChartRef.value,
  2846. ].forEach(observeChartElement);
  2847. scheduleChartResize();
  2848. };
  2849. const navItems = [
  2850. { id: 'section-basic', label: '基本信息', icon: IdcardOutlined },
  2851. { id: 'section-relation', label: '亲密关系人', icon: TeamOutlined },
  2852. { id: 'section-comm', label: '通讯信息', icon: PhoneOutlined },
  2853. { id: 'section-trade', label: '交易信息', icon: WalletOutlined },
  2854. ];
  2855. const scrollToSection = (id: string) => {
  2856. const container = rightPanelRef.value;
  2857. if (!container) return;
  2858. const el = container.querySelector(`#${id}`) as HTMLElement | null;
  2859. if (!el) return;
  2860. // 吸顶分段导航自身占据高度,滚动目标需要避开它,避免标题被遮住
  2861. const anchorBar = container.querySelector('.qj-anchors') as HTMLElement | null;
  2862. const targetOffset = (anchorBar?.offsetHeight || 0) + 12;
  2863. container.scrollTo({
  2864. top: Math.max(0, el.offsetTop - container.offsetTop - targetOffset),
  2865. behavior: 'smooth',
  2866. });
  2867. activeNavId.value = id;
  2868. };
  2869. let navScrollHandler: (() => void) | null = null;
  2870. let navScrollFrame: number | null = null;
  2871. const updateActiveNav = () => {
  2872. const container = rightPanelRef.value;
  2873. if (!container) return;
  2874. const threshold = container.getBoundingClientRect().top + 80;
  2875. let current = navItems[0].id;
  2876. navItems.forEach((nav) => {
  2877. const el = container.querySelector(`#${nav.id}`) as HTMLElement | null;
  2878. if (el && el.getBoundingClientRect().top <= threshold) {
  2879. current = nav.id;
  2880. }
  2881. });
  2882. // 滚动到底部时最后一段可能无法贴顶,强制高亮最后一项
  2883. if (container.scrollHeight - container.scrollTop - container.clientHeight <= 8) {
  2884. current = navItems[navItems.length - 1].id;
  2885. }
  2886. activeNavId.value = current;
  2887. };
  2888. const initNavObserver = () => {
  2889. const container = rightPanelRef.value;
  2890. if (!container) return;
  2891. if (navScrollHandler) {
  2892. container.removeEventListener('scroll', navScrollHandler);
  2893. }
  2894. navScrollHandler = () => {
  2895. if (navScrollFrame !== null) return;
  2896. navScrollFrame = window.requestAnimationFrame(() => {
  2897. navScrollFrame = null;
  2898. updateActiveNav();
  2899. });
  2900. };
  2901. container.addEventListener('scroll', navScrollHandler, { passive: true });
  2902. updateActiveNav();
  2903. };
  2904. onMounted(() => {
  2905. // 弹窗会被 teleport 到 body:用 body 标记把「弹窗按钮 32px」限定在本页
  2906. document.body.classList.add('case-portrait-active');
  2907. fetchPersons();
  2908. resetRightPanelData();
  2909. void openGroupModalFromRoute();
  2910. window.addEventListener('resize', handleTrendChartResize);
  2911. nextTick(() => {
  2912. initNavObserver();
  2913. setupChartResizeObserver();
  2914. });
  2915. });
  2916. onActivated(() => {
  2917. document.body.classList.add('case-portrait-active');
  2918. });
  2919. onDeactivated(() => {
  2920. document.body.classList.remove('case-portrait-active');
  2921. });
  2922. onBeforeUnmount(() => {
  2923. document.body.classList.remove('case-portrait-active');
  2924. revokeAvatarPreviewObjectUrl();
  2925. if (navScrollHandler && rightPanelRef.value) {
  2926. rightPanelRef.value.removeEventListener('scroll', navScrollHandler);
  2927. }
  2928. navScrollHandler = null;
  2929. if (navScrollFrame !== null) {
  2930. window.cancelAnimationFrame(navScrollFrame);
  2931. navScrollFrame = null;
  2932. }
  2933. if (tradeTrendSearchTimer !== null) {
  2934. window.clearTimeout(tradeTrendSearchTimer);
  2935. tradeTrendSearchTimer = null;
  2936. }
  2937. if (tradeTrendOtherNameSearchTimer !== null) {
  2938. window.clearTimeout(tradeTrendOtherNameSearchTimer);
  2939. tradeTrendOtherNameSearchTimer = null;
  2940. }
  2941. window.removeEventListener('resize', handleTrendChartResize);
  2942. chartResizeObserver?.disconnect();
  2943. chartResizeObserver = null;
  2944. observedChartElements.clear();
  2945. if (chartResizeFrame !== null) {
  2946. window.cancelAnimationFrame(chartResizeFrame);
  2947. chartResizeFrame = null;
  2948. }
  2949. if ((window as any)._handleTrendDetail) {
  2950. delete (window as any)._handleTrendDetail;
  2951. }
  2952. if (tradeTrendChart) {
  2953. tradeTrendChart.dispose();
  2954. tradeTrendChart = null;
  2955. }
  2956. if (tradeRatioChart) {
  2957. tradeRatioChart.dispose();
  2958. tradeRatioChart = null;
  2959. }
  2960. if (tradeTopChart) {
  2961. tradeTopChart.dispose();
  2962. tradeTopChart = null;
  2963. }
  2964. if (commTypeChart) {
  2965. commTypeChart.dispose();
  2966. commTypeChart = null;
  2967. }
  2968. if (commTopChart) {
  2969. commTopChart.dispose();
  2970. commTopChart = null;
  2971. }
  2972. });
  2973. const fallbackValue = (value: string | number | null | undefined) => {
  2974. if (value === 0) return '0';
  2975. if (value === null || value === undefined || value === '') return '-';
  2976. return String(value);
  2977. };
  2978. const normalizePhotoSrc = (value?: string | null) => normalizeAvatarSrc(value);
  2979. const getPersonPhoto = (person?: Partial<PersonBasicInfo> | null) => String(person?.photograph || '').trim();
  2980. const selectedPerson = computed(() => {
  2981. if (selectedPersonId.value === null) return null;
  2982. return personList.value[selectedPersonId.value] ?? null;
  2983. });
  2984. const personKeyword = ref('');
  2985. const filteredPersonList = computed(() => {
  2986. const keyword = personKeyword.value.trim();
  2987. const source = personList.value.map((person, index) => ({ person, index }));
  2988. if (!keyword) return source;
  2989. return source.filter(({ person }) => {
  2990. const personName = String(person.personName || '');
  2991. const certNo = String(person.personCertNo || '');
  2992. return personName.includes(keyword) || certNo.includes(keyword);
  2993. });
  2994. });
  2995. const basicInfo = computed(() => {
  2996. const person = selectedPerson.value;
  2997. if (!person) {
  2998. return [
  2999. { label: '身份证', value: '-' },
  3000. { label: '性别', value: '-' },
  3001. { label: '民族', value: '-' },
  3002. { label: '年龄', value: '-' },
  3003. { label: '出生日期', value: '-' },
  3004. { label: '文化程度', value: '-' },
  3005. { label: '婚姻状况', value: '-' },
  3006. { label: '身高', value: '-' },
  3007. { label: '户籍地', value: '-' },
  3008. { label: '现住址', value: '-' },
  3009. { label: '工作单位', value: '-' },
  3010. { label: '对象分组', value: '-' },
  3011. ];
  3012. }
  3013. return [
  3014. { label: '身份证', value: fallbackValue(person.personCertNo) },
  3015. { label: '性别', value: fallbackValue(person.personGender) },
  3016. { label: '民族', value: fallbackValue(person.personNation) },
  3017. { label: '年龄', value: fallbackValue(person.personAge) },
  3018. { label: '出生日期', value: fallbackValue(person.personBirth) },
  3019. { label: '文化程度', value: fallbackValue(person.personEducation) },
  3020. { label: '婚姻状况', value: fallbackValue(person.personMarriage) },
  3021. { label: '身高', value: fallbackValue(person.personHeight) },
  3022. { label: '户籍地', value: fallbackValue(person.personResidence) },
  3023. { label: '现住址', value: fallbackValue(person.personAddress) },
  3024. { label: '工作单位', value: fallbackValue(person.personWorkUnit) },
  3025. { label: '对象分组', value: fallbackValue(person.personGroup) },
  3026. ];
  3027. });
  3028. const displayBasicInfo = computed(() =>
  3029. basicInfo.value.filter((item) => item.label !== '身高' && item.label !== '文化程度' && item.label !== '对象分组'),
  3030. );
  3031. const objectGroupText = computed(() => {
  3032. const value = basicInfo.value.find((item) => item.label === '对象分组')?.value;
  3033. return value && value !== '-' ? value : '未分组';
  3034. });
  3035. const basicPhoto = computed(() => getPersonPhoto(selectedPerson.value));
  3036. const basicName = computed(() => {
  3037. return selectedPerson.value?.personName ?? '-';
  3038. });
  3039. const topContacts = computed(() => {
  3040. if (!commTop10Data.value.length) return [];
  3041. const max = Math.max(...commTop10Data.value.map((item) => Number(item.callCount || 0)), 1);
  3042. return commTop10Data.value
  3043. .slice(0, 10)
  3044. .map((item, index) => {
  3045. const count = Number(item.callCount || 0);
  3046. return {
  3047. name: item.otherName || item.otherPhone || `联系人${index + 1}`,
  3048. otherName: item.otherName || '',
  3049. otherPhone: item.otherPhone || '',
  3050. count,
  3051. rate: Math.round((count / max) * 100),
  3052. };
  3053. })
  3054. .filter((item) => String(item.name || '').trim() && Number.isFinite(item.count) && item.count > 0)
  3055. .sort((a, b) => b.count - a.count);
  3056. });
  3057. const commTopRankRows = computed(() => topContacts.value);
  3058. const hasRenderableCommTypeRatioData = computed(() =>
  3059. commTypeRatioData.value.some((item) => String(item.name || '').trim() && Number(item.value || 0) > 0),
  3060. );
  3061. const commTypeLegend = computed(() => {
  3062. const total = Number(callStatData.value?.callCount || 0);
  3063. const colorMap: Record<string, string> = {
  3064. 主叫: '#2a50ec',
  3065. 被叫: '#2ec8d9',
  3066. 其他: '#f6b659',
  3067. };
  3068. const order = ['主叫', '被叫', '其他'];
  3069. return commTypeRatioData.value
  3070. .filter((item) => String(item.name || '').trim() && Number(item.value || 0) > 0)
  3071. .map((item) => {
  3072. const rate = Number(item.value || 0);
  3073. return {
  3074. name: item.name,
  3075. rate: rate.toFixed(2),
  3076. count: total ? Math.round((rate / 100) * total) : 0,
  3077. color: colorMap[item.name] || '#f6b659',
  3078. };
  3079. })
  3080. .sort((a, b) => {
  3081. const indexA = order.indexOf(a.name);
  3082. const indexB = order.indexOf(b.name);
  3083. return (indexA === -1 ? 99 : indexA) - (indexB === -1 ? 99 : indexB);
  3084. });
  3085. });
  3086. const hasRenderableTopContacts = computed(() =>
  3087. topContacts.value.some((item) => String(item.name || '').trim() && Number(item.count || 0) > 0),
  3088. );
  3089. const tradeMetricOptions = ref([
  3090. { label: '交易对方卡(账)号', value: 'otherCardNo' },
  3091. { label: '交易对方', value: 'personName' },
  3092. { label: 'ip地址', value: 'personIpAddress' },
  3093. { label: 'mac地址', value: 'personMacAddress' },
  3094. { label: '交易网点名称', value: 'branchName' },
  3095. ]);
  3096. const getTradeTopNumericValue = (item: TransOftenTop10DTO) => {
  3097. return tradeTopQuery.dimension === '交易金额'
  3098. ? parseMoneyValue(item.transTotalAmount)
  3099. : Number(item.transCount || 0);
  3100. };
  3101. const tradeTop = computed(() => {
  3102. if (!tradeTop10Data.value.length) return [];
  3103. const max = Math.max(...tradeTop10Data.value.map((item) => getTradeTopNumericValue(item)), 1);
  3104. return tradeTop10Data.value
  3105. .map((item, index) => {
  3106. const value = getTradeTopNumericValue(item);
  3107. return {
  3108. name: item.indicator || item.dimension || `对象${index + 1}`,
  3109. filterValue: item.indicator || item.dimension || '',
  3110. value,
  3111. rate: Math.round((value / max) * 100),
  3112. raw: item,
  3113. };
  3114. })
  3115. .sort((a, b) => b.value - a.value);
  3116. });
  3117. const tradeTopRankRows = computed(() => tradeTop.value);
  3118. const carrierTags = computed(() => {
  3119. const operCountMap = callStatData.value?.operCountMap ?? {};
  3120. return Object.entries(operCountMap)
  3121. .map(([carrierName, phones]) => {
  3122. const phoneList = Array.isArray(phones) ? phones.map((item) => String(item || '').trim()).filter(Boolean) : [];
  3123. const name = String(carrierName || '').trim();
  3124. return {
  3125. carrierName: name,
  3126. phoneList,
  3127. carrierCount: phoneList.length,
  3128. operatorId: name,
  3129. label: `${name}(${phoneList.length})`,
  3130. };
  3131. })
  3132. .filter((item) => item.carrierName);
  3133. });
  3134. const tradeBankTags = computed(() => {
  3135. const bankCountMap = transStatData.value?.bankCountMap ?? {};
  3136. return Object.entries(bankCountMap).map(([bankName, cards]) => {
  3137. const cardNoList = Array.isArray(cards) ? cards.map((item) => String(item || '').trim()).filter(Boolean) : [];
  3138. return {
  3139. bankName,
  3140. cardNoList,
  3141. label: `${bankName}(${cardNoList.length})`,
  3142. };
  3143. });
  3144. });
  3145. const commSummary = computed(() => {
  3146. const callStatInfo = callStatData.value;
  3147. const phoneTotal = callStatInfo?.phoneCount ?? 0;
  3148. const callCount = callStatInfo?.callCount;
  3149. const otherCount = callStatInfo?.otherCount;
  3150. const timeRange = callStatInfo?.callDateBnd
  3151. ? String(callStatInfo.callDateBnd).replace(',', '至')
  3152. : callStatInfo?.callDateStart
  3153. ? `${callStatInfo.callDateStart} 至 ${callStatInfo.callDateEnd ?? '-'}`
  3154. : '-';
  3155. return {
  3156. phoneSummary: phoneTotal ? `共计 ${phoneTotal} 个号码` : '-',
  3157. totalCount: callCount ? `${callCount} 次` : '-',
  3158. contactCount: otherCount ? `${otherCount} 个` : '-',
  3159. timeRange,
  3160. };
  3161. });
  3162. const parseMoneyValue = (value: unknown) => {
  3163. if (value === null || value === undefined || value === '') return 0;
  3164. if (typeof value === 'number') return Number.isFinite(value) ? value : 0;
  3165. const num = Number(
  3166. String(value)
  3167. .replace(/[,%¥元\s]/g, '')
  3168. .trim(),
  3169. );
  3170. return Number.isFinite(num) ? num : 0;
  3171. };
  3172. const parsePercentValue = (value: unknown) => {
  3173. if (value === null || value === undefined || value === '') return null;
  3174. const num = Number(
  3175. String(value)
  3176. .replace(/[,%\s]/g, '')
  3177. .trim(),
  3178. );
  3179. return Number.isFinite(num) ? num : null;
  3180. };
  3181. const formatAmountValue = (value: number) => {
  3182. return value.toLocaleString('zh-CN', {
  3183. minimumFractionDigits: 2,
  3184. maximumFractionDigits: 2,
  3185. });
  3186. };
  3187. const formatMoneyText = (value: unknown) => {
  3188. const amount = parseMoneyValue(value);
  3189. return `${formatAmountValue(amount)}元`;
  3190. };
  3191. const formatMoneyHighlightText = (value: unknown) => {
  3192. const amount = parseMoneyValue(value);
  3193. if (amount <= 0) return '-';
  3194. return `¥${formatAmountValue(amount)}`;
  3195. };
  3196. const formatPercentText = (value: unknown, fallback: number) => {
  3197. const raw = value === null || value === undefined ? '' : String(value).trim();
  3198. if (raw) {
  3199. return raw.includes('%') ? raw : `${raw}%`;
  3200. }
  3201. return `${fallback.toFixed(4)}%`;
  3202. };
  3203. const tradeSummary = computed(() => {
  3204. const transStatInfo = transStatData.value;
  3205. const cardCount = transStatInfo?.cardCount ?? 0;
  3206. const balance = transStatInfo?.totalBalance ?? 0;
  3207. const bankCountMap = transStatInfo?.bankCountMap ?? {};
  3208. const banks = Object.entries(bankCountMap).map(
  3209. ([name, cards]) => `${name}(${Array.isArray(cards) ? cards.length : 0})`,
  3210. );
  3211. const infoStat = transStatInfo?.transInfoStat;
  3212. const totalIncome = parseMoneyValue(infoStat?.totalIncome ?? infoStat?.incomeTotalAmount);
  3213. const totalExpend = parseMoneyValue(infoStat?.totalExpend ?? infoStat?.expenseTotalAmount);
  3214. const totalAmount = totalIncome + totalExpend;
  3215. const incomeRate = totalAmount ? Number(((totalIncome / totalAmount) * 100).toFixed(4)) : 0;
  3216. const expendRate = totalAmount ? Number(((totalExpend / totalAmount) * 100).toFixed(4)) : 0;
  3217. const incomeRatio = parsePercentValue(infoStat?.incomeRatio) ?? incomeRate;
  3218. const expendRatio = parsePercentValue(infoStat?.expenseRatio) ?? expendRate;
  3219. const maxExpend = parseMoneyValue(infoStat?.maxExpend ?? infoStat?.maxSingleExpense);
  3220. const maxIncome = parseMoneyValue(infoStat?.maxIncome ?? infoStat?.maxSingleIncome);
  3221. return {
  3222. cardSummary: cardCount ? `共计 ${cardCount} 张卡 总余额约 ${balance} 万` : '-',
  3223. bankTags: banks,
  3224. incomeRate: totalAmount ? formatPercentText(infoStat?.incomeRatio, incomeRate) : '-',
  3225. incomeAmount: formatMoneyText(totalIncome),
  3226. expendRate: totalAmount ? formatPercentText(infoStat?.expenseRatio, expendRate) : '-',
  3227. expendAmount: formatMoneyText(totalExpend),
  3228. maxExpend: formatMoneyHighlightText(maxExpend),
  3229. maxIncome: formatMoneyHighlightText(maxIncome),
  3230. incomeRatio,
  3231. expendRatio,
  3232. incomeValue: totalIncome,
  3233. expendValue: totalExpend,
  3234. };
  3235. });
  3236. const hasTradeSummary = computed(() => {
  3237. const cardCount = Number(transStatData.value?.cardCount ?? 0);
  3238. return cardCount > 0 || tradeBankTags.value.length > 0;
  3239. });
  3240. const hasTradeRatioData = computed(() => {
  3241. return Number(tradeSummary.value.incomeValue || 0) > 0 || Number(tradeSummary.value.expendValue || 0) > 0;
  3242. });
  3243. const parseTrendAmount = (value: unknown) => {
  3244. if (value === null || value === undefined) return 0;
  3245. if (typeof value === 'number') return Number.isFinite(value) ? value : 0;
  3246. const num = Number(String(value).replace(/,/g, '').trim());
  3247. return Number.isFinite(num) ? num : 0;
  3248. };
  3249. const trendSummaryByDate = computed(() => {
  3250. const map = new Map<string, { income: number; expend: number }>();
  3251. tradeTrendData.value.forEach((item: any) => {
  3252. const date = item?.transDate || '-';
  3253. const flag = String(item?.debitCreditFlag || '').trim();
  3254. const amount = parseTrendAmount(item?.transTotalAmount);
  3255. const current = map.get(date) || { income: 0, expend: 0 };
  3256. if (flag === '收入') {
  3257. current.income += amount;
  3258. } else if (flag === '支出') {
  3259. current.expend += amount;
  3260. }
  3261. map.set(date, current);
  3262. });
  3263. return Array.from(map.entries())
  3264. .map(([date, value]) => ({ date, ...value }))
  3265. .sort((a, b) => a.date.localeCompare(b.date));
  3266. });
  3267. const trendLabels = computed(() => trendSummaryByDate.value.map((item) => item.date));
  3268. const trendIncomePoints = computed(() => trendSummaryByDate.value.map((item) => item.income));
  3269. const trendExpendPoints = computed(() => trendSummaryByDate.value.map((item) => item.expend));
  3270. const trendPoints = computed(() => {
  3271. const income = trendIncomePoints.value;
  3272. const expend = trendExpendPoints.value;
  3273. return income.map((v, i) => Math.max(Number(v || 0), Number(expend[i] || 0)));
  3274. });
  3275. const trendChartStyle = computed(() => {
  3276. const widthN = Math.max(1, Math.floor(trendLabels.value.length / 15));
  3277. const basePercent = (widthN + 1) * 100 - 100;
  3278. const widthPercent = tradeTrendQuery.timeDimension === 'YEAR' ? Math.max(220, basePercent) : basePercent;
  3279. const widthPx = tradeTrendQuery.timeDimension === 'YEAR' ? Math.max(1200, trendLabels.value.length * 420) : 0;
  3280. return {
  3281. height: '220px',
  3282. width: tradeTrendQuery.timeDimension === 'YEAR' ? `${widthPx}px` : `${widthPercent}%`,
  3283. minWidth: '100%',
  3284. paddingRight: tradeTrendQuery.timeDimension === 'YEAR' ? '24px' : '0',
  3285. };
  3286. });
  3287. const formatAmount = (value: number | string | null | undefined) => {
  3288. const num = Number(value || 0);
  3289. return num.toLocaleString('zh-CN');
  3290. };
  3291. const buildTooltipCard = ({
  3292. title,
  3293. value,
  3294. color,
  3295. suffix = '',
  3296. subText,
  3297. }: {
  3298. title: string;
  3299. value: string;
  3300. color: string;
  3301. suffix?: string;
  3302. subText?: string;
  3303. }) => {
  3304. const sub = subText
  3305. ? `<div style="font-size:11px; line-height:17px; color:#98a2b3; margin-top:5px;">${subText}</div>`
  3306. : '';
  3307. return [
  3308. '<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);">',
  3309. `<div style="font-size:12px; line-height:18px; color:#5b6577; margin-bottom:6px;">${title}</div>`,
  3310. '<div style="display:flex; align-items:center; gap:7px;">',
  3311. `<span style="width:7px; height:7px; border-radius:50%; background:${color}; display:inline-block;"></span>`,
  3312. `<span style="font-size:13px; line-height:19px; color:#111827; font-weight:600;">${value}${suffix}</span>`,
  3313. '</div>',
  3314. sub,
  3315. '</div>',
  3316. ].join('');
  3317. };
  3318. const getConfinedTooltipPosition = (
  3319. point: number[],
  3320. _params: unknown,
  3321. dom: HTMLElement,
  3322. _rect: unknown,
  3323. size: { viewSize: number[] },
  3324. ) => {
  3325. const [pointX, pointY] = point;
  3326. const [viewWidth, viewHeight] = size.viewSize;
  3327. const cardWidth = dom.offsetWidth || 160;
  3328. const cardHeight = dom.offsetHeight || 96;
  3329. const gap = 10;
  3330. const left = Math.min(Math.max(pointX - cardWidth / 2, gap), Math.max(gap, viewWidth - cardWidth - gap));
  3331. const top = Math.min(Math.max(pointY - cardHeight - 18, gap), Math.max(gap, viewHeight - cardHeight - gap));
  3332. return [left, top];
  3333. };
  3334. const formatTrendAxisValue = (value: number) => {
  3335. const numericValue = Number(value || 0);
  3336. const absValue = Math.abs(numericValue);
  3337. if (absValue >= 100000000) {
  3338. return `${(numericValue / 100000000).toFixed(absValue % 100000000 === 0 ? 0 : 1)}亿`;
  3339. }
  3340. if (absValue >= 10000) {
  3341. return `${(numericValue / 10000).toFixed(absValue % 10000 === 0 ? 0 : 1)}万`;
  3342. }
  3343. return numericValue.toLocaleString('zh-CN');
  3344. };
  3345. const buildTrendTooltipCard = (time: string, params: any[]) => {
  3346. const rowHtml = params
  3347. .filter((item) => item && item.seriesName)
  3348. .map((item) => {
  3349. const color = String(item?.color || (item?.seriesName === '收入' ? '#12b76a' : '#2a50ec'));
  3350. return [
  3351. '<div style="display:flex; align-items:center; justify-content:space-between; gap:18px;">',
  3352. '<span style="display:flex; align-items:center; gap:7px; font-size:12px; line-height:18px; color:#5b6577;">',
  3353. `<span style="width:7px; height:7px; border-radius:50%; background:${color}; display:inline-block;"></span>`,
  3354. `${item.seriesName}`,
  3355. '</span>',
  3356. `<span style="font-size:12px; line-height:18px; color:#111827; font-weight:600;">${formatAmount(item?.value)}元</span>`,
  3357. '</div>',
  3358. ].join('');
  3359. })
  3360. .join('<div style="height:6px;"></div>');
  3361. if (!rowHtml) return '';
  3362. return [
  3363. '<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);">',
  3364. '<div style="display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px;">',
  3365. `<span style="font-size:12px; line-height:18px; color:#111827; font-weight:600;">${time}</span>`,
  3366. `<span style="font-size:11px; line-height:16px; color:#2a50ec; cursor:pointer;" onclick='window._handleTrendDetail(${JSON.stringify(time)})'>查看详情</span>`,
  3367. '</div>',
  3368. rowHtml,
  3369. '</div>',
  3370. ].join('');
  3371. };
  3372. const wrapAxisLabel = (value: string, maxCharsPerLine = 5) => {
  3373. const chars = Array.from(value || '');
  3374. if (chars.length <= maxCharsPerLine) return value;
  3375. const lines: string[] = [];
  3376. for (let index = 0; index < chars.length; index += maxCharsPerLine) {
  3377. lines.push(chars.slice(index, index + maxCharsPerLine).join(''));
  3378. }
  3379. return lines.join('\n');
  3380. };
  3381. const resolveAxisLabelCharsPerLine = (container: HTMLElement | null | undefined, itemCount: number, fallback = 5) => {
  3382. const width = container?.clientWidth || 0;
  3383. if (!width || itemCount <= 0) return fallback;
  3384. const usableWidth = Math.max(width - 72, 0);
  3385. const slotWidth = usableWidth / Math.max(itemCount, 1);
  3386. const approximateCharWidth = 7.5;
  3387. const charsPerLine = Math.floor(slotWidth / approximateCharWidth);
  3388. return Math.max(4, Math.min(24, charsPerLine || fallback));
  3389. };
  3390. const formatTradeTopAxisLabel = (value: string, maxCharsPerLine = 5, maxLines = 2) => {
  3391. const chars = Array.from(value || '');
  3392. if (!chars.length) return '';
  3393. const normalizedCharsPerLine = Math.max(4, maxCharsPerLine);
  3394. const normalizedMaxLines = Math.max(1, maxLines);
  3395. const maxChars = normalizedCharsPerLine * normalizedMaxLines;
  3396. if (chars.length <= maxChars) {
  3397. return wrapAxisLabel(value, normalizedCharsPerLine);
  3398. }
  3399. const visibleChars = chars.slice(0, Math.max(maxChars - 1, 1));
  3400. const truncatedValue = `${visibleChars.join('')}…`;
  3401. return wrapAxisLabel(truncatedValue, normalizedCharsPerLine);
  3402. };
  3403. const getTradeTopAxisMax = (maxValue: number) => {
  3404. if (maxValue <= 0) return 1;
  3405. const magnitude = 10 ** Math.floor(Math.log10(maxValue));
  3406. return Math.ceil((maxValue * 1.15) / magnitude) * magnitude;
  3407. };
  3408. const getNiceAxisInterval = (maxValue: number, targetSplitCount = 5) => {
  3409. if (maxValue <= 0) return 1;
  3410. const safeSplitCount = Math.max(1, targetSplitCount);
  3411. const roughInterval = maxValue / safeSplitCount;
  3412. const magnitude = 10 ** Math.floor(Math.log10(roughInterval));
  3413. const normalized = roughInterval / magnitude;
  3414. if (normalized <= 1) return magnitude;
  3415. if (normalized <= 2) return 2 * magnitude;
  3416. if (normalized <= 2.5) return 2.5 * magnitude;
  3417. if (normalized <= 5) return 5 * magnitude;
  3418. return 10 * magnitude;
  3419. };
  3420. const getCommTopAxisInterval = (maxValue: number) => {
  3421. return Math.max(1, Math.ceil(getNiceAxisInterval(maxValue, 5)));
  3422. };
  3423. const getCommTopAxisMax = (maxValue: number) => {
  3424. const interval = getCommTopAxisInterval(maxValue);
  3425. return Math.max(interval, Math.ceil(maxValue / interval) * interval);
  3426. };
  3427. const formatTradeTopValue = (value: number) => {
  3428. if (tradeTopQuery.dimension === '交易金额') {
  3429. return `${value.toLocaleString('zh-CN', { maximumFractionDigits: 2 })} 元`;
  3430. }
  3431. return `${value.toLocaleString('zh-CN')} 次`;
  3432. };
  3433. const formatTradeRankValue = (value: number) => {
  3434. if (tradeTopQuery.dimension === '交易金额') {
  3435. return `¥${formatAmountValue(value)}`;
  3436. }
  3437. return `${Number(value || 0).toLocaleString('zh-CN')} 次`;
  3438. };
  3439. const changeLegend = (title: string, index: number) => {
  3440. trendLegendArr.value[index].isShow = !trendLegendArr.value[index].isShow;
  3441. tradeTrendChart?.dispatchAction({
  3442. type: 'legendToggleSelect',
  3443. name: title,
  3444. });
  3445. };
  3446. const handleTrendDetail = async (name: string) => {
  3447. const baseQuery: Partial<TransRecordQuery> = {};
  3448. if (tradeTrendQuery.timeDimension === 'YEAR') {
  3449. baseQuery.startDate = `${name}-01-01`;
  3450. baseQuery.endDate = `${name}-12-31`;
  3451. } else {
  3452. baseQuery.startDate = `${name}-01`;
  3453. const [yearStr, monthStr] = name.split('-');
  3454. const year = Number(yearStr || 0);
  3455. const month = Number(monthStr || 1);
  3456. const lastDay = new Date(year, month, 0).getDate();
  3457. baseQuery.endDate = `${name}-${String(lastDay).padStart(2, '0')}`;
  3458. }
  3459. const startDate = tradeTrendQuery.dateRange?.[0];
  3460. const endDate = tradeTrendQuery.dateRange?.[1];
  3461. if (startDate && endDate) {
  3462. baseQuery.startDate = startDate;
  3463. baseQuery.endDate = endDate;
  3464. }
  3465. const otherName = String(tradeTrendQuery.otherName || '').trim();
  3466. if (otherName) {
  3467. baseQuery.otherName = otherName;
  3468. }
  3469. openTransRecordDrilldown(baseQuery);
  3470. };
  3471. const openCallSummaryFromTopContacts = async () => {
  3472. await openCallSummaryWithFilters({}, { useCommTopDateRange: true });
  3473. };
  3474. const initCommTypeChart = () => {
  3475. if (!commTypeChartRef.value || !hasRenderableCommTypeRatioData.value) return;
  3476. if (commTypeChart && commTypeChart.getDom() !== commTypeChartRef.value) {
  3477. commTypeChart.dispose();
  3478. commTypeChart = null;
  3479. }
  3480. if (!commTypeChart) commTypeChart = echarts.init(commTypeChartRef.value);
  3481. const pieData = commTypeRatioData.value.map((item) => ({
  3482. ...item,
  3483. rawName: item.name,
  3484. itemStyle: {
  3485. // 图表统一使用纯色,主叫取项目主蓝
  3486. color: item.name === '主叫' ? '#2a50ec' : item.name === '被叫' ? '#2ec8d9' : '#f6b659',
  3487. },
  3488. }));
  3489. const option: echarts.EChartsOption = {
  3490. backgroundColor: 'transparent',
  3491. title: {
  3492. text: String(Number(callStatData.value?.callCount || 0)),
  3493. subtext: '通话总数',
  3494. left: 'center',
  3495. top: 'center',
  3496. textStyle: {
  3497. color: '#111827',
  3498. fontSize: 26,
  3499. fontWeight: 600,
  3500. lineHeight: 30,
  3501. },
  3502. subtextStyle: {
  3503. color: '#98a2b3',
  3504. fontSize: 11,
  3505. lineHeight: 16,
  3506. },
  3507. itemGap: 2,
  3508. },
  3509. tooltip: {
  3510. trigger: 'item',
  3511. confine: true,
  3512. backgroundColor: 'transparent',
  3513. borderWidth: 0,
  3514. padding: 0,
  3515. extraCssText: 'box-shadow:none;background:transparent;',
  3516. position: getConfinedTooltipPosition,
  3517. formatter: (params: any) => {
  3518. const rawName = String(params?.data?.rawName || params?.name || '');
  3519. const value = Number(params?.value || 0).toFixed(2);
  3520. return buildTooltipCard({
  3521. title: rawName,
  3522. value,
  3523. color: String(params?.color || '#2a50ec'),
  3524. suffix: '%',
  3525. });
  3526. },
  3527. },
  3528. legend: {
  3529. show: false,
  3530. },
  3531. series: [
  3532. {
  3533. type: 'pie',
  3534. center: ['50%', '50%'],
  3535. radius: ['58%', '80%'],
  3536. avoidLabelOverlap: false,
  3537. emphasis: {
  3538. scale: false,
  3539. },
  3540. itemStyle: {
  3541. borderWidth: 3,
  3542. borderColor: '#ffffff',
  3543. },
  3544. labelLine: { show: false },
  3545. label: { show: false },
  3546. data: pieData,
  3547. },
  3548. ],
  3549. };
  3550. commTypeChart.setOption(option, true);
  3551. commTypeChart.off('click');
  3552. commTypeChart.on('click', (params: any) => {
  3553. void (async () => {
  3554. const rawName = String(params?.data?.rawName || '');
  3555. const n = rawName || String(params?.data?.name || '');
  3556. const callDirection = n.includes('主叫') ? '主叫' : n.includes('被叫') ? '被叫' : '';
  3557. openCallRecordWithFilters(callDirection ? { callDirection } : {}, { omitPersonPhones: true });
  3558. })();
  3559. });
  3560. };
  3561. const initCommTopChart = () => {
  3562. if (!commTopChartRef.value || !hasRenderableTopContacts.value) return;
  3563. if (commTopChart && commTopChart.getDom() !== commTopChartRef.value) {
  3564. commTopChart.dispose();
  3565. commTopChart = null;
  3566. }
  3567. if (!commTopChart) commTopChart = echarts.init(commTopChartRef.value);
  3568. const xData = topContacts.value.map((v) => v.name);
  3569. const yData = topContacts.value.map((v) => Number(v.count || 0));
  3570. const maxValue = Math.max(...yData, 0);
  3571. const axisInterval = getCommTopAxisInterval(maxValue);
  3572. const axisMax = getCommTopAxisMax(maxValue);
  3573. const labelCharsPerLine = resolveAxisLabelCharsPerLine(commTopChartRef.value, xData.length, 5);
  3574. const option: echarts.EChartsOption = {
  3575. backgroundColor: 'transparent',
  3576. tooltip: {
  3577. trigger: 'item',
  3578. confine: true,
  3579. backgroundColor: 'transparent',
  3580. borderWidth: 0,
  3581. padding: 0,
  3582. extraCssText: 'box-shadow:none;background:transparent;',
  3583. position: getConfinedTooltipPosition,
  3584. formatter: (params: any) => {
  3585. const name = String(params?.name || '');
  3586. const value = Number(params?.value || 0);
  3587. return buildTooltipCard({
  3588. title: name,
  3589. value: value.toLocaleString('zh-CN'),
  3590. color: '#2a50ec',
  3591. subText: '联系次数',
  3592. });
  3593. },
  3594. },
  3595. grid: { top: 42, left: 18, right: 24, bottom: 8, outerBoundsMode: 'same', outerBoundsContain: 'axisLabel' },
  3596. xAxis: [
  3597. {
  3598. type: 'category',
  3599. data: xData,
  3600. axisTick: {
  3601. alignWithLabel: true,
  3602. lineStyle: {
  3603. color: '#8d95a3',
  3604. },
  3605. },
  3606. axisLine: { lineStyle: { color: '#8d95a3' } },
  3607. axisLabel: {
  3608. interval: 0,
  3609. color: '#6b7280',
  3610. fontSize: 12,
  3611. lineHeight: 16,
  3612. margin: 10,
  3613. formatter: (value: string) => wrapAxisLabel(value, labelCharsPerLine),
  3614. },
  3615. },
  3616. ],
  3617. yAxis: [
  3618. {
  3619. name: '次数',
  3620. type: 'value',
  3621. min: 0,
  3622. max: axisMax,
  3623. minInterval: 1,
  3624. interval: axisInterval,
  3625. splitNumber: Math.min(6, Math.max(1, Math.round(axisMax / axisInterval))),
  3626. nameLocation: 'end',
  3627. nameRotate: 0,
  3628. nameGap: 14,
  3629. nameTextStyle: {
  3630. color: '#6b7280',
  3631. fontSize: 12,
  3632. align: 'left',
  3633. padding: [0, 0, 0, -8],
  3634. },
  3635. axisLine: { show: false },
  3636. axisTick: { show: false },
  3637. axisLabel: {
  3638. color: '#6b7280',
  3639. formatter: (value: number) => value.toLocaleString('zh-CN'),
  3640. },
  3641. splitLine: {
  3642. lineStyle: {
  3643. color: '#dde5f2',
  3644. },
  3645. },
  3646. },
  3647. ],
  3648. series: [
  3649. {
  3650. type: 'bar',
  3651. barWidth: 34,
  3652. data: yData,
  3653. itemStyle: {
  3654. borderRadius: [6, 6, 0, 0],
  3655. // 纯色柱:不使用任何渐变
  3656. color: '#2a50ec',
  3657. },
  3658. emphasis: {
  3659. itemStyle: {
  3660. color: '#0958d9',
  3661. },
  3662. },
  3663. },
  3664. ],
  3665. };
  3666. commTopChart.setOption(option, true);
  3667. commTopChart.getZr().off('click');
  3668. commTopChart.getZr().on('click', (params: any) => {
  3669. void (async () => {
  3670. const pointInPixel = [params.offsetX, params.offsetY];
  3671. const pointInGrid = commTopChart!.convertFromPixel({ seriesIndex: 0 }, pointInPixel) as number[];
  3672. const dataIndex = pointInGrid?.[0];
  3673. const row = topContacts.value[dataIndex];
  3674. if (!row) return;
  3675. const baseQuery: Partial<CallRecordQuery> = row.otherPhone
  3676. ? {
  3677. otherPhones: [row.otherPhone],
  3678. }
  3679. : row.otherName
  3680. ? {
  3681. otherName: row.otherName,
  3682. }
  3683. : {};
  3684. openCallRecordWithFilters(baseQuery, { useCommTopDateRange: true, omitPersonPhones: true });
  3685. })();
  3686. });
  3687. requestAnimationFrame(() => {
  3688. commTopChart?.resize();
  3689. });
  3690. };
  3691. const initTradeRatioChart = () => {
  3692. if (!tradeRatioChartRef.value || !hasTradeRatioData.value) return;
  3693. if (tradeRatioChart && tradeRatioChart.getDom() !== tradeRatioChartRef.value) {
  3694. tradeRatioChart.dispose();
  3695. tradeRatioChart = null;
  3696. }
  3697. if (!tradeRatioChart) tradeRatioChart = echarts.init(tradeRatioChartRef.value);
  3698. const income = Number(tradeSummary.value.incomeValue || 0);
  3699. const expend = Number(tradeSummary.value.expendValue || 0);
  3700. const option: echarts.EChartsOption = {
  3701. backgroundColor: 'transparent',
  3702. tooltip: {
  3703. trigger: 'item',
  3704. confine: true,
  3705. backgroundColor: 'transparent',
  3706. borderWidth: 0,
  3707. padding: 0,
  3708. extraCssText: 'box-shadow:none;background:transparent;',
  3709. position: getConfinedTooltipPosition,
  3710. formatter: (params: any) => {
  3711. const name = String(params?.name || '');
  3712. const value = Number(params?.value || 0);
  3713. const ratio = Number(params?.percent || 0);
  3714. return buildTooltipCard({
  3715. title: name,
  3716. value: `${formatAmountValue(value)}元`,
  3717. color: String(params?.color || '#12b76a'),
  3718. subText: `占比 ${ratio.toFixed(4)}%`,
  3719. });
  3720. },
  3721. },
  3722. legend: { show: false },
  3723. series: [
  3724. {
  3725. type: 'pie',
  3726. radius: ['56%', '82%'],
  3727. center: ['50%', '50%'],
  3728. avoidLabelOverlap: false,
  3729. emphasis: {
  3730. scale: false,
  3731. },
  3732. itemStyle: {
  3733. borderWidth: 3,
  3734. borderColor: '#ffffff',
  3735. },
  3736. label: { show: false },
  3737. labelLine: { show: false },
  3738. data: [
  3739. { value: income, name: '收入', itemStyle: { color: '#12b76a' } },
  3740. { value: expend, name: '支出', itemStyle: { color: '#2a50ec' } },
  3741. ].filter((item) => item.value > 0),
  3742. },
  3743. ],
  3744. };
  3745. tradeRatioChart.setOption(option, true);
  3746. tradeRatioChart.off('click');
  3747. tradeRatioChart.on('click', (params: any) => {
  3748. const name = String(params?.name || '');
  3749. if (name === '收入' || name === '支出') {
  3750. void handleDrillByDebitCredit(name as '收入' | '支出');
  3751. }
  3752. });
  3753. requestAnimationFrame(() => {
  3754. tradeRatioChart?.resize();
  3755. });
  3756. };
  3757. const initTradeTopChart = () => {
  3758. if (!tradeTopChartRef.value || !tradeTop.value.length) return;
  3759. if (tradeTopChart && tradeTopChart.getDom() !== tradeTopChartRef.value) {
  3760. tradeTopChart.dispose();
  3761. tradeTopChart = null;
  3762. }
  3763. if (!tradeTopChart) tradeTopChart = echarts.init(tradeTopChartRef.value);
  3764. const xData = tradeTop.value.map((v) => v.name);
  3765. const yData = tradeTop.value.map((v) => Number(v.value || 0));
  3766. const maxValue = Math.max(...yData, 0);
  3767. const labelCharsPerLine = resolveAxisLabelCharsPerLine(tradeTopChartRef.value, xData.length, 5);
  3768. const option: echarts.EChartsOption = {
  3769. backgroundColor: 'transparent',
  3770. tooltip: {
  3771. trigger: 'item',
  3772. backgroundColor: 'transparent',
  3773. borderWidth: 0,
  3774. padding: 0,
  3775. extraCssText: 'box-shadow:none;background:transparent;',
  3776. formatter: (params: any) => {
  3777. const name = String(params?.name || '');
  3778. const value = Number(params?.value || 0);
  3779. return buildTooltipCard({
  3780. title: name,
  3781. value: formatTradeTopValue(value),
  3782. color: '#2a50ec',
  3783. subText: tradeTopQuery.dimension,
  3784. });
  3785. },
  3786. },
  3787. grid: { top: 48, left: 20, right: 24, bottom: 64, outerBoundsMode: 'same', outerBoundsContain: 'axisLabel' },
  3788. xAxis: [
  3789. {
  3790. type: 'category',
  3791. data: xData,
  3792. axisTick: { alignWithLabel: true },
  3793. axisLine: { lineStyle: { color: '#8d95a3' } },
  3794. axisLabel: {
  3795. interval: 0,
  3796. color: '#6b7280',
  3797. fontSize: 12,
  3798. lineHeight: 16,
  3799. margin: 10,
  3800. formatter: (value: string) => formatTradeTopAxisLabel(value, labelCharsPerLine, 2),
  3801. },
  3802. },
  3803. ],
  3804. yAxis: [
  3805. {
  3806. name: tradeTopQuery.dimension === '交易金额' ? '金额' : '次数',
  3807. type: 'value',
  3808. min: 0,
  3809. max: getTradeTopAxisMax(maxValue),
  3810. splitNumber: 5,
  3811. nameLocation: 'end',
  3812. nameRotate: 0,
  3813. nameGap: 18,
  3814. nameTextStyle: {
  3815. color: '#6b7280',
  3816. fontSize: 12,
  3817. align: 'left',
  3818. padding: [0, 0, 0, -8],
  3819. },
  3820. axisLine: { show: false },
  3821. axisTick: { show: false },
  3822. axisLabel: {
  3823. color: '#6b7280',
  3824. formatter: (value: number) => value.toLocaleString('zh-CN'),
  3825. },
  3826. splitLine: {
  3827. lineStyle: {
  3828. color: '#dde5f2',
  3829. },
  3830. },
  3831. },
  3832. ],
  3833. series: [
  3834. {
  3835. type: 'bar',
  3836. barWidth: 36,
  3837. data: yData,
  3838. itemStyle: {
  3839. borderRadius: [6, 6, 0, 0],
  3840. // 纯色柱:常交易对象 TOP10 使用项目主蓝,禁止渐变
  3841. color: '#2a50ec',
  3842. },
  3843. emphasis: {
  3844. itemStyle: {
  3845. color: '#0958d9',
  3846. },
  3847. },
  3848. },
  3849. ],
  3850. };
  3851. tradeTopChart.setOption(option, true);
  3852. tradeTopChart.getZr().off('click');
  3853. tradeTopChart.getZr().on('click', (params: any) => {
  3854. void (async () => {
  3855. if (!tradeTop10Data.value.length) return;
  3856. const pointInPixel = [params.offsetX, params.offsetY];
  3857. const pointInGrid = tradeTopChart!.convertFromPixel({ seriesIndex: 0 }, pointInPixel) as number[];
  3858. const dataIndex = pointInGrid?.[0];
  3859. const row = tradeTop.value[dataIndex];
  3860. if (!row) return;
  3861. handleDrillByTradeTop(row);
  3862. })();
  3863. });
  3864. requestAnimationFrame(() => {
  3865. tradeTopChart?.resize();
  3866. });
  3867. };
  3868. const initTradeTrendChart = () => {
  3869. if (!tradeTrendChartRef.value) return;
  3870. if (tradeTrendChart) {
  3871. tradeTrendChart.dispose();
  3872. tradeTrendChart = null;
  3873. }
  3874. tradeTrendChart = echarts.init(tradeTrendChartRef.value);
  3875. const option: echarts.EChartsOption = {
  3876. backgroundColor: 'transparent',
  3877. tooltip: {
  3878. backgroundColor: 'transparent',
  3879. borderWidth: 0,
  3880. padding: 0,
  3881. extraCssText: 'box-shadow:none;background:transparent;',
  3882. position: (pt: number[], _params: any, _dom: any, _rect: any, size: any) => {
  3883. const [width] = size?.contentSize || [0];
  3884. return [pt[0] - width / 2, pt[1] + 10];
  3885. },
  3886. trigger: 'axis',
  3887. axisPointer: {
  3888. type: 'line',
  3889. lineStyle: {
  3890. // 指示线跟随项目主蓝,替代原来的暖橙色
  3891. color: 'rgba(42, 80, 236, 0.35)',
  3892. width: 1.5,
  3893. type: 'dashed',
  3894. },
  3895. },
  3896. showContent: true,
  3897. alwaysShowContent: false,
  3898. showDelay: 0,
  3899. hideDelay: 1000,
  3900. enterable: true,
  3901. confine: false,
  3902. transitionDuration: 0.4,
  3903. formatter: (params: any) => {
  3904. const list = Array.isArray(params) ? params : [params];
  3905. const time = list[0]?.axisValueLabel || list[0]?.name || '-';
  3906. return buildTrendTooltipCard(time, list);
  3907. },
  3908. },
  3909. legend: {
  3910. show: false,
  3911. data: ['收入', '支出'],
  3912. selected: {
  3913. 收入: trendLegendArr.value[0]?.isShow ?? true,
  3914. 支出: trendLegendArr.value[1]?.isShow ?? true,
  3915. },
  3916. },
  3917. grid: {
  3918. left: 44,
  3919. right: 24,
  3920. bottom: 30,
  3921. top: 18,
  3922. outerBoundsMode: 'same',
  3923. outerBoundsContain: 'axisLabel',
  3924. },
  3925. xAxis: {
  3926. type: 'category',
  3927. boundaryGap: false,
  3928. data: trendLabels.value,
  3929. axisLine: {
  3930. lineStyle: {
  3931. color: '#e5e7eb',
  3932. },
  3933. },
  3934. axisTick: { show: false },
  3935. axisLabel: {
  3936. interval: 0,
  3937. color: '#6b7280',
  3938. fontSize: 12,
  3939. margin: 16,
  3940. formatter: (value: string) => {
  3941. const maxLength = tradeTrendQuery.timeDimension === 'YEAR' ? 4 : 7;
  3942. const val = String(value ?? '');
  3943. const rowN = Math.ceil(val.length / maxLength);
  3944. if (rowN <= 1) return val;
  3945. let ret = '';
  3946. for (let i = 0; i < rowN; i++) {
  3947. ret += val.substring(i * maxLength, (i + 1) * maxLength) + '\n';
  3948. }
  3949. return ret;
  3950. },
  3951. },
  3952. },
  3953. yAxis: {
  3954. type: 'value',
  3955. axisLine: { show: false },
  3956. axisTick: { show: false },
  3957. axisLabel: {
  3958. color: '#6b7280',
  3959. fontSize: 12,
  3960. formatter: (value: number) => formatTrendAxisValue(value),
  3961. },
  3962. splitNumber: 5,
  3963. splitLine: {
  3964. lineStyle: {
  3965. color: '#eef2f7',
  3966. type: 'dashed',
  3967. },
  3968. },
  3969. },
  3970. series: [
  3971. {
  3972. name: '收入',
  3973. type: 'line',
  3974. smooth: true,
  3975. symbol: 'circle',
  3976. symbolSize: 8,
  3977. showSymbol: false,
  3978. itemStyle: {
  3979. color: '#12b76a',
  3980. borderColor: '#ffffff',
  3981. borderWidth: 2,
  3982. },
  3983. lineStyle: { width: 2.5, color: '#12b76a' },
  3984. areaStyle: {
  3985. // 纯色低透明度填充(禁止渐变)
  3986. color: 'rgba(18, 183, 106, 0.10)',
  3987. },
  3988. emphasis: {
  3989. focus: 'series',
  3990. },
  3991. data: trendIncomePoints.value,
  3992. },
  3993. {
  3994. name: '支出',
  3995. type: 'line',
  3996. smooth: true,
  3997. symbol: 'circle',
  3998. symbolSize: 8,
  3999. showSymbol: false,
  4000. itemStyle: {
  4001. color: '#2a50ec',
  4002. borderColor: '#ffffff',
  4003. borderWidth: 2,
  4004. },
  4005. lineStyle: { width: 2.5, color: '#2a50ec' },
  4006. areaStyle: {
  4007. // 纯色低透明度填充(禁止渐变)
  4008. color: 'rgba(42, 80, 236, 0.10)',
  4009. },
  4010. emphasis: {
  4011. focus: 'series',
  4012. },
  4013. data: trendExpendPoints.value,
  4014. },
  4015. ],
  4016. };
  4017. tradeTrendChart.setOption(option, true);
  4018. (window as any)._handleTrendDetail = handleTrendDetail;
  4019. };
  4020. watch(
  4021. () => [trendLabels.value, trendIncomePoints.value, trendExpendPoints.value],
  4022. async () => {
  4023. if (!trendLabels.value.length) return;
  4024. await nextTick();
  4025. setupChartResizeObserver();
  4026. if (!tradeTrendChartRef.value) return;
  4027. initTradeTrendChart();
  4028. requestAnimationFrame(() => {
  4029. tradeTrendChart?.resize();
  4030. });
  4031. if (tradeTrendScrollRef.value) {
  4032. tradeTrendScrollRef.value.scrollLeft = 0;
  4033. }
  4034. },
  4035. { deep: true },
  4036. );
  4037. watch(
  4038. () => [
  4039. String(tradeTrendQuery.otherName || '').trim(),
  4040. tradeTrendQuery.dateRange?.[0],
  4041. tradeTrendQuery.dateRange?.[1],
  4042. tradeTrendQuery.timeDimension,
  4043. ],
  4044. () => {
  4045. const personName = selectedPerson.value?.personName;
  4046. if (!personName) {
  4047. tradeTrendData.value = [];
  4048. return;
  4049. }
  4050. scheduleTradeTrendSearch(tradeTrendQuery.timeDimension === 'YEAR' ? 0 : 240);
  4051. },
  4052. );
  4053. watch(
  4054. () => selectedPerson.value?.personName || '',
  4055. (personName) => {
  4056. resetTradeTrendOtherNameState();
  4057. if (!personName) return;
  4058. const currentValue = String(tradeTrendQuery.otherName || '').trim();
  4059. if (currentValue) {
  4060. setTradeTrendOtherNameOptions([currentValue], true);
  4061. }
  4062. void loadTradeTrendOtherNameOptions({ reset: true, search: '' });
  4063. },
  4064. );
  4065. watch(
  4066. () => tradeTrendChartRef.value,
  4067. async (el) => {
  4068. if (!el || !trendLabels.value.length) return;
  4069. await nextTick();
  4070. setupChartResizeObserver();
  4071. initTradeTrendChart();
  4072. requestAnimationFrame(() => {
  4073. tradeTrendChart?.resize();
  4074. });
  4075. },
  4076. );
  4077. watch(
  4078. () => [tradeSummary.value.incomeValue, tradeSummary.value.expendValue, tradeRatioChartRef.value],
  4079. async () => {
  4080. if (!hasTradeRatioData.value || !tradeRatioChartRef.value) {
  4081. if (tradeRatioChart) {
  4082. tradeRatioChart.dispose();
  4083. tradeRatioChart = null;
  4084. }
  4085. return;
  4086. }
  4087. await nextTick();
  4088. setupChartResizeObserver();
  4089. initTradeRatioChart();
  4090. },
  4091. );
  4092. watch(
  4093. () => tradeTop.value,
  4094. async () => {
  4095. await nextTick();
  4096. setupChartResizeObserver();
  4097. if (!tradeTop.value.length || !tradeTopChartRef.value) return;
  4098. initTradeTopChart();
  4099. },
  4100. { deep: true },
  4101. );
  4102. watch(
  4103. () => [
  4104. tradeTopQuery.indicator,
  4105. tradeTopQuery.dimension,
  4106. tradeTopQuery.dateRange?.[0],
  4107. tradeTopQuery.dateRange?.[1],
  4108. ],
  4109. async () => {
  4110. const personName = selectedPerson.value?.personName;
  4111. if (!personName) {
  4112. tradeTop10Data.value = [];
  4113. return;
  4114. }
  4115. try {
  4116. tradeTop10Data.value = await loadTradeTopData(personName);
  4117. } catch (error) {
  4118. console.error('获取常交易对象TOP10失败', error);
  4119. tradeTop10Data.value = [];
  4120. }
  4121. },
  4122. );
  4123. watch(
  4124. () => [hasRenderableCommTypeRatioData.value, commTypeRatioData.value, commTypeChartRef.value],
  4125. async () => {
  4126. if (!hasRenderableCommTypeRatioData.value || !commTypeChartRef.value) {
  4127. if (commTypeChart) {
  4128. commTypeChart.dispose();
  4129. commTypeChart = null;
  4130. }
  4131. return;
  4132. }
  4133. await nextTick();
  4134. setupChartResizeObserver();
  4135. initCommTypeChart();
  4136. requestAnimationFrame(() => {
  4137. commTypeChart?.resize();
  4138. });
  4139. },
  4140. { deep: true },
  4141. );
  4142. watch(
  4143. () => [hasRenderableTopContacts.value, topContacts.value, commTopChartRef.value],
  4144. async () => {
  4145. if (!hasRenderableTopContacts.value || !commTopChartRef.value) {
  4146. if (commTopChart) {
  4147. commTopChart.dispose();
  4148. commTopChart = null;
  4149. }
  4150. return;
  4151. }
  4152. await nextTick();
  4153. setupChartResizeObserver();
  4154. initCommTopChart();
  4155. },
  4156. { deep: true },
  4157. );
  4158. watch(
  4159. () => [commTopQuery.dateRange?.[0], commTopQuery.dateRange?.[1]],
  4160. async () => {
  4161. const personName = selectedPerson.value?.personName;
  4162. if (!personName) {
  4163. commTop10Data.value = [];
  4164. return;
  4165. }
  4166. try {
  4167. commTop10Data.value = await loadCommTopData(personName);
  4168. } catch (error) {
  4169. console.error('获取常联系对象TOP10失败', error);
  4170. commTop10Data.value = [];
  4171. }
  4172. },
  4173. );
  4174. const stations = computed(() => {
  4175. if (!stationData.value.length) return [];
  4176. return stationData.value
  4177. .filter((item): item is CallStatStationDTO => !!item && typeof item === 'object')
  4178. .map((item) => {
  4179. if (item.personStationName) return item.personStationName;
  4180. const regionId = item.personRegionId || '';
  4181. const cellId = item.personCellId || '';
  4182. if (regionId && cellId) return `${regionId}-${cellId}`;
  4183. return regionId || cellId || '-';
  4184. })
  4185. .filter(Boolean)
  4186. .slice(0, stationDisplayLimit);
  4187. });
  4188. </script>
  4189. <style lang="less">
  4190. @prefix-cls: ~'jeesite-case-portrait';
  4191. .@{prefix-cls}.case-portrait-page {
  4192. padding: 0;
  4193. background: #f5f6f8;
  4194. height: 100%;
  4195. width: calc(100% + 24px);
  4196. margin: 0 -12px;
  4197. box-sizing: border-box;
  4198. overflow: hidden;
  4199. .page-main {
  4200. position: relative;
  4201. display: flex;
  4202. flex-direction: column;
  4203. gap: 12px;
  4204. min-width: 0;
  4205. height: 100%;
  4206. padding: 16px 0;
  4207. box-sizing: border-box;
  4208. overflow: hidden;
  4209. }
  4210. .page-layout {
  4211. display: grid;
  4212. grid-template-columns: 196px minmax(0, 1fr);
  4213. gap: 16px;
  4214. align-items: start;
  4215. flex: 1 1 auto;
  4216. min-height: 0;
  4217. }
  4218. .left-panel {
  4219. position: sticky;
  4220. top: 0;
  4221. align-self: start;
  4222. height: calc(100vh - 100px);
  4223. max-height: calc(100vh - 100px);
  4224. .panel-card {
  4225. position: relative;
  4226. overflow: hidden;
  4227. background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  4228. border: 1px solid #dfe9fb;
  4229. border-radius: 22px;
  4230. padding: 16px 14px 18px;
  4231. display: flex;
  4232. flex-direction: column;
  4233. gap: 14px;
  4234. box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  4235. height: 100%;
  4236. box-sizing: border-box;
  4237. &::before {
  4238. content: '';
  4239. position: absolute;
  4240. left: -12px;
  4241. top: -24px;
  4242. width: 180px;
  4243. height: 140px;
  4244. background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0) 74%);
  4245. pointer-events: none;
  4246. }
  4247. }
  4248. .search-box {
  4249. position: relative;
  4250. z-index: 1;
  4251. .ant-input,
  4252. .ant-input-affix-wrapper {
  4253. height: 40px;
  4254. border-radius: 999px;
  4255. border-color: #d8e4fb;
  4256. background: rgba(255, 255, 255, 0.92);
  4257. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  4258. padding-inline: 14px;
  4259. }
  4260. .ant-input-affix-wrapper {
  4261. display: flex;
  4262. align-items: center;
  4263. overflow: hidden;
  4264. box-sizing: border-box;
  4265. }
  4266. .ant-input-affix-wrapper > .ant-input {
  4267. height: 100%;
  4268. padding: 0;
  4269. border: 0;
  4270. border-radius: 0;
  4271. background: transparent;
  4272. box-shadow: none;
  4273. }
  4274. .ant-input-affix-wrapper .ant-input-suffix,
  4275. .ant-input-affix-wrapper .ant-input-clear-icon {
  4276. display: inline-flex;
  4277. align-items: center;
  4278. }
  4279. .ant-input:focus,
  4280. .ant-input-focused,
  4281. .ant-input-affix-wrapper-focused {
  4282. border-color: #8ab4ff;
  4283. box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
  4284. }
  4285. }
  4286. .left-actions {
  4287. display: flex;
  4288. position: relative;
  4289. z-index: 1;
  4290. .ant-btn {
  4291. height: 40px;
  4292. border: 0;
  4293. border-radius: 999px;
  4294. font-weight: 600;
  4295. letter-spacing: 0.04em;
  4296. background: linear-gradient(135deg, #2f7df6 0%, #56b1ff 100%);
  4297. box-shadow: 0 12px 22px rgba(59, 130, 246, 0.24);
  4298. }
  4299. }
  4300. .person-list {
  4301. position: relative;
  4302. display: flex;
  4303. flex-direction: column;
  4304. align-items: stretch;
  4305. gap: 8px;
  4306. flex: 1;
  4307. overflow-y: auto;
  4308. overflow-x: hidden;
  4309. min-height: 0;
  4310. padding: 4px 2px 0 0;
  4311. &::before {
  4312. display: none;
  4313. }
  4314. &::-webkit-scrollbar {
  4315. width: 4px;
  4316. }
  4317. &::-webkit-scrollbar-thumb {
  4318. background: #ccc;
  4319. border-radius: 2px;
  4320. }
  4321. .empty-tip {
  4322. display: flex;
  4323. flex-direction: column;
  4324. align-items: center;
  4325. justify-content: center;
  4326. gap: 10px;
  4327. position: relative;
  4328. z-index: 1;
  4329. width: 100%;
  4330. min-height: 148px;
  4331. padding: 24px 14px;
  4332. box-sizing: border-box;
  4333. border-radius: 24px;
  4334. border: 1px dashed rgba(183, 202, 234, 0.72);
  4335. background:
  4336. radial-gradient(circle at top right, rgba(119, 177, 255, 0.12), transparent 32%),
  4337. linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(243, 247, 255, 0.92) 100%);
  4338. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  4339. &::before {
  4340. content: '';
  4341. flex: 0 0 52px;
  4342. width: 52px;
  4343. height: 52px;
  4344. border-radius: 18px;
  4345. border: 1px solid rgba(187, 208, 247, 0.82);
  4346. background:
  4347. radial-gradient(circle at 50% 16px, #5b8ff9 0 5px, transparent 6px),
  4348. linear-gradient(#d5e3ff 0 0) center 34px / 26px 3px no-repeat,
  4349. linear-gradient(180deg, #76a9ff 0%, #4f7cff 100%) 17px 30px / 6px 11px no-repeat,
  4350. linear-gradient(180deg, #8fc6ff 0%, #60a5fa 100%) 25px 26px / 6px 15px no-repeat,
  4351. linear-gradient(180deg, #c4b5fd 0%, #93c5fd 100%) 33px 23px / 6px 18px no-repeat,
  4352. linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.92) 100%);
  4353. background-repeat: no-repeat;
  4354. box-shadow:
  4355. inset 0 1px 0 rgba(255, 255, 255, 0.92),
  4356. 0 14px 24px rgba(59, 130, 246, 0.1);
  4357. }
  4358. }
  4359. }
  4360. .person-card {
  4361. width: 100%;
  4362. max-width: none;
  4363. display: flex;
  4364. flex-direction: row;
  4365. align-items: center;
  4366. justify-content: flex-start;
  4367. gap: 10px;
  4368. min-height: 60px;
  4369. padding: 10px 12px;
  4370. border-radius: 12px;
  4371. background: #fafafa;
  4372. border: 1px solid #e7edf5;
  4373. cursor: pointer;
  4374. transition:
  4375. border-color 0.22s ease,
  4376. box-shadow 0.22s ease,
  4377. background 0.22s ease;
  4378. position: relative;
  4379. overflow: visible;
  4380. z-index: 1;
  4381. &::before {
  4382. display: none;
  4383. }
  4384. &::after {
  4385. display: none;
  4386. }
  4387. &:hover {
  4388. background: #fff;
  4389. border-color: #d7e4f6;
  4390. box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  4391. .person-avatar .jeesite-person-avatar__media {
  4392. background: linear-gradient(135deg, #4d92ff 0%, #73c0ff 100%);
  4393. box-shadow: 0 8px 14px rgba(59, 130, 246, 0.18);
  4394. }
  4395. .person-name {
  4396. color: #0f172a;
  4397. }
  4398. }
  4399. &.active {
  4400. background: #ffffff;
  4401. border-color: #9ec5fe;
  4402. box-shadow:
  4403. inset 0 0 0 1px rgba(47, 125, 246, 0.12),
  4404. 0 8px 18px rgba(59, 130, 246, 0.08);
  4405. .person-avatar .jeesite-person-avatar__media {
  4406. background: linear-gradient(135deg, #2f7df6 0%, #57b3ff 100%);
  4407. box-shadow: 0 8px 14px rgba(59, 130, 246, 0.2);
  4408. }
  4409. .person-name {
  4410. color: #0f172a;
  4411. font-weight: 600;
  4412. }
  4413. }
  4414. }
  4415. .person-avatar-wrap {
  4416. position: relative;
  4417. width: 44px;
  4418. height: 44px;
  4419. flex: 0 0 44px;
  4420. display: flex;
  4421. align-items: center;
  4422. justify-content: center;
  4423. transition: none;
  4424. &::before {
  4425. display: none;
  4426. }
  4427. }
  4428. .person-avatar {
  4429. display: flex;
  4430. position: relative;
  4431. z-index: 1;
  4432. transition: all 0.22s ease;
  4433. }
  4434. .person-name {
  4435. position: relative;
  4436. z-index: 1;
  4437. flex: 1;
  4438. min-width: 0;
  4439. max-width: none;
  4440. min-height: auto;
  4441. font-size: 13px;
  4442. line-height: 1.5;
  4443. color: #5b6472;
  4444. font-weight: 500;
  4445. text-align: left;
  4446. word-break: break-word;
  4447. overflow: hidden;
  4448. display: -webkit-box;
  4449. -webkit-box-orient: vertical;
  4450. -webkit-line-clamp: 2;
  4451. transition:
  4452. color 0.22s ease,
  4453. font-weight 0.22s ease;
  4454. }
  4455. .group-btn-wrap {
  4456. margin-top: auto;
  4457. padding-top: 14px;
  4458. border-top: 1px solid rgba(209, 223, 246, 0.88);
  4459. position: relative;
  4460. z-index: 1;
  4461. .group-btn {
  4462. width: 100%;
  4463. height: 40px;
  4464. border-radius: 999px;
  4465. border-color: #d6e4ff;
  4466. color: #205ecf;
  4467. background: rgba(255, 255, 255, 0.88);
  4468. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  4469. }
  4470. }
  4471. }
  4472. .right-panel {
  4473. display: flex;
  4474. flex-direction: column;
  4475. align-self: stretch;
  4476. flex: 1 1 auto;
  4477. gap: 16px;
  4478. min-width: 0;
  4479. min-height: 0;
  4480. overflow-y: auto;
  4481. padding-right: 8px;
  4482. &::-webkit-scrollbar {
  4483. width: 6px;
  4484. }
  4485. &::-webkit-scrollbar-thumb {
  4486. background: #ccc;
  4487. border-radius: 3px;
  4488. }
  4489. }
  4490. .section-card {
  4491. background: #fff;
  4492. border-radius: 12px;
  4493. padding: 16px;
  4494. box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  4495. }
  4496. .quick-nav-shell {
  4497. display: none;
  4498. }
  4499. .comm-section {
  4500. padding: 14px 18px 18px;
  4501. background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  4502. border: 1px solid #e6eefc;
  4503. box-shadow: 0 12px 28px rgba(37, 74, 151, 0.06);
  4504. }
  4505. .comm-info {
  4506. display: flex;
  4507. flex-direction: column;
  4508. gap: 10px;
  4509. font-size: 12px;
  4510. color: #475569;
  4511. }
  4512. .comm-row {
  4513. display: flex;
  4514. align-items: center;
  4515. gap: 12px;
  4516. .label {
  4517. font-weight: 600;
  4518. color: #1f2937;
  4519. }
  4520. .value {
  4521. font-weight: 600;
  4522. }
  4523. .carrier {
  4524. color: #2563eb;
  4525. }
  4526. }
  4527. .comm-grid {
  4528. display: grid;
  4529. grid-template-columns: repeat(2, minmax(0, 1fr));
  4530. gap: 8px 24px;
  4531. .grid-item {
  4532. display: flex;
  4533. gap: 6px;
  4534. color: #475569;
  4535. }
  4536. .label {
  4537. color: #6b7280;
  4538. }
  4539. .value {
  4540. font-weight: 600;
  4541. color: #1f2937;
  4542. }
  4543. }
  4544. .comm-divider {
  4545. border-top: 1px dashed #e2e8f0;
  4546. margin: 12px 0;
  4547. }
  4548. .comm-chart-row {
  4549. display: grid;
  4550. grid-template-columns: 380px 1fr;
  4551. gap: 18px;
  4552. align-items: stretch;
  4553. }
  4554. .comm-chart-header,
  4555. .trade-chart-header,
  4556. .comm-top-header,
  4557. .trade-top-header {
  4558. display: flex;
  4559. align-items: flex-start;
  4560. justify-content: space-between;
  4561. gap: 16px;
  4562. min-height: 36px;
  4563. }
  4564. .trade-section {
  4565. padding: 14px 18px 18px;
  4566. background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  4567. border: 1px solid #eef0f5;
  4568. box-shadow: 0 12px 28px rgba(59, 78, 122, 0.06);
  4569. }
  4570. .trade-summary {
  4571. font-size: 12px;
  4572. color: #475569;
  4573. }
  4574. .trade-row {
  4575. display: flex;
  4576. flex-wrap: wrap;
  4577. gap: 8px 12px;
  4578. align-items: center;
  4579. .label {
  4580. font-weight: 600;
  4581. color: #1f2937;
  4582. }
  4583. .value {
  4584. font-weight: 600;
  4585. }
  4586. }
  4587. .trade-tag {
  4588. background: #eef2ff;
  4589. color: #2563eb;
  4590. padding: 2px 8px;
  4591. border-radius: 6px;
  4592. font-size: 12px;
  4593. }
  4594. .trade-chart-row {
  4595. display: grid;
  4596. grid-template-columns: 380px 1fr;
  4597. gap: 18px;
  4598. align-items: stretch;
  4599. }
  4600. .trade-chart {
  4601. display: flex;
  4602. flex-direction: column;
  4603. gap: 12px;
  4604. min-width: 0;
  4605. height: 100%;
  4606. }
  4607. .trade-kpi {
  4608. display: flex;
  4609. align-items: center;
  4610. justify-content: space-between;
  4611. flex-wrap: wrap;
  4612. gap: 10px 24px;
  4613. font-size: 14px;
  4614. color: #374151;
  4615. .trade-kpi-item {
  4616. display: flex;
  4617. align-items: center;
  4618. gap: 4px;
  4619. }
  4620. .trade-kpi-label {
  4621. color: #374151;
  4622. }
  4623. .trade-kpi-value {
  4624. font-weight: 600;
  4625. }
  4626. .down {
  4627. color: #ff8a66;
  4628. }
  4629. .up {
  4630. color: #2ac8a0;
  4631. }
  4632. }
  4633. .legend-sub {
  4634. margin-left: 18px;
  4635. color: #64748b;
  4636. font-size: 12px;
  4637. }
  4638. .bar.clickable {
  4639. cursor: pointer;
  4640. }
  4641. .trade-top-echart {
  4642. width: 100%;
  4643. height: 320px;
  4644. }
  4645. .trade-section .chart-tools,
  4646. .trade-section .trend-tools {
  4647. display: flex;
  4648. align-items: center;
  4649. flex-wrap: wrap;
  4650. gap: 6px;
  4651. font-size: 12px;
  4652. color: #64748b;
  4653. .select-input {
  4654. width: 120px;
  4655. }
  4656. .search-input {
  4657. width: 300px;
  4658. max-width: 100%;
  4659. }
  4660. .range-date-input {
  4661. width: 260px;
  4662. }
  4663. }
  4664. .trade-top-header {
  4665. display: flex;
  4666. align-items: center;
  4667. justify-content: space-between;
  4668. gap: 18px;
  4669. flex-wrap: wrap;
  4670. }
  4671. .trade-top-tools {
  4672. display: flex;
  4673. align-items: center;
  4674. justify-content: flex-end;
  4675. flex-wrap: wrap;
  4676. gap: 10px;
  4677. font-size: 14px;
  4678. color: #1f2937;
  4679. .tool-label {
  4680. color: #1f2937;
  4681. white-space: nowrap;
  4682. font-weight: 500;
  4683. }
  4684. .metric-select {
  4685. width: 118px;
  4686. }
  4687. .trade-top-range {
  4688. width: 264px;
  4689. }
  4690. .metric-select,
  4691. .trade-top-range {
  4692. .ant-select-selector,
  4693. &.ant-picker {
  4694. border-radius: 12px;
  4695. border-color: rgba(137, 153, 204, 0.22);
  4696. background: rgba(255, 255, 255, 0.72);
  4697. backdrop-filter: blur(12px);
  4698. box-shadow:
  4699. inset 0 1px 0 rgba(255, 255, 255, 0.82),
  4700. 0 10px 24px rgba(76, 88, 128, 0.08);
  4701. }
  4702. }
  4703. }
  4704. .comm-top-header {
  4705. flex-wrap: wrap;
  4706. .chart-title {
  4707. font-size: 15px;
  4708. }
  4709. }
  4710. .comm-top-tools {
  4711. display: flex;
  4712. align-items: center;
  4713. justify-content: flex-end;
  4714. flex: 1;
  4715. flex-wrap: wrap;
  4716. gap: 10px;
  4717. font-size: 14px;
  4718. color: #1f2937;
  4719. .tool-label {
  4720. color: #1f2937;
  4721. white-space: nowrap;
  4722. font-weight: 500;
  4723. }
  4724. .comm-top-range {
  4725. width: 420px;
  4726. max-width: 100%;
  4727. &.ant-picker {
  4728. border-radius: 12px;
  4729. border-color: rgba(137, 153, 204, 0.22);
  4730. background: rgba(255, 255, 255, 0.72);
  4731. backdrop-filter: blur(12px);
  4732. box-shadow:
  4733. inset 0 1px 0 rgba(255, 255, 255, 0.82),
  4734. 0 10px 24px rgba(76, 88, 128, 0.08);
  4735. }
  4736. }
  4737. }
  4738. .trade-top-dimension {
  4739. display: inline-flex;
  4740. align-items: center;
  4741. gap: 18px;
  4742. .ant-radio-wrapper {
  4743. margin-inline-end: 0;
  4744. color: #3f4756;
  4745. }
  4746. }
  4747. .visual-chart-surface {
  4748. position: relative;
  4749. display: flex;
  4750. flex: 1;
  4751. flex-direction: column;
  4752. margin-top: 12px;
  4753. border: 1px solid rgba(137, 153, 204, 0.18);
  4754. border-radius: 22px;
  4755. background: rgba(255, 255, 255, 0.7);
  4756. backdrop-filter: blur(14px);
  4757. box-sizing: border-box;
  4758. box-shadow:
  4759. inset 0 1px 0 rgba(255, 255, 255, 0.82),
  4760. 0 18px 36px rgba(42, 66, 118, 0.1);
  4761. overflow: hidden;
  4762. &::before {
  4763. content: '';
  4764. position: absolute;
  4765. inset: 0;
  4766. pointer-events: none;
  4767. background:
  4768. radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 32%),
  4769. linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 24%);
  4770. }
  4771. &::after {
  4772. content: '';
  4773. position: absolute;
  4774. width: 180px;
  4775. height: 180px;
  4776. top: -88px;
  4777. right: -78px;
  4778. border-radius: 50%;
  4779. filter: blur(4px);
  4780. opacity: 0.6;
  4781. pointer-events: none;
  4782. }
  4783. }
  4784. .visual-chart-surface > * {
  4785. position: relative;
  4786. z-index: 1;
  4787. }
  4788. .visual-chart-surface--comm {
  4789. background: linear-gradient(
  4790. 145deg,
  4791. rgba(241, 247, 255, 0.92) 0%,
  4792. rgba(234, 246, 255, 0.8) 45%,
  4793. rgba(255, 255, 255, 0.78) 100%
  4794. );
  4795. border-color: rgba(124, 165, 255, 0.2);
  4796. &::after {
  4797. background: radial-gradient(circle, rgba(102, 199, 255, 0.18) 0%, rgba(102, 199, 255, 0) 70%);
  4798. }
  4799. }
  4800. .visual-chart-surface--trade {
  4801. background: linear-gradient(
  4802. 145deg,
  4803. rgba(255, 248, 242, 0.94) 0%,
  4804. rgba(248, 244, 255, 0.82) 44%,
  4805. rgba(255, 255, 255, 0.8) 100%
  4806. );
  4807. border-color: rgba(255, 181, 134, 0.2);
  4808. &::after {
  4809. background: radial-gradient(circle, rgba(255, 153, 102, 0.18) 0%, rgba(255, 153, 102, 0) 70%);
  4810. }
  4811. }
  4812. .visual-chart-surface--ratio {
  4813. min-height: 356px;
  4814. }
  4815. .visual-chart-surface--bar {
  4816. min-height: 356px;
  4817. }
  4818. .visual-chart-surface--trend {
  4819. min-height: 446px;
  4820. padding: 18px 18px 16px;
  4821. }
  4822. .radio {
  4823. padding: 2px 8px;
  4824. border-radius: 999px;
  4825. background: #f1f5f9;
  4826. color: #64748b;
  4827. cursor: pointer;
  4828. &.active {
  4829. background: #e0e7ff;
  4830. color: #1d4ed8;
  4831. font-weight: 600;
  4832. }
  4833. }
  4834. .trade-trend {
  4835. display: flex;
  4836. flex-direction: column;
  4837. gap: 16px;
  4838. }
  4839. .trade-trend-header {
  4840. display: flex;
  4841. align-items: flex-start;
  4842. justify-content: space-between;
  4843. gap: 16px 20px;
  4844. flex-wrap: wrap;
  4845. }
  4846. .trade-trend-heading {
  4847. display: flex;
  4848. flex-direction: column;
  4849. gap: 8px;
  4850. min-width: 0;
  4851. }
  4852. .trade-trend-subtitle {
  4853. font-size: 13px;
  4854. line-height: 1.6;
  4855. color: #7b8797;
  4856. }
  4857. .trade-trend-toolbar {
  4858. display: flex;
  4859. align-items: center;
  4860. justify-content: space-between;
  4861. flex-wrap: wrap;
  4862. gap: 14px 18px;
  4863. padding: 16px 18px;
  4864. border: 1px solid rgba(255, 198, 170, 0.58);
  4865. border-radius: 20px;
  4866. background:
  4867. radial-gradient(circle at right top, rgba(255, 189, 143, 0.18), transparent 28%),
  4868. linear-gradient(145deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 244, 238, 0.92) 100%);
  4869. box-shadow:
  4870. inset 0 1px 0 rgba(255, 255, 255, 0.9),
  4871. 0 14px 28px rgba(255, 147, 106, 0.08);
  4872. }
  4873. .trade-trend-filters {
  4874. display: flex;
  4875. align-items: center;
  4876. flex: 1;
  4877. min-width: 0;
  4878. flex-wrap: wrap;
  4879. gap: 10px;
  4880. .tool-label {
  4881. font-size: 13px;
  4882. color: #374151;
  4883. white-space: nowrap;
  4884. font-weight: 500;
  4885. }
  4886. .trend-search-input {
  4887. width: 220px;
  4888. }
  4889. .trend-range-input {
  4890. width: 286px;
  4891. max-width: 100%;
  4892. }
  4893. .trend-search-input {
  4894. :deep(.ant-select-selector) {
  4895. border-radius: 12px;
  4896. border-color: rgba(174, 157, 196, 0.24);
  4897. background: rgba(255, 255, 255, 0.82);
  4898. box-shadow:
  4899. inset 0 1px 0 rgba(255, 255, 255, 0.9),
  4900. 0 10px 24px rgba(132, 110, 144, 0.08);
  4901. }
  4902. }
  4903. .trend-range-input {
  4904. border-radius: 12px;
  4905. border-color: rgba(174, 157, 196, 0.24);
  4906. background: rgba(255, 255, 255, 0.82);
  4907. box-shadow:
  4908. inset 0 1px 0 rgba(255, 255, 255, 0.9),
  4909. 0 10px 24px rgba(132, 110, 144, 0.08);
  4910. }
  4911. }
  4912. .trade-trend-dimension {
  4913. display: inline-flex;
  4914. align-items: center;
  4915. gap: 6px;
  4916. padding: 4px;
  4917. border-radius: 999px;
  4918. background: rgba(255, 255, 255, 0.76);
  4919. border: 1px solid rgba(255, 208, 184, 0.78);
  4920. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  4921. .radio {
  4922. min-width: 38px;
  4923. padding: 5px 12px;
  4924. text-align: center;
  4925. background: transparent;
  4926. }
  4927. }
  4928. .trade-trend-chart-box {
  4929. margin-top: 0;
  4930. }
  4931. .trade-top-chart-box {
  4932. padding: 16px;
  4933. height: 100%;
  4934. box-sizing: border-box;
  4935. }
  4936. .comm-top-chart-box {
  4937. padding: 16px;
  4938. height: 100%;
  4939. box-sizing: border-box;
  4940. }
  4941. .chart-more-link {
  4942. margin-left: auto;
  4943. height: 30px;
  4944. padding: 0 12px;
  4945. border: 1px solid rgba(133, 153, 197, 0.18);
  4946. border-radius: 999px;
  4947. background: rgba(255, 255, 255, 0.56);
  4948. backdrop-filter: blur(12px);
  4949. box-shadow: 0 8px 20px rgba(76, 88, 128, 0.08);
  4950. font-size: 13px;
  4951. color: #2a5fd6;
  4952. }
  4953. .chart-more-link.ant-btn-link {
  4954. display: inline-flex;
  4955. flex: 0 0 auto;
  4956. align-items: center;
  4957. justify-content: center;
  4958. text-decoration: none;
  4959. }
  4960. .comm-top-echart {
  4961. width: 100%;
  4962. height: 300px;
  4963. }
  4964. .trend-chart-scroll {
  4965. flex: 1;
  4966. min-height: 0;
  4967. width: 100%;
  4968. overflow-x: auto;
  4969. box-sizing: border-box;
  4970. padding: 16px 4px 0;
  4971. }
  4972. .trend-chart {
  4973. position: relative;
  4974. border: 0;
  4975. border-radius: 0;
  4976. background: transparent;
  4977. box-shadow: none;
  4978. overflow: visible;
  4979. }
  4980. .trend-echart {
  4981. width: 100%;
  4982. height: 100%;
  4983. min-height: 340px;
  4984. }
  4985. .comm-chart-box {
  4986. padding: 18px 16px;
  4987. height: 100%;
  4988. justify-content: center;
  4989. box-sizing: border-box;
  4990. }
  4991. .comm-echart {
  4992. width: 100%;
  4993. height: 300px;
  4994. }
  4995. .chart-more-btn {
  4996. position: absolute;
  4997. top: 8px;
  4998. right: 8px;
  4999. z-index: 2;
  5000. }
  5001. .comm-chart {
  5002. display: flex;
  5003. flex-direction: column;
  5004. gap: 12px;
  5005. min-width: 0;
  5006. height: 100%;
  5007. }
  5008. .chart-title {
  5009. display: flex;
  5010. align-items: center;
  5011. gap: 8px;
  5012. font-size: 15px;
  5013. font-weight: 600;
  5014. color: #1e293b;
  5015. letter-spacing: 0.01em;
  5016. .flag {
  5017. width: 3px;
  5018. height: 12px;
  5019. background: linear-gradient(180deg, #64a8ff 0%, #2866ff 100%);
  5020. border-radius: 999px;
  5021. box-shadow: 0 0 0 3px rgba(100, 168, 255, 0.1);
  5022. }
  5023. }
  5024. .trade-section {
  5025. .chart-title {
  5026. .flag {
  5027. background: linear-gradient(180deg, #ffb069 0%, #ff7f50 100%);
  5028. box-shadow: 0 0 0 3px rgba(255, 176, 105, 0.1);
  5029. }
  5030. }
  5031. }
  5032. .trend-title-row {
  5033. .trend-legend-item {
  5034. display: inline-flex;
  5035. align-items: center;
  5036. gap: 8px;
  5037. margin-left: 0;
  5038. padding: 8px 14px;
  5039. border-radius: 999px;
  5040. border: 1px solid rgba(255, 201, 177, 0.58);
  5041. background: rgba(255, 255, 255, 0.72);
  5042. box-shadow:
  5043. inset 0 1px 0 rgba(255, 255, 255, 0.9),
  5044. 0 10px 22px rgba(255, 150, 112, 0.08);
  5045. cursor: pointer;
  5046. font-weight: 500;
  5047. transition:
  5048. transform 0.2s ease,
  5049. border-color 0.2s ease,
  5050. box-shadow 0.2s ease,
  5051. opacity 0.2s ease;
  5052. &:hover {
  5053. transform: translateY(-1px);
  5054. border-color: rgba(255, 167, 128, 0.66);
  5055. box-shadow:
  5056. inset 0 1px 0 rgba(255, 255, 255, 0.92),
  5057. 0 12px 24px rgba(255, 146, 108, 0.12);
  5058. }
  5059. &.is-muted {
  5060. opacity: 0.62;
  5061. box-shadow: none;
  5062. }
  5063. }
  5064. .circles {
  5065. width: 10px;
  5066. height: 10px;
  5067. flex: 0 0 10px;
  5068. border-radius: 50%;
  5069. display: inline-block;
  5070. }
  5071. .circles-text {
  5072. color: #3f4756;
  5073. font-size: 13px;
  5074. }
  5075. }
  5076. .chart-tools {
  5077. display: flex;
  5078. align-items: center;
  5079. gap: 6px;
  5080. font-size: 12px;
  5081. color: #64748b;
  5082. .date-input {
  5083. width: 120px;
  5084. }
  5085. }
  5086. .donut-wrap {
  5087. display: flex;
  5088. align-items: center;
  5089. gap: 22px;
  5090. }
  5091. .donut-legend {
  5092. display: flex;
  5093. flex-direction: column;
  5094. flex: 1;
  5095. min-width: 0;
  5096. gap: 18px;
  5097. font-size: 14px;
  5098. color: #1f2937;
  5099. .legend-main {
  5100. display: flex;
  5101. align-items: center;
  5102. flex-wrap: wrap;
  5103. gap: 4px;
  5104. line-height: 1.2;
  5105. }
  5106. .legend-title {
  5107. color: #374151;
  5108. }
  5109. .legend-rate {
  5110. font-weight: 500;
  5111. color: #374151;
  5112. }
  5113. .legend-amount {
  5114. padding-left: 24px;
  5115. line-height: 1.3;
  5116. color: #4b5563;
  5117. word-break: break-all;
  5118. }
  5119. .dot {
  5120. width: 16px;
  5121. height: 16px;
  5122. border-radius: 50%;
  5123. display: inline-block;
  5124. flex: 0 0 16px;
  5125. &.success {
  5126. background: #2ac8a0;
  5127. }
  5128. &.warning {
  5129. background: #ff8a66;
  5130. }
  5131. }
  5132. }
  5133. .trade-ratio-panel {
  5134. padding: 18px 20px 16px;
  5135. display: flex;
  5136. flex-direction: column;
  5137. gap: 20px;
  5138. height: 100%;
  5139. justify-content: space-between;
  5140. box-sizing: border-box;
  5141. }
  5142. .legend-click {
  5143. display: flex;
  5144. flex-direction: column;
  5145. gap: 8px;
  5146. padding: 12px 14px;
  5147. border: 1px solid rgba(160, 171, 207, 0.18);
  5148. border-radius: 16px;
  5149. background: rgba(255, 255, 255, 0.44);
  5150. backdrop-filter: blur(12px);
  5151. box-shadow:
  5152. inset 0 1px 0 rgba(255, 255, 255, 0.72),
  5153. 0 10px 20px rgba(74, 86, 120, 0.06);
  5154. cursor: pointer;
  5155. transition:
  5156. opacity 0.2s ease,
  5157. border-color 0.2s ease,
  5158. transform 0.2s ease;
  5159. &:hover {
  5160. opacity: 0.92;
  5161. border-color: rgba(120, 145, 215, 0.3);
  5162. transform: translateY(-1px);
  5163. }
  5164. }
  5165. .empty-state__title {
  5166. font-size: 15px;
  5167. line-height: 1.3;
  5168. font-weight: 700;
  5169. color: #526072;
  5170. letter-spacing: 0.01em;
  5171. }
  5172. .empty-state__desc {
  5173. display: none;
  5174. }
  5175. .chart-empty,
  5176. .group-left .group-list .ant-list-empty-text,
  5177. .member-list .ant-list-empty-text {
  5178. position: relative;
  5179. display: flex;
  5180. flex-direction: column;
  5181. align-items: center;
  5182. justify-content: center;
  5183. gap: 10px;
  5184. padding: 24px 18px;
  5185. box-sizing: border-box;
  5186. text-align: center;
  5187. font-size: 14px;
  5188. line-height: 1.6;
  5189. color: #8ea0b2;
  5190. border: 1px dashed rgba(183, 202, 234, 0.72);
  5191. border-radius: 20px;
  5192. background:
  5193. radial-gradient(circle at top right, rgba(119, 177, 255, 0.12), transparent 32%),
  5194. linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(243, 247, 255, 0.92) 100%);
  5195. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  5196. overflow: hidden;
  5197. &::before {
  5198. content: '';
  5199. flex: 0 0 56px;
  5200. width: 56px;
  5201. height: 56px;
  5202. border-radius: 18px;
  5203. border: 1px solid rgba(187, 208, 247, 0.82);
  5204. background:
  5205. radial-gradient(circle at 50% 16px, #5b8ff9 0 5px, transparent 6px),
  5206. linear-gradient(#d5e3ff 0 0) center 35px / 28px 3px no-repeat,
  5207. linear-gradient(180deg, #76a9ff 0%, #4f7cff 100%) 18px 31px / 6px 12px no-repeat,
  5208. linear-gradient(180deg, #8fc6ff 0%, #60a5fa 100%) 27px 26px / 6px 17px no-repeat,
  5209. linear-gradient(180deg, #c4b5fd 0%, #93c5fd 100%) 36px 22px / 6px 21px no-repeat,
  5210. linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.92) 100%);
  5211. background-repeat: no-repeat;
  5212. box-shadow:
  5213. inset 0 1px 0 rgba(255, 255, 255, 0.92),
  5214. 0 14px 24px rgba(59, 130, 246, 0.1);
  5215. }
  5216. }
  5217. .chart-empty {
  5218. min-height: 156px;
  5219. margin-top: 8px;
  5220. }
  5221. .trade-trend-empty {
  5222. min-height: 446px;
  5223. margin-top: 0;
  5224. border-radius: 22px;
  5225. border-color: rgba(255, 198, 170, 0.58);
  5226. background:
  5227. radial-gradient(circle at right top, rgba(255, 188, 143, 0.18), transparent 28%),
  5228. linear-gradient(145deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 245, 240, 0.92) 100%);
  5229. color: #94a3b8;
  5230. &::before {
  5231. border-color: rgba(255, 205, 177, 0.9);
  5232. background:
  5233. radial-gradient(circle at 50% 16px, #ff9a66 0 5px, transparent 6px),
  5234. linear-gradient(#ffe2d1 0 0) center 35px / 28px 3px no-repeat,
  5235. linear-gradient(180deg, #ffba74 0%, #ff8b66 100%) 18px 31px / 6px 12px no-repeat,
  5236. linear-gradient(180deg, #ffd28f 0%, #ffba74 100%) 27px 26px / 6px 17px no-repeat,
  5237. linear-gradient(180deg, #fdc7d7 0%, #ffbe86 100%) 36px 22px / 6px 21px no-repeat,
  5238. linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 240, 0.92) 100%);
  5239. background-repeat: no-repeat;
  5240. box-shadow:
  5241. inset 0 1px 0 rgba(255, 255, 255, 0.92),
  5242. 0 14px 24px rgba(255, 153, 102, 0.12);
  5243. }
  5244. }
  5245. .station-list {
  5246. display: flex;
  5247. flex-wrap: wrap;
  5248. gap: 12px;
  5249. }
  5250. .station-item {
  5251. background: #f8fafc;
  5252. border-radius: 8px;
  5253. padding: 6px 10px;
  5254. font-size: 12px;
  5255. color: #475569;
  5256. }
  5257. .trade-ratio-echart {
  5258. width: 180px;
  5259. height: 180px;
  5260. flex: 0 0 180px;
  5261. }
  5262. .donut.trade {
  5263. background: conic-gradient(#22c55e 0 9.7591%, #f97316 9.7591% 100%);
  5264. }
  5265. .station-row {
  5266. display: flex;
  5267. align-items: center;
  5268. gap: 12px;
  5269. font-size: 12px;
  5270. color: #1f2937;
  5271. margin-bottom: 8px;
  5272. }
  5273. .section-header {
  5274. display: flex;
  5275. align-items: flex-start;
  5276. justify-content: space-between;
  5277. flex-wrap: wrap;
  5278. gap: 14px 18px;
  5279. margin-bottom: 16px;
  5280. padding-bottom: 12px;
  5281. border-bottom: 1px solid rgba(221, 230, 244, 0.92);
  5282. }
  5283. .section-title {
  5284. display: inline-flex;
  5285. align-items: center;
  5286. gap: 10px;
  5287. font-size: 18px;
  5288. font-weight: 700;
  5289. line-height: 1.2;
  5290. color: #0f172a;
  5291. letter-spacing: 0.02em;
  5292. &::before {
  5293. content: '';
  5294. width: 4px;
  5295. height: 16px;
  5296. border-radius: 999px;
  5297. background: linear-gradient(180deg, #68abff 0%, #2f7df6 100%);
  5298. box-shadow: 0 0 0 3px rgba(104, 171, 255, 0.12);
  5299. }
  5300. }
  5301. .section-tools {
  5302. display: flex;
  5303. align-items: center;
  5304. justify-content: flex-end;
  5305. flex-wrap: wrap;
  5306. gap: 12px;
  5307. margin-left: auto;
  5308. }
  5309. .section-action {
  5310. padding: 0 14px;
  5311. color: #2563eb;
  5312. font-weight: 600;
  5313. }
  5314. .section-action.ant-btn-link {
  5315. display: inline-flex;
  5316. align-items: center;
  5317. justify-content: center;
  5318. height: 32px;
  5319. border: 1px solid rgba(191, 203, 228, 0.74);
  5320. border-radius: 999px;
  5321. background: rgba(255, 255, 255, 0.82);
  5322. box-shadow:
  5323. inset 0 1px 0 rgba(255, 255, 255, 0.9),
  5324. 0 10px 22px rgba(76, 88, 128, 0.06);
  5325. text-decoration: none;
  5326. &:hover {
  5327. border-color: rgba(147, 197, 253, 0.92);
  5328. background: #eff6ff;
  5329. color: #1d4ed8;
  5330. }
  5331. }
  5332. .basic-content {
  5333. display: grid;
  5334. grid-template-columns: 108px minmax(0, 1fr);
  5335. gap: 10px;
  5336. }
  5337. .basic-profile {
  5338. display: flex;
  5339. flex-direction: column;
  5340. align-items: center;
  5341. justify-content: center;
  5342. gap: 4px;
  5343. padding: 8px 6px;
  5344. border: 1px solid #eef2f7;
  5345. border-radius: 10px;
  5346. background: #fafafa;
  5347. }
  5348. .profile-avatar {
  5349. display: flex;
  5350. }
  5351. .profile-name {
  5352. font-size: 13px;
  5353. font-weight: 600;
  5354. color: #1f2937;
  5355. }
  5356. .info-grid {
  5357. display: grid;
  5358. grid-template-columns: repeat(4, minmax(0, 1fr));
  5359. gap: 5px;
  5360. }
  5361. .info-item {
  5362. font-size: 13px;
  5363. color: #334155;
  5364. display: flex;
  5365. align-items: flex-start;
  5366. gap: 2px;
  5367. min-width: 0;
  5368. min-height: 40px;
  5369. padding: 6px 8px;
  5370. border: 1px solid #eef2f7;
  5371. border-radius: 10px;
  5372. background: #fafafa;
  5373. flex-direction: column;
  5374. }
  5375. .info-label {
  5376. color: #64748b;
  5377. font-size: 12px;
  5378. line-height: 16px;
  5379. white-space: nowrap;
  5380. flex: 0 0 auto;
  5381. }
  5382. .info-value {
  5383. min-width: 0;
  5384. white-space: normal;
  5385. word-break: break-all;
  5386. overflow-wrap: anywhere;
  5387. line-height: 16px;
  5388. }
  5389. .relation-search {
  5390. width: 220px;
  5391. border-radius: 8px;
  5392. }
  5393. .relation-list {
  5394. display: grid;
  5395. grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  5396. gap: 16px;
  5397. }
  5398. .relation-card {
  5399. border: 1px solid #e2e8f0;
  5400. border-radius: 12px;
  5401. padding: 12px;
  5402. display: flex;
  5403. flex-direction: column;
  5404. gap: 10px;
  5405. position: relative;
  5406. }
  5407. .relation-avatar {
  5408. width: 40px;
  5409. height: 40px;
  5410. border-radius: 50%;
  5411. background: #e0e7ff;
  5412. color: #1d4ed8;
  5413. display: flex;
  5414. align-items: center;
  5415. justify-content: center;
  5416. font-weight: 600;
  5417. }
  5418. .relation-main {
  5419. display: flex;
  5420. flex-direction: column;
  5421. gap: 6px;
  5422. }
  5423. .relation-name {
  5424. font-weight: 600;
  5425. color: #1f2937;
  5426. }
  5427. .relation-score {
  5428. font-size: 13px;
  5429. color: #64748b;
  5430. span {
  5431. color: #1d4ed8;
  5432. font-weight: 600;
  5433. }
  5434. }
  5435. .relation-tags {
  5436. display: flex;
  5437. flex-wrap: wrap;
  5438. gap: 6px;
  5439. }
  5440. .tag {
  5441. padding: 2px 6px;
  5442. border-radius: 6px;
  5443. background: #f1f5f9;
  5444. color: #475569;
  5445. font-size: 12px;
  5446. }
  5447. .relation-action {
  5448. padding: 0;
  5449. align-self: flex-end;
  5450. color: #3b82f6;
  5451. }
  5452. }
  5453. .quick-nav {
  5454. position: absolute;
  5455. top: 66px;
  5456. right: 0;
  5457. width: 84px;
  5458. background: #fff;
  5459. border: 1px solid #e5e7eb;
  5460. border-radius: 12px;
  5461. padding: 8px 0;
  5462. display: flex;
  5463. flex-direction: column;
  5464. gap: 4px;
  5465. box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  5466. z-index: 20;
  5467. .nav-item {
  5468. font-size: 12px;
  5469. color: #475569;
  5470. padding: 6px 12px;
  5471. text-align: center;
  5472. cursor: pointer;
  5473. &.active {
  5474. color: #2563eb;
  5475. font-weight: 600;
  5476. }
  5477. }
  5478. }
  5479. .portrait-modal-title-block {
  5480. display: flex;
  5481. flex-direction: column;
  5482. gap: 4px;
  5483. }
  5484. .portrait-modal-title {
  5485. font-size: 20px;
  5486. line-height: 1.3;
  5487. font-weight: 700;
  5488. color: #111827;
  5489. }
  5490. .portrait-modal-subtitle {
  5491. font-size: 12px;
  5492. line-height: 1.6;
  5493. color: #6b7280;
  5494. }
  5495. :deep(.object-group-modal .ant-modal) {
  5496. width: 960px !important;
  5497. max-width: calc(100vw - 40px);
  5498. }
  5499. :deep(.object-group-modal .ant-modal-content) {
  5500. max-height: 640px;
  5501. display: flex;
  5502. flex-direction: column;
  5503. padding: 0;
  5504. overflow: hidden;
  5505. border-radius: 16px;
  5506. background: #fff;
  5507. box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  5508. }
  5509. :deep(.object-group-modal .ant-modal-header) {
  5510. flex: 0 0 auto;
  5511. padding: 16px 18px;
  5512. border-bottom: 1px solid #e5e7eb;
  5513. background: @modal-header-bg-color;
  5514. }
  5515. :deep(.object-group-modal .ant-modal-title) {
  5516. color: inherit;
  5517. }
  5518. :deep(.object-group-modal .ant-modal-close) {
  5519. top: 16px;
  5520. right: 18px;
  5521. color: #64748b;
  5522. }
  5523. :deep(.object-group-modal .ant-modal-close-x) {
  5524. width: 36px;
  5525. height: 36px;
  5526. }
  5527. :deep(.object-group-modal .ant-modal-body) {
  5528. flex: 1 1 auto;
  5529. min-height: 0;
  5530. overflow-y: auto;
  5531. padding: 16px 18px 18px;
  5532. background: #fff;
  5533. }
  5534. :deep(.object-group-modal .ant-modal-body::-webkit-scrollbar) {
  5535. width: 6px;
  5536. }
  5537. :deep(.object-group-modal .ant-modal-body::-webkit-scrollbar-thumb) {
  5538. background: #cbd5e1;
  5539. border-radius: 999px;
  5540. }
  5541. .group-modal-content {
  5542. display: flex;
  5543. flex-direction: column;
  5544. gap: 12px;
  5545. padding: 0;
  5546. }
  5547. .group-modal-actions {
  5548. display: flex;
  5549. align-items: center;
  5550. gap: 12px;
  5551. flex-wrap: wrap;
  5552. padding: 12px 14px;
  5553. border: 1px solid #e5e7eb;
  5554. border-radius: 14px;
  5555. background: #fafafa;
  5556. }
  5557. .group-modal-actions__info {
  5558. margin-right: auto;
  5559. font-size: 12px;
  5560. line-height: 1.6;
  5561. color: #6b7280;
  5562. }
  5563. .group-modal-actions__buttons {
  5564. display: flex;
  5565. align-items: center;
  5566. gap: 8px;
  5567. flex-wrap: wrap;
  5568. }
  5569. .group-modal-actions .head-btn {
  5570. min-width: 112px;
  5571. height: 40px;
  5572. border-radius: 12px;
  5573. padding: 0 22px;
  5574. border: 1px solid #d6deea;
  5575. background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  5576. color: #1f2937;
  5577. font-size: 13px;
  5578. font-weight: 600;
  5579. box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  5580. display: inline-flex;
  5581. align-items: center;
  5582. justify-content: center;
  5583. > span {
  5584. display: inline-flex;
  5585. align-items: center;
  5586. justify-content: center;
  5587. line-height: 1;
  5588. }
  5589. }
  5590. .group-modal-actions .head-btn:hover,
  5591. .group-modal-actions .head-btn:focus {
  5592. border-color: #c4cfdd;
  5593. background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  5594. color: #111827;
  5595. }
  5596. .group-modal-actions .head-btn--primary,
  5597. .group-modal-actions .head-btn--accent {
  5598. color: #1f2937;
  5599. background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  5600. border-color: #d6deea;
  5601. }
  5602. .group-modal-actions .head-btn--danger {
  5603. color: #1f2937;
  5604. background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  5605. border-color: #d6deea;
  5606. }
  5607. .group-modal-main {
  5608. display: grid;
  5609. grid-template-columns: 308px minmax(0, 1fr);
  5610. gap: 14px;
  5611. height: min(500px, calc(100vh - 240px));
  5612. min-height: 400px;
  5613. }
  5614. .group-left,
  5615. .group-right {
  5616. display: flex;
  5617. flex-direction: column;
  5618. min-height: 0;
  5619. overflow: hidden;
  5620. border: 1px solid #dfe6ef;
  5621. border-radius: 16px;
  5622. background: #fff;
  5623. box-shadow: none;
  5624. }
  5625. .group-panel-head {
  5626. display: flex;
  5627. align-items: center;
  5628. justify-content: space-between;
  5629. gap: 10px;
  5630. padding: 14px 16px 10px;
  5631. border-bottom: 1px solid #eef2f7;
  5632. }
  5633. .group-panel-head--right {
  5634. padding-bottom: 10px;
  5635. }
  5636. .group-panel-title {
  5637. font-size: 15px;
  5638. font-weight: 600;
  5639. color: #111827;
  5640. }
  5641. .group-panel-title-wrap {
  5642. min-width: 0;
  5643. }
  5644. .group-panel-subtitle {
  5645. margin-top: 4px;
  5646. font-size: 12px;
  5647. line-height: 1.5;
  5648. color: #6b7280;
  5649. }
  5650. .group-panel-badge {
  5651. min-width: 28px;
  5652. height: 28px;
  5653. padding: 0 10px;
  5654. border-radius: 999px;
  5655. display: inline-flex;
  5656. align-items: center;
  5657. justify-content: center;
  5658. background: #eff6ff;
  5659. color: #2563eb;
  5660. font-size: 12px;
  5661. font-weight: 700;
  5662. }
  5663. .group-left {
  5664. padding: 0;
  5665. }
  5666. .group-left .group-list .ant-list-item {
  5667. padding: 0;
  5668. border: 0;
  5669. }
  5670. .group-left .group-list .ant-list-item + .ant-list-item {
  5671. margin-top: 8px;
  5672. }
  5673. .group-left .group-list {
  5674. flex: 1;
  5675. min-height: 0;
  5676. padding: 12px;
  5677. overflow-y: auto;
  5678. }
  5679. .group-left .group-list .ant-list-empty-text {
  5680. min-height: 164px;
  5681. }
  5682. .group-select-btn {
  5683. min-height: 44px;
  5684. height: 44px;
  5685. border-radius: 12px;
  5686. padding: 0 12px;
  5687. font-size: 14px;
  5688. line-height: 42px;
  5689. box-shadow: none;
  5690. }
  5691. .group-select-btn > span {
  5692. display: block;
  5693. width: 100%;
  5694. height: 42px;
  5695. line-height: 42px;
  5696. }
  5697. .group-select-btn__name {
  5698. display: block;
  5699. width: 100%;
  5700. height: 42px;
  5701. line-height: 42px;
  5702. min-width: 0;
  5703. overflow: hidden;
  5704. text-overflow: ellipsis;
  5705. white-space: nowrap;
  5706. text-align: center;
  5707. font-weight: 600;
  5708. }
  5709. .group-select-btn.ant-btn-default {
  5710. border-color: #d7dee8;
  5711. color: #111827;
  5712. background: #fff;
  5713. }
  5714. .group-select-btn.ant-btn-default:hover {
  5715. border-color: #c7d1dd;
  5716. color: #1f2937;
  5717. background: #fafafa;
  5718. }
  5719. .group-select-btn.ant-btn-primary {
  5720. border-color: #4665eb;
  5721. background: linear-gradient(180deg, #4b68f3 0%, #3f5de6 100%);
  5722. color: #fff;
  5723. box-shadow: 0 8px 18px rgba(63, 93, 230, 0.18);
  5724. }
  5725. .group-right {
  5726. padding: 0 14px 14px;
  5727. }
  5728. .member-list {
  5729. flex: 1;
  5730. min-height: 0;
  5731. overflow-y: auto;
  5732. padding-top: 12px;
  5733. padding-right: 4px;
  5734. }
  5735. .member-list .ant-list-items {
  5736. display: flex;
  5737. flex-direction: column;
  5738. gap: 10px;
  5739. }
  5740. .member-list .ant-list-item {
  5741. padding: 14px 16px;
  5742. border: 1px solid #edf1f5;
  5743. border-radius: 14px;
  5744. background: #fff;
  5745. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  5746. }
  5747. .member-list .ant-list-empty-text {
  5748. min-height: 188px;
  5749. }
  5750. .member-list .ant-list-item-meta {
  5751. align-items: center;
  5752. }
  5753. .member-list .ant-list-item-meta-title {
  5754. margin-bottom: 2px;
  5755. }
  5756. .member-list .ant-list-item-action {
  5757. margin-left: 18px;
  5758. }
  5759. .member-list .ant-list-item-action > li {
  5760. padding: 0 0 0 10px;
  5761. }
  5762. .member-avatar-icon {
  5763. background: #b7b7b7;
  5764. color: #fff;
  5765. box-shadow: none;
  5766. }
  5767. .member-avatar-icon svg {
  5768. width: 18px;
  5769. height: 18px;
  5770. }
  5771. .member-name-row {
  5772. display: flex;
  5773. align-items: center;
  5774. gap: 8px;
  5775. }
  5776. .member-name {
  5777. font-size: 15px;
  5778. font-weight: 600;
  5779. color: #111827;
  5780. }
  5781. .member-main-tag {
  5782. padding: 2px 8px;
  5783. border-radius: 999px;
  5784. background: #eff6ff;
  5785. color: #1d4ed8;
  5786. font-size: 12px;
  5787. font-weight: 700;
  5788. }
  5789. .member-desc {
  5790. font-size: 12px;
  5791. color: #6b7280;
  5792. }
  5793. .member-main-btn,
  5794. .member-remove-btn {
  5795. height: auto;
  5796. padding: 0;
  5797. border: 0;
  5798. border-radius: 0;
  5799. background: transparent;
  5800. font-size: 12px;
  5801. font-weight: 600;
  5802. box-shadow: none;
  5803. text-decoration: none;
  5804. }
  5805. .member-main-btn {
  5806. color: #2563eb;
  5807. &:hover {
  5808. color: #1d4ed8;
  5809. background: transparent;
  5810. border-color: transparent;
  5811. }
  5812. &.ant-btn-link:disabled,
  5813. &.ant-btn-link.ant-btn-disabled,
  5814. &.ant-btn-link[disabled] {
  5815. color: #9ca3af;
  5816. cursor: not-allowed;
  5817. background: transparent;
  5818. border-color: transparent;
  5819. box-shadow: none;
  5820. }
  5821. }
  5822. .member-remove-btn {
  5823. color: #2563eb;
  5824. &:hover {
  5825. color: #1d4ed8;
  5826. background: transparent;
  5827. border-color: transparent;
  5828. }
  5829. }
  5830. @media (max-width: 960px) {
  5831. :deep(.object-group-modal .ant-modal) {
  5832. max-width: calc(100vw - 24px);
  5833. }
  5834. :deep(.object-group-modal .ant-modal-body) {
  5835. padding: 20px;
  5836. }
  5837. .group-modal-actions {
  5838. align-items: flex-start;
  5839. }
  5840. .group-modal-actions__info {
  5841. margin-right: 0;
  5842. }
  5843. .group-modal-actions__buttons {
  5844. width: 100%;
  5845. }
  5846. .group-modal-main {
  5847. grid-template-columns: minmax(0, 1fr);
  5848. }
  5849. .group-left .group-list {
  5850. max-height: 220px;
  5851. }
  5852. .member-list .ant-list-item {
  5853. flex-wrap: wrap;
  5854. gap: 12px;
  5855. }
  5856. .member-list .ant-list-item-action {
  5857. margin-left: 0;
  5858. }
  5859. .member-list .ant-list-item-action > li {
  5860. padding-left: 0;
  5861. }
  5862. .create-group-modal {
  5863. .ant-modal {
  5864. max-width: calc(100vw - 24px);
  5865. }
  5866. .ant-modal-body {
  5867. padding: 20px;
  5868. }
  5869. .create-group-section {
  5870. padding: 16px 16px 4px;
  5871. }
  5872. }
  5873. }
  5874. .dynamic-input-list {
  5875. display: flex;
  5876. flex-direction: column;
  5877. gap: 10px;
  5878. }
  5879. .dynamic-input-item {
  5880. display: flex;
  5881. align-items: flex-start;
  5882. gap: 10px;
  5883. .ant-form-item {
  5884. flex: 1;
  5885. min-width: 0;
  5886. margin-bottom: 0;
  5887. }
  5888. .remove-btn,
  5889. .add-btn {
  5890. width: 36px;
  5891. height: 36px;
  5892. min-width: 36px;
  5893. padding: 0;
  5894. display: flex;
  5895. align-items: center;
  5896. justify-content: center;
  5897. border-radius: 12px;
  5898. border: 1px solid #dbe5f5;
  5899. background: rgba(255, 255, 255, 0.86);
  5900. color: #64748b;
  5901. margin-top: 2px;
  5902. box-shadow:
  5903. inset 0 1px 0 rgba(255, 255, 255, 0.8),
  5904. 0 8px 18px rgba(95, 108, 143, 0.08);
  5905. &:hover {
  5906. color: #3b82f6;
  5907. background: #eff6ff;
  5908. border-color: #bfdbfe;
  5909. }
  5910. }
  5911. .remove-btn:hover {
  5912. color: #ef4444;
  5913. background: #fef2f2;
  5914. border-color: #fecaca;
  5915. }
  5916. }
  5917. .person-card-popover {
  5918. .ant-popover-inner {
  5919. border-radius: 10px;
  5920. box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  5921. padding: 0;
  5922. }
  5923. .ant-popover-inner-content {
  5924. padding: 6px 0;
  5925. }
  5926. .avatar-pop-content {
  5927. min-width: 86px;
  5928. }
  5929. .edit-item {
  5930. padding: 8px 14px;
  5931. font-size: 14px;
  5932. line-height: 1;
  5933. color: #334155;
  5934. cursor: pointer;
  5935. transition: all 0.2s ease;
  5936. user-select: none;
  5937. &:hover {
  5938. background: #f1f5f9;
  5939. color: #1d4ed8;
  5940. }
  5941. &.delete {
  5942. color: #ef4444;
  5943. &:hover {
  5944. background: #fff1f2;
  5945. color: #dc2626;
  5946. }
  5947. }
  5948. }
  5949. }
  5950. .create-group-modal {
  5951. .ant-modal-content {
  5952. max-height: 720px;
  5953. display: flex;
  5954. flex-direction: column;
  5955. padding: 0;
  5956. overflow: hidden;
  5957. border-radius: 14px;
  5958. background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  5959. box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  5960. }
  5961. .ant-modal-header {
  5962. flex: 0 0 auto;
  5963. padding: 20px;
  5964. border-bottom: 1px solid #e5e7eb;
  5965. background: @modal-header-bg-color;
  5966. }
  5967. .ant-modal-title {
  5968. font-size: 16px;
  5969. font-weight: 600;
  5970. line-height: 24px;
  5971. color: #111827;
  5972. }
  5973. .ant-modal-close {
  5974. top: 14px;
  5975. right: 16px;
  5976. color: #64748b;
  5977. border-radius: 8px;
  5978. transition: background-color 0.2s ease;
  5979. }
  5980. .ant-modal-close:hover {
  5981. background: rgba(37, 99, 235, 0.08);
  5982. }
  5983. .ant-modal-close-x {
  5984. width: 36px;
  5985. height: 36px;
  5986. }
  5987. .ant-modal-body {
  5988. flex: 1 1 auto;
  5989. min-height: 0;
  5990. overflow-y: auto;
  5991. padding: 20px;
  5992. }
  5993. .ant-modal-body::-webkit-scrollbar {
  5994. width: 6px;
  5995. }
  5996. .ant-modal-body::-webkit-scrollbar-thumb {
  5997. background: #cbd5e1;
  5998. border-radius: 3px;
  5999. }
  6000. .ant-modal-footer {
  6001. flex: 0 0 auto;
  6002. margin: 0;
  6003. padding: 20px;
  6004. border-top: 1px solid #e5e7eb;
  6005. background: #fff;
  6006. }
  6007. .create-group-form {
  6008. display: flex;
  6009. flex-direction: column;
  6010. gap: 14px;
  6011. .ant-form-item {
  6012. margin-bottom: 10px;
  6013. }
  6014. .ant-form-item-label > label {
  6015. color: #374151;
  6016. font-weight: 600;
  6017. }
  6018. .ant-input,
  6019. .ant-select-selector,
  6020. .ant-input-affix-wrapper {
  6021. height: 42px;
  6022. border-radius: 8px;
  6023. border-color: #dbe2ea;
  6024. background: #fff;
  6025. box-shadow: none;
  6026. transition:
  6027. border-color 0.2s ease,
  6028. box-shadow 0.2s ease,
  6029. background 0.2s ease;
  6030. }
  6031. .ant-select-single .ant-select-selector {
  6032. display: flex;
  6033. align-items: center;
  6034. }
  6035. .ant-select-single .ant-select-selector .ant-select-selection-item,
  6036. .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  6037. line-height: 40px;
  6038. }
  6039. .ant-input-textarea textarea {
  6040. min-height: 108px;
  6041. border-radius: 8px;
  6042. border-color: #dbe2ea;
  6043. background: #fff;
  6044. box-shadow: none;
  6045. resize: none;
  6046. }
  6047. .ant-input:focus,
  6048. .ant-input-focused,
  6049. .ant-select-focused .ant-select-selector,
  6050. .ant-select-open .ant-select-selector,
  6051. .ant-input-affix-wrapper-focused,
  6052. .ant-input-textarea textarea:focus {
  6053. border-color: #1677ff;
  6054. box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
  6055. background: #fff;
  6056. }
  6057. }
  6058. .create-group-section {
  6059. padding: 16px 16px 4px;
  6060. border: 1px solid #e2e8f0;
  6061. border-radius: 12px;
  6062. background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  6063. box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  6064. }
  6065. .create-group-section__head {
  6066. margin-bottom: 14px;
  6067. padding-bottom: 10px;
  6068. border-bottom: 1px solid #eef2f7;
  6069. }
  6070. .create-group-section__title {
  6071. font-size: 15px;
  6072. line-height: 1.3;
  6073. color: #111827;
  6074. font-weight: 700;
  6075. }
  6076. .create-group-section__desc {
  6077. margin-top: 4px;
  6078. font-size: 12px;
  6079. line-height: 1.5;
  6080. color: #64748b;
  6081. }
  6082. }
  6083. .add-group-person-modal {
  6084. .ant-modal {
  6085. max-width: calc(100vw - 24px);
  6086. }
  6087. .ant-modal-content {
  6088. max-height: min(760px, calc(100vh - 32px));
  6089. display: flex;
  6090. flex-direction: column;
  6091. padding: 0;
  6092. overflow: hidden;
  6093. border-radius: 14px;
  6094. background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  6095. box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  6096. }
  6097. .ant-modal-header {
  6098. flex: 0 0 auto;
  6099. padding: 20px;
  6100. border-bottom: 1px solid #e5e7eb;
  6101. background: @modal-header-bg-color;
  6102. }
  6103. .ant-modal-title {
  6104. font-size: 16px;
  6105. font-weight: 600;
  6106. line-height: 24px;
  6107. color: #111827;
  6108. }
  6109. .ant-modal-close {
  6110. top: 14px;
  6111. right: 16px;
  6112. color: #64748b;
  6113. border-radius: 8px;
  6114. transition: background-color 0.2s ease;
  6115. }
  6116. .ant-modal-close:hover {
  6117. background: rgba(37, 99, 235, 0.08);
  6118. }
  6119. .ant-modal-close-x {
  6120. width: 36px;
  6121. height: 36px;
  6122. }
  6123. .ant-modal-body {
  6124. flex: 1 1 auto;
  6125. display: flex;
  6126. flex-direction: column;
  6127. min-height: 0;
  6128. padding: 20px;
  6129. overflow: hidden;
  6130. }
  6131. .ant-modal-footer {
  6132. flex: 0 0 auto;
  6133. margin: 0;
  6134. padding: 20px;
  6135. border-top: 1px solid #e5e7eb;
  6136. background: #fff;
  6137. }
  6138. }
  6139. .add-object-modal {
  6140. display: flex;
  6141. flex-direction: column;
  6142. flex: 1 1 auto;
  6143. gap: 14px;
  6144. min-height: 0;
  6145. overflow: hidden;
  6146. }
  6147. .add-object-modal__search {
  6148. display: flex;
  6149. flex-direction: column;
  6150. gap: 12px;
  6151. padding: 14px 16px;
  6152. border: 1px solid #e2e8f0;
  6153. border-radius: 12px;
  6154. background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  6155. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  6156. .ant-input,
  6157. .ant-input-affix-wrapper {
  6158. border-radius: 8px;
  6159. }
  6160. }
  6161. .add-object-modal__search-head {
  6162. display: flex;
  6163. align-items: flex-start;
  6164. justify-content: space-between;
  6165. gap: 12px;
  6166. }
  6167. .add-object-modal__title {
  6168. font-size: 15px;
  6169. font-weight: 700;
  6170. color: #111827;
  6171. }
  6172. .add-object-modal__desc,
  6173. .add-object-modal__stats {
  6174. font-size: 12px;
  6175. line-height: 1.6;
  6176. color: #64748b;
  6177. }
  6178. .add-object-modal__content {
  6179. flex: 1 1 auto;
  6180. display: flex;
  6181. flex-direction: column;
  6182. min-height: 0;
  6183. overflow: hidden;
  6184. padding: 0 2px 2px;
  6185. }
  6186. .add-object-list {
  6187. flex: 1 1 auto;
  6188. min-height: 0;
  6189. overflow-y: auto;
  6190. padding-right: 4px;
  6191. padding-bottom: 2px;
  6192. }
  6193. .add-object-item {
  6194. display: flex;
  6195. align-items: center;
  6196. gap: 14px;
  6197. padding: 14px 16px;
  6198. border: 1px solid #e5e7eb;
  6199. border-radius: 14px;
  6200. background: #fff;
  6201. cursor: pointer;
  6202. transition: all 0.2s ease;
  6203. & + .add-object-item {
  6204. margin-top: 10px;
  6205. }
  6206. &:hover {
  6207. border-color: #cbd5e1;
  6208. box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  6209. }
  6210. &.is-selected {
  6211. border-color: #93c5fd;
  6212. background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  6213. box-shadow: 0 10px 22px rgba(59, 130, 246, 0.08);
  6214. }
  6215. &.is-disabled {
  6216. cursor: not-allowed;
  6217. opacity: 0.72;
  6218. background: #f8fafc;
  6219. }
  6220. }
  6221. .add-object-item__avatar {
  6222. flex: 0 0 auto;
  6223. background: linear-gradient(135deg, #e0ecff 0%, #c7dbff 100%);
  6224. color: #3157d5;
  6225. font-weight: 700;
  6226. }
  6227. .add-object-item__body {
  6228. flex: 1;
  6229. min-width: 0;
  6230. }
  6231. .add-object-item__head {
  6232. display: flex;
  6233. align-items: center;
  6234. gap: 8px;
  6235. min-width: 0;
  6236. }
  6237. .add-object-item__name {
  6238. min-width: 0;
  6239. font-size: 15px;
  6240. font-weight: 700;
  6241. color: #111827;
  6242. overflow: hidden;
  6243. text-overflow: ellipsis;
  6244. white-space: nowrap;
  6245. }
  6246. .add-object-item__tag {
  6247. flex: 0 0 auto;
  6248. padding: 1px 8px;
  6249. border-radius: 999px;
  6250. background: #e2e8f0;
  6251. color: #475569;
  6252. font-size: 12px;
  6253. line-height: 20px;
  6254. }
  6255. .add-object-item__meta {
  6256. display: flex;
  6257. flex-wrap: wrap;
  6258. gap: 8px 16px;
  6259. margin-top: 6px;
  6260. font-size: 12px;
  6261. line-height: 1.7;
  6262. color: #64748b;
  6263. }
  6264. .add-object-modal__empty {
  6265. display: flex;
  6266. align-items: center;
  6267. justify-content: center;
  6268. min-height: 320px;
  6269. border: 1px dashed #d7dee8;
  6270. border-radius: 14px;
  6271. background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  6272. color: #94a3b8;
  6273. font-size: 14px;
  6274. }
  6275. .person-edit-modal {
  6276. .ant-modal-content {
  6277. max-height: 720px;
  6278. display: flex;
  6279. flex-direction: column;
  6280. padding: 0;
  6281. overflow: hidden;
  6282. border-radius: 14px;
  6283. background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  6284. box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  6285. }
  6286. .ant-modal-header {
  6287. flex: 0 0 auto;
  6288. padding: 20px;
  6289. border-bottom: 1px solid #e5e7eb;
  6290. background: @modal-header-bg-color;
  6291. }
  6292. .ant-modal-title {
  6293. color: inherit;
  6294. }
  6295. .ant-modal-close {
  6296. top: 14px;
  6297. right: 16px;
  6298. color: #64748b;
  6299. border-radius: 8px;
  6300. transition: background-color 0.2s ease;
  6301. }
  6302. .ant-modal-close:hover {
  6303. background: rgba(37, 99, 235, 0.08);
  6304. }
  6305. .ant-modal-close-x {
  6306. width: 36px;
  6307. height: 36px;
  6308. }
  6309. .ant-modal-body {
  6310. flex: 1 1 auto;
  6311. min-height: 0;
  6312. overflow-y: auto;
  6313. padding: 20px;
  6314. }
  6315. .ant-modal-body::-webkit-scrollbar {
  6316. width: 6px;
  6317. }
  6318. .ant-modal-body::-webkit-scrollbar-thumb {
  6319. background: #cbd5e1;
  6320. border-radius: 3px;
  6321. }
  6322. .ant-modal-footer {
  6323. flex: 0 0 auto;
  6324. margin: 0;
  6325. padding: 20px;
  6326. border-top: 1px solid #e5e7eb;
  6327. background: #fff;
  6328. }
  6329. .person-form {
  6330. display: flex;
  6331. flex-direction: column;
  6332. gap: 14px;
  6333. }
  6334. .person-form-section {
  6335. padding: 16px 16px 4px;
  6336. border: 1px solid #e2e8f0;
  6337. border-radius: 12px;
  6338. background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  6339. box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  6340. }
  6341. .form-section-head {
  6342. display: flex;
  6343. align-items: center;
  6344. justify-content: space-between;
  6345. gap: 12px;
  6346. margin-bottom: 14px;
  6347. padding-bottom: 10px;
  6348. border-bottom: 1px solid #eef2f7;
  6349. }
  6350. .form-section-title {
  6351. font-size: 15px;
  6352. line-height: 1.3;
  6353. color: #111827;
  6354. font-weight: 700;
  6355. }
  6356. .form-section-desc {
  6357. margin-top: 4px;
  6358. font-size: 12px;
  6359. line-height: 1.5;
  6360. color: #6b7280;
  6361. }
  6362. .person-form-grid {
  6363. display: grid;
  6364. grid-template-columns: repeat(2, minmax(0, 1fr));
  6365. column-gap: 16px;
  6366. row-gap: 6px;
  6367. }
  6368. .form-item-span-2 {
  6369. grid-column: 1 / -1;
  6370. }
  6371. .person-form-grid .ant-form-item {
  6372. margin-bottom: 10px;
  6373. }
  6374. .person-form-grid .ant-form-item-label > label {
  6375. font-size: 13px;
  6376. font-weight: 600;
  6377. color: #374151;
  6378. }
  6379. .person-form-grid .ant-form-item .ant-input,
  6380. .person-form-grid .ant-form-item .ant-input-affix-wrapper,
  6381. .person-form-grid .ant-form-item .ant-picker {
  6382. width: 100%;
  6383. height: 42px;
  6384. border-radius: 8px;
  6385. border-color: #dbe2ea;
  6386. background: #fff;
  6387. box-shadow: none;
  6388. transition:
  6389. border-color 0.2s ease,
  6390. box-shadow 0.2s ease,
  6391. background 0.2s ease;
  6392. }
  6393. .person-form-grid .ant-form-item .ant-input:focus,
  6394. .person-form-grid .ant-form-item .ant-input-focused,
  6395. .person-form-grid .ant-form-item .ant-input-affix-wrapper-focused,
  6396. .person-form-grid .ant-form-item .ant-picker-focused {
  6397. border-color: #1677ff;
  6398. box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
  6399. background: #fff;
  6400. }
  6401. .person-form-grid .ant-form-item .ant-select {
  6402. width: 100%;
  6403. }
  6404. .person-form-grid .ant-form-item .ant-select-selector {
  6405. height: 42px;
  6406. border-radius: 8px;
  6407. border-color: #dbe2ea;
  6408. background: #fff;
  6409. box-shadow: none;
  6410. transition:
  6411. border-color 0.2s ease,
  6412. box-shadow 0.2s ease,
  6413. background 0.2s ease;
  6414. }
  6415. .person-form-grid .ant-form-item .ant-select-focused .ant-select-selector,
  6416. .person-form-grid .ant-form-item .ant-select-open .ant-select-selector {
  6417. border-color: #1677ff;
  6418. box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
  6419. background: #fff;
  6420. }
  6421. .person-form-grid .ant-form-item .ant-select-single .ant-select-selector .ant-select-selection-item,
  6422. .person-form-grid .ant-form-item .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  6423. line-height: 40px;
  6424. }
  6425. .person-form-grid .dynamic-input-list {
  6426. gap: 12px;
  6427. }
  6428. .person-avatar-form-item {
  6429. margin-bottom: 12px;
  6430. }
  6431. .person-avatar-upload {
  6432. display: flex;
  6433. align-items: center;
  6434. gap: 16px;
  6435. padding: 14px 16px;
  6436. border: 1px solid #e2e8f0;
  6437. border-radius: 12px;
  6438. background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  6439. }
  6440. .person-avatar-upload__input {
  6441. display: none;
  6442. width: 0;
  6443. height: 0;
  6444. opacity: 0;
  6445. pointer-events: none;
  6446. }
  6447. .person-avatar-upload__preview {
  6448. display: inline-flex;
  6449. align-items: center;
  6450. justify-content: center;
  6451. padding: 0;
  6452. border: 0;
  6453. background: transparent;
  6454. cursor: pointer;
  6455. flex: 0 0 auto;
  6456. }
  6457. .person-avatar-upload__preview :deep(.jeesite-person-avatar) {
  6458. border-radius: 999px;
  6459. transition:
  6460. transform 0.2s ease,
  6461. box-shadow 0.2s ease;
  6462. }
  6463. .person-avatar-upload__preview:hover :deep(.jeesite-person-avatar) {
  6464. transform: translateY(-1px);
  6465. box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  6466. }
  6467. .person-avatar-upload__tips {
  6468. min-width: 0;
  6469. flex: 1 1 auto;
  6470. }
  6471. .person-avatar-upload__title {
  6472. font-size: 14px;
  6473. line-height: 22px;
  6474. font-weight: 600;
  6475. color: #111827;
  6476. }
  6477. .person-avatar-upload__desc {
  6478. margin-top: 4px;
  6479. font-size: 12px;
  6480. line-height: 20px;
  6481. color: #6b7280;
  6482. }
  6483. .person-avatar-upload__actions {
  6484. display: flex;
  6485. align-items: center;
  6486. gap: 12px;
  6487. margin-top: 12px;
  6488. flex-wrap: wrap;
  6489. }
  6490. .person-form-grid .dynamic-input-item {
  6491. padding: 12px 12px 10px;
  6492. border: 1px solid #e2e8f0;
  6493. border-radius: 10px;
  6494. background: #fff;
  6495. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  6496. }
  6497. .person-form-grid .dynamic-input-item .ant-form-item {
  6498. margin-bottom: 0;
  6499. }
  6500. .person-form-grid .dynamic-input-item .ant-form-item-explain {
  6501. margin-top: 6px;
  6502. }
  6503. .person-form-grid .dynamic-input-item .add-btn,
  6504. .person-form-grid .dynamic-input-item .remove-btn {
  6505. width: 32px;
  6506. height: 32px;
  6507. min-width: 32px;
  6508. padding: 0;
  6509. display: flex;
  6510. align-items: center;
  6511. justify-content: center;
  6512. border-radius: 8px;
  6513. border: 1px solid #dbe2ea;
  6514. background: #fff;
  6515. color: #475569;
  6516. margin-top: 4px;
  6517. box-shadow: none;
  6518. }
  6519. .person-form-grid .dynamic-input-item .add-btn:hover {
  6520. color: #2563eb;
  6521. border-color: #bfdbfe;
  6522. background: #eff6ff;
  6523. }
  6524. .person-form-grid .dynamic-input-item .remove-btn:hover {
  6525. color: #dc2626;
  6526. border-color: #fecaca;
  6527. background: #fff1f2;
  6528. }
  6529. }
  6530. @media (max-width: 1200px) {
  6531. .person-edit-modal {
  6532. .ant-modal-body {
  6533. padding: 20px;
  6534. }
  6535. .person-form-grid {
  6536. grid-template-columns: minmax(0, 1fr);
  6537. }
  6538. .form-item-span-2 {
  6539. grid-column: auto;
  6540. }
  6541. .person-avatar-upload {
  6542. align-items: flex-start;
  6543. flex-direction: column;
  6544. }
  6545. }
  6546. }
  6547. .call-oper-phone-modal {
  6548. .query-table-wrap {
  6549. gap: 14px;
  6550. }
  6551. .query-table-search {
  6552. margin: 6px 6px 0;
  6553. padding: 14px 16px;
  6554. border: 1px solid #e2e8f0;
  6555. border-radius: 12px;
  6556. background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  6557. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  6558. .label {
  6559. color: #475569;
  6560. font-size: 12px;
  6561. font-weight: 600;
  6562. }
  6563. .ant-input,
  6564. .ant-input-affix-wrapper,
  6565. .ant-picker,
  6566. .ant-select-selector {
  6567. border-radius: 8px !important;
  6568. }
  6569. .ant-btn {
  6570. height: 32px;
  6571. padding: 0 16px;
  6572. border-radius: 8px;
  6573. }
  6574. }
  6575. .ant-modal-body > .scroll-container,
  6576. .ant-modal-body > .scroll-container > .scrollbar__wrap,
  6577. .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view,
  6578. .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view > div {
  6579. height: 100%;
  6580. min-height: 0;
  6581. }
  6582. .ant-modal-body > .scroll-container > .scrollbar__wrap {
  6583. overflow: hidden;
  6584. }
  6585. .ant-modal-body > .scroll-container > .scrollbar__wrap > .scrollbar__view {
  6586. margin: 0 !important;
  6587. }
  6588. .ant-modal-body > .scroll-container > .scrollbar__bar.is-vertical,
  6589. .ant-modal-body > .scroll-container > .is-vertical {
  6590. display: none !important;
  6591. opacity: 0 !important;
  6592. pointer-events: none;
  6593. }
  6594. }
  6595. .@{prefix-cls}.case-portrait-page {
  6596. background: #fff;
  6597. // padding: 0 8px 2px;
  6598. display: flex;
  6599. flex-direction: column;
  6600. min-height: 0;
  6601. :deep(.ant-btn) {
  6602. border-radius: 8px;
  6603. }
  6604. :deep(.ant-btn-primary) {
  6605. box-shadow: none;
  6606. }
  6607. :deep(.ant-input),
  6608. :deep(.ant-input-affix-wrapper),
  6609. :deep(.ant-picker),
  6610. :deep(.ant-select-selector) {
  6611. border-color: #dbe2ea;
  6612. border-radius: 8px;
  6613. background: #fff;
  6614. box-shadow: none;
  6615. }
  6616. :deep(.ant-input:hover),
  6617. :deep(.ant-input-affix-wrapper:hover),
  6618. :deep(.ant-picker:hover),
  6619. :deep(.ant-select:not(.ant-select-disabled):hover .ant-select-selector) {
  6620. border-color: #cbd5e1;
  6621. }
  6622. :deep(.ant-input:focus),
  6623. :deep(.ant-input-focused),
  6624. :deep(.ant-input-affix-wrapper-focused),
  6625. :deep(.ant-picker-focused),
  6626. :deep(.ant-select-focused .ant-select-selector),
  6627. :deep(.ant-select-open .ant-select-selector) {
  6628. border-color: #1677ff;
  6629. box-shadow: 0 0 0 2px rgb(22 119 255 / 12%);
  6630. }
  6631. .page-main {
  6632. display: flex;
  6633. flex-direction: column;
  6634. flex: 1 1 auto;
  6635. min-height: 0;
  6636. height: auto;
  6637. gap: 12px;
  6638. padding: 0;
  6639. overflow: hidden;
  6640. }
  6641. .page-layout {
  6642. flex: 1 1 auto;
  6643. min-height: 0;
  6644. height: auto;
  6645. align-items: stretch;
  6646. grid-template-columns: 156px minmax(0, 1fr);
  6647. gap: 2px;
  6648. padding: 2px;
  6649. background: #f3f4f6;
  6650. overflow: hidden;
  6651. box-sizing: border-box;
  6652. }
  6653. .left-panel {
  6654. position: relative;
  6655. top: auto;
  6656. align-self: stretch;
  6657. display: flex;
  6658. height: auto;
  6659. max-height: none;
  6660. min-height: 0;
  6661. overflow: hidden;
  6662. }
  6663. .left-panel .panel-card {
  6664. flex: 1 1 auto;
  6665. width: 100%;
  6666. height: auto;
  6667. min-height: 0;
  6668. max-height: 100%;
  6669. background: #fff;
  6670. border: 1px solid #e2e8f0;
  6671. border-radius: 12px;
  6672. padding: 8px;
  6673. gap: 8px;
  6674. box-shadow: none;
  6675. }
  6676. .left-panel .panel-card::before,
  6677. .person-list::before,
  6678. .person-card::before,
  6679. .person-card::after,
  6680. .person-avatar-wrap::before {
  6681. display: none;
  6682. }
  6683. .panel-heading {
  6684. display: flex;
  6685. align-items: center;
  6686. justify-content: space-between;
  6687. gap: 8px;
  6688. padding: 0 4px 2px;
  6689. }
  6690. .panel-heading__title {
  6691. font-size: 14px;
  6692. font-weight: 600;
  6693. color: #111827;
  6694. }
  6695. .panel-heading__badge {
  6696. min-width: 28px;
  6697. height: 24px;
  6698. padding: 0 8px;
  6699. border-radius: 999px;
  6700. display: inline-flex;
  6701. align-items: center;
  6702. justify-content: center;
  6703. background: #eff6ff;
  6704. color: #1d4ed8;
  6705. font-size: 12px;
  6706. font-weight: 600;
  6707. }
  6708. .search-box :deep(.ant-input),
  6709. .search-box :deep(.ant-input-affix-wrapper) {
  6710. height: 34px;
  6711. padding-inline: 10px;
  6712. border-radius: 8px;
  6713. background: #fff;
  6714. }
  6715. .search-box :deep(.ant-input-affix-wrapper) {
  6716. display: flex;
  6717. align-items: center;
  6718. overflow: hidden;
  6719. box-sizing: border-box;
  6720. }
  6721. .search-box :deep(.ant-input-affix-wrapper > .ant-input) {
  6722. height: 100%;
  6723. padding: 0;
  6724. border: 0;
  6725. border-radius: 0;
  6726. background: transparent;
  6727. box-shadow: none;
  6728. }
  6729. .search-box :deep(.ant-input-affix-wrapper .ant-input-suffix),
  6730. .search-box :deep(.ant-input-affix-wrapper .ant-input-clear-icon) {
  6731. display: inline-flex;
  6732. align-items: center;
  6733. }
  6734. .left-panel .panel-card .side-action-btn.ant-btn {
  6735. height: 34px;
  6736. border-radius: 8px;
  6737. font-weight: 600;
  6738. letter-spacing: normal;
  6739. box-shadow: none;
  6740. transition:
  6741. border-color 0.2s ease,
  6742. background-color 0.2s ease,
  6743. color 0.2s ease;
  6744. }
  6745. .left-panel .panel-card .side-action-btn--primary.ant-btn {
  6746. border-color: #2a50ec;
  6747. background: #2a50ec;
  6748. color: #fff;
  6749. &:hover,
  6750. &:focus {
  6751. border-color: #4b6bf0;
  6752. background: #4b6bf0;
  6753. color: #fff;
  6754. }
  6755. &:active {
  6756. border-color: #1e3ed0;
  6757. background: #1e3ed0;
  6758. color: #fff;
  6759. }
  6760. }
  6761. .person-list {
  6762. flex: 1 1 auto;
  6763. min-height: 0;
  6764. align-items: stretch;
  6765. gap: 8px;
  6766. padding: 2px 0 0;
  6767. }
  6768. .person-list .empty-tip {
  6769. width: 100%;
  6770. min-height: 148px;
  6771. padding: 0;
  6772. gap: 0;
  6773. border: 0;
  6774. border-radius: 0;
  6775. background: transparent;
  6776. box-shadow: none;
  6777. }
  6778. .person-list .empty-tip::before {
  6779. content: none;
  6780. display: none;
  6781. }
  6782. .person-card {
  6783. width: 100%;
  6784. max-width: none;
  6785. min-height: 0;
  6786. padding: 8px 10px;
  6787. border: 1px solid #eef2f7;
  6788. border-radius: 10px;
  6789. background: #fff;
  6790. flex-direction: row;
  6791. align-items: center;
  6792. justify-content: flex-start;
  6793. gap: 10px;
  6794. transition:
  6795. border-color 0.2s ease,
  6796. background 0.2s ease,
  6797. box-shadow 0.2s ease;
  6798. &:hover {
  6799. transform: none;
  6800. background: #fff;
  6801. border-color: #91caff;
  6802. box-shadow: none;
  6803. }
  6804. &.active {
  6805. transform: none;
  6806. background: rgba(247, 251, 255, 0.72);
  6807. border-color: #1677ff;
  6808. box-shadow: none;
  6809. }
  6810. }
  6811. .person-card:hover .person-avatar .jeesite-person-avatar__media,
  6812. .person-card.active .person-avatar .jeesite-person-avatar__media {
  6813. background: #1677ff;
  6814. border-color: #bfdbfe;
  6815. box-shadow: none;
  6816. }
  6817. .person-card:hover .person-name,
  6818. .person-card.active .person-name {
  6819. color: #111827;
  6820. font-weight: 600;
  6821. }
  6822. .person-avatar-wrap {
  6823. width: 40px;
  6824. height: 40px;
  6825. flex: 0 0 40px;
  6826. transform: none;
  6827. }
  6828. .person-trigger {
  6829. display: flex;
  6830. align-items: center;
  6831. gap: 10px;
  6832. flex: 1;
  6833. min-width: 0;
  6834. cursor: pointer;
  6835. }
  6836. .person-avatar {
  6837. background: transparent;
  6838. box-shadow: none;
  6839. }
  6840. .person-name {
  6841. flex: 1;
  6842. min-width: 0;
  6843. max-width: none;
  6844. min-height: auto;
  6845. font-size: 13px;
  6846. line-height: 20px;
  6847. text-align: left;
  6848. color: #374151;
  6849. letter-spacing: 0;
  6850. }
  6851. .left-panel .panel-card .group-btn-wrap {
  6852. margin-top: auto;
  6853. flex-shrink: 0;
  6854. padding-top: 8px;
  6855. padding-bottom: 2px;
  6856. border-top: 1px solid #eef2f7;
  6857. background: #fff;
  6858. position: relative;
  6859. z-index: 2;
  6860. }
  6861. .left-panel .panel-card .group-btn-wrap .group-btn.ant-btn {
  6862. width: 100%;
  6863. border-color: #dbe2ea;
  6864. background: #fff;
  6865. color: #1677ff;
  6866. &:hover,
  6867. &:focus {
  6868. border-color: #bfdbfe;
  6869. background: #f8fbff;
  6870. color: #1d4ed8;
  6871. }
  6872. &:active {
  6873. border-color: #91caff;
  6874. background: #e6f4ff;
  6875. color: #0958d9;
  6876. }
  6877. }
  6878. .right-panel {
  6879. min-height: 0;
  6880. height: auto;
  6881. gap: 2px;
  6882. padding-right: 0;
  6883. background: #f3f4f6;
  6884. }
  6885. .right-panel::-webkit-scrollbar-thumb {
  6886. background: #d1d5db;
  6887. }
  6888. .section-card,
  6889. .comm-section,
  6890. .trade-section {
  6891. padding: 16px;
  6892. border: 1px solid #e2e8f0;
  6893. border-radius: 12px;
  6894. background: #fff;
  6895. box-shadow: none;
  6896. }
  6897. .section-header {
  6898. margin-bottom: 16px;
  6899. padding-bottom: 12px;
  6900. gap: 12px 16px;
  6901. border-bottom: 1px solid #eef2f7;
  6902. }
  6903. .section-title {
  6904. gap: 8px;
  6905. font-size: 16px;
  6906. font-weight: 600;
  6907. color: #111827;
  6908. letter-spacing: 0;
  6909. &::before {
  6910. width: 3px;
  6911. height: 14px;
  6912. background: #1677ff;
  6913. box-shadow: none;
  6914. }
  6915. }
  6916. .section-tools {
  6917. gap: 8px;
  6918. }
  6919. .section-action {
  6920. padding: 0 12px;
  6921. color: #1677ff;
  6922. font-weight: 500;
  6923. }
  6924. .section-action.ant-btn-link {
  6925. height: 32px;
  6926. border: 1px solid #dbe2ea;
  6927. border-radius: 8px;
  6928. background: #fff;
  6929. box-shadow: none;
  6930. &:hover {
  6931. border-color: #bfdbfe;
  6932. background: #f9fafb;
  6933. color: #0958d9;
  6934. }
  6935. }
  6936. .basic-content {
  6937. grid-template-columns: 108px minmax(0, 1fr);
  6938. gap: 10px;
  6939. }
  6940. .basic-profile {
  6941. gap: 4px;
  6942. padding: 8px 6px;
  6943. border: 1px solid #eef2f7;
  6944. border-radius: 10px;
  6945. background: #fafafa;
  6946. justify-content: center;
  6947. }
  6948. .profile-avatar {
  6949. width: 56px;
  6950. height: 56px;
  6951. border-radius: 50%;
  6952. background: #1677ff;
  6953. box-shadow: none;
  6954. font-size: 22px;
  6955. }
  6956. .profile-name {
  6957. color: #111827;
  6958. font-size: 13px;
  6959. }
  6960. .info-grid {
  6961. grid-template-columns: repeat(4, minmax(0, 1fr));
  6962. gap: 5px;
  6963. }
  6964. .info-item {
  6965. gap: 2px;
  6966. min-height: 40px;
  6967. padding: 6px 8px;
  6968. border: 1px solid #eef2f7;
  6969. border-radius: 10px;
  6970. background: #fafafa;
  6971. flex-direction: column;
  6972. }
  6973. .info-label {
  6974. font-size: 12px;
  6975. color: #6b7280;
  6976. line-height: 16px;
  6977. }
  6978. .info-value {
  6979. color: #111827;
  6980. font-size: 13px;
  6981. line-height: 16px;
  6982. }
  6983. .relation-search {
  6984. width: 240px;
  6985. max-width: 100%;
  6986. }
  6987. .relation-list {
  6988. grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  6989. gap: 12px;
  6990. }
  6991. .relation-card {
  6992. gap: 12px;
  6993. padding: 14px;
  6994. border: 1px solid #e5e7eb;
  6995. border-radius: 12px;
  6996. background: #fff;
  6997. box-shadow: none;
  6998. transition:
  6999. border-color 0.2s ease,
  7000. box-shadow 0.2s ease;
  7001. &:hover {
  7002. border-color: #bfdbfe;
  7003. box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
  7004. }
  7005. }
  7006. .relation-avatar {
  7007. width: 42px;
  7008. height: 42px;
  7009. border-radius: 12px;
  7010. background: #eff6ff;
  7011. color: #1677ff;
  7012. }
  7013. .relation-name {
  7014. font-size: 14px;
  7015. color: #111827;
  7016. }
  7017. .relation-score {
  7018. font-size: 12px;
  7019. color: #6b7280;
  7020. span {
  7021. color: #1677ff;
  7022. }
  7023. }
  7024. .relation-tags {
  7025. gap: 8px;
  7026. }
  7027. .tag {
  7028. padding: 4px 8px;
  7029. border-radius: 999px;
  7030. background: #f3f4f6;
  7031. color: #4b5563;
  7032. font-size: 12px;
  7033. }
  7034. .relation-action {
  7035. align-self: flex-start;
  7036. color: #1677ff;
  7037. font-weight: 500;
  7038. }
  7039. .comm-info,
  7040. .trade-summary {
  7041. display: flex;
  7042. flex-direction: column;
  7043. gap: 8px;
  7044. font-size: 13px;
  7045. color: #4b5563;
  7046. }
  7047. .comm-row,
  7048. .trade-row {
  7049. display: flex;
  7050. align-items: center;
  7051. flex-wrap: wrap;
  7052. gap: 8px 12px;
  7053. padding: 10px 12px;
  7054. border: 1px solid #eef2f7;
  7055. border-radius: 10px;
  7056. background: #fafafa;
  7057. }
  7058. .comm-row .label,
  7059. .trade-row .label {
  7060. color: #374151;
  7061. font-weight: 600;
  7062. }
  7063. .comm-row .value,
  7064. .trade-row .value {
  7065. color: #111827;
  7066. font-weight: 600;
  7067. }
  7068. .comm-row .carrier {
  7069. display: inline-flex;
  7070. align-items: center;
  7071. height: 24px;
  7072. padding: 0 8px;
  7073. border-radius: 999px;
  7074. background: #eff6ff;
  7075. color: #1677ff;
  7076. font-size: 12px;
  7077. }
  7078. .comm-row .carrier--link {
  7079. border: none;
  7080. cursor: pointer;
  7081. transition:
  7082. background-color 0.2s ease,
  7083. color 0.2s ease,
  7084. box-shadow 0.2s ease;
  7085. }
  7086. .comm-row .carrier--link:hover {
  7087. background: #dbeafe;
  7088. color: #145bdb;
  7089. box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12);
  7090. }
  7091. .trade-tag {
  7092. display: inline-flex;
  7093. align-items: center;
  7094. height: 24px;
  7095. padding: 0 8px;
  7096. border-radius: 999px;
  7097. border: none;
  7098. background: #eff6ff;
  7099. color: #1677ff;
  7100. font-size: 12px;
  7101. }
  7102. .trade-tag--link {
  7103. cursor: pointer;
  7104. transition:
  7105. background-color 0.2s ease,
  7106. color 0.2s ease,
  7107. box-shadow 0.2s ease;
  7108. }
  7109. .trade-tag--link:hover {
  7110. background: #eff6ff;
  7111. color: #1677ff;
  7112. box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12);
  7113. }
  7114. .comm-grid {
  7115. grid-template-columns: repeat(2, minmax(0, 1fr));
  7116. gap: 8px 12px;
  7117. }
  7118. .comm-summary-card {
  7119. padding: 10px 12px;
  7120. border: 1px solid #eef2f7;
  7121. border-radius: 10px;
  7122. background: #fafafa;
  7123. }
  7124. .comm-grid .grid-item {
  7125. gap: 6px;
  7126. min-width: 0;
  7127. padding: 0;
  7128. border: 0;
  7129. border-radius: 0;
  7130. background: transparent;
  7131. flex-direction: column;
  7132. }
  7133. .comm-grid .label {
  7134. font-size: 12px;
  7135. color: #6b7280;
  7136. }
  7137. .comm-grid .value {
  7138. color: #111827;
  7139. font-weight: 600;
  7140. }
  7141. .comm-divider {
  7142. margin: 16px 0;
  7143. border-top: 1px solid #eef2f7;
  7144. }
  7145. .comm-chart-row,
  7146. .trade-chart-row {
  7147. grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  7148. gap: 12px;
  7149. }
  7150. .comm-chart,
  7151. .trade-chart,
  7152. .trade-trend {
  7153. gap: 12px;
  7154. }
  7155. .chart-title {
  7156. gap: 8px;
  7157. font-size: 14px;
  7158. color: #111827;
  7159. .flag {
  7160. width: 3px;
  7161. height: 12px;
  7162. background: #1677ff;
  7163. box-shadow: none;
  7164. }
  7165. }
  7166. .trade-section .chart-title .flag {
  7167. background: #1677ff;
  7168. box-shadow: none;
  7169. }
  7170. .comm-top-header,
  7171. .trade-top-header,
  7172. .trade-trend-header {
  7173. align-items: flex-start;
  7174. gap: 12px 16px;
  7175. }
  7176. .comm-top-tools,
  7177. .trade-top-tools,
  7178. .trade-trend-filters {
  7179. display: flex;
  7180. align-items: center;
  7181. flex-wrap: wrap;
  7182. gap: 8px;
  7183. font-size: 12px;
  7184. color: #6b7280;
  7185. }
  7186. .comm-top-tools,
  7187. .trade-top-tools {
  7188. flex: 1;
  7189. justify-content: flex-end;
  7190. }
  7191. .comm-top-tools .tool-label,
  7192. .trade-top-tools .tool-label,
  7193. .trade-trend-filters .tool-label {
  7194. color: #6b7280;
  7195. font-size: 12px;
  7196. font-weight: 400;
  7197. }
  7198. .comm-top-tools .comm-top-range {
  7199. width: 320px;
  7200. max-width: 100%;
  7201. border-radius: 8px;
  7202. background: #fff;
  7203. box-shadow: none;
  7204. }
  7205. .trade-top-tools .metric-select {
  7206. width: 116px;
  7207. }
  7208. .trade-top-tools .trade-top-range {
  7209. width: 260px;
  7210. max-width: 100%;
  7211. border-radius: 8px;
  7212. background: #fff;
  7213. box-shadow: none;
  7214. }
  7215. .trade-top-tools .metric-select :deep(.ant-select-selector) {
  7216. border-radius: 8px;
  7217. background: #fff;
  7218. box-shadow: none;
  7219. }
  7220. .trade-top-dimension {
  7221. gap: 10px;
  7222. padding: 6px 10px;
  7223. border: 1px solid #e5e7eb;
  7224. border-radius: 8px;
  7225. background: #fafafa;
  7226. }
  7227. .trade-top-dimension .ant-radio-wrapper {
  7228. color: #374151;
  7229. font-size: 12px;
  7230. }
  7231. .visual-chart-surface,
  7232. .visual-chart-surface--comm,
  7233. .visual-chart-surface--trade {
  7234. margin-top: 0;
  7235. border: 1px solid #e5e7eb;
  7236. border-radius: 12px;
  7237. background: #fff;
  7238. backdrop-filter: none;
  7239. box-shadow: none;
  7240. }
  7241. .visual-chart-surface::before,
  7242. .visual-chart-surface::after {
  7243. display: none;
  7244. }
  7245. .visual-chart-surface--ratio,
  7246. .visual-chart-surface--bar {
  7247. min-height: 340px;
  7248. }
  7249. .visual-chart-surface--trend {
  7250. min-height: 420px;
  7251. padding: 0;
  7252. }
  7253. .comm-chart-box,
  7254. .comm-top-chart-box,
  7255. .trade-top-chart-box,
  7256. .trade-ratio-panel {
  7257. padding: 16px;
  7258. box-sizing: border-box;
  7259. height: 100%;
  7260. }
  7261. .trade-ratio-panel {
  7262. gap: 16px;
  7263. }
  7264. .chart-more-link {
  7265. height: 28px;
  7266. padding: 0 10px;
  7267. border: 1px solid #dbe2ea;
  7268. border-radius: 8px;
  7269. background: #fff;
  7270. backdrop-filter: none;
  7271. box-shadow: none;
  7272. color: #1677ff;
  7273. font-size: 12px;
  7274. }
  7275. .comm-echart,
  7276. .comm-top-echart {
  7277. height: 280px;
  7278. }
  7279. .trade-top-echart {
  7280. height: 300px;
  7281. }
  7282. .trade-ratio-echart {
  7283. width: 176px;
  7284. height: 176px;
  7285. flex: 0 0 176px;
  7286. }
  7287. .donut-wrap {
  7288. align-items: center;
  7289. gap: 16px;
  7290. }
  7291. .donut-legend {
  7292. gap: 12px;
  7293. font-size: 13px;
  7294. color: #374151;
  7295. }
  7296. .donut-legend .legend-title {
  7297. color: #374151;
  7298. }
  7299. .donut-legend .legend-rate,
  7300. .donut-legend .legend-amount {
  7301. color: #111827;
  7302. }
  7303. .legend-click {
  7304. gap: 8px;
  7305. padding: 12px;
  7306. border: 1px solid #eef2f7;
  7307. border-radius: 10px;
  7308. background: #fafafa;
  7309. backdrop-filter: none;
  7310. box-shadow: none;
  7311. &:hover {
  7312. border-color: #dbe2ea;
  7313. opacity: 1;
  7314. transform: none;
  7315. }
  7316. }
  7317. .trade-kpi {
  7318. gap: 12px;
  7319. display: grid;
  7320. grid-template-columns: repeat(2, minmax(0, 1fr));
  7321. }
  7322. .trade-kpi .trade-kpi-item {
  7323. padding: 12px 14px;
  7324. border: 1px solid #eef2f7;
  7325. border-radius: 10px;
  7326. background: #fafafa;
  7327. justify-content: space-between;
  7328. }
  7329. .trade-kpi .trade-kpi-label {
  7330. color: #6b7280;
  7331. }
  7332. .trade-kpi .trade-kpi-value {
  7333. color: #111827;
  7334. }
  7335. .trade-kpi .trade-kpi-value.down {
  7336. color: #f97316;
  7337. }
  7338. .trade-kpi .trade-kpi-value.up {
  7339. color: #10b981;
  7340. }
  7341. .trade-trend-subtitle {
  7342. color: #6b7280;
  7343. font-size: 12px;
  7344. }
  7345. .trade-trend-toolbar {
  7346. gap: 10px 12px;
  7347. padding: 12px 14px;
  7348. border: 1px solid #e5e7eb;
  7349. border-radius: 10px;
  7350. background: #fafafa;
  7351. box-shadow: none;
  7352. }
  7353. .trade-trend-filters {
  7354. gap: 8px;
  7355. }
  7356. .trade-trend-filters .trend-search-input {
  7357. width: 220px;
  7358. }
  7359. .trade-trend-filters .trend-range-input {
  7360. width: 280px;
  7361. max-width: 100%;
  7362. border-radius: 8px;
  7363. background: #fff;
  7364. box-shadow: none;
  7365. }
  7366. .trade-trend-dimension {
  7367. gap: 4px;
  7368. padding: 4px;
  7369. border: 1px solid #e5e7eb;
  7370. border-radius: 8px;
  7371. background: #fff;
  7372. box-shadow: none;
  7373. }
  7374. .radio {
  7375. padding: 4px 12px;
  7376. border-radius: 6px;
  7377. background: transparent;
  7378. color: #6b7280;
  7379. &.active {
  7380. background: #e6f4ff;
  7381. color: #1677ff;
  7382. }
  7383. }
  7384. .trend-title-row .trend-legend-item {
  7385. padding: 6px 10px;
  7386. border: 1px solid #e5e7eb;
  7387. border-radius: 8px;
  7388. background: #fff;
  7389. box-shadow: none;
  7390. &:hover {
  7391. border-color: #bfdbfe;
  7392. box-shadow: none;
  7393. transform: none;
  7394. }
  7395. &.is-muted {
  7396. opacity: 0.55;
  7397. }
  7398. }
  7399. .trend-title-row .circles-text {
  7400. color: #374151;
  7401. font-size: 12px;
  7402. }
  7403. .trend-chart-scroll {
  7404. padding: 0;
  7405. }
  7406. .trend-chart {
  7407. border: 1px solid #e5e7eb;
  7408. border-radius: 12px;
  7409. background: #fff;
  7410. box-shadow: none;
  7411. }
  7412. .trend-echart {
  7413. min-height: 320px;
  7414. }
  7415. .empty-state__title {
  7416. font-size: 14px;
  7417. font-weight: 600;
  7418. color: #4b5563;
  7419. }
  7420. .empty-state__desc {
  7421. display: block;
  7422. color: #9ca3af;
  7423. font-size: 12px;
  7424. line-height: 18px;
  7425. }
  7426. .chart-empty {
  7427. min-height: 180px;
  7428. margin-top: 0;
  7429. padding: 0;
  7430. gap: 0;
  7431. border: 0;
  7432. border-radius: 0;
  7433. background: transparent;
  7434. box-shadow: none;
  7435. color: inherit;
  7436. }
  7437. .chart-empty::before {
  7438. content: none;
  7439. display: none;
  7440. }
  7441. .trade-trend-empty {
  7442. min-height: 420px;
  7443. border: 0;
  7444. border-radius: 0;
  7445. background: transparent;
  7446. }
  7447. .trade-trend-chart-box {
  7448. border: 0;
  7449. border-radius: 0;
  7450. background: transparent;
  7451. box-shadow: none;
  7452. backdrop-filter: none;
  7453. padding: 0;
  7454. }
  7455. .station-row {
  7456. gap: 10px;
  7457. margin-bottom: 10px;
  7458. color: #374151;
  7459. }
  7460. .station-list {
  7461. gap: 8px;
  7462. }
  7463. .station-item {
  7464. padding: 6px 10px;
  7465. border: 1px solid #eef2f7;
  7466. border-radius: 8px;
  7467. background: #fafafa;
  7468. color: #4b5563;
  7469. }
  7470. }
  7471. .quick-nav {
  7472. background: rgb(255 255 255 / 96%);
  7473. backdrop-filter: blur(8px);
  7474. box-shadow: 0 8px 20px rgb(15 23 42 / 8%);
  7475. .nav-item {
  7476. padding: 6px 10px;
  7477. border-radius: 8px;
  7478. color: #6b7280;
  7479. transition:
  7480. background 0.2s ease,
  7481. color 0.2s ease;
  7482. &:hover {
  7483. background: #f9fafb;
  7484. color: #374151;
  7485. }
  7486. &.active {
  7487. background: #e6f4ff;
  7488. color: #1677ff;
  7489. }
  7490. }
  7491. }
  7492. /* ==========================================================================
  7493. * 数据画像界面优化:对象列表 / 基本信息排版 / 图表配色
  7494. * 约束:全部使用纯色,不出现任何渐变;主色沿用界面现有的项目蓝 #1677ff
  7495. * ========================================================================== */
  7496. .@{prefix-cls}.case-portrait-page {
  7497. // ---------------- 左侧对象列表 ----------------
  7498. .page-layout {
  7499. // 左右两栏间距与右侧卡片之间的上下间距保持一致(右侧卡片 gap = 2px)
  7500. grid-template-columns: 208px minmax(0, 1fr);
  7501. gap: 2px;
  7502. }
  7503. .left-panel .panel-card {
  7504. padding: 12px 10px;
  7505. gap: 10px;
  7506. border-radius: 14px;
  7507. }
  7508. .panel-heading {
  7509. padding: 2px 4px 0;
  7510. }
  7511. .panel-heading__title {
  7512. font-size: 14px;
  7513. font-weight: 600;
  7514. color: #111827;
  7515. }
  7516. .panel-heading__badge {
  7517. min-width: 24px;
  7518. height: 22px;
  7519. padding: 0 7px;
  7520. background: #eff6ff;
  7521. color: #1d4ed8;
  7522. font-variant-numeric: tabular-nums;
  7523. }
  7524. // 对象列表搜索框:紧凑尺寸 + 小圆角,与面板内其他输入/列表项风格统一
  7525. // 注意:本页 style 非 scoped,:deep() 不会编译,必须用普通选择器 + 更高层级覆盖旧版胶囊样式
  7526. .left-panel .panel-card .search-box .ant-input-affix-wrapper,
  7527. .left-panel .panel-card .search-box .ant-input {
  7528. height: 32px;
  7529. padding: 0 10px;
  7530. border: 1px solid #e5e7eb;
  7531. border-radius: 8px;
  7532. background: #f8fafc;
  7533. box-shadow: none;
  7534. font-size: 13px;
  7535. transition:
  7536. border-color 0.2s ease,
  7537. background-color 0.2s ease,
  7538. box-shadow 0.2s ease;
  7539. }
  7540. .left-panel .panel-card .search-box .ant-input-affix-wrapper:hover,
  7541. .left-panel .panel-card .search-box .ant-input:hover {
  7542. border-color: #cbd5e1;
  7543. background: #fff;
  7544. }
  7545. .left-panel .panel-card .search-box .ant-input-affix-wrapper.ant-input-affix-wrapper-focused,
  7546. .left-panel .panel-card .search-box .ant-input:focus {
  7547. border-color: #2a50ec;
  7548. background: #fff;
  7549. box-shadow: 0 0 0 2px rgb(42 80 236 / 12%);
  7550. }
  7551. .left-panel .panel-card .search-box .ant-input-affix-wrapper > .ant-input {
  7552. height: 100%;
  7553. padding: 0;
  7554. border: 0;
  7555. border-radius: 0;
  7556. background: transparent;
  7557. box-shadow: none;
  7558. font-size: 13px;
  7559. }
  7560. .left-panel .panel-card .search-box .ant-input-affix-wrapper .ant-input-prefix {
  7561. margin-inline-end: 6px;
  7562. color: #9ca3af;
  7563. font-size: 13px;
  7564. }
  7565. .left-panel .panel-card .search-box .search-box__icon {
  7566. color: #9ca3af;
  7567. font-size: 13px;
  7568. }
  7569. .left-actions .side-action-btn--primary.ant-btn {
  7570. height: 36px;
  7571. border-radius: 8px;
  7572. }
  7573. .person-list {
  7574. gap: 2px;
  7575. padding: 2px 0 0;
  7576. }
  7577. .left-panel .person-list .person-card {
  7578. // 列表项内填充在现有基础上缩小约 1/3(10px 12px → 6px 8px),行高同步收紧
  7579. min-height: 52px;
  7580. padding: 6px 8px;
  7581. }
  7582. .person-card {
  7583. min-height: 52px;
  7584. padding: 8px;
  7585. gap: 8px;
  7586. border: 1px solid transparent;
  7587. border-radius: 10px;
  7588. background: transparent;
  7589. }
  7590. .person-card:hover {
  7591. border-color: #eef2f7;
  7592. background: #f8fafc;
  7593. box-shadow: none;
  7594. }
  7595. // 选中态:边框/头像/姓名统一使用项目主色(选择器需覆盖旧版 .left-panel .person-list 层级样式)
  7596. .left-panel .person-list .person-card.active {
  7597. border-color: #2a50ec;
  7598. box-shadow: none;
  7599. }
  7600. .person-trigger {
  7601. gap: 9px;
  7602. }
  7603. .person-avatar-wrap {
  7604. width: 34px;
  7605. height: 34px;
  7606. flex: 0 0 34px;
  7607. }
  7608. .person-info {
  7609. display: flex;
  7610. flex: 1;
  7611. min-width: 0;
  7612. flex-direction: column;
  7613. gap: 1px;
  7614. }
  7615. .person-name {
  7616. display: block;
  7617. min-width: 0;
  7618. overflow: hidden;
  7619. font-size: 13px;
  7620. line-height: 18px;
  7621. font-weight: 500;
  7622. color: #374151;
  7623. white-space: nowrap;
  7624. text-overflow: ellipsis;
  7625. -webkit-line-clamp: unset;
  7626. word-break: normal;
  7627. }
  7628. .person-card:hover .person-name {
  7629. color: #1f2937;
  7630. }
  7631. .left-panel .person-list .person-card.active .person-name {
  7632. color: #2a50ec;
  7633. font-weight: 600;
  7634. }
  7635. .person-sub {
  7636. overflow: hidden;
  7637. font-size: 11px;
  7638. line-height: 15px;
  7639. color: #94a3b8;
  7640. white-space: nowrap;
  7641. text-overflow: ellipsis;
  7642. font-variant-numeric: tabular-nums;
  7643. // 身份证号取消脱敏后为 18 位,收一点字距保证窄栏内完整展示
  7644. letter-spacing: -0.2px;
  7645. }
  7646. .person-card.active .person-sub {
  7647. color: #3b82f6;
  7648. }
  7649. // 头像:默认浅蓝底 + 主蓝图标,悬浮/选中为主蓝实底(纯色,替换原渐变)
  7650. .person-avatar .jeesite-person-avatar__media {
  7651. color: #1677ff;
  7652. background: #eff6ff;
  7653. border-color: #dbeafe;
  7654. box-shadow: none;
  7655. }
  7656. .left-panel .person-list .person-card:hover .person-avatar .jeesite-person-avatar__media,
  7657. .left-panel .person-list .person-card.active .person-avatar .jeesite-person-avatar__media {
  7658. color: #fff;
  7659. background: #2a50ec;
  7660. border-color: #2a50ec;
  7661. box-shadow: none;
  7662. }
  7663. // 空态:纯色占位,去掉原来的渐变底与渐变图标
  7664. .left-panel .person-list .empty-tip {
  7665. border: 1px dashed #e5e7eb;
  7666. border-radius: 12px;
  7667. background: #fafafa;
  7668. box-shadow: none;
  7669. }
  7670. .left-panel .person-list .empty-tip::before {
  7671. content: none;
  7672. display: none;
  7673. }
  7674. // ---------------- 基本信息 ----------------
  7675. .basic-content {
  7676. grid-template-columns: 184px minmax(0, 1fr);
  7677. gap: 12px;
  7678. align-items: stretch;
  7679. }
  7680. .basic-profile {
  7681. justify-content: center;
  7682. gap: 6px;
  7683. padding: 18px 12px;
  7684. border: 1px solid #eef2f7;
  7685. border-radius: 12px;
  7686. background: #f8fafc;
  7687. }
  7688. .profile-avatar {
  7689. width: 72px;
  7690. height: 72px;
  7691. }
  7692. .profile-info {
  7693. display: flex;
  7694. max-width: 100%;
  7695. min-width: 0;
  7696. flex-direction: column;
  7697. align-items: center;
  7698. gap: 2px;
  7699. }
  7700. .profile-name {
  7701. display: -webkit-box;
  7702. max-width: 100%;
  7703. overflow: hidden;
  7704. font-size: 15px;
  7705. line-height: 20px;
  7706. font-weight: 600;
  7707. color: #111827;
  7708. text-align: center;
  7709. word-break: break-all;
  7710. -webkit-box-orient: vertical;
  7711. -webkit-line-clamp: 2;
  7712. }
  7713. .profile-caption {
  7714. font-size: 11px;
  7715. line-height: 15px;
  7716. color: #94a3b8;
  7717. }
  7718. .info-grid {
  7719. grid-template-columns: repeat(4, minmax(0, 1fr));
  7720. gap: 8px;
  7721. }
  7722. .info-item {
  7723. min-height: 52px;
  7724. justify-content: center;
  7725. gap: 3px;
  7726. padding: 9px 12px;
  7727. border: 1px solid #eef2f7;
  7728. border-radius: 10px;
  7729. background: #f8fafc;
  7730. }
  7731. .info-label {
  7732. font-size: 11px;
  7733. line-height: 15px;
  7734. color: #94a3b8;
  7735. letter-spacing: 0.02em;
  7736. }
  7737. .info-value {
  7738. font-size: 13px;
  7739. line-height: 18px;
  7740. font-weight: 500;
  7741. color: #111827;
  7742. word-break: break-all;
  7743. overflow-wrap: anywhere;
  7744. }
  7745. // ---------------- 头像 / 亲密度数字配色 ----------------
  7746. // 基本信息主体头像、亲密关系人头像统一使用项目主色
  7747. .profile-avatar,
  7748. .profile-avatar .jeesite-person-avatar__media,
  7749. .relation-avatar,
  7750. .relation-avatar .jeesite-person-avatar__media {
  7751. background: #2a50ec;
  7752. border-color: #2a50ec;
  7753. }
  7754. // 亲密度数字:去掉底色,改为红色字体
  7755. .intimacy-card__score-badge {
  7756. background: transparent;
  7757. color: #dc2626;
  7758. box-shadow: none;
  7759. }
  7760. // 亲密度详情中的数值:同样是红色字体
  7761. .intimacy-detail .value--accent,
  7762. .intimacy-detail .detail-value--clickable {
  7763. color: #dc2626;
  7764. }
  7765. // ---------------- 图表标题:纯色旗标 ----------------
  7766. .chart-title .flag,
  7767. .trade-section .chart-title .flag {
  7768. background: #1677ff;
  7769. box-shadow: none;
  7770. }
  7771. // ---------------- 右侧操作统一为文字按钮:无边框/无底色,主色 #2a50ec ----------------
  7772. .section-action.ant-btn-link,
  7773. .chart-more-link.ant-btn-link {
  7774. height: auto;
  7775. padding: 0 4px;
  7776. border: 0;
  7777. border-radius: 0;
  7778. background: transparent;
  7779. box-shadow: none;
  7780. color: #2a50ec;
  7781. font-weight: 500;
  7782. line-height: 20px;
  7783. &:hover,
  7784. &:focus {
  7785. border: 0;
  7786. background: transparent;
  7787. color: #4b6bf0;
  7788. box-shadow: none;
  7789. }
  7790. &:active {
  7791. color: #1e3ed0;
  7792. }
  7793. }
  7794. }
  7795. @media (max-width: 1440px) {
  7796. .@{prefix-cls}.case-portrait-page {
  7797. .comm-chart-row,
  7798. .trade-chart-row {
  7799. grid-template-columns: 1fr;
  7800. }
  7801. .basic-content {
  7802. grid-template-columns: 160px minmax(0, 1fr);
  7803. }
  7804. .info-grid {
  7805. grid-template-columns: repeat(3, minmax(0, 1fr));
  7806. }
  7807. }
  7808. }
  7809. @media (max-width: 1200px) {
  7810. .@{prefix-cls}.case-portrait-page {
  7811. .page-layout {
  7812. grid-template-columns: 156px minmax(0, 1fr);
  7813. }
  7814. .left-panel {
  7815. height: auto;
  7816. min-width: 0;
  7817. }
  7818. .left-panel .panel-card {
  7819. max-height: 100%;
  7820. }
  7821. .basic-content {
  7822. grid-template-columns: 148px minmax(0, 1fr);
  7823. }
  7824. .info-grid,
  7825. .comm-grid {
  7826. grid-template-columns: repeat(2, minmax(0, 1fr));
  7827. }
  7828. .chart-more-link {
  7829. margin-left: auto;
  7830. }
  7831. .quick-nav-shell {
  7832. display: none;
  7833. }
  7834. }
  7835. .quick-nav {
  7836. display: none;
  7837. }
  7838. }
  7839. @media (max-width: 992px) {
  7840. .@{prefix-cls}.case-portrait-page {
  7841. padding: 12px;
  7842. .page-layout,
  7843. .right-panel {
  7844. gap: 10px;
  7845. }
  7846. .section-card,
  7847. .comm-section,
  7848. .trade-section {
  7849. padding: 14px;
  7850. }
  7851. .relation-search,
  7852. .comm-top-tools .comm-top-range,
  7853. .trade-top-tools .metric-select,
  7854. .trade-top-tools .trade-top-range,
  7855. .trade-trend-filters .trend-search-input,
  7856. .trade-trend-filters .trend-range-input {
  7857. width: 100%;
  7858. }
  7859. .info-grid,
  7860. .comm-grid,
  7861. .relation-list,
  7862. .trade-kpi {
  7863. grid-template-columns: 1fr;
  7864. }
  7865. .basic-content {
  7866. grid-template-columns: 1fr;
  7867. }
  7868. .basic-profile {
  7869. flex-direction: row;
  7870. justify-content: flex-start;
  7871. gap: 12px;
  7872. padding: 12px;
  7873. }
  7874. .profile-info {
  7875. align-items: flex-start;
  7876. }
  7877. .profile-name {
  7878. text-align: left;
  7879. }
  7880. .comm-top-tools,
  7881. .trade-top-tools,
  7882. .trade-trend-filters,
  7883. .section-tools {
  7884. width: 100%;
  7885. }
  7886. }
  7887. }
  7888. html[data-theme='dark'] {
  7889. .@{prefix-cls}.case-portrait-page {
  7890. background: #0f172a;
  7891. .panel-card,
  7892. .section-card {
  7893. background: #111827;
  7894. box-shadow: none;
  7895. }
  7896. .person-item {
  7897. background: #1f2937;
  7898. &:hover {
  7899. background: #1e293b;
  7900. }
  7901. }
  7902. .person-name,
  7903. .section-title,
  7904. .profile-name,
  7905. .relation-name {
  7906. color: #e5e7eb;
  7907. }
  7908. .info-item,
  7909. .info-label,
  7910. .relation-score,
  7911. .tag {
  7912. color: #9ca3af;
  7913. }
  7914. .relation-card {
  7915. border-color: #1f2937;
  7916. }
  7917. .tag {
  7918. background: #1f2937;
  7919. }
  7920. .basic-profile,
  7921. .info-item {
  7922. border-color: #1f2937;
  7923. background: #1f2937;
  7924. }
  7925. .info-label,
  7926. .profile-caption,
  7927. .person-sub {
  7928. color: #94a3b8;
  7929. }
  7930. .info-value,
  7931. .person-name {
  7932. color: #e5e7eb;
  7933. }
  7934. .left-panel .person-list .empty-tip {
  7935. border-color: #1f2937;
  7936. background: #111827;
  7937. }
  7938. .person-card.active {
  7939. border-color: #2a50ec;
  7940. background: #172554;
  7941. }
  7942. .person-avatar .jeesite-person-avatar__media {
  7943. color: #60a5fa;
  7944. background: #1e293b;
  7945. border-color: #334155;
  7946. }
  7947. }
  7948. }
  7949. /* 数据画像页相关弹窗统一纯色:不出现任何渐变 */
  7950. .create-group-modal .ant-modal-content,
  7951. .add-group-person-modal .ant-modal-content,
  7952. .person-edit-modal .ant-modal-content,
  7953. .person-edit-modal .person-form-section,
  7954. .person-edit-modal .person-avatar-upload,
  7955. .add-group-person-modal .add-object-modal__search,
  7956. .add-group-person-modal .add-object-modal__empty {
  7957. background: #fff;
  7958. }
  7959. .create-group-modal .create-group-section {
  7960. background: #f8fafc;
  7961. }
  7962. .add-group-person-modal .add-object-item__avatar {
  7963. background: #e0ecff;
  7964. }
  7965. .add-group-person-modal .add-object-item.is-selected {
  7966. background: #eff6ff;
  7967. }
  7968. .object-group-modal .group-modal-actions .head-btn {
  7969. background: #fff;
  7970. }
  7971. .object-group-modal .group-modal-actions .head-btn:hover,
  7972. .object-group-modal .group-modal-actions .head-btn:focus {
  7973. background: #f3f6fb;
  7974. }
  7975. .object-group-modal .group-modal-actions .head-btn--primary,
  7976. .object-group-modal .group-modal-actions .head-btn--accent,
  7977. .object-group-modal .group-modal-actions .head-btn--danger {
  7978. background: #fff;
  7979. }
  7980. .object-group-modal .group-select-btn.ant-btn-primary {
  7981. background: #2a50ec;
  7982. }
  7983. /* 数据画像页所有弹窗:按钮高度统一 32px。
  7984. 弹窗被 teleport 到 body,用本页挂载时加的 body 标记限定作用域,避免影响其他页面弹窗。
  7985. 需要 !important:全局弹窗页脚样式(core/design/ant/index.less)把页脚按钮定成了 36px,
  7986. 选择器层级更高,普通覆盖不生效。 */
  7987. body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn {
  7988. height: 32px !important;
  7989. }
  7990. /* 亲密弹框里的「刷新配置」本身是小号按钮:保持原有小尺寸(24px),不参与上面的 32px 统一 */
  7991. body.case-portrait-active .ant-modal-wrap.intimacy-config-modal .ant-btn-sm {
  7992. height: 24px !important;
  7993. }
  7994. /* 数据画像页弹窗主按钮:统一使用项目主色 #2a50ec。
  7995. 组件内部(ModalFooter / QueryTableModal 等)对主按钮有更高优先级的历史配色覆盖,
  7996. 这里用 !important 统一成本页要求的项目主色。 */
  7997. body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary {
  7998. border-color: #2a50ec !important;
  7999. background: #2a50ec !important;
  8000. color: #fff;
  8001. }
  8002. body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):hover,
  8003. body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):focus {
  8004. border-color: #4b6bf0 !important;
  8005. background: #4b6bf0 !important;
  8006. color: #fff;
  8007. }
  8008. body.case-portrait-active .ant-modal-wrap:not(.pg-manage-modal) .ant-btn-primary:not(:disabled):active {
  8009. border-color: #1e3ed0 !important;
  8010. background: #1e3ed0 !important;
  8011. color: #fff;
  8012. }
  8013. </style>
  8014. <style lang="less">
  8015. /* ==========================================================================
  8016. * 数据画像页 UI 重构(按确认稿实现)
  8017. * 结构:左侧对象列表固定,右侧内容区独立滚动;页面内卡片间距 10px。
  8018. * 说明:本页原有逻辑与接口保持不变,以下仅负责新版页面结构与视觉。
  8019. * ========================================================================== */
  8020. .case-portrait-page.qj-portrait-page {
  8021. width: calc(100% + 24px);
  8022. height: 100%;
  8023. margin: 0 -12px;
  8024. padding: 0;
  8025. background: #f4f6fa;
  8026. overflow: hidden;
  8027. .qj-page {
  8028. display: grid;
  8029. grid-template-columns: 236px minmax(0, 1fr);
  8030. gap: 8px;
  8031. height: 100%;
  8032. min-height: 0;
  8033. padding: 8px 10px;
  8034. box-sizing: border-box;
  8035. }
  8036. /* ---------------- 左侧对象列表(固定) ---------------- */
  8037. .qj-sidebar {
  8038. display: flex;
  8039. flex-direction: column;
  8040. gap: 7px;
  8041. min-height: 0;
  8042. height: 100%;
  8043. padding: 10px 8px 8px;
  8044. border: 1px solid #e7ebf3;
  8045. border-radius: 14px;
  8046. background: #ffffff;
  8047. box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  8048. box-sizing: border-box;
  8049. overflow: hidden;
  8050. }
  8051. .qj-side-head {
  8052. display: flex;
  8053. align-items: center;
  8054. justify-content: space-between;
  8055. padding: 0 3px;
  8056. flex: 0 0 auto;
  8057. }
  8058. .qj-side-title {
  8059. display: flex;
  8060. align-items: center;
  8061. gap: 7px;
  8062. font-size: 14px;
  8063. font-weight: 600;
  8064. line-height: 20px;
  8065. color: #111827;
  8066. }
  8067. .qj-count {
  8068. min-width: 22px;
  8069. height: 20px;
  8070. padding: 0 6px;
  8071. border-radius: 999px;
  8072. background: #eef2ff;
  8073. color: #2a50ec;
  8074. font-size: 11px;
  8075. font-weight: 600;
  8076. line-height: 20px;
  8077. text-align: center;
  8078. font-variant-numeric: tabular-nums;
  8079. }
  8080. .qj-side-search {
  8081. flex: 0 0 auto;
  8082. .ant-input-affix-wrapper,
  8083. .ant-input {
  8084. height: 30px;
  8085. padding: 0 9px;
  8086. border: 1px solid #e7ebf3;
  8087. border-radius: 8px;
  8088. background: #f8fafc;
  8089. box-shadow: none;
  8090. font-size: 12px;
  8091. transition:
  8092. border-color 0.2s ease,
  8093. background-color 0.2s ease,
  8094. box-shadow 0.2s ease;
  8095. }
  8096. .ant-input-affix-wrapper:hover,
  8097. .ant-input:hover {
  8098. border-color: #cbd5e1;
  8099. background: #ffffff;
  8100. }
  8101. .ant-input-affix-wrapper-focused,
  8102. .ant-input:focus {
  8103. border-color: #2a50ec;
  8104. background: #ffffff;
  8105. box-shadow: 0 0 0 2px rgba(42, 80, 236, 0.12);
  8106. }
  8107. .ant-input-affix-wrapper > .ant-input {
  8108. height: 100%;
  8109. padding: 0;
  8110. border: 0;
  8111. border-radius: 0;
  8112. background: transparent;
  8113. box-shadow: none;
  8114. font-size: 12px;
  8115. }
  8116. .ant-input-prefix {
  8117. margin-inline-end: 6px;
  8118. }
  8119. .qj-search-icon {
  8120. color: #98a2b3;
  8121. font-size: 13px;
  8122. }
  8123. }
  8124. .qj-add-btn.ant-btn {
  8125. flex: 0 0 auto;
  8126. height: 32px;
  8127. border: 1px solid #2a50ec;
  8128. border-radius: 8px;
  8129. background: #2a50ec;
  8130. box-shadow: 0 2px 6px rgba(42, 80, 236, 0.18);
  8131. font-size: 13px;
  8132. font-weight: 500;
  8133. .anticon {
  8134. font-size: 13px;
  8135. }
  8136. &:hover,
  8137. &:focus {
  8138. border-color: #4b6bf0;
  8139. background: #4b6bf0;
  8140. }
  8141. &:active {
  8142. border-color: #1e3ed0;
  8143. background: #1e3ed0;
  8144. }
  8145. }
  8146. .qj-person-list {
  8147. display: flex;
  8148. flex: 1 1 auto;
  8149. flex-direction: column;
  8150. gap: 2px;
  8151. min-height: 0;
  8152. padding: 2px 2px 0 0;
  8153. overflow-y: auto;
  8154. overflow-x: hidden;
  8155. &::-webkit-scrollbar {
  8156. width: 4px;
  8157. }
  8158. &::-webkit-scrollbar-thumb {
  8159. border-radius: 2px;
  8160. background: #d5dbe6;
  8161. }
  8162. }
  8163. .qj-person {
  8164. display: flex;
  8165. align-items: center;
  8166. min-height: 46px;
  8167. padding: 6px 7px;
  8168. border: 1px solid transparent;
  8169. border-radius: 10px;
  8170. cursor: pointer;
  8171. transition:
  8172. background-color 0.2s ease,
  8173. border-color 0.2s ease;
  8174. &:hover {
  8175. border-color: #eff2f7;
  8176. background: #f8fafc;
  8177. .qj-person-name {
  8178. color: #1f2937;
  8179. }
  8180. }
  8181. &.active {
  8182. border-color: #2a50ec;
  8183. background: #f6f8ff;
  8184. .qj-person-name {
  8185. color: #2a50ec;
  8186. font-weight: 600;
  8187. }
  8188. .qj-person-sub {
  8189. color: #5b7cfa;
  8190. }
  8191. .qj-person-avatar .jeesite-person-avatar__media {
  8192. border-color: #2a50ec;
  8193. background: #2a50ec;
  8194. color: #ffffff;
  8195. }
  8196. }
  8197. }
  8198. .qj-person-trigger {
  8199. display: flex;
  8200. align-items: center;
  8201. gap: 9px;
  8202. width: 100%;
  8203. min-width: 0;
  8204. }
  8205. .qj-person-avatar {
  8206. flex: 0 0 34px;
  8207. .jeesite-person-avatar__media {
  8208. border: 1px solid #dfe5ff;
  8209. background: #eef2ff;
  8210. box-shadow: none;
  8211. color: #2a50ec;
  8212. }
  8213. }
  8214. .qj-person-info {
  8215. display: flex;
  8216. flex: 1;
  8217. min-width: 0;
  8218. flex-direction: column;
  8219. gap: 1px;
  8220. }
  8221. .qj-person-name {
  8222. overflow: hidden;
  8223. font-size: 13px;
  8224. line-height: 18px;
  8225. font-weight: 500;
  8226. color: #374151;
  8227. white-space: nowrap;
  8228. text-overflow: ellipsis;
  8229. }
  8230. .qj-person-sub {
  8231. overflow: hidden;
  8232. font-size: 11px;
  8233. line-height: 15px;
  8234. color: #98a2b3;
  8235. letter-spacing: -0.15px;
  8236. white-space: nowrap;
  8237. text-overflow: ellipsis;
  8238. font-variant-numeric: tabular-nums;
  8239. }
  8240. .qj-side-empty {
  8241. display: flex;
  8242. flex: 1;
  8243. align-items: center;
  8244. justify-content: center;
  8245. min-height: 0;
  8246. padding: 10px 4px;
  8247. }
  8248. .qj-side-foot {
  8249. flex: 0 0 auto;
  8250. padding-top: 8px;
  8251. border-top: 1px solid #eff2f7;
  8252. }
  8253. .qj-group-btn.ant-btn {
  8254. width: 100%;
  8255. height: 32px;
  8256. border: 1px solid #e7ebf3;
  8257. border-radius: 8px;
  8258. background: #ffffff;
  8259. color: #2a50ec;
  8260. font-size: 13px;
  8261. font-weight: 500;
  8262. box-shadow: none;
  8263. .anticon {
  8264. font-size: 13px;
  8265. }
  8266. &:hover,
  8267. &:focus {
  8268. border-color: #bfcdfb;
  8269. background: #f8faff;
  8270. color: #4b6bf0;
  8271. }
  8272. }
  8273. /* ---------------- 右侧滚动区 ---------------- */
  8274. .qj-right {
  8275. min-width: 0;
  8276. min-height: 0;
  8277. height: 100%;
  8278. padding-right: 3px;
  8279. overflow-y: auto;
  8280. overflow-x: hidden;
  8281. scrollbar-width: thin;
  8282. scrollbar-color: #c7cfdd transparent;
  8283. &::-webkit-scrollbar {
  8284. width: 6px;
  8285. }
  8286. &::-webkit-scrollbar-thumb {
  8287. border-radius: 3px;
  8288. background: #c7cfdd;
  8289. }
  8290. &::-webkit-scrollbar-track {
  8291. background: transparent;
  8292. }
  8293. }
  8294. .qj-scroll {
  8295. min-height: 100%;
  8296. padding-bottom: 4px;
  8297. box-sizing: border-box;
  8298. }
  8299. /* ---------------- 对象档案头 ---------------- */
  8300. .qj-hero {
  8301. flex: 0 0 auto;
  8302. padding: 12px 14px;
  8303. border: 1px solid #e7ebf3;
  8304. border-radius: 14px;
  8305. background: #ffffff;
  8306. box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  8307. }
  8308. .qj-hero-top {
  8309. display: flex;
  8310. align-items: flex-start;
  8311. gap: 12px;
  8312. }
  8313. .qj-hero-avatar {
  8314. flex: 0 0 72px;
  8315. .jeesite-person-avatar__media {
  8316. border: 1px solid #d9e3ff;
  8317. border-radius: 18px;
  8318. background: #f1f5ff;
  8319. box-shadow: none;
  8320. color: #2a50ec;
  8321. }
  8322. }
  8323. .qj-hero-id {
  8324. display: flex;
  8325. flex: 1;
  8326. min-width: 0;
  8327. flex-direction: column;
  8328. align-self: stretch;
  8329. justify-content: center;
  8330. }
  8331. .qj-hero-name-row {
  8332. display: flex;
  8333. align-items: center;
  8334. gap: 9px;
  8335. flex-wrap: wrap;
  8336. }
  8337. .qj-hero-name {
  8338. margin: 0;
  8339. font-size: 22px;
  8340. line-height: 30px;
  8341. font-weight: 600;
  8342. letter-spacing: 0.2px;
  8343. color: #111827;
  8344. }
  8345. .qj-hero-meta {
  8346. display: grid;
  8347. grid-template-columns: repeat(3, minmax(0, 1fr));
  8348. gap: 5px 22px;
  8349. margin-top: 6px;
  8350. font-size: 12px;
  8351. line-height: 18px;
  8352. }
  8353. .qj-hero-meta__item {
  8354. display: flex;
  8355. align-items: flex-start;
  8356. min-width: 0;
  8357. }
  8358. .qj-hero-meta__label {
  8359. flex: 0 0 auto;
  8360. color: #98a2b3;
  8361. white-space: nowrap;
  8362. }
  8363. .qj-hero-meta__value {
  8364. min-width: 0;
  8365. color: #111827;
  8366. font-weight: 500;
  8367. overflow-wrap: anywhere;
  8368. &.muted {
  8369. color: #98a2b3;
  8370. font-weight: 400;
  8371. }
  8372. }
  8373. .qj-badge {
  8374. display: inline-flex;
  8375. align-items: center;
  8376. gap: 4px;
  8377. height: 21px;
  8378. padding: 0 8px;
  8379. border: 1px solid #e7ebf3;
  8380. border-radius: 5px;
  8381. background: #f4f6fa;
  8382. color: #5b6577;
  8383. font-size: 11px;
  8384. font-weight: 500;
  8385. line-height: 19px;
  8386. white-space: nowrap;
  8387. .anticon {
  8388. font-size: 11px;
  8389. }
  8390. }
  8391. .qj-badge-primary {
  8392. border-color: #dfe5ff;
  8393. background: #eef2ff;
  8394. color: #2a50ec;
  8395. }
  8396. .qj-hero-actions {
  8397. flex: 0 0 auto;
  8398. align-self: center;
  8399. }
  8400. .qj-hero-edit-btn.ant-btn {
  8401. height: 32px;
  8402. padding: 0 12px;
  8403. border: 1px solid #e7ebf3;
  8404. border-radius: 8px;
  8405. background: #ffffff;
  8406. color: #374151;
  8407. font-size: 12px;
  8408. font-weight: 500;
  8409. box-shadow: none;
  8410. .anticon {
  8411. font-size: 12px;
  8412. }
  8413. &:hover,
  8414. &:focus {
  8415. border-color: #bfcdfb;
  8416. color: #2a50ec;
  8417. }
  8418. }
  8419. /* ---------------- 吸顶分段导航 ---------------- */
  8420. .qj-anchors {
  8421. position: sticky;
  8422. top: 0;
  8423. z-index: 8;
  8424. display: flex;
  8425. align-items: center;
  8426. gap: 3px;
  8427. margin: 8px 0;
  8428. padding: 3px;
  8429. border: 1px solid #e7ebf3;
  8430. border-radius: 10px;
  8431. background: rgba(255, 255, 255, 0.97);
  8432. box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
  8433. }
  8434. .qj-anchor {
  8435. display: inline-flex;
  8436. align-items: center;
  8437. gap: 7px;
  8438. height: 28px;
  8439. padding: 0 12px;
  8440. border: 0;
  8441. border-radius: 8px;
  8442. background: transparent;
  8443. color: #5b6577;
  8444. font-size: 13px;
  8445. line-height: 28px;
  8446. cursor: pointer;
  8447. transition:
  8448. background-color 0.2s ease,
  8449. color 0.2s ease;
  8450. .anticon {
  8451. font-size: 14px;
  8452. }
  8453. &:hover {
  8454. background: #f7f9fc;
  8455. color: #111827;
  8456. }
  8457. &.active {
  8458. background: #eef2ff;
  8459. color: #2a50ec;
  8460. font-weight: 600;
  8461. }
  8462. }
  8463. .qj-anchors-tip {
  8464. display: inline-flex;
  8465. align-items: center;
  8466. gap: 6px;
  8467. margin-left: auto;
  8468. padding-right: 12px;
  8469. color: #98a2b3;
  8470. font-size: 11px;
  8471. }
  8472. /* ---------------- 通用卡片 ---------------- */
  8473. .qj-card {
  8474. margin-bottom: 8px;
  8475. border: 1px solid #e7ebf3;
  8476. border-radius: 14px;
  8477. background: #ffffff;
  8478. box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  8479. overflow: hidden;
  8480. &:last-child {
  8481. margin-bottom: 0;
  8482. }
  8483. }
  8484. .qj-card-head {
  8485. display: flex;
  8486. align-items: center;
  8487. gap: 10px;
  8488. min-height: 42px;
  8489. padding: 0 14px;
  8490. border-bottom: 1px solid #eff2f7;
  8491. }
  8492. .qj-card-title {
  8493. position: relative;
  8494. padding-left: 11px;
  8495. color: #111827;
  8496. font-size: 15px;
  8497. font-weight: 600;
  8498. line-height: 22px;
  8499. &::before {
  8500. content: '';
  8501. position: absolute;
  8502. left: 0;
  8503. top: 4px;
  8504. bottom: 4px;
  8505. width: 3px;
  8506. border-radius: 2px;
  8507. background: #2a50ec;
  8508. }
  8509. }
  8510. .qj-card-sub {
  8511. color: #98a2b3;
  8512. font-size: 11px;
  8513. line-height: 16px;
  8514. }
  8515. .qj-head-actions {
  8516. display: flex;
  8517. align-items: center;
  8518. gap: 12px;
  8519. margin-left: auto;
  8520. }
  8521. .qj-link.ant-btn {
  8522. display: inline-flex;
  8523. align-items: center;
  8524. gap: 4px;
  8525. height: auto;
  8526. padding: 0 2px;
  8527. border: 0;
  8528. border-radius: 0;
  8529. background: transparent;
  8530. color: #2a50ec;
  8531. font-size: 12px;
  8532. font-weight: 500;
  8533. line-height: 20px;
  8534. box-shadow: none;
  8535. .anticon {
  8536. font-size: 12px;
  8537. }
  8538. &:hover,
  8539. &:focus {
  8540. border: 0;
  8541. background: transparent;
  8542. color: #4b6bf0;
  8543. }
  8544. &:active {
  8545. color: #1e3ed0;
  8546. }
  8547. }
  8548. .qj-card-body {
  8549. padding: 10px 14px 12px;
  8550. }
  8551. /* ---------------- 通讯 / 交易:指标条 ---------------- */
  8552. .qj-metrics {
  8553. display: grid;
  8554. grid-template-columns: repeat(2, minmax(0, 1fr));
  8555. gap: 6px;
  8556. &.four {
  8557. grid-template-columns: repeat(4, minmax(0, 1fr));
  8558. }
  8559. }
  8560. .qj-metric {
  8561. display: flex;
  8562. align-items: center;
  8563. gap: 8px;
  8564. min-width: 0;
  8565. padding: 8px 10px;
  8566. border: 1px solid #eff2f7;
  8567. border-radius: 9px;
  8568. background: #fbfcfe;
  8569. }
  8570. .qj-metric-icon {
  8571. display: inline-flex;
  8572. flex: 0 0 30px;
  8573. align-items: center;
  8574. justify-content: center;
  8575. width: 30px;
  8576. height: 30px;
  8577. border-radius: 8px;
  8578. background: #eef2ff;
  8579. color: #2a50ec;
  8580. .anticon {
  8581. font-size: 15px;
  8582. }
  8583. &.green {
  8584. background: #e8f8f0;
  8585. color: #0b8a4f;
  8586. }
  8587. &.orange {
  8588. background: #fff4e5;
  8589. color: #b25c00;
  8590. }
  8591. &.red {
  8592. background: #fdecec;
  8593. color: #c02b31;
  8594. }
  8595. }
  8596. .qj-metric-main {
  8597. flex: 1;
  8598. min-width: 0;
  8599. }
  8600. .qj-metric-label {
  8601. overflow: hidden;
  8602. color: #98a2b3;
  8603. font-size: 11px;
  8604. line-height: 16px;
  8605. white-space: nowrap;
  8606. text-overflow: ellipsis;
  8607. }
  8608. .qj-metric-value {
  8609. margin-top: 2px;
  8610. overflow: hidden;
  8611. color: #1f2937;
  8612. font-size: 13px;
  8613. font-weight: 600;
  8614. line-height: 19px;
  8615. white-space: nowrap;
  8616. text-overflow: ellipsis;
  8617. &.green {
  8618. color: #0b8a4f;
  8619. }
  8620. &.orange {
  8621. color: #b25c00;
  8622. }
  8623. &.red {
  8624. color: #c02b31;
  8625. }
  8626. &.blue {
  8627. color: #2a50ec;
  8628. }
  8629. }
  8630. .qj-metric-chips {
  8631. display: flex;
  8632. gap: 5px;
  8633. align-items: center;
  8634. margin-top: 3px;
  8635. overflow: hidden;
  8636. }
  8637. .qj-chip {
  8638. display: inline-flex;
  8639. align-items: center;
  8640. height: 19px;
  8641. padding: 0 6px;
  8642. border: 0;
  8643. border-radius: 4px;
  8644. background: #eef2ff;
  8645. color: #2448c9;
  8646. font-size: 10px;
  8647. line-height: 19px;
  8648. white-space: nowrap;
  8649. cursor: pointer;
  8650. &:hover {
  8651. background: #dfe6ff;
  8652. }
  8653. &.neutral {
  8654. border: 1px solid #eff2f7;
  8655. background: #f4f6fa;
  8656. color: #5b6577;
  8657. cursor: default;
  8658. }
  8659. }
  8660. /* ---------------- 双栏图表区 ---------------- */
  8661. .qj-split {
  8662. display: grid;
  8663. grid-template-columns: 0.92fr 1.08fr;
  8664. margin-top: 8px;
  8665. border-top: 1px solid #eff2f7;
  8666. }
  8667. .qj-pane {
  8668. min-width: 0;
  8669. padding: 10px 14px 12px;
  8670. & + & {
  8671. border-left: 1px solid #eff2f7;
  8672. }
  8673. }
  8674. .qj-pane-head {
  8675. display: flex;
  8676. align-items: center;
  8677. gap: 8px;
  8678. flex-wrap: wrap;
  8679. min-height: 28px;
  8680. margin-bottom: 6px;
  8681. }
  8682. .qj-pane-title {
  8683. display: inline-flex;
  8684. align-items: center;
  8685. gap: 6px;
  8686. color: #1f2937;
  8687. font-size: 13px;
  8688. font-weight: 600;
  8689. line-height: 20px;
  8690. white-space: nowrap;
  8691. &::before {
  8692. content: '';
  8693. width: 3px;
  8694. height: 12px;
  8695. border-radius: 2px;
  8696. background: #2a50ec;
  8697. }
  8698. }
  8699. .qj-pane-tools {
  8700. display: flex;
  8701. align-items: center;
  8702. justify-content: flex-end;
  8703. gap: 4px;
  8704. flex-wrap: wrap;
  8705. margin-left: auto;
  8706. .qj-link.ant-btn {
  8707. font-size: 11px;
  8708. }
  8709. }
  8710. .qj-mini-field {
  8711. display: inline-flex;
  8712. align-items: center;
  8713. gap: 4px;
  8714. height: 28px;
  8715. padding: 0 7px;
  8716. border: 1px solid #e7ebf3;
  8717. border-radius: 7px;
  8718. background: #ffffff;
  8719. color: #5b6577;
  8720. font-size: 11px;
  8721. line-height: 26px;
  8722. white-space: nowrap;
  8723. > .anticon {
  8724. color: #98a2b3;
  8725. font-size: 11px;
  8726. }
  8727. .ant-picker {
  8728. width: 170px;
  8729. padding: 0;
  8730. border: 0;
  8731. border-radius: 0;
  8732. background: transparent;
  8733. box-shadow: none;
  8734. .ant-picker-input > input {
  8735. font-size: 11px;
  8736. }
  8737. .ant-picker-suffix,
  8738. .ant-picker-clear {
  8739. color: #98a2b3;
  8740. font-size: 11px;
  8741. }
  8742. }
  8743. .ant-select {
  8744. min-width: 100px;
  8745. }
  8746. .ant-select-selector {
  8747. height: 24px !important;
  8748. padding: 0 !important;
  8749. border: 0 !important;
  8750. background: transparent !important;
  8751. box-shadow: none !important;
  8752. font-size: 11px;
  8753. }
  8754. .ant-select-selection-item,
  8755. .ant-select-selection-placeholder {
  8756. padding: 0;
  8757. line-height: 24px !important;
  8758. font-size: 11px;
  8759. }
  8760. .ant-select-arrow {
  8761. color: #98a2b3;
  8762. font-size: 11px;
  8763. }
  8764. .qj-inline-select {
  8765. width: 96px;
  8766. min-width: 96px;
  8767. }
  8768. }
  8769. .qj-range-picker.ant-picker {
  8770. width: 170px;
  8771. }
  8772. /* 纯色分段控件(Ant Radio.Group) */
  8773. .qj-seg {
  8774. display: inline-flex;
  8775. align-items: center;
  8776. height: 28px;
  8777. padding: 2px;
  8778. border: 1px solid #e7ebf3;
  8779. border-radius: 7px;
  8780. background: #ffffff;
  8781. .ant-radio-wrapper {
  8782. display: inline-flex;
  8783. align-items: center;
  8784. height: 22px;
  8785. margin-inline-end: 0;
  8786. padding: 0 8px;
  8787. border-radius: 5px;
  8788. color: #5b6577;
  8789. font-size: 10px;
  8790. line-height: 22px;
  8791. transition:
  8792. background-color 0.2s ease,
  8793. color 0.2s ease;
  8794. }
  8795. .ant-radio-wrapper > .ant-radio {
  8796. display: none;
  8797. }
  8798. .ant-radio-wrapper > span:last-child {
  8799. padding: 0;
  8800. }
  8801. .ant-radio-wrapper-checked {
  8802. background: #eef2ff;
  8803. color: #2a50ec;
  8804. font-weight: 600;
  8805. }
  8806. }
  8807. /* 自定义月份 / 年份分段 */
  8808. .qj-seg-item {
  8809. display: inline-flex;
  8810. align-items: center;
  8811. justify-content: center;
  8812. min-width: 30px;
  8813. height: 22px;
  8814. padding: 0 8px;
  8815. border-radius: 5px;
  8816. color: #5b6577;
  8817. font-size: 11px;
  8818. line-height: 22px;
  8819. cursor: pointer;
  8820. transition:
  8821. background-color 0.2s ease,
  8822. color 0.2s ease;
  8823. &.on {
  8824. background: #eef2ff;
  8825. color: #2a50ec;
  8826. font-weight: 600;
  8827. }
  8828. }
  8829. /* ---------------- 环形图 ---------------- */
  8830. .qj-donut-wrap {
  8831. display: flex;
  8832. align-items: center;
  8833. gap: 14px;
  8834. padding: 4px 2px 2px;
  8835. }
  8836. .qj-donut-chart {
  8837. width: 176px;
  8838. height: 176px;
  8839. flex: 0 0 176px;
  8840. }
  8841. .qj-donut-visual {
  8842. position: relative;
  8843. flex: 0 0 176px;
  8844. width: 176px;
  8845. height: 176px;
  8846. }
  8847. .qj-donut-center {
  8848. position: absolute;
  8849. inset: 0;
  8850. display: flex;
  8851. flex-direction: column;
  8852. align-items: center;
  8853. justify-content: center;
  8854. gap: 2px;
  8855. pointer-events: none;
  8856. strong {
  8857. color: #111827;
  8858. font-size: 26px;
  8859. font-weight: 600;
  8860. line-height: 30px;
  8861. }
  8862. span {
  8863. color: #98a2b3;
  8864. font-size: 11px;
  8865. line-height: 16px;
  8866. }
  8867. }
  8868. .qj-legend {
  8869. display: flex;
  8870. flex: 1;
  8871. min-width: 0;
  8872. flex-direction: column;
  8873. gap: 8px;
  8874. }
  8875. .qj-legend-row {
  8876. display: flex;
  8877. align-items: flex-start;
  8878. gap: 8px;
  8879. width: 100%;
  8880. padding: 0 0 7px;
  8881. border: 0;
  8882. border-bottom: 1px dashed #eff2f7;
  8883. border-radius: 0;
  8884. background: transparent;
  8885. text-align: left;
  8886. &:last-child {
  8887. padding-bottom: 0;
  8888. border-bottom: 0;
  8889. }
  8890. &.qj-legend-click {
  8891. cursor: pointer;
  8892. &:hover {
  8893. .qj-legend-value {
  8894. color: #2a50ec;
  8895. }
  8896. }
  8897. }
  8898. }
  8899. .qj-legend-dot {
  8900. flex: 0 0 8px;
  8901. width: 8px;
  8902. height: 8px;
  8903. margin-top: 5px;
  8904. border-radius: 50%;
  8905. }
  8906. .qj-legend-label {
  8907. display: flex;
  8908. align-items: center;
  8909. gap: 6px;
  8910. flex-wrap: wrap;
  8911. color: #5b6577;
  8912. font-size: 11px;
  8913. line-height: 16px;
  8914. }
  8915. .qj-legend-pct {
  8916. color: #98a2b3;
  8917. font-size: 10px;
  8918. }
  8919. .qj-legend-value {
  8920. margin-top: 2px;
  8921. color: #1f2937;
  8922. font-size: 14px;
  8923. font-weight: 600;
  8924. line-height: 20px;
  8925. font-variant-numeric: tabular-nums;
  8926. small {
  8927. margin-left: 3px;
  8928. color: #98a2b3;
  8929. font-size: 11px;
  8930. font-weight: 400;
  8931. }
  8932. }
  8933. .qj-kpis {
  8934. display: grid;
  8935. grid-template-columns: repeat(2, minmax(0, 1fr));
  8936. gap: 6px;
  8937. margin-top: 6px;
  8938. }
  8939. .qj-kpi {
  8940. min-width: 0;
  8941. padding: 7px 9px;
  8942. border: 1px solid #eff2f7;
  8943. border-radius: 8px;
  8944. background: #fbfcfe;
  8945. }
  8946. .qj-kpi-label {
  8947. color: #98a2b3;
  8948. font-size: 10px;
  8949. line-height: 15px;
  8950. white-space: nowrap;
  8951. }
  8952. .qj-kpi-value {
  8953. margin-top: 1px;
  8954. overflow: hidden;
  8955. color: #2a50ec;
  8956. font-size: 13px;
  8957. font-weight: 600;
  8958. line-height: 19px;
  8959. white-space: nowrap;
  8960. text-overflow: ellipsis;
  8961. &.green {
  8962. color: #12b76a;
  8963. }
  8964. &.orange {
  8965. color: #f79009;
  8966. }
  8967. &.muted {
  8968. color: #98a2b3;
  8969. font-weight: 500;
  8970. }
  8971. }
  8972. /* ---------------- TOP10 横向排行 ---------------- */
  8973. .qj-rank-list {
  8974. display: flex;
  8975. flex-direction: column;
  8976. gap: 2px;
  8977. padding: 2px 0 0;
  8978. }
  8979. .qj-rank-row {
  8980. display: grid;
  8981. grid-template-columns: 18px 102px minmax(40px, 1fr) 34px;
  8982. align-items: center;
  8983. gap: 8px;
  8984. width: 100%;
  8985. height: 25px;
  8986. padding: 0 2px;
  8987. border: 0;
  8988. border-radius: 4px;
  8989. background: transparent;
  8990. font-size: 11px;
  8991. line-height: 25px;
  8992. text-align: left;
  8993. cursor: pointer;
  8994. transition: background-color 0.2s ease;
  8995. &:hover:not(:disabled) {
  8996. background: #f7f9fc;
  8997. .qj-rank-name {
  8998. color: #2a50ec;
  8999. }
  9000. }
  9001. &:disabled {
  9002. cursor: default;
  9003. }
  9004. &.qj-rank-wide {
  9005. grid-template-columns: 18px 154px minmax(40px, 1fr) 92px;
  9006. }
  9007. }
  9008. .qj-rank-no {
  9009. color: #98a2b3;
  9010. font-size: 10px;
  9011. text-align: center;
  9012. font-variant-numeric: tabular-nums;
  9013. }
  9014. .qj-rank-row:first-child .qj-rank-no {
  9015. color: #2a50ec;
  9016. font-weight: 600;
  9017. }
  9018. .qj-rank-name {
  9019. overflow: hidden;
  9020. color: #4b5563;
  9021. white-space: nowrap;
  9022. text-overflow: ellipsis;
  9023. transition: color 0.2s ease;
  9024. }
  9025. .qj-rank-track {
  9026. display: block;
  9027. height: 8px;
  9028. border-radius: 4px;
  9029. background: #f0f3f8;
  9030. overflow: hidden;
  9031. }
  9032. .qj-rank-bar {
  9033. display: block;
  9034. height: 100%;
  9035. border-radius: 4px;
  9036. background: #2a50ec;
  9037. }
  9038. .qj-rank-row:nth-child(n + 4) .qj-rank-bar {
  9039. background: #7d98f8;
  9040. }
  9041. .qj-rank-val {
  9042. color: #1f2937;
  9043. font-weight: 600;
  9044. text-align: right;
  9045. font-variant-numeric: tabular-nums;
  9046. }
  9047. .qj-rank-amount {
  9048. color: #1f2937;
  9049. font-size: 11px;
  9050. font-weight: 600;
  9051. text-align: right;
  9052. white-space: nowrap;
  9053. font-variant-numeric: tabular-nums;
  9054. }
  9055. /* ---------------- 基站条 ---------------- */
  9056. .qj-stations {
  9057. display: flex;
  9058. align-items: center;
  9059. gap: 8px;
  9060. flex-wrap: wrap;
  9061. padding: 8px 14px;
  9062. border-top: 1px solid #eff2f7;
  9063. background: #fbfcfe;
  9064. }
  9065. .qj-stations-label {
  9066. display: inline-flex;
  9067. align-items: center;
  9068. gap: 5px;
  9069. color: #374151;
  9070. font-size: 12px;
  9071. font-weight: 600;
  9072. white-space: nowrap;
  9073. .anticon {
  9074. color: #2a50ec;
  9075. font-size: 13px;
  9076. }
  9077. }
  9078. .qj-station {
  9079. display: inline-flex;
  9080. align-items: center;
  9081. height: 22px;
  9082. padding: 0 8px;
  9083. border: 1px solid #e7ebf3;
  9084. border-radius: 5px;
  9085. background: #ffffff;
  9086. color: #4b5563;
  9087. font-family: 'SFMono-Regular', Consolas, monospace;
  9088. font-size: 11px;
  9089. line-height: 20px;
  9090. letter-spacing: 0.02em;
  9091. }
  9092. .qj-station-empty {
  9093. color: #98a2b3;
  9094. font-size: 11px;
  9095. }
  9096. .qj-stations-map {
  9097. margin-left: auto;
  9098. }
  9099. /* ---------------- 交易趋势 ---------------- */
  9100. .qj-trend {
  9101. padding: 10px 14px 12px;
  9102. border-top: 1px solid #eff2f7;
  9103. }
  9104. .qj-trend-head {
  9105. display: flex;
  9106. align-items: flex-start;
  9107. gap: 12px;
  9108. flex-wrap: wrap;
  9109. margin-bottom: 6px;
  9110. }
  9111. .qj-trend-title {
  9112. display: inline-flex;
  9113. align-items: center;
  9114. gap: 6px;
  9115. color: #1f2937;
  9116. font-size: 13px;
  9117. font-weight: 600;
  9118. line-height: 20px;
  9119. white-space: nowrap;
  9120. &::before {
  9121. content: '';
  9122. width: 3px;
  9123. height: 12px;
  9124. border-radius: 2px;
  9125. background: #2a50ec;
  9126. }
  9127. }
  9128. .qj-trend-desc {
  9129. padding-top: 1px;
  9130. color: #98a2b3;
  9131. font-size: 11px;
  9132. line-height: 18px;
  9133. }
  9134. .qj-trend-tools {
  9135. display: flex;
  9136. align-items: center;
  9137. gap: 12px;
  9138. flex-wrap: wrap;
  9139. margin-left: auto;
  9140. }
  9141. .qj-field {
  9142. display: inline-flex;
  9143. align-items: center;
  9144. gap: 6px;
  9145. color: #98a2b3;
  9146. font-size: 11px;
  9147. line-height: 28px;
  9148. white-space: nowrap;
  9149. }
  9150. .qj-trend-select.ant-select {
  9151. width: 160px;
  9152. .ant-select-selector {
  9153. height: 28px !important;
  9154. padding: 0 9px !important;
  9155. border: 1px solid #e7ebf3 !important;
  9156. border-radius: 7px !important;
  9157. background: #ffffff !important;
  9158. box-shadow: none !important;
  9159. font-size: 11px;
  9160. }
  9161. .ant-select-selection-item,
  9162. .ant-select-selection-placeholder {
  9163. line-height: 26px !important;
  9164. font-size: 11px;
  9165. }
  9166. .ant-select-arrow {
  9167. color: #98a2b3;
  9168. font-size: 11px;
  9169. }
  9170. }
  9171. .qj-trend-range.ant-picker {
  9172. width: 216px;
  9173. height: 28px;
  9174. padding: 0 9px;
  9175. border: 1px solid #e7ebf3;
  9176. border-radius: 7px;
  9177. background: #ffffff;
  9178. box-shadow: none;
  9179. .ant-picker-input > input {
  9180. font-size: 11px;
  9181. }
  9182. .ant-picker-suffix,
  9183. .ant-picker-clear {
  9184. color: #98a2b3;
  9185. font-size: 11px;
  9186. }
  9187. }
  9188. .qj-trend-legend {
  9189. display: inline-flex;
  9190. align-items: center;
  9191. gap: 12px;
  9192. margin-left: 4px;
  9193. }
  9194. .qj-trend-legend-item {
  9195. display: inline-flex;
  9196. align-items: center;
  9197. gap: 5px;
  9198. padding: 0;
  9199. border: 0;
  9200. background: transparent;
  9201. color: #5b6577;
  9202. font-size: 11px;
  9203. line-height: 20px;
  9204. cursor: pointer;
  9205. i {
  9206. width: 8px;
  9207. height: 8px;
  9208. border-radius: 50%;
  9209. }
  9210. &.off {
  9211. opacity: 0.42;
  9212. text-decoration: line-through;
  9213. }
  9214. }
  9215. .qj-trend-chart-box {
  9216. width: 100%;
  9217. min-width: 0;
  9218. }
  9219. .qj-trend-scroll {
  9220. width: 100%;
  9221. overflow-x: auto;
  9222. overflow-y: hidden;
  9223. &::-webkit-scrollbar {
  9224. height: 5px;
  9225. }
  9226. &::-webkit-scrollbar-thumb {
  9227. border-radius: 3px;
  9228. background: #cbd5e1;
  9229. }
  9230. }
  9231. .qj-trend-chart {
  9232. min-width: 100%;
  9233. }
  9234. .qj-trend-echart {
  9235. width: 100%;
  9236. height: 100%;
  9237. }
  9238. .qj-footnote {
  9239. padding: 0 0 2px;
  9240. color: #98a2b3;
  9241. font-size: 10px;
  9242. line-height: 16px;
  9243. text-align: right;
  9244. }
  9245. .qj-chart-empty {
  9246. display: flex;
  9247. align-items: center;
  9248. justify-content: center;
  9249. min-height: 180px;
  9250. color: #98a2b3;
  9251. font-size: 12px;
  9252. }
  9253. .qj-trend-empty {
  9254. min-height: 180px;
  9255. }
  9256. /* ---------------- 响应式 ---------------- */
  9257. @media (max-width: 1440px) {
  9258. .qj-page {
  9259. grid-template-columns: 216px minmax(0, 1fr);
  9260. }
  9261. .qj-metrics.four {
  9262. grid-template-columns: repeat(2, minmax(0, 1fr));
  9263. }
  9264. }
  9265. @media (max-width: 1200px) {
  9266. .qj-page {
  9267. grid-template-columns: 200px minmax(0, 1fr);
  9268. }
  9269. .qj-anchors-tip {
  9270. display: none;
  9271. }
  9272. .qj-split {
  9273. grid-template-columns: 1fr;
  9274. .qj-pane + .qj-pane {
  9275. border-top: 1px solid #eff2f7;
  9276. border-left: 0;
  9277. }
  9278. }
  9279. .qj-hero-meta {
  9280. grid-template-columns: repeat(2, minmax(0, 1fr));
  9281. }
  9282. }
  9283. @media (max-width: 992px) {
  9284. .qj-page {
  9285. grid-template-columns: 176px minmax(0, 1fr);
  9286. gap: 8px;
  9287. padding: 10px;
  9288. }
  9289. .qj-sidebar {
  9290. padding: 10px 8px;
  9291. }
  9292. .qj-hero {
  9293. padding: 14px 14px 0;
  9294. }
  9295. .qj-hero-top {
  9296. flex-wrap: wrap;
  9297. }
  9298. .qj-hero-actions {
  9299. margin-left: 88px;
  9300. }
  9301. .qj-card-head {
  9302. padding: 0 12px;
  9303. }
  9304. .qj-card-body {
  9305. padding: 12px;
  9306. }
  9307. .qj-pane {
  9308. padding: 12px;
  9309. }
  9310. .qj-metrics,
  9311. .qj-metrics.four {
  9312. grid-template-columns: 1fr;
  9313. }
  9314. .qj-hero-meta {
  9315. grid-template-columns: 1fr;
  9316. }
  9317. .qj-donut-wrap {
  9318. flex-wrap: wrap;
  9319. }
  9320. .qj-donut-chart,
  9321. .qj-donut-visual {
  9322. margin: 0 auto;
  9323. }
  9324. .qj-legend {
  9325. flex-basis: 100%;
  9326. }
  9327. .qj-trend-head {
  9328. gap: 8px;
  9329. }
  9330. .qj-trend-tools {
  9331. width: 100%;
  9332. margin-left: 0;
  9333. }
  9334. .qj-trend-select.ant-select,
  9335. .qj-trend-range.ant-picker {
  9336. width: 100%;
  9337. }
  9338. .qj-trend-scroll {
  9339. overflow-x: auto;
  9340. }
  9341. }
  9342. /* ---------------- 暗色主题 ---------------- */
  9343. html[data-theme='dark'] & {
  9344. background: #0f172a;
  9345. .qj-sidebar,
  9346. .qj-hero,
  9347. .qj-card,
  9348. .qj-anchors {
  9349. border-color: #1f2937;
  9350. background: #111827;
  9351. box-shadow: none;
  9352. }
  9353. .qj-card-head,
  9354. .qj-side-foot,
  9355. .qj-stations,
  9356. .qj-trend,
  9357. .qj-split {
  9358. border-color: #1f2937;
  9359. }
  9360. .qj-stations {
  9361. background: #0f172a;
  9362. }
  9363. .qj-side-title,
  9364. .qj-hero-name,
  9365. .qj-card-title,
  9366. .qj-pane-title,
  9367. .qj-trend-title,
  9368. .qj-hero-meta__value,
  9369. .qj-metric-value,
  9370. .qj-rank-val,
  9371. .qj-rank-amount,
  9372. .qj-legend-value,
  9373. .qj-donut-center strong,
  9374. .qj-kpi-value,
  9375. .qj-stations-label {
  9376. color: #e5e7eb;
  9377. }
  9378. .qj-hero-meta,
  9379. .qj-hero-meta__label,
  9380. .qj-metric-label,
  9381. .qj-legend-label,
  9382. .qj-trend-desc,
  9383. .qj-field,
  9384. .qj-rank-name,
  9385. .qj-rank-no,
  9386. .qj-station-empty,
  9387. .qj-footnote {
  9388. color: #94a3b8;
  9389. }
  9390. .qj-person:hover {
  9391. background: #172033;
  9392. }
  9393. .qj-person.active {
  9394. background: #172554;
  9395. }
  9396. .qj-metric,
  9397. .qj-kpi,
  9398. .qj-station {
  9399. border-color: #1f2937;
  9400. background: #0f172a;
  9401. }
  9402. .qj-metric-value.green {
  9403. color: #34d399;
  9404. }
  9405. .qj-metric-value.orange {
  9406. color: #fbbf24;
  9407. }
  9408. .qj-metric-value.red {
  9409. color: #f87171;
  9410. }
  9411. .qj-mini-field,
  9412. .qj-trend-select.ant-select .ant-select-selector,
  9413. .qj-trend-range.ant-picker,
  9414. .qj-seg {
  9415. border-color: #1f2937 !important;
  9416. background: #0f172a !important;
  9417. color: #94a3b8;
  9418. }
  9419. .qj-range-picker.ant-picker {
  9420. background: transparent;
  9421. }
  9422. .qj-anchor:hover {
  9423. background: #172033;
  9424. color: #e5e7eb;
  9425. }
  9426. .qj-anchor.active {
  9427. background: #172554;
  9428. color: #93b4ff;
  9429. }
  9430. }
  9431. }
  9432. /* 亲密关系卡片:压过旧版 portrait 样式的残留影响 */
  9433. .qj-portrait-page #section-relation {
  9434. .intimacy-panel {
  9435. .section-header {
  9436. align-items: center;
  9437. flex-wrap: wrap;
  9438. min-height: 42px;
  9439. margin-bottom: 0;
  9440. padding: 0 14px;
  9441. border-bottom: 1px solid #eff2f7;
  9442. }
  9443. .section-title {
  9444. display: inline-flex;
  9445. align-items: center;
  9446. gap: 8px;
  9447. padding-left: 11px;
  9448. font-size: 15px;
  9449. font-weight: 600;
  9450. line-height: 22px;
  9451. letter-spacing: 0;
  9452. color: #111827;
  9453. &::before {
  9454. content: '';
  9455. position: absolute;
  9456. left: 0;
  9457. top: 4px;
  9458. bottom: 4px;
  9459. width: 3px;
  9460. height: auto;
  9461. border-radius: 2px;
  9462. background: #2a50ec;
  9463. }
  9464. }
  9465. .section-tools {
  9466. display: flex;
  9467. align-items: center;
  9468. gap: 8px;
  9469. margin-left: auto;
  9470. }
  9471. .relation-search {
  9472. width: 208px;
  9473. }
  9474. .section-action.ant-btn {
  9475. height: auto;
  9476. padding: 0 2px;
  9477. border: 0;
  9478. background: transparent;
  9479. color: #2a50ec;
  9480. font-size: 12px;
  9481. font-weight: 500;
  9482. line-height: 20px;
  9483. box-shadow: none;
  9484. .anticon {
  9485. font-size: 12px;
  9486. }
  9487. &:hover,
  9488. &:focus {
  9489. border: 0;
  9490. background: transparent;
  9491. color: #4b6bf0;
  9492. }
  9493. }
  9494. .relation-avatar {
  9495. width: 38px;
  9496. height: 38px;
  9497. background: transparent;
  9498. }
  9499. .intimacy-card__score-badge {
  9500. min-width: 0;
  9501. height: auto;
  9502. padding: 0;
  9503. border-radius: 0;
  9504. background: transparent;
  9505. color: #e5484d;
  9506. font-size: 20px;
  9507. line-height: 24px;
  9508. font-weight: 600;
  9509. box-shadow: none;
  9510. }
  9511. .intimacy-detail .value--accent,
  9512. .intimacy-detail .detail-value--clickable {
  9513. color: #e5484d;
  9514. }
  9515. }
  9516. }
  9517. @media (max-width: 992px) {
  9518. .qj-portrait-page #section-relation .intimacy-panel {
  9519. .section-header {
  9520. flex-direction: column;
  9521. align-items: stretch;
  9522. }
  9523. .section-tools,
  9524. .relation-search {
  9525. width: 100%;
  9526. }
  9527. }
  9528. }
  9529. </style>