Browse Source

优化

shibei_master
zhaoyongnian 3 years ago
parent
commit
ffd4d4b16e
  1. 9
      src/views/modules/plugins/power/poweraxis_add_leader.vue

9
src/views/modules/plugins/power/poweraxis_add_leader.vue

@ -36,6 +36,7 @@
</el-form-item> -->
<el-form-item label="头像" prop="avatar" label-width="150px">
<el-upload class="avatar-uploader"
:data="{customerId:customerId}"
:action="uploadUlr"
:show-file-list="false"
:on-success="(response, file, fileList) => handleImgSuccess('avatar', response, file, fileList)"
@ -88,6 +89,7 @@ export default {
{ dictValue: '1', dictName: '男' },
{ dictValue: '2', dictName: '女' }
],
customerId: localStorage.getItem('customerId')
}
},
@ -129,10 +131,9 @@ export default {
},
handleImgSuccess (type, res, file) {
if (res.code === 0 && res.msg === 'success') {
console.log('type', type)
console.log('res.data.url', res.data.url)
// console.log('type', type)
// console.log('res.data.url', res.data.url)
this.dataForm.avatar = res.data.url
} else {
this.$message.error(res.msg)
}

Loading…
Cancel
Save