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
901e98c6
Commit
901e98c6
authored
Jul 08, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix仪表盘报错
parent
3e1d8217
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
28 deletions
+74
-28
src/components/e-charts/dashboard.vue
src/components/e-charts/dashboard.vue
+4
-2
src/pages/data-analysis/my-service.vue
src/pages/data-analysis/my-service.vue
+2
-1
src/pages/workbench/fwgl/cloud-detail.vue
src/pages/workbench/fwgl/cloud-detail.vue
+67
-24
src/request/api/workbench.js
src/request/api/workbench.js
+1
-1
No files found.
src/components/e-charts/dashboard.vue
View file @
901e98c6
...
...
@@ -9,8 +9,10 @@ export default {
data
:
{
type
:
Object
,
default
:
()
=>
{
data
=
40
;
text
=
"
模拟数据1.0
"
;
return
{
data
:
40
,
text
:
"
模拟数据1.0
"
};
}
},
dangerousValue
:
{
...
...
src/pages/data-analysis/my-service.vue
View file @
901e98c6
...
...
@@ -130,7 +130,8 @@ export default {
.in_analysis
{
padding
:
0
10px
10px
;
height
:
100%
;
/* min-width: 1700px; */
width
:
100%
;
min-width
:
1700px
;
}
.in_l
{
}
...
...
src/pages/workbench/fwgl/cloud-detail.vue
View file @
901e98c6
...
...
@@ -12,29 +12,31 @@
<el-image
class=
"head_left_img"
:src=
"url"
fit=
"fill"
></el-image>
</div>
<div
class=
"head_right"
>
<div
class=
"head_right_name"
>
aPaaS V3.0
</div>
<div
class=
"head_right_name"
>
{{
cloudData
.
workplace
}}
</div>
<div
class=
"head_right_msg"
>
<p
class=
"head_right_msg_p"
>
申请用户:
<span
class=
"head_right_msg_item"
>
张三
</span>
<span
class=
"head_right_msg_item"
>
{{
cloudData
.
user_name
}}
</span>
联系电话:
<span
class=
"head_right_msg_item"
>
12345678901
</span>
<span
class=
"head_right_msg_item"
>
{{
cloudData
.
phone
}}
</span>
资源申请状态:
<span
class=
"head_right_msg_item"
:class=
"true ? 'apply_success' : ''"
>
审批通过
</span>
v-if=
"cloudData.first_level == 0"
class=
"head_right_msg_item apply_success"
>
待审批
</span>
<span
v-if=
"cloudData.first_level == 0"
class=
"head_right_msg_item apply_success"
>
待审批
</span>
<span
v-if=
"cloudData.first_level == 0"
class=
"head_right_msg_item apply_success"
>
待审批
</span>
</p>
<p
class=
"head_right_msg_p"
>
业务系统名:
<span
class=
"head_right_msg_item"
>
aPaaS V3.0 一期
</span>
<span
class=
"head_right_msg_item"
>
{{
cloudData
.
workplace
}}
</span>
资源申请时间:
<span
class=
"head_right_msg_item"
>
2020-02-12 15:54:21
</span>
<span
class=
"head_right_msg_item"
>
{{
cloudData
.
apply_time
}}
</span>
</p>
</div>
</div>
</div>
<el-tabs
v-model=
"activeName"
class=
"params_tabs"
@
tab-click=
"clickTab"
>
<el-tabs
v-
if=
"tabShow"
v-
model=
"activeName"
class=
"params_tabs"
@
tab-click=
"clickTab"
>
<el-tab-pane
label=
"用户申请信息"
name=
"0"
></el-tab-pane>
<el-tab-pane
label=
"我的申请信息"
name=
"1"
></el-tab-pane>
</el-tabs>
...
...
@@ -139,11 +141,11 @@
<div
class=
"params_chart_msg"
>
<div
class=
"params_chart_msg_item"
>
物理总量
<span>
1632
核
</span>
<span>
{{
data1
.
total
}}
核
</span>
</div>
<div
class=
"params_chart_msg_item"
>
剩余量
<span>
1632
核
</span>
<span>
{{
data1
.
remaining
}}
核
</span>
</div>
</div>
</el-col>
...
...
@@ -154,11 +156,11 @@
<div
class=
"params_chart_msg"
>
<div
class=
"params_chart_msg_item"
>
物理总量
<span>
1632核
</span>
<span>
{{
data1
.
total
}}
GB
</span>
</div>
<div
class=
"params_chart_msg_item"
>
剩余量
<span>
1632核
</span>
<span>
{{
data1
.
remaining
}}
GB
</span>
</div>
</div>
</el-col>
...
...
@@ -169,11 +171,11 @@
<div
class=
"params_chart_msg"
>
<div
class=
"params_chart_msg_item"
>
物理总量
<span>
1632核
</span>
<span>
{{
data1
.
total
}}
GB
</span>
</div>
<div
class=
"params_chart_msg_item"
>
剩余量
<span>
1632核
</span>
<span>
{{
data1
.
remaining
}}
GB
</span>
</div>
</div>
</el-col>
...
...
@@ -184,11 +186,11 @@
<div
class=
"params_chart_msg"
>
<div
class=
"params_chart_msg_item"
>
物理总量
<span>
1632核
</span>
<span>
{{
data1
.
total
}}
</span>
</div>
<div
class=
"params_chart_msg_item"
>
剩余量
<span>
1632核
</span>
<span>
{{
data1
.
remaining
}}
</span>
</div>
</div>
</el-col>
...
...
@@ -327,19 +329,27 @@ export default {
"
当您觉得使用空间不足时,可以选择至服务超市-云资源服务页面的升级现有工作区域来完成配置扩容操作。
"
,
data1
:
{
data
:
80
,
text
:
"
CPU1已使用
"
text
:
"
CPU已使用
"
,
total
:
0
,
remaining
:
0
},
data2
:
{
data
:
60
,
text
:
"
CPU2已使用
"
text
:
"
内存已使用
"
,
total
:
0
,
remaining
:
0
},
data3
:
{
data
:
40
,
text
:
"
CPU3已使用
"
text
:
"
数据盘已使用
"
,
total
:
0
,
remaining
:
0
},
data4
:
{
data
:
10
,
text
:
"
CPU4已使用
"
text
:
"
容器组已使用
"
,
total
:
0
,
remaining
:
0
},
appListHeaders
:
[
{
...
...
@@ -399,7 +409,9 @@ export default {
}
],
now_user
:
""
,
activeName
:
"
0
"
activeName
:
"
0
"
,
tabShow
:
true
,
cloudData
:
{}
};
},
watch
:
{},
...
...
@@ -448,17 +460,48 @@ export default {
let
index
=
this
.
list_arr
.
findIndex
(
item
=>
item
.
title
==
"
资源使用情况:
"
);
this
.
list_arr
.
splice
(
index
);
// this.list_arr.splice(index);
// this.tabShow = false;
}
else
if
(
this
.
now_user
==
1
)
{
this
.
tabShow
=
true
;
}
else
if
(
this
.
now_user
==
2
)
{
}
},
getCloudDetail
()
{
let
query
=
{
type
:
0
,
applyId
:
13
applyId
:
13
,
id
:
25
};
this
.
$api
.
workbench
.
getCloudDetail
(
query
).
then
(
response
=>
{
let
data
=
response
.
data
.
data
;
this
.
list_arr
[
3
].
info
=
helper
.
downloadFileFormat
(
data
.
apply_file
);
// application file name
this
.
list_arr
[
3
].
url
=
data
.
apply_file
;
// application file url
this
.
list_arr
[
6
].
info
=
data
.
bgn_time
;
// get time
this
.
list_arr
[
7
].
info
=
data
.
time_remaining
;
// remaining days
this
.
list_arr
[
8
].
info
=
data
.
end_time
;
// maturity time
this
.
list_arr_my
[
0
].
info
=
data
.
first_level_time
;
// submit application time
this
.
list_arr_my
[
1
].
info
=
data
.
second_level_time
;
// super get time
this
.
applicationStatus
=
data
.
second_leve
;
// super status
this
.
desc
=
data
.
workplacedesc
;
// workplace description
let
count
=
data
.
cloud_resource_count
;
// resource usage
this
.
data1
.
total
=
count
.
cpu_total
;
this
.
data1
.
remaining
=
count
.
cpu_total
-
count
.
cpu_use
;
this
.
data1
.
data
=
Math
.
round
((
count
.
cpu_total
/
count
.
cpu_use
)
*
100
);
this
.
data2
.
total
=
count
.
memory_total
;
this
.
data2
.
remaining
=
count
.
memory_total
-
count
.
memory_use
;
this
.
data2
.
data
=
Math
.
round
(
(
count
.
memory_total
/
count
.
memory_use
)
*
100
);
this
.
data3
.
total
=
count
.
disk_total
;
this
.
data3
.
remaining
=
count
.
disk_total
-
count
.
disk_use
;
this
.
data3
.
data
=
Math
.
round
((
count
.
disk_total
/
count
.
disk_use
)
*
100
);
this
.
data4
.
total
=
count
.
containers_total
;
this
.
data4
.
remaining
=
count
.
containers_total
-
count
.
containers_use
;
this
.
data4
.
data
=
Math
.
round
(
(
count
.
containers_total
/
count
.
containers_use
)
*
100
);
// this.appList =
});
}
}
...
...
src/request/api/workbench.js
View file @
901e98c6
...
...
@@ -30,7 +30,7 @@ const workbench = {
// get cloud resources details
getCloudDetail
(
params
)
{
return
axios
.
get
(
`/apaas/service/v3/resource/user/apply/approvedDetail?type=
${
params
.
type
}
&applyid=
${
params
.
applyId
}
`
)
return
axios
.
get
(
`/apaas/service/v3/resource/user/apply/approvedDetail?type=
${
params
.
type
}
&
id=
${
params
.
id
}
&
applyid=
${
params
.
applyId
}
`
)
},
// cloud resource approval
setCloudApproval
(
params
)
{
...
...
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