Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
70fb900c
"docs/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "5f1366cef0b8d82269f762ada3d23a67205077b5"
Commit
70fb900c
authored
Jun 04, 2019
by
Lijiao
Committed by
xuehui
Jun 04, 2019
Browse files
randint range, duration less than 1 (#1151)
parent
cae70729
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/webui/src/components/trial-detail/Para.tsx
src/webui/src/components/trial-detail/Para.tsx
+2
-2
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+6
-2
No files found.
src/webui/src/components/trial-detail/Para.tsx
View file @
70fb900c
...
@@ -162,8 +162,8 @@ class Para extends React.Component<ParaProps, ParaState> {
...
@@ -162,8 +162,8 @@ class Para extends React.Component<ParaProps, ParaState> {
parallelAxis
.
push
({
parallelAxis
.
push
({
dim
:
i
,
dim
:
i
,
name
:
dimName
[
i
],
name
:
dimName
[
i
],
min
:
searchKey
.
_value
[
0
]
+
1
,
min
:
searchKey
.
_value
[
0
],
max
:
searchKey
.
_value
[
1
]
-
1
,
max
:
searchKey
.
_value
[
1
],
});
});
break
;
break
;
...
...
src/webui/src/components/trial-detail/TableList.tsx
View file @
70fb900c
...
@@ -263,8 +263,12 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -263,8 +263,12 @@ class TableList extends React.Component<TableListProps, TableListState> {
sorter
:
(
a
:
TableObj
,
b
:
TableObj
)
=>
(
a
.
duration
as
number
)
-
(
b
.
duration
as
number
),
sorter
:
(
a
:
TableObj
,
b
:
TableObj
)
=>
(
a
.
duration
as
number
)
-
(
b
.
duration
as
number
),
render
:
(
text
:
string
,
record
:
TableObj
)
=>
{
render
:
(
text
:
string
,
record
:
TableObj
)
=>
{
let
duration
;
let
duration
;
if
(
record
.
duration
!==
undefined
&&
record
.
duration
>
0
)
{
if
(
record
.
duration
!==
undefined
)
{
duration
=
convertDuration
(
record
.
duration
);
if
(
record
.
duration
>
0
&&
record
.
duration
<
1
)
{
duration
=
`
${
record
.
duration
}
s`
;
}
else
{
duration
=
convertDuration
(
record
.
duration
);
}
}
else
{
}
else
{
duration
=
0
;
duration
=
0
;
}
}
...
...
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