Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
fbbf4542
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fbbf4542
编写于
7月 24, 2020
作者:
X
xiayifan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI modify the error message display mode of the tensor
上级
c7a6d089
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
41 addition
and
17 deletion
+41
-17
mindinsight/ui/src/components/gridTableSimple.vue
mindinsight/ui/src/components/gridTableSimple.vue
+2
-2
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+3
-2
mindinsight/ui/src/services/fetcher.js
mindinsight/ui/src/services/fetcher.js
+6
-6
mindinsight/ui/src/views/train-manage/tensor.vue
mindinsight/ui/src/views/train-manage/tensor.vue
+10
-6
mindinsight/ui/src/views/train-manage/training-dashboard.vue
mindinsight/ui/src/views/train-manage/training-dashboard.vue
+20
-1
未找到文件。
mindinsight/ui/src/components/gridTableSimple.vue
浏览文件 @
fbbf4542
...
...
@@ -33,7 +33,7 @@ limitations under the License.
class=
"grid-item"
></div>
</div>
<div
class=
"operate-container"
v-if=
"
(showOperate && fullData.length) || requestError
"
>
v-if=
"
showOperate && (fullData.length || requestError)
"
>
<div
class=
"filter-container"
@
keyup.enter=
"filterChange"
>
<div
v-for=
"(item, itemIndex) in filterArr"
...
...
@@ -401,7 +401,7 @@ export default {
*/
showRequestErrorMessage
(
errorMsg
,
dimension
,
filterStr
)
{
this
.
errorMsg
=
errorMsg
;
if
(
!
this
.
filterArr
.
length
)
{
if
(
!
this
.
filterArr
.
length
&&
dimension
&&
filterStr
)
{
this
.
initializeFilterArr
(
dimension
,
filterStr
);
}
this
.
requestError
=
true
;
...
...
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
fbbf4542
...
...
@@ -174,7 +174,8 @@
"tensorType"
:
"数据类型:"
,
"viewTypeTitle"
:
"视图"
,
"chartViewType"
:
"表格"
,
"histogramViewType"
:
"直方图"
"histogramViewType"
:
"直方图"
,
"tensorDashboardLimitErrorMsg"
:
"请求的数据过大,请进入张量页使用其他维度重试。"
},
"graph"
:
{
"titleText"
:
"计算图"
,
...
...
@@ -420,7 +421,7 @@
"50542217"
:
"Summary日志路径错误"
,
"50542218"
:
"筛选参数错误"
,
"50545012"
:
"张量数据不存在,请刷新。"
,
"50545013"
:
"请求的数据过大,
无法返回,
请使用其他维度重试。"
,
"50545013"
:
"请求的数据过大,请使用其他维度重试。"
,
"50545014"
:
"查询的张量数据已被新数据替换,请刷新。"
}
}
\ No newline at end of file
mindinsight/ui/src/services/fetcher.js
浏览文件 @
fbbf4542
...
...
@@ -52,17 +52,17 @@ axios.interceptors.response.use(
if
(
error
.
response
&&
error
.
response
.
data
&&
error
.
response
.
data
.
error_code
)
{
if
(
error
.
response
.
data
.
error_code
.
toString
()
===
'
50545005
'
)
{
if
(
error
.
config
.
headers
.
ignoreError
||
router
.
currentRoute
.
path
===
'
/train-manage/training-dashboard
'
)
{
router
.
currentRoute
.
path
===
'
/train-manage/training-dashboard
'
)
{
return
Promise
.
reject
(
error
);
}
}
else
if
(
error
.
response
.
data
.
error_code
.
toString
()
===
'
50542216
'
&&
}
else
if
(
error
.
response
.
data
.
error_code
.
toString
()
===
'
50542216
'
&&
router
.
currentRoute
.
path
===
'
/train-manage/training-dashboard
'
)
{
return
Promise
.
reject
(
error
);
}
else
if
(
router
.
currentRoute
.
path
===
'
/profiling/profiling-dashboard
'
&&
error
.
config
.
headers
.
ignoreError
)
{
}
else
if
(
router
.
currentRoute
.
path
===
'
/profiling/profiling-dashboard
'
&&
error
.
config
.
headers
.
ignoreError
)
{
return
Promise
.
reject
(
error
);
}
else
if
(
error
.
response
.
data
.
error_code
.
toString
()
===
'
50545013
'
&&
router
.
currentRoute
.
path
===
'
/train-manage/tensor
'
)
{
}
else
if
(
error
.
response
.
data
.
error_code
.
toString
()
===
'
50545013
'
||
error
.
response
.
data
.
error_code
.
toString
()
===
'
50545014
'
)
{
return
Promise
.
reject
(
error
);
}
if
(
errorData
[
error
.
response
.
data
.
error_code
])
{
...
...
mindinsight/ui/src/views/train-manage/tensor.vue
浏览文件 @
fbbf4542
...
...
@@ -294,11 +294,11 @@ export default {
this
.
dataTypeChangeTimer
=
null
;
}
if
(
this
.
viewNameChangeTimer
)
{
this
.
clearTimeout
(
this
.
viewNameChangeTimer
);
clearTimeout
(
this
.
viewNameChangeTimer
);
this
.
viewNameChangeTimer
=
null
;
}
if
(
this
.
axisNameChangeTimer
)
{
this
.
clearTimeout
(
this
.
axisNameChangeTimer
);
clearTimeout
(
this
.
axisNameChangeTimer
);
this
.
axisNameChangeTimer
=
null
;
}
},
...
...
@@ -678,15 +678,18 @@ export default {
},
(
e
)
=>
{
let
showLimitError
=
false
;
let
errorMsg
=
''
;
if
(
e
.
response
&&
e
.
response
.
data
&&
e
.
response
.
data
.
error_code
&&
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545013
'
(
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545013
'
||
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545014
'
)
)
{
showLimitError
=
true
;
errorMsg
=
this
.
$t
(
'
error
'
)[
e
.
response
.
data
.
error_code
];
}
this
.
clearMartixData
(
sampleItem
,
showLimitError
);
this
.
clearMartixData
(
sampleItem
,
showLimitError
,
errorMsg
);
sampleItem
.
showLoading
=
false
;
},
);
...
...
@@ -695,8 +698,9 @@ export default {
* Clear table display
* @param {Object} sampleItem The object that is being operated
* @param {Boolean} showLimitError Display request error message
* @param {String} errorMsg Error message
*/
clearMartixData
(
sampleItem
,
showLimitError
)
{
clearMartixData
(
sampleItem
,
showLimitError
,
errorMsg
)
{
sampleItem
.
curData
=
[];
sampleItem
.
newDataFlag
=
true
;
let
elementItem
=
null
;
...
...
@@ -706,7 +710,7 @@ export default {
elementItem
[
0
].
updateGridData
();
if
(
showLimitError
)
{
elementItem
[
0
].
showRequestErrorMessage
(
this
.
$t
(
'
error.50545013
'
)
,
errorMsg
,
sampleItem
.
formateData
.
value
.
dims
,
sampleItem
.
filterStr
,
);
...
...
mindinsight/ui/src/views/train-manage/training-dashboard.vue
浏览文件 @
fbbf4542
...
...
@@ -969,12 +969,31 @@ export default {
}
});
},
()
=>
{
(
e
)
=>
{
this
.
tensorData
=
[];
let
showLimitError
=
false
;
let
errorMsg
=
''
;
if
(
e
.
response
&&
e
.
response
.
data
&&
e
.
response
.
data
.
error_code
&&
(
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545013
'
||
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545014
'
)
)
{
showLimitError
=
true
;
if
(
e
.
response
.
data
.
error_code
.
toString
()
===
'
50545014
'
)
{
errorMsg
=
this
.
$t
(
'
error
'
)[
e
.
response
.
data
.
error_code
];
}
else
{
errorMsg
=
this
.
$t
(
'
tensors.tensorDashboardLimitErrorMsg
'
);
}
}
this
.
$nextTick
(()
=>
{
const
elementItem
=
this
.
$refs
.
tensorChart
;
if
(
elementItem
)
{
elementItem
.
updateGridData
();
if
(
showLimitError
)
{
elementItem
.
showRequestErrorMessage
(
errorMsg
);
}
}
});
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录