| | |
| | | :visible.sync="updateImg" |
| | | width="1000px" |
| | | class="icon-dialog-wrapper dialong-com-style"> |
| | | <ImageCropper ref="iconShot" v-if="updateImg" :imgSrc="img" > |
| | | <ImageCropper ref="iconShot" v-if="updateImg" :imgSrc="img" :auto-crop="autoCrop"> |
| | | </ImageCropper> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button v-if="loading">取 消</el-button> |
| | |
| | | type: Object, |
| | | default: () => {} |
| | | }, |
| | | tipsLabel: '', |
| | | autoCrop: { |
| | | type: Object, |
| | | default () { |
| | | return { width: 500, height: 500 } |
| | | } |
| | | }, |
| | | // eslint-disable-next-line vue/require-prop-type-constructor |
| | | tipsLabel: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | customStyle: { |
| | | type: String, |
| | | default: 'width: 90px; height: 90px;' |
| | |
| | | console.log(fileData) |
| | | const formData = new FormData() |
| | | |
| | | formData.append('folder', 'member') |
| | | formData.append('folder', this.uploadData.folder || 'member') |
| | | if(this.uploadData.isFace || this.uploadData.isFace == 0){ |
| | | formData.append('isFace', 0) |
| | | } |