| | |
| | | */ |
| | | handlePush(_, tableRowInfo) { |
| | | this.isUploadMultiple = false |
| | | console.log('tableRowInfo', tableRowInfo) |
| | | const { docId, attributionId, attributionType, param } = tableRowInfo |
| | | this.uploadParams = Object.assign({}, { |
| | | docId: tableRowInfo.docId, |
| | | attributionId: tableRowInfo.attributionId, |
| | | docClassCode: tableRowInfo.param |
| | | docId, |
| | | attributionId, |
| | | attributionType, |
| | | docClassCode: param |
| | | }) |
| | | this.visible = true |
| | | }, |
| | |
| | | beforeUpload(file) { |
| | | if (this.isUploadMultiple) { |
| | | if (!this.fileList.find(item => item.name === file.name)) this.fileList = [...this.fileList, file] |
| | | } |
| | | else this.fileList.splice(0, 1, file) |
| | | } else this.fileList.splice(0, 1, file) |
| | | return false |
| | | }, |
| | | |
| | |
| | | this.uploading = true |
| | | let uploadedFileCount = 0 |
| | | let uploadSuccessFileCount = 0 |
| | | let apiMethod |
| | | let params |
| | | let apiMethod,params |
| | | |
| | | fileList.forEach((file, index) => { |
| | | const formData = new FormData() |
| | |
| | | if (res.success) { |
| | | file.status = 'done' |
| | | uploadSuccessFileCount++ |
| | | console.log('uploadSuccessFileCount++', uploadSuccessFileCount) |
| | | $notification.success({ |
| | | message: '消息', |
| | | description: res.message |