add customer/event export permission
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<div class="bottom-actions">
|
<div class="bottom-actions">
|
||||||
<t-button
|
<t-button
|
||||||
v-can="gaoPermissionCodes.customer.read"
|
v-can="gaoPermissionCodes.customer.export"
|
||||||
theme="primary"
|
theme="primary"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
class="export bg-white"
|
class="export bg-white"
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
<div v-if="recordList.length" class="load-state" v-text="loadStateText" />
|
<div v-if="recordList.length" class="load-state" v-text="loadStateText" />
|
||||||
</div>
|
</div>
|
||||||
<t-button
|
<t-button
|
||||||
v-can="gaoPermissionCodes.registrationEventRecord.read"
|
v-can="gaoPermissionCodes.registrationEventRecord.export"
|
||||||
class="export"
|
class="export"
|
||||||
theme="primary"
|
theme="primary"
|
||||||
:loading="exporting"
|
:loading="exporting"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ export const gaoPermissionCodes = {
|
|||||||
customer: {
|
customer: {
|
||||||
create: "GAO:CUSTOMER:CREATE",
|
create: "GAO:CUSTOMER:CREATE",
|
||||||
read: "GAO:CUSTOMER:READ",
|
read: "GAO:CUSTOMER:READ",
|
||||||
|
export: "GAO:CUSTOMER:EXPORT",
|
||||||
update: "GAO:CUSTOMER:UPDATE",
|
update: "GAO:CUSTOMER:UPDATE",
|
||||||
delete: "GAO:CUSTOMER:DELETE"
|
delete: "GAO:CUSTOMER:DELETE"
|
||||||
},
|
},
|
||||||
@@ -14,6 +15,7 @@ export const gaoPermissionCodes = {
|
|||||||
registrationEventRecord: {
|
registrationEventRecord: {
|
||||||
create: "GAO:REGISTRATION_EVENT_RECORD:CREATE",
|
create: "GAO:REGISTRATION_EVENT_RECORD:CREATE",
|
||||||
read: "GAO:REGISTRATION_EVENT_RECORD:READ",
|
read: "GAO:REGISTRATION_EVENT_RECORD:READ",
|
||||||
|
export: "GAO:REGISTRATION_EVENT_RECORD:EXPORT",
|
||||||
update: "GAO:REGISTRATION_EVENT_RECORD:UPDATE",
|
update: "GAO:REGISTRATION_EVENT_RECORD:UPDATE",
|
||||||
delete: "GAO:REGISTRATION_EVENT_RECORD:DELETE"
|
delete: "GAO:REGISTRATION_EVENT_RECORD:DELETE"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user