xujing 5 years ago
parent
commit
46566f4cd0
1 changed files with 20 additions and 17 deletions
  1. 20
    17
      src/pages/activity/drainage/Detail.jsx

+ 20
- 17
src/pages/activity/drainage/Detail.jsx View File

@@ -155,25 +155,28 @@ const header = (props) => {
155 155
   const { getFieldDecorator } = props.form
156 156
   return (
157 157
     <>
158
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
159
-        <Form.Item label="提交时间">
160
-          {getFieldDecorator('time')(
161
-            <RangePicker showTime format="YYYY-MM-DD HH:mm:ss"
162
-              showTime
163
-              onChange={onChangetime}
164
-            />,
165
-          )}
166
-        </Form.Item>
167
-        <Form.Item>
168
-          <Button type="primary" htmlType="submit" >
169
-            搜索
158
+      <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
159
+        <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
160
+
161
+          <Form.Item label="提交时间">
162
+            {getFieldDecorator('time')(
163
+              <RangePicker showTime format="YYYY-MM-DD HH:mm:ss"
164
+                showTime
165
+                onChange={onChangetime}
166
+              />,
167
+            )}
168
+          </Form.Item>
169
+          <Form.Item>
170
+            <Button type="primary" htmlType="submit" >
171
+              搜索
170 172
           </Button>
171
-          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
172
-            重置
173
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
174
+              重置
173 175
             </Button>
174
-          <Button onClick={() => router.go(-1)} style={{ float: 'right' }}>返回</Button>
175
-        </Form.Item>
176
-      </Form>
176
+          </Form.Item>
177
+        </Form>
178
+        <Button onClick={() => router.go(-1)} style={{ float: 'right' }}>返回</Button>
179
+      </div>
177 180
       <div>
178 181
         <div style={{ display: 'flex', justifyContent: 'space-between' }}>
179 182
           <div style={{ lineHeight: '92px', width: '600px', fontWeight: 'bold', fontSize: '18px' }}>