ocr校核校验
This commit is contained in:
@@ -54,8 +54,9 @@
|
|||||||
populateIframe(iframe, headers) {
|
populateIframe(iframe, headers) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
let fileName= this.$route.query.fileName
|
let fileName= this.$route.query.fileName
|
||||||
|
let id=this.$route.query.id
|
||||||
// xhr.open("GET", 'http://10.0.1.31:8080/jero-boot/ocr/pageOffice/word');
|
// xhr.open("GET", 'http://10.0.1.31:8080/jero-boot/ocr/pageOffice/word');
|
||||||
xhr.open("GET", '/jero-boot/ocr/ocrCheck/editorFile?fileName='+fileName);
|
xhr.open("GET", '/jero-boot/ocr/ocrCheck/editorFile?fileName='+fileName+'&id='+id);
|
||||||
xhr.responseType = "blob";
|
xhr.responseType = "blob";
|
||||||
headers.forEach((header) => {
|
headers.forEach((header) => {
|
||||||
xhr.setRequestHeader(header[0], header[1]);
|
xhr.setRequestHeader(header[0], header[1]);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ocr">
|
<div class="ocr">
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
|
<a-spin :spinning="loading">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<search :flag="'2'" :url="url"/>
|
<search :flag="'2'" :url="url"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,7 +78,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<doc-table v-if="drawVisible" :drawVisible="drawVisible" :drawTableSorce="drawTableSorce" @visible="docVisible" @exportVisible="exportVisible"></doc-table>
|
<doc-table v-if="drawVisible" :drawVisible="drawVisible" :drawTableSorce="drawTableSorce" @visible="docVisible" @exportVisible="exportVisible"></doc-table>
|
||||||
<!-- <ocr-upload ref="uploadFile1" :disabled="disabled" :accept="accept" :listType='listType' @uploadSuccess="uploadSuccess"></ocr-upload>-->
|
<!-- <ocr-upload ref="uploadFile1" :disabled="disabled" :accept="accept" :listType='listType' @uploadSuccess="uploadSuccess"></ocr-upload>-->
|
||||||
|
</a-spin>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -159,6 +161,7 @@
|
|||||||
listType:'text',
|
listType:'text',
|
||||||
token:Vue.ls.get(ACCESS_TOKEN),
|
token:Vue.ls.get(ACCESS_TOKEN),
|
||||||
websock: null,
|
websock: null,
|
||||||
|
loading:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
@@ -308,16 +311,36 @@
|
|||||||
//校核
|
//校核
|
||||||
actionCheck(val){
|
actionCheck(val){
|
||||||
// this.checkVisible=true
|
// this.checkVisible=true
|
||||||
|
this.loading=true
|
||||||
|
axios({
|
||||||
|
url: '/jero-boot/ocr/ocrCheck/verifyCheckFlag',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id:val.id
|
||||||
|
},
|
||||||
|
headers: {
|
||||||
|
'X-Access-Token':this.token
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then( (res) => {
|
||||||
|
if (res.data.success) {
|
||||||
let newUrl = this.$router.resolve({
|
let newUrl = this.$router.resolve({
|
||||||
path: '/ocr/ocrSplit',
|
path: '/ocr/ocrSplit',
|
||||||
query:{
|
query:{
|
||||||
fileName: val.docRealName
|
fileName: val.docRealName,
|
||||||
|
id:val.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.$router.push({
|
|
||||||
// path:'/ocr/ocrSplit'
|
|
||||||
// })
|
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
|
}else{
|
||||||
|
this.$message.error(res.data.message)
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.loading=false
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//下载
|
//下载
|
||||||
actionDown(val){
|
actionDown(val){
|
||||||
|
|||||||
Reference in New Issue
Block a user