fix: role export button display (#616) (#666)

* fix: role export button display (#616)

* fix: auditLogs view permissions (#617)

* fix: role export button display (#616)

* fix: auditLogs view permissions (#617)
This commit is contained in:
Ayden 2022-07-26 21:07:34 +08:00 committed by GitHub
parent 827c324be3
commit 12f658391a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -176,7 +176,6 @@ export const AuditLogs: any = () => {
'x-component-props': { 'x-component-props': {
openMode: 'drawer', openMode: 'drawer',
}, },
'x-decorator': 'ACLActionProvider',
properties: { properties: {
drawer: { drawer: {
type: 'void', type: 'void',

View File

@ -35,7 +35,7 @@ export const useExportAction = () => {
es.dataIndex.push('name'); es.dataIndex.push('name');
} }
}); });
const { data } = await resource.exportXlsx( const { data } = await resource.export(
{ {
title: compile(title), title: compile(title),
columns: JSON.stringify(compile(exportSettings)), columns: JSON.stringify(compile(exportSettings)),

View File

@ -9,8 +9,8 @@ export class ExportPlugin extends Plugin {
beforeLoad() {} beforeLoad() {}
async load() { async load() {
this.app.resourcer.registerActionHandler('exportXlsx', exportXlsx); this.app.resourcer.registerActionHandler('export', exportXlsx);
this.app.acl.setAvailableAction('exportXlsx', { this.app.acl.setAvailableAction('export', {
displayName: '{{t("Export")}}', displayName: '{{t("Export")}}',
allowConfigureFields: true, allowConfigureFields: true,
}); });