Browse Source

commit

main
mac 2 months ago
parent
commit
6828dab6d5
  1. 4
      .env
  2. 3
      env-temp
  3. 3
      src/api/index.ts
  4. 5
      src/pages/account-review/index.tsx
  5. 5
      src/pages/assets-manage/assets-list.tsx
  6. 6
      src/pages/assets-manage/escrow-list.tsx
  7. 6
      src/pages/assets-manage/profit-list.tsx
  8. 6
      src/pages/manage/deposit.tsx
  9. 6
      src/pages/manage/withdraw.tsx
  10. 6
      src/pages/system-log/emailLog.tsx
  11. 6
      src/pages/system-log/operationLog.tsx
  12. 6
      src/pages/system-log/walletLog.tsx
  13. 8
      src/pages/vip-manage/proxy-list.tsx

4
.env

@ -1,3 +1,3 @@
SKIP_PREFLIGHT_CHECK=true
REACT_APP_BASE_URL=http://203.161.61.234:8082
REACT_APP_ORIGIN_URL=http://162.254.37.253:8086
REACT_APP_BASE_URL=https://matontrading.com
REACT_APP_ORIGIN_URL=https://matontrading.com

3
env-temp

@ -1,8 +1,9 @@
# Prod
SKIP_PREFLIGHT_CHECK=true
REACT_APP_BASE_URL=https://matontrading.com
REACT_APP_ORIGIN_URL=https://matontrading.com
# Prod
# dev
SKIP_PREFLIGHT_CHECK=true
REACT_APP_BASE_URL=http://203.161.61.234:8082
REACT_APP_ORIGIN_URL=http://162.254.37.253:8086

3
src/api/index.ts

@ -62,6 +62,9 @@ export default {
set_userWalletBalance(body: object) {
return $axios.post('/admin/userBalance', body)
},
set_userPrincipalBalance(body: object) {
return $axios.post('/admin/userFund', body)
},
set_loginPwd(body: object) {
return $axios.post('/admin/userPassword', body)
},

5
src/pages/account-review/index.tsx

@ -61,6 +61,11 @@ const AccountReview = () => {
ref={tableRef}
apiFun={api.get_accountReviewList}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入账号搜索" />
}]}
/>
<Modal
visible={visible}

5
src/pages/assets-manage/assets-list.tsx

@ -98,6 +98,11 @@ const AssetsList = () => {
apiFun={api.get_assetsList}
columns={columns}
ref={tableRef}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入MT账号、邮箱搜索" />
}]}
/>
<Modal
visible={visible}

6
src/pages/assets-manage/escrow-list.tsx

@ -1,6 +1,7 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { getTime } from "@/utils"
import { Input } from "antd"
import React from "react"
const EscrowList = () => {
@ -43,6 +44,11 @@ const EscrowList = () => {
<MyTable
apiFun={api.get_escrowList}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入账号搜索" />
}]}
/>
</div>
)

6
src/pages/assets-manage/profit-list.tsx

@ -1,5 +1,6 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { Input } from "antd"
import React from "react"
const ProfitList = () => {
@ -37,6 +38,11 @@ const ProfitList = () => {
<MyTable
apiFun={api.profit_list}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入来源搜索" />
}]}
/>
</div>
)

6
src/pages/manage/deposit.tsx

@ -1,6 +1,7 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { getTime } from "@/utils"
import { Input } from "antd"
import React from "react"
const DepositManage = () => {
@ -32,6 +33,11 @@ const DepositManage = () => {
<MyTable
apiFun={api.get_depositManageList}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入MT账号、邮箱搜索" />
}]}
/>
</div>
)

6
src/pages/manage/withdraw.tsx

@ -1,6 +1,7 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { getTime } from "@/utils"
import { Input } from "antd"
import React from "react"
const WithdrawManage = () => {
@ -29,6 +30,11 @@ const WithdrawManage = () => {
<MyTable
apiFun={api.get_withdrawManageList}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入MT账号、邮箱搜索" />
}]}
/>
</div>
)

6
src/pages/system-log/emailLog.tsx

@ -1,5 +1,6 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { Input } from "antd";
import React from "react"
const EmailLog = () => {
@ -48,6 +49,11 @@ const EmailLog = () => {
<MyTable
apiFun={api.get_emailRecord}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入邮箱搜索" />
}]}
/>
</div>
)

6
src/pages/system-log/operationLog.tsx

@ -1,5 +1,6 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { Input } from "antd";
import React from "react"
const OperationLog = () => {
@ -33,6 +34,11 @@ const OperationLog = () => {
<MyTable
apiFun={api.get_operationRecord}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入操作人搜索" />
}]}
/>
</div>
)

6
src/pages/system-log/walletLog.tsx

@ -1,5 +1,6 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import { Input } from "antd"
import React, { useRef } from "react"
const WalletLog = () => {
@ -49,6 +50,11 @@ const WalletLog = () => {
ref={tableRef}
apiFun={api.get_walletRecord}
columns={columns}
searchConfigList={[{
key: 'search',
name: 'search',
slot: <Input style={{ minWidth: 350 }} placeholder="请输入MT账号搜索" />
}]}
/>
</div>
)

8
src/pages/vip-manage/proxy-list.tsx

@ -74,6 +74,13 @@ const ProxyList = () => {
{ label: "邮箱通知", name: "email_flag", initialValue: true, valuePropName: "checked", component: <Switch /> }
]
},
assets: {
onFinish: (values) => onFinish(values, api.set_userPrincipalBalance, '修改成功'),
items: [
{ label: "当前本金", component: <Input value={currentAccount.current.principal || 0} disabled /> },
{ label: "加减金额", name: "balance", rules: [{ required: true, message: '请输入加减金额' }] },
]
},
lv: {
onFinish: (values) => onFinish(values, api.set_lv, '设置成功'),
items: [
@ -235,6 +242,7 @@ const ProxyList = () => {
>
<Radio.Group value={path} onChange={e => setPath(e.target.value)}>
<Radio.Button value="wallet"></Radio.Button>
<Radio.Button value="assets"></Radio.Button>
<Radio.Button value="lv"></Radio.Button>
<Radio.Button value="pwd"></Radio.Button>
<Radio.Button value="txPwd"></Radio.Button>

Loading…
Cancel
Save