From bf5c62b186284eecca6acfb12247dd968d51481b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 14 Apr 2022 14:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=AF=94=E5=AF=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standContrast/pages/textComparison.vue | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/src/pages/localTool/standContrast/pages/textComparison.vue b/src/pages/localTool/standContrast/pages/textComparison.vue index dec89accd..2e0f16abc 100644 --- a/src/pages/localTool/standContrast/pages/textComparison.vue +++ b/src/pages/localTool/standContrast/pages/textComparison.vue @@ -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 => { }) },