Selaa lähdekoodia

Add user number display and deletion status tag in UserListPage

- Enhanced the user number column rendering to display user numbers or a placeholder if not available.
- Added a visual tag to indicate if a user account has been deleted, improving user management visibility.
0es 21 tuntia sitten
vanhempi
sitoutus
656770ae76
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      src/app/(dashboard)/user/list/page.tsx

+ 6 - 0
src/app/(dashboard)/user/list/page.tsx

@@ -368,6 +368,12 @@ const UserListPage: React.FC = () => {
       key: "userNo",
       width: 150,
       fixed: "left",
+      render: (_: string, record: UserInfoAdminDTO) => (
+        <Space size={6} wrap>
+          <span>{record.userNo || "-"}</span>
+          {record.deleted ? <Tag color="volcano">已注销</Tag> : null}
+        </Space>
+      ),
     },
     {
       title: "昵称",