feat:添加停用状态

This commit is contained in:
zhangyu
2020-11-09 17:54:48 +08:00
parent ad67265a80
commit bfd70c845f
4 changed files with 10 additions and 3 deletions

View File

@@ -91,7 +91,8 @@ export const asset = {
],
stateData: [
{value: 1, label: i18n.t('asset.inStock')},
{value: 2, label: i18n.t('asset.notInStock')}
{value: 2, label: i18n.t('asset.notInStock')},
{value: 3, label: i18n.t('asset.offStreamUnit')},
],
};

View File

@@ -535,6 +535,7 @@ const cn = {
uSize: "U位",
inStock: "在库",
notInStock: "出库",
offStreamUnit:'停用',
principal: "负责人",
tel: "电话",
featureTitle: "属性",
@@ -866,6 +867,7 @@ const cn = {
stateInfo_230010: "Prometheus服务可用",
stateInfo_230011: "Endpoint 连接错误",
alerts:"告警",
label:'标签',
},
metrics: {
metrics: "指标",

View File

@@ -441,6 +441,7 @@ const en = {
uSize: 'U size',
inStock: 'In stock',//'在库'
notInStock: 'Not in stock',//'出库'
offStreamUnit:'off stream unit',
assetType:'Asset type',//'资产类型'
principal:'Administrator',//'负责人'
tel:'Telephone', //'电话'
@@ -872,7 +873,8 @@ const en = {
stateInfo_230009:'Promserver unavailable',
stateInfo_230010:'Promserver can be used',
stateInfo_230011:'Endpoint connection refused',
alerts:'Alerts'
alerts:'Alerts',
label:'Label'
},
metrics: {
metrics: 'Metrics',//"指标"

View File

@@ -85,7 +85,9 @@
<span>{{scope.row.host}}</span>
</div>
<div v-if="item.prop=='state'">
<span>{{scope.row.state==1 ? $t('asset.inStock') : $t('asset.notInStock')}}</span>
<span v-if="scope.row.state==1">{{ $t('asset.inStock')}}</span>
<span v-if="scope.row.state==2">{{ $t('asset.notInStock')}}</span>
<span v-if="scope.row.state==3">{{ $t('asset.offStreamUnit')}}</span>
</div>
<div v-if="item.prop == 'pingStatus'">
<el-popover