cluePush.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. <template>
  2. <div :class="prefixCls" class="case-clue-page">
  3. <div class="page-header">
  4. <div>
  5. <div class="page-title">线索推送</div>
  6. <div class="page-subtitle">按照分析对象查看线索分类和命中详情,保持与案件分析页面一致的卡片式布局。</div>
  7. </div>
  8. </div>
  9. <div class="filter-bar">
  10. <div class="filter-item">
  11. <span class="filter-label">分析对象:</span>
  12. <Input v-model:value="filters.keyword" class="search-input" placeholder="请输入对象姓名" allow-clear />
  13. </div>
  14. <div class="filter-actions">
  15. <Button type="primary" @click="handleSearch">查询</Button>
  16. <Button @click="handleReset">重置</Button>
  17. </div>
  18. </div>
  19. <div class="content-panel">
  20. <aside class="panel-left">
  21. <div class="panel-header">
  22. <div>
  23. <div class="panel-title">分析对象列表</div>
  24. <div class="panel-desc">点击左侧对象可联动查看右侧的线索分类和命中详情。</div>
  25. </div>
  26. </div>
  27. <div class="target-list">
  28. <div
  29. v-for="item in filteredTargets"
  30. :key="item.id"
  31. class="target-item"
  32. :class="{ active: item.id === activeTarget }"
  33. @click="activeTarget = item.id"
  34. >
  35. <div class="target-name">{{ item.name }}</div>
  36. <div class="target-meta">共发现 {{ item.count }} 类线索</div>
  37. </div>
  38. <EmptyState variant="compact" description="暂无匹配对象" :min-height="180" />
  39. </div>
  40. <div class="note-card">此处展示的线索类别数量为当前对象已命中的结果总数。</div>
  41. </aside>
  42. <section class="panel-right">
  43. <div class="panel-header detail-header">
  44. <div>
  45. <div class="panel-title">{{ activeTargetInfo.name || '未选择对象' }} 的线索详情</div>
  46. <div class="panel-desc">按通信、交易、轨迹等维度切换查看具体命中情况。</div>
  47. </div>
  48. <div class="target-badge">命中 {{ activeTargetInfo.count || 0 }} 类</div>
  49. </div>
  50. <div class="category-tabs">
  51. <button
  52. v-for="item in categoryTabs"
  53. :key="item.key"
  54. type="button"
  55. class="category-tab"
  56. :class="{ active: activeCategory === item.key }"
  57. @click="activeCategory = item.key"
  58. >
  59. {{ item.label }}({{ item.count }})
  60. </button>
  61. </div>
  62. <div class="detail-layout">
  63. <div class="detail-nav">
  64. <button
  65. v-for="item in activeCategoryConfig.tabs"
  66. :key="item.key"
  67. type="button"
  68. class="detail-nav-item"
  69. :class="{ active: activeSubTab === item.key }"
  70. @click="activeSubTab = item.key"
  71. >
  72. {{ item.label }}
  73. </button>
  74. </div>
  75. <div class="detail-main">
  76. <div class="detail-main__header">
  77. <div class="detail-title">{{ activeTabConfig?.label || '-' }}</div>
  78. <div class="detail-desc">{{ activeTabConfig?.desc || '暂无线索描述' }}</div>
  79. </div>
  80. <div v-if="activeDetailRows.length" class="detail-list">
  81. <div v-for="row in activeDetailRows" :key="row.id" class="detail-item">
  82. <div class="detail-item__title">{{ row.name }}</div>
  83. <div class="detail-item__desc">{{ row.desc }}</div>
  84. </div>
  85. </div>
  86. <EmptyState variant="compact" description="当前分类暂无线索" :min-height="220" />
  87. </div>
  88. </div>
  89. </section>
  90. </div>
  91. </div>
  92. </template>
  93. <script lang="ts" setup name="ViewsCaseCluePush">
  94. import { computed, ref, watch } from 'vue';
  95. import { Button, Input } from 'ant-design-vue';
  96. import { EmptyState } from '@jeesite/core/components/EmptyState';
  97. import { useDesign } from '@jeesite/core/hooks/web/useDesign';
  98. import { useMessage } from '@jeesite/core/hooks/web/useMessage';
  99. const { prefixCls } = useDesign('case-clue');
  100. const { createMessage } = useMessage();
  101. const filters = ref({
  102. keyword: '',
  103. });
  104. const clueTargets = ref([
  105. { id: 1, name: '高某某', count: 3 },
  106. { id: 2, name: '王某某', count: 3 },
  107. { id: 3, name: '刘某某', count: 12 },
  108. { id: 4, name: '秦某某', count: 3 },
  109. ]);
  110. const activeTarget = ref(3);
  111. const activeCategory = ref<'call' | 'trade' | 'track'>('call');
  112. const activeSubTab = ref('continuous');
  113. const categoryTabs = [
  114. { key: 'call', label: '通信情况', count: 4 },
  115. { key: 'trade', label: '交易情况', count: 4 },
  116. { key: 'track', label: '活动轨迹', count: 4 },
  117. ] as const;
  118. const detailMap = {
  119. call: {
  120. tabs: [
  121. {
  122. key: 'continuous',
  123. label: '持续联系',
  124. desc: '展示对象与同一号码持续发生联系的命中记录。',
  125. rows: [
  126. { id: 1, name: '刘某某与 15890987654', desc: '近 30 天持续联系 12 次,通联密度较高。' },
  127. { id: 2, name: '刘某某与 13978324567', desc: '工作日夜间存在稳定联系记录。' },
  128. { id: 3, name: '刘某某与 17762099876', desc: '节假日期间仍保持频繁通话。' },
  129. ],
  130. },
  131. {
  132. key: 'night',
  133. label: '夜间联系',
  134. desc: '重点查看深夜时段的频繁联系情况。',
  135. rows: [
  136. { id: 4, name: '刘某某与 15890987654', desc: '23:00 至 02:00 期间联系 6 次。' },
  137. { id: 5, name: '刘某某与 18620234567', desc: '凌晨时段多次短通话,建议重点关注。' },
  138. ],
  139. },
  140. ],
  141. },
  142. trade: {
  143. tabs: [
  144. {
  145. key: 'capital',
  146. label: '资金往来',
  147. desc: '展示对象与可疑账户之间的交易命中概况。',
  148. rows: [
  149. { id: 6, name: '刘某某与 张某某', desc: '近 7 日发生 5 笔资金往来,累计 18.6 万元。' },
  150. { id: 7, name: '刘某某与 王某某', desc: '交易频次较高,呈现固定时间段转账特征。' },
  151. ],
  152. },
  153. {
  154. key: 'cash',
  155. label: '现金交易',
  156. desc: '展示对象现金存取等高频操作情况。',
  157. rows: [{ id: 8, name: '刘某某关联账户', desc: '工作日连续 3 天存在大额现金存入。' }],
  158. },
  159. ],
  160. },
  161. track: {
  162. tabs: [
  163. {
  164. key: 'co-stay',
  165. label: '共同驻留',
  166. desc: '展示对象与同伴在关键地点的共同驻留情况。',
  167. rows: [
  168. { id: 9, name: '刘某某与 高某某', desc: '在重点商圈连续 2 天共同出现。' },
  169. { id: 10, name: '刘某某与 王某某', desc: '凌晨时段在同一基站片区长时间驻留。' },
  170. ],
  171. },
  172. {
  173. key: 'route',
  174. label: '轨迹同行',
  175. desc: '展示对象在路线上的同步活动情况。',
  176. rows: [{ id: 11, name: '刘某某与 秦某某', desc: '近 3 次跨区出行轨迹高度重叠。' }],
  177. },
  178. ],
  179. },
  180. } as const;
  181. const filteredTargets = computed(() => {
  182. const keyword = filters.value.keyword.trim();
  183. if (!keyword) return clueTargets.value;
  184. return clueTargets.value.filter((item) => item.name.includes(keyword));
  185. });
  186. const activeCategoryConfig = computed(() => detailMap[activeCategory.value]);
  187. const activeTabConfig = computed(
  188. () =>
  189. activeCategoryConfig.value.tabs.find((item) => item.key === activeSubTab.value) ||
  190. activeCategoryConfig.value.tabs[0],
  191. );
  192. const activeTargetInfo = computed(
  193. () => filteredTargets.value.find((item) => item.id === activeTarget.value) || { name: '未选择对象', count: 0 },
  194. );
  195. const activeDetailRows = computed(() => {
  196. if (!filteredTargets.value.length) return [];
  197. return activeTabConfig.value?.rows || [];
  198. });
  199. const handleSearch = () => {
  200. if (!filteredTargets.value.length) {
  201. createMessage.info('未找到符合条件的分析对象');
  202. }
  203. };
  204. const handleReset = () => {
  205. filters.value.keyword = '';
  206. activeCategory.value = 'call';
  207. activeSubTab.value = 'continuous';
  208. };
  209. watch(
  210. filteredTargets,
  211. (list) => {
  212. if (!list.length) {
  213. activeTarget.value = 0;
  214. return;
  215. }
  216. if (!list.some((item) => item.id === activeTarget.value)) {
  217. activeTarget.value = list[0].id;
  218. }
  219. },
  220. { immediate: true },
  221. );
  222. watch(
  223. activeCategory,
  224. () => {
  225. activeSubTab.value = activeCategoryConfig.value.tabs[0]?.key || '';
  226. },
  227. { immediate: true },
  228. );
  229. </script>
  230. <style lang="less">
  231. @prefix-cls: ~'jeesite-case-clue';
  232. .@{prefix-cls}.case-clue-page {
  233. min-height: 100%;
  234. height: 100%;
  235. padding: 12px 16px 24px;
  236. background: #fff;
  237. display: flex;
  238. flex-direction: column;
  239. gap: 12px;
  240. box-sizing: border-box;
  241. overflow: auto;
  242. .page-title {
  243. font-size: 18px;
  244. font-weight: 600;
  245. line-height: 1.4;
  246. color: #111827;
  247. }
  248. .page-subtitle {
  249. margin-top: 4px;
  250. font-size: 13px;
  251. line-height: 1.6;
  252. color: #6b7280;
  253. }
  254. .filter-bar {
  255. display: flex;
  256. align-items: center;
  257. gap: 12px;
  258. flex-wrap: wrap;
  259. padding: 12px 16px;
  260. border: 1px solid #e5e7eb;
  261. border-radius: 12px;
  262. background: #fafafa;
  263. box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  264. }
  265. .filter-item {
  266. display: flex;
  267. align-items: center;
  268. gap: 8px;
  269. }
  270. .filter-label {
  271. font-size: 13px;
  272. color: #4b5563;
  273. white-space: nowrap;
  274. }
  275. .search-input {
  276. width: 220px;
  277. }
  278. .filter-actions {
  279. display: flex;
  280. gap: 8px;
  281. margin-left: auto;
  282. }
  283. .content-panel {
  284. display: grid;
  285. grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  286. gap: 12px;
  287. flex: 1 1 auto;
  288. min-height: 0;
  289. }
  290. .panel-left,
  291. .panel-right {
  292. display: flex;
  293. flex-direction: column;
  294. min-height: 0;
  295. border: 1px solid #e5e7eb;
  296. border-radius: 14px;
  297. background: #fff;
  298. box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  299. overflow: hidden;
  300. }
  301. .panel-header {
  302. display: flex;
  303. align-items: flex-start;
  304. justify-content: space-between;
  305. gap: 12px;
  306. padding: 16px 18px 12px;
  307. border-bottom: 1px solid #eef2f7;
  308. }
  309. .panel-title {
  310. font-size: 15px;
  311. font-weight: 600;
  312. color: #111827;
  313. }
  314. .panel-desc {
  315. margin-top: 4px;
  316. font-size: 12px;
  317. line-height: 1.6;
  318. color: #6b7280;
  319. }
  320. .target-list {
  321. flex: 1 1 auto;
  322. min-height: 0;
  323. overflow: auto;
  324. padding: 14px;
  325. display: flex;
  326. flex-direction: column;
  327. gap: 10px;
  328. }
  329. .target-item {
  330. padding: 12px 14px;
  331. border: 1px solid #e5e7eb;
  332. border-radius: 12px;
  333. background: #fff;
  334. cursor: pointer;
  335. transition:
  336. border-color 0.2s ease,
  337. box-shadow 0.2s ease,
  338. background-color 0.2s ease;
  339. &:hover {
  340. border-color: #cbd5e1;
  341. background: #fafafa;
  342. }
  343. &.active {
  344. border-color: #bfdbfe;
  345. background: #eff6ff;
  346. box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
  347. }
  348. }
  349. .target-name {
  350. font-size: 14px;
  351. font-weight: 600;
  352. color: #111827;
  353. }
  354. .target-meta {
  355. margin-top: 6px;
  356. font-size: 12px;
  357. color: #6b7280;
  358. }
  359. .note-card {
  360. margin: 0 14px 14px;
  361. padding: 12px 14px;
  362. border-radius: 12px;
  363. border: 1px solid #f3e8a3;
  364. background: #fffbea;
  365. color: #6b7280;
  366. font-size: 12px;
  367. line-height: 1.7;
  368. }
  369. .detail-header {
  370. border-bottom: none;
  371. padding-bottom: 8px;
  372. }
  373. .target-badge {
  374. padding: 6px 12px;
  375. border-radius: 999px;
  376. background: #eff6ff;
  377. color: #2563eb;
  378. font-size: 12px;
  379. font-weight: 600;
  380. white-space: nowrap;
  381. }
  382. .category-tabs {
  383. display: flex;
  384. gap: 10px;
  385. padding: 0 18px 12px;
  386. border-bottom: 1px solid #eef2f7;
  387. flex-wrap: wrap;
  388. }
  389. .category-tab,
  390. .detail-nav-item {
  391. border: 1px solid #e5e7eb;
  392. background: #fff;
  393. color: #4b5563;
  394. cursor: pointer;
  395. transition: all 0.2s ease;
  396. }
  397. .category-tab {
  398. padding: 8px 14px;
  399. border-radius: 999px;
  400. font-size: 13px;
  401. &.active {
  402. border-color: #bfdbfe;
  403. background: #eff6ff;
  404. color: #2563eb;
  405. font-weight: 600;
  406. }
  407. }
  408. .detail-layout {
  409. display: grid;
  410. grid-template-columns: 150px minmax(0, 1fr);
  411. gap: 12px;
  412. min-height: 0;
  413. flex: 1 1 auto;
  414. padding: 16px 18px 18px;
  415. }
  416. .detail-nav {
  417. padding: 12px;
  418. border: 1px solid #eef2f7;
  419. border-radius: 12px;
  420. background: #fafafa;
  421. display: flex;
  422. flex-direction: column;
  423. gap: 8px;
  424. }
  425. .detail-nav-item {
  426. padding: 10px 12px;
  427. border-radius: 10px;
  428. font-size: 13px;
  429. text-align: left;
  430. &.active {
  431. border-color: #bfdbfe;
  432. background: #eff6ff;
  433. color: #2563eb;
  434. font-weight: 600;
  435. }
  436. }
  437. .detail-main {
  438. min-height: 0;
  439. display: flex;
  440. flex-direction: column;
  441. border: 1px solid #eef2f7;
  442. border-radius: 12px;
  443. background: #fff;
  444. overflow: hidden;
  445. }
  446. .detail-main__header {
  447. padding: 16px 18px 12px;
  448. border-bottom: 1px solid #eef2f7;
  449. }
  450. .detail-title {
  451. font-size: 15px;
  452. font-weight: 600;
  453. color: #111827;
  454. }
  455. .detail-desc {
  456. margin-top: 4px;
  457. font-size: 12px;
  458. line-height: 1.6;
  459. color: #6b7280;
  460. }
  461. .detail-list {
  462. flex: 1 1 auto;
  463. min-height: 0;
  464. overflow: auto;
  465. padding: 14px 18px 18px;
  466. display: flex;
  467. flex-direction: column;
  468. gap: 12px;
  469. }
  470. .detail-item {
  471. padding: 14px 16px;
  472. border-radius: 12px;
  473. border: 1px solid #e5e7eb;
  474. background: #fafafa;
  475. }
  476. .detail-item__title {
  477. font-size: 14px;
  478. font-weight: 600;
  479. color: #111827;
  480. }
  481. .detail-item__desc {
  482. margin-top: 6px;
  483. font-size: 12px;
  484. line-height: 1.7;
  485. color: #6b7280;
  486. }
  487. @media (max-width: 960px) {
  488. .content-panel,
  489. .detail-layout {
  490. grid-template-columns: 1fr;
  491. }
  492. .filter-actions {
  493. margin-left: 0;
  494. }
  495. }
  496. }
  497. </style>