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
cc9c844c
Commit
cc9c844c
authored
Jul 16, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
69abf5b4
c771e998
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
2 deletions
+90
-2
src/pages/data-analysis/my-service.vue
src/pages/data-analysis/my-service.vue
+75
-1
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+15
-1
No files found.
src/pages/data-analysis/my-service.vue
View file @
cc9c844c
...
@@ -70,12 +70,39 @@
...
@@ -70,12 +70,39 @@
<p
class=
"hot-line-title"
>
搜索用户数
</p>
<p
class=
"hot-line-title"
>
搜索用户数
</p>
<div
class=
"hot-line-chart"
>
<div
class=
"hot-line-chart"
>
<!-- 折线图 -->
<!-- 折线图 -->
<p
class=
"sparkline-text"
>
<span>
{{
sparkline1
.
num
}}
</span>
<span
:style=
"sparkline1.up>0?
{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">
{{
sparkline1
.
up
>
0
?
sparkline1
.
up
:
0
-
sparkline1
.
up
}}
%
<img
v-if=
"sparkline1.up>0"
src=
"../../assets/imgs/icon_up.png"
alt=
""
>
<img
v-if=
"sparkline1.up
<0
"
src=
"../../assets/imgs/icon_down.png"
alt=
""
></span>
</p>
<sparkline
:indicatorStyles=
"spIndicatorStyles1"
width=
"220"
height=
"44"
>
<sparklineCurve
:refLineStyles=
"spRefLineStyles3"
:refLineType=
"false"
:data=
"sparkline1.arr"
:limit=
"sparkline1.arr.length"
:styles=
"spCurveStyles2"
/>
</sparkline>
</div>
</div>
</div>
</div>
<div
class=
"hot-line"
>
<div
class=
"hot-line"
>
<p
class=
"hot-line-title"
>
搜索用户数
</p>
<p
class=
"hot-line-title"
>
搜索用户数
</p>
<div
class=
"hot-line-chart"
>
<div
class=
"hot-line-chart"
>
<!-- 折线图 -->
<!-- 折线图 -->
<p
class=
"sparkline-text sparkline-text-user"
>
<span>
{{
sparkline2
.
num
}}
</span>
<span
:style=
"sparkline2.up>0?
{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">
{{
sparkline2
.
up
>
0
?
sparkline2
.
up
:
0
-
sparkline2
.
up
}}
%
<img
v-if=
"sparkline2.up>0"
src=
"../../assets/imgs/icon_up.png"
alt=
""
>
<img
v-if=
"sparkline2.up
<0
"
src=
"../../assets/imgs/icon_down.png"
alt=
""
></span>
</p>
<sparkline
:indicatorStyles=
"spIndicatorStyles1"
width=
"220"
height=
"44"
>
<sparklineCurve
:refLineStyles=
"spRefLineStyles3"
:refLineType=
"false"
:data=
"sparkline2.arr"
:limit=
"sparkline2.arr.length"
:styles=
"spCurveStyles3"
/>
</sparkline>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -215,6 +242,30 @@ export default {
...
@@ -215,6 +242,30 @@ export default {
{
name
:
"
通用应用
"
,
value
:
0
},
{
name
:
"
通用应用
"
,
value
:
0
},
{
name
:
"
业务应用
"
,
value
:
2
}
{
name
:
"
业务应用
"
,
value
:
2
}
],
],
spIndicatorStyles1
:
false
,
spRefLineStyles3
:
{
stroke
:
"
#d14
"
,
strokeOpacity
:
0
,
strokeDasharray
:
"
2, 2
"
,
},
spCurveStyles2
:
{
stroke
:
"
#274fee
"
,
fill
:
"
#274fee
"
,
},
spCurveStyles3
:
{
stroke
:
"
#e56600
"
,
fill
:
"
#e56600
"
,
},
sparkline1
:{
arr
:[
1
,
2
,
3
,
4
,
8
,
9
,
10
,
21
],
num
:
1231
,
up
:
15.3
},
sparkline2
:{
arr
:[
1
,
2
,
3
,
4
,
8
,
9
,
10
,
21
],
num
:
182
,
up
:
-
19.3
},
text
:
"
应用总数
"
,
text
:
"
应用总数
"
,
single_data
:
{
single_data
:
{
num
:
12
,
num
:
12
,
...
@@ -602,12 +653,35 @@ export default {
...
@@ -602,12 +653,35 @@ export default {
}
}
.hot-line-chart
{
.hot-line-chart
{
height
:
calc
(
100%
-
36px
);
height
:
calc
(
100%
-
36px
);
background-color
:
pink
;
position
:
relative
;
}
.sparkline-text
{
width
:
100%
;
}
.sparkline-text
span
:nth-of-type
(
1
)
{
font-size
:
20px
;
color
:
#274fee
;
}
.sparkline-text
span
:nth-of-type
(
2
)
{
font-size
:
12px
;
width
:
62px
;
float
:
right
;
text-align
:
center
;
line-height
:
20px
;
height
:
20px
;
border-radius
:
3px
;
margin-top
:
3px
;
margin-right
:
2px
;
}
.sparkline-text-user
span
:nth-of-type
(
1
)
{
font-size
:
20px
;
color
:
#e56600
;
}
}
.topology
{
.topology
{
width
:
100%
;
width
:
100%
;
height
:
calc
(
100%
-
20px
);
height
:
calc
(
100%
-
20px
);
}
}
</
style
>
</
style
>
<
style
>
<
style
>
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
cc9c844c
...
@@ -224,6 +224,16 @@ export default {
...
@@ -224,6 +224,16 @@ export default {
imageDetail
,
imageDetail
,
},
},
data
()
{
data
()
{
var
checkname
=
(
rule
,
value
,
callback
)
=>
{
var
reg
=
/^
[
a-z0-9|-
]
+$/
setTimeout
(()
=>
{
if
(
reg
.
test
(
value
))
{
callback
();
}
else
{
callback
(
new
Error
(
'
只支持小写字母 数字 -
'
));
}
},
100
);
};
return
{
return
{
now_user
:
0
,
//0:普通用户,1:组织管理员,2:超级管理员
now_user
:
0
,
//0:普通用户,1:组织管理员,2:超级管理员
buy_style
:
0
,
buy_style
:
0
,
...
@@ -253,7 +263,9 @@ export default {
...
@@ -253,7 +263,9 @@ export default {
},
},
fileList
:
[],
fileList
:
[],
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"
请输入镜像名称
"
,
trigger
:
"
blur
"
}],
name
:
[{
required
:
true
,
message
:
"
请输入镜像名称
"
,
trigger
:
"
blur
"
},
{
validator
:
checkname
,
trigger
:
'
blur
'
}
],
taps
:
[{
required
:
true
,
message
:
"
请输入镜像标签
"
,
trigger
:
"
blur
"
}],
taps
:
[{
required
:
true
,
message
:
"
请输入镜像标签
"
,
trigger
:
"
blur
"
}],
},
},
tipsOptions
:
{
tipsOptions
:
{
...
@@ -478,6 +490,8 @@ export default {
...
@@ -478,6 +490,8 @@ export default {
if
(
response
.
success
==
1
)
{
if
(
response
.
success
==
1
)
{
this
.
addImageFlag
=
false
;
this
.
addImageFlag
=
false
;
this
.
$message
.
success
(
"
上传成功
"
);
this
.
$message
.
success
(
"
上传成功
"
);
this
.
now_page
=
1
;
this
.
image_arr
=
[];
this
.
get_image_list
();
this
.
get_image_list
();
}
else
{
}
else
{
this
.
$message
.
error
(
response
.
errMsg
);
this
.
$message
.
error
(
response
.
errMsg
);
...
...
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