src/views/dnc/common/DocumentBatchDeleteModal.vue
@@ -83,7 +83,7 @@
            filters: [
              { text: '未出库', value: 1 },
              { text: '已出库', value: 2 }
            ],
            ]
          },
          {
            title: '状  态',
@@ -94,7 +94,7 @@
              { text: '设计', value: 1 },
              { text: '发布', value: 2 },
              { text: '归档', value: 3 }
            ],
            ]
          },
          { title: '系统指定版本', dataIndex: 'publishVersion', align: 'center', width: 200 },
          {
@@ -183,7 +183,7 @@
      // 确认批量删除文档
      confirmBatchDeleteDocument() {
        const that = this
        const { selectedRowKeys, $notification, $confirm, currentDocumentInfo: { param, attributionId } } = that
        const { selectedRowKeys, $notification, $confirm, currentDocumentInfo: { param, attributionId, attributionType } } = that
        if (selectedRowKeys.length === 0) {
          $notification.warning({
@@ -201,8 +201,17 @@
          onOk: () => {
            let hasRequestedSuccessCount = 0
            let hasRequestedCount = 0
            let method
            let queryParam
            selectedRowKeys.forEach(key => {
              dncApi.deleteDocumentApi(key)
              if (attributionType !== 4) {
                method = dncApi.deleteDocumentApi
                queryParam = key
              } else {
                method = dncApi.deleteDeviceRelativeDocumentApi
                queryParam = { docId: key, attributionId }
              }
              method(queryParam)
                .then(res => {
                  if (res.success) {
                    $notification.success({