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/Reward/WithdrawalApproval.vue | 69 ++++------------------------------
1 files changed, 9 insertions(+), 60 deletions(-)
diff --git a/src/views/Reward/WithdrawalApproval.vue b/src/views/Reward/WithdrawalApproval.vue
index a575e10..6776b22 100644
--- a/src/views/Reward/WithdrawalApproval.vue
+++ b/src/views/Reward/WithdrawalApproval.vue
@@ -64,65 +64,14 @@
import WithdrawalApprovalAuditDialog from './components/WithdrawalApprovalAuditDialog.vue';
import _ from 'lodash';
import { ModelValueType } from 'element-plus';
+import { useAccess } from '@/hooks';
defineOptions({
name: 'WithdrawalApproval',
});
-const column: API.CustomModuleColumnDto[] = [
- {
- id: '1',
- enCode: 'enterpriseName',
- name: '浼佷笟鍚嶇О',
- },
- {
- id: '2',
- enCode: 'societyCreditCode',
- name: '缁熶竴绀句細淇$敤浠g爜',
- },
- {
- id: '3',
- enCode: 'enterpriseType',
- name: '浼佷笟绫诲瀷',
- },
- {
- id: '4',
- enCode: 'parkName',
- name: '鎵�灞炲洯鍖�',
- },
- {
- id: '5',
- enCode: 'parkType',
- name: '鍥尯绫诲瀷',
- },
- {
- id: '6',
- enCode: 'creationTime',
- name: '鐢宠鏃堕棿',
- },
- {
- id: '7',
- enCode: 'amount',
- name: '鐢宠鎻愮幇閲戦锛堝厓锛�',
- },
- {
- id: '8',
- enCode: 'checkStatus',
- name: '瀹℃牳鐘舵��',
- },
- {
- id: '9',
- enCode: 'checkTime',
- name: '瀹℃牳鏃堕棿',
- },
-];
-
-const operationBtns = defineOperationBtns([
- {
- data: {
- enCode: 'detailBtn',
- name: '璇︽儏',
- },
+const operationBtnMap: Record<string, OperationBtnType> = {
+ detailBtn: {
emits: {
onClick: (role) => openDialog(role, true),
},
@@ -131,11 +80,7 @@
row.checkStatus === EnterpriseRechargeStatusEnum.WaitCheck,
},
},
- {
- data: {
- enCode: 'auditBtn',
- name: '瀹℃牳',
- },
+ auditBtn: {
emits: {
onClick: (role) => openDialog(role),
},
@@ -144,7 +89,11 @@
row.checkStatus !== EnterpriseRechargeStatusEnum.WaitCheck,
},
},
-]);
+};
+
+const { checkSubModuleItemShow, column, operationBtns } = useAccess({
+ operationBtnMap,
+});
const router = useRouter();
const BaseState = {
--
Gitblit v1.9.1