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
0f1e3583
Commit
0f1e3583
authored
Jul 09, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用运行状态
parent
ec96fdf2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
12 deletions
+122
-12
src/pages/workbench/yygl/app_debugger_detail.vue
src/pages/workbench/yygl/app_debugger_detail.vue
+0
-2
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+9
-1
src/pages/workbench/yygl/deploy_app_detail.vue
src/pages/workbench/yygl/deploy_app_detail.vue
+46
-4
src/pages/workbench/yygl/deployment.vue
src/pages/workbench/yygl/deployment.vue
+67
-5
No files found.
src/pages/workbench/yygl/app_debugger_detail.vue
View file @
0f1e3583
...
@@ -494,7 +494,6 @@ height: 10px; /*对水平流动条有效*/
...
@@ -494,7 +494,6 @@ height: 10px; /*对水平流动条有效*/
/*定义滚动条的轨道颜色、内阴影及圆角*/
/*定义滚动条的轨道颜色、内阴影及圆角*/
#xterm_contain
::-webkit-scrollbar-track
{
#xterm_contain
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
.3
);
background-color
:
rosybrown
;
background-color
:
rosybrown
;
border-radius
:
3px
;
border-radius
:
3px
;
}
}
...
@@ -503,7 +502,6 @@ border-radius: 3px;
...
@@ -503,7 +502,6 @@ border-radius: 3px;
/*定义滑块颜色、内阴影及圆角*/
/*定义滑块颜色、内阴影及圆角*/
#xterm_contain
::-webkit-scrollbar-thumb
{
#xterm_contain
::-webkit-scrollbar-thumb
{
border-radius
:
7px
;
border-radius
:
7px
;
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
.3
);
background-color
:
#E8E8E8
;
background-color
:
#E8E8E8
;
}
}
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
0f1e3583
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
ref=
"myConfirm"
ref=
"myConfirm"
:confirmOptions=
"tipsOptions"
:confirmOptions=
"tipsOptions"
></dialog-action>
></dialog-action>
<image-detail
ref=
"imageDetail"
></image-detail>
</div>
</div>
</
template
>
</
template
>
...
@@ -162,6 +163,7 @@ import serviceTabComments from '@/components/service-tabs/service-tab-comments'
...
@@ -162,6 +163,7 @@ import serviceTabComments from '@/components/service-tabs/service-tab-comments'
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
import
{
mapGetters
,
mapState
}
from
'
vuex
'
import
apassTable
from
"
@/components/apass-table
"
;
import
apassTable
from
"
@/components/apass-table
"
;
import
imageDetail
from
"
@/components/image-detail
"
;
export
default
{
export
default
{
components
:
{
components
:
{
infoList
,
infoList
,
...
@@ -170,7 +172,8 @@ export default {
...
@@ -170,7 +172,8 @@ export default {
dialogAction
,
dialogAction
,
uploadFile
,
uploadFile
,
serviceTabComments
,
serviceTabComments
,
apassTable
apassTable
,
imageDetail
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -318,6 +321,8 @@ export default {
...
@@ -318,6 +321,8 @@ export default {
label
:
"
镜像名称
"
,
label
:
"
镜像名称
"
,
minWidth
:
"
33.33%
"
,
minWidth
:
"
33.33%
"
,
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
button
"
,
callback
:
this
.
showImageDetail
,
},
},
{
{
prop
:
"
tag
"
,
prop
:
"
tag
"
,
...
@@ -341,6 +346,9 @@ export default {
...
@@ -341,6 +346,9 @@ export default {
]
]
},
},
methods
:
{
methods
:
{
showImageDetail
(
item
)
{
this
.
$refs
.
imageDetail
.
showDialog
(
item
);
},
getCurrentUser
()
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
if
(
data
.
success
==
1
)
{
...
...
src/pages/workbench/yygl/deploy_app_detail.vue
View file @
0f1e3583
...
@@ -85,7 +85,8 @@
...
@@ -85,7 +85,8 @@
</el-form>
</el-form>
</div>
</div>
<div
v-if=
"now_service == 1&&image_arr.length"
>
<!--
<div
v-if=
"now_service == 1&&image_arr.length"
>
-->
<div
v-if=
"now_service == 1"
>
<p
class=
"service_title"
>
<p
class=
"service_title"
>
<span></span>
应用概况
<span></span>
应用概况
</p>
</p>
...
@@ -598,9 +599,8 @@ export default {
...
@@ -598,9 +599,8 @@ export default {
}
}
this
.
getServiceInfo
();
this
.
getServiceInfo
();
this
.
getServiceBaseInfo
();
this
.
getServiceBaseInfo
();
this
.
getServiceyxztInfo
();
this
.
getImageInfo
();
this
.
get_service_list
();
this
.
get_service_list
();
this
.
get_app_generl
();
if
(
this
.
$route
.
query
.
showstate
)
{
if
(
this
.
$route
.
query
.
showstate
)
{
this
.
now_service
=
1
;
this
.
now_service
=
1
;
}
}
...
@@ -639,6 +639,21 @@ export default {
...
@@ -639,6 +639,21 @@ export default {
debuggerfunc
(){
debuggerfunc
(){
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebugger?namespace=
${
this
.
header_data
.
namespace
}
&app=
${
this
.
header_data
.
deploy_name
}
`
)
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebugger?namespace=
${
this
.
header_data
.
namespace
}
&app=
${
this
.
header_data
.
deploy_name
}
`
)
},
},
get_app_generl
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/status/overview/
${
this
.
$route
.
params
.
deploy_id
}
`
)
.
then
(
response
=>
{
let
data
=
response
.
data
.
data
this
.
yx_state
=
{
state
:
data
.
appState
,
averageTime
:
data
.
respTime
.
avg
,
maxTime
:
data
.
respTime
.
max
,
averageTraffic
:
data
.
throughput
.
avg
,
maxTraffic
:
data
.
throughput
.
max
,
memory
:
data
.
resource
.
memory
}
})
},
getImageInfo
()
{
getImageInfo
()
{
this
.
$http
this
.
$http
.
get
(
"
./static/deployappdetail.json
"
)
.
get
(
"
./static/deployappdetail.json
"
)
...
@@ -825,6 +840,33 @@ export default {
...
@@ -825,6 +840,33 @@ export default {
background-color
:
#f7f8f9
;
background-color
:
#f7f8f9
;
width
:
1022px
;
width
:
1022px
;
}
}
.service_list
::-webkit-scrollbar
{
width
:
0px
;
/*对垂直流动条有效*/
height
:
0px
;
/*对水平流动条有效*/
}
/*定义滚动条的轨道颜色、内阴影及圆角*/
.service_list
::-webkit-scrollbar-track
{
background-color
:
rosybrown
;
border-radius
:
3px
;
}
/*定义滑块颜色、内阴影及圆角*/
.service_list
::-webkit-scrollbar-thumb
{
border-radius
:
7px
;
background-color
:
#E8E8E8
;
}
/*定义两端按钮的样式*/
.service_list
::-webkit-scrollbar-button
{
background-color
:
cyan
;
}
/*定义右下角汇合处的样式*/
.service_list
::-webkit-scrollbar-corner
{
background
:
khaki
;
}
</
style
>
</
style
>
<
style
scoped
>
<
style
scoped
>
...
@@ -1032,7 +1074,7 @@ export default {
...
@@ -1032,7 +1074,7 @@ export default {
border-radius
:
12px
0px
0px
12px
;
border-radius
:
12px
0px
0px
12px
;
}
}
.service_box
{
.service_box
{
width
:
400
px
;
width
:
398
px
;
height
:
48px
;
height
:
48px
;
line-height
:
48px
;
line-height
:
48px
;
text-align
:
left
;
text-align
:
left
;
...
...
src/pages/workbench/yygl/deployment.vue
View file @
0f1e3583
...
@@ -156,6 +156,19 @@
...
@@ -156,6 +156,19 @@
{{ save }}
{{ save }}
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"item.text"
v-if=
"item.type == 'volume'"
>
<div
style=
"overflow:hidden;margin-bottom:5px;"
>
<div
class=
"storage_type"
@
click=
"change_appset(item, 'check_type', 0)"
:style=
"item.check_type==0?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''"
>
临时存储
</div>
<div
class=
"storage_type"
@
click=
"change_appset(item, 'check_type', 1)"
:style=
"item.check_type==1?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''"
>
云存储
</div>
</div>
<div
class=
"cloud_save_box"
v-if=
"item.check_type==1"
>
<el-radio-group
v-model=
"item.value"
>
<p
v-for=
"(it,idx) in pvc_list"
:key=
"idx+589000"
>
<el-radio
:label=
"it.disk_serial_number"
>
{{it.disk_serial_number}}
({{'用量:'+it.disk_cap+'Gi'+' '+' ' +'类型:'+it.store_type}})
</el-radio>
</p>
</el-radio-group>
</div>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
class=
"senior_box"
@
click=
"senior_flag = true"
v-if=
"!senior_flag"
>
<div
class=
"senior_box"
@
click=
"senior_flag = true"
v-if=
"!senior_flag"
>
...
@@ -319,10 +332,18 @@ export default {
...
@@ -319,10 +332,18 @@ export default {
evtSource
:
null
,
evtSource
:
null
,
stateList
:
[],
stateList
:
[],
finallyState
:
0
,
finallyState
:
0
,
pvc_list
:[],
}),
}),
methods
:
{
methods
:
{
get_pvc_list
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/buildPVCs/
${
this
.
baseInfoForm
.
namespace
}
`
).
then
((
response
)
=>
{
console
.
log
(
response
);
this
.
pvc_list
=
response
.
data
.
data
this
.
get_step_info
();
});
},
get_name_space
()
{
get_name_space
()
{
this
.
$http
.
get
(
`/apaas/hubApi/market/namespaces`
).
then
((
response
)
=>
{
this
.
$http
.
get
(
`/apaas/hubApi/market/namespaces
?state=1
`
).
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
area_options
=
response
.
data
.
data
;
this
.
area_options
=
response
.
data
.
data
;
});
});
...
@@ -347,8 +368,12 @@ export default {
...
@@ -347,8 +368,12 @@ export default {
e
[
"
memory
"
]
=
parseInt
(
memory
);
e
[
"
memory
"
]
=
parseInt
(
memory
);
e
[
"
cpu
"
]
=
parseInt
(
cpu
);
e
[
"
cpu
"
]
=
parseInt
(
cpu
);
// this.deal_key_value(this.app_set_info,e.name,'resource',[memory,cpu])
// this.deal_key_value(this.app_set_info,e.name,'resource',[memory,cpu])
}
else
{
}
else
if
(
e
.
type
==
"
volume
"
)
{
e
[
'
check_type
'
]
=
0
e
[
'
value
'
]
=
this
.
pvc_list
[
0
].
disk_serial_number
// this.deal_key_value(this.app_set_info,e.name,e.type,e.value)
// this.deal_key_value(this.app_set_info,e.name,e.type,e.value)
}
else
{
}
}
});
});
this
.
step2_arr
=
step2_arr
;
this
.
step2_arr
=
step2_arr
;
...
@@ -397,7 +422,18 @@ export default {
...
@@ -397,7 +422,18 @@ export default {
selector
:
{},
selector
:
{},
},
},
};
};
}
else
{
}
else
if
(
type
==
"
volume
"
)
{
//临时存储
if
(
value
[
1
]
==
0
){
temp
[
e
]
=
{
emptyDir
:
true
}
}
else
{
//云存储
temp
[
e
]
=
{
claimName
:
value
[
0
]
}
}
}
else
{
temp
[
e
]
=
value
;
temp
[
e
]
=
value
;
}
}
}
else
{
}
else
{
...
@@ -468,6 +504,7 @@ export default {
...
@@ -468,6 +504,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
n
==
1
)
{
if
(
n
==
1
)
{
this
.
get_work_name
();
this
.
get_work_name
();
this
.
get_pvc_list
()
}
else
if
(
n
==
2
)
{
}
else
if
(
n
==
2
)
{
this
.
sub_app_set
();
this
.
sub_app_set
();
}
}
...
@@ -513,7 +550,9 @@ export default {
...
@@ -513,7 +550,9 @@ export default {
e
.
memory
,
e
.
memory
,
e
.
cpu
,
e
.
cpu
,
]);
]);
}
else
{
}
else
if
(
e
.
type
==
"
volume
"
)
{
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
[
e
.
value
,
e
.
check_type
]);
}
else
{
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
e
.
value
);
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
e
.
value
);
}
}
});
});
...
@@ -609,7 +648,6 @@ export default {
...
@@ -609,7 +648,6 @@ export default {
this
.
step
=
0
;
this
.
step
=
0
;
this
.
get_status
();
this
.
get_status
();
this
.
get_name_space
();
this
.
get_name_space
();
this
.
get_step_info
();
this
.
get_step_file
();
this
.
get_step_file
();
},
},
},
},
...
@@ -752,4 +790,28 @@ export default {
...
@@ -752,4 +790,28 @@ export default {
.image_list
.el-table__row
:nth-child
(
odd
)
td
{
.image_list
.el-table__row
:nth-child
(
odd
)
td
{
background-color
:
#f8f9fd
;
background-color
:
#f8f9fd
;
}
}
.storage_type
{
width
:
76px
;
height
:
35px
;
line-height
:
35px
;
text-align
:
center
;
background-color
:
#f7f8f9
;
border-radius
:
6px
;
font-size
:
14px
;
color
:
#6573ae
;
float
:
left
;
cursor
:
pointer
;
margin-right
:
10px
;
}
.cloud_save_box
{
width
:
786px
;
background-color
:
#f7f8f9
;
border-radius
:
6px
;
padding
:
20px
;
padding-bottom
:
10px
;
}
.cloud_save_box
p
{
height
:
30px
;
line-height
:
30px
;
}
</
style
>
</
style
>
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