|
@@ -41,13 +41,13 @@
|
|
|
<img v-if="form.logo" :src="form.logo" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload> -->
|
|
|
- <image-cropper :options="cropperOptions" :disabled="isDisabled" :imgSize="2" accept=".png" :acceptArray="['image/png']" :imageUrl="form.logo" @crop-upload-success="cropSuccess" />
|
|
|
+ <image-cropper :options="cropperOptions" :disabled="isDisabled" :imgSize="5" accept=".png" :acceptArray="['image/png']" :imageUrl="form.logo" @crop-upload-success="cropSuccess" />
|
|
|
<div
|
|
|
class="tips"
|
|
|
v-show="!isDisabled"
|
|
|
style="line-height: 1.3;color: red;"
|
|
|
>
|
|
|
- 仅支持图片格式:png,大小:2MB;
|
|
|
+ 仅支持图片格式:png,大小:5MB;
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -96,7 +96,7 @@
|
|
|
style="line-height: 1.3;color: red;"
|
|
|
>
|
|
|
请上传透明背景PNG格式公章图片;<br/>
|
|
|
- 仅支持图片格式:png,大小:2MB;
|
|
|
+ 仅支持图片格式:png,大小:5MB;
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -135,7 +135,7 @@
|
|
|
style="line-height: 1.3;color: red;"
|
|
|
>
|
|
|
请上传透明背景PNG格式公章图片;<br/>
|
|
|
- 仅支持图片格式:png,大小:2MB;
|
|
|
+ 仅支持图片格式:png,大小:5MB;
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -593,13 +593,13 @@ export default {
|
|
|
"image/png": true
|
|
|
};
|
|
|
const isImage = imageType[file.type];
|
|
|
- const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
+ const isLt2M = file.size / 1024 / 1024 < 5;
|
|
|
if (!isImage) {
|
|
|
this.$message.error("只能上传图片格式!");
|
|
|
return false;
|
|
|
}
|
|
|
if (!isLt2M) {
|
|
|
- this.$message.error("上传头像图片大小不能超过 2MB!");
|
|
|
+ this.$message.error("上传头像图片大小不能超过 5MB!");
|
|
|
return false;
|
|
|
}
|
|
|
return isImage && isLt2M;
|