瀏覽代碼

Show user ID in admin topup bills

uskyu 3 周之前
父節點
當前提交
600ae85998
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      web/src/components/topup/modals/TopupHistoryModal.jsx

+ 10 - 0
web/src/components/topup/modals/TopupHistoryModal.jsx

@@ -161,6 +161,16 @@ const TopupHistoryModal = ({ visible, onCancel, t }) => {
 
   const columns = useMemo(() => {
     const baseColumns = [
+      ...(userIsAdmin
+        ? [
+            {
+              title: t('用户ID'),
+              dataIndex: 'user_id',
+              key: 'user_id',
+              render: (userId) => <Text>{userId ?? '-'}</Text>,
+            },
+          ]
+        : []),
       {
         title: t('订单号'),
         dataIndex: 'trade_no',