[update 标准解读流程] 增加删除逻辑
This commit is contained in:
+3
@@ -393,6 +393,7 @@ export default {
|
||||
},
|
||||
selectedRowKeys: [],
|
||||
selectionRows: [],
|
||||
processAllDelIds: [], // 记录所有删除过的id,后端需要
|
||||
url: {
|
||||
// 导入
|
||||
importExcelUrl: '/process/standardInterpretFlow/importExcelByUnDistribute',
|
||||
@@ -733,6 +734,7 @@ export default {
|
||||
title: this.$t('confirmDeletion'),
|
||||
content: this.$t('areYouSure'),
|
||||
onOk: () => {
|
||||
this.processAllDelIds.push(id)
|
||||
that.dataSource = that.dataSource.filter(item => item[this.rowKey] !== id)
|
||||
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
|
||||
if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
|
||||
@@ -756,6 +758,7 @@ export default {
|
||||
title: this.$t('confirmBatchDeletion'),
|
||||
content: this.$t('deleteAData'),
|
||||
onOk: () => {
|
||||
this.processAllDelIds.push(...this.selectedRowKeys)
|
||||
this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item[this.rowKey]))
|
||||
// 重新计算分页问题
|
||||
that.reCalculatePage(that.selectedRowKeys.length)
|
||||
|
||||
Reference in New Issue
Block a user