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
12443509
Commit
12443509
authored
Jul 07, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仪表盘数据,fix超市列表筛选,列表+滚动条,云资源详情
parent
d8c6cc83
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
536 additions
and
54 deletions
+536
-54
src/components/e-charts/dashboard.vue
src/components/e-charts/dashboard.vue
+53
-27
src/components/service-list/service_list.vue
src/components/service-list/service_list.vue
+9
-2
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+1
-1
src/components/table/table-um.vue
src/components/table/table-um.vue
+20
-0
src/components/table/table-umhref.vue
src/components/table/table-umhref.vue
+2
-1
src/pages/service_shop/shop_list.vue
src/pages/service_shop/shop_list.vue
+9
-9
src/pages/workbench/fwgl/cloud-detail.vue
src/pages/workbench/fwgl/cloud-detail.vue
+420
-13
src/request/api/workbench.js
src/request/api/workbench.js
+21
-0
src/request/http.js
src/request/http.js
+1
-1
No files found.
src/components/e-charts/dashboard.vue
View file @
12443509
...
...
@@ -7,35 +7,53 @@ import { graphic } from "echarts/lib/export";
export
default
{
props
:
{
data
:
{
type
:
Array
,
default
:
()
=>
[]
type
:
Object
,
default
:
()
=>
{
data
=
40
;
text
=
"
模拟数据1.0
"
;
}
},
dangerousValue
:
{
type
:
String
,
default
:
""
}
},
data
:
()
=>
({
navList
:
[]
,
navList
:
[]
}),
mounted
()
{
},
mounted
()
{},
methods
:
{
dashboard
()
{
let
self
=
this
;
return
{
title
:
{
text
:
"
20%
"
,
subtext
:
"
sssss
"
,
title
:
[
{
text
:
self
.
data
.
data
+
"
{a|%}
"
,
x
:
"
center
"
,
y
:
"
center
"
,
textStyle
:
{
fontSize
:
26
,
fontWeight
:
"
normal
"
,
color
:
[
"
#67828c
"
]
},
subtextStyle
:
{
color
:
"
#67828c
"
,
fontSize
:
16
,
align
:
"
center
"
fontSize
:
36
,
fontWeight
:
"
lighter
"
,
color
:
[
"
#67828c
"
],
rich
:
{
a
:
{
fontSize
:
14
,
padding
:
[
0
,
0
,
4
,
0
]
}
}
}
},
{
text
:
self
.
data
.
text
,
x
:
"
center
"
,
y
:
"
58%
"
,
textStyle
:
{
fontSize
:
12
,
fontWeight
:
"
normal
"
,
color
:
"
#707693
"
}
}
],
angleAxis
:
{
axisLine
:
{
show
:
false
...
...
@@ -73,7 +91,7 @@ export default {
series
:
[
{
type
:
"
bar
"
,
data
:
[,
40
],
data
:
[,
self
.
data
.
data
],
coordinateSystem
:
"
polar
"
,
barMaxWidth
:
10
,
z
:
1
,
...
...
@@ -81,10 +99,18 @@ export default {
roundCap
:
true
,
itemStyle
:
{
normal
:
{
color
:
new
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
"
#25bdb1
"
},
{
offset
:
1
,
color
:
"
#e7fdfc
"
}
])
color
:
self
.
dangerousValue
==
"
high
"
?
self
.
data
.
data
>=
80
?
"
#e15260
"
:
"
#515fe7
"
:
self
.
data
.
data
>
75
?
"
#00cfc6
"
:
self
.
data
.
data
>
50
?
"
#54cefd
"
:
self
.
data
.
data
>
25
?
"
#54cefd
"
:
"
#25bdb1
"
}
},
barGap
:
"
-100%
"
...
...
@@ -126,7 +152,7 @@ export default {
show
:
true
,
splitNumber
:
5
,
lineStyle
:
{
color
:
"
#
a9aec
0
"
,
color
:
"
#
c9cee
0
"
,
width
:
1
},
length
:
4
...
...
@@ -135,7 +161,7 @@ export default {
show
:
true
,
length
:
6
,
lineStyle
:
{
color
:
"
#
a9aec
0
"
color
:
"
#
c9cee
0
"
}
},
//分隔线样式
detail
:
{
...
...
@@ -160,7 +186,7 @@ export default {
}
},
data
:
[,
40
]
data
:
[,
self
.
data
.
data
]
}
]
};
...
...
src/components/service-list/service_list.vue
View file @
12443509
...
...
@@ -154,7 +154,7 @@ export default {
},
url
:
{
type
:
String
,
default
:
""
},
name
:
{
type
:
String
,
default
:
""
},
filterN
ma
es
:
{
filterN
am
es
:
{
type
:
Array
,
default
:
()
=>
{
[];
...
...
@@ -251,12 +251,19 @@ export default {
}
]
});
}
else
{
this
.
$set
(
this
.
filterLists
,
0
,
{
id
:
110
,
name
:
""
,
prop
:
""
,
childDomains
:
[]
});
}
this
.
getShopFilter
();
}
}
},
filterN
ma
es
:
{
filterN
am
es
:
{
handler
(
val
)
{
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
this
.
filterLists
[
i
+
1
].
name
=
val
[
i
];
...
...
src/components/shop-cloud/shop-cloud.vue
View file @
12443509
...
...
@@ -326,7 +326,7 @@
:stripe=
"true"
:datas=
"dataDiskList"
@
primary-del=
"delItem"
height=
"
30
0"
height=
"
26
0"
></table-um>
</el-form-item>
</el-col>
...
...
src/components/table/table-um.vue
View file @
12443509
...
...
@@ -63,6 +63,7 @@
default-expand-all
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
ref="cesTable"
class="table_scoller"
:class="radius ? 'table_radius' : ''"
:header-cell-class-name="headerCellClassName"
v-cloak
...
...
@@ -853,6 +854,25 @@ em {
border
:
0
;
padding
:
0
;
}
.table_scoller
.el-table__body-wrapper
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
16px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
1px
;
}
.table_scoller
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
8px
;
/* background: #dde4ff; */
box-shadow
:
8px
0
0
#bcc1d0
inset
;
border
:
4px
solid
rgba
(
0
,
0
,
0
,
0
);
}
.table_scoller
.el-table__body-wrapper
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
border-radius
:
8px
;
/* background: #f4f4f4; */
box-shadow
:
8px
0
0
#f8f8f8
inset
;
border
:
4px
solid
rgba
(
0
,
0
,
0
,
0
);
}
</
style
>
<
style
scoped
>
.ces-table
{
...
...
src/components/table/table-umhref.vue
View file @
12443509
...
...
@@ -43,7 +43,8 @@ export default {
</
script
>
<
style
scoped
>
.href
{
color
:
#264dd9
!important
;
color
:
#0f2683
;
font-weight
:
700
;
cursor
:
pointer
;
}
</
style
>
\ No newline at end of file
src/pages/service_shop/shop_list.vue
View file @
12443509
...
...
@@ -5,7 +5,7 @@
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
:filterN
maes=
"filterNma
es"
:name=
"name"
:url=
"url"
:urlFilter=
"urlFilter"
></service-list>
<service-list
:filterN
ames=
"filterNam
es"
:name=
"name"
:url=
"url"
:urlFilter=
"urlFilter"
></service-list>
</el-main>
</el-container>
</div>
...
...
@@ -23,7 +23,7 @@ export default {
urlFilter
:
""
,
url
:
""
,
name
:
""
,
filterN
ma
es
:
[]
filterN
am
es
:
[]
}),
mounted
()
{
this
.
getVal
(
this
.
$route
.
path
);
...
...
@@ -37,43 +37,43 @@ export default {
this
.
name
=
"
数据服务
"
;
this
.
urlFilter
=
"
5
"
;
this
.
url
=
"
/shop/sjfwDetail
"
;
this
.
filterN
ma
es
=
[
"
数据服务类型
"
,
"
数据领域
"
,
"
数据来源机构
"
];
this
.
filterN
am
es
=
[
"
数据服务类型
"
,
"
数据领域
"
,
"
数据来源机构
"
];
break
;
case
"
space_time_service_list
"
:
this
.
name
=
"
时空服务
"
;
this
.
urlFilter
=
"
6
"
;
this
.
url
=
"
/shop/skfwDetail
"
;
this
.
filterN
maes
=
[
"
数据服务类型
"
,
"
数据领域
"
,
"
数据来源机构
"
];
this
.
filterN
ames
=
[
"
时空服务类型
"
,
"
应用领域
"
,
"
服务来源组织
"
];
break
;
case
"
video_service_list
"
:
this
.
name
=
"
视频服务
"
;
this
.
urlFilter
=
"
7
"
;
this
.
url
=
""
;
this
.
filterN
ma
es
=
[];
this
.
filterN
am
es
=
[];
break
;
case
"
perception_service_list
"
:
this
.
name
=
"
感知服务
"
;
this
.
urlFilter
=
"
10
"
;
this
.
url
=
""
;
this
.
filterN
ma
es
=
[];
this
.
filterN
am
es
=
[];
break
;
case
"
comprehensive_app_list
"
:
this
.
name
=
"
综合服务
"
;
this
.
urlFilter
=
"
21
"
;
this
.
url
=
"
/shop/zhfwDetail
"
;
this
.
filterN
maes
=
[
"
数据服务类型
"
,
"
数据领域
"
,
"
数据来源机构
"
];
this
.
filterN
ames
=
[
"
服务类型
"
,
"
应用领域
"
,
"
服务来源组织
"
];
break
;
case
"
app_store_list
"
:
this
.
name
=
"
应用商店
"
;
this
.
urlFilter
=
"
app
"
;
this
.
url
=
"
/shop/yysdDetail
"
;
this
.
filterN
ma
es
=
[
"
应用类型
"
,
"
应用领域
"
,
"
应用来源机构
"
];
this
.
filterN
am
es
=
[
"
应用类型
"
,
"
应用领域
"
,
"
应用来源机构
"
];
break
;
default
:
this
.
name
=
""
;
this
.
urlFilter
=
""
;
this
.
url
=
""
;
this
.
filterN
ma
es
=
[];
this
.
filterN
am
es
=
[];
break
;
}
}
...
...
src/pages/workbench/fwgl/cloud-detail.vue
View file @
12443509
This diff is collapsed.
Click to expand it.
src/request/api/workbench.js
View file @
12443509
...
...
@@ -27,6 +27,27 @@ const workbench = {
getAppParams
(
params
)
{
return
axios
.
get
(
`/apaas/hubApi/market/values/
${
params
.
app_id
}
`
)
},
// get cloud resources details
getCloudDetail
(
params
)
{
return
axios
.
get
(
`/apaas/service/v3/resource/user/apply/approvedDetail?type=
${
params
.
type
}
&applyid=
${
params
.
applyId
}
`
)
},
// cloud resource approval
setCloudApproval
(
params
)
{
return
axios
.
put
(
`/apaas/service/v3/resource/apply/approve?apply_id=
${
params
.
applyId
}
&apply_state=
${
params
.
applyState
}
&apply_type=
${
params
.
applyType
}
&cloud_id=
${
params
.
applyCloudId
}
`
,
params
)
},
// cloud resource allocation
setCloudAllocation
(
params
)
{
return
axios
.
put
(
`/apaas/service/v3/resource/apply/distribution?id=
${
params
.
id
}
&user_id=
${
params
.
userId
}
`
)
},
// cloud resource delete
deleteCloud
(
params
)
{
return
axios
.
delete
(
`/apaas/service/v3/resource/apply/remove?id=
${
params
.
id
}
`
)
},
// cloud resource disabled
disabledCloud
(
params
)
{
return
axios
.
put
(
`/apaas/service/v3/resource/apply/disable?id=
${
params
.
id
}
&type=
${
params
.
type
}
`
)
},
}
export
default
workbench
;
src/request/http.js
View file @
12443509
...
...
@@ -56,7 +56,7 @@ const errorHandle = (status, other) => {
}
// 创建axios实例
var
instance
=
axios
.
create
({
timeout
:
1000
*
12
});
var
instance
=
axios
.
create
({
timeout
:
1000
*
30
});
// 设置post请求头
instance
.
defaults
.
headers
.
post
[
'
Content-Type
'
]
=
'
application/x-www-form-urlencoded
'
;
/**
...
...
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