From 68813162039280e147930ec8cc838de7e4ac7249 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 15 Oct 2020 11:40:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=9C=AA=E6=BF=80?= =?UTF-8?q?=E6=B4=BB=E8=B5=84=E4=BA=A7=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/userviews/assets/index.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/userviews/assets/index.vue b/src/userviews/assets/index.vue index 59577f414..288f3c92a 100644 --- a/src/userviews/assets/index.vue +++ b/src/userviews/assets/index.vue @@ -59,6 +59,10 @@ export default { key: this.$t('assets.Platform'), value: row.platform }, + { + key: this.$t('common.Activate'), + value: row.is_active + }, { key: this.$t('assets.Comment'), value: row.comment @@ -130,7 +134,12 @@ export default { ] } } - ] + ], + tableAttrs: { + rowClassName({ row }) { + return !row.is_active ? 'row_disabled' : '' + } + } }, headerActions: { hasExport: false, @@ -184,4 +193,8 @@ export default { .el-card { border: 0 !important; } + .row_disabled,.row_disabled:hover,.row_disabled:hover > td{ + cursor: not-allowed; + background-color:rgba(192,196,204,0.28) !important; + }