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
a6e70603
Commit
a6e70603
authored
Feb 02, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '物联网统一接入平台功能优化'
parent
77762b4b
Pipeline
#66849
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
59 deletions
+52
-59
IotConfig.jsx
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
+46
-53
hostmanager.js
src/services/hostmanager/hostmanager.js
+6
-6
No files found.
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
View file @
a6e70603
...
...
@@ -402,7 +402,7 @@ const IotConfig = () => {
}
}
>
<
img
src=
{
Internet
}
style=
{
{
height
:
'16px'
}
}
alt=
""
/>
<
span
style=
{
{
marginLeft
:
'10px'
,
fontWeight
:
'bold'
}
}
>
物联平台
</
span
>
<
span
style=
{
{
marginLeft
:
'10px'
,
fontWeight
:
'bold'
}
}
>
物联
网统一接入
平台
</
span
>
</
div
>
<
Divider
/>
<
Form
.
Item
style=
{
{
marginLeft
:
'20px'
,
marginBottom
:
'0px'
}
}
>
...
...
@@ -426,12 +426,15 @@ const IotConfig = () => {
placeholder=
"请输入服务地址"
/>
</
Form
.
Item
>
<
Button
type=
"primary"
onClick=
{
()
=>
PingIot1
()
}
style=
{
{
marginLeft
:
'25px'
}
}
>
测试连接
</
Button
>
<
span
style=
{
{
display
:
show1
}
}
>
<
img
src=
{
Yes
}
style=
{
{
height
:
'24px'
,
marginTop
:
'
10
px'
,
marginTop
:
'
5
px'
,
marginLeft
:
'26px'
,
}
}
alt=
""
...
...
@@ -441,57 +444,46 @@ const IotConfig = () => {
<
CloseCircleFilled
style=
{
{
fontSize
:
'24px'
,
marginTop
:
'
10
px'
,
marginTop
:
'
5
px'
,
marginLeft
:
'26px'
,
}
}
/>
</
span
>
</
div
>
</
Form
.
Item
>
<
Button
type=
"primary"
onClick=
{
()
=>
PingIot1
()
}
style=
{
{
marginLeft
:
'152px'
}
}
>
连接
</
Button
>
{
flag
===
1
?
(
<>
<
div
style=
{
{
marginTop
:
'40px'
,
display
:
'flex'
,
alignItems
:
'center'
,
}
}
>
<
img
src=
{
Things
}
style=
{
{
height
:
'20px'
}
}
alt=
""
/>
<
span
style=
{
{
marginLeft
:
'10px'
,
fontWeight
:
'bold'
}
}
>
物联网统一接入平台
</
span
>
</
div
>
<
Divider
/>
<
Form
.
Item
label=
"当前数据库"
style=
{
{
marginLeft
:
'50px'
}
}
>
<
span
style=
{
{
marginLeft
:
'14px'
}
}
>
{
`${currentDataBase.ip}/${
currentDataBase.dbName
}`
}
</
span
>
{
show3
===
'none'
?
<></>
:
<
span
>
(
{
dbStatus
}
)
</
span
>
}
</
Form
.
Item
>
<
Form
.
Item
label=
"加载进度"
style=
{
{
marginLeft
:
'65px'
}
}
>
<
div
style=
{
{
width
:
200
,
marginBottom
:
'30px'
}
}
>
<
Progress
style=
{
{
marginTop
:
'4px'
,
marginLeft
:
'14px'
}
}
strokeColor=
{
{
from
:
'#108ee9'
,
to
:
'#87d068'
,
}
}
percent=
{
processLength
}
status=
{
processLength
==
'100'
?
'success'
:
'active'
}
/>
</
div
>
<
div
>
<
Button
type=
"primary"
onClick=
{
()
=>
PingIot2
()
}
style=
{
{
marginLeft
:
'15px'
}
}
disabled=
{
buStatus
===
'启动中'
}
>
{
buStatus
}
</
Button
>
{
/* <Switch
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
{
flag
===
1
?
(
<>
<
Form
.
Item
label=
"当前数据库"
style=
{
{
marginLeft
:
'50px'
}
}
>
<
span
style=
{
{
marginLeft
:
'14px'
}
}
>
{
`${currentDataBase.ip}/${
currentDataBase.dbName
}`
}
</
span
>
{
show3
===
'none'
?
<></>
:
<
span
>
(
{
dbStatus
}
)
</
span
>
}
</
Form
.
Item
>
<
Form
.
Item
label=
"加载进度"
style=
{
{
marginLeft
:
'65px'
}
}
>
<
div
style=
{
{
width
:
200
,
marginBottom
:
'30px'
}
}
>
<
Progress
style=
{
{
marginTop
:
'4px'
,
marginLeft
:
'14px'
}
}
strokeColor=
{
{
from
:
'#108ee9'
,
to
:
'#87d068'
,
}
}
percent=
{
processLength
}
status=
{
processLength
==
'100'
?
'success'
:
'active'
}
/>
</
div
>
<
div
>
<
Button
type=
"primary"
onClick=
{
()
=>
PingIot2
()
}
style=
{
{
marginLeft
:
'15px'
}
}
disabled=
{
buStatus
===
'启动中'
}
>
{
buStatus
}
</
Button
>
{
/* <Switch
checkedChildren="开启"
unCheckedChildren="关闭"
checked={currentConfig}
...
...
@@ -499,12 +491,13 @@ const IotConfig = () => {
style={{ marginLeft: '15px' }}
disabled={switchStatus}
/> */
}
</
div
>
</
Form
.
Item
>
</>
)
:
(
<></>
)
}
</
div
>
</
Form
.
Item
>
</>
)
:
(
<></>
)
}
</
div
>
<
div
style=
{
{
...
...
src/services/hostmanager/hostmanager.js
View file @
a6e70603
...
...
@@ -24,17 +24,17 @@ export const PingIOTPlatform = param =>
get
(
`
${
PUBLISH_SERVICE
}
/HostManager/PingIOTPlatform`
,
param
);
export
const
SaveTcpAddress
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/HostManager/SaveTcpAddress`
,
param
);
// 健康检查接口
export
const
HealthCheck
=
param
=>
get
(
`/api/HealthCheck`
,
param
);
export
const
HealthCheck
=
param
=>
get
(
`/
lot/
api/HealthCheck`
,
param
);
// 判断数据库服务是否已添加
export
const
CheckIsServiceAdd
=
param
=>
post
(
`/api/DB/CheckIsServiceAdd`
,
param
);
export
const
CheckIsServiceAdd
=
param
=>
post
(
`/
lot/
api/DB/CheckIsServiceAdd`
,
param
);
// 查询当前数据库服务状态信息
export
const
GetServiceInfo
=
param
=>
post
(
`/api/DB/GetServiceInfo`
,
param
);
export
const
GetServiceInfo
=
param
=>
post
(
`/
lot/
api/DB/GetServiceInfo`
,
param
);
// 添加数据库
export
const
AddDB
=
param
=>
post
(
`/api/DB/AddDBV2`
,
param
);
export
const
AddDB
=
param
=>
post
(
`/
lot/
api/DB/AddDBV2`
,
param
);
// 停止数据库服务
export
const
DepositServiceDisable
=
param
=>
post
(
`/api/DB/DepositServiceDisable`
,
param
);
export
const
DepositServiceDisable
=
param
=>
post
(
`/
lot/
api/DB/DepositServiceDisable`
,
param
);
// 启用数据库服务
export
const
DepositServiceEnable
=
param
=>
post
(
`/api/DB/DepositServiceEnable`
,
param
);
export
const
DepositServiceEnable
=
param
=>
post
(
`/
lot/
api/DB/DepositServiceEnable`
,
param
);
// 消息平台接口
export
const
GetMessageConfigInfo
=
param
=>
...
...
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