Commit 46b10fe8 authored by 彭俊龙's avatar 彭俊龙

feat:宿主管理增加平台配置

parent a9714334
Pipeline #97302 failed with stages
......@@ -8,6 +8,7 @@ import GCKConfig from './gckConfig/index';
import ETLConfig from './ETLConfig/index';
import ProxyConfig from './proxyConfig/ProxyConfig';
import GateConfig from './gateWay/gateWay';
import PlatformConfig from './platformConfig/platformConfig';
import RedisConfig from './redisConfig/index';
const { TabPane } = Tabs;
......@@ -46,6 +47,9 @@ const HostManager = () => {
<TabPane tab="网关配置" key="6">
{activeKey === '6' ? <GateConfig /> : null}
</TabPane>
<TabPane tab="平台配置" key="8">
{activeKey === '8' ? <PlatformConfig /> : null}
</TabPane>
</Tabs>
</PageContainer>
);
......
export const initAddress = {
PandaIOT: 'http://localhost:10021',
PandaETL: 'http://localhost:17891',
PandaVMS: 'http://localhost:7000',
PandaACS: 'http://localhost:10066',
PandaMessage: 'http://localhost:8231',
EMQ: 'http://localhost:8083',
};
export const portObj = {
PandaIOT: '10021',
PandaETL: '17891',
PandaVMS: '7000',
PandaACS: '10066',
PandaMessage: '8231',
EMQ: '8083',
};
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
@import '~antd/es/style/themes/default.less';
.platformConfig {
display: flex;
width: 100%;
height: 100%;
overflow: hidden;
padding: 8px;
.rightBox {
flex: 1;
padding: 5px;
background-color: #fff;
display: flex;
flex-direction: column;
.tableTitleCon {
flex: none;
border-bottom: 1px solid #f1f5f8;
padding: 10px 0 10px 5px;
display: flex;
align-items: center;
justify-content: space-between;
.tableTitleCon {
font-weight: 500;
font-size: 16px;
}
.getWay{
display: flex;
align-items: center;
margin-right: 20px;
}
}
.tableBox {
flex: 1;
margin-top: 10px;
overflow: hidden;
display: flex;
//justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
overflow-y: scroll;
.card {
width: 32.5%;
height: 48%;
margin: 5px;
background-image: url('./img/platformBg.png');
background-position: center;
background-size: 100% 100%;
background-repeat: no-repeat;
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
.checkIcon {
position: absolute;
top: 15px;
right: 15px;
font-size: 18px;
font-weight: bold;
color: rgb(40, 169, 1);
}
.uncheckIcon {
position: absolute;
top: 15px;
right: 15px;
font-size: 18px;
font-weight: bold;
color: rgb(123, 128, 125);
}
.cardTitleCon {
height: 15%;
padding: 16px 15px 0 15px;
display: flex;
align-items: center;
img {
width: 25px;
height: 25px;
margin-right: 10px;
}
.cardTitle {
font-size: 17px;
font-weight: bold;
}
}
.cardCon {
height: 70%;
overflow: auto;
&::-webkit-scrollbar {
width: 4px !important;
/*高宽分别对应横竖滚动条的尺寸*/
height: 6px !important;
}
&::-webkit-scrollbar-thumb {
background: #b9bdc0;
border-radius: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
border-radius: 5px;
}
padding: 10px 40px;
:global {
.@{ant-prefix}-input[disabled] {
background-color: #fff;
}
}
.cardConItem {
display: flex;
margin: 12px 10px;
align-items: center;
.cardConItemName {
min-width: 100px;
}
&.otherAtt{
position: relative;
}
}
.cardCustomItem{
display: flex;
margin: 12px 10px;
align-items: center;
justify-content: center;
}
}
.cardBtn {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 18%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: space-evenly;
:global {
.@{ant-prefix}-btn[disabled] {
background: #fff !important;
}
}
}
}
}
}
}
import { get, post } from '@/services/index';
const _Iot = '/Iot';
const _pandaACS = '/PandaACS';
const _civdata = '/CivData';
// 新增站点
const GetDataBaseConfig = params => get(`/PandaOMS/OMS/DBManager/GetDataBaseConfig`, params);
const PingHost = params => get('/PandaOMS/OMS/HostManager/PingHost', params);
const GetAllHostConfig = params => get('/PandaOMS/OMS/HostManager/GetAllHostConfig', params);
const DeleteHostConfigByKey = params => get('/PandaOMS/OMS/HostManager/DeleteHostConfigByKey', params);
const IOTIsOpenGck = params => get(`${_Iot}/PandaIotWCF/IsOpenGck`, params);
const ETLIsOpenGck = params => get(`${_civdata}/SystemSetting/IsOpenGck`, params);
const MSGIsOpenGck = params => get('/Message/api/Message/IsOpenGck', params);
const ACSIsOpenGck = params => get(`${_pandaACS}/api/HealthCheck/PingACSPlatform`, params);
const VMSIsOpenGck = params => get('/pandavms/sys/isopengck', params);
const SaveTcpAddress = params => get(`/PandaOMS/OMS/HostManager/SaveTcpAddress`, params);
const AddDBV2 = params => post(`${_Iot}/api/DB/AddDBV2`, params);
const SettingGCK = params => get(`${_civdata}/SystemSetting/SettingGCK`, params);
const SaveVMS = params => get('/pandavms/db/add', params);
const ACSAddDBV2 = params => post(`${_pandaACS}/api/DB/AddDBV2`, params);
const SaveMessage = params => post('/Message/api/Message/ConnetMsgPlatform', params);
const SaveHostConfig = params => post('/PandaOMS/OMS/HostManager/SaveHostConfig', params);
const UpdateGeteWay = params => get('/PandaOMS/OMS/HostManager/UpdateGeteWay', params);
export default {
GetDataBaseConfig,
PingHost,
GetAllHostConfig,
IOTIsOpenGck,
ETLIsOpenGck,
MSGIsOpenGck,
ACSIsOpenGck,
VMSIsOpenGck,
SaveTcpAddress,
AddDBV2,
SettingGCK,
SaveVMS,
ACSAddDBV2,
SaveMessage,
SaveHostConfig,
UpdateGeteWay,
DeleteHostConfigByKey
}
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