增加配置
This commit is contained in:
parent
d1cab21626
commit
28b58646c2
|
|
@ -119,6 +119,44 @@ export default {
|
|||
cancel() {
|
||||
this.addSwiperVisible = false;
|
||||
},
|
||||
// 上传之前
|
||||
handleBeforeUpload(file) {
|
||||
// const isSvg = this.fileType.some((e) => file.type.includes(e));
|
||||
// if (!isSvg) {
|
||||
// this.$modal.msgError(
|
||||
// `文件格式不正确, 请上传${this.fileType.join("、")}格式的文件!`
|
||||
// );
|
||||
// return false;
|
||||
// }
|
||||
// const isLt = file.size / 1024 / 1024 < 3;
|
||||
// if (!isLt) {
|
||||
// this.$modal.msgError(`LOGO大小不能超过 3 MB`);
|
||||
// return false;
|
||||
// }
|
||||
// this.$modal.loading("图片正在上传,请稍候...");
|
||||
},
|
||||
// 移除
|
||||
handleRemove(file) {
|
||||
// this.addOrEditForm.fileList = this.addOrEditForm.fileList.filter(
|
||||
// (item) => item.uid !== file.uid
|
||||
// );
|
||||
// this.addOrEditForm.logo = "";
|
||||
},
|
||||
// 预览 LOGO
|
||||
handlePreview(file) {
|
||||
// this.dialogInnerVisible = true;
|
||||
// this.previewUrl = file.url;
|
||||
},
|
||||
// 上传成功
|
||||
handleSuccess(res) {
|
||||
// if (res.code === 200) {
|
||||
// this.addOrEditForm.logo = res.data.url;
|
||||
// } else {
|
||||
// this.addOrEditForm.fileList = [];
|
||||
// this.addOrEditForm.logo = "";
|
||||
// }
|
||||
// this.$modal.closeLoading();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue