src/views/dnc/common/ImportFileModal.vue
@@ -59,12 +59,14 @@
        if (treeNodeInfo) {
          attributionId = treeNodeInfo.treeKey
          attributionType = treeNodeInfo.type
          if (attributionType === 5 || attributionType === 6) docClassCode = 'NC'
          else if (attributionType === 4) docClassCode = 'SEND'
          else docClassCode = 'OTHER'
        } else {
          attributionId = tableRowInfo.attributionId
          attributionType = tableRowInfo.attributionType
          docClassCode = tableRowInfo.param
        }
        if (attributionType === 5 || attributionType === 6) docClassCode = 'NC'
        else docClassCode = 'OTHER'
        this.uploadParams = Object.assign({}, { attributionId, attributionType, docClassCode })
        this.visible = true
      },
@@ -78,7 +80,7 @@
        this.isUploadMultiple = false
        console.log('tableRowInfo', tableRowInfo)
        this.uploadParams = Object.assign({}, {
          id: tableRowInfo.docId,
          docId: tableRowInfo.docId,
          attributionId: tableRowInfo.attributionId,
          docClassCode: tableRowInfo.param
        })
@@ -97,11 +99,9 @@
        return false
      },
      /**
       * 点击上传至服务器按钮时触发
       */
      // 点击上传至服务器按钮时触发
      handleUpload() {
        const { fileList, $notification, isUploadMultiple, uploadParams, $bus } = this
        const { fileList, $notification, isUploadMultiple, uploadParams, $bus, handleModalClose } = this
        this.uploading = true
        let uploadedFileCount = 0
        let uploadSuccessFileCount = 0
@@ -118,7 +118,7 @@
            params = Object.assign({}, { params: uploadParams, formData })
          } else {
            apiMethod = dncApi.documentVersionUpdateApi
            params = Object.assign({}, { id: uploadParams.id, formData })
            params = Object.assign({}, { docId: uploadParams.docId, formData })
          }
          apiMethod(params)
            .then(res => {
@@ -151,7 +151,7 @@
                  $bus.$emit('reloadDocumentListData', uploadParams)
                  if (!isUploadMultiple) {
                    $bus.$emit('reloadMainBottomTableData', 'documentVersion')
                    this.visible = false //无法连续入库多个版本因此入库成功后即可退出窗口
                    handleModalClose() //无法连续入库多个版本因此入库成功后即可退出窗口
                  }
                }
                this.uploading = false
@@ -171,9 +171,7 @@
        this.fileList = newFileList
      },
      /**
       * 控制文件上传窗口关闭并清空文件列表
       */
      // 控制文件上传窗口关闭并清空文件列表
      handleModalClose() {
        this.visible = false
        this.fileList = []