From 53b0a0b7b5594e1e4ff6036703fa00af84c5ea9f Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 16 六月 2025 19:24:03 +0800
Subject: [PATCH] fix: bug

---
 src/components/commonView/DeclareEnterpriseTableView.vue |   49 ++++++++++---------------------------------------
 1 files changed, 10 insertions(+), 39 deletions(-)

diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue
index da0b2cc..8fdd4d1 100644
--- a/src/components/commonView/DeclareEnterpriseTableView.vue
+++ b/src/components/commonView/DeclareEnterpriseTableView.vue
@@ -21,6 +21,9 @@
       maxHeight: '400px',
     }"
   >
+    <template #licenseUrl="{ row }">
+      <PreviewBtnV2 :url="setOSSLink(row.licenseUrl)"></PreviewBtnV2>
+    </template>
   </ProTableV2>
 </template>
 
@@ -32,7 +35,10 @@
   SearchInput,
   defineOperationBtns,
   defineColumns,
+  PreviewBtnV2,
 } from '@bole-core/components';
+import { setOSSLink } from '@/utils';
+import { BaseDeclareEnterpriseTableViewColumns } from '@/constants';
 
 defineOptions({
   name: 'DeclareEnterpriseTableView',
@@ -46,47 +52,12 @@
     searchKeyWord: string;
   };
   openDialog?: (row) => void;
+  column?: API.ModuleColumnDto[];
 };
 
-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 props = withDefaults(defineProps<Props>(), {
+  column: () => BaseDeclareEnterpriseTableViewColumns,
+});
 
 const operationBtns = defineOperationBtns([
   {

--
Gitblit v1.9.1