Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
0714b064
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看板
“de6c4037d95877fcfcfd87551eae7816d659c065”上不存在“source/dnode/vnode/impl/inc/vnodeInt.h”
提交
0714b064
编写于
5月 30, 2020
作者:
W
wwx691809
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compareplate
上级
954d0751
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
103 addition
and
114 deletion
+103
-114
mindinsight/ui/src/services/request-service.js
mindinsight/ui/src/services/request-service.js
+4
-14
mindinsight/ui/src/views/train-manage/compare-plate.vue
mindinsight/ui/src/views/train-manage/compare-plate.vue
+98
-99
mindinsight/ui/src/views/train-manage/summary-manage.vue
mindinsight/ui/src/views/train-manage/summary-manage.vue
+1
-1
未找到文件。
mindinsight/ui/src/services/request-service.js
浏览文件 @
0714b064
...
...
@@ -42,13 +42,15 @@ export default {
});
},
// query summary list
querySummaryList
(
params
)
{
querySummaryList
(
params
,
isIgnoreError
)
{
return
axios
({
method
:
'
get
'
,
url
:
'
/v1/mindinsight/datavisual/train-jobs
'
,
params
:
params
,
headers
:
{
ignoreError
:
isIgnoreError
,
},
});
},
...
...
@@ -103,18 +105,6 @@ export default {
});
},
// query trainJob data
getTrainJobs
(
params
,
isIgnoreError
)
{
return
axios
({
method
:
'
get
'
,
params
:
params
,
url
:
'
v1/mindinsight/datavisual/train-jobs
'
,
headers
:
{
ignoreError
:
isIgnoreError
,
},
});
},
// set caches
trainJobsCaches
(
params
)
{
return
axios
({
...
...
mindinsight/ui/src/views/train-manage/compare-plate.vue
浏览文件 @
0714b064
...
...
@@ -27,23 +27,21 @@ limitations under the License.
<!--summary select-->
<div
class=
"cl-eval-operate-component"
>
<multiSelectGroupComponents
ref=
"summaryGroup"
:checkListArr=
"summaryOperateList"
:isLimit=
"true"
:limitNum=
"5"
@
selectedChange=
"summarySelectedChanged"
:componentsLabel=
"componentsLabel.summary"
></multiSelectGroupComponents>
<multiSelectGroupComponents
ref=
"summaryGroup"
:checkListArr=
"summaryOperateList"
:isLimit=
"true"
:limitNum=
"5"
@
selectedChange=
"summarySelectedChanged"
:componentsLabel=
"componentsLabel.summary"
></multiSelectGroupComponents>
</div>
<!--tag select-->
<div
class=
"cl-eval-operate-component"
>
<multiSelectGroupComponents
ref=
"tagsGroup"
:checkListArr=
"tagOperateList"
@
selectedChange=
"tagSelectedChanged"
:componentsLabel=
"componentsLabel.tag"
></multiSelectGroupComponents>
</div>
<!--tag select-->
<div
class=
"cl-eval-operate-component"
>
<multiSelectGroupComponents
ref=
"tagsGroup"
:checkListArr=
"tagOperateList"
@
selectedChange=
"tagSelectedChanged"
:componentsLabel=
"componentsLabel.tag"
></multiSelectGroupComponents>
</div>
</div>
<!-- Slider -->
...
...
@@ -62,13 +60,12 @@ limitations under the License.
<el-slider
v-model=
"smoothValue"
:step=
"0.01"
:max=
"0.99"
@
input=
"updataInputValue"
></el-slider>
@
input=
"updataInputValue"
></el-slider>
<el-input
v-model=
"smoothValueNumber"
class=
"w60"
@
input=
"smoothValueChange"
@
blur=
"smoothValueBlur"
></el-input>
<el-input
v-model=
"smoothValueNumber"
class=
"w60"
@
input=
"smoothValueChange"
@
blur=
"smoothValueBlur"
></el-input>
</div>
<!-- Content display -->
<div
class=
"cl-eval-show-data-content"
...
...
@@ -284,11 +281,11 @@ export default {
* Obtain the tag and summary list.
*/
getScalarsList
()
{
const
params
=
{};
const
params
=
{};
params
.
offset
=
0
;
params
.
limit
=
999
;
RequestService
.
getTrainJobs
(
params
)
RequestService
.
querySummaryList
(
params
)
.
then
((
res
)
=>
{
// error;
if
(
...
...
@@ -318,10 +315,10 @@ export default {
colorIndex
:
colorIndex
,
});
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
tempSummaryList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
tempSummaryList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
}
});
}
...
...
@@ -339,7 +336,7 @@ export default {
if
(
!
this
.
oriDataDictionaries
[
tagObj
])
{
// Add the tag list
this
.
oriDataDictionaries
[
tagObj
]
=
true
;
this
.
oriDataDictionaries
[
tagObj
]
=
true
;
tempTagList
.
push
({
label
:
tagObj
,
checked
:
true
,
...
...
@@ -386,11 +383,13 @@ export default {
this
.
initOver
=
true
;
this
.
$nextTick
(()
=>
{
this
.
multiSelectedTagNames
=
this
.
$refs
.
tagsGroup
.
updateSelectedDic
();
this
.
multiSelectedSummaryNames
=
this
.
$refs
.
summaryGroup
.
updateSelectedDic
();
this
.
multiSelectedTagNames
=
this
.
$refs
.
tagsGroup
.
updateSelectedDic
();
this
.
multiSelectedSummaryNames
=
this
.
$refs
.
summaryGroup
.
updateSelectedDic
();
this
.
updateTagInPage
();
this
.
resizeCallback
();
this
.
trainJobsCaches
();
if
(
Object
.
keys
(
this
.
multiSelectedSummaryNames
).
length
>
0
)
{
this
.
trainJobsCaches
();
}
});
},
this
.
requestErrorCallback
)
.
catch
((
e
)
=>
{
...
...
@@ -399,8 +398,8 @@ export default {
},
trainJobsCaches
()
{
const
params
=
{};
params
.
train_ids
=
Object
.
keys
(
this
.
multiSelectedSummaryNames
);
const
params
=
{};
params
.
train_ids
=
Object
.
keys
(
this
.
multiSelectedSummaryNames
);
RequestService
.
trainJobsCaches
(
params
);
},
...
...
@@ -437,12 +436,12 @@ export default {
*/
updateCurPageSamples
()
{
this
.
curPageArr
.
forEach
((
sampleObject
)
=>
{
this
.
curPageArr
.
forEach
((
sampleObject
)
=>
{
if
(
!
sampleObject
)
{
return
;
}
sampleObject
.
updateFlag
=
true
;
const
sampleIndex
=
sampleObject
.
sampleIndex
;
const
sampleIndex
=
sampleObject
.
sampleIndex
;
const
summaryCount
=
sampleObject
.
summaryNames
.
length
;
if
(
summaryCount
===
0
)
{
return
;
...
...
@@ -453,15 +452,14 @@ export default {
tag
:
sampleObject
.
tagName
,
};
for
(
let
i
=
0
;
i
<
summaryCount
;
i
++
)
{
if
(
i
===
summaryCount
-
1
)
{
for
(
let
i
=
0
;
i
<
summaryCount
;
i
++
)
{
if
(
i
===
summaryCount
-
1
)
{
params
.
train_id
+=
sampleObject
.
summaryNames
[
i
];
}
else
{
params
.
train_id
+=
sampleObject
.
summaryNames
[
i
]
+
'
&
'
;
params
.
train_id
+=
sampleObject
.
summaryNames
[
i
]
+
'
&
'
;
}
}
RequestService
.
getSummarySample
(
params
)
.
then
((
res
)
=>
{
if
(
sampleObject
.
charObj
)
{
...
...
@@ -537,12 +535,10 @@ export default {
this
.
updateOrCreateChar
(
sampleIndex
);
});
})
.
catch
((
error
)
=>
{
});
.
catch
((
error
)
=>
{});
});
},
/**
* Formatting Chart Data
* @param {Number} sampleIndex Chart subscript
...
...
@@ -717,7 +713,7 @@ export default {
},
grid
:
{
left
:
80
,
right
:
sampleObject
.
fullScreen
?
80
:
10
,
right
:
sampleObject
.
fullScreen
?
80
:
10
,
},
animation
:
true
,
dataZoom
:
[
...
...
@@ -962,11 +958,11 @@ export default {
if
(
sampleObject
.
fullScreen
)
{
sampleObject
.
charData
.
charOption
.
toolbox
.
feature
.
myToolFullScreen
.
iconStyle
.
borderColor
=
'
#3E98C5
'
;
sampleObject
.
charData
.
charOption
.
grid
.
right
=
80
;
sampleObject
.
charData
.
charOption
.
grid
.
right
=
80
;
}
else
{
sampleObject
.
charData
.
charOption
.
toolbox
.
feature
.
myToolFullScreen
.
iconStyle
.
borderColor
=
'
#6D7278
'
;
sampleObject
.
charData
.
charOption
.
grid
.
right
=
10
;
sampleObject
.
charData
.
charOption
.
grid
.
right
=
10
;
}
sampleObject
.
updateFlag
=
true
;
...
...
@@ -985,13 +981,13 @@ export default {
*/
updateTagInPage
(
noPageDataNumChange
)
{
const
curFilterSamples
=
[];
this
.
originDataArr
.
forEach
((
sampleItem
)
=>
{
const
curFilterSamples
=
[];
this
.
originDataArr
.
forEach
((
sampleItem
)
=>
{
if
(
this
.
multiSelectedTagNames
[
sampleItem
.
tagName
])
{
curFilterSamples
.
push
(
sampleItem
);
}
});
this
.
curFilterSamples
=
curFilterSamples
;
this
.
curFilterSamples
=
curFilterSamples
;
this
.
getCurPageDataArr
(
noPageDataNumChange
);
},
...
...
@@ -1086,9 +1082,9 @@ export default {
if
(
!
selectedItemDict
)
{
return
;
}
this
.
multiSelectedTagNames
=
selectedItemDict
;
this
.
multiSelectedTagNames
=
selectedItemDict
;
// reset to the first page
this
.
pageIndex
=
0
;
this
.
pageIndex
=
0
;
this
.
updateTagInPage
();
},
...
...
@@ -1101,11 +1097,13 @@ export default {
if
(
!
selectedItemDict
)
{
return
;
}
this
.
multiSelectedSummaryNames
=
selectedItemDict
;
this
.
multiSelectedSummaryNames
=
selectedItemDict
;
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
this
.
trainJobsCaches
();
if
(
Object
.
keys
(
this
.
multiSelectedSummaryNames
).
length
>
0
)
{
this
.
trainJobsCaches
();
}
this
.
updateSummary
();
},
...
...
@@ -1114,33 +1112,30 @@ export default {
*/
updateSummary
()
{
// update the data display area
this
.
originDataArr
.
forEach
((
sampleObject
)
=>
{
this
.
originDataArr
.
forEach
((
sampleObject
)
=>
{
if
(
sampleObject
.
charObj
)
{
sampleObject
.
updateFlag
=
true
;
sampleObject
.
summaryNames
.
forEach
((
summaryName
)
=>
{
sampleObject
.
updateFlag
=
true
;
sampleObject
.
summaryNames
.
forEach
((
summaryName
)
=>
{
const
sampleSelect
=
sampleObject
.
charData
.
charOption
.
legend
.
selected
;
if
(
!
sampleSelect
)
{
return
;
}
if
(
this
.
multiSelectedSummaryNames
[
summaryName
])
{
sampleObject
.
charData
.
charOption
.
legend
.
selected
[
summaryName
]
=
true
;
sampleObject
.
charData
.
charOption
.
legend
.
selected
[
summaryName
+
this
.
backendString
]
=
true
;
sampleSelect
[
summaryName
]
=
true
;
sampleSelect
[
summaryName
+
this
.
backendString
]
=
true
;
}
else
{
sampleObject
.
charData
.
charOption
.
legend
.
selected
[
summaryName
]
=
false
;
sampleObject
.
charData
.
charOption
.
legend
.
selected
[
summaryName
+
this
.
backendString
]
=
false
;
sampleSelect
[
summaryName
]
=
false
;
sampleSelect
[
summaryName
+
this
.
backendString
]
=
false
;
}
});
}
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// Refresh the current page chart
this
.
curPageArr
.
forEach
((
sampleObject
)
=>
{
sampleObject
.
charData
.
charOption
.
animation
=
false
;
this
.
curPageArr
.
forEach
((
sampleObject
)
=>
{
sampleObject
.
charData
.
charOption
.
animation
=
false
;
this
.
updateOrCreateChar
(
sampleObject
.
sampleIndex
,
true
);
});
},
0
);
...
...
@@ -1151,6 +1146,9 @@ export default {
*/
resizeCallback
()
{
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
if
(
this
.
charResizeTimer
)
{
clearTimeout
(
this
.
charResizeTimer
);
this
.
charResizeTimer
=
null
;
...
...
@@ -1165,7 +1163,6 @@ export default {
},
500
);
},
/**
* Initialize the color array
*/
...
...
@@ -1192,7 +1189,7 @@ export default {
this
.
tagOperateList
=
[];
this
.
pageIndex
=
0
;
this
.
originDataArr
=
[];
this
.
oriDataDictionaries
=
{};
this
.
oriDataDictionaries
=
{};
this
.
curPageArr
=
[];
},
...
...
@@ -1214,7 +1211,6 @@ export default {
}
},
/**
* Delete the data that does not exist
* @param {Object} oriData Original summary and tag data
...
...
@@ -1334,16 +1330,16 @@ export default {
summaryColor
=
this
.
summaryOperateList
[
sameSummaryIndex
].
color
;
}
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
}
});
}
else
{
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
false
;
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
false
;
}
});
}
...
...
@@ -1399,17 +1395,16 @@ export default {
return
dataAddFlag
;
},
/**
* Updating all data
* @param {Boolean} ignoreError whether ignore error tip
*/
updateAllData
(
ignoreError
)
{
const
params
=
{};
const
params
=
{};
params
.
offset
=
0
;
params
.
limit
=
999
;
RequestService
.
getTrainJobs
(
params
,
ignoreError
)
RequestService
.
querySummaryList
(
params
,
ignoreError
)
.
then
((
res
)
=>
{
if
(
this
.
isReloading
)
{
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
...
...
@@ -1417,10 +1412,12 @@ export default {
}
// Fault tolerance processing
if
(
!
res
||
if
(
!
res
||
!
res
.
data
||
!
res
.
data
.
train_jobs
||
!
res
.
data
.
train_jobs
.
length
)
{
!
res
.
data
.
train_jobs
.
length
)
{
this
.
clearAllData
();
return
;
}
...
...
@@ -1440,7 +1437,9 @@ export default {
this
.
updateTagInPage
(
!
tagRemoveFlag
&&
!
tagAddFlag
);
this
.
resizeCallback
();
this
.
trainJobsCaches
();
if
(
Object
.
keys
(
this
.
multiSelectedSummaryNames
).
length
>
0
)
{
this
.
trainJobsCaches
();
}
});
},
this
.
requestErrorCallback
)
.
catch
((
e
)
=>
{
...
...
@@ -1483,7 +1482,7 @@ export default {
if
(
this
.
firstNum
===
0
)
{
return
;
}
this
.
smoothValueNumber
=
Number
(
val
);
this
.
smoothValueNumber
=
Number
(
val
);
if
(
this
.
smoothSliderValueTimer
)
{
clearTimeout
(
this
.
smoothSliderValueTimer
);
this
.
smoothSliderValueTimer
=
null
;
...
...
@@ -1496,26 +1495,26 @@ export default {
smoothValueChange
(
val
)
{
if
(
!
isNaN
(
val
))
{
if
(
Number
(
val
)
===
0
)
{
this
.
smoothValue
=
0
;
if
(
Number
(
val
)
===
0
)
{
this
.
smoothValue
=
0
;
}
if
(
Number
(
val
)
<
0
)
{
this
.
smoothValue
=
0
;
this
.
smoothValueNumber
=
0
;
if
(
Number
(
val
)
<
0
)
{
this
.
smoothValue
=
0
;
this
.
smoothValueNumber
=
0
;
}
if
(
Number
(
val
)
>
0
)
{
if
(
Number
(
val
)
>
0.99
)
{
this
.
smoothValue
=
0.99
;
this
.
smoothValueNumber
=
0.99
;
if
(
Number
(
val
)
>
0
)
{
if
(
Number
(
val
)
>
0.99
)
{
this
.
smoothValue
=
0.99
;
this
.
smoothValueNumber
=
0.99
;
}
else
{
this
.
smoothValue
=
Number
(
val
);
this
.
smoothValue
=
Number
(
val
);
}
}
}
},
smoothValueBlur
()
{
this
.
smoothValueNumber
=
this
.
smoothValue
;
this
.
smoothValueNumber
=
this
.
smoothValue
;
},
/**
...
...
@@ -1715,7 +1714,7 @@ export default {
background
:
#ffffff
;
.cl-eval-operate-component
{
margin-top
:
8px
;
margin-top
:
8px
;
}
}
.cl-eval-slider-operate-content
{
...
...
mindinsight/ui/src/views/train-manage/summary-manage.vue
浏览文件 @
0714b064
...
...
@@ -127,7 +127,7 @@ export default {
* @param {Object} params page info param
*/
querySummaryList
(
params
)
{
RequestService
.
querySummaryList
(
params
)
RequestService
.
querySummaryList
(
params
,
false
)
.
then
(
(
res
)
=>
{
if
(
res
&&
res
.
data
&&
res
.
data
.
train_jobs
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录