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
e72251b1
Commit
e72251b1
authored
May 09, 2020
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mo-config
parent
ac14ccf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
envDetail.vue
src/views/docker/envDetail.vue
+14
-4
No files found.
src/views/docker/envDetail.vue
View file @
e72251b1
...
@@ -59,6 +59,12 @@
...
@@ -59,6 +59,12 @@
</span>
</span>
</span>
</span>
<span
v-if=
"scope.row.serviceName === 'redash'"
>
<span
class=
"link-type"
style=
"margin-right:5px"
@
click=
"openConsole(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
</span>
</span>
<span
v-if=
"scope.row.serviceName === 'rabbitmq'"
>
<span
v-if=
"scope.row.serviceName === 'rabbitmq'"
>
<span
class=
"link-type"
style=
"margin-right:5px"
@
click=
"openConsole(scope.row)"
>
<span
class=
"link-type"
style=
"margin-right:5px"
@
click=
"openConsole(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
{{
scope
.
row
.
serviceName
}}
...
@@ -81,7 +87,7 @@
...
@@ -81,7 +87,7 @@
</el-popover>
</el-popover>
</span>
</span>
<span
v-if=
"scope.row.serviceName !== 'rabbitmq'&& scope.row.serviceName !== 'consul'"
>
{{
scope
.
row
.
serviceName
}}
</span>
<span
v-if=
"scope.row.serviceName !== 'rabbitmq'&& scope.row.serviceName !== 'consul'
&& scope.row.serviceName !== 'redash'
"
>
{{
scope
.
row
.
serviceName
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -139,10 +145,10 @@
...
@@ -139,10 +145,10 @@
<svg-icon
icon-class=
"f5"
/>
<svg-icon
icon-class=
"f5"
/>
更新部署
更新部署
</el-dropdown-item>
</el-dropdown-item>
<
!--
<
el-dropdown-item
v-permission=
"['admin']"
style=
"color: red"
@
click.native=
"deleteService(scope.row) "
>
<el-dropdown-item
v-permission=
"['admin']"
style=
"color: red"
@
click.native=
"deleteService(scope.row) "
>
<svg-icon
icon-class=
"delete"
/>
<svg-icon
icon-class=
"delete"
/>
删除服务
删除服务
</el-dropdown-item>
-->
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</
template
>
</
template
>
...
@@ -580,7 +586,8 @@ export default {
...
@@ -580,7 +586,8 @@ export default {
const
realName
=
this
.
reponame
.
split
(
'
/
'
)[
1
]
const
realName
=
this
.
reponame
.
split
(
'
/
'
)[
1
]
this
.
is_show
=
realName
===
'
mysql
'
this
.
is_show
=
realName
===
'
mysql
'
this
.
is_wechat
=
realName
===
'
h5-ui
'
this
.
is_wechat
=
realName
===
'
h5-ui
'
this
.
is_mock
=
realName
===
'
gu-bei
'
||
realName
===
'
clotho
'
||
realName
===
'
ploutos
'
||
realName
===
'
mo-clotho
'
||
realName
===
'
koala
'
// this.is_mock = realName === 'gu-bei' || realName === 'clotho' || realName === 'ploutos' || realName === 'mo-clotho' || realName === 'koala'
this
.
is_mock
=
true
this
.
mock
=
{
key
:
'
"0"
'
,
display_name
:
'
否
'
}
this
.
mock
=
{
key
:
'
"0"
'
,
display_name
:
'
否
'
}
this
.
wechat
=
{
key
:
'
"0"
'
,
display_name
:
'
否
'
}
this
.
wechat
=
{
key
:
'
"0"
'
,
display_name
:
'
否
'
}
...
@@ -643,6 +650,9 @@ export default {
...
@@ -643,6 +650,9 @@ export default {
if
(
data
.
serviceName
===
'
consul
'
)
{
if
(
data
.
serviceName
===
'
consul
'
)
{
port
=
data
.
portMappings
.
filter
(
item
=>
item
.
port
===
8500
)[
0
].
nodePort
port
=
data
.
portMappings
.
filter
(
item
=>
item
.
port
===
8500
)[
0
].
nodePort
}
}
if
(
data
.
serviceName
===
'
redash
'
)
{
port
=
data
.
portMappings
.
filter
(
item
=>
item
.
port
===
5000
)[
0
].
nodePort
}
window
.
open
(
`http://
${
data
.
lanIp
}
:
${
port
}
/`
,
'
_blank
'
)
window
.
open
(
`http://
${
data
.
lanIp
}
:
${
port
}
/`
,
'
_blank
'
)
},
},
getServiceDetails
(
value
)
{
getServiceDetails
(
value
)
{
...
...
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