|
@@ -639,6 +639,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ uploadsuccess (response, file, fileList) {
|
|
|
+ this.$refs.uploaduserlogo.clearFiles();
|
|
|
+ if (0 === response.status) {
|
|
|
+
|
|
|
+ this.formData.facePictureUrl = response.data;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ beforeAvatarUpload (file) {
|
|
|
+ const isJPG = file.type === 'image/jpeg';
|
|
|
+ const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
+
|
|
|
+ if (!isJPG) {
|
|
|
+ this.$message.error('上传头像图片只能是 JPG 格式!');
|
|
|
+ }
|
|
|
+ if (!isLt2M) {
|
|
|
+ this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
|
+ }
|
|
|
+ return isJPG && isLt2M;
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
shareScopeChange (index) {
|
|
|
|
|
|
var data = this.$refs[`getChecked${index}`][0].getCheckedNodes();
|