Commit 7e78c5df authored by 皮倩雯's avatar 皮倩雯

fix: '物联网统一接入平台配置'

parent d7a14c11
Pipeline #62120 passed with stages
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="" />
......
......@@ -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>
......
......@@ -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);
......
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