Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
c02079b0
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看板
提交
c02079b0
编写于
5月 22, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
9e41cd5c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
131 addition
and
185 deletion
+131
-185
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+1
-2
mindinsight/ui/src/views/train-manage/compare-plate.vue
mindinsight/ui/src/views/train-manage/compare-plate.vue
+18
-11
mindinsight/ui/src/views/train-manage/data-traceback.vue
mindinsight/ui/src/views/train-manage/data-traceback.vue
+60
-97
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+52
-75
未找到文件。
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
c02079b0
...
@@ -198,8 +198,7 @@
...
@@ -198,8 +198,7 @@
"searchByName"
:
"请输入算子名称搜索"
"searchByName"
:
"请输入算子名称搜索"
},
},
"components"
:
{
"components"
:
{
"summaryTitle"
:
"训练作业选择"
,
"summaryTitle"
:
"训练选择"
,
"tagTitle"
:
"标签选择"
,
"tagSelectTitle"
:
"标签选择"
,
"tagSelectTitle"
:
"标签选择"
,
"selectAll"
:
"全选"
,
"selectAll"
:
"全选"
,
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
...
...
mindinsight/ui/src/views/train-manage/compare-plate.vue
浏览文件 @
c02079b0
...
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
...
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
-->
-->
<
template
>
<
template
>
<div
class=
"cl-
scalar
-manage"
>
<div
class=
"cl-
compare
-manage"
>
<div
class=
"
scalar
-bk"
>
<div
class=
"
compare
-bk"
>
<div
class=
"cl-title cl-
scalar
-title"
>
<div
class=
"cl-title cl-
compare
-title"
>
<div
class=
"cl-title-left"
>
<div
class=
"cl-title-left"
>
{{
$t
(
"
summaryManage.comparePlate
"
)
}}
</div>
{{
$t
(
"
summaryManage.comparePlate
"
)
}}
</div>
</div>
</div>
...
@@ -141,10 +141,10 @@ export default {
...
@@ -141,10 +141,10 @@ export default {
title
:
this
.
$t
(
'
components.summaryTitle
'
),
title
:
this
.
$t
(
'
components.summaryTitle
'
),
},
},
tag
:
{
tag
:
{
title
:
this
.
$t
(
'
components.tagTitle
'
),
title
:
this
.
$t
(
'
components.tag
Select
Title
'
),
},
},
},
},
firstNum
:
0
,
// First
time
firstNum
:
0
,
// First
num
isActive
:
0
,
// Horizontal axis selected value
isActive
:
0
,
// Horizontal axis selected value
initOver
:
false
,
// Indicates whether the initialization is complete.
initOver
:
false
,
// Indicates whether the initialization is complete.
autoUpdateTimer
:
null
,
// Automatic refresh timer
autoUpdateTimer
:
null
,
// Automatic refresh timer
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
curBenchX
:
'
stepData
'
,
// Front axle reference
curBenchX
:
'
stepData
'
,
// Front axle reference
curAxisName
:
this
.
$t
(
'
scalar.step
'
),
// Current chart tip
curAxisName
:
this
.
$t
(
'
scalar.step
'
),
// Current chart tip
axisBenchChangeTimer
:
null
,
// Horizontal axis reference switching timing
axisBenchChangeTimer
:
null
,
// Horizontal axis reference switching timing
cacheStatus
:
'
CACHING
'
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -234,6 +235,12 @@ export default {
...
@@ -234,6 +235,12 @@ export default {
// remove the size of a window and change the listener
// remove the size of a window and change the listener
window
.
removeEventListener
(
'
resize
'
,
this
.
resizeCallback
);
window
.
removeEventListener
(
'
resize
'
,
this
.
resizeCallback
);
// remove axisBench value change timing
if
(
this
.
axisBenchChangeTimer
)
{
clearTimeout
(
this
.
axisBenchChangeTimer
);
this
.
axisBenchChangeTimer
=
null
;
}
// remove slider value change timing
// remove slider value change timing
if
(
this
.
smoothSliderValueTimer
)
{
if
(
this
.
smoothSliderValueTimer
)
{
clearTimeout
(
this
.
smoothSliderValueTimer
);
clearTimeout
(
this
.
smoothSliderValueTimer
);
...
@@ -253,7 +260,7 @@ export default {
...
@@ -253,7 +260,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
document
.
title
=
this
.
$t
(
'
summaryManage.comparePlate
'
)
+
'
-MindInsight
'
;
document
.
title
=
`
${
this
.
$t
(
'
summaryManage.comparePlate
'
)}
+ -MindInsight`
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// Adding a Listener
// Adding a Listener
window
.
addEventListener
(
'
resize
'
,
this
.
resizeCallback
,
false
);
window
.
addEventListener
(
'
resize
'
,
this
.
resizeCallback
,
false
);
...
@@ -305,7 +312,7 @@ export default {
...
@@ -305,7 +312,7 @@ export default {
show
:
true
,
show
:
true
,
});
});
if
(
summaryObj
.
cache_status
===
'
CACHING
'
)
{
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
tempSummaryList
.
forEach
((
item
)
=>
{
tempSummaryList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
item
.
loading
=
true
;
...
@@ -1322,7 +1329,7 @@ export default {
...
@@ -1322,7 +1329,7 @@ export default {
});
});
}
}
if
(
summaryObj
.
cache_status
===
'
CACHING
'
)
{
if
(
summaryObj
.
cache_status
===
this
.
cacheStatus
)
{
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
this
.
summaryOperateList
.
forEach
((
item
)
=>
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
if
(
item
.
label
===
summaryObj
.
train_id
)
{
item
.
loading
=
true
;
item
.
loading
=
true
;
...
@@ -1657,7 +1664,7 @@ export default {
...
@@ -1657,7 +1664,7 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.cl-
scalar
-manage
{
.cl-
compare
-manage
{
height
:
100%
;
height
:
100%
;
.w60
{
.w60
{
...
@@ -1668,13 +1675,13 @@ export default {
...
@@ -1668,13 +1675,13 @@ export default {
.borderspacing3
{
.borderspacing3
{
border-spacing
:
3px
;
border-spacing
:
3px
;
}
}
.
scalar
-bk
{
.
compare
-bk
{
height
:
100%
;
height
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.cl-
scalar
-title
{
.cl-
compare
-title
{
height
:
56px
;
height
:
56px
;
line-height
:
56px
;
line-height
:
56px
;
}
}
...
...
mindinsight/ui/src/views/train-manage/data-traceback.vue
浏览文件 @
c02079b0
...
@@ -47,22 +47,22 @@ limitations under the License.
...
@@ -47,22 +47,22 @@ limitations under the License.
:placeholder=
"$t('public.search')"
>
:placeholder=
"$t('public.search')"
>
</el-input>
</el-input>
</div>
</div>
<
el-
button
type=
"text"
<button
type=
"text"
@
click=
"allSelect"
@
click=
"allSelect"
class=
"select-all-button"
class=
"select-all-button"
style=
"color:#606266;"
:class=
"[selectCheckAll?'checked-color':'button-text',
:class=
"selectCheckAll?'checked-color':'button-text'
"
basearr.length>checkOptions.length ? 'btn-disabled' : '']
"
:disabled=
"basearr.length>checkOptions.length"
>
:disabled=
"basearr.length>checkOptions.length"
>
{{
$t
(
'
public.selectAll
'
)
}}
{{
$t
(
'
public.selectAll
'
)
}}
</
el-
button>
</button>
<
el-
button
type=
"text"
<button
type=
"text"
@
click=
"deselectAll"
@
click=
"deselectAll"
class=
"deselect-all-button"
class=
"deselect-all-button"
style=
"color:#606266;"
:class=
"[selectCheckAll?'checked-color':'button-text',
:class=
"!selectCheckAll?'checked-color':'button-text'
"
basearr.length>checkOptions.length ? 'btn-disabled' : '']
"
:disabled=
"basearr.length>checkOptions.length"
>
:disabled=
"basearr.length>checkOptions.length"
>
{{
$t
(
'
public.deselectAll
'
)
}}
{{
$t
(
'
public.deselectAll
'
)
}}
</
el-
button>
</button>
</div>
</div>
<el-option
v-for=
"item in checkOptions"
<el-option
v-for=
"item in checkOptions"
:key=
"item.value"
:key=
"item.value"
...
@@ -71,9 +71,7 @@ limitations under the License.
...
@@ -71,9 +71,7 @@ limitations under the License.
:disabled=
"item.disabled"
:disabled=
"item.disabled"
:title=
"item.disabled?$t('modelTraceback.mustExist'):''"
>
:title=
"item.disabled?$t('modelTraceback.mustExist'):''"
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -88,7 +86,9 @@ limitations under the License.
...
@@ -88,7 +86,9 @@ limitations under the License.
size=
"mini"
size=
"mini"
class=
"custom-btn"
class=
"custom-btn"
@
click=
"hiddenRecords"
@
click=
"hiddenRecords"
plain
>
{{
$t
(
'
modelTraceback.hide
'
)
}}
</el-button>
plain
>
{{
$t
(
'
modelTraceback.hide
'
)
}}
</el-button>
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"mini"
size=
"mini"
class=
"custom-btn"
class=
"custom-btn"
...
@@ -179,7 +179,6 @@ limitations under the License.
...
@@ -179,7 +179,6 @@ limitations under the License.
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- tag column -->
<!-- tag column -->
<el-table-column
label=
"tag"
<el-table-column
label=
"tag"
...
@@ -193,7 +192,7 @@ limitations under the License.
...
@@ -193,7 +192,7 @@ limitations under the License.
class=
"el-icon-arrow-down"
></i>
class=
"el-icon-arrow-down"
></i>
<img
:id=
"scope.row.summary_dir"
<img
:id=
"scope.row.summary_dir"
v-if=
"scope.row.tag"
v-if=
"scope.row.tag"
:src=
"require('@/assets/images/icon'+scope.row.tag+'.svg')"
>
:src=
"require('@/assets/images/icon'+
scope.row.tag+'.svg')"
>
<img
:id=
"scope.row.summary_dir"
<img
:id=
"scope.row.summary_dir"
v-else
v-else
src=
""
>
src=
""
>
...
@@ -207,8 +206,7 @@ limitations under the License.
...
@@ -207,8 +206,7 @@ limitations under the License.
:class=
"[item.number===scope.row.tag && scope.row.showIcon?'icon-border':'']"
:class=
"[item.number===scope.row.tag && scope.row.showIcon?'icon-border':'']"
v-for=
"item in imageList"
v-for=
"item in imageList"
:key=
"item.number"
:key=
"item.number"
@
click=
"iconValueChange(scope.row,item.number,$event)
@
click=
"iconValueChange(scope.row,item.number,$event)"
>
"
>
<img
:src=
"item.iconAdd"
>
<img
:src=
"item.iconAdd"
>
</div>
</div>
</div>
</div>
...
@@ -237,9 +235,7 @@ limitations under the License.
...
@@ -237,9 +235,7 @@ limitations under the License.
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div>
<div>
...
@@ -315,48 +311,8 @@ export default {
...
@@ -315,48 +311,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
iconValue
:
0
,
iconValue
:
0
,
imageList
:
[
// icon list of tag
{
imageList
:
[],
number
:
1
,
iconAdd
:
require
(
'
@/assets/images/icon1.svg
'
),
},
{
number
:
2
,
iconAdd
:
require
(
'
@/assets/images/icon2.svg
'
),
},
{
number
:
3
,
iconAdd
:
require
(
'
@/assets/images/icon3.svg
'
),
},
{
number
:
4
,
iconAdd
:
require
(
'
@/assets/images/icon4.svg
'
),
},
{
number
:
5
,
iconAdd
:
require
(
'
@/assets/images/icon5.svg
'
),
},
{
number
:
6
,
iconAdd
:
require
(
'
@/assets/images/icon6.svg
'
),
},
{
number
:
7
,
iconAdd
:
require
(
'
@/assets/images/icon7.svg
'
),
},
{
number
:
8
,
iconAdd
:
require
(
'
@/assets/images/icon8.svg
'
),
},
{
number
:
9
,
iconAdd
:
require
(
'
@/assets/images/icon9.svg
'
),
},
{
number
:
10
,
iconAdd
:
require
(
'
@/assets/images/icon10.svg
'
),
},
],
selectCheckAll
:
true
,
selectCheckAll
:
true
,
initOver
:
false
,
// Page initialization completed.
initOver
:
false
,
// Page initialization completed.
dataCheckedSummary
:
[],
dataCheckedSummary
:
[],
...
@@ -526,6 +482,13 @@ export default {
...
@@ -526,6 +482,13 @@ export default {
},
},
computed
:
{},
computed
:
{},
mounted
()
{
mounted
()
{
this
.
imageList
=
[];
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
const
obj
=
{};
obj
.
number
=
i
+
1
;
obj
.
iconAdd
=
require
(
'
@/assets/images/icon
'
+
obj
.
number
+
'
.svg
'
);
this
.
imageList
.
push
(
obj
);
}
document
.
title
=
this
.
$t
(
'
summaryManage.dataTraceback
'
)
+
'
-MindInsight
'
;
document
.
title
=
this
.
$t
(
'
summaryManage.dataTraceback
'
)
+
'
-MindInsight
'
;
document
.
addEventListener
(
'
click
'
,
this
.
blurFloat
,
true
);
document
.
addEventListener
(
'
click
'
,
this
.
blurFloat
,
true
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -544,7 +507,6 @@ export default {
...
@@ -544,7 +507,6 @@ export default {
});
});
}
}
},
},
/**
/**
* Display of the icon dialog box
* Display of the icon dialog box
* @param {Object} row
* @param {Object} row
...
@@ -621,10 +583,9 @@ export default {
...
@@ -621,10 +583,9 @@ export default {
},
},
/**
/**
*
cancelChangeIcon
*
Cancel Save
* @param {Object} row
* @param {Object} row
*/
*/
cancelChangeIcon
(
row
)
{
cancelChangeIcon
(
row
)
{
const
classArr
=
document
.
querySelectorAll
(
'
.icon-border
'
);
const
classArr
=
document
.
querySelectorAll
(
'
.icon-border
'
);
classArr
.
forEach
((
item
)
=>
{
classArr
.
forEach
((
item
)
=>
{
...
@@ -779,13 +740,11 @@ export default {
...
@@ -779,13 +740,11 @@ export default {
}
}
});
});
});
});
this
.
dataCheckedSummary
=
[];
this
.
dataCheckedSummary
=
[];
this
.
table
.
data
=
tableTemp
;
this
.
table
.
data
=
tableTemp
;
this
.
showNumber
=
tableTemp
.
length
;
this
.
showNumber
=
tableTemp
.
length
;
this
.
echart
.
showData
=
tempEchartData
;
this
.
echart
.
showData
=
tempEchartData
;
this
.
$refs
.
table
.
clearSelection
();
this
.
$refs
.
table
.
clearSelection
();
if
(
this
.
echart
.
showData
.
length
>
0
)
{
if
(
this
.
echart
.
showData
.
length
>
0
)
{
this
.
initChart
();
this
.
initChart
();
}
else
{
}
else
{
...
@@ -808,6 +767,7 @@ export default {
...
@@ -808,6 +767,7 @@ export default {
}
}
this
.
checkOptions
=
[];
this
.
checkOptions
=
[];
this
.
selectArrayValue
=
[];
this
.
selectArrayValue
=
[];
this
.
basearr
=
[];
const
params
=
{
const
params
=
{
body
:
{},
body
:
{},
};
};
...
@@ -869,7 +829,7 @@ export default {
...
@@ -869,7 +829,7 @@ export default {
},
},
/**
/**
* Select data in the table
* Select
ed
data in the table
*/
*/
selectValueChange
()
{
selectValueChange
()
{
const
templist
=
[];
const
templist
=
[];
...
@@ -1221,7 +1181,7 @@ export default {
...
@@ -1221,7 +1181,7 @@ export default {
* @param {Object} scope
* @param {Object} scope
*/
*/
showDialogData
(
val
,
scope
)
{
showDialogData
(
val
,
scope
)
{
if
(
typeof
val
!==
'
string
'
||
val
==
'
{}
'
)
{
if
(
typeof
val
!==
'
string
'
||
val
==
=
'
{}
'
)
{
return
;
return
;
}
else
{
}
else
{
const
isJson
=
this
.
isJSON
(
val
);
const
isJson
=
this
.
isJSON
(
val
);
...
@@ -1370,7 +1330,6 @@ export default {
...
@@ -1370,7 +1330,6 @@ export default {
if
(
this
.
noFixedSeries
.
length
)
{
if
(
this
.
noFixedSeries
.
length
)
{
this
.
setObjectValue
(
this
.
noFixedSeries
,
false
);
this
.
setObjectValue
(
this
.
noFixedSeries
,
false
);
}
}
const
list1
=
this
.
fixedSeries
.
concat
(
this
.
noFixedSeries
);
const
list1
=
this
.
fixedSeries
.
concat
(
this
.
noFixedSeries
);
list1
.
forEach
((
item
,
index
)
=>
{
list1
.
forEach
((
item
,
index
)
=>
{
this
.
checkOptions
[
index
]
=
{};
this
.
checkOptions
[
index
]
=
{};
...
@@ -1389,7 +1348,6 @@ export default {
...
@@ -1389,7 +1348,6 @@ export default {
});
});
this
.
hidenDirChecked
=
this
.
$store
.
state
.
hidenDirChecked
||
[];
this
.
hidenDirChecked
=
this
.
$store
.
state
.
hidenDirChecked
||
[];
this
.
echart
.
brushData
=
this
.
lineagedata
.
serData
;
this
.
echart
.
brushData
=
this
.
lineagedata
.
serData
;
if
(
this
.
hidenDirChecked
.
length
)
{
if
(
this
.
hidenDirChecked
.
length
)
{
const
listdada
=
this
.
lineagedata
.
serData
.
slice
();
const
listdada
=
this
.
lineagedata
.
serData
.
slice
();
this
.
hidenDirChecked
.
forEach
((
item
)
=>
{
this
.
hidenDirChecked
.
forEach
((
item
)
=>
{
...
@@ -1399,7 +1357,6 @@ export default {
...
@@ -1399,7 +1357,6 @@ export default {
}
}
});
});
});
});
if
(
listdada
.
length
)
{
if
(
listdada
.
length
)
{
this
.
showEchartPic
=
true
;
this
.
showEchartPic
=
true
;
}
else
{
}
else
{
...
@@ -1410,7 +1367,6 @@ export default {
...
@@ -1410,7 +1367,6 @@ export default {
this
.
echart
.
showData
=
this
.
echart
.
brushData
;
this
.
echart
.
showData
=
this
.
echart
.
brushData
;
this
.
showEchartPic
=
true
;
this
.
showEchartPic
=
true
;
}
}
this
.
setEchartValue
();
this
.
setEchartValue
();
this
.
initChart
();
this
.
initChart
();
// Total number of pages in the table
// Total number of pages in the table
...
@@ -1464,7 +1420,6 @@ export default {
...
@@ -1464,7 +1420,6 @@ export default {
/**
/**
* reset echart data.Show all data
* reset echart data.Show all data
*
*/
*/
echartShowAllData
()
{
echartShowAllData
()
{
// The first page is displayed.
// The first page is displayed.
...
@@ -1474,6 +1429,7 @@ export default {
...
@@ -1474,6 +1429,7 @@ export default {
// checkOptions initializate to an empty array
// checkOptions initializate to an empty array
this
.
checkOptions
=
[];
this
.
checkOptions
=
[];
this
.
selectArrayValue
=
[];
this
.
selectArrayValue
=
[];
this
.
basearr
=
[];
this
.
pagination
.
currentPage
=
1
;
this
.
pagination
.
currentPage
=
1
;
this
.
$store
.
commit
(
'
setSummaryDirList
'
,
undefined
);
this
.
$store
.
commit
(
'
setSummaryDirList
'
,
undefined
);
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
...
@@ -1543,6 +1499,7 @@ export default {
...
@@ -1543,6 +1499,7 @@ export default {
};
};
this
.
checkOptions
=
[];
this
.
checkOptions
=
[];
this
.
selectArrayValue
=
[];
this
.
selectArrayValue
=
[];
this
.
basearr
=
[];
this
.
pagination
.
currentPage
=
1
;
this
.
pagination
.
currentPage
=
1
;
params
.
body
=
Object
.
assign
({},
tempParam
,
this
.
tableFilter
);
params
.
body
=
Object
.
assign
({},
tempParam
,
this
.
tableFilter
);
this
.
queryLineagesData
(
params
);
this
.
queryLineagesData
(
params
);
...
@@ -1633,7 +1590,6 @@ export default {
...
@@ -1633,7 +1590,6 @@ export default {
}
else
{
}
else
{
tempId
=
`
${
nodeItem
.
name
}${
tempDic
[
nodeItem
.
name
]}
`
;
tempId
=
`
${
nodeItem
.
name
}${
tempDic
[
nodeItem
.
name
]}
`
;
}
}
fullNodeList
.
splice
(
startIndex
,
0
,
{
fullNodeList
.
splice
(
startIndex
,
0
,
{
name
:
nodeItem
.
name
,
name
:
nodeItem
.
name
,
id
:
tempId
,
id
:
tempId
,
...
@@ -1842,6 +1798,29 @@ export default {
...
@@ -1842,6 +1798,29 @@ export default {
.el-tag.el-tag--info
.el-tag__close
{
.el-tag.el-tag--info
.el-tag__close
{
display
:
none
;
display
:
none
;
}
}
.select-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
80px
;
padding
:
5px
;
height
:
32px
;
border
:
none
;
background
:
none
;
}
.deselect-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
10px
;
padding
:
5px
;
height
:
32px
;
border
:
none
;
background
:
none
;
}
.btn-disabled
{
cursor
:
not
-
allowed
!
important
;
}
#cl-data-traceback
{
#cl-data-traceback
{
height
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
@@ -1849,22 +1828,6 @@ export default {
...
@@ -1849,22 +1828,6 @@ export default {
.inline-block-set
{
.inline-block-set
{
display
:
inline-block
;
display
:
inline-block
;
}
}
.select-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
70px
;
padding
:
5px
;
height
:
32px
;
}
.deselect-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
6px
;
padding
:
5px
;
height
:
32px
;
}
.icon-border
{
.icon-border
{
border
:
1px
solid
#00a5a7
!
important
;
border
:
1px
solid
#00a5a7
!
important
;
}
}
...
@@ -2076,9 +2039,9 @@ export default {
...
@@ -2076,9 +2039,9 @@ export default {
position
:
relative
;
position
:
relative
;
}
}
td
:first-child::before
{
td
:first-child::before
{
width
:
20
px
;
width
:
42
px
;
background
:
#f
ff
;
background
:
#f
0fdfd
;
border-right
:
3px
solid
#7693e1
;
border-right
:
2px
#00a5a7
solid
;
z-index
:
10
;
z-index
:
10
;
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
...
...
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
c02079b0
...
@@ -37,23 +37,24 @@ limitations under the License.
...
@@ -37,23 +37,24 @@ limitations under the License.
@
input=
"myfilter"
@
input=
"myfilter"
:placeholder=
"$t('public.search')"
></el-input>
:placeholder=
"$t('public.search')"
></el-input>
</div>
</div>
<el-button
type=
"text"
<button
type=
"text"
@
click=
"allSelect"
@
click=
"allSelect"
class=
"select-all-button"
class=
"select-all-button"
style=
"color:#606266"
:class=
"[selectCheckAll?
:class=
"selectCheckAll?'checked-color':'button-text'"
'checked-color':'button-text',
:disabled=
"basearr.length>checkOptions.length"
>
basearr.length>checkOptions.length?'btn-disabled':'']"
:disabled=
"basearr.length>checkOptions.length"
>
{{
$t
(
'
public.selectAll
'
)
}}
{{
$t
(
'
public.selectAll
'
)
}}
</
el-
button>
</button>
<button
type=
"text"
<el-button
type=
"text
"
@
click=
"deselectAll
"
@
click=
"deselectAll
"
class=
"deselect-all-button
"
class=
"deselect-all-button"
:class=
"[!selectCheckAll?
style=
"color:#606266"
'checked-color':'button-text',
:class=
"!selectCheckAll?'checked-color':'button-text'
"
basearr.length>checkOptions.length?'btn-disabled':'']
"
:disabled=
"basearr.length>checkOptions.length"
>
:disabled=
"basearr.length>checkOptions.length"
>
{{
$t
(
'
public.deselectAll
'
)
}}
{{
$t
(
'
public.deselectAll
'
)
}}
</
el-
button>
</button>
</div>
</div>
<el-option-group
v-for=
"group in checkOptions"
<el-option-group
v-for=
"group in checkOptions"
:key=
"group.label"
:key=
"group.label"
...
@@ -340,48 +341,7 @@ export default {
...
@@ -340,48 +341,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
iconValue
:
0
,
iconValue
:
0
,
imageList
:
[
imageList
:
[],
{
number
:
1
,
iconAdd
:
require
(
'
@/assets/images/icon1.svg
'
),
},
{
number
:
2
,
iconAdd
:
require
(
'
@/assets/images/icon2.svg
'
),
},
{
number
:
3
,
iconAdd
:
require
(
'
@/assets/images/icon3.svg
'
),
},
{
number
:
4
,
iconAdd
:
require
(
'
@/assets/images/icon4.svg
'
),
},
{
number
:
5
,
iconAdd
:
require
(
'
@/assets/images/icon5.svg
'
),
},
{
number
:
6
,
iconAdd
:
require
(
'
@/assets/images/icon6.svg
'
),
},
{
number
:
7
,
iconAdd
:
require
(
'
@/assets/images/icon7.svg
'
),
},
{
number
:
8
,
iconAdd
:
require
(
'
@/assets/images/icon8.svg
'
),
},
{
number
:
9
,
iconAdd
:
require
(
'
@/assets/images/icon9.svg
'
),
},
{
number
:
10
,
iconAdd
:
require
(
'
@/assets/images/icon10.svg
'
),
},
],
// Select all
// Select all
selectCheckAll
:
true
,
selectCheckAll
:
true
,
// Number of data records returned by the interface.
// Number of data records returned by the interface.
...
@@ -453,6 +413,13 @@ export default {
...
@@ -453,6 +413,13 @@ export default {
},
},
computed
:
{},
computed
:
{},
mounted
()
{
mounted
()
{
this
.
imageList
=
[];
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
const
obj
=
{};
obj
.
number
=
i
+
1
;
obj
.
iconAdd
=
require
(
'
@/assets/images/icon
'
+
obj
.
number
+
'
.svg
'
);
this
.
imageList
.
push
(
obj
);
}
document
.
title
=
this
.
$t
(
'
summaryManage.modelTraceback
'
)
+
'
-MindInsight
'
;
document
.
title
=
this
.
$t
(
'
summaryManage.modelTraceback
'
)
+
'
-MindInsight
'
;
document
.
addEventListener
(
'
click
'
,
this
.
blurFloat
,
true
);
document
.
addEventListener
(
'
click
'
,
this
.
blurFloat
,
true
);
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
...
@@ -844,6 +811,7 @@ export default {
...
@@ -844,6 +811,7 @@ export default {
this
.
hyperOptions
=
[];
this
.
hyperOptions
=
[];
this
.
otherTypeOptions
=
[];
this
.
otherTypeOptions
=
[];
this
.
checkOptions
=
[];
this
.
checkOptions
=
[];
this
.
basearr
=
[];
this
.
selectArrayValue
=
[];
this
.
selectArrayValue
=
[];
// Obtain the hidden summary_dir list after initialization.
// Obtain the hidden summary_dir list after initialization.
this
.
hidenDirChecked
=
this
.
$store
.
state
.
hidenDirChecked
||
[];
this
.
hidenDirChecked
=
this
.
$store
.
state
.
hidenDirChecked
||
[];
...
@@ -1037,8 +1005,10 @@ export default {
...
@@ -1037,8 +1005,10 @@ export default {
otherType
.
label
=
this
.
table
.
columnOptions
[
item
].
label
;
otherType
.
label
=
this
.
table
.
columnOptions
[
item
].
label
;
if
(
if
(
otherType
.
value
===
'
loss
'
||
otherType
.
value
===
'
loss
'
||
otherType
.
value
===
'
网络
'
||
otherType
.
value
===
otherType
.
value
===
'
优化器
'
this
.
$t
(
'
modelTraceback.network
'
)
||
otherType
.
value
===
this
.
$t
(
'
modelTraceback.optimizer
'
)
)
{
)
{
otherType
.
disabled
=
true
;
otherType
.
disabled
=
true
;
}
}
...
@@ -1887,6 +1857,29 @@ export default {
...
@@ -1887,6 +1857,29 @@ export default {
.el-tag.el-tag--info
.el-tag__close
{
.el-tag.el-tag--info
.el-tag__close
{
display
:
none
;
display
:
none
;
}
}
.btn-disabled
{
cursor
:
not
-
allowed
!
important
;
}
.select-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
80px
;
padding
:
5px
;
height
:
32px
;
border
:
none
;
background
:
none
;
}
.deselect-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
10px
;
padding
:
5px
;
height
:
32px
;
border
:
none
;
background
:
none
;
}
#cl-model-traceback
{
#cl-model-traceback
{
height
:
100%
;
height
:
100%
;
...
@@ -1986,22 +1979,6 @@ export default {
...
@@ -1986,22 +1979,6 @@ export default {
.button-text
{
.button-text
{
color
:
#606266
!
important
;
color
:
#606266
!
important
;
}
}
.select-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
70px
;
padding
:
5px
;
height
:
32px
;
}
.deselect-all-button
{
padding
:
4px
0
;
display
:
inline-block
;
position
:
absolute
;
right
:
6px
;
padding
:
5px
;
height
:
32px
;
}
.cl-model-right
{
.cl-model-right
{
display
:
flex
;
display
:
flex
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录