Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qahome-diamond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qahome-diamond
Commits
9cecdf3d
Commit
9cecdf3d
authored
Jun 21, 2019
by
薛智杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jiakewei' into 'master'
添加成功和错误的提示图标 See merge request !25
parents
ee8a596e
9f3864ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
envDetail.vue
src/views/docker/envDetail.vue
+9
-19
No files found.
src/views/docker/envDetail.vue
View file @
9cecdf3d
...
@@ -36,15 +36,15 @@
...
@@ -36,15 +36,15 @@
:index=
"indexMethod"
:index=
"indexMethod"
type=
"index"
/>
type=
"index"
/>
<el-table-column
<el-table-column
v-if=
"serviceName!=='rabbitmq'"
prop=
"serviceName"
label=
"服务名"
>
label=
"服务名"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.serviceName !== 'rabbitmq'"
>
{{
scope
.
row
.
serviceName
}}
</span>
<i
v-if=
"scope.row.status == 'Normal'"
class=
"el-icon-success"
style=
"color: #67c23a"
/>
<span
v-if=
"scope.row.serviceName === 'rabbitmq'"
class=
"link-type"
@
click=
"openRabbitmq(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
</span>
<i
v-else
class=
"el-icon-error"
style=
"color: #f56c6c"
/>
<span>
{{
scope
.
row
.
serviceName
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"lanIp"
prop=
"lanIp"
label=
"ip地址"
label=
"ip地址"
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
label=
"服务端口"
label=
"服务端口"
width=
"300px"
>
width=
"300px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in scope.row.portMappings"
:key=
"item.port"
>
{{
item
.
nodePort
}}
->
{{
item
.
port
}}
</span>
<span
v-for=
"item in scope.row.portMappings"
:key=
"item.port"
class=
"port"
>
{{
item
.
nodePort
}}
->
{{
item
.
port
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -113,6 +113,8 @@
...
@@ -113,6 +113,8 @@
label=
"服务名"
label=
"服务名"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<i
v-if=
"scope.row.status == 'Normal'"
class=
"el-icon-success"
style=
"color: #67c23a"
/>
<i
v-else
class=
"el-icon-error"
style=
"color: #f56c6c"
/>
<span
class=
"link-type"
@
click=
"handleDetail(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
</span>
<span
class=
"link-type"
@
click=
"handleDetail(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -137,14 +139,7 @@
...
@@ -137,14 +139,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
v-if=
"item._id==='java'"
label=
"调试"
>
label=
"调试"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.serviceType==='NodePort'"
>
{{
scope
.
row
.
lanIp
}}
:
{{
scope
.
row
.
portMappings
[
1
].
nodePort
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"控制台"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"控制台"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-tickets"
circle
@
click=
"linkShell(scope.row)"
/>
<el-button
type=
"primary"
icon=
"el-icon-tickets"
circle
@
click=
"linkShell(scope.row)"
/>
...
@@ -471,11 +466,6 @@ export default {
...
@@ -471,11 +466,6 @@ export default {
// window.open(`http://${url}/`, '_blank')
// window.open(`http://${url}/`, '_blank')
// })
// })
},
},
openRabbitmq
(
data
)
{
console
.
log
(
data
)
const
port
=
data
.
portMappings
.
filter
(
item
=>
item
.
port
===
15672
)[
0
].
nodePort
window
.
open
(
`http://
${
data
.
lanIp
}
:
${
port
}
/`
,
'
_blank
'
)
},
getServiceDetails
(
value
)
{
getServiceDetails
(
value
)
{
fetchServiceDetails
({
serviceName
:
value
.
serviceName
,
namespace
:
this
.
namespace
}).
then
(
res
=>
{
fetchServiceDetails
({
serviceName
:
value
.
serviceName
,
namespace
:
this
.
namespace
}).
then
(
res
=>
{
this
.
centerDialogVisible
=
true
this
.
centerDialogVisible
=
true
...
...
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