From 2174f758e8a963964198e092f0d528ef1ae9b81e Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 22 七月 2025 09:59:05 +0800
Subject: [PATCH] feat: 页面

---
 src/components/commonView/DeclareEnterpriseTableView.vue |   60 +++++++++---------------------------------------------------
 1 files changed, 9 insertions(+), 51 deletions(-)

diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue
index 7a404b3..d3e38de 100644
--- a/src/components/commonView/DeclareEnterpriseTableView.vue
+++ b/src/components/commonView/DeclareEnterpriseTableView.vue
@@ -11,6 +11,9 @@
         </SearchInput>
       </QueryFilterItem>
     </template>
+    <template #btn>
+      <slot name="btn"></slot>
+    </template>
   </ProTableQueryFilterBar>
   <ProTableV2
     v-bind="proTableProps"
@@ -38,6 +41,7 @@
   PreviewBtnV2,
 } from '@bole-core/components';
 import { setOSSLink } from '@/utils';
+import { BaseDeclareEnterpriseTableViewColumns } from '@/constants';
 
 defineOptions({
   name: 'DeclareEnterpriseTableView',
@@ -51,59 +55,13 @@
     searchKeyWord: string;
   };
   openDialog?: (row) => void;
+  column?: API.ModuleColumnDto[];
+  operationBtns?: OperationBtnType[];
 };
 
-const props = withDefaults(defineProps<Props>(), {});
-
-const column = defineColumns([
-  {
-    id: '1',
-    enCode: 'userName',
-    name: '甯愬彿',
-  },
-  {
-    id: '2',
-    enCode: 'enterpriseName',
-    name: '浼佷笟鍚嶇О',
-  },
-  {
-    id: '3',
-    enCode: 'societyCreditCode',
-    name: '淇$敤浠g爜',
-  },
-  {
-    id: '4',
-    enCode: 'contactPhone',
-    name: '鐢佃瘽',
-  },
-  {
-    id: '5',
-    enCode: 'authType',
-    name: '浼佷笟绫诲瀷',
-  },
-  {
-    id: '6',
-    enCode: 'licenseUrl',
-    name: '钀ヤ笟鎵х収',
-  },
-  {
-    id: '7',
-    enCode: 'bankAccountInfo',
-    name: '鍩烘湰鎴蜂俊鎭�',
-  },
-]);
-
-const operationBtns = defineOperationBtns([
-  {
-    data: {
-      enCode: 'detailBtn',
-      name: '璇︽儏',
-    },
-    emits: {
-      onClick: (role) => props.openDialog(role),
-    },
-  },
-]);
+const props = withDefaults(defineProps<Props>(), {
+  column: () => BaseDeclareEnterpriseTableViewColumns,
+});
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.1