add customer/event export permission

This commit is contained in:
Timi
2026-08-03 13:00:55 +08:00
parent 4b81694c8c
commit c49e01be38
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
</section>
<div class="bottom-actions">
<t-button
v-can="gaoPermissionCodes.customer.read"
v-can="gaoPermissionCodes.customer.export"
theme="primary"
variant="outline"
class="export bg-white"
@@ -89,7 +89,7 @@
<div v-if="recordList.length" class="load-state" v-text="loadStateText" />
</div>
<t-button
v-can="gaoPermissionCodes.registrationEventRecord.read"
v-can="gaoPermissionCodes.registrationEventRecord.export"
class="export"
theme="primary"
:loading="exporting"
+2
View File
@@ -2,6 +2,7 @@ export const gaoPermissionCodes = {
customer: {
create: "GAO:CUSTOMER:CREATE",
read: "GAO:CUSTOMER:READ",
export: "GAO:CUSTOMER:EXPORT",
update: "GAO:CUSTOMER:UPDATE",
delete: "GAO:CUSTOMER:DELETE"
},
@@ -14,6 +15,7 @@ export const gaoPermissionCodes = {
registrationEventRecord: {
create: "GAO:REGISTRATION_EVENT_RECORD:CREATE",
read: "GAO:REGISTRATION_EVENT_RECORD:READ",
export: "GAO:REGISTRATION_EVENT_RECORD:EXPORT",
update: "GAO:REGISTRATION_EVENT_RECORD:UPDATE",
delete: "GAO:REGISTRATION_EVENT_RECORD:DELETE"
},