Parcourir la source

feat(analysis): 表格标题栏列设置与默认序号列,修复每月规律明细金额过滤

- 通信分析、交易分析、活动轨迹分析及记录弹窗统一在标题栏加列设置入口
- 所有已接入表格默认展示序号列,已有自定义序号列直接复用
- 列设置浮层挂 body,避免被卡片 overflow:hidden 裁剪
- 修复每月规律交易明细金额区间字段名错误(minTransMoney → minTransAmount),
  明细条数与汇总口径一致
cc il y a 3 semaines
Parent
commit
5eed1fd18b
22 fichiers modifiés avec 149 ajouts et 45 suppressions
  1. 1 0
      ai-electron/frontend/src/call/views/components/CallRecordModal.vue
  2. 26 3
      ai-electron/frontend/src/call/views/continuous/index.vue
  3. 27 3
      ai-electron/frontend/src/call/views/night/index.vue
  4. 30 6
      ai-electron/frontend/src/call/views/sensitive/index.vue
  5. 2 0
      ai-electron/frontend/src/case/views/dm/portrait.vue
  6. 16 2
      ai-electron/frontend/src/core/components/Table/src/BasicTable.vue
  7. 9 5
      ai-electron/frontend/src/core/components/Table/src/components/settings/ColumnSetting.vue
  8. 2 2
      ai-electron/frontend/src/trans/api/types/query.ts
  9. 2 2
      ai-electron/frontend/src/trans/views/baseStation/index.vue
  10. 1 1
      ai-electron/frontend/src/trans/views/capitalFlow/index.vue
  11. 4 4
      ai-electron/frontend/src/trans/views/cashTrans/index.vue
  12. 1 0
      ai-electron/frontend/src/trans/views/components/TransRecordModal.vue
  13. 2 2
      ai-electron/frontend/src/trans/views/expressDelivery/index.vue
  14. 2 1
      ai-electron/frontend/src/trans/views/faceToFace/index.vue
  15. 2 1
      ai-electron/frontend/src/trans/views/financialWealth/index.vue
  16. 2 1
      ai-electron/frontend/src/trans/views/fixedDeposit/index.vue
  17. 2 1
      ai-electron/frontend/src/trans/views/largeAmount/index.vue
  18. 6 3
      ai-electron/frontend/src/trans/views/monthRegular/index.vue
  19. 2 1
      ai-electron/frontend/src/trans/views/morningEveningCall/index.vue
  20. 4 4
      ai-electron/frontend/src/trans/views/peerAnalysis/index.vue
  21. 2 1
      ai-electron/frontend/src/trans/views/tradeFrequency/index.vue
  22. 4 2
      ai-electron/frontend/src/trans/views/transSensitive/index.vue

+ 1 - 0
ai-electron/frontend/src/call/views/components/CallRecordModal.vue

@@ -13,6 +13,7 @@
     :pagination="pagination"
     :total-pages="totalPages"
     :page-size-options="pageSizeOptions"
+    :show-index-column="true"
     :show-table-setting="true"
     :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
     :can-fullscreen="true"

+ 26 - 3
ai-electron/frontend/src/call/views/continuous/index.vue

@@ -46,8 +46,8 @@
       </div>
     </section>
 
-    <section class="qj-table-card">
-      <div class="qj-table-head">
+    <section class="qj-table-card table-card">
+      <div class="qj-table-head panel-header">
         <div class="qj-card-title">持续联系对象汇总</div>
         <div class="qj-table-sub">找出与被调查对象持续保持联系的人员</div>
         <div class="qj-table-meta">共 {{ hasSearched ? total.toLocaleString('zh-CN') : 0 }} 条</div>
@@ -71,7 +71,8 @@
               :data-source="tableData"
               :loading="false"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"
@@ -735,6 +736,28 @@
       border-bottom: 1px solid #eff2f7;
     }
 
