feat: There is no way the, 56689 标准比对-条款比对 字段显示有问题
This commit is contained in:
@@ -57,7 +57,9 @@
|
||||
</el-row>
|
||||
</div>
|
||||
<!-- <div v-html="leftString" v-if="comparisonFlag === '2'"></div>-->
|
||||
<div v-for="(item,index) in leftString" v-html="item" :key="index" v-if="comparisonFlag === '2'"></div>
|
||||
<div v-if="comparisonFlag === '2'">
|
||||
<span v-for="(item,index) in leftString" v-html="item" :key="index"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +112,9 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<div v-for="(item,index) in rightString" v-html="item" :key="index" v-if="comparisonFlag === '2'"></div>
|
||||
<div v-if="comparisonFlag === '2'">
|
||||
<span v-for="(item,index) in rightString" v-html="item" :key="index"></span>
|
||||
</div>
|
||||
<!-- <div v-html="rightString" v-if="comparisonFlag === '2'"></div>-->
|
||||
</div>
|
||||
</div>
|
||||
@@ -206,6 +210,7 @@ export default {
|
||||
})
|
||||
}
|
||||
this.spinShow = true
|
||||
|
||||
let itemsEoPage = {
|
||||
oldItemId: this.saveItemId,
|
||||
newItemId: this.saveItemIdRight,
|
||||
@@ -215,8 +220,18 @@ export default {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.comparisonFlag = '2'
|
||||
this.leftString = res.data.leftString
|
||||
this.rightString = res.data.rightString
|
||||
this.leftString = []
|
||||
if((typeof res.data.leftString) === "string"){
|
||||
this.leftString.push(res.data.leftString)
|
||||
}else {
|
||||
this.leftString = res.data.leftString
|
||||
}
|
||||
this.rightString = []
|
||||
if((typeof res.data.rightString) === "string"){
|
||||
this.rightString.push(res.data.rightString)
|
||||
}else {
|
||||
this.rightString = res.data.rightString
|
||||
}
|
||||
this.text = res.data.similarityDegree
|
||||
if (parseFloat(res.data.similarityDegree) < parseFloat('75%')) {
|
||||
this.textcontent = '不相似'
|
||||
|
||||
Reference in New Issue
Block a user