[update 拆分详情] 增加批量删除标题按钮
This commit is contained in:
@@ -129,6 +129,10 @@
|
||||
<a-button type="primary" ghost @click="handleMerge" v-has="'split:sarFileSplitItems:merge'">
|
||||
{{ $t('docTool.split.mergerClause') }}
|
||||
</a-button>
|
||||
<!--批量删除标题-->
|
||||
<a-button type="primary" ghost @click="handleBatchDelTitle" v-has="'deleteBatchDocumentSplitDetailTitle'">
|
||||
{{ $t('docTool.split.batchDelTitle') }}
|
||||
</a-button>
|
||||
</div>
|
||||
<div>
|
||||
<j-table
|
||||
@@ -205,7 +209,7 @@ import {
|
||||
batchCopyClause,
|
||||
merageClause,
|
||||
getClauseTreeData,
|
||||
copyClause
|
||||
copyClause, batchDelClauseTitle
|
||||
} from '../../../api/documentToolApi.js'
|
||||
import Search from '../../../components/customField/Search.vue'
|
||||
import { isHasPermission } from '../../../utils/hasPermission.js'
|
||||
@@ -551,6 +555,29 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 批量删除标题
|
||||
handleBatchDelTitle () {
|
||||
if (!this.selectedRowKeys || this.selectedRowKeys.length === 0) {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
return
|
||||
}
|
||||
this.$confirm({
|
||||
title: this.$t('docTool.split.batchDelTitleConfirmTip'),
|
||||
content: '',
|
||||
onOk: () => {
|
||||
batchDelClauseTitle({ ids: this.selectedRowKeys.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.onClearSelected()
|
||||
this.loadMenuData()
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 批量编辑
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user