|
@@ -35,6 +35,7 @@
|
|
|
name="fileData"
|
|
name="fileData"
|
|
|
:http-request="uploaderHandle"
|
|
:http-request="uploaderHandle"
|
|
|
:on-success="uploadSuccess"
|
|
:on-success="uploadSuccess"
|
|
|
|
|
+ :on-remove="handleRemove"
|
|
|
:auto-upload="true"
|
|
:auto-upload="true"
|
|
|
>
|
|
>
|
|
|
<i slot="default" class="el-icon-plus"/>
|
|
<i slot="default" class="el-icon-plus"/>
|
|
@@ -77,6 +78,9 @@ export default {
|
|
|
onDataTypeChange() {
|
|
onDataTypeChange() {
|
|
|
this.form.bzId = ''
|
|
this.form.bzId = ''
|
|
|
},
|
|
},
|
|
|
|
|
+ handleRemove(file, fileList) {
|
|
|
|
|
+ this.fileList = fileList
|
|
|
|
|
+ },
|
|
|
uploadSuccess(res, file, fileList) {
|
|
uploadSuccess(res, file, fileList) {
|
|
|
file.url = res.url
|
|
file.url = res.url
|
|
|
this.fileList = fileList
|
|
this.fileList = fileList
|
|
@@ -87,7 +91,6 @@ export default {
|
|
|
this.fileList = []
|
|
this.fileList = []
|
|
|
this.form = {}
|
|
this.form = {}
|
|
|
if (data) {
|
|
if (data) {
|
|
|
- console.log(data.dataType)
|
|
|
|
|
if (data.litpics) {
|
|
if (data.litpics) {
|
|
|
data.litpics.forEach(o => {
|
|
data.litpics.forEach(o => {
|
|
|
this.fileList.push({ url: o })
|
|
this.fileList.push({ url: o })
|
|
@@ -98,6 +101,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleSubmit() {
|
|
handleSubmit() {
|
|
|
const litpics = []
|
|
const litpics = []
|
|
|
|
|
+ console.log(this.fileList)
|
|
|
this.fileList.forEach(o => {
|
|
this.fileList.forEach(o => {
|
|
|
litpics.push(o.url)
|
|
litpics.push(o.url)
|
|
|
})
|
|
})
|