From d330736fbce2dcfa0e1485eb48d004f53b3ef3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Tue, 12 Mar 2024 20:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=96=B0=E6=97=A7=E6=8B=86=E5=88=86?= =?UTF-8?q?=E5=8D=95=E5=AF=B9=E6=AF=94--=E5=8F=91=E8=B5=B7=E6=AF=94?= =?UTF-8?q?=E5=AF=B9--=E6=96=B0=E6=97=A7=E6=9D=A1=E6=AC=BE=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E5=B1=95=E7=A4=BA=E4=B8=8D=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DocumentDataComparison.vue | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/jero-web/src/views/documentTool/documentComparison/DocumentDataComparison.vue b/jero-web/src/views/documentTool/documentComparison/DocumentDataComparison.vue index 85f4649..0ef3205 100644 --- a/jero-web/src/views/documentTool/documentComparison/DocumentDataComparison.vue +++ b/jero-web/src/views/documentTool/documentComparison/DocumentDataComparison.vue @@ -89,7 +89,7 @@ :auto-size="{ minRows: 3, maxRows: 5 }" />
- + 提交
@@ -173,7 +173,7 @@ :auto-size="{ minRows: 3, maxRows: 5 }" />
- + 提交
@@ -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) + } + }) } } }