fix 80139
This commit is contained in:
@@ -174,6 +174,7 @@ module.exports = {
|
||||
pleaseCompleteTableInfo: '请完善表格信息',
|
||||
pleaseEnterAPositiveInteger: '请输入正整数',
|
||||
pleaseSelectStandard: '请选择标准',
|
||||
successfullyDelete: '删除成功',
|
||||
// 树右键
|
||||
treeRight: {
|
||||
addFolder: 'Create New Folder',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user