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
a460cb17
Commit
a460cb17
authored
Feb 08, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '宿主管理中台配置跳转开启网关'
parent
de445182
Pipeline
#67151
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
4 deletions
+42
-4
index.jsx
src/pages/platformCenter/hostmanager/ETLConfig/index.jsx
+41
-3
index.jsx
src/pages/platformCenter/hostmanager/index.jsx
+1
-1
No files found.
src/pages/platformCenter/hostmanager/ETLConfig/index.jsx
View file @
a460cb17
/* eslint-disable global-require */
/* eslint-disable global-require */
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Form
,
Divider
,
Button
,
Input
,
message
}
from
'antd'
;
import
{
Form
,
Divider
,
Button
,
Input
,
message
,
Modal
,
Space
}
from
'antd'
;
import
{
SaveETLConfig
,
GetETLConfig
}
from
'@/services/hostmanager/hostmanager'
;
import
{
InfoCircleFilled
}
from
'@ant-design/icons'
;
import
{
SaveETLConfig
,
GetETLConfig
,
GetGateWay
}
from
'@/services/hostmanager/hostmanager'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
const
ETCConfig
=
()
=>
{
const
ETCConfig
=
props
=>
{
const
{
setActiveKey
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
getWayVisible
,
setGetWayVisible
]
=
useState
(
false
);
useEffect
(()
=>
{
useEffect
(()
=>
{
GetGateWay
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
===
false
)
{
setGetWayVisible
(
true
);
}
}
});
GetETLConfig
().
then
(
res
=>
{
GetETLConfig
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
console
.
log
(
res
.
data
,
'res.data'
);
console
.
log
(
res
.
data
,
'res.data'
);
...
@@ -99,6 +109,34 @@ const ETCConfig = () => {
...
@@ -99,6 +109,34 @@ const ETCConfig = () => {
</
Button
>
</
Button
>
</
Form
.
Item
>
</
Form
.
Item
>
</
Form
>
</
Form
>
<
Modal
visible=
{
getWayVisible
}
title=
"提示"
width=
"350px"
closable=
{
false
}
footer=
{
<
Space
>
<
Button
onClick=
{
()
=>
{
setGetWayVisible
(
false
);
setActiveKey
(
'5'
);
}
}
type=
"primary"
>
好的,去开启
</
Button
>
</
Space
>
}
>
<
InfoCircleFilled
style=
{
{
color
:
'#faad14'
,
fontSize
:
'18px'
,
marginRight
:
'10px'
,
}
}
/>
<
span
>
当前网关暂未打开,请前往开启!
</
span
>
</
Modal
>
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/platformCenter/hostmanager/index.jsx
View file @
a460cb17
...
@@ -33,7 +33,7 @@ const HostManager = () => {
...
@@ -33,7 +33,7 @@ const HostManager = () => {
<ProxyConfig />
<ProxyConfig />
</TabPane> */
}
</TabPane> */
}
<
TabPane
tab=
"中台配置"
key=
"6"
>
<
TabPane
tab=
"中台配置"
key=
"6"
>
<
ETLConfig
/>
<
ETLConfig
setActiveKey=
{
setActiveKey
}
/>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
"网关配置"
key=
"5"
>
<
TabPane
tab=
"网关配置"
key=
"5"
>
<
GateConfig
/>
<
GateConfig
/>
...
...
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