mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:46:46 +00:00
* 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:
parent
827c324be3
commit
12f658391a
@ -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',
|
||||||
|
@ -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)),
|
||||||
|
@ -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,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user