perf: 列表页上的数字0不置灰

This commit is contained in:
陈劲松
2020-03-26 19:21:54 +08:00
parent b39f8dd9a1
commit e0db1d84bd
3 changed files with 3 additions and 6 deletions

View File

@@ -72,8 +72,7 @@
</template>
<template v-else-if="item.prop == 'alertName'">{{scope.row.alertName}}</template>
<template v-else-if="item.prop == 'alertNum'">
<span v-if="scope.row.alertNum" class="link" @click="queryMessage(scope.row)">{{scope.row.alertNum}}</span>
<template v-else>0</template>
<span class="link" @click="queryMessage(scope.row)">{{scope.row.alertNum}}</span>
</template>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
<template v-else>-</template>