| | |
| | | } else { |
| | | this.ipagination.total = 0 |
| | | } |
| | | } |
| | | else this.$message.warning(res.message) |
| | | } else this.$message.warning(res.message) |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | |
| | | // 确认批量删除文档 |
| | | confirmBatchDeleteDocument() { |
| | | const that = this |
| | | const { selectedRowKeys, $notification, $confirm, currentDocumentInfo: { param, attributionId, attributionType } } = that |
| | | const { |
| | | selectedRowKeys, |
| | | $notification, |
| | | $confirm, |
| | | currentDocumentInfo: { param, attributionId, attributionType } |
| | | } = that |
| | | |
| | | if (selectedRowKeys.length === 0) { |
| | | $notification.warning({ |
| | |
| | | hasRequestedCount++ |
| | | if (hasRequestedCount === selectedRowKeys.length && hasRequestedSuccessCount > 0) { |
| | | this.loadData() |
| | | this.$emit('reloadDocumentListData', { docClassCode: param, attributionId }) |
| | | this.$emit('reloadDocumentListData', { docClassCode: param, attributionId, attributionType }) |
| | | } |
| | | }) |
| | | }) |