ocr校核修改
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<a-card>
|
||||
<iframe id="iframe" ref="iframe" frameborder="0" :style="'width:100%;height:'+iframeHeight+'px'"></iframe>
|
||||
<iframe id="iframe" ref="iframe" frameborder="0" :style="'width:100%;height:'+iframeHeight+'px'">
|
||||
<div class="form"></div>
|
||||
</iframe>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -18,12 +20,23 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
brownHeight(){
|
||||
immediate: true
|
||||
|
||||
}
|
||||
// brownHeight(){
|
||||
// immediate: true
|
||||
//
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
// var iframeTop=document.querySelector("#iframe").offsetHeight
|
||||
// var formElement = document.querySelector('.form')
|
||||
// formElement.style.height=iframeTop+'px'
|
||||
// window.addEventListener('resize', () => {
|
||||
// var iframeTopNow=document.querySelector("#iframe").offsetHeight
|
||||
// formElement.style.height=iframeTopNow+'px'
|
||||
// }, false);
|
||||
|
||||
|
||||
|
||||
|
||||
this.iframeTop=this.$refs.iframe.getBoundingClientRect().top
|
||||
this.iframeHeight=this.brownHeight-this.iframeTop-24
|
||||
window.addEventListener('resize', () => {
|
||||
@@ -40,8 +53,9 @@
|
||||
methods:{
|
||||
populateIframe(iframe, headers) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
let fileName= this.$route.query.fileName
|
||||
// xhr.open("GET", 'http://10.0.1.31:8080/jero-boot/ocr/pageOffice/word');
|
||||
xhr.open("GET", 'http://10.0.1.25:8080/jero-boot/ocr/ocrCheck/editorFile');
|
||||
xhr.open("GET", 'http://10.0.1.25:8080/jero-boot/ocr/ocrCheck/editorFile?fileName='+fileName);
|
||||
xhr.responseType = "blob";
|
||||
headers.forEach((header) => {
|
||||
xhr.setRequestHeader(header[0], header[1]);
|
||||
|
||||
@@ -310,6 +310,9 @@
|
||||
// this.checkVisible=true
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/ocr/ocrSplit',
|
||||
query:{
|
||||
fileName: val.docRealName
|
||||
}
|
||||
})
|
||||
// this.$router.push({
|
||||
// path:'/ocr/ocrSplit'
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
@cancel="handleErrCancel"
|
||||
:footer="false"
|
||||
>
|
||||
<span class="err-value">{{errValue}}</span>
|
||||
<div class="err-value" v-html="errValue"></div>
|
||||
<!-- <span class="err-value">{{errValue}}</span>-->
|
||||
</a-modal>
|
||||
<!-- <split-upload ref="uploadFile" :disabled="disabled" :title="upload1" :accept="accept" @uploadSuccess="uploadSuccess"></split-upload>-->
|
||||
</a-drawer>
|
||||
@@ -286,7 +287,7 @@
|
||||
this.visible = false;
|
||||
this.$emit('visible',false)
|
||||
}else{
|
||||
this.$message.warning(res.data.message)
|
||||
// this.$message.warning(res.data.message)
|
||||
if(res.data.code==1){
|
||||
this.$message.error(res.data.message);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user