|
@ -104,14 +104,14 @@ const Home: FC = () => { |
|
|
type: 1 |
|
|
type: 1 |
|
|
}) |
|
|
}) |
|
|
if (res.code === 0) { |
|
|
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]) |
|
|
setToDayTx([...toDayTx]) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|