Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
KubePi
Commits
478177be
Commit
478177be
authored
3 years ago
by
ssongliu
Browse files
Options
Download
Email Patches
Plain Diff
fix(service): 服务列表目标端口显示
parent
eea96933
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/dashboard/src/business/network/services/index.vue
+7
-1
web/dashboard/src/business/network/services/index.vue
with
7 additions
and
1 deletion
+7
-1
web/dashboard/src/business/network/services/index.vue
+
7
-
1
View file @
478177be
...
...
@@ -42,7 +42,13 @@
<
template
v-slot:default=
"{row}"
>
<div
v-for=
"(value,key,index) in row.spec.ports"
v-bind:key=
"index"
type=
"info"
size=
"mini"
>
<span
style=
"font-size: 12px"
v-if=
"row.spec.type ==='NodePort'"
>
{{
value
.
port
}}
:
{{
value
.
nodePort
}}
/
{{
value
.
protocol
}}
--->
{{
value
.
targetPort
}}
{{
value
.
port
}}
:
{{
value
.
nodePort
}}
/
{{
value
.
protocol
}}
</span>
<span
style=
"font-size: 12px"
v-if=
"row.spec.type !=='NodePort' && value.port === value.targetPort"
>
{{
value
.
port
}}
/
{{
value
.
protocol
}}
</span>
<span
style=
"font-size: 12px"
v-if=
"row.spec.type !=='NodePort' && value.port !== value.targetPort"
>
{{
value
.
port
}}
:
{{
value
.
targetPort
}}
/
{{
value
.
protocol
}}
</span>
<br>
</div>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help