|
@@ -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
|
|