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
92d75bc0
Commit
92d75bc0
authored
Jul 25, 2019
by
v-liguo
Browse files
fix detail table succeed trial XXX(FINAL) when have not final result
parent
1fd61e51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/webui/src/components/public-child/IntermediateVal.tsx
src/webui/src/components/public-child/IntermediateVal.tsx
+4
-7
No files found.
src/webui/src/components/public-child/IntermediateVal.tsx
View file @
92d75bc0
...
...
@@ -15,7 +15,6 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
render
()
{
const
{
record
}
=
this
.
props
;
const
interArr
=
record
.
description
.
intermediate
;
const
status
=
record
.
status
;
let
lastVal
;
let
wei
=
0
;
if
(
interArr
!==
undefined
)
{
...
...
@@ -29,12 +28,10 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
result
=
`
${
lastVal
.
toFixed
(
6
)}
`
;
}
}
if
(
status
===
'
SUCCEEDED
'
)
{
// some trial haven't final result
if
(
record
.
acc
!==
undefined
)
{
if
(
record
.
acc
.
default
!==
undefined
)
{
result
=
`
${
result
}
(FINAL)`
;
}
// some trial haven't final result
if
(
record
.
acc
!==
undefined
)
{
if
(
record
.
acc
.
default
!==
undefined
)
{
result
=
`
${
result
}
(FINAL)`
;
}
}
else
{
result
=
`
${
result
}
(LATEST)`
;
...
...
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