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

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

diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue
index da0b2cc..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"
@@ -21,6 +24,9 @@
       maxHeight: '400px',
     }"
   >
+    <template #licenseUrl="{ row }">
+      <PreviewBtnV2 :url="setOSSLink(row.licenseUrl)"></PreviewBtnV2>
+    </template>
   </ProTableV2>
 </template>
 
@@ -32,7 +38,10 @@
   SearchInput,
   defineOperationBtns,
   defineColumns,
+  PreviewBtnV2,
 } from '@bole-core/components';
+import { setOSSLink } from '@/utils';
+import { BaseDeclareEnterpriseTableViewColumns } from '@/constants';
 
 defineOptions({
   name: 'DeclareEnterpriseTableView',
@@ -46,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