李志伟 3 年 前
コミット
b244429d58
共有1 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 8
    0
      src/components/OrgSearch/index.jsx

+ 8
- 0
src/components/OrgSearch/index.jsx ファイルの表示

@@ -20,6 +20,10 @@ export default (props) => {
20 20
   const handleSearch = (text) => {
21 21
     if (text) {
22 22
       searchData(text)
23
+    }else{
24
+      getList({ pageSize: 999 }, showType).then(res => {
25
+        setList(res.records || [])
26
+      })
23 27
     }
24 28
   }
25 29
 
@@ -28,6 +32,10 @@ export default (props) => {
28 32
       getDetail(value).then((res) => {
29 33
         setList([res])
30 34
       })
35
+    }else{
36
+      getList({ pageSize: 999 }, showType).then(res => {
37
+        setList(res.records || [])
38
+      })
31 39
     }
32 40
   }, [value])
33 41