src/views/dnc/common/ImportFileModal.vue
@@ -82,11 +82,12 @@
       */
      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
      },
@@ -98,8 +99,7 @@
      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
      },
@@ -109,8 +109,7 @@
        this.uploading = true
        let uploadedFileCount = 0
        let uploadSuccessFileCount = 0
        let apiMethod
        let params
      let apiMethod,params
        fileList.forEach((file, index) => {
          const formData = new FormData()
@@ -129,7 +128,6 @@
              if (res.success) {
                file.status = 'done'
                uploadSuccessFileCount++
                console.log('uploadSuccessFileCount++', uploadSuccessFileCount)
                $notification.success({
                  message: '消息',
                  description: res.message