档案采集样式调整

master
wanglei 2 years ago
parent de3c1aef6e
commit 07499be2fb

@ -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;

@ -103,8 +103,8 @@
v-hasPermi="['dangan:pictureRecard:export']" v-hasPermi="['dangan:pictureRecard:export']"
>导出图片</el-button> >导出图片</el-button>
</el-col> </el-col>
<el-col :span="22" style="display: flex; align-items: center; justify-content: end"> <el-col :span="1.5">
<el-button icon="el-icon-full-screen" type="primary" @click="OCRRecognition">OCR</el-button> <el-button icon="el-icon-full-screen" size="mini" type="primary" @click="OCRRecognition">OCR</el-button>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save