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
06d34b67
Commit
06d34b67
authored
Apr 09, 2019
by
薛智杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tag' into 'master'
其他服务增加tag显示 See merge request !19
parents
5f16b751
35f44c10
Changes
3
Hide 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 @
06d34b67
...
@@ -42,6 +42,7 @@ export function toThousandFilter(num) {
...
@@ -42,6 +42,7 @@ export function toThousandFilter(num) {
}
}
export
function
formatStatus
(
tsatus
)
{
export
function
formatStatus
(
tsatus
)
{
switch
(
tsatus
)
{
switch
(
tsatus
)
{
case
'
Active
'
:
case
'
Normal
'
:
case
'
Normal
'
:
return
'
正常
'
return
'
正常
'
case
'
Abnormal
'
:
case
'
Abnormal
'
:
...
@@ -62,3 +63,8 @@ export function formatImages(images) {
...
@@ -62,3 +63,8 @@ export function formatImages(images) {
return
images
.
replace
(
'
ccr.ccs.tencentyun.com/qa-base/
'
,
''
)
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 @
06d34b67
...
@@ -46,14 +46,14 @@
...
@@ -46,14 +46,14 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"image"
prop=
"image"
label=
"镜像
版本
"
>
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
|
formatImages
}}
{{
scope
.
row
.
image
|
formatImages
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"createdAt"
prop=
"createdAt"
label=
"
日期
"
label=
"
创建时间
"
/>
/>
<el-table-column
<el-table-column
prop=
"status"
prop=
"status"
...
@@ -103,8 +103,17 @@
...
@@ -103,8 +103,17 @@
<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>
<el-table-column
prop=
"image"
label=
"镜像"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image
|
filterTag
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"createdAt"
prop=
"createdAt"
width=
"100"
label=
"创建时间"
label=
"创建时间"
/>
/>
<el-table-column
<el-table-column
...
...
src/views/docker/runingEnv.vue
View file @
06d34b67
...
@@ -25,11 +25,16 @@
...
@@ -25,11 +25,16 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"createdAt"
prop=
"createdAt"
label=
"
日期
"
label=
"
创建时间
"
/>
/>
<el-table-column
<el-table-column
prop=
"status"
prop=
"status"
label=
"运行状态"
/>
label=
"运行状态"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
status
|
formatStatus
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"description"
prop=
"description"
label=
"描述信息"
/>
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