Commit 06d34b67 authored by 薛智杰's avatar 薛智杰

Merge branch 'tag' into 'master'

其他服务增加tag显示



See merge request !19
parents 5f16b751 35f44c10
...@@ -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]) || ''
}
...@@ -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
......
...@@ -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="描述信息"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment