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
35f44c10
Commit
35f44c10
authored
Apr 09, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他服务增加tag显示
parent
5f16b751
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
index.js
src/filters/index.js
+6
-0
envDetail.vue
src/views/docker/envDetail.vue
+11
-2
runingEnv.vue
src/views/docker/runingEnv.vue
+7
-2
No files found.
src/filters/index.js
View file @
35f44c10
...
...
@@ -42,6 +42,7 @@ export function toThousandFilter(num) {
}
export
function
formatStatus
(
tsatus
)
{
switch
(
tsatus
)
{
case
'
Active
'
:
case
'
Normal
'
:
return
'
正常
'
case
'
Abnormal
'
:
...
...
@@ -62,3 +63,8 @@ export function formatImages(images) {
return
images
.
replace
(
'
ccr.ccs.tencentyun.com/qa-base/
'
,
''
)
}
export
function
filterTag
(
image
)
{
const
arr
=
image
.
split
(
'
:
'
)
return
(
arr
&&
arr
[
1
])
||
''
}
src/views/docker/envDetail.vue
View file @
35f44c10
...
...
@@ -46,14 +46,14 @@
</el-table-column>
<el-table-column
prop=
"image"
label=
"镜像
版本
"
>
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
|
formatImages
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createdAt"
label=
"
日期
"
label=
"
创建时间
"
/>
<el-table-column
prop=
"status"
...
...
@@ -103,8 +103,17 @@
<span
class=
"link-type"
@
click=
"handleDetail(scope.row)"
>
{{
scope
.
row
.
serviceName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"image"
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
|
filterTag
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createdAt"
width=
"100"
label=
"创建时间"
/>
<el-table-column
...
...
src/views/docker/runingEnv.vue
View file @
35f44c10
...
...
@@ -25,11 +25,16 @@
</el-table-column>
<el-table-column
prop=
"createdAt"
label=
"
日期
"
label=
"
创建时间
"
/>
<el-table-column
prop=
"status"
label=
"运行状态"
/>
label=
"运行状态"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
status
|
formatStatus
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"描述信息"
/>
...
...
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