用户头像空占位

master
wyy 3 years ago
parent d2ff4bbc28
commit e229849c85

@ -28,7 +28,8 @@ export const tableOption = {
prop: 'pic', prop: 'pic',
type: 'upload', type: 'upload',
imgWidth: 150, imgWidth: 150,
listType: 'picture-img' listType: 'picture-img',
slot: true
}, { }, {
label: '状态', label: '状态',
prop: 'status', prop: 'status',

@ -15,6 +15,14 @@
<!-- :disabled="dataListSelections.length <= 0">批量删除</el-button>--> <!-- :disabled="dataListSelections.length <= 0">批量删除</el-button>-->
<!-- </template>--> <!-- </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" <template slot-scope="scope"
slot="status"> slot="status">
<el-tag v-if="scope.row.status === 0" <el-tag v-if="scope.row.status === 0"

Loading…
Cancel
Save