File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ const StockHistoryList: React.FC = () => {
18
18
19
19
const onQuery = ( params = pageData2Params ( pageData . meta ) ) => {
20
20
const vals = form . getFieldsValue ( )
21
- if ( ! vals . code ) {
22
- return ;
23
- }
21
+ // if(!vals.code) {
22
+ // return;
23
+ // }
24
24
setLoading ( true )
25
25
stockHistoryPageList ( { ...params , ...vals , } ) . then ( res => {
26
26
const data = data2PageData ( res )
@@ -52,6 +52,7 @@ const StockHistoryList: React.FC = () => {
52
52
</ Row >
53
53
</ Form >
54
54
< Table
55
+ size = "small"
55
56
columns = { historyColumns ( ) }
56
57
dataSource = { pageData . data }
57
58
key = "code"
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ export const historyColumns = (): ColumnProps<StockHistory>[] => {
94
94
} ,
95
95
{
96
96
title : '成交额' ,
97
- dataIndex : 'amount'
97
+ dataIndex : 'amount' ,
98
+ width : 200
98
99
} ,
99
100
// {
100
101
// title: '交易量',
@@ -121,7 +122,7 @@ export const historyColumns = (): ColumnProps<StockHistory>[] => {
121
122
dataIndex : 'pcf'
122
123
} ,
123
124
{
124
- title : '总市值' ,
125
+ title : '总市值(元) ' ,
125
126
dataIndex : 'market_capital'
126
127
} ,
127
128
// {
You can’t perform that action at this time.
0 commit comments