+    /* 标题栏列设置:标题/副标题靠左,统计与「列设置」靠右 */
+    .qj-table-head.panel-header.jeesite-basic-table-panel-setting-host {
+      justify-content: flex-start;
+
+      > :first-child {
+        flex: 0 0 auto;
+        min-width: 0;
+      }
+
+      > .qj-table-meta {
+        margin-left: auto;
+      }
+
+      > .jeesite-basic-table-panel-setting {
+        margin-left: auto;
+      }
+
+      > .qj-table-meta + .jeesite-basic-table-panel-setting {
+        margin-left: 8px;
+      }
+    }
+
     .qj-table-sub {
       color: #98a2b3;
       font-size: 11px;

+ 27 - 3
ai-electron/frontend/src/call/views/night/index.vue

@@ -53,8 +53,8 @@
     </section>
 
     <div class="content-panel">
-      <section class="qj-summary-card">
-        <div class="qj-card-head">
+      <section class="qj-summary-card summary-panel">
+        <div class="qj-card-head panel-header">
           <div class="qj-card-title">夜间联系对象汇总</div>
           <div class="qj-card-sub">汇总满足当前筛选条件的对象的夜间联系情况,点击单条查看时段趋势</div>
           <div class="qj-card-meta">共 {{ (hasSearched ? total : 0).toLocaleString('zh-CN') }} 条</div>
@@ -77,7 +77,9 @@
               :columns="columns"
               :data-source="tableData"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
+              :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"
               :resize-height-offset="32"
@@ -1228,6 +1230,28 @@
       border-bottom: 1px solid #eff2f7;
     }
 
+    /* 标题栏列设置:标题/副标题靠左,统计与「列设置」靠右 */
+    .qj-card-head.panel-header.jeesite-basic-table-panel-setting-host {
+      justify-content: flex-start;
+
+      > :first-child {
+        flex: 0 0 auto;
+        min-width: 0;
+      }
+
+      > .qj-card-meta {
+        margin-left: auto;
+      }
+
+      > .jeesite-basic-table-panel-setting {
+        margin-left: auto;
+      }
+
+      > .qj-card-meta + .jeesite-basic-table-panel-setting {
+        margin-left: 8px;
+      }
+    }
+
     .qj-card-sub {
       color: #98a2b3;
       font-size: 11px;

+ 30 - 6
ai-electron/frontend/src/call/views/sensitive/index.vue

@@ -38,8 +38,8 @@
     </section>
 
     <div class="content-panel">
-      <section class="qj-panel-card qj-panel-left">
-        <div class="qj-card-head">
+      <section class="qj-panel-card qj-panel-left panel-left">
+        <div class="qj-card-head panel-header">
           <div class="qj-card-title">联系对方汇总</div>
           <div class="qj-card-sub">找出与对象在敏感日期保持联系的人员或号码</div>
           <div class="qj-card-meta">{{ hasSearched ? `共 ${summaryTotal.toLocaleString('zh-CN')} 条` : '—' }}</div>
@@ -68,7 +68,8 @@
             :columns="summaryColumns"
             :data-source="summaryData"
             :pagination="false"
-            :show-table-setting="false"
+            :show-table-setting="true"
+            :show-index-column="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :can-resize="!isSummaryTableCompact"
             :is-can-resize-parent="true"
@@ -91,8 +92,8 @@
         </div>
       </section>
 
-      <section class="qj-panel-card qj-panel-right">
-        <div class="qj-card-head">
+      <section class="qj-panel-card qj-panel-right panel-right">
+        <div class="qj-card-head panel-header">
           <div class="qj-card-title">通话详情</div>
           <div class="qj-card-sub">敏感日期通话明细</div>
           <div v-if="selectedSummaryRow" class="qj-card-meta">
@@ -110,7 +111,8 @@
             :data-source="festivalData"
             :loading="detailLoading"
             :pagination="false"
-            :show-table-setting="false"
+            :show-table-setting="true"
+            :show-index-column="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :can-resize="true"
             :is-can-resize-parent="true"
@@ -1038,6 +1040,28 @@
       border-bottom: 1px solid #eff2f7;
     }
 
+    /* 标题栏列设置:标题/副标题靠左,统计与「列设置」靠右 */
+    .qj-card-head.panel-header.jeesite-basic-table-panel-setting-host {
+      justify-content: flex-start;
+
+      > :first-child {
+        flex: 0 0 auto;
+        min-width: 0;
+      }
+
+      > .qj-card-meta {
+        margin-left: auto;
+      }
+
+      > .jeesite-basic-table-panel-setting {
+        margin-left: auto;
+      }
+
+      > .qj-card-meta + .jeesite-basic-table-panel-setting {
+        margin-left: 8px;
+      }
+    }
+
     .qj-card-sub {
       color: #98a2b3;
       font-size: 11px;

+ 2 - 0
ai-electron/frontend/src/case/views/dm/portrait.vue

@@ -683,6 +683,7 @@
       :pagination="callOperPhonePagination"
       :total-pages="callOperPhoneTotalPages"
       :page-size-options="pageSizeOptions"
+      :show-index-column="true"
       :show-table-setting="true"
       :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
       :can-fullscreen="true"
@@ -739,6 +740,7 @@
       :pagination="transBankCardPagination"
       :total-pages="transBankCardTotalPages"
       :page-size-options="pageSizeOptions"
+      :show-index-column="true"
       :show-table-setting="true"
       :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
       :can-fullscreen="true"

+ 16 - 2
ai-electron/frontend/src/core/components/Table/src/BasicTable.vue

@@ -7,7 +7,11 @@
   <div ref="wrapRef" :class="getWrapperClass">
     <Teleport v-if="shouldTeleportTableSetting" :to="panelTableSettingTarget">
       <div class="jeesite-basic-table-panel-setting">
-        <TableSetting :setting="getProps.tableSetting" @columns-change="handlers.onColumnsChange" />
+        <TableSetting
+          :setting="getProps.tableSetting"
+          :getPopupContainer="getPanelTableSettingPopupContainer"
+          @columns-change="handlers.onColumnsChange"
+        />
       </div>
     </Teleport>
     <TableHeader v-bind="getHeaderProps" :showSelectionBar="false">
@@ -504,6 +508,11 @@
     });
   }
 
