对接条款比对
This commit is contained in:
@@ -53,12 +53,16 @@ const getInterpretationArticlesList = (params) => getAction('/laws/DocumentTool/
|
||||
const withdrawPublication = (params) => postAction('/compare/sarFileCompareInfo/changeState', params)
|
||||
// 文档对比-发起对比-获取页面数据
|
||||
const getInitComparsionPageData = (params) => getAction('/laws/DocumentTool/documentSplit/queryByPage', params)
|
||||
// 文档对比-发起对比-提交数据
|
||||
// 文档对比-发起全文对比-提交数据
|
||||
const submitInitComparsion = (params) => postAction('/compare/sarFileCompareInfo/fullTextComparison', params)
|
||||
// 文档对比-发起条款对比-提交数据
|
||||
const submitItemComparison = (params) => postAction('/compare/sarFileCompareInfo/itemComparison', params)
|
||||
// 文档对比-文档对比-一致/保存
|
||||
const docComparsionConsistentAndSave = (params) => postAction('/compare/sarFileCompareItemComment/add', params)
|
||||
// 文档对比-文档对比-获取对比详情
|
||||
const getComparisonDetail = (params) => postAction('/compare/sarFileCompareInfo/getComparisonDetail', params)
|
||||
// 文档对比-文档对比-条款对比左侧目录
|
||||
const getSplitMenusByInfo = (params) => getAction('/split/sarFileSplitMenu/getSplitMenusByInfoId', params)
|
||||
// 文档对比-文档对比-自动匹配
|
||||
const clauseComparison = (params) => getAction('/compare/sarFileCompareItem/clauseComparison', params)
|
||||
// 文档对比-添加全文评论
|
||||
@@ -131,8 +135,10 @@ export {
|
||||
withdrawPublication,
|
||||
getInitComparsionPageData,
|
||||
submitInitComparsion,
|
||||
submitItemComparison,
|
||||
docComparsionConsistentAndSave,
|
||||
getComparisonDetail,
|
||||
getSplitMenusByInfo,
|
||||
clauseComparison,
|
||||
addFullTextComment,
|
||||
deleteComparisonResult,
|
||||
|
||||
@@ -154,7 +154,7 @@ import { previewPdf } from '../../../utils/previewPdf.js'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { getInitComparsionPageData, submitInitComparsion } from '../../../api/documentToolApi.js'
|
||||
import { getInitComparsionPageData, submitInitComparsion, submitItemComparison } from '../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'InitiateComparison',
|
||||
@@ -355,8 +355,22 @@ export default {
|
||||
remark: this.formInline.remark
|
||||
}
|
||||
if (type === 'comparisonOfTerms') {
|
||||
this.$router.push({
|
||||
path: '/documentTool/comparisonOfTerms'
|
||||
submitItemComparison(query).then((res) => {
|
||||
if (res.success) {
|
||||
this.loading = false
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.$router.push({
|
||||
path: '/documentTool/comparisonOfTerms',
|
||||
query: {
|
||||
id: res.result,
|
||||
infoIdLeft: this.selectedRowsLeft[0].id,
|
||||
infoIdRight: this.selectedRowsRight[0].id
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
submitInitComparsion(query).then((res) => {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
:selected-keys="leftTreeSelectedKeys"
|
||||
:replace-fields="{key: 'menuId'}"
|
||||
@select="onSelectLeft"
|
||||
:tree-data="resultData.menuLeft">
|
||||
:tree-data="menuLeft">
|
||||
<a-icon slot="switcherIcon" type="down" :style="{ fontSize: '12px', color: '#103770' }" />
|
||||
<template slot="title" slot-scope="{title}">
|
||||
<!-- 目录前三个和有子集的标题加粗 -->
|
||||
@@ -66,7 +66,7 @@
|
||||
:selected-keys="rightTreeSelectedKeys"
|
||||
:replace-fields="{key: 'menuId'}"
|
||||
@select="onSelectRight"
|
||||
:tree-data="resultData.menuRight">
|
||||
:tree-data="menuRight">
|
||||
<a-icon slot="switcherIcon" type="down" :style="{ fontSize: '12px', color: '#103770' }" />
|
||||
<template slot="title" slot-scope="{title}">
|
||||
<!-- 目录前三个和有子集的标题加粗 -->
|
||||
@@ -112,6 +112,7 @@
|
||||
|
||||
<script>
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { getSplitMenusByInfo } from '../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'comparisonOfTerms',
|
||||
@@ -122,8 +123,14 @@ export default {
|
||||
leftTreeSelectedKeys: [],
|
||||
resultData: {},
|
||||
rightTreeSelectedKeys: [],
|
||||
menuRight: [],
|
||||
menuLeft: [],
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getMenuLeft()
|
||||
this.getMenuRight()
|
||||
},
|
||||
methods: {
|
||||
handleBack () {
|
||||
|
||||
@@ -131,6 +138,7 @@ export default {
|
||||
// 左侧树选择
|
||||
onSelectLeft (selectedKeys, exports) {
|
||||
const node = exports.node.$vnode.data.props.dataRef
|
||||
console.log(node)
|
||||
const index = this.resultData.textLeft.findIndex(tt => tt.menuId === node.menuId)
|
||||
},
|
||||
// 右侧树选择
|
||||
@@ -139,6 +147,24 @@ export default {
|
||||
},
|
||||
detailRight () {
|
||||
|
||||
},
|
||||
getMenuLeft () {
|
||||
getSplitMenusByInfo({ infoId: this.$route.query.infoIdLeft }).then((res) => {
|
||||
if (res.success) {
|
||||
this.menuLeft = res.result || []
|
||||
} else {
|
||||
this.menuLeft = []
|
||||
}
|
||||
})
|
||||
},
|
||||
getMenuRight () {
|
||||
getSplitMenusByInfo({ infoId: this.$route.query.infoIdRight }).then((res) => {
|
||||
if (res.success) {
|
||||
this.menuRight = res.result || []
|
||||
} else {
|
||||
this.menuRight = []
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user