对接条款比对
This commit is contained in:
@@ -65,6 +65,9 @@ const getComparisonDetail = (params) => postAction('/compare/sarFileCompareInfo/
|
||||
const getSplitMenusByInfo = (params) => getAction('/split/sarFileSplitMenu/getSplitMenusByInfoId', params)
|
||||
// 文档对比-文档对比-条款对比右侧展示
|
||||
const documentSplitView = (params) => postAction('/laws/DocumentTool/documentSplit/queryView', params)
|
||||
// 文档对比-文档对比-条款对比对比按钮
|
||||
const clauseComparisonEvent = (params) => postAction('/compare/sarFileCompareItem/clauseComparisonEvent', params)
|
||||
|
||||
|
||||
// 文档对比-文档对比-自动匹配
|
||||
const clauseComparison = (params) => getAction('/compare/sarFileCompareItem/clauseComparison', params)
|
||||
@@ -143,6 +146,7 @@ export {
|
||||
getComparisonDetail,
|
||||
getSplitMenusByInfo,
|
||||
documentSplitView,
|
||||
clauseComparisonEvent,
|
||||
clauseComparison,
|
||||
addFullTextComment,
|
||||
deleteComparisonResult,
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
<div class="standard-name">
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title>
|
||||
{{ $route.query.infoNumberLeft }} {{ $route.query.infoNameLeft }}
|
||||
{{ leftData.title }}
|
||||
</template>
|
||||
<span>{{ $route.query.infoNumberLeft }} {{ $route.query.infoNameLeft }}</span>
|
||||
<span>{{ leftData.title }}</span>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<div class="detail-content-left-scroll">
|
||||
@@ -81,13 +81,13 @@
|
||||
<div class="standard-name">
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title>
|
||||
{{ $route.query.infoNumberRight }} {{ $route.query.infoNameRight }}
|
||||
{{ rightData.title }}
|
||||
</template>
|
||||
<span>{{ $route.query.infoNumberRight }} {{ $route.query.infoNameRight }}</span>
|
||||
<span>{{ rightData.title }}</span>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<div class="detail-content-right-scroll">
|
||||
<div class="detail-content-right-item" @click="detailRight(index,item)"
|
||||
<div class="detail-content-right-item"
|
||||
v-for="(item,index) in resultData.textRight" :key="index">
|
||||
<div class="detail-content-item-text" style="margin-bottom: 10px;color: #040B29">
|
||||
{{ item.itemsNum + ' ' + item.itemsName }}
|
||||
@@ -103,6 +103,7 @@
|
||||
<div class="detail-content-button">
|
||||
<a-button class="header-btn"
|
||||
type="primary"
|
||||
@click="comparisonClick"
|
||||
ghost>
|
||||
{{ $t('docTool.comparison.comparison') }}
|
||||
</a-button>
|
||||
@@ -112,7 +113,7 @@
|
||||
|
||||
<script>
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { getSplitMenusByInfo, documentSplitView } from '../../../api/documentToolApi.js'
|
||||
import { getSplitMenusByInfo, documentSplitView, clauseComparisonEvent } from '../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'comparisonOfTerms',
|
||||
@@ -140,6 +141,9 @@ export default {
|
||||
// 左侧树选择
|
||||
onSelectLeft (selectedKeys, exports) {
|
||||
const node = exports.node.$vnode.data.props.dataRef
|
||||
if (!node.pid) {
|
||||
return
|
||||
}
|
||||
this.leftData = node
|
||||
this.getLeftDocumentSplitView()
|
||||
},
|
||||
@@ -159,6 +163,9 @@ export default {
|
||||
// 右侧树选择
|
||||
onSelectRight (selectedKeys, exports) {
|
||||
const node = exports.node.$vnode.data.props.dataRef
|
||||
if (!node.pid) {
|
||||
return
|
||||
}
|
||||
this.rightData = node
|
||||
this.getRightDocumentSplitView()
|
||||
},
|
||||
@@ -197,6 +204,18 @@ export default {
|
||||
this.menuRight = []
|
||||
}
|
||||
})
|
||||
},
|
||||
comparisonClick () {
|
||||
const query = {
|
||||
// oldItemId: this.saveItemId,
|
||||
// newItemId: this.saveItemIdRight,
|
||||
standHisId: this.$route.query.id
|
||||
}
|
||||
clauseComparisonEvent(query).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,13 +129,13 @@ export default {
|
||||
// }
|
||||
// },
|
||||
// 查看
|
||||
{
|
||||
text: this.$t('view'),
|
||||
clickEvent: 'handleDetail'
|
||||
},
|
||||
// {
|
||||
// text: this.$t('view'),
|
||||
// clickEvent: 'handleDetail'
|
||||
// },
|
||||
// 编辑
|
||||
{
|
||||
text: this.$t('edit'),
|
||||
text: this.$t('view'),
|
||||
clickEvent: 'handleEdit',
|
||||
// show: (record) => {
|
||||
// // 创建人(更改权限更改的是这个字段)是当前登录人,且状态为编辑中可以编辑
|
||||
|
||||
Reference in New Issue
Block a user