From 4153f38e1f55daac0d1da109992a65c0026b0f40 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 14 十一月 2025 20:29:19 +0800
Subject: [PATCH] fix: bug
---
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