周立森 5 anos atrás
pai
commit
62b3c02b35
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8
    0
      src/pages/customer/customerlist/index.jsx

+ 8
- 0
src/pages/customer/customerlist/index.jsx Ver arquivo

@@ -110,6 +110,11 @@ function body(props) {
110 110
     getList({ pageNumber: 1, pageSize: 10, customerType: value })
111 111
   }
112 112
 
113
+  function handleReset() {
114
+    props.form.resetFields();
115
+  }
116
+
117
+
113 118
   // 这里有个 Bug, 就是 Modal 弹框,会联动出现, 比如 我点击 调整归属的Model弹框, 那么 积分记录的Model弹框莫名其妙的也显示了
114 119
   // 所有这里临时解决方法是,弹出一个Modal对话框的时候,把其他的对话框给隐藏
115 120
 
@@ -257,6 +262,9 @@ function body(props) {
257 262
             <Button type="primary" htmlType="submit" >
258 263
               查询
259 264
             </Button>
265
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
266
+              重置
267
+            </Button>
260 268
         </Form.Item>
261 269
       </Form>
262 270