From 52aa9f64e5dea1c0e30bc1094fa580c3851d8f9d Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Sat, 14 Sep 2024 18:02:38 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh

---
 gz-customerSystem/src/components/NewTableSearch/index.jsx |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/gz-customerSystem/src/components/NewTableSearch/index.jsx b/gz-customerSystem/src/components/NewTableSearch/index.jsx
index c2d55df..5e8a818 100644
--- a/gz-customerSystem/src/components/NewTableSearch/index.jsx
+++ b/gz-customerSystem/src/components/NewTableSearch/index.jsx
@@ -1,7 +1,7 @@
 import React, { useState } from 'react';
 import PropTypes from 'prop-types';
 import { Form, Row, Col, Input, DatePicker, Select, Button, TreeSelect } from 'antd';
-import { DownOutlined } from '@ant-design/icons';
+import { DownOutlined, SearchOutlined } from '@ant-design/icons';
 import * as $$ from '../../utils/utility';
 import './index.less';
 
@@ -16,8 +16,9 @@
  * rowNum, // 一行放多少个搜索item
  * handleRest, // 重置
  * handleSearch, // 搜索
+ * exportButton //导出按钮
  */
-const NewTableSearch = ({ form, itemData, labelLength = 5, rowNum = 3, handleReset, handleSearch }) => {
+const NewTableSearch = ({ form, itemData, labelLength = 5, rowNum = 3, handleReset, handleSearch, exportButton }) => {
   const [searchMore, setSearchMore] = useState(false);
 
   const span = 24 / rowNum;
@@ -127,11 +128,14 @@
       })}
       <Row style={{ marginTop: '16px' }}>
         <Col span={24} style={{ textAlign: 'left' }}>
-          <Button className="public-buttonMargin" onClick={handleReset}>
-            重置
-          </Button>
-          <Button type="primary" htmlType="submit" onClick={handleSearch}>
+          <Button className="public-buttonMargin" type="primary" htmlType="submit" icon={<SearchOutlined />} onClick={handleSearch}>
             查询
+          </Button>
+          <Button className="public-buttonMargin" type="primary" ghost htmlType="submit" onClick={exportButton}>
+            导出查询结果
+          </Button>
+          <Button onClick={handleReset}>
+            重置条件
           </Button>
           {display && (
             <span className="tableSearch-searchMore" onClick={() => setSearchMore(!searchMore)}>
@@ -151,6 +155,7 @@
   rowNum: PropTypes.number,
   handleReset: PropTypes.func,
   handleSearch: PropTypes.func,
+  exportButton: PropTypes.func,
 };
 
 export default NewTableSearch;

--
Gitblit v1.8.0