From f1ff27e72013b5c89de241d4d3ab11244aa91e15 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 12 十一月 2025 17:30:14 +0800
Subject: [PATCH] fix: 四流

---
 src/views/EnterpriseInfo/EnterpriseInfo.vue |  104 +++------------------------------------------------
 1 files changed, 7 insertions(+), 97 deletions(-)

diff --git a/src/views/EnterpriseInfo/EnterpriseInfo.vue b/src/views/EnterpriseInfo/EnterpriseInfo.vue
index bfe6b5c..46bd33c 100644
--- a/src/views/EnterpriseInfo/EnterpriseInfo.vue
+++ b/src/views/EnterpriseInfo/EnterpriseInfo.vue
@@ -72,109 +72,19 @@
 import _ from 'lodash';
 import { ModelValueType } from 'element-plus';
 import { EnterpriseTypeText } from '@/constants';
+import { useAccess } from '@/hooks';
 
 defineOptions({
   name: 'EnterpriseInfo',
 });
 
-const column: API.CustomModuleColumnDto[] = [
-  {
-    id: '1',
-    enCode: 'enterpriseName',
-    name: '浼佷笟鍚�',
-    width: 250,
-  },
-  {
-    id: '2',
-    enCode: 'societyCreditCode',
-    name: '缁熶竴绀句細淇$敤浠g爜',
-    width: 200,
-  },
-  {
-    id: '3',
-    enCode: 'enterpriseType',
-    name: '浼佷笟绫诲瀷',
-    width: 150,
-  },
-  {
-    id: '4',
-    enCode: 'industrialParkName',
-    name: '鎵�灞炲洯鍖�',
-    width: 200,
-  },
-  {
-    id: '5',
-    enCode: 'parkTypName',
-    name: '鍥尯绫诲瀷',
-    width: 150,
-  },
-  {
-    id: '6',
-    enCode: 'applyCount',
-    name: '鐢虫姤娆℃暟',
-    width: 150,
-  },
-  {
-    id: '7',
-    enCode: 'lastApplyTime',
-    name: '鏈�杩戠敵鎶ユ棩鏈�',
-    width: 180,
-  },
-  {
-    id: '8',
-    enCode: 'financeCount',
-    name: '璐㈡斂鎷ㄤ粯娆℃暟',
-    width: 150,
-  },
-  {
-    id: '9',
-    enCode: 'lastFinanceTime',
-    name: '鏈�杩戣储鏀挎嫧浠樻棩鏈�',
-    width: 180,
-  },
-  {
-    id: '10',
-    enCode: 'financeSumAmount',
-    name: '璐㈡斂鎷ㄤ粯鎬婚',
-    width: 150,
-  },
-  {
-    id: '11',
-    enCode: 'settleCount',
-    name: '骞冲彴鎷ㄤ粯娆℃暟',
-    width: 150,
-  },
-  {
-    id: '12',
-    enCode: 'lastSettleTime',
-    name: '鏈�杩戝钩鍙版嫧浠樻棩鏈�',
-    width: 180,
-  },
-  {
-    id: '13',
-    enCode: 'settleSumAmount',
-    name: '骞冲彴鎷ㄤ粯鎬婚',
-    width: 150,
-  },
-  {
-    id: '14',
-    enCode: 'bountyAmount',
-    name: '骞冲彴鎷ㄤ粯浣欓',
-    width: 150,
-  },
-];
+const operationBtnMap: Record<string, OperationBtnType> = {
+  detailBtn: { emits: { onClick: (role) => goDetail(role) } },
+};
 
-const operationBtns = defineOperationBtns([
-  {
-    data: {
-      enCode: 'detailBtn',
-      name: '璇︽儏',
-    },
-    emits: {
-      onClick: (role) => goDetail(role),
-    },
-  },
-]);
+const { checkSubModuleItemShow, column, operationBtns } = useAccess({
+  operationBtnMap,
+});
 
 const router = useRouter();
 const BaseState = {

--
Gitblit v1.9.1