perf: 各列表有些没内容的字段用‘-’展示

This commit is contained in:
陈劲松
2020-03-13 16:56:54 +08:00
parent de51ed0c79
commit dd689508d4
4 changed files with 13 additions and 6 deletions

View File

@@ -73,7 +73,8 @@
<span v-else>-</span>
</template>
<template v-else-if="item.prop == 'alertName'">{{scope.row.alertName}}</template>
<span v-else>{{scope.row[item.prop]}}</span>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
<template v-else>-</template>
</template>
</el-table-column>
<el-table-column width="28">