Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
e332d6f6
Commit
e332d6f6
authored
Oct 26, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
titleSearch 组件变更
parent
f0c57fc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
TitleSearch.tsx
src/components/TitleSearch/TitleSearch.tsx
+13
-6
~$S WEB端 接口文档(word) .docx
项目文档/~$S WEB端 接口文档(word) .docx
+0
-0
No files found.
src/components/TitleSearch/TitleSearch.tsx
View file @
e332d6f6
...
...
@@ -26,7 +26,7 @@ const TitleSearch = (props: any) => {
// const communitySelect = props.communitySelect
// const defaultValue = props.defaultValue;
const
{
single
,
checklist
,
status
,
communitySelect
,
defaultValue
}
=
props
;
const
{
single
,
checklist
,
status
,
communitySelect
,
defaultValue
}
=
props
;
const
time
=
props
.
time
;
...
...
@@ -36,7 +36,7 @@ const TitleSearch = (props: any) => {
const
[
communitySingle
,
setCommunitySingle
]
=
useState
(
null
)
const
[
datePicker
,
setDate
]
=
useState
(
null
)
const
formRef
=
useRef
(
null
)
const
[
form
]
=
Form
.
useForm
(
)
const
tosCommunityget
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'Init/tosCommunityget'
,
playload
:
values
})
};
useEffect
(()
=>
{
...
...
@@ -46,14 +46,14 @@ const TitleSearch = (props: any) => {
tosCommunityget
(
null
)
}
if
(
defaultValue
!=
null
)
{
form
Ref
.
current
.
setFieldsValue
(
defaultValue
)
form
.
setFieldsValue
(
defaultValue
)
}
},
[]);
useEffect
(()
=>
{
if
(
defaultValue
!=
null
)
{
form
Ref
.
current
.
setFieldsValue
(
defaultValue
)
form
.
setFieldsValue
(
defaultValue
)
}
},
[
defaultValue
])
useEffect
(()
=>
{
...
...
@@ -94,14 +94,21 @@ const TitleSearch = (props: any) => {
setCommunitys
(
comment
)
}
// 选择小区名字并赋值
const
opname
=
(
value
:
any
)
=>
{
form
.
setFieldsValue
({
'communityName'
:
value
})
}
return
(
<>
<
Form
ref=
{
formRef
}
name=
"basic"
onFinish=
{
onFinish
}
onFinishFailed=
{
onFinishFailed
}
>
<
Form
form=
{
form
}
name=
"basic"
onFinish=
{
onFinish
}
onFinishFailed=
{
onFinishFailed
}
>
<
Row
gutter=
{
32
}
>
{
communitySelect
!=
null
?
<
Col
key=
{
"communitySelect_"
}
><
Form
.
Item
name=
{
"communityName"
}
><
SearchOptionsCommnity
titleSearch=
{
true
}
/></
Form
.
Item
></
Col
>
<
Col
key=
{
"communitySelect_"
}
><
Form
.
Item
name=
{
"communityName"
}
><
SearchOptionsCommnity
titleSearch=
{
true
}
opname=
{
opname
}
/></
Form
.
Item
></
Col
>
:
null
}
{
...
...
项目文档/~$S WEB端 接口文档(word) .docx
0 → 100644
View file @
e332d6f6
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment