Explorar o código

Show user ID in admin topup bills

uskyu hai 2 semanas
pai
achega
600ae85998
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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',