fix 80139

This commit is contained in:
赵霄
2023-12-29 17:00:05 +08:00
parent 1072b5a9c3
commit d09b92ef6d
3 changed files with 14 additions and 5 deletions
+1
View File
@@ -174,6 +174,7 @@ module.exports = {
pleaseCompleteTableInfo: '请完善表格信息',
pleaseEnterAPositiveInteger: '请输入正整数',
pleaseSelectStandard: '请选择标准',
successfullyDelete: '删除成功',
// 树右键
treeRight: {
addFolder: 'Create New Folder',
+1
View File
@@ -182,6 +182,7 @@ module.exports = {
pleaseEnterAPositiveInteger: '请输入正整数',
implementationNeedGreaterThan: '实施日期需要至少比发布日期大15天',
pleaseSelectStandard: '请选择标准',
successfullyDelete: '删除成功',
// 树右键
treeRight: {
addFolder: '新增文件夹',
@@ -931,12 +931,19 @@ export default {
this.$message.warning(this.$t('selectLeastOne'))
return
}
const tableData = JSON.parse(JSON.stringify(this.dataSource))
this.selectedRowKeys.forEach(index => {
tableData[index] = null
this.$confirm({
title: this.$t('confirmBatchDeletion'),
content: this.$t('deleteAData'),
onOk: () => {
const tableData = JSON.parse(JSON.stringify(this.dataSource))
this.selectedRowKeys.forEach(index => {
tableData[index] = null
})
this.dataSource = tableData.filter(tt => !!tt)
this.selectedRowKeys = []
this.$message.success(this.$t('successfullyDelete'))
}
})
this.dataSource = tableData.filter(tt => !!tt)
this.selectedRowKeys = []
},
onSelectChange (selectedRowKeys) {
console.log(selectedRowKeys)