Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
e4a1ece3
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e4a1ece3
编写于
6月 16, 2020
作者:
W
wwx691809
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scalar review
上级
3fd413d9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
35 addition
and
5 deletion
+35
-5
mindinsight/ui/src/views/train-manage/scalar.vue
mindinsight/ui/src/views/train-manage/scalar.vue
+35
-5
未找到文件。
mindinsight/ui/src/views/train-manage/scalar.vue
浏览文件 @
e4a1ece3
...
@@ -17,7 +17,8 @@ limitations under the License.
...
@@ -17,7 +17,8 @@ limitations under the License.
<div
class=
"cl-scalar-manage"
>
<div
class=
"cl-scalar-manage"
>
<div
class=
"scalar-bk"
>
<div
class=
"scalar-bk"
>
<div
class=
"cl-title cl-scalar-title"
>
<div
class=
"cl-title cl-scalar-title"
v-show=
"originDataArr.length>0"
>
<div
class=
"cl-title-left"
>
{{
$t
(
"
scalar.titleText
"
)
}}
</div>
<div
class=
"cl-title-left"
>
{{
$t
(
"
scalar.titleText
"
)
}}
</div>
<div
class=
"cl-title-right"
>
<div
class=
"cl-title-right"
>
<ScalarButton
class=
"scalar-btn"
<ScalarButton
class=
"scalar-btn"
...
@@ -33,14 +34,14 @@ limitations under the License.
...
@@ -33,14 +34,14 @@ limitations under the License.
<!--operation area -->
<!--operation area -->
<div
class=
"cl-eval-operate-content"
<div
class=
"cl-eval-operate-content"
v-show=
"!compare"
>
v-show=
"!compare
&& originDataArr.length>0
"
>
<multiselectGroupComponents
ref=
"multiselectGroupComponents"
<multiselectGroupComponents
ref=
"multiselectGroupComponents"
:checkListArr=
"tagOperateList"
:checkListArr=
"tagOperateList"
@
selectedChange=
"tagSelectedChanged"
></multiselectGroupComponents>
@
selectedChange=
"tagSelectedChanged"
></multiselectGroupComponents>
</div>
</div>
<!-- Slider -->
<!-- Slider -->
<div
class=
"cl-eval-slider-operate-content"
<div
class=
"cl-eval-slider-operate-content"
v-show=
"!compare"
>
v-show=
"!compare
&& originDataArr.length>0
"
>
<div
class=
"xaxis-title"
>
{{
$t
(
'
scalar.xAxisTitle
'
)
}}
</div>
<div
class=
"xaxis-title"
>
{{
$t
(
'
scalar.xAxisTitle
'
)
}}
</div>
<el-radio-group
v-model=
"curAxisName"
<el-radio-group
v-model=
"curAxisName"
fill=
"#00A5A7"
fill=
"#00A5A7"
...
@@ -726,6 +727,15 @@ export default {
...
@@ -726,6 +727,15 @@ export default {
),
),
);
);
tempStorgeArr
.
forEach
((
item
)
=>
{
if
(
item
.
lt
)
{
item
.
lt
=
Number
(
item
.
lt
.
toFixed
(
2
));
}
if
(
item
.
gt
)
{
item
.
gt
=
Number
(
item
.
gt
.
toFixed
(
2
));
}
});
let
pieceStr
=
''
;
let
pieceStr
=
''
;
if
(
tempStorgeArr
.
length
===
1
)
{
if
(
tempStorgeArr
.
length
===
1
)
{
if
(
tempStorgeArr
[
0
].
gt
&&
tempStorgeArr
[
0
].
lt
)
{
if
(
tempStorgeArr
[
0
].
gt
&&
tempStorgeArr
[
0
].
lt
)
{
...
@@ -1944,6 +1954,15 @@ export default {
...
@@ -1944,6 +1954,15 @@ export default {
});
});
}
}
chartPieces
.
forEach
((
item
)
=>
{
if
(
item
.
lt
)
{
item
.
lt
=
Number
(
item
.
lt
.
toFixed
(
2
));
}
if
(
item
.
gt
)
{
item
.
gt
=
Number
(
item
.
gt
.
toFixed
(
2
));
}
});
if
(
this
.
thresholdSwitch
)
{
if
(
this
.
thresholdSwitch
)
{
this
.
originDataArr
.
forEach
((
sampleObject
)
=>
{
this
.
originDataArr
.
forEach
((
sampleObject
)
=>
{
if
(
this
.
multiSelectedTagNames
[
sampleObject
.
tagName
])
{
if
(
this
.
multiSelectedTagNames
[
sampleObject
.
tagName
])
{
...
@@ -2129,6 +2148,7 @@ export default {
...
@@ -2129,6 +2148,7 @@ export default {
if
(
!
val
)
{
if
(
!
val
)
{
this
.
thresholdValue
[
1
].
value
=
''
;
this
.
thresholdValue
[
1
].
value
=
''
;
this
.
thresholdErrorMsg
=
''
;
this
.
thresholdErrorMsg
=
''
;
this
.
thresholdValue
[
1
].
filterCondition
=
this
.
$t
(
'
scalar.lessThan
'
);
}
}
},
},
...
@@ -2144,6 +2164,7 @@ export default {
...
@@ -2144,6 +2164,7 @@ export default {
this
.
currentSample
=
{};
this
.
currentSample
=
{};
this
.
thresholdSwitch
=
false
;
this
.
thresholdSwitch
=
false
;
this
.
thresholdRelational
=
''
;
this
.
thresholdRelational
=
''
;
this
.
thresholdValue
[
1
].
filterCondition
=
this
.
$t
(
'
scalar.lessThan
'
);
this
.
thresholdDialogVisible
=
false
;
this
.
thresholdDialogVisible
=
false
;
},
},
},
},
...
@@ -2165,6 +2186,10 @@ export default {
...
@@ -2165,6 +2186,10 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.w261
{
width
:
261px
;
}
.w60
{
.w60
{
width
:
60px
;
width
:
60px
;
margin-left
:
20px
;
margin-left
:
20px
;
...
@@ -2403,20 +2428,24 @@ export default {
...
@@ -2403,20 +2428,24 @@ export default {
padding-left
:
5px
;
padding-left
:
5px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#6c7280
;
color
:
#6c7280
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.chartThresholdRight
{
.chartThresholdRight
{
flex
:
1
;
width
:
120px
;
text-align
:
right
;
text-align
:
right
;
padding-right
:
10px
;
padding-right
:
10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#00a5a7
;
color
:
#00a5a7
;
flex-shrink
:
0
;
span
{
span
{
cursor
:
pointer
;
width
:
80px
;
width
:
80px
;
height
:
39px
;
height
:
39px
;
display
:
inline-block
;
display
:
inline-block
;
cursor
:
pointer
;
}
}
}
}
}
}
...
@@ -2452,6 +2481,7 @@ export default {
...
@@ -2452,6 +2481,7 @@ export default {
.image-noData
{
.image-noData
{
width
:
100%
;
width
:
100%
;
height
:
450px
;
height
:
450px
;
padding-top
:
200px
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录