feat: add "User type" to user list page

This commit is contained in:
Yang Luo 2025-02-12 21:29:18 +08:00
parent 9c46344e68
commit e926a07c58

View File

@ -318,6 +318,14 @@ class UserListPage extends BaseListPage {
return Setting.initCountries().getName(record.region, Setting.getLanguage(), {select: "official"}); return Setting.initCountries().getName(record.region, Setting.getLanguage(), {select: "official"});
}, },
}, },
{
title: i18next.t("general:User type"),
dataIndex: "type",
key: "type",
width: "120px",
sorter: true,
...this.getColumnSearchProps("type"),
},
{ {
title: i18next.t("user:Tag"), title: i18next.t("user:Tag"),
dataIndex: "tag", dataIndex: "tag",
@ -343,7 +351,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("user:Is admin"), title: i18next.t("user:Is admin"),
dataIndex: "isAdmin", dataIndex: "isAdmin",
key: "isAdmin", key: "isAdmin",
width: "110px", width: "120px",
sorter: true, sorter: true,
render: (text, record, index) => { render: (text, record, index) => {
return ( return (