Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ETL-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
ETL-admin
Commits
6c14da3f
Commit
6c14da3f
authored
Jan 26, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
33
parent
1f1fb869
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
src/views/home.vue
+18
-4
No files found.
src/views/home.vue
View file @
6c14da3f
...
...
@@ -65,7 +65,7 @@
<div
class=
"right"
>
<el-button
class=
"btn-brush"
icon=
"el-icon-plus"
@
click=
"getAllMonitorJob"
>
刷新列表
</el-button>
</div>
<el-table
:data=
"top5JobList"
style=
"width: 100%"
border
:header-cell-style=
"
{ color: '#606266' }">
<el-table
v-loading=
"jobLoading"
:data=
"top5JobList"
style=
"width: 100%"
border
:header-cell-style=
"
{ color: '#606266' }">
<el-table-column
prop=
"id"
label=
"记录编号"
...
...
@@ -73,7 +73,7 @@
align=
"center"
></el-table-column>
<el-table-column
prop=
"
n
ame"
prop=
"
jobN
ame"
label=
"转换名称"
width=
"180"
align=
"center"
...
...
@@ -105,7 +105,7 @@
<div
class=
"right"
>
<el-button
class=
"btn-brush"
icon=
"el-icon-plus"
@
click=
"getAllMonitorTrans"
>
刷新列表
</el-button>
</div>
<el-table
:data=
"top5TransList"
style=
"width: 100%"
border
:header-cell-style=
"
{ color: '#606266' }">
<el-table
v-loading=
"transLoading"
:data=
"top5TransList"
style=
"width: 100%"
border
:header-cell-style=
"
{ color: '#606266' }">
<el-table-column
prop=
"id"
label=
"记录编号"
...
...
@@ -113,7 +113,7 @@
align=
"center"
></el-table-column>
<el-table-column
prop=
"
n
ame"
prop=
"
transN
ame"
label=
"转换名称"
width=
"180"
align=
"center"
...
...
@@ -212,6 +212,8 @@ export default {
top5JobList
:[],
//获取作业监控的Top5
top5TransList
:[],
//获取转换监控的Top5
kettleLineData
:{},
//获取7天内作业和转换的折线图
jobLoading
:
true
,
transLoading
:
true
,
};
},
...
...
@@ -220,6 +222,9 @@ export default {
this
.
getAllMonitorJob
();
//获取所有的监控作业数
this
.
getAllMonitorTrans
();
//获取所有的监控转换数
this
.
getKettleLine
();
//获取7天内作业和转换的折线图
this
.
getTop5JobList
();
this
.
getTop5TransList
();
},
methods
:
{
...
...
@@ -281,23 +286,32 @@ export default {
},
// 获取作业监控的Top5
getTop5JobList
()
{
this
.
jobLoading
=
true
;
var
params
=
{};
getTop5JobList
(
JSON
.
stringify
(
params
)).
then
((
res
)
=>
{
console
.
log
(
'获取作业监控的Top5'
,
res
);
if
(
res
.
success
){
this
.
top5JobList
=
res
.
data
;
setTimeout
(()
=>
{
this
.
jobLoading
=
false
},
200
)
}
});
},
// 获取转换监控的Top5
getTop5TransList
()
{
this
.
transLoading
=
true
;
var
params
=
{};
getTop5TransList
(
JSON
.
stringify
(
params
)).
then
((
res
)
=>
{
console
.
log
(
'获取转换监控的Top5:'
,
res
);
if
(
res
.
success
){
this
.
top5TransList
=
res
.
data
;
setTimeout
(()
=>
{
this
.
transLoading
=
false
},
200
)
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment