mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Improve record list page
This commit is contained in:
@ -44,7 +44,7 @@ class RecordListPage extends BaseListPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderTable(records) {
|
renderTable(records) {
|
||||||
const columns = [
|
let columns = [
|
||||||
{
|
{
|
||||||
title: i18next.t("general:Name"),
|
title: i18next.t("general:Name"),
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
@ -174,6 +174,10 @@ class RecordListPage extends BaseListPage {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (Setting.isLocalAdminUser(this.props.account)) {
|
||||||
|
columns = columns.filter(column => column.key !== "name" && column.key !== "organization");
|
||||||
|
}
|
||||||
|
|
||||||
const paginationProps = {
|
const paginationProps = {
|
||||||
total: this.state.pagination.total,
|
total: this.state.pagination.total,
|
||||||
pageSize: this.state.pagination.pageSize,
|
pageSize: this.state.pagination.pageSize,
|
||||||
|
Reference in New Issue
Block a user