Skip to content

Commit

Permalink
用户头像空占位
Browse files Browse the repository at this point in the history
  • Loading branch information
wyy committed Jun 19, 2023
1 parent d2ff4bb commit e229849
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mall4v/src/crud/user/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const tableOption = {
prop: 'pic',
type: 'upload',
imgWidth: 150,
listType: 'picture-img'
listType: 'picture-img',
slot: true
}, {
label: '状态',
prop: 'status',
Expand Down
8 changes: 8 additions & 0 deletions mall4v/src/views/modules/user/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
<!-- :disabled="dataListSelections.length <= 0">批量删除</el-button>-->
<!-- </template>-->

<template slot-scope="scope"
slot="pic">
<span class="avue-crud__img" v-if="scope.row.pic">
<i :src="scope.row.pic" class="el-icon-document"></i>
</span>
<span v-else>-</span>
</template>

<template slot-scope="scope"
slot="status">
<el-tag v-if="scope.row.status === 0"
Expand Down

0 comments on commit e229849

Please sign in to comment.