|
|
|
|
@ -62,15 +62,15 @@
|
|
|
|
|
头像:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<div v-if="form.avatar" style="position: relative;">
|
|
|
|
|
<img :src="form.avatar" class="avatar">
|
|
|
|
|
<div v-if="form.avatar_url" style="position: relative;">
|
|
|
|
|
<img :src="form.avatar_url" class="avatar">
|
|
|
|
|
<Button
|
|
|
|
|
class="img__delete"
|
|
|
|
|
icon="md-close"
|
|
|
|
|
shape="circle"
|
|
|
|
|
size="small"
|
|
|
|
|
type="error"
|
|
|
|
|
@click="form.avatar = ''"></Button>
|
|
|
|
|
@click="form.avatar_url = '',form.avatar = ''"></Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-upload
|
|
|
|
|
v-else
|
|
|
|
|
@ -305,6 +305,7 @@ export default {
|
|
|
|
|
product_type_id: '',
|
|
|
|
|
mobile: '',
|
|
|
|
|
avatar: '',
|
|
|
|
|
avatar_url: '',
|
|
|
|
|
idcard: '',
|
|
|
|
|
sex:'',
|
|
|
|
|
birthday: '',
|
|
|
|
|
@ -372,6 +373,8 @@ export default {
|
|
|
|
|
uploadSuccess(response) {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.form.avatar = response.id
|
|
|
|
|
this.form.avatar_url = response.url
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
uploadBefore(file) {
|
|
|
|
|
console.log(file)
|
|
|
|
|
@ -387,7 +390,7 @@ export default {
|
|
|
|
|
async getDetail() {
|
|
|
|
|
const res = await getForm(this.id)
|
|
|
|
|
this.$integrateData(this.form, res)
|
|
|
|
|
this.form.avatar = res.upload.url
|
|
|
|
|
this.form.avatar_url = res.upload.url
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
|