@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
22import { connect } from 'dva' ;
33import { Form } from '@ant-design/compatible' ;
44import '@ant-design/compatible/assets/index.css' ;
5- import { Row , Col , Card , Input , Button , Table , Modal , Badge , Select } from 'antd' ;
5+ import { Row , Col , Card , Input , Button , Table , Modal , Badge } from 'antd' ;
66import PageHeaderLayout from '@/layouts/PageHeaderLayout' ;
77import PButton from '@/components/PermButton' ;
88import { formatDate } from '@/utils/utils' ;
@@ -169,39 +169,24 @@ class DemoList extends PureComponent {
169169 form : { getFieldDecorator } ,
170170 } = this . props ;
171171 return (
172- < Form onSubmit = { this . onSearchFormSubmit } layout = "inline" >
172+ < Form onSubmit = { this . onSearchFormSubmit } >
173173 < Row gutter = { 16 } >
174- < Col md = { 8 } sm = { 24 } >
175- < Form . Item label = "编号" >
176- { getFieldDecorator ( 'code ' ) ( < Input placeholder = "请输入 " /> ) }
174+ < Col span = { 8 } >
175+ < Form . Item >
176+ { getFieldDecorator ( 'queryValue ' ) ( < Input placeholder = "请输入需要查询的内容 " /> ) }
177177 </ Form . Item >
178178 </ Col >
179- < Col md = { 8 } sm = { 24 } >
180- < Form . Item label = "名称" >
181- { getFieldDecorator ( 'name' ) ( < Input placeholder = "请输入" /> ) }
182- </ Form . Item >
183- </ Col >
184- < Col md = { 8 } sm = { 24 } >
185- < Form . Item label = "状态" >
186- { getFieldDecorator ( 'status' ) (
187- < Select placeholder = "请选择" style = { { width : '100%' } } >
188- < Select . Option value = "1" > 正常</ Select . Option >
189- < Select . Option value = "2" > 停用</ Select . Option >
190- </ Select >
191- ) }
192- </ Form . Item >
179+ < Col span = { 8 } >
180+ < div style = { { overflow : 'hidden' , paddingTop : 4 } } >
181+ < Button type = "primary" htmlType = "submit" >
182+ 查询
183+ </ Button >
184+ < Button style = { { marginLeft : 8 } } onClick = { this . onResetFormClick } >
185+ 重置
186+ </ Button >
187+ </ div >
193188 </ Col >
194189 </ Row >
195- < div style = { { overflow : 'hidden' } } >
196- < span style = { { float : 'right' , marginBottom : 24 } } >
197- < Button type = "primary" htmlType = "submit" >
198- 查询
199- </ Button >
200- < Button style = { { marginLeft : 8 } } onClick = { this . onResetFormClick } >
201- 重置
202- </ Button >
203- </ span >
204- </ div >
205190 </ Form >
206191 ) ;
207192 }
@@ -261,22 +246,20 @@ class DemoList extends PureComponent {
261246 < div className = { styles . tableList } >
262247 < div className = { styles . tableListForm } > { this . renderSearchForm ( ) } </ div >
263248 < div className = { styles . tableListOperator } >
264- < PButton code = "add" icon = "plus" type = "primary" onClick = { ( ) => this . onAddClick ( ) } >
249+ < PButton code = "add" type = "primary" onClick = { ( ) => this . onAddClick ( ) } >
265250 新建
266251 </ PButton >
267252 { selectedRows . length === 1 && [
268253 < PButton
269254 key = "edit"
270255 code = "edit"
271- icon = "edit"
272256 onClick = { ( ) => this . onItemEditClick ( selectedRows [ 0 ] ) }
273257 >
274258 编辑
275259 </ PButton > ,
276260 < PButton
277261 key = "del"
278262 code = "del"
279- icon = "delete"
280263 type = "danger"
281264 onClick = { ( ) => this . onItemDelClick ( selectedRows [ 0 ] ) }
282265 >
@@ -286,7 +269,6 @@ class DemoList extends PureComponent {
286269 < PButton
287270 key = "enable"
288271 code = "enable"
289- icon = "check"
290272 onClick = { ( ) => this . onItemEnableClick ( selectedRows [ 0 ] ) }
291273 >
292274 启用
@@ -296,7 +278,6 @@ class DemoList extends PureComponent {
296278 < PButton
297279 key = "disable"
298280 code = "disable"
299- icon = "stop"
300281 type = "danger"
301282 onClick = { ( ) => this . onItemDisableClick ( selectedRows [ 0 ] ) }
302283 >
0 commit comments