浏览代码

修复bug

周立森 5 年前
父节点
当前提交
62b3c02b35
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      src/pages/customer/customerlist/index.jsx

+ 8
- 0
src/pages/customer/customerlist/index.jsx 查看文件

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