From c1d70adb486cd0835f61fd8b96e525b5b76ccece Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 15 二月 2024 20:33:55 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/components/TableSearch/index.jsx |    4 ++--
 zy-asrs-flow/src/pages/system/role/index.jsx      |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/zy-asrs-flow/src/components/TableSearch/index.jsx b/zy-asrs-flow/src/components/TableSearch/index.jsx
index 8117076..2054aeb 100644
--- a/zy-asrs-flow/src/components/TableSearch/index.jsx
+++ b/zy-asrs-flow/src/components/TableSearch/index.jsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import { Input, Button, Space } from 'antd';
 
-const Filter = (props) => {
+const TextFilter = (props) => {
     return (
         <div style={{ padding: 8 }}>
             <Input
@@ -39,4 +39,4 @@
     );
 }
 
-export default Filter;
\ No newline at end of file
+export { TextFilter };
\ No newline at end of file
diff --git a/zy-asrs-flow/src/pages/system/role/index.jsx b/zy-asrs-flow/src/pages/system/role/index.jsx
index 86c5aa0..c45062e 100644
--- a/zy-asrs-flow/src/pages/system/role/index.jsx
+++ b/zy-asrs-flow/src/pages/system/role/index.jsx
@@ -11,7 +11,7 @@
 import { PlusOutlined, ExportOutlined } from '@ant-design/icons';
 import Http from '@/utils/http';
 import Edit from './components/edit'
-import Filter from '@/components/TableSearch'
+import { TextFilter } from '@/components/TableSearch'
 
 const handleSave = async (val) => {
     const hide = message.loading('姝e湪娣诲姞');
@@ -112,13 +112,13 @@
             dataIndex: 'name',
             valueType: 'text',
             copyable: true,
-            filterDropdown: (props) => <Filter name='name' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />,
+            filterDropdown: (props) => <TextFilter name='name' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />,
         },
         {
             title: '鏍囪瘑',
             dataIndex: 'code',
             valueType: 'text',
-            filterDropdown: (props) => <Filter name='code' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />,
+            filterDropdown: (props) => <TextFilter name='code' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />,
         },
         {
             title: '鍏徃',

--
Gitblit v1.9.1