|
@@ -6,7 +6,7 @@
|
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
|
<el-upload
|
|
|
ref="upload"
|
|
|
- :limit="1"
|
|
|
+ :multiple="true"
|
|
|
:action="action"
|
|
|
:auto-upload="true"
|
|
|
:show-file-list="false"
|
|
@@ -52,11 +52,6 @@ export default {
|
|
|
},
|
|
|
handleSubmit() {
|
|
|
const arr = Object.keys(this.listObj).map(v => this.listObj[v])
|
|
|
- // if (!this.checkAllSuccess()) {
|
|
|
- // this.$message('Please wait for all images to be uploaded successfully. If there is a network problem, please refresh the page and upload again!')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // console.log( "this.listObj", this.listObj)
|
|
|
this.$emit('successCBK', arr)
|
|
|
this.listObj = {}
|
|
|
this.fileList = []
|
|
@@ -90,9 +85,6 @@ export default {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
const img = new Image()
|
|
|
img.src = _URL.createObjectURL(file)
|
|
|
- // img.onload = function() {
|
|
|
- // _self.listObj[fileName] = { hasSuccess: false, uid: file.uid, width: this.width, height: this.height }
|
|
|
- // }
|
|
|
resolve(true)
|
|
|
})
|
|
|
}
|