Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
9a015065
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看板
提交
9a015065
编写于
7月 10, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
!415 UI add tensors feature (V2)
Merge pull request !415 from 夏易凡/0710master
上级
c7241679
60203207
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
8 deletion
+25
-8
mindinsight/ui/src/components/gridTableSimple.vue
mindinsight/ui/src/components/gridTableSimple.vue
+16
-4
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+4
-1
mindinsight/ui/src/views/train-manage/tensor.vue
mindinsight/ui/src/views/train-manage/tensor.vue
+5
-3
未找到文件。
mindinsight/ui/src/components/gridTableSimple.vue
浏览文件 @
9a015065
...
@@ -104,6 +104,7 @@ export default {
...
@@ -104,6 +104,7 @@ export default {
itemId
:
''
,
// Dom id
itemId
:
''
,
// Dom id
gridObj
:
null
,
// slickgrid object
gridObj
:
null
,
// slickgrid object
columnsData
:
[],
// Column information
columnsData
:
[],
// Column information
columnsLength
:
0
,
// Column length
filterArr
:
[],
// Dimension selection array
filterArr
:
[],
// Dimension selection array
formateData
:
[],
// formatted data
formateData
:
[],
// formatted data
formateArr
:
[],
// formatted Array
formateArr
:
[],
// formatted Array
...
@@ -268,10 +269,15 @@ export default {
...
@@ -268,10 +269,15 @@ export default {
this
.
columnsData
,
this
.
columnsData
,
this
.
optionObj
,
this
.
optionObj
,
);
);
this
.
columnsLength
=
this
.
columnsData
.
length
;
}
}
this
.
gridObj
.
setData
(
this
.
formateArr
,
this
.
scrollTop
);
this
.
gridObj
.
setData
(
this
.
formateArr
,
this
.
scrollTop
);
this
.
scrollTop
=
false
;
this
.
scrollTop
=
false
;
this
.
gridObj
.
setColumns
(
this
.
columnsData
);
const
columnsLength
=
this
.
columnsData
.
length
;
if
(
this
.
columnsLength
!==
columnsLength
)
{
this
.
gridObj
.
setColumns
(
this
.
columnsData
);
this
.
columnsLength
=
columnsLength
;
}
this
.
gridObj
.
render
();
this
.
gridObj
.
render
();
});
});
},
},
...
@@ -293,14 +299,19 @@ export default {
...
@@ -293,14 +299,19 @@ export default {
let
limitCount
=
2
;
let
limitCount
=
2
;
const
tempArr
=
[];
const
tempArr
=
[];
this
.
filterArr
.
forEach
((
filter
)
=>
{
this
.
filterArr
.
forEach
((
filter
)
=>
{
const
value
=
filter
.
model
.
trim
();
let
value
=
filter
.
model
.
trim
();
tempArr
.
push
(
value
);
if
(
!
isNaN
(
value
))
{
if
(
!
isNaN
(
value
))
{
if
(
value
<
-
(
filter
.
max
+
1
)
||
value
>
filter
.
max
||
value
===
''
)
{
if
(
value
<
-
(
filter
.
max
+
1
)
||
value
>
filter
.
max
||
value
===
''
||
value
%
1
)
{
filter
.
showError
=
true
;
filter
.
showError
=
true
;
filterCorrect
=
false
;
filterCorrect
=
false
;
}
else
{
}
else
{
filter
.
showError
=
false
;
filter
.
showError
=
false
;
value
=
Number
(
value
);
}
}
}
else
if
(
value
===
'
:
'
)
{
}
else
if
(
value
===
'
:
'
)
{
filter
.
showError
=
false
;
filter
.
showError
=
false
;
...
@@ -313,6 +324,7 @@ export default {
...
@@ -313,6 +324,7 @@ export default {
filter
.
showError
=
true
;
filter
.
showError
=
true
;
filterCorrect
=
false
;
filterCorrect
=
false
;
}
}
tempArr
.
push
(
value
);
});
});
this
.
filterCorrect
=
filterCorrect
;
this
.
filterCorrect
=
filterCorrect
;
if
(
incorrectData
&&
filterCorrect
)
{
if
(
incorrectData
&&
filterCorrect
)
{
...
...
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
9a015065
...
@@ -418,6 +418,9 @@
...
@@ -418,6 +418,9 @@
"50542215"
:
"查询参数错误"
,
"50542215"
:
"查询参数错误"
,
"50542216"
:
"Summary日志文件未找到"
,
"50542216"
:
"Summary日志文件未找到"
,
"50542217"
:
"Summary日志路径错误"
,
"50542217"
:
"Summary日志路径错误"
,
"50542218"
:
"筛选参数错误"
"50542218"
:
"筛选参数错误"
,
"50545012"
:
"张量数据不存在,请刷新。"
,
"50545013"
:
"请求的数据过大,无法返回,请使用其他维度重试。"
,
"50545014"
:
"查询的张量数据已被新数据替换,请刷新。"
}
}
}
}
\ No newline at end of file
mindinsight/ui/src/views/train-manage/tensor.vue
浏览文件 @
9a015065
...
@@ -452,7 +452,7 @@ export default {
...
@@ -452,7 +452,7 @@ export default {
if
(
this
.
curDataType
===
1
&&
this
.
curViewName
===
1
)
{
if
(
this
.
curDataType
===
1
&&
this
.
curViewName
===
1
)
{
const
elementItem
=
this
.
$refs
[
sampleItem
.
ref
];
const
elementItem
=
this
.
$refs
[
sampleItem
.
ref
];
if
(
elementItem
)
{
if
(
elementItem
)
{
elementItem
.
clearZrData
();
elementItem
[
0
]
.
clearZrData
();
}
}
}
}
});
});
...
@@ -474,8 +474,9 @@ export default {
...
@@ -474,8 +474,9 @@ export default {
},
},
/**
/**
* Refresh the data on the current page
* Refresh the data on the current page
* @param {Boolean} isFromTypeChange
*/
*/
freshCurPageData
()
{
freshCurPageData
(
isFromTypeChange
)
{
this
.
curPageArr
.
forEach
((
sampleItem
,
index
)
=>
{
this
.
curPageArr
.
forEach
((
sampleItem
,
index
)
=>
{
if
(
!
sampleItem
||
!
sampleItem
.
tagName
)
{
if
(
!
sampleItem
||
!
sampleItem
.
tagName
)
{
return
;
return
;
...
@@ -484,6 +485,7 @@ export default {
...
@@ -484,6 +485,7 @@ export default {
if
(
dataType
)
{
if
(
dataType
)
{
this
.
getHistogramData
(
sampleItem
);
this
.
getHistogramData
(
sampleItem
);
}
else
{
}
else
{
sampleItem
.
newDataFlag
=
!!
isFromTypeChange
||
sampleItem
.
newDataFlag
;
this
.
getMartixData
(
sampleItem
);
this
.
getMartixData
(
sampleItem
);
}
}
});
});
...
@@ -686,7 +688,7 @@ export default {
...
@@ -686,7 +688,7 @@ export default {
this
.
dataTypeChangeTimer
=
null
;
this
.
dataTypeChangeTimer
=
null
;
}
}
this
.
dataTypeChangeTimer
=
setTimeout
(()
=>
{
this
.
dataTypeChangeTimer
=
setTimeout
(()
=>
{
this
.
freshCurPageData
();
this
.
freshCurPageData
(
true
);
},
500
);
},
500
);
},
},
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录