[update 拆分详情] 增加批量删除标题按钮
This commit is contained in:
@@ -36,6 +36,8 @@ const moveUpOrDownClauseTreeNode = (params) => postAction('/split/sarFileSplitMe
|
||||
const batchCopyClause = (params) => getAction('/laws/DocumentTool/documentSplit/copyBatchDocumentSplitDetail', params)
|
||||
// 文档拆分编辑-合并条款
|
||||
const merageClause = (params) => postAction('/laws/DocumentTool/documentSplit/mergeDocumentSplitDetail', params)
|
||||
// 文档拆分编辑-批量删除标题
|
||||
const batchDelClauseTitle = (params) => postAction('/laws/DocumentTool/documentSplit/deleteBatchTitle', params)
|
||||
// 文档拆分编辑-批量编辑
|
||||
const editBatchEditClause = (params) => postAction('/laws/DocumentTool/documentSplit/editBatchDocumentSplitDetail', params)
|
||||
// 文档拆分编辑-获取左侧树数据
|
||||
@@ -120,6 +122,7 @@ export {
|
||||
moveUpOrDownClauseTreeNode,
|
||||
batchCopyClause,
|
||||
merageClause,
|
||||
batchDelClauseTitle,
|
||||
editBatchEditClause,
|
||||
getClauseTreeData,
|
||||
addClauseTreeNode,
|
||||
|
||||
@@ -420,6 +420,7 @@ module.exports = {
|
||||
batchCopy: 'Batch copy',
|
||||
batchEdit: 'Batch edit',
|
||||
mergerClause: 'Merge Item',
|
||||
batchDelTitle: 'Batch delete titles',
|
||||
dataType: 'Data type',
|
||||
split: 'Split',
|
||||
article: 'Article',
|
||||
@@ -456,6 +457,7 @@ module.exports = {
|
||||
selectDirectoryTerms: 'Please Select the directory location to add terms',
|
||||
documentSplitTemplate: 'Document Split Template',
|
||||
mergeTerms: 'Determine Merger Terms',
|
||||
batchDelTitleConfirmTip: 'Confirm to delete clause title',
|
||||
pleaseUploadSplitFile: 'Please Upload Split File',
|
||||
text: 'Text',
|
||||
picture: 'Picture',
|
||||
|
||||
@@ -434,6 +434,7 @@ module.exports = {
|
||||
batchCopy: '批量复制',
|
||||
batchEdit: '批量编辑',
|
||||
mergerClause: '合并条款',
|
||||
batchDelTitle: '批量删除标题',
|
||||
dataType: '资料类型',
|
||||
split: '拆分',
|
||||
article: '条文',
|
||||
@@ -469,6 +470,7 @@ module.exports = {
|
||||
selectDirectoryTerms: '请选择添加条款的目录位置',
|
||||
documentSplitTemplate: '拆分导入模版下载',
|
||||
mergeTerms: '确定合并条款',
|
||||
batchDelTitleConfirmTip: '确定删除条款标题',
|
||||
pleaseUploadSplitFile: '请上传拆分文件',
|
||||
text: '文本',
|
||||
picture: '图片',
|
||||
|
||||
@@ -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