[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 batchCopyClause = (params) => getAction('/laws/DocumentTool/documentSplit/copyBatchDocumentSplitDetail', params)
|
||||||
// 文档拆分编辑-合并条款
|
// 文档拆分编辑-合并条款
|
||||||
const merageClause = (params) => postAction('/laws/DocumentTool/documentSplit/mergeDocumentSplitDetail', 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)
|
const editBatchEditClause = (params) => postAction('/laws/DocumentTool/documentSplit/editBatchDocumentSplitDetail', params)
|
||||||
// 文档拆分编辑-获取左侧树数据
|
// 文档拆分编辑-获取左侧树数据
|
||||||
@@ -120,6 +122,7 @@ export {
|
|||||||
moveUpOrDownClauseTreeNode,
|
moveUpOrDownClauseTreeNode,
|
||||||
batchCopyClause,
|
batchCopyClause,
|
||||||
merageClause,
|
merageClause,
|
||||||
|
batchDelClauseTitle,
|
||||||
editBatchEditClause,
|
editBatchEditClause,
|
||||||
getClauseTreeData,
|
getClauseTreeData,
|
||||||
addClauseTreeNode,
|
addClauseTreeNode,
|
||||||
|
|||||||
@@ -420,6 +420,7 @@ module.exports = {
|
|||||||
batchCopy: 'Batch copy',
|
batchCopy: 'Batch copy',
|
||||||
batchEdit: 'Batch edit',
|
batchEdit: 'Batch edit',
|
||||||
mergerClause: 'Merge Item',
|
mergerClause: 'Merge Item',
|
||||||
|
batchDelTitle: 'Batch delete titles',
|
||||||
dataType: 'Data type',
|
dataType: 'Data type',
|
||||||
split: 'Split',
|
split: 'Split',
|
||||||
article: 'Article',
|
article: 'Article',
|
||||||
@@ -456,6 +457,7 @@ module.exports = {
|
|||||||
selectDirectoryTerms: 'Please Select the directory location to add terms',
|
selectDirectoryTerms: 'Please Select the directory location to add terms',
|
||||||
documentSplitTemplate: 'Document Split Template',
|
documentSplitTemplate: 'Document Split Template',
|
||||||
mergeTerms: 'Determine Merger Terms',
|
mergeTerms: 'Determine Merger Terms',
|
||||||
|
batchDelTitleConfirmTip: 'Confirm to delete clause title',
|
||||||
pleaseUploadSplitFile: 'Please Upload Split File',
|
pleaseUploadSplitFile: 'Please Upload Split File',
|
||||||
text: 'Text',
|
text: 'Text',
|
||||||
picture: 'Picture',
|
picture: 'Picture',
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ module.exports = {
|
|||||||
batchCopy: '批量复制',
|
batchCopy: '批量复制',
|
||||||
batchEdit: '批量编辑',
|
batchEdit: '批量编辑',
|
||||||
mergerClause: '合并条款',
|
mergerClause: '合并条款',
|
||||||
|
batchDelTitle: '批量删除标题',
|
||||||
dataType: '资料类型',
|
dataType: '资料类型',
|
||||||
split: '拆分',
|
split: '拆分',
|
||||||
article: '条文',
|
article: '条文',
|
||||||
@@ -469,6 +470,7 @@ module.exports = {
|
|||||||
selectDirectoryTerms: '请选择添加条款的目录位置',
|
selectDirectoryTerms: '请选择添加条款的目录位置',
|
||||||
documentSplitTemplate: '拆分导入模版下载',
|
documentSplitTemplate: '拆分导入模版下载',
|
||||||
mergeTerms: '确定合并条款',
|
mergeTerms: '确定合并条款',
|
||||||
|
batchDelTitleConfirmTip: '确定删除条款标题',
|
||||||
pleaseUploadSplitFile: '请上传拆分文件',
|
pleaseUploadSplitFile: '请上传拆分文件',
|
||||||
text: '文本',
|
text: '文本',
|
||||||
picture: '图片',
|
picture: '图片',
|
||||||
|
|||||||
@@ -129,6 +129,10 @@
|
|||||||
<a-button type="primary" ghost @click="handleMerge" v-has="'split:sarFileSplitItems:merge'">
|
<a-button type="primary" ghost @click="handleMerge" v-has="'split:sarFileSplitItems:merge'">
|
||||||
{{ $t('docTool.split.mergerClause') }}
|
{{ $t('docTool.split.mergerClause') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
<!--批量删除标题-->
|
||||||
|
<a-button type="primary" ghost @click="handleBatchDelTitle" v-has="'deleteBatchDocumentSplitDetailTitle'">
|
||||||
|
{{ $t('docTool.split.batchDelTitle') }}
|
||||||
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<j-table
|
<j-table
|
||||||
@@ -205,7 +209,7 @@ import {
|
|||||||
batchCopyClause,
|
batchCopyClause,
|
||||||
merageClause,
|
merageClause,
|
||||||
getClauseTreeData,
|
getClauseTreeData,
|
||||||
copyClause
|
copyClause, batchDelClauseTitle
|
||||||
} from '../../../api/documentToolApi.js'
|
} from '../../../api/documentToolApi.js'
|
||||||
import Search from '../../../components/customField/Search.vue'
|
import Search from '../../../components/customField/Search.vue'
|
||||||
import { isHasPermission } from '../../../utils/hasPermission.js'
|
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