style :修改asset页面labels样式 修改message的判断条件
This commit is contained in:
@@ -745,7 +745,8 @@ const cn = {
|
||||
add: "添加",
|
||||
update: "更新",
|
||||
del: "删除",
|
||||
nameMaxLength:"长度应小于64"
|
||||
nameMaxLength:"长度应小于64",
|
||||
uriRequired:'请填写正确的网址'
|
||||
},
|
||||
reset: {
|
||||
reset: "重置",
|
||||
|
||||
@@ -753,6 +753,7 @@ const en = {
|
||||
update: "Update",
|
||||
del: "Delete",
|
||||
nameMaxLength:'The length should be less than 64',
|
||||
uriRequired:'Please fill in the correct url'
|
||||
},
|
||||
reset:{
|
||||
reset:'Reset',
|
||||
|
||||
@@ -374,7 +374,7 @@
|
||||
this.showSubList = true;
|
||||
},
|
||||
messageStyle(e) {
|
||||
if (e.column.label == this.$t("alert.message")) {
|
||||
if (e.column.label == 'Message' || e.column.label == this.$t('alert.message')) {
|
||||
if (e.row.alertNum > 0) {
|
||||
return 'danger';
|
||||
} else {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
line-height: 20px;
|
||||
border-radius: 4px;
|
||||
display: inline-block;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.nz-alert-tag__label {
|
||||
border-radius: 3px 0 0 3px;
|
||||
@@ -40,6 +41,9 @@
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
display: inline-block;
|
||||
height: 21px;
|
||||
box-sizing: content-box;
|
||||
margin-left: -1px;
|
||||
}
|
||||
.nz-alert-tag__content {
|
||||
border-radius: 0 3px 3px 0;
|
||||
|
||||
@@ -638,7 +638,7 @@
|
||||
})
|
||||
},
|
||||
messageStyle(e) {
|
||||
if (e.column.label == 'Alerts') {
|
||||
if (e.column.label == 'Alerts' || e.column.label == this.$t("asset.tableTitle.alerts")) {
|
||||
if (e.row.alertNum > 0) {
|
||||
return 'danger';
|
||||
} else {
|
||||
|
||||
@@ -404,6 +404,7 @@
|
||||
],
|
||||
url:[
|
||||
{ required: true, message: this.$t('validate.required'), trigger: 'blur' },
|
||||
// { type: 'url', message: this.$t('config.system.link.uriRequired'), trigger: 'blur' } /*检验网址是否正确*/
|
||||
]
|
||||
},
|
||||
resetRules:{
|
||||
|
||||
Reference in New Issue
Block a user