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