|
|
@@ -364,7 +364,10 @@ onMounted(()=>{
|
|
|
|
|
|
:on-change="handleChange"
|
|
|
:file-list="fileList">
|
|
|
- <el-button v-loading="uploading" size="small" type="primary">{{ uploading?'上传中...':(ruleForm.addr?'重新上传':'点击上传') }}</el-button>
|
|
|
+
|
|
|
+ <img style="width:60px;height:60px;" v-if="ruleForm.addr" :src="ruleForm.addr" class="avatar" />
|
|
|
+ <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
|
|
+ <!-- <el-button v-loading="uploading" size="small" type="primary">{{ uploading?'上传中...':(ruleForm.addr?'重新上传':'点击上传') }}</el-button> -->
|
|
|
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
@@ -438,7 +441,14 @@ onMounted(()=>{
|
|
|
</style>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
+ .avatar-uploader-icon{
|
|
|
+ border:1px #000 dashed;
|
|
|
+ display:flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ height:60px;
|
|
|
+ width:60px;
|
|
|
+ }
|
|
|
.table-user-wrap{
|
|
|
display:flex;
|
|
|
align-items: center;
|