|
|
|
@ -37,11 +37,16 @@
|
|
|
|
<el-button icon="el-icon-full-screen" type="primary" v-if="pictureRecard.length>0" @click="OCRRecognition">OCR识别</el-button>
|
|
|
|
<el-button icon="el-icon-full-screen" type="primary" v-if="pictureRecard.length>0" @click="OCRRecognition">OCR识别</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 50px;">
|
|
|
|
<div style="margin-top: 40px;">
|
|
|
|
|
|
|
|
|
|
|
|
<el-empty :image-size="240" v-if="pictureRecard.length===0"></el-empty>
|
|
|
|
<el-empty :image-size="240" v-if="pictureRecard.length===0"></el-empty>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="pictureRecard.length>0">
|
|
|
|
<div v-if="pictureRecard.length>0">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-show="isFails" style="margin-bottom: 10px;width:80%;min-width:400px">
|
|
|
|
|
|
|
|
<el-alert title="未识别图片,请重新识别" type="warning" effect="dark" :closable="false"></el-alert>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
|
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
|
<div style="margin: 15px 0;"></div>
|
|
|
|
<div style="margin: 15px 0;"></div>
|
|
|
|
<el-checkbox v-for="item in pictureRecard" :label="item.picName" :key="item.id" v-model="item.checked" @change="handleCheckChange(item)">
|
|
|
|
<el-checkbox v-for="item in pictureRecard" :label="item.picName" :key="item.id" v-model="item.checked" @change="handleCheckChange(item)">
|
|
|
|
@ -218,6 +223,7 @@ export default {
|
|
|
|
components: {Treeselect},
|
|
|
|
components: {Treeselect},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
isFails: false,
|
|
|
|
// 颜色模式,0:黑白 1:灰色 2:彩色
|
|
|
|
// 颜色模式,0:黑白 1:灰色 2:彩色
|
|
|
|
pixel: 1,
|
|
|
|
pixel: 1,
|
|
|
|
// 是否单面
|
|
|
|
// 是否单面
|
|
|
|
@ -593,13 +599,18 @@ export default {
|
|
|
|
console.log(3232,response);
|
|
|
|
console.log(3232,response);
|
|
|
|
if(response.fails&&response.fails.length>0){
|
|
|
|
if(response.fails&&response.fails.length>0){
|
|
|
|
this.pictureRecard = response.fails
|
|
|
|
this.pictureRecard = response.fails
|
|
|
|
|
|
|
|
this.isFails = true;
|
|
|
|
|
|
|
|
this.$alert(`${response.msg},请重新识别失败档案!`, `提示`, {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
});
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.isFails = false;
|
|
|
|
this.pictureRecard = [];
|
|
|
|
this.pictureRecard = [];
|
|
|
|
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.checkAll = false;
|
|
|
|
this.checkAll = false;
|
|
|
|
clearInterval(this.Interval);
|
|
|
|
clearInterval(this.Interval);
|
|
|
|
this.openProgress = false;
|
|
|
|
this.openProgress = false;
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
|
|
|
|
}).catch(()=>{
|
|
|
|
}).catch(()=>{
|
|
|
|
clearInterval(this.Interval);
|
|
|
|
clearInterval(this.Interval);
|
|
|
|
this.openProgress = false;
|
|
|
|
this.openProgress = false;
|
|
|
|
|