فهرست منبع

修改历史资金流水

huangbin 4 سال پیش
والد
کامیت
46289be095

+ 15 - 15
src/views/search/search_capital_flow/search_capital_flow_tab/search_capital_flow_tab_history/index.vue

@@ -1,6 +1,7 @@
 <template>
     <!-- 资金流水 -->
-    <section class="topTableHeight">
+    <section class="topTableHeight_448 topTableHeight">
+        <Filter @search="search" />
         <a-table
             :columns="columns"
             class="srcollYTable expandLeftTable"
@@ -23,7 +24,7 @@
 
 <script lang="ts">
 import { EnumRouterName } from '@/common/constants/enumRouterName';
-import { BtnList, defineComponent, queryTableList } from '@/common/export/commonTable';
+import { defineComponent, queryTableList } from '@/common/export/commonTable';
 import { formatTime } from '@/common/methods';
 import { getRecordItemTab } from '@/common/setup/order/orderData';
 import { expandIcon } from '@/common/setup/table/clolumn';
@@ -31,38 +32,37 @@ import { handleComposeOrderTable } from '@/common/setup/table/compose';
 import { ComposeOrderTableParam } from '@/common/setup/table/interface';
 import { getSelectedAccountId } from '@/services/bus/account';
 import { QueryHisAmountLog } from '@/services/go/TaAccount';
-import { QueryAmountLogReq } from '@/services/go/TaAccount/interface';
 import { WrPerformancePlan } from '@/services/go/wrtrade/interface';
-import Bus from '@/utils/eventBus/index';
-
+import Filter from '@/views/search/search_document_records_commission_record_sub/components/filter/index.vue';
+import { Moment } from 'moment';
 export default defineComponent({
     name: EnumRouterName.search_capital_flow_tab,
     components: {
-        BtnList,
+        Filter,
     },
     setup() {
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<WrPerformancePlan>();
-        // 获取列表数据
-        const queryTableAction = () => {
-            const param: QueryAmountLogReq = {
+
+        // 查询数据
+        const search = (value: Moment[]) => {
+            const param = {
+                endDate: value[1].format('YYYY-MM-DD'),
+                startDate: value[0].format('YYYY-MM-DD'),
                 accountID: getSelectedAccountId().toString(),
             };
-
             queryTable(QueryHisAmountLog, param);
         };
         // 表格通用逻辑
         const param: ComposeOrderTableParam = {
-            queryFn: queryTableAction,
+            queryFn: () => { },
             tableName: 'table_pcweb_spot_trade_bottom_funding_info_log',
             recordList: getRecordItemTab(),
         };
-        // 资金变化,重新加载数据
-        Bus.$on('moneyChangedNtf_UI', () => {
-            queryTableAction();
-        });
+
         return {
             ...handleComposeOrderTable<WrPerformancePlan>(param),
+            search,
             loading,
             tableList,
             formatTime,