From a2e22a7f5539e9688152a4faa9dab2c6f83aad0c Mon Sep 17 00:00:00 2001 From: caoyang Date: Fri, 10 Jun 2022 12:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E5=9B=BE=E7=89=87=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/OcrAddForm/index.vue | 2 +- .../splitting/modules/SplitAddForm.vue | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/jero-web/src/components/OcrAddForm/index.vue b/jero-web/src/components/OcrAddForm/index.vue index 73cc0c9ff..e687fcaf9 100644 --- a/jero-web/src/components/OcrAddForm/index.vue +++ b/jero-web/src/components/OcrAddForm/index.vue @@ -299,7 +299,7 @@ eventBUs.$emit('searchReset') this.$emit('addFormClick') } else { - this.$message.warning(this.$t('operationFailed')) + this.$message.warning(this.$t(res.message)) } }) } else { diff --git a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue index 63eb78fde..894f071fe 100644 --- a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue +++ b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue @@ -630,7 +630,10 @@ if(res.success){ this.contentList=[...res.result] this.contentList.forEach(item=>{ - item.thumbUrl=window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(item.itemContent) + let imgData=item.itemContent.split('fileUrl=')[1] + // console.log('imgData',imgData) + item.thumbUrl=window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+imgData + // item.thumbUrl=Base64.encode(item.itemContent) }) // window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url) @@ -851,7 +854,7 @@ id:'', type:'IMG', itemContent:file.response.result.url, - thumbUrl:window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url) + thumbUrl:window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+file.response.result.url.split('fileUrl=')[1] } // console.log('baseDecode',Base64.decode(this.contentList[this.addIndex].thumbUrl)) @@ -879,10 +882,10 @@ // console.log('conteend',imgs,this.contentList) }, //点击图片预览 - preImg(item){ - this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent - this.preImgVisible=true - }, + // preImg(item){ + // this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent + // this.preImgVisible=true + // }, //关闭预览图片 handlePreImgCancel(){ this.preImgVisible=false