feat: There is no way the,contrast
This commit is contained in:
@@ -145,7 +145,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
comparisonClick () {
|
comparisonClick (flag) {
|
||||||
if (this.saveItemId === '' && this.saveItemIdRight === '') {
|
if (this.saveItemId === '' && this.saveItemIdRight === '') {
|
||||||
return this.$Message.warning('请选择比对的条款内容')
|
return this.$Message.warning('请选择比对的条款内容')
|
||||||
}
|
}
|
||||||
@@ -155,7 +155,8 @@ export default {
|
|||||||
this.spinShow = true
|
this.spinShow = true
|
||||||
let itemsEoPage = {
|
let itemsEoPage = {
|
||||||
oldItemId: this.saveItemId,
|
oldItemId: this.saveItemId,
|
||||||
newItemId: this.saveItemIdRight
|
newItemId: this.saveItemIdRight,
|
||||||
|
flag: flag
|
||||||
}
|
}
|
||||||
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
|
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -164,8 +165,8 @@ export default {
|
|||||||
this.oldRightId = '#right_' + this.saveItemIdRight
|
this.oldRightId = '#right_' + this.saveItemIdRight
|
||||||
this.oldLeftContent = $('#itemsLeftText_' + this.saveItemId).html()
|
this.oldLeftContent = $('#itemsLeftText_' + this.saveItemId).html()
|
||||||
this.oldRightContent = $('#itemsRightText_' + this.saveItemIdRight).html()
|
this.oldRightContent = $('#itemsRightText_' + this.saveItemIdRight).html()
|
||||||
$('#left_' + this.saveItemId).find('#itemsLeftText_' + this.saveItemId).html(res.data.leftString)
|
$('#itemsLeftText_' + this.saveItemId).html(res.data.leftString)
|
||||||
$('#right_' + this.saveItemIdRight).find('#itemsRightText_' + this.saveItemIdRight).html(res.data.rightString)
|
$('#itemsRightText_' + this.saveItemIdRight).html(res.data.rightString)
|
||||||
this.text = res.data.similarityDegree
|
this.text = res.data.similarityDegree
|
||||||
if (parseFloat(res.data.similarityDegree) >= parseFloat('75%') && parseFloat(res.data.similarityDegree) !== parseFloat('100%')) {
|
if (parseFloat(res.data.similarityDegree) >= parseFloat('75%') && parseFloat(res.data.similarityDegree) !== parseFloat('100%')) {
|
||||||
this.textcontent = '相似'
|
this.textcontent = '相似'
|
||||||
@@ -299,7 +300,7 @@ export default {
|
|||||||
scrollTop: scrollToContainer.offset().top - mainContainer.offset().top + mainContainer.scrollTop()
|
scrollTop: scrollToContainer.offset().top - mainContainer.offset().top + mainContainer.scrollTop()
|
||||||
})// 2秒滑动到指定位置
|
})// 2秒滑动到指定位置
|
||||||
}
|
}
|
||||||
this.comparisonClick()
|
this.comparisonClick(flag)
|
||||||
},
|
},
|
||||||
// 返回
|
// 返回
|
||||||
back () {
|
back () {
|
||||||
|
|||||||
Reference in New Issue
Block a user