|
|
|
@ -199,6 +199,7 @@
|
|
|
|
|
materialgroupObj: {}, |
|
|
|
|
materialgroupLoading: false, |
|
|
|
|
tableData: [], |
|
|
|
|
resultNumber: 0, |
|
|
|
|
page: { |
|
|
|
|
total: 0, // 总页数 |
|
|
|
|
currentPage: 1, // 当前页数 |
|
|
|
@ -419,6 +420,7 @@
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleProgress(event, file, fileList) { |
|
|
|
|
console.log(event) |
|
|
|
|
// let uploadProgress = file.percentage.toFixed(0) |
|
|
|
|
// this.uploadProgress = uploadProgress |
|
|
|
|
}, |
|
|
|
@ -430,8 +432,12 @@
|
|
|
|
|
groupId: this.groupId != '-1' ? this.groupId : null, |
|
|
|
|
name: file.name, |
|
|
|
|
url: response.link |
|
|
|
|
}).then(function() { |
|
|
|
|
}).then(() => { |
|
|
|
|
this.resultNumber++ |
|
|
|
|
if (fileList.length === this.resultNumber) { |
|
|
|
|
that.getPage(that.page) |
|
|
|
|
this.resultNumber = 0 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
beforeUpload(file) { |
|
|
|
|