Browse Source

commit

master
yyy9608 8 months ago
parent
commit
7fbd44141b
  1. 3
      README.md
  2. 16
      src/package/SimpleTrade/pages/home/index.tsx

3
README.md

@ -2,6 +2,9 @@
react + antd + typescript 集成轻量级管理后台
## 注意
node version require 16.19.0
修改config中的配置 dev 测试,prod生成
## 功能
- 多页标签

16
src/package/SimpleTrade/pages/home/index.tsx

@ -104,14 +104,14 @@ const Home: FC = () => {
type: 1
})
if (res.code === 0) {
weekTx[0].value = res.data.product_amount
weekTx[1].value = res.data.product_num
weekTx[2].value = res.data.a_profit_num
weekTx[3].value = res.data.b_profit_num
weekTx[4].value = res.data.a_loss_num
weekTx[5].value = res.data.b_loss_num
weekTx[6].value = res.data.profit_amount
weekTx[7].value = res.data.loss_amount
toDayTx[0].value = res.data.product_amount
toDayTx[1].value = res.data.product_num
toDayTx[2].value = res.data.a_profit_num
toDayTx[3].value = res.data.b_profit_num
toDayTx[4].value = res.data.a_loss_num
toDayTx[5].value = res.data.b_loss_num
toDayTx[6].value = res.data.profit_amount
toDayTx[7].value = res.data.loss_amount
setToDayTx([...toDayTx])
}
}

Loading…
Cancel
Save