新旧拆分单对比--发起比对--新旧条款目录,展示不完整

This commit is contained in:
范强强
2024-03-12 20:49:15 +08:00
parent a326efb3d1
commit d330736fbc
@@ -89,7 +89,7 @@
:auto-size="{ minRows: 3, maxRows: 5 }"
/>
<div style="text-align: right;margin: 10px 0">
<a-button type="primary" @click="modalSave(item)">
<a-button type="primary" @click="modalSave(item,dataRight)">
提交
</a-button>
</div>
@@ -173,7 +173,7 @@
:auto-size="{ minRows: 3, maxRows: 5 }"
/>
<div style="text-align: right;margin: 10px 0">
<a-button type="primary" @click="modalSave(item)">
<a-button type="primary" @click="modalSave(item,dataLeft)">
提交
</a-button>
</div>
@@ -264,14 +264,14 @@ export default {
// 点击左侧文档内容
detailLeft (num, item) {
this.leftTreeSelectedKeys = [item.menuId]
this.similarityDegree = ''
this.textContent = ''
this.itemLeftIndex = num
if (item.id === this.dataLeft.id && !this.isMatching) {
this.dataLeft = {}
this.leftHighlightMenuId = null
if (item.id === this.dataLeft.id) {
// this.dataLeft = {}
// this.leftHighlightMenuId = null
return
}
this.similarityDegree = ''
this.textContent = ''
this.leftHighlightMenuId = item.menuId
this.dataLeft = item
this.dataLeft.numIndex = num
@@ -295,14 +295,14 @@ export default {
// 点击右侧文档内容
detailRight (num, item) {
this.rightTreeSelectedKeys = [item.menuId]
this.similarityDegree = ''
this.textContent = ''
this.itemRightIndex = num
if (item.id === this.dataRight.id && !this.isMatching) {
this.dataRight = {}
this.rightHighlightMenuId = null
if (item.id === this.dataRight.id) {
// this.dataRight = {}
// this.rightHighlightMenuId = null
return
}
this.similarityDegree = ''
this.textContent = ''
this.dataRight = item
this.dataRight.numIndex = num
this.rightHighlightMenuId = item.menuId
@@ -498,11 +498,15 @@ export default {
modalLoading.destroy()
})
},
modalSave (item) {
modalSave (item, data) {
const query = {
remark: item.remark,
id: item.id
}
if (data.id) {
data.remark = item.remark
this.modalSaveRight(data)
}
postAction('/compare/sarFileCompareItem/edit', query).then((res) => {
item.oldRemark = item.remark
if (res.success) {
@@ -511,6 +515,20 @@ export default {
this.$message.warning(res.message)
}
})
},
modalSaveRight (item) {
const query = {
remark: item.remark,
id: item.id
}
postAction('/compare/sarFileCompareItem/edit', query).then((res) => {
item.oldRemark = item.remark
if (res.success) {
// this.$message.success(res.message)
} else {
// this.$message.warning(res.message)
}
})
}
}
}