Commit a6e70603 authored by 皮倩雯's avatar 皮倩雯

fix: '物联网统一接入平台功能优化'

parent 77762b4b
Pipeline #66849 passed with stages
......@@ -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: '10px',
marginTop: '5px',
marginLeft: '26px',
}}
alt=""
......@@ -441,29 +444,18 @@ const IotConfig = () => {
<CloseCircleFilled
style={{
fontSize: '24px',
marginTop: '10px',
marginTop: '5px',
marginLeft: '26px',
}}
/>
</span>
</div>
</Form.Item>
<Button type="primary" onClick={() => PingIot1()} style={{ marginLeft: '152px' }}>
连接
</Button>
<div style={{ marginTop: '20px' }}>
{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
......@@ -505,6 +497,7 @@ const IotConfig = () => {
) : (
<></>
)}
</div>
<div
style={{
......
......@@ -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 =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment