|
@@ -50,6 +50,7 @@ Component({
|
|
|
originFiles: files,
|
|
|
attachmentids: []
|
|
|
})
|
|
|
+ this.toSetFileData()
|
|
|
},
|
|
|
handleRemove(data) {
|
|
|
let file = data.detail.file
|
|
@@ -60,9 +61,7 @@ Component({
|
|
|
})
|
|
|
},
|
|
|
toSetFileData() {
|
|
|
-
|
|
|
let files = this.data.originFiles
|
|
|
-
|
|
|
for (let i = 0; i < files.length; i++) {
|
|
|
// 初始化数据
|
|
|
let that = this,
|
|
@@ -83,7 +82,6 @@ Component({
|
|
|
fail: console.error
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
return new Promise((reslove, reject) => {
|
|
|
this.data.timer = setInterval(e => {
|
|
|
if (this.data.uploadCount === 0) {
|
|
@@ -126,7 +124,7 @@ Component({
|
|
|
"serialfilename": res.serialfilename
|
|
|
}
|
|
|
}).then(rs => {
|
|
|
-
|
|
|
+ console.log("上传附件反馈", rs)
|
|
|
that.setData({
|
|
|
originFiles: that.data.originFiles.map(e => {
|
|
|
if (e.name === res.filename) {
|