Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
a22038d8
Commit
a22038d8
authored
3 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '解决宿主管理物联配置,消息配置bug'
parent
de6008e8
Pipeline
#43258
passed with stages
in 6 minutes 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
36 deletions
+67
-36
IotConfig.jsx
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
+33
-17
messageConfig.jsx
...latformCenter/hostmanager/messageConfig/messageConfig.jsx
+34
-19
No files found.
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
View file @
a22038d8
...
...
@@ -95,6 +95,7 @@ const IotConfig = () => {
const
PingIot1
=
()
=>
{
setLoading
(
true
);
let
aa
=
form
.
getFieldsValue
().
IotAddress
;
console
.
log
(
aa
);
PingIOTPlatform
({
ip
:
aa
,
}).
then
(
res
=>
{
...
...
@@ -148,25 +149,40 @@ const IotConfig = () => {
</
div
>
<
Divider
/>
<
Form
.
Item
style=
{
{
marginLeft
:
'20px'
}
}
label=
"服务地址(平台)"
name=
"IotAddress"
rules=
{
[
{
required
:
true
,
pattern
:
new
RegExp
(
/^
(([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])\.)
{3}
([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])
$/
,
'g'
,
),
message
:
'请输入正确的IP例如:192.168.12.231'
,
},
]
}
style=
{
{
marginLeft
:
'20px'
,
marginBottom
:
'0px'
}
}
//
label="服务地址(平台)"
//
name="IotAddress"
//
rules={[
//
{
//
required: true,
//
pattern: new RegExp(
//
/^(([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])$/,
//
'g',
//
),
//
message: '请输入正确的IP例如:192.168.12.231',
//
},
//
]}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-start'
}
}
>
<
Input
style=
{
{
width
:
'300px'
,
marginLeft
:
'15px'
}
}
placeholder=
"请输入服务地址"
/>
<
Form
.
Item
label=
"服务地址(平台)"
name=
"IotAddress"
rules=
{
[
{
required
:
true
,
pattern
:
new
RegExp
(
/^
(([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])\.)
{3}
([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])
$/
,
'g'
,
),
message
:
'请输入正确的IP例如:192.168.12.231'
,
},
]
}
>
<
Input
style=
{
{
width
:
'300px'
,
marginLeft
:
'15px'
}
}
placeholder=
"请输入服务地址"
/>
</
Form
.
Item
>
<
span
style=
{
{
display
:
show1
}
}
>
<
img
src=
{
Yes
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/hostmanager/messageConfig/messageConfig.jsx
View file @
a22038d8
...
...
@@ -137,35 +137,50 @@ const MessageConfig = () => {
</
div
>
<
Divider
/>
<
Form
.
Item
style=
{
{
marginLeft
:
'20px'
}
}
label=
"服务地址(平台)"
name=
"messageAddress"
rules=
{
[
{
required
:
true
,
pattern
:
new
RegExp
(
/^
(([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])\.)
{3}
([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])(
:
\d
*
)
$/
,
'g'
,
),
message
:
'请输入正确的IP例如:192.168.12.231:8231'
,
},
]
}
style=
{
{
marginLeft
:
'20px'
,
marginBottom
:
'0px'
}
}
//
label="服务地址(平台)"
//
name="messageAddress"
//
rules={[
//
{
//
required: true,
//
pattern: new RegExp(
//
/^(([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])(:\d*)$/,
//
'g',
//
),
//
message: '请输入正确的IP例如:192.168.12.231:8231',
//
},
//
]}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-start'
}
}
>
<
Input
style=
{
{
width
:
'300px'
,
marginLeft
:
'15px'
}
}
placeholder=
"请输入服务地址"
/>
<
Form
.
Item
label=
"服务地址(平台)"
name=
"messageAddress"
rules=
{
[
{
required
:
true
,
pattern
:
new
RegExp
(
/^
(([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])\.)
{3}
([
1-9
]?\d
|1
\d
{2}|2
[
0-4
]\d
|25
[
0-5
])(
:
\d
*
)
$/
,
'g'
,
),
message
:
'请输入正确的IP例如:192.168.12.231:8231'
,
},
]
}
>
<
Input
style=
{
{
width
:
'300px'
,
marginLeft
:
'15px'
}
}
placeholder=
"请输入服务地址"
/>
</
Form
.
Item
>
<
span
style=
{
{
display
:
show1
}
}
>
<
img
src=
{
Yes
}
style=
{
{
height
:
'24px'
,
marginLeft
:
'26px'
,
marginTop
:
'
10
px'
}
}
style=
{
{
height
:
'24px'
,
marginLeft
:
'26px'
,
marginTop
:
'
5
px'
}
}
alt=
""
/>
</
span
>
<
span
style=
{
{
display
:
show2
}
}
>
<
CloseCircleFilled
style=
{
{
fontSize
:
'24px'
,
marginLeft
:
'26px'
,
marginTop
:
'
10
px'
}
}
style=
{
{
fontSize
:
'24px'
,
marginLeft
:
'26px'
,
marginTop
:
'
5
px'
}
}
/>
</
span
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
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