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
596208ca
Commit
596208ca
authored
Jan 27, 2021
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物业创建业主模块放开英文限制,隐藏物业服务 业主投诉模块
parent
581c456b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
16 deletions
+6
-16
config.ts
config/config.ts
+1
-1
UsersAdd.tsx
src/pages/UserManagement/LIFEUserManagement/UsersAdd.tsx
+5
-15
No files found.
config/config.ts
View file @
596208ca
...
...
@@ -191,7 +191,7 @@ export default defineConfig({
},
{
path
:
'./OwnerComplaints'
,
name
:
'ownercomplaints'
,
//
name: 'ownercomplaints',
component
:
'./CommercialService/PropertyServices'
,
},
{
...
...
src/pages/UserManagement/LIFEUserManagement/UsersAdd.tsx
View file @
596208ca
...
...
@@ -39,6 +39,7 @@ const UsersAdd = (props: any) => {
values
.
owerPhone
=
null
;
values
.
owerEmail
=
null
;
values
.
buildingNumber
=
'BLK '
+
values
.
buildingNumber
;
console
.
log
(
values
);
RA
(
14
,
values
,
module
,
dispatch
);
setLoading
(
true
);
}
else
{
...
...
@@ -67,23 +68,12 @@ const UsersAdd = (props: any) => {
}
},
[
communityInfo
]);
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
checkData
=
(
rule
:
any
,
value
:
string
,
callback
:
(
arg0
?:
string
)
=>
void
)
=>
{
if
(
value
)
{
if
(
/^
[
a-zA-Z0-9
]
+$/g
.
test
(
value
))
{
callback
();
}
else
{
callback
(
new
Error
(
'Only numbers and letters can be entered!'
));
}
}
callback
();
};
const
checkData1
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
if
(
value
)
{
if
(
/^
[
0-9
]
+$/g
.
test
(
value
))
{
callback
();
}
else
{
callback
(
new
Error
(
'Only numbers!'
));
callback
(
'Only numbers and letters can be entered!'
);
}
}
callback
();
...
...
@@ -119,13 +109,13 @@ const UsersAdd = (props: any) => {
<
Form
.
Item
>
<
Input
.
Group
>
<
div
className=
{
styles
.
box2item3
}
>
<
Form
.
Item
name=
"buildingNumber"
rules=
{
[{
validator
:
checkData
1
}]
}
>
<
Form
.
Item
name=
"buildingNumber"
rules=
{
[{
validator
:
checkData
}]
}
>
<
Input
placeholder=
"BLK"
style=
{
{
width
:
94
}
}
/>
</
Form
.
Item
>
</
div
>
<
div
className=
{
styles
.
box2item4
}
>
#
</
div
>
<
div
className=
{
styles
.
box2item5
}
>
<
Form
.
Item
name=
"floorNumber"
rules=
{
[{
validator
:
checkData
1
}]
}
>
<
Form
.
Item
name=
"floorNumber"
rules=
{
[{
validator
:
checkData
}]
}
>
<
Input
placeholder=
"Floor"
style=
{
{
width
:
80
}
}
/>
</
Form
.
Item
>
</
div
>
...
...
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