feat:修改 chart创建 alertList时的相关更改

This commit is contained in:
zhangyu
2021-05-20 16:38:39 +08:00
parent e835dc6972
commit bfab789bef
5 changed files with 123 additions and 160 deletions

View File

@@ -101,6 +101,7 @@
</template>
</el-table-column>
<el-table-column
v-if="showOption"
:resizable="false"
:width="operationWidth"
fixed="right">
@@ -140,6 +141,10 @@ export default {
props: {
nowTime: {
type: String
},
showOption: {
type: Boolean,
default: true
}
},
mixins: [table, bus],
@@ -520,9 +525,9 @@ export default {
return 'alert-message-list-labels'
} else if (row.column.label == this.$t('alert.list.state')) {
if (row.row.state == 1) {
return 'danger'
return ''
} else if (row.row.state == 2) {
return 'success'
return ''
}
} else {
return ''