插入数据
examplesChange(index) {
let startindex = index
this.FormData.examples.map((item, index) => {
if(index == startindex+1) {
this.$nextTick(() => {
this.$refs.examplesUploadRef[index].setFileList([])
})
}
if(index>startindex) {
if(item.pictureList&&item.pictureList.length>0) {
this.$nextTick(() => {
this.$refs.examplesUploadRef[index].setFileList(item.pictureList)
})
}
}
})
},
删除数据,先删除原有el-upload的数据在删除表单数据
deleteexamples(index) {
this.$nextTick(() => {
this.$refs.examplesUploadRef[index].setFileList([])
this.FormData.examples.splice(index,1)
})
},