+  // 标题栏中的列设置浮层挂到 body,避免被卡片的 overflow:hidden 裁剪
+  function getPanelTableSettingPopupContainer() {
+    return document.body;
+  }
+
   onMounted(schedulePanelTableSettingTargetUpdate);
 
   onBeforeUnmount(() => {
@@ -1169,7 +1178,7 @@
 
   .panel-header.jeesite-basic-table-panel-setting-host {
     display: flex;
-    align-items: flex-start;
+    align-items: center;
     justify-content: space-between;
     gap: 12px;
 
@@ -1177,6 +1186,11 @@
       flex: 1;
       min-width: 0;
     }
+
+    > .jeesite-basic-table-panel-setting {
+      flex: 0 0 auto;
+      margin-left: auto;
+    }
   }
 
   .jeesite-basic-table-panel-setting {

+ 9 - 5
ai-electron/frontend/src/core/components/Table/src/components/settings/ColumnSetting.vue

@@ -165,11 +165,15 @@
         ensureStateSynced();
       });
 
-      watch([() => unref(table?.getBindValues).showIndexColumn, () => unref(table?.getBindValues).rowSelection], () => {
-        const values = unref(table?.getBindValues) || {};
-        state.checkIndex = !!values.showIndexColumn;
-        state.checkSelect = !!values.rowSelection;
-      });
+      watch(
+        [() => unref(table?.getBindValues).showIndexColumn, () => unref(table?.getBindValues).rowSelection],
+        () => {
+          const values = unref(table?.getBindValues) || {};
+          state.checkIndex = !!values.showIndexColumn;
+          state.checkSelect = !!values.rowSelection;
+        },
+        { immediate: true },
+      );
 
       const isTreeTable = computed(() => unref(table?.getBindValues).isTreeTable);
 

+ 2 - 2
ai-electron/frontend/src/trans/api/types/query.ts

