Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -163,30 +163,34 @@ export default {
|
||||
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.oldLeftId = '#left_' + this.saveItemId
|
||||
this.oldRightId = '#right_' + this.saveItemIdRight
|
||||
this.oldLeftContent = $('#itemsLeftText_' + this.saveItemId).html()
|
||||
this.oldRightContent = $('#itemsRightText_' + this.saveItemIdRight).html()
|
||||
$('#itemsLeftText_' + this.saveItemId).html(res.data.leftString)
|
||||
$('#itemsRightText_' + this.saveItemIdRight).html(res.data.rightString)
|
||||
this.text = res.data.similarityDegree
|
||||
if (parseFloat(res.data.similarityDegree) >= parseFloat('75%') && parseFloat(res.data.similarityDegree) !== parseFloat('100%')) {
|
||||
this.textcontent = '相似'
|
||||
} else if (parseFloat(res.data.similarityDegree) === parseFloat('100%')) {
|
||||
this.textcontent = '相同'
|
||||
} else if (parseFloat(res.data.similarityDegree) < parseFloat('75%')) {
|
||||
this.textcontent = '不相似'
|
||||
}
|
||||
const treeNodeLeft = {}
|
||||
if(res.data.error === '比对数据已删除'){
|
||||
this.spinShow = false
|
||||
this.$message.error('比对数据已删除')
|
||||
return
|
||||
}else {
|
||||
this.oldLeftId = '#left_' + this.saveItemId
|
||||
this.oldRightId = '#right_' + this.saveItemIdRight
|
||||
this.oldLeftContent = $('#itemsLeftText_' + this.saveItemId).html()
|
||||
this.oldRightContent = $('#itemsRightText_' + this.saveItemIdRight).html()
|
||||
$('#itemsLeftText_' + this.saveItemId).html(res.data.leftString)
|
||||
$('#itemsRightText_' + this.saveItemIdRight).html(res.data.rightString)
|
||||
this.text = res.data.similarityDegree
|
||||
if (parseFloat(res.data.similarityDegree) >= parseFloat('75%') && parseFloat(res.data.similarityDegree) !== parseFloat('100%')) {
|
||||
this.textcontent = '相似'
|
||||
} else if (parseFloat(res.data.similarityDegree) === parseFloat('100%')) {
|
||||
this.textcontent = '相同'
|
||||
} else if (parseFloat(res.data.similarityDegree) < parseFloat('75%')) {
|
||||
this.textcontent = '不相似'
|
||||
}
|
||||
const treeNodeLeft = {}
|
||||
treeNodeLeft.id = this.saveLeftId
|
||||
const treeNodeRight = {}
|
||||
const treeNodeRight = {}
|
||||
treeNodeRight.id = this.saveRightId
|
||||
console.log(treeNodeLeft)
|
||||
console.log(treeNodeRight)
|
||||
this.handleLeftTreeClick("domesticTree1",treeNodeLeft)
|
||||
this.handleRightTreeClick("domesticTree2",treeNodeRight)
|
||||
// this.resultModal = true
|
||||
this.spinShow = false
|
||||
this.handleLeftTreeClick("domesticTree1",treeNodeLeft)
|
||||
this.handleRightTreeClick("domesticTree2",treeNodeRight)
|
||||
// this.resultModal = true
|
||||
this.spinShow = false
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user