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/MaterialReview/MaterialReReviewList.vue |   85 ++++--------------------------------------
 1 files changed, 9 insertions(+), 76 deletions(-)

diff --git a/src/views/MaterialReview/MaterialReReviewList.vue b/src/views/MaterialReview/MaterialReReviewList.vue
index bb422f0..da49c0b 100644
--- a/src/views/MaterialReview/MaterialReReviewList.vue
+++ b/src/views/MaterialReview/MaterialReReviewList.vue
@@ -71,90 +71,19 @@
 import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
 import _ from 'lodash';
 import { ModelValueType } from 'element-plus';
-import { useGlobalEventContext } from '@/hooks';
+import { useAccess, useGlobalEventContext } from '@/hooks';
 
 defineOptions({
   name: 'MaterialReviewList',
 });
 
-const column: API.CustomModuleColumnDto[] = [
-  {
-    id: '1',
-    enCode: 'batchNo',
-    name: '鐢宠鎵规鍙�',
-  },
-  {
-    id: '2',
-    enCode: 'parkName',
-    name: '鐢宠鍥尯',
-  },
-  {
-    id: '3',
-    enCode: 'parkTypeName',
-    name: '鍥尯绫诲瀷',
-  },
-  {
-    id: '4',
-    enCode: 'applyMonth',
-    name: '鐢宠濂栧姳閲戞湀浠�',
-  },
-  {
-    id: '5',
-    enCode: 'applySumAmount',
-    name: '濂栧姳閲戞眹鎬婚噾棰濓紙鍏冿級',
-  },
-  {
-    id: '6',
-    enCode: 'creationTime',
-    name: '鐢虫姤鏃ユ湡',
-  },
-  {
-    id: '6-1',
-    enCode: 'outCheckAuditOperator',
-    name: '鍒濆浜�',
-  },
-  {
-    id: '6-2',
-    enCode: 'outCheckTime',
-    name: '鍒濆鏃ユ湡',
-  },
-  {
-    id: '6-3',
-    enCode: 'outCheckStatus',
-    name: '鍒濆鐘舵��',
-  },
-  {
-    id: '7',
-    enCode: 'outReCheckAuditOperator',
-    name: '澶嶅浜�',
-  },
-  {
-    id: '8',
-    enCode: 'outReCheckTime',
-    name: '澶嶅鏃ユ湡',
-  },
-  {
-    id: '9',
-    enCode: 'outReCheckStatus',
-    name: '澶嶅鐘舵��',
-  },
-];
-
-const operationBtns = defineOperationBtns([
-  {
-    data: {
-      enCode: 'detailBtn',
-      name: '璇︽儏',
-    },
+const operationBtnMap: Record<string, OperationBtnType> = {
+  detailBtn: {
     emits: {
       onClick: (role) => goDetail(role),
     },
   },
-  {
-    data: {
-      enCode: 'auditBtn',
-      name: '瀹℃牳',
-    },
+  auditBtn: {
     emits: {
       onClick: (role) => goAudit(role),
     },
@@ -163,7 +92,11 @@
         row.outReCheckStatus !== BountyCheckStatusEnum.WaitCheck,
     },
   },
-]);
+};
+
+const { checkSubModuleItemShow, column, operationBtns } = useAccess({
+  operationBtnMap,
+});
 
 const router = useRouter();
 const BaseState = {

--
Gitblit v1.9.1