Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
bd33e306
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看板
提交
bd33e306
编写于
5月 28, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix issue
上级
167ab2ed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
158 addition
and
91 deletion
+158
-91
mindinsight/ui/src/components/multiselectGroup.vue
mindinsight/ui/src/components/multiselectGroup.vue
+9
-8
mindinsight/ui/src/store.js
mindinsight/ui/src/store.js
+4
-0
mindinsight/ui/src/views/train-manage/data-traceback.vue
mindinsight/ui/src/views/train-manage/data-traceback.vue
+79
-45
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+66
-38
未找到文件。
mindinsight/ui/src/components/multiselectGroup.vue
浏览文件 @
bd33e306
...
...
@@ -171,7 +171,7 @@ export default {
break
;
}
const
listItem
=
this
.
checkListArr
[
i
];
if
(
listItem
.
show
)
{
if
(
listItem
.
show
&&
!
listItem
.
checked
)
{
listItem
.
checked
=
true
;
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
this
.
selectedNumber
++
;
...
...
@@ -309,23 +309,24 @@ export default {
const
loopCount
=
this
.
checkListArr
.
length
;
for
(
let
i
=
0
;
i
<
loopCount
;
i
++
)
{
const
listItem
=
this
.
checkListArr
[
i
];
if
(
reg
.
test
(
listItem
.
label
))
{
listItem
.
show
=
true
;
if
(
listItem
.
checked
)
{
if
(
this
.
selectedNumber
>=
this
.
limitNum
)
{
listItem
.
checked
=
false
;
itemSelectAll
=
false
;
}
else
if
(
listItem
.
checked
)
{
}
else
{
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
this
.
selectedNumber
++
;
}
else
{
itemSelectAll
=
false
;
}
}
if
(
reg
.
test
(
listItem
.
label
))
{
listItem
.
show
=
true
;
}
else
{
listItem
.
show
=
false
;
}
}
if
(
!
itemSelectAll
&&
this
.
selectedNumber
>=
this
.
limitNum
)
{
if
(
this
.
selectedNumber
>=
this
.
limitNum
)
{
itemSelectAll
=
true
;
}
else
{
itemSelectAll
=
false
;
}
}
else
{
this
.
checkListArr
.
forEach
((
listItem
)
=>
{
...
...
mindinsight/ui/src/store.js
浏览文件 @
bd33e306
...
...
@@ -32,6 +32,7 @@ export default new Vuex.Store({
:
3
,
// multiSelevtGroup component count
multiSelectedGroupCount
:
0
,
tableId
:
0
,
},
mutations
:
{
// set cancelTokenArr
...
...
@@ -72,6 +73,9 @@ export default new Vuex.Store({
multiSelectedGroupComponentNum
(
state
)
{
state
.
multiSelectedGroupCount
++
;
},
increaseTableId
(
state
)
{
state
.
tableId
++
;
},
},
actions
:
{},
});
mindinsight/ui/src/views/train-manage/data-traceback.vue
浏览文件 @
bd33e306
...
...
@@ -24,11 +24,12 @@ limitations under the License.
type=
"primary"
size=
"mini"
plain
v-show=
"(summaryDirList
&&!summaryDirList.length)||(totalSeries&&
totalSeries.length)"
>
v-show=
"(summaryDirList
&& !summaryDirList.length)||(totalSeries &&
totalSeries.length)"
>
{{
$t
(
'
modelTraceback.showAllData
'
)
}}
</el-button>
<div
class=
"select-container"
v-show=
"totalSeries&&totalSeries.length&&(!summaryDirList||(summaryDirList&&summaryDirList.length))"
>
v-show=
"totalSeries && totalSeries.length &&
(!summaryDirList || (summaryDirList && summaryDirList.length))"
>
<div
class=
"display-column"
>
{{
$t
(
'
modelTraceback.displayColumn
'
)
}}
</div>
...
...
@@ -50,17 +51,17 @@ limitations under the License.
<button
type=
"text"
@
click=
"allSelect"
class=
"select-all-button"
:class=
"[selectCheckAll
?'checked-color':
'button-text',
basearr.length
>
checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length
>
checkOptions.length"
>
:class=
"[selectCheckAll
? 'checked-color' :
'button-text',
basearr.length
>
checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length
>
checkOptions.length"
>
{{
$t
(
'
public.selectAll
'
)
}}
</button>
<button
type=
"text"
@
click=
"deselectAll"
class=
"deselect-all-button"
:class=
"[!selectCheckAll
?'checked-color':
'button-text',
basearr.length
>
checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length
>
checkOptions.length"
>
:class=
"[!selectCheckAll
? 'checked-color' :
'button-text',
basearr.length
>
checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length
>
checkOptions.length"
>
{{
$t
(
'
public.deselectAll
'
)
}}
</button>
</div>
...
...
@@ -69,7 +70,7 @@ limitations under the License.
:label=
"item.label"
:value=
"item.value"
:disabled=
"item.disabled"
:title=
"item.disabled
?$t('modelTraceback.mustExist'):
''"
>
:title=
"item.disabled
? $t('modelTraceback.mustExist') :
''"
>
</el-option>
</el-select>
</div>
...
...
@@ -79,7 +80,8 @@ limitations under the License.
<div
id=
"data-echart"
v-show=
"showEchartPic && !echartNoData"
></div>
<div
class=
"echart-nodata-container"
v-show=
"!showEchartPic && showTable"
></div>
v-show=
"!showEchartPic && showTable && !(summaryDirList && !summaryDirList.length)"
>
</div>
<div
class=
"btns-container"
v-show=
"!echartNoData && showTable"
>
<el-button
type=
"primary"
...
...
@@ -103,7 +105,7 @@ limitations under the License.
<el-table
ref=
"table"
:data=
"table.data"
tooltip-effect=
"light"
height=
"calc(100% -
54
px)"
height=
"calc(100% -
40
px)"
row-key=
"summary_dir"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"tableSortChange"
>
...
...
@@ -116,8 +118,8 @@ limitations under the License.
:key=
"key"
:prop=
"key"
:label=
"table.columnOptions[key].label"
:sortable=
"sortArray.includes(table.columnOptions[key].label)
?'custom':
false"
:fixed=
"table.columnOptions[key].label
===
text?true:false"
:sortable=
"sortArray.includes(table.columnOptions[key].label)
? 'custom' :
false"
:fixed=
"table.columnOptions[key].label
===
text?true:false"
min-width=
"200"
show-overflow-tooltip
>
<template
slot=
"header"
...
...
@@ -151,7 +153,7 @@ limitations under the License.
</el-table-column>
<!-- remark column -->
<el-table-column
fixed=
"right"
width=
"
31
0"
>
width=
"
26
0"
>
<
template
slot=
"header"
>
<div>
<div
class=
"label-text"
>
{{
$t
(
'
public.remark
'
)
}}
</div>
...
...
@@ -208,10 +210,10 @@ limitations under the License.
<div>
<div
class=
"icon-image-container"
>
<div
class=
"icon-image"
: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"
:key=
"item.number"
@
click=
"iconValueChange(scope.row,
item.number,
$event)"
>
@
click=
"iconValueChange(scope.row,
item.number,
$event)"
>
<img
:src=
"item.iconAdd"
>
</div>
</div>
...
...
@@ -243,33 +245,34 @@ limitations under the License.
</
template
>
</el-table-column>
</el-table>
<div>
<div
class=
"hide-count"
v-show=
"recordsNumber-showNumber"
>
{{ $t('modelTraceback.totalHide').replace(`{n}`,(recordsNumber-showNumber))}}
</div>
<div
class=
"pagination-container"
>
<el-pagination
@
current-change=
"handleCurrentChange"
:current-page=
"pagination.currentPage"
:page-size=
"pagination.pageSize"
:layout=
"pagination.layout"
:total=
"pagination.total"
>
</el-pagination>
<div
class=
"hide-count"
v-show=
"recordsNumber-showNumber"
>
{{ $t('modelTraceback.totalHide').replace(`{n}`, (recordsNumber-showNumber))}}
</div>
<div
class=
"clear"
></div>
</div>
</div>
<div
v-show=
"((!lineagedata.serData || !lineagedata.serData.length) && initOver)
||(echartNoData
&&(lineagedata.serData&&
!!lineagedata.serData.length))"
||(echartNoData
&& (lineagedata.serData &&
!!lineagedata.serData.length))"
class=
"no-data-page"
>
<div
class=
"no-data-img"
>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
<p
class=
"no-data-text"
v-show=
"!summaryDirList
||(summaryDirList&&summaryDirList.length)&&
!lineagedata.serData"
>
v-show=
"!summaryDirList
|| (summaryDirList && summaryDirList.length) &&
!lineagedata.serData"
>
{{ $t('public.noData') }}
</p>
<div
v-show=
"echartNoData
&&(lineagedata.serData&&
!!lineagedata.serData.length)"
>
<div
v-show=
"echartNoData
&& (lineagedata.serData &&
!!lineagedata.serData.length)"
>
<p
class=
"no-data-text"
>
{{ $t('dataTraceback.noDataFound') }}
</p>
</div>
<div
v-show=
"summaryDirList
&&
!summaryDirList.length"
>
<div
v-show=
"summaryDirList
&&
!summaryDirList.length"
>
<p
class=
"no-data-text"
>
{{ $t('dataTraceback.noDataFound') }}
</p>
<p
class=
"no-data-text"
>
{{ $t('dataTraceback.click') }}
...
...
@@ -494,7 +497,7 @@ export default {
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
);
this
.
$nextTick
(()
=>
{
this
.
init
();
...
...
@@ -527,8 +530,8 @@ export default {
return
;
}
row
.
showIcon
=
true
;
const
e
=
window
.
event
;
document
.
getElementById
(
'
icon-dialog
'
).
style
.
top
=
e
.
clientY
+
'
px
'
;
document
.
getElementById
(
'
icon-dialog
'
).
style
.
top
=
window
.
event
.
clientY
+
'
px
'
;
},
iconValueChange
(
row
,
num
,
event
)
{
...
...
@@ -575,6 +578,13 @@ export default {
*/
clearIcon
(
row
)
{
const
classWrap
=
event
.
path
.
find
((
item
)
=>
{
return
item
.
className
===
'
icon-dialog
'
;
});
const
classArr
=
classWrap
.
querySelectorAll
(
'
.icon-border
'
);
classArr
.
forEach
((
item
)
=>
{
item
.
classList
.
remove
(
'
icon-border
'
);
});
row
.
showIcon
=
false
;
this
.
iconValue
=
0
;
row
.
tag
=
0
;
...
...
@@ -848,7 +858,7 @@ export default {
}
this
.
initChart
();
const
list
=
[];
this
.
checkOptions
.
forEach
((
item
)
=>
{
this
.
basearr
.
forEach
((
item
)
=>
{
this
.
selectArrayValue
.
forEach
((
i
)
=>
{
if
(
i
===
item
.
value
)
{
list
.
push
(
i
);
...
...
@@ -917,7 +927,7 @@ export default {
});
}
const
list
=
[];
this
.
checkOptions
.
forEach
((
item
)
=>
{
this
.
basearr
.
forEach
((
item
)
=>
{
this
.
selectArrayValue
.
forEach
((
i
)
=>
{
if
(
i
===
item
.
value
)
{
const
obj
=
{};
...
...
@@ -1061,6 +1071,9 @@ export default {
this
.
showTable
=
false
;
this
.
echartNoData
=
true
;
}
else
{
const
echartLength
=
this
.
echart
.
brushData
.
length
;
this
.
recordsNumber
=
echartLength
;
this
.
showNumber
=
echartLength
;
this
.
echart
.
showData
=
this
.
echart
.
brushData
;
this
.
initChart
();
this
.
pagination
.
currentPage
=
1
;
...
...
@@ -1431,6 +1444,7 @@ export default {
this
.
initOver
=
false
;
this
.
echartNoData
=
false
;
this
.
showEchartPic
=
true
;
this
.
selectCheckAll
=
true
;
// checkOptions initializate to an empty array
this
.
checkOptions
=
[];
this
.
selectArrayValue
=
[];
...
...
@@ -1733,7 +1747,9 @@ export default {
const
item
=
{};
item
.
key
=
k
;
item
.
value
=
dataObj
[
key
][
k
];
item
.
id
=
(
index
+
1
)
*
10
+
1
+
j
;
item
.
id
=
`
${
new
Date
().
getTime
()}
`
+
`
${
this
.
$store
.
state
.
tableId
}
`
;
this
.
$store
.
commit
(
'
increaseTableId
'
);
tempData
.
children
.
push
(
item
);
});
}
...
...
@@ -1775,14 +1791,15 @@ export default {
<
style
lang=
"scss"
>
.label-text
{
line-height
:
20px
!
important
;
vertical-align
:
bottom
;
padding-top
:
20px
;
display
:
block
!
important
;
}
.remark-tip
{
line-height
:
14
px
!
important
;
line-height
:
20
px
!
important
;
font-size
:
12px
;
white-space
:
pre-wrap
!
important
;
vertical-align
:
bottom
;
color
:
gray
;
display
:
block
!
important
;
}
.el-color-dropdown__main-wrapper
,
.el-color-dropdown__value
,
...
...
@@ -1841,6 +1858,13 @@ export default {
height
:
100%
;
overflow-y
:
auto
;
position
:
relative
;
.el-table
th
.is-leaf
{
background
:
#f5f7fa
;
}
.el-table
td
,
.el-table
th
.is-leaf
{
border
:
1px
solid
#ebeef5
;
}
.inline-block-set
{
display
:
inline-block
;
}
...
...
@@ -1878,7 +1902,7 @@ export default {
.no-data-page
{
width
:
100%
;
height
:
100%
;
padding-top
:
2
24
px
;
padding-top
:
2
00
px
;
}
.no-data-img
{
background
:
#fff
;
...
...
@@ -1944,6 +1968,7 @@ export default {
.data-checkbox-area
{
position
:
relative
;
margin
:
24px
32px
12px
;
height
:
46px
;
.reset-btn
{
position
:
absolute
;
right
:
0px
;
...
...
@@ -1951,12 +1976,12 @@ export default {
}
}
#data-echart
{
height
:
3
4
%
;
height
:
3
2
%
;
width
:
100%
;
padding
:
0
12px
;
}
.echart-nodata-container
{
height
:
3
4
%
;
height
:
3
2
%
;
width
:
100%
;
}
.btn-container-margin
{
...
...
@@ -1975,8 +2000,8 @@ export default {
.table-container
{
background-color
:
white
;
height
:
calc
(
6
0%
-
9
0px
);
margin
:
6px
32px
0
;
height
:
calc
(
6
8%
-
13
0px
);
padding
:
6px
32px
;
position
:
relative
;
.custom-label
{
max-width
:
calc
(
100%
-
25px
);
...
...
@@ -1997,24 +2022,33 @@ export default {
.click-span
{
cursor
:
pointer
;
}
.clear
{
clear
:
both
;
}
.hide-count
{
display
:
inline-block
;
position
:
absolute
;
right
:
450px
;
height
:
32px
;
line-height
:
32px
;
padding-top
:
12px
;
color
:
red
;
float
:
right
;
margin-right
:
10px
;
}
.el-pagination
{
position
:
absolute
;
right
:
0
px
;
float
:
right
;
margin-right
:
32
px
;
bottom
:
10px
;
}
.pagination-container
{
height
:
40px
;
}
}
}
.details-data-list
{
.el-table
td
,
.el-table
th
.is-leaf
{
border
:
none
;
border-top
:
1px
solid
#ebeef5
;
}
.el-table
{
th
{
padding
:
10px
0
;
...
...
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
bd33e306
...
...
@@ -20,7 +20,7 @@ limitations under the License.
<div
class=
"select-box"
v-if=
"!noData &&
(!summaryDirList || (summaryDirList && summaryDirList.length))"
>
<div
v-show=
"showTable
&&
!noData"
<div
v-show=
"showTable
&&
!noData"
class=
"select-container"
>
<!-- multiple collapse-tags -->
<div
class=
"display-column"
>
{{
$t
(
'
modelTraceback.displayColumn
'
)
}}
</div>
...
...
@@ -40,19 +40,18 @@ limitations under the License.
<button
type=
"text"
@
click=
"allSelect"
class=
"select-all-button"
:class=
"[selectCheckAll?
'checked-color':'button-text',
basearr.length>checkOptions.length?'btn-disabled':'']"
:disabled=
"basearr.length>checkOptions.length"
>
:class=
"[selectCheckAll ? 'checked-color' : 'button-text',
basearr.length > checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length > checkOptions.length"
>
{{
$t
(
'
public.selectAll
'
)
}}
</button>
<button
type=
"text"
@
click=
"deselectAll"
class=
"deselect-all-button"
:class=
"[!selectCheckAll?
'checked-color'
:
'button-text',
basearr.length
>checkOptions.length?'btn-disabled':
'']"
:disabled=
"basearr.length
>
checkOptions.length"
>
'checked-color'
:
'button-text',
basearr.length
> checkOptions.length ? 'btn-disabled' :
'']"
:disabled=
"basearr.length
>
checkOptions.length"
>
{{
$t
(
'
public.deselectAll
'
)
}}
</button>
</div>
...
...
@@ -64,7 +63,7 @@ limitations under the License.
:label=
"item.label"
:value=
"item.value"
:disabled=
"item.disabled"
:title=
"item.disabled
?$t('modelTraceback.mustExist'):
''"
>
:title=
"item.disabled
? $t('modelTraceback.mustExist') :
''"
>
</el-option>
</el-option-group>
</el-select>
...
...
@@ -82,19 +81,19 @@ limitations under the License.
type=
"primary"
size=
"mini"
plain
v-if=
"(!noData
&&
basearr.length) ||
v-if=
"(!noData
&&
basearr.length) ||
(noData && summaryDirList && !summaryDirList.length)"
>
{{
$t
(
'
modelTraceback.showAllData
'
)
}}
</el-button>
</div>
</div>
<div
id=
"echart"
v-show=
"!noData
&&
showEchartPic"
></div>
v-show=
"!noData
&&
showEchartPic"
></div>
<div
class=
"echart-no-data"
v-show=
"!showEchartPic"
>
</div>
<div
class=
"btns-container"
v-show=
"showTable
&&
!noData"
>
v-show=
"showTable
&&
!noData"
>
<el-button
type=
"primary"
size=
"mini"
class=
"custom-btn"
...
...
@@ -118,7 +117,7 @@ limitations under the License.
<el-table-column
type=
"selection"
width=
"55"
:reserve-selection=
"true"
v-show=
"showTable
&&
!noData"
>
v-show=
"showTable
&&
!noData"
>
</el-table-column>
<!--metric table column-->
...
...
@@ -188,7 +187,7 @@ limitations under the License.
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<span>
{{
formatNumber
(
key
,
scope
.
row
[
key
])
}}
</span>
<span>
{{
formatNumber
(
key
,
scope
.
row
[
key
])
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
...
...
@@ -197,7 +196,7 @@ limitations under the License.
:key=
"key"
:prop=
"key"
:label=
"table.columnOptions[key].label"
:fixed=
"table.columnOptions[key].label
===text?true:
false"
:fixed=
"table.columnOptions[key].label
=== text ? true :
false"
show-overflow-tooltip
min-width=
"150"
sortable=
"custom"
>
...
...
@@ -216,7 +215,7 @@ limitations under the License.
</el-table-column>
<!-- remark column -->
<el-table-column
fixed=
"right"
width=
"
31
0"
>
width=
"
26
0"
>
<
template
slot=
"header"
>
<div>
<div
class=
"label-text"
>
{{
$t
(
'
public.remark
'
)
}}
</div>
...
...
@@ -271,7 +270,7 @@ limitations under the License.
<div>
<div
class=
"icon-image-container"
>
<div
class=
"icon-image"
: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"
:key=
"item.number"
@
click=
"iconValueChange(scope.row,item.number,$event)"
>
...
...
@@ -300,17 +299,18 @@ limitations under the License.
</
template
>
</el-table-column>
</el-table>
<div>
<div
class=
"hide-count"
v-show=
"recordsNumber-showNumber"
>
{{$t('modelTraceback.totalHide').replace(`{n}`,(recordsNumber-showNumber))}}
</div>
<div
class=
"pagination-container"
>
<el-pagination
@
current-change=
"pagination.pageChange"
:current-page=
"pagination.currentPage"
:page-size=
"pagination.pageSize"
:layout=
"pagination.layout"
:total=
"pagination.total"
>
</el-pagination>
<div
class=
"hide-count"
v-show=
"recordsNumber-showNumber"
>
{{$t('modelTraceback.totalHide').replace(`{n}`, (recordsNumber-showNumber))}}
</div>
<div
class=
"clear"
></div>
</div>
</div>
...
...
@@ -425,7 +425,7 @@ export default {
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
);
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
this
.
getStoreList
();
...
...
@@ -466,8 +466,8 @@ export default {
return
;
}
row
.
showIcon
=
true
;
const
e
=
window
.
event
;
document
.
getElementById
(
'
icon-dialog
'
).
style
.
top
=
e
.
clientY
+
'
px
'
;
document
.
getElementById
(
'
icon-dialog
'
).
style
.
top
=
window
.
event
.
clientY
+
'
px
'
;
},
/**
...
...
@@ -514,6 +514,13 @@ export default {
},
// clear icon
clearIcon
(
row
)
{
const
classWrap
=
event
.
path
.
find
((
item
)
=>
{
return
item
.
className
===
'
icon-dialog
'
;
});
const
classArr
=
classWrap
.
querySelectorAll
(
'
.icon-border
'
);
classArr
.
forEach
((
item
)
=>
{
item
.
classList
.
remove
(
'
icon-border
'
);
});
row
.
showIcon
=
false
;
this
.
iconValue
=
0
;
row
.
tag
=
0
;
...
...
@@ -1345,10 +1352,11 @@ export default {
this
.
echart
.
brushData
=
list
;
this
.
echart
.
showData
=
this
.
echart
.
brushData
;
this
.
initChart
();
this
.
table
.
data
=
list
.
slice
(
const
showList
=
list
.
slice
(
(
this
.
pagination
.
currentPage
-
1
)
*
this
.
pagination
.
pageSize
,
this
.
pagination
.
currentPage
*
this
.
pagination
.
pageSize
,
);
this
.
table
.
data
=
showList
;
this
.
recordsNumber
=
this
.
table
.
data
.
length
;
this
.
showNumber
=
this
.
table
.
data
.
length
;
this
.
pagination
.
total
=
res
.
data
.
count
||
0
;
...
...
@@ -1365,6 +1373,8 @@ export default {
sortChange
(
column
)
{
this
.
sortInfo
.
sorted_name
=
column
.
prop
;
this
.
sortInfo
.
sorted_type
=
column
.
order
;
this
.
recordsNumber
=
0
;
this
.
showNumber
=
0
;
this
.
getStoreList
();
const
tempParam
=
{
limit
:
this
.
pagination
.
pageSize
,
...
...
@@ -1384,9 +1394,21 @@ export default {
(
res
)
=>
{
if
(
res
&&
res
.
data
&&
res
.
data
.
object
)
{
const
list
=
this
.
setDataOfModel
(
res
.
data
.
object
);
this
.
table
.
data
=
list
;
const
tempList
=
list
.
slice
(
0
,
this
.
pagination
.
pageSize
);
this
.
recordsNumber
=
tempList
.
length
;
if
(
this
.
hidenDirChecked
.
length
)
{
this
.
hidenDirChecked
.
forEach
((
dir
)
=>
{
tempList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
summary_dir
===
dir
)
{
tempList
.
splice
(
index
,
1
);
}
});
});
}
this
.
showNumber
=
tempList
.
length
;
this
.
table
.
data
=
tempList
;
this
.
pagination
.
total
=
res
.
data
.
count
||
0
;
this
.
pagination
.
currentPage
=
0
;
this
.
pagination
.
currentPage
=
1
;
}
},
(
error
)
=>
{},
...
...
@@ -1741,6 +1763,7 @@ export default {
this
.
$store
.
commit
(
'
setSelectedBarList
'
,
[]);
this
.
noData
=
false
;
this
.
showTable
=
false
;
this
.
selectCheckAll
=
true
;
this
.
chartFilter
=
{};
this
.
tableFilter
.
summary_dir
=
undefined
;
this
.
sortInfo
=
{};
...
...
@@ -1838,14 +1861,15 @@ export default {
<
style
lang=
"scss"
>
.label-text
{
line-height
:
20px
!
important
;
vertical-align
:
bottom
;
padding-top
:
20px
;
display
:
block
!
important
;
}
.remark-tip
{
line-height
:
14
px
!
important
;
line-height
:
20
px
!
important
;
font-size
:
12px
;
white-space
:
pre-wrap
!
important
;
vertical-align
:
bottom
;
color
:
gray
;
display
:
block
!
important
;
}
.el-color-dropdown__main-wrapper
,
.el-color-dropdown__value
,
...
...
@@ -1943,6 +1967,7 @@ export default {
.btns
{
margin-left
:
20px
;
padding-top
:
12px
;
height
:
46px
;
}
.btn-container-margin
{
margin
:
0
55px
10px
;
...
...
@@ -2048,7 +2073,7 @@ export default {
}
.table-container
{
background-color
:
white
;
height
:
calc
(
6
0%
-
4
0px
);
height
:
calc
(
6
8%
-
13
0px
);
padding
:
6px
32px
;
position
:
relative
;
.custom-label
{
...
...
@@ -2059,21 +2084,24 @@ export default {
a
{
cursor
:
pointer
;
}
.clear
{
clear
:
both
;
}
.hide-count
{
display
:
inline-block
;
position
:
absolute
;
right
:
450px
;
height
:
32px
;
line-height
:
32px
;
padding-top
:
4px
;
color
:
red
;
float
:
right
;
margin-right
:
10px
;
}
.el-pagination
{
float
:
right
;
margin-right
:
32px
;
position
:
absolute
;
right
:
0
;
bottom
:
10px
;
}
.pagination-container
{
height
:
40px
;
}
}
.no-data-page
{
width
:
100%
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录