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
7e78c5df
Commit
7e78c5df
authored
Oct 20, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '物联网统一接入平台配置'
parent
d7a14c11
Pipeline
#62120
passed with stages
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
IotConfig.jsx
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
+0
-0
BaseConfig.jsx
...ages/platformCenter/hostmanager/baseConfig/BaseConfig.jsx
+2
-8
index.jsx
src/pages/platformCenter/hostmanager/index.jsx
+1
-1
hostmanager.js
src/services/hostmanager/hostmanager.js
+16
-0
No files found.
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
View file @
7e78c5df
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/hostmanager/baseConfig/BaseConfig.jsx
View file @
7e78c5df
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Button
,
Descriptions
,
Input
,
Card
,
Divider
,
Row
,
Col
}
from
'antd'
;
import
styles
from
'./BaseConfig.less'
;
import
{
S_GetDataBaseConfig
,
GetTCPConfigInfo
,
GetDataBaseConfig
,
GetBasicInfo
,
}
from
'@/services/hostmanager/hostmanager'
;
import
{
VerticalAlignBottomOutlined
}
from
'@ant-design/icons'
;
import
{
GetDataBaseConfig
,
GetBasicInfo
}
from
'@/services/hostmanager/hostmanager'
;
import
servie
from
'../../../../assets/images/icons/服务器管理.svg'
;
import
configuration
from
'../../../../assets/images/icons/站点配置.svg'
;
...
...
@@ -61,7 +55,7 @@ const BaseConfig = () => {
>
站点编号:
</
span
>
<
Input
value=
{
currentSiteInfo
}
disabled
=
{
true
}
style=
{
{
width
:
'300px'
}
}
/>
<
Input
value=
{
currentSiteInfo
}
disabled
style=
{
{
width
:
'300px'
}
}
/>
<
br
/>
<
div
style=
{
{
marginTop
:
'50px'
,
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
img
src=
{
servie
}
style=
{
{
height
:
'16px'
}
}
alt=
""
/>
...
...
src/pages/platformCenter/hostmanager/index.jsx
View file @
7e78c5df
...
...
@@ -14,7 +14,7 @@ const HostManager = () => {
return
(
<
PageContainer
>
<
Tabs
onChange=
{
callback
}
type=
"card"
>
<
Tabs
onChange=
{
callback
}
type=
"card"
destroyInactiveTabPane
>
<
TabPane
tab=
"基础配置"
key=
"1"
>
<
BaseConfig
/>
</
TabPane
>
...
...
src/services/hostmanager/hostmanager.js
View file @
7e78c5df
...
...
@@ -19,6 +19,22 @@ export const GetTCPConfigInfo = param =>
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
(
`/PandaCore/GateWay/api/HealthCheck`
,
param
);
// 判断数据库服务是否已添加
export
const
CheckIsServiceAdd
=
param
=>
post
(
`/PandaCore/GateWay/api/DB/CheckIsServiceAdd`
,
param
);
// 查询当前数据库服务状态信息
export
const
GetServiceInfo
=
param
=>
post
(
`/PandaCore/GateWay/api/DB/GetServiceInfo`
,
param
);
// 添加数据库
export
const
AddDB
=
param
=>
post
(
`/PandaCore/GateWay/api/DB/AddDB`
,
param
);
// 停止数据库服务
export
const
DepositServiceDisable
=
param
=>
post
(
`/PandaCore/GateWay/api/DB/DepositServiceDisable`
,
param
);
// 启用数据库服务
export
const
DepositServiceEnable
=
param
=>
post
(
`/PandaCore/GateWay/api/DB/DepositServiceEnable`
,
param
);
// 消息平台接口
export
const
GetMessageConfigInfo
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/HostManager/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