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
5be884c8
Unverified
Commit
5be884c8
authored
Jul 07, 2022
by
xiaoguaiguai
Committed by
GitHub
Jul 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jobInstance duration (#697)
parent
7fc72f60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
index.tsx
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
+7
-5
No files found.
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
View file @
5be884c8
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
queryData
}
from
"@/components/Common/crud"
;
import
React
,
{
use
State
,
useRef
,
useEffect
}
from
"react"
;
import
type
{
ProColumns
,
ActionType
}
from
'@ant-design/pro-table'
;
import
React
,
{
use
Effect
,
useRef
,
useState
}
from
"react"
;
import
type
{
ActionType
,
ProColumns
}
from
'@ant-design/pro-table'
;
import
ProTable
from
"@ant-design/pro-table"
;
import
{
JobInstanceTableListItem
}
from
"@/pages/DevOps/data"
;
import
moment
from
'moment'
;
import
{
RUN_MODE
}
from
"@/components/Studio/conf"
;
import
JobStatus
from
"@/components/Common/JobStatus"
;
import
JobLifeCycle
,
{
JOB_LIFE_CYCLE
}
from
"@/components/Common/JobLifeCycle"
;
import
{
parseSecondStr
}
from
"@/components/Common/function"
;
const
url
=
'/api/jobInstance'
;
const
JobInstanceTable
=
(
props
:
any
)
=>
{
...
...
@@ -128,10 +129,11 @@ const JobInstanceTable = (props: any) => {
hideInSearch
:
true
,
},
{
title
:
"耗时"
,
dataIndex
:
"duration"
,
sorter
:
true
,
valueType
:
'second'
,
hideInSearch
:
true
,
render
:
(
_
,
row
)
=>
{
return
parseSecondStr
(
row
.
duration
);
}
},];
return
columns
;
};
...
...
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