|
@@ -40,7 +40,7 @@
|
|
:action="process + '/boman-file/upload'"
|
|
:action="process + '/boman-file/upload'"
|
|
:on-change="handleChange"
|
|
:on-change="handleChange"
|
|
:on-success="upImageFn"
|
|
:on-success="upImageFn"
|
|
- :on-remove="reseImage"
|
|
|
|
|
|
+ :on-remove="reseImage"
|
|
:file-list="config">
|
|
:file-list="config">
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
@@ -87,7 +87,7 @@
|
|
methods: {
|
|
methods: {
|
|
upImageFn(res, file){
|
|
upImageFn(res, file){
|
|
this.config.push(res.data);
|
|
this.config.push(res.data);
|
|
- console.log(this.config,12153)
|
|
|
|
|
|
+ console.log(res,12153)
|
|
},
|
|
},
|
|
init() {
|
|
init() {
|
|
if(this.formConfig.htmlType == 'checkbox' || this.formConfig.htmlType == 'imageUpload' || this.formConfig.htmlType == 'fileUpload'){
|
|
if(this.formConfig.htmlType == 'checkbox' || this.formConfig.htmlType == 'imageUpload' || this.formConfig.htmlType == 'fileUpload'){
|
|
@@ -130,6 +130,7 @@
|
|
},
|
|
},
|
|
handlePictureCardPreview(file) {
|
|
handlePictureCardPreview(file) {
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogImageUrl = file.url;
|
|
|
|
+ // console.log(this.dialogImageUrl)
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
handleDownload(file) {
|
|
handleDownload(file) {
|