对接条款比对

This commit is contained in:
范强强
2024-02-23 16:49:21 +08:00
parent 151bf5bf5c
commit 94b38282cd
6 changed files with 89 additions and 44 deletions
+4
View File
@@ -63,6 +63,9 @@ const docComparsionConsistentAndSave = (params) => postAction('/compare/sarFileC
const getComparisonDetail = (params) => postAction('/compare/sarFileCompareInfo/getComparisonDetail', params) const getComparisonDetail = (params) => postAction('/compare/sarFileCompareInfo/getComparisonDetail', params)
// 文档对比-文档对比-条款对比左侧目录 // 文档对比-文档对比-条款对比左侧目录
const getSplitMenusByInfo = (params) => getAction('/split/sarFileSplitMenu/getSplitMenusByInfoId', params) const getSplitMenusByInfo = (params) => getAction('/split/sarFileSplitMenu/getSplitMenusByInfoId', params)
// 文档对比-文档对比-条款对比右侧展示
const documentSplitView = (params) => postAction('/laws/DocumentTool/documentSplit/queryView', params)
// 文档对比-文档对比-自动匹配 // 文档对比-文档对比-自动匹配
const clauseComparison = (params) => getAction('/compare/sarFileCompareItem/clauseComparison', params) const clauseComparison = (params) => getAction('/compare/sarFileCompareItem/clauseComparison', params)
// 文档对比-添加全文评论 // 文档对比-添加全文评论
@@ -139,6 +142,7 @@ export {
docComparsionConsistentAndSave, docComparsionConsistentAndSave,
getComparisonDetail, getComparisonDetail,
getSplitMenusByInfo, getSplitMenusByInfo,
documentSplitView,
clauseComparison, clauseComparison,
addFullTextComment, addFullTextComment,
deleteComparisonResult, deleteComparisonResult,
+1
View File
@@ -473,6 +473,7 @@ module.exports = {
newDocumentTextNumber: 'New document text number', newDocumentTextNumber: 'New document text number',
newDocumentTextName: 'New document text name', newDocumentTextName: 'New document text name',
newTextState: 'New text state', newTextState: 'New text state',
comparisonType: 'Comparison Type',
releaseSituation: 'Release situation', releaseSituation: 'Release situation',
comparisonResults: 'Comparison results', comparisonResults: 'Comparison results',
initiateComparison: 'Initiate Comparison', initiateComparison: 'Initiate Comparison',
+1
View File
@@ -485,6 +485,7 @@ module.exports = {
newDocumentTextNumber: '新文档文本号', newDocumentTextNumber: '新文档文本号',
newDocumentTextName: '新文档文本名称', newDocumentTextName: '新文档文本名称',
newTextState: '新文本状态', newTextState: '新文本状态',
comparisonType: '比对类型',
releaseSituation: '发布情况', releaseSituation: '发布情况',
comparisonResults: '对比结果', comparisonResults: '对比结果',
initiateComparison: '发起对比', initiateComparison: '发起对比',
@@ -157,18 +157,24 @@ export default {
width: 150, width: 150,
dataIndex: 'fileTypeRight_dictText' dataIndex: 'fileTypeRight_dictText'
}, },
// 发布情况 // 比对类型
{ {
title: this.$t('docTool.comparison.releaseSituation'), title: this.$t('docTool.comparison.comparisonType'),
width: 150, width: 150,
dataIndex: 'releaseState_dictText' dataIndex: 'compareTypeShow'
}, },
// 发布情况
// {
// title: this.$t('docTool.comparison.releaseSituation'),
// width: 150,
// dataIndex: 'releaseState_dictText'
// },
// 创建人 // 创建人
{ // {
title: this.$t('creator'), // title: this.$t('creator'),
width: 180, // width: 180,
dataIndex: 'createNameNo' // dataIndex: 'createNameNo'
}, // },
// 备注 // 备注
{ {
title: this.$t('remarks'), title: this.$t('remarks'),
@@ -190,36 +196,36 @@ export default {
clickEvent: 'comparisonResultsClick' clickEvent: 'comparisonResultsClick'
}, },
// 发布 // 发布
{ // {
text: this.$t('release'), // text: this.$t('release'),
clickEvent: 'subscribe', // clickEvent: 'subscribe',
show: (record) => { // show: (record) => {
return !record.releaseState || record.releaseState === 'draft' // return !record.releaseState || record.releaseState === 'draft'
} // }
}, // },
// 撤回 // 撤回
{ // {
text: this.$t('withdraw'), // text: this.$t('withdraw'),
clickEvent: 'subscribe', // clickEvent: 'subscribe',
show: (record) => { // show: (record) => {
return !(!record.releaseState || record.releaseState === 'draft') // return !(!record.releaseState || record.releaseState === 'draft')
} // }
}, // },
// 编辑 // 编辑
{ {
text: this.$t('edit'), text: this.$t('edit'),
clickEvent: 'edit', clickEvent: 'edit',
show: (record) => { // show: (record) => {
return !record.releaseState || record.releaseState === 'draft' // return !record.releaseState || record.releaseState === 'draft'
} // }
}, },
// 删除 // 删除
{ {
text: this.$t('delete'), text: this.$t('delete'),
clickEvent: 'handleDelete', clickEvent: 'handleDelete',
show: (record) => { // show: (record) => {
return !record.releaseState || record.releaseState === 'draft' // return !record.releaseState || record.releaseState === 'draft'
} // }
} }
] ]
} }
@@ -251,10 +257,7 @@ export default {
const idList = [] const idList = []
const selectionRows = JSON.parse(JSON.stringify(this.selectionRows)) const selectionRows = JSON.parse(JSON.stringify(this.selectionRows))
for (let i = 0; i < selectionRows.length; i++) { for (let i = 0; i < selectionRows.length; i++) {
if (selectionRows[i].createBy === this.userInfo.username && idList.push(selectionRows[i].id)
selectionRows[i].releaseState === 'draft') {
idList.push(selectionRows[i].id)
}
} }
if (idList.length > 0) { if (idList.length > 0) {
postAction(this.url.deleteBatch, { ids: idList.join(',') }).then((res) => { postAction(this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
@@ -364,7 +364,11 @@ export default {
query: { query: {
id: res.result, id: res.result,
infoIdLeft: this.selectedRowsLeft[0].id, infoIdLeft: this.selectedRowsLeft[0].id,
infoIdRight: this.selectedRowsRight[0].id infoNameLeft: this.selectedRowsLeft[0].title,
infoNumberLeft: this.selectedRowsLeft[0].serialNumber,
infoIdRight: this.selectedRowsRight[0].id,
infoNameRight: this.selectedRowsRight[0].title,
infoNumberRight: this.selectedRowsRight[0].serialNumber,
} }
}) })
} else { } else {
@@ -10,7 +10,7 @@
<div class="detail-content-left"> <div class="detail-content-left">
<!--左边的标准标题--> <!--左边的标准标题-->
<div class="detail-content-left-title"> <div class="detail-content-left-title">
的撒范德萨范德萨但是 {{ $route.query.infoNumberLeft }} {{ $route.query.infoNameLeft }}
</div> </div>
<!--左边的目录--> <!--左边的目录-->
<div class="standard-catalogue part-common"> <div class="standard-catalogue part-common">
@@ -35,9 +35,9 @@
<div class="standard-name"> <div class="standard-name">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
<template #title> <template #title>
{{ resultData.serialNumberLeft }} {{ resultData.fileNameLeft }} {{ $route.query.infoNumberLeft }} {{ $route.query.infoNameLeft }}
</template> </template>
<span>{{ resultData.serialNumberLeft }} {{ resultData.fileNameLeft }}</span> <span>{{ $route.query.infoNumberLeft }} {{ $route.query.infoNameLeft }}</span>
</a-tooltip> </a-tooltip>
</div> </div>
<div class="detail-content-left-scroll"> <div class="detail-content-left-scroll">
@@ -56,7 +56,7 @@
<div class="detail-content-right"> <div class="detail-content-right">
<!--左边的标准标题--> <!--左边的标准标题-->
<div class="detail-content-right-title"> <div class="detail-content-right-title">
的撒范德萨范德萨但是 {{ $route.query.infoNumberRight }} {{ $route.query.infoNameRight }}
</div> </div>
<!--右侧目录--> <!--右侧目录-->
<div class="standard-catalogue part-common"> <div class="standard-catalogue part-common">
@@ -81,9 +81,9 @@
<div class="standard-name"> <div class="standard-name">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
<template #title> <template #title>
{{ resultData.serialNumberRight }} {{ resultData.fileNameRight }} {{ $route.query.infoNumberRight }} {{ $route.query.infoNameRight }}
</template> </template>
<span>{{ resultData.serialNumberRight }} {{ resultData.fileNameRight }}</span> <span>{{ $route.query.infoNumberRight }} {{ $route.query.infoNameRight }}</span>
</a-tooltip> </a-tooltip>
</div> </div>
<div class="detail-content-right-scroll"> <div class="detail-content-right-scroll">
@@ -112,7 +112,7 @@
<script> <script>
import InternalDetailPage from '../../../components/InternalDetailPage.vue' import InternalDetailPage from '../../../components/InternalDetailPage.vue'
import { getSplitMenusByInfo } from '../../../api/documentToolApi.js' import { getSplitMenusByInfo, documentSplitView } from '../../../api/documentToolApi.js'
export default { export default {
name: 'comparisonOfTerms', name: 'comparisonOfTerms',
@@ -125,6 +125,8 @@ export default {
rightTreeSelectedKeys: [], rightTreeSelectedKeys: [],
menuRight: [], menuRight: [],
menuLeft: [], menuLeft: [],
leftData: {},
rightData: {}
} }
}, },
mounted () { mounted () {
@@ -138,13 +140,43 @@ export default {
// 左侧树选择 // 左侧树选择
onSelectLeft (selectedKeys, exports) { onSelectLeft (selectedKeys, exports) {
const node = exports.node.$vnode.data.props.dataRef const node = exports.node.$vnode.data.props.dataRef
console.log(node) this.leftData = node
const index = this.resultData.textLeft.findIndex(tt => tt.menuId === node.menuId) this.getLeftDocumentSplitView()
},
getLeftDocumentSplitView () {
const query = {
menuId: this.leftData.id,
infoId: this.$route.query.infoIdLeft,
page: 1,
pageSize: 9999
}
documentSplitView(query).then((res) => {
if (res.success) {
}
})
}, },
// 右侧树选择 // 右侧树选择
onSelectRight () { onSelectRight (selectedKeys, exports) {
const node = exports.node.$vnode.data.props.dataRef
this.rightData = node
this.getRightDocumentSplitView()
}, },
getRightDocumentSplitView () {
const query = {
menuId: this.rightData.id,
infoId: this.$route.query.infoIdRight,
page: 1,
pageSize: 9999
}
documentSplitView(query).then((res) => {
if (res.success) {
}
})
},
detailRight () { detailRight () {
}, },