@@ -167,8 +167,8 @@ export interface TransRecordQuery extends Query {
   indicator?: string;
   dimension?: string;
   personCardNo?: string;
-  minTransMoney?: ApiAmountString;
-  maxTransMoney?: ApiAmountString;
+  minTransAmount?: ApiAmountString;
+  maxTransAmount?: ApiAmountString;
   otherName?: string;
   otherCardNo?: string;
   personIpAddress?: string;

+ 2 - 2
ai-electron/frontend/src/trans/views/baseStation/index.vue

@@ -69,9 +69,9 @@
               :data-source="tableData"
               :loading="queryLoading"
               :pagination="false"
-              :showIndexColumn="false"
+              :showIndexColumn="true"
               :table-setting-store="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"

+ 1 - 1
ai-electron/frontend/src/trans/views/capitalFlow/index.vue

@@ -80,7 +80,7 @@
               :data-source="tableData"
               :loading="queryLoading"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :show-index-column="true"
               :can-resize="true"

+ 4 - 4
ai-electron/frontend/src/trans/views/cashTrans/index.vue

@@ -127,8 +127,8 @@
             :data-source="summaryData"
             :pagination="false"
             :loading="summaryLoading"
-            :showIndexColumn="false"
-            :show-table-setting="false"
+            :showIndexColumn="true"
+            :show-table-setting="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :can-resize="true"
             :is-can-resize-parent="true"
@@ -190,8 +190,8 @@
             :data-source="detailData"
             :pagination="false"
             :loading="detailLoading"
-            :showIndexColumn="false"
-            :show-table-setting="false"
+            :showIndexColumn="true"
+            :show-table-setting="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :can-resize="true"
             :is-can-resize-parent="true"

+ 1 - 0
ai-electron/frontend/src/trans/views/components/TransRecordModal.vue

@@ -14,6 +14,7 @@
     :pagination="pagination"
     :total-pages="totalPages"
     :page-size-options="pageSizeOptions"
+    :show-index-column="true"
     :show-table-setting="true"
     :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
     :can-fullscreen="true"

+ 2 - 2
ai-electron/frontend/src/trans/views/expressDelivery/index.vue

@@ -63,8 +63,8 @@
               :data-source="tableData"
               :loading="queryLoading"
               :pagination="false"
-              :showIndexColumn="false"
-              :show-table-setting="false"
+              :showIndexColumn="true"
+              :show-table-setting="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"

+ 2 - 1
ai-electron/frontend/src/trans/views/faceToFace/index.vue

@@ -128,7 +128,8 @@
                 :data-source="tableData"
                 :loading="detailLoading"
                 :pagination="false"
-                :show-table-setting="false"
+                :show-table-setting="true"
+                :show-index-column="true"
                 :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
                 :can-resize="true"
                 :is-can-resize-parent="true"

+ 2 - 1
ai-electron/frontend/src/trans/views/financialWealth/index.vue

@@ -127,7 +127,8 @@
               :data-source="tableData"
               :loading="queryLoading"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ size: true, setting: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"

+ 2 - 1
ai-electron/frontend/src/trans/views/fixedDeposit/index.vue

@@ -168,7 +168,8 @@
             :data-source="detailTableData"
             :loading="detailLoading"
             :pagination="false"
-            :show-table-setting="false"
+            :show-table-setting="true"
+            :show-index-column="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :can-resize="true"
             :is-can-resize-parent="true"

+ 2 - 1
ai-electron/frontend/src/trans/views/largeAmount/index.vue

@@ -74,7 +74,8 @@
               :columns="summaryColumns"
               :data-source="summaryData"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"

+ 6 - 3
ai-electron/frontend/src/trans/views/monthRegular/index.vue

@@ -73,7 +73,9 @@
               :columns="columns"
               :data-source="tableData"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
+              :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"
               :resize-height-offset="32"
@@ -352,8 +354,9 @@
       personCardNo: pickDetailValue(item?.personCardNo),
       startDate: normalizeMonthDate(item?.continuousStartMonth, false),
       endDate: normalizeMonthDate(item?.continuousEndMonth, true),
-      minTransMoney: query.minTransMoney,
-      maxTransMoney: query.maxTransMoney,
+      // 明细接口的金额区间字段是 minTransAmount/maxTransAmount(不是汇总层的 TransMoney)
+      minTransAmount: query.minTransMoney,
+      maxTransAmount: query.maxTransMoney,
     };
   };
 

+ 2 - 1
ai-electron/frontend/src/trans/views/morningEveningCall/index.vue

@@ -134,7 +134,8 @@
             :data-source="detailTableData"
             :loading="detailLoading"
             :pagination="false"
-            :show-table-setting="false"
+            :show-table-setting="true"
+            :show-index-column="true"
             :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
             :index-column-props="indexColumnProps"
             :can-resize="true"

+ 4 - 4
ai-electron/frontend/src/trans/views/peerAnalysis/index.vue

@@ -93,8 +93,8 @@
                 :data-source="recordList"
                 :pagination="false"
                 :loading="recordLoading"
-                :showIndexColumn="false"
-                :show-table-setting="false"
+                :showIndexColumn="true"
+                :show-table-setting="true"
                 :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
                 :can-resize="true"
                 :is-can-resize-parent="true"
@@ -128,8 +128,8 @@
                 :data-source="detailRows"
                 :pagination="false"
                 :loading="detailLoading"
-                :showIndexColumn="false"
-                :show-table-setting="false"
+                :showIndexColumn="true"
+                :show-table-setting="true"
                 :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
                 :can-resize="true"
                 :is-can-resize-parent="true"

+ 2 - 1
ai-electron/frontend/src/trans/views/tradeFrequency/index.vue

@@ -73,7 +73,8 @@
               :action-column="actionColumn"
               :data-source="tableData"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"

+ 4 - 2
ai-electron/frontend/src/trans/views/transSensitive/index.vue

@@ -72,7 +72,8 @@
               :columns="summaryColumns"
               :data-source="summaryData"
               :pagination="false"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"
@@ -120,7 +121,8 @@
               :data-source="festivalData"
               :pagination="false"
               :loading="detailLoading"
-              :show-table-setting="false"
+              :show-table-setting="true"
+              :show-index-column="true"
               :table-setting="{ setting: true, size: true, redo: false, fullScreen: false }"
               :can-resize="true"
               :is-can-resize-parent="true"