对上传方法的数据处理

prod
吕天方 9 months ago
parent 46ae546fd1
commit e7cbf6f532

@ -1842,7 +1842,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListTwo.push(file)
this.uploadListTwo.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListTwo.push(data)
// this.form.fileListTwo = this.fileListTwo
this.$set(this.form, 'fileListTwo', this.fileListTwo)
// console.log('this.fileListTwo: ', this.fileListTwo);
@ -1858,7 +1861,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListThree.push(file)
this.uploadListThree.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListThree.push(data)
// this.form.fileListThree = this.fileListThree
this.$set(this.form, 'fileListThree', this.fileListThree)
// console.log('this.fileListThree: ', this.fileListThree);
@ -1874,7 +1880,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListFour.push(file)
this.uploadListFour.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFour.push(data)
// this.form.fileListFour = this.fileListFour
this.$set(this.form, 'fileListFour', this.fileListFour)
// console.log('this.fileListFour: ', this.fileListFour);
@ -1890,7 +1899,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListFive.push(file)
this.uploadListFive.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFive.push(data)
// this.form.fileListFive = this.fileListFive
this.$set(this.form, 'fileListFive', this.fileListFive)
// console.log('this.fileListFive: ', this.fileListFive);
@ -1906,7 +1918,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListSix.push(file)
this.uploadListSix.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSix.push(data)
// this.form.fileListSix = this.fileListSix
this.$set(this.form, 'fileListSix', this.fileListSix)
// console.log('this.fileListSix: ', this.fileListSix);
@ -1922,7 +1937,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListSeven.push(file)
this.uploadListSeven.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSeven.push(data)
// this.form.fileListSeven = this.fileListSeven
this.$set(this.form, 'fileListSeven', this.fileListSeven)
// console.log('this.fileListSeven: ', this.fileListSeven);
@ -1938,7 +1956,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListEight.push(file)
this.uploadListEight.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListEight.push(data)
// this.form.fileListEight = this.fileListEight
this.$set(this.form, 'fileListEight', this.fileListEight)
// console.log('this.fileListEight: ', this.fileListEight);
@ -1954,7 +1975,10 @@ export default {
uploadFile(form).then(response => {
// this.fileList = []
this.fileListNine.push(file)
this.uploadListNine.push(response.data)
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListNine.push(data)
// this.form.fileListNine = this.fileListNine
this.$set(this.form, 'fileListNine', this.fileListNine)
// console.log('this.fileListNine: ', this.fileListNine);

Loading…
Cancel
Save