Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
f598819c
Commit
f598819c
authored
Aug 11, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
3b4d27bc
aa349cdd
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
573 additions
and
4 deletions
+573
-4
src/components/e-charts/multiple_circle.vue
src/components/e-charts/multiple_circle.vue
+5
-1
src/components/e-charts/process-top-list.vue
src/components/e-charts/process-top-list.vue
+170
-0
src/components/table/table-um.vue
src/components/table/table-um.vue
+1
-1
src/pages/workbench/component-center/process-management/monitoring/index.vue
.../component-center/process-management/monitoring/index.vue
+389
-2
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+8
-0
No files found.
src/components/e-charts/multiple_circle.vue
View file @
f598819c
...
...
@@ -24,6 +24,10 @@ export default {
bar_width
:
{
type
:
Number
,
default
:
5
},
color
:{
type
:
Array
,
default
:
null
}
},
components
:
{},
...
...
@@ -76,7 +80,7 @@ export default {
};
var
data
=
[];
var
total
=
0
;
var
color
=
[
"
#274fee
"
,
"
#25bdb1
"
,
"
#ffc95c
"
,
"
#e56600
"
,
"
#e15260
"
];
var
color
=
this
.
color
?
this
.
color
:
[
"
#274fee
"
,
"
#25bdb1
"
,
"
#ffc95c
"
,
"
#e56600
"
,
"
#e15260
"
];
var
legendarr
=
[];
var
temp2_data
=
0
;
data_val
.
forEach
(
e
=>
{
...
...
src/components/e-charts/process-top-list.vue
0 → 100644
View file @
f598819c
<
template
>
<div
class=
"top_list apaas_scroll"
@
mouseenter=
"mouseenter"
@
mouseleave=
"mouseleave"
>
<ul>
<li
class=
"item_list"
v-for=
"(option, index) in options"
:key=
"index"
>
<div
class=
"item_detail"
>
<p
class=
"item_info"
>
<span
class=
"text_clip is_link"
@
click=
"getDetail(option.service_id, option.data_service_type1)"
>
{{
option
.
service_name
}}
</span>
</p>
<el-progress
class=
"item_progress"
:percentage=
"getPercent(option.request_count)"
:show-text=
"false"
color=
"#e56600"
></el-progress>
<span
style=
"float:right;"
v-text=
"helper.numberFormat(option.request_count, 2) + (option.request_count > 10000 ? '万次' : '次')"
></span>
</div>
</li>
</ul>
</div>
</
template
>
<
script
>
import
helper
from
"
@/services/helper
"
;
export
default
{
props
:
{
options
:
{
type
:
Array
,
default
:
()
=>
[]
},
targetValue
:
{
type
:
Number
,
default
:
()
=>
0
}
},
data
()
{
return
{
timer
:
null
,
helper
};
},
watch
:
{
text
()
{
this
.
autoScroll
();
}
},
methods
:
{
getPercent
(
value
)
{
if
(
value
==
0
)
{
return
0
;
}
else
{
return
Math
.
min
((
value
/
this
.
targetValue
)
*
100
,
100
);
}
},
autoScroll
()
{
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
}
this
.
$el
.
scrollTop
=
0
;
this
.
timer
=
setInterval
(()
=>
{
let
itemHeight
=
50
;
let
curScrollTop
=
this
.
$el
.
scrollTop
+
itemHeight
;
if
(
curScrollTop
>=
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
+
itemHeight
)
{
curScrollTop
=
0
;
}
this
.
$el
.
scrollTop
=
Math
.
min
(
curScrollTop
,
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
);
},
1500
);
},
mouseenter
()
{
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
}
},
mouseleave
()
{
this
.
autoScroll
();
},
getDetail
(
id
,
type
)
{
}
},
mounted
()
{
this
.
autoScroll
();
window
.
addEventListener
(
"
resize
"
,
()
=>
{
this
.
autoScroll
();
});
},
destroyed
()
{
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
}
}
};
</
script
>
<
style
scoped
>
.top_list
{
overflow-x
:
hidden
;
overflow-y
:
auto
;
}
.item_list
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
margin-bottom
:
18px
;
}
.item_index
{
width
:
35px
;
flex-shrink
:
0
;
margin-right
:
10px
;
font-size
:
12px
;
color
:
#58617a
;
}
.item_logo
{
margin-right
:
10px
;
flex-shrink
:
0
;
font-size
:
0
;
border
:
2px
solid
#e3e5ef
;
border-radius
:
6px
;
overflow
:
hidden
;
}
.item_info
{
flex-grow
:
1
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#58617a
;
}
.item_detail
{
flex-grow
:
1
;
}
.item_info
>
span
:first-child
{
width
:
100px
;
flex-grow
:
1
;
margin-right
:
10px
;
color
:
#58617a
;
font-size
:
14px
;
}
.item_info
>
span
:first-child
>
i
{
font-weight
:
bold
;
font-size
:
12px
;
color
:
#8e96ab
;
}
.item_info
>
span
:nth-child
(
2
)
{
flex-shrink
:
0
;
white-space
:
nowrap
;
color
:
#0d1847
;
}
.item_progress
{
margin-top
:
6px
;
width
:
calc
(
100%
-
60px
);
float
:
left
;
}
.is_link
{
cursor
:
pointer
;
}
</
style
>
src/components/table/table-um.vue
View file @
f598819c
...
...
@@ -200,7 +200,7 @@
{{
scope
.
row
[
item
.
prop
]
}}
</span>
<!-- others -->
<span
v-else-if=
"item.type === 'click'"
style=
"cursor: pointer;
"
@
click=
"gotopage(item.url,scope.row[item.prop]
[item.id])"
>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
<span
v-else-if=
"item.type === 'click'"
style=
"cursor: pointer;
color: #274fee;"
@
click=
"gotopage(item.url,scope.row
[item.id])"
>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
</
template
>
</el-table-column>
...
...
src/pages/workbench/component-center/process-management/monitoring/index.vue
View file @
f598819c
This diff is collapsed.
Click to expand it.
src/pages/workbench/yygl/app_detail.vue
View file @
f598819c
...
...
@@ -161,6 +161,7 @@
:auto-upload=
"false"
:on-success=
"upload_success"
:on-error=
"upload_error"
:on-change=
"change_file_state"
:data=
"anotherData1"
:multiple=
"false"
>
...
...
@@ -493,10 +494,17 @@ export default {
this
.
now_page
=
1
;
this
.
image_arr
=
[];
this
.
get_image_list
();
this
.
get_file_name
();
}
else
{
this
.
$message
.
error
(
response
.
errMsg
);
}
},
change_file_state
(
file
,
fileList
){
console
.
log
(
file
,
fileList
);
if
(
fileList
.
length
>=
2
){
this
.
fileList
=
[
file
]
}
},
upload_error
()
{
this
.
$message
.
error
(
"
上传失败
"
);
},
...
...
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