Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
2c83eed6
Commit
2c83eed6
authored
Apr 16, 2022
by
zhu-mingye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add flinkwebui button for clusertInstance Manager
parent
51c3c42f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
JobStatus.tsx
dlink-web/src/components/Common/JobStatus.tsx
+3
-3
index.tsx
dlink-web/src/pages/Cluster/index.tsx
+1
-1
index.tsx
dlink-web/src/pages/DevOps/JobInfo/index.tsx
+5
-7
No files found.
dlink-web/src/components/Common/JobStatus.tsx
View file @
2c83eed6
...
@@ -34,10 +34,10 @@ export function isStatusDone(type: string){
...
@@ -34,10 +34,10 @@ export function isStatusDone(type: string){
case
JOB_STATUS
.
FAILED
:
case
JOB_STATUS
.
FAILED
:
case
JOB_STATUS
.
CANCELED
:
case
JOB_STATUS
.
CANCELED
:
case
JOB_STATUS
.
FINISHED
:
case
JOB_STATUS
.
FINISHED
:
case
JOB_STATUS
.
RUNNING
:
case
JOB_STATUS
.
UNKNOWN
:
return
false
;
default
:
return
true
;
return
true
;
default
:
return
false
;
}
}
};
};
...
...
dlink-web/src/pages/Cluster/index.tsx
View file @
2c83eed6
...
@@ -317,7 +317,7 @@ const ClusterTableList: React.FC<{}> = (props: any) => {
...
@@ -317,7 +317,7 @@ const ClusterTableList: React.FC<{}> = (props: any) => {
href=
{
`http://${record.jobManagerHost}/#/overview`
}
href=
{
`http://${record.jobManagerHost}/#/overview`
}
target=
"_blank"
target=
"_blank"
>
>
Flink
WebUI
FlinkWebUI
</
Button
>,
</
Button
>,
<
MoreBtn
key=
"more"
item=
{
record
}
/>,
<
MoreBtn
key=
"more"
item=
{
record
}
/>,
],
],
...
...
dlink-web/src/pages/DevOps/JobInfo/index.tsx
View file @
2c83eed6
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
history
,
useLocation
}
from
'umi'
;
import
{
history
,
useLocation
}
from
'umi'
;
import
{
import
{
ClusterOutlined
,
EllipsisOutlined
,
FireOutlined
,
RedoOutlined
,
RocketOutlined
}
from
'@ant-design/icons'
;
EllipsisOutlined
,
RedoOutlined
,
import
{
Button
,
Dropdown
,
Empty
,
Menu
,
message
,
Modal
,
Space
,
Tag
,
Typography
}
from
'antd'
;
FireOutlined
,
ClusterOutlined
,
RocketOutlined
}
from
'@ant-design/icons'
;
import
{
Button
,
Dropdown
,
Menu
,
Tag
,
Space
,
Typography
,
message
,
Modal
,
Empty
}
from
'antd'
;
import
{
PageContainer
}
from
'@ant-design/pro-layout'
;
import
{
PageContainer
}
from
'@ant-design/pro-layout'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
{
JobInfoDetail
}
from
"@/pages/DevOps/data"
;
import
{
JobInfoDetail
}
from
"@/pages/DevOps/data"
;
...
@@ -127,12 +124,13 @@ const JobInfo = (props: any) => {
...
@@ -127,12 +124,13 @@ const JobInfo = (props: any) => {
<
Button
key=
"back"
type=
"dashed"
onClick=
{
handleBack
}
>
返回
</
Button
>,
<
Button
key=
"back"
type=
"dashed"
onClick=
{
handleBack
}
>
返回
</
Button
>,
];
];
buttons
.
push
(<
Button
key=
"refresh"
icon=
{
<
RedoOutlined
/>
}
onClick=
{
handleRefreshJobInfoDetail
}
/>);
buttons
.
push
(<
Button
key=
"refresh"
icon=
{
<
RedoOutlined
/>
}
onClick=
{
handleRefreshJobInfoDetail
}
/>);
if
(
!
isStatusDone
(
job
?.
instance
?.
status
as
string
))
{
// if (job?.instance?.status as string === JOB_STATUS.RUNNING || job?.instance?.status as string ===JOB_STATUS.FAILED ||
// job?.instance?.status as string === JOB_STATUS.CANCELED || job?.instance?.status as string === JOB_STATUS.FINISHED) {
buttons
.
push
(<
Button
key=
"flinkwebui"
>
buttons
.
push
(<
Button
key=
"flinkwebui"
>
<
Link
href=
{
`http://${job?.history?.jobManagerAddress}/#/job/${job?.instance?.jid}/overview`
}
target=
"_blank"
>
<
Link
href=
{
`http://${job?.history?.jobManagerAddress}/#/job/${job?.instance?.jid}/overview`
}
target=
"_blank"
>
FlinkWebUI
FlinkWebUI
</
Link
></
Button
>);
</
Link
></
Button
>);
}
//
}
buttons
.
push
(<
Button
key=
"autorestart"
type=
"primary"
buttons
.
push
(<
Button
key=
"autorestart"
type=
"primary"
onClick=
{
handleRestart
}
>
重新
{
job
?.
instance
?.
step
==
5
?
'上线'
:
'启动'
}
</
Button
>);
onClick=
{
handleRestart
}
>
重新
{
job
?.
instance
?.
step
==
5
?
'上线'
:
'启动'
}
</
Button
>);
if
(
!
isStatusDone
(
job
?.
instance
?.
status
as
string
))
{
if
(
!
isStatusDone
(
job
?.
instance
?.
status
as
string
))
{
...
...
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