fix: 列表数据为空时统一占位字符

This commit is contained in:
@changcode
2021-07-09 15:35:58 +08:00
parent 2aa7b4ad58
commit 95af9160a7
7 changed files with 13 additions and 10 deletions

View File

@@ -40,7 +40,8 @@
</span>
<span v-else-if="item.prop === 'username'">{{formatUsername(scope.row)}}</span>
<span v-else-if="item.prop === 'createDate'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span>
<span v-else>{{scope.row[item.prop]}}</span>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
<span v-else>-</span>
</template>
</el-table-column>
</el-table>