From 42cb53916a430a19843913f2601b5d16779c7010 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 23 十月 2025 22:19:29 +0800
Subject: [PATCH] feat: 接口

---
 src/views/BalanceManage/components/WithdrawalRecordView.vue |   88 +++++++++++++++++++++++---------------------
 1 files changed, 46 insertions(+), 42 deletions(-)

diff --git a/src/views/BalanceManage/components/WithdrawalRecordView.vue b/src/views/BalanceManage/components/WithdrawalRecordView.vue
index 78d4948..269c24e 100644
--- a/src/views/BalanceManage/components/WithdrawalRecordView.vue
+++ b/src/views/BalanceManage/components/WithdrawalRecordView.vue
@@ -1,7 +1,7 @@
 <template>
   <LoadingLayout :loading="state.loading">
     <AppContainer>
-      <Table v-bind="{ ...proTableProps, ...columnsProps }">
+      <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns">
         <template #checkStatus="{ data, row }">
           <div style="display: flex; justify-content: center; align-items: center">
             {{ EnterpriseRechargeStatusEnumTextWithdrawal[row.checkStatus] }}
@@ -21,63 +21,68 @@
             preview-btn-text="鏌ョ湅鍑瘉"
           />
         </template>
-      </Table>
+      </ProTableV2>
     </AppContainer>
   </LoadingLayout>
 </template>
 
 <script setup lang="ts">
-import { AppContainer, useTable, PreviewBtnV2, TextOverTooltip } from '@bole-core/components';
+import {
+  AppContainer,
+  useTable,
+  PreviewBtnV2,
+  ProTableV2,
+  defineOperationBtns,
+} from '@bole-core/components';
 import { OrderInputType } from '@bole-core/core';
 import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
-import { useDefineColumns, useUser } from '@/hooks';
-import { convertApi2FormUrlBySeparator } from '@/utils';
+import { useUser } from '@/hooks';
 import {
   EnterpriseRechargeStatusEnumTextWithdrawal,
   EnterpriseRechargeStatusEnum,
 } from '@/constants';
+import { convertApi2FormUrlBySeparator } from '@/utils';
 
 defineOptions({
   name: 'WithdrawalRecordView',
 });
 
-const columnsProps = useDefineColumns({
-  columns: [
-    {
-      id: '1',
-      enCode: 'creationTime',
-      name: '鐢宠鏃堕棿',
+const column = [
+  {
+    id: '1',
+    enCode: 'creationTime',
+    name: '鐢宠鏃堕棿',
+  },
+  {
+    id: '2',
+    enCode: 'amount',
+    name: '鎻愮幇閲戦',
+  },
+  {
+    id: '3',
+    enCode: 'checkStatus',
+    name: '瀹℃牳鐘舵��',
+  },
+  {
+    id: '4',
+    enCode: 'checkTime',
+    name: '瀹℃牳鏃堕棿',
+  },
+  {
+    id: '5',
+    enCode: 'remainAmount',
+    name: '璧勯噾浣欓',
+  },
+];
+
+const operationBtns = defineOperationBtns([
+  {
+    data: {
+      enCode: 'checkBtn',
+      name: '鏌ョ湅鍑瘉',
     },
-    {
-      id: '2',
-      enCode: 'amount',
-      name: '鎻愮幇閲戦',
-    },
-    {
-      id: '3',
-      enCode: 'checkStatus',
-      name: '瀹℃牳鐘舵��',
-    },
-    {
-      id: '4',
-      enCode: 'checkTime',
-      name: '瀹℃牳鏃堕棿',
-    },
-    {
-      id: '5',
-      enCode: 'remainAmount',
-      name: '璧勯噾浣欓',
-    },
-  ],
-  operationBtns: [
-    {
-      data: {
-        enCode: 'checkBtn',
-        name: '鏌ョ湅鍑瘉',
-      },
-    },
-  ],
-});
+  },
+]);
 
 const route = useRoute();
 const router = useRouter();
@@ -87,7 +92,6 @@
 };
 
 const state = reactive({ ...BaseState });
-const { userDetail } = useUser();
 
 const {
   getDataSource: getList,

--
Gitblit v1.9.1