Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
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
qa-platform-ui
Commits
9e1cc19c
Commit
9e1cc19c
authored
Oct 09, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复服务展示问题,新增formatImages方法
parent
ca5c5371
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
EnvDetail.vue
src/views/docker/EnvDetail.vue
+8
-2
No files found.
src/views/docker/EnvDetail.vue
View file @
9e1cc19c
...
...
@@ -81,7 +81,7 @@
</el-table-column>
<el-table-column
prop=
"image"
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
.
split
(
'
/
'
)[
2
]
}}
{{
scope
.
row
.
image
|
formatImages
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createdAt"
width=
"200"
label=
"创建时间"
/>
...
...
@@ -146,7 +146,7 @@
</el-table-column>
<el-table-column
prop=
"image"
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
.
split
(
'
:
'
)[
1
]
}}
{{
scope
.
row
.
image
|
formatImages
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createdAt"
width=
"200"
label=
"创建时间"
/>
...
...
@@ -415,10 +415,15 @@ export default {
})
},
methods
:
{
// 格式化镜像名
formatImages
(
images
)
{
return
images
.
replace
(
'
ccr.ccs.tencentyun.com/qa-base/
'
,
''
)
},
indexMethod
(
index
)
{
return
index
+
1
},
array2Object
(
original
)
{
console
.
log
(
'
original:
'
,
original
)
// 将数组转成对象存储
this
.
FormatTabledata
=
{}
original
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -433,6 +438,7 @@ export default {
}
}
})
console
.
log
(
this
.
FormatTabledata
)
},
// 获取服务列表
getServiceList
()
{
...
...
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