Skip to content

Commit a525c2c

Browse files
committed
fix
1 parent 9dc54ff commit a525c2c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/pages/stocks/history.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const StockHistoryList: React.FC = () => {
1818

1919
const onQuery = (params = pageData2Params(pageData.meta)) => {
2020
const vals = form.getFieldsValue()
21-
if(!vals.code) {
22-
return;
23-
}
21+
// if(!vals.code) {
22+
// return;
23+
// }
2424
setLoading(true)
2525
stockHistoryPageList({...params, ...vals, }).then(res => {
2626
const data = data2PageData(res)
@@ -52,6 +52,7 @@ const StockHistoryList: React.FC = () => {
5252
</Row>
5353
</Form>
5454
<Table
55+
size="small"
5556
columns={historyColumns()}
5657
dataSource={pageData.data}
5758
key="code"

src/pages/stocks/util.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export const historyColumns = (): ColumnProps<StockHistory>[] => {
9494
},
9595
{
9696
title: '成交额',
97-
dataIndex: 'amount'
97+
dataIndex: 'amount',
98+
width: 200
9899
},
99100
// {
100101
// title: '交易量',
@@ -121,7 +122,7 @@ export const historyColumns = (): ColumnProps<StockHistory>[] => {
121122
dataIndex: 'pcf'
122123
},
123124
{
124-
title: '总市值',
125+
title: '总市值(元)',
125126
dataIndex: 'market_capital'
126127
},
127128
// {

0 commit comments

Comments
 (0)