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
Jan 21, 2022
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
IotConfig.jsx
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
+18
-2
messageConfig.jsx
...latformCenter/hostmanager/messageConfig/messageConfig.jsx
+19
-4
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,7 +149,22 @@ const IotConfig = () => {
</
div
>
<
Divider
/>
<
Form
.
Item
style=
{
{
marginLeft
:
'20px'
}
}
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'
}
}
>
<
Form
.
Item
label=
"服务地址(平台)"
name=
"IotAddress"
rules=
{
[
...
...
@@ -162,11 +178,11 @@ const IotConfig = () => {
},
]
}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-start'
}
}
>
<
Input
style=
{
{
width
:
'300px'
,
marginLeft
:
'15px'
}
}
placeholder=
"请输入服务地址"
/>
</
Form
.
Item
>
<
span
style=
{
{
display
:
show1
}
}
>
<
img
src=
{
Yes
}
...
...
src/pages/platformCenter/hostmanager/messageConfig/messageConfig.jsx
View file @
a22038d8
...
...
@@ -137,7 +137,22 @@ const MessageConfig = () => {
</
div
>
<
Divider
/>
<
Form
.
Item
style=
{
{
marginLeft
:
'20px'
}
}
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'
}
}
>
<
Form
.
Item
label=
"服务地址(平台)"
name=
"messageAddress"
rules=
{
[
...
...
@@ -151,21 +166,21 @@ const MessageConfig = () => {
},
]
}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-start'
}
}
>
<
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
>
...
...
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