任务记录、上传历史记录、档案采集 识别类型选择添加

master
wanglei 1 year ago
parent a3d7824791
commit e92edf4653

@ -37,7 +37,7 @@
<el-button icon="el-icon-upload2" type="primary" @click="handleUpload"></el-button> <el-button icon="el-icon-upload2" type="primary" @click="handleUpload"></el-button>
<el-button icon="el-icon-upload2" type="primary" @click="handleScan"></el-button> <el-button icon="el-icon-upload2" type="primary" @click="handleScan"></el-button>
</div> </div>
<el-button icon="el-icon-full-screen" type="primary" v-if="pictureRecard.length>0" @click="OCRRecognition"></el-button> <el-button icon="el-icon-full-screen" type="primary" v-if="pictureRecard.length>0" @click="cjsbrw"></el-button>
</div> </div>
<div style="margin-top: 40px;"> <div style="margin-top: 40px;">
@ -72,7 +72,9 @@
</el-row> </el-row>
<el-dialog title="档案文件上传" :visible.sync="upload.open" width="700px" append-to-body> <el-dialog title="档案文件上传" :visible.sync="upload.open" width="700px" append-to-body>
<div style="margin-bottom: 30px;display: flex;min-height: 300px;" v-loading="upload.loading">
<div v-loading="upload.loading">
<div style="margin-bottom: 30px;display: flex;min-height: 300px;">
<div style="width:250px;border: 1px solid #eee; padding: 10px;max-height: 400px;overflow-y: auto"> <div style="width:250px;border: 1px solid #eee; padding: 10px;max-height: 400px;overflow-y: auto">
<div style="margin-bottom: 5px;">档案室密集柜</div> <div style="margin-bottom: 5px;">档案室密集柜</div>
<el-tree <el-tree
@ -124,11 +126,14 @@
<div style="text-align: center"> <div style="text-align: center">
<el-button style="width:300px;" type="primary" @click="submitFiles"></el-button> <el-button style="width:300px;" type="primary" @click="submitFiles"></el-button>
</div> </div>
</div>
</el-dialog> </el-dialog>
<el-dialog title="扫描文件上传" :visible.sync="smwj.open" width="1000px" append-to-body> <el-dialog title="扫描文件上传" :visible.sync="smwj.open" width="1000px" append-to-body>
<div style="margin-bottom: 30px;display: flex;align-items:start;min-height: 300px;" v-loading="smwj.loading">
<div v-loading="smwj.loading">
<div style="margin-bottom: 30px;display: flex;align-items:start;min-height: 300px;">
<div style="width:250px;border: 1px solid #eee; padding: 10px;max-height: 400px;overflow-y: auto"> <div style="width:250px;border: 1px solid #eee; padding: 10px;max-height: 400px;overflow-y: auto">
<div style="margin-bottom: 5px;">档案室密集柜</div> <div style="margin-bottom: 5px;">档案室密集柜</div>
<el-tree <el-tree
@ -199,24 +204,103 @@
<div style="text-align: center"> <div style="text-align: center">
<el-button style="width:300px;" type="primary" @click="submitFiles(1)"></el-button> <el-button style="width:300px;" type="primary" @click="submitFiles(1)"></el-button>
</div> </div>
</div>
</el-dialog> </el-dialog>
<!--采集识别失败提示--> <!--更换识别类型-->
<el-dialog <el-dialog title="识别类型确认" :visible.sync="dAType.open" width="500px" append-to-body>
title="提示" <div style="padding: 0 40px 40px;">
:visible.sync="tsVisible" <el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option1'||dangAnNode.data.ywType==='option3'||dangAnNode.data.ywType==='option9'||dangAnNode.data.ywType==='option2')"
width="500px"> v-model="dAType.sbType"
<div style="padding: 0 30px; line-height: 30px"> placeholder="请选择识别类型"
创建识别任务提交失败请选择暂不处理继续采集重新提交任务去任务记录查看! clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions1"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option4')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions2"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option6')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions3"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option5')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions4"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option8')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions5"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dangAnNode&&(dangAnNode.data.ywType==='option7')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions6"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div> </div>
<div slot="footer" class="dialog-footer"> <div style="text-align: center">
<el-button type="primary" plain @click="onZbqljxcj"></el-button> <el-button type="primary" @click="sbTypeSubmit"></el-button>
<el-button type="primary" plain @click="qxtjTask"></el-button>
<el-button type="primary" plain @click="goTask"></el-button>
</div> </div>
</el-dialog>
</el-dialog>
</div> </div>
</template> </template>
@ -236,8 +320,39 @@ export default {
dicts: ['total_task', 'tatal_task_pic', 'url'], dicts: ['total_task', 'tatal_task_pic', 'url'],
data() { data() {
return { return {
tsVisible: false, //
taskId: null, dAType: {
//
open: false,
sbType: null,
//
sbTypeOptions1: [
{ label:'常住人口登记表1', value:'option1' },
{ label:'常住人口登记表2', value:'option3' },
{ label:'常住人口登记表3', value:'option9' },
{ label:'常住卡', value:'option2' },
],
//
sbTypeOptions2: [
{ label:'出生医学证明', value:'option4' }
],
//
sbTypeOptions3: [
{ label:'一胎证明', value:'option6' }
],
//
sbTypeOptions4: [
{ label:'迁移证', value:'option5' }
],
//
sbTypeOptions5: [
{ label:'准迁证', value:'option8' }
],
//
sbTypeOptions6: [
{ label:'转非农业人口批复存根', value:'option7' }
]
},
// 0 1 2 // 0 1 2
pixel: 1, pixel: 1,
// //
@ -265,7 +380,12 @@ export default {
}, },
// //
shuJiaOptions: [], shuJiaOptions: [],
//
pictureRecard: [], pictureRecard: [],
//
yPictureRecard: [],
//
wPictureRecard: [],
checkLength: 0, checkLength: 0,
// //
checkAll: false, checkAll: false,
@ -621,6 +741,23 @@ export default {
this.checkAll = checkAll this.checkAll = checkAll
}, },
// //
cjsbrw(){
this.dAType.sbType = null;
this.dAType.open = true;
},
//
sbTypeSubmit(){
if(this.dAType.sbType){
this.dAType.open = false;
this.OCRRecognition()
}else {
this.$alert(`请先选择识别类型!`, `提示`, {
type: 'warning'
});
}
},
//
async OCRRecognition(){ async OCRRecognition(){
let tatal_task_pic = this.dict.type.tatal_task_pic; let tatal_task_pic = this.dict.type.tatal_task_pic;
@ -628,17 +765,27 @@ export default {
this.checkLength = 0; this.checkLength = 0;
let arr = []; let arr = [];
let warr = [];
let singeOrDouble = 0 let singeOrDouble = 0
if(!this.single){ if(!this.single){
singeOrDouble = 1 singeOrDouble = 1
} }
this.pictureRecard.forEach(item => { this.pictureRecard.forEach(item => {
item.singeOrDouble = singeOrDouble
if(item.checked){ if(item.checked){
arr.push(item) item.singeOrDouble = singeOrDouble;
if(this.dAType.sbType){
item['sbType'] = this.dAType.sbType;
}
arr.push(item);
}else {
warr.push(item);
} }
}) })
this.yPictureRecard = arr;
this.wPictureRecard = warr;
this.checkLength = arr.length; this.checkLength = arr.length;
if(arr.length === 0){ if(arr.length === 0){
@ -674,38 +821,15 @@ export default {
}); });
collectRecongnize(arr).then(response => { collectRecongnize(arr).then(response => {
this.pictureRecard = []; this.pictureRecard = [...this.wPictureRecard];
this.checkAll = false; this.checkAll = false;
this.$modal.msgSuccess(response.msg); this.$modal.msgSuccess(response.msg);
loading.close(); loading.close();
}).catch((err)=>{ }).catch((err)=>{
loading.close(); loading.close();
if(err.taskId){
this.taskId = err.taskId;
this.tsVisible = true;
}
}); });
}, },
//
onZbqljxcj(){
this.pictureRecard = [];
this.checkAll = false;
this.tsVisible = false;
},
//
qxtjTask(){
reRecongnize({taskId: this.taskId}).then(response => {
this.pictureRecard = [];
this.checkAll = false;
this.tsVisible = false;
this.$modal.msgSuccess(response.msg);
})
},
//
goTask(){
this.$router.push("/task");
},
// //
deleteFile(index){ deleteFile(index){
this.fileList.splice(index, 1); this.fileList.splice(index, 1);

@ -2,13 +2,19 @@
<div class="app-container"> <div class="app-container">
<div style="width: 200px;margin-top: 20px;"> <div style="width: 200px;margin-top: 20px;">
<div :class="dict.value===queryParams.ywType?'c-tabs__item is-active':'c-tabs__item'" <div :class="dict.value===queryParams.ywType?'z_c-tabs__item is-active':'z_c-tabs__item'"
v-for="dict in dict.type.yw_type" :key="dict.value" @click="handleYwType(dict.value)"> v-for="dict in dict.type.yw_type" :key="dict.value" @click="handleYwType(dict.value)">
{{ dict.label }} {{ dict.label }}
</div> </div>
</div> </div>
<div style="width: calc(100% - 220px);"> <div style="width: calc(100% - 220px);">
<el-tabs v-model="queryParams.recognize" @tab-click="handleClick">
<el-tab-pane label="未识别" name="0"></el-tab-pane>
<el-tab-pane label="已识别" name="1"></el-tab-pane>
</el-tabs>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="130px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="130px">
<el-form-item label="图片ID" prop="id"> <el-form-item label="图片ID" prop="id">
<el-input <el-input
@ -58,21 +64,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="是否已经识别" prop="recognize">
<el-select
v-model="queryParams.recognize"
placeholder="是否已经识别"
clearable
style="width:100%"
>
<el-option
v-for="dict in dict.type.recognize"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否纠错" prop="errorCorrect"> <el-form-item label="是否纠错" prop="errorCorrect">
<el-select <el-select
v-model="queryParams.errorCorrect" v-model="queryParams.errorCorrect"
@ -116,7 +107,7 @@
v-hasPermi="['dangan:pictureRecard:export']" v-hasPermi="['dangan:pictureRecard:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-if="queryParams.recognize==='1'">
<el-button <el-button
type="warning" type="warning"
plain plain
@ -126,8 +117,8 @@
v-hasPermi="['dangan:pictureRecard:export']" v-hasPermi="['dangan:pictureRecard:export']"
>导出图片</el-button> >导出图片</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-if="queryParams.recognize==='0'">
<el-button icon="el-icon-full-screen" size="mini" type="primary" @click="OCRRecognition"></el-button> <el-button icon="el-icon-full-screen" size="mini" type="primary" @click="cjsbrw"></el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -183,19 +174,99 @@
</div> </div>
<!--采集识别失败提示--> <!--更换识别类型-->
<el-dialog <el-dialog title="识别类型确认" :visible.sync="dAType.open" width="500px" append-to-body>
title="提示" <div style="padding: 0 40px 40px;">
:visible.sync="tsVisible"
width="500px"> <el-select v-if="queryParams.ywType==='option1'||queryParams.ywType==='option3'||queryParams.ywType==='option9'||queryParams.ywType==='option2'"
<div style="padding: 0 30px; line-height: 30px"> v-model="dAType.sbType"
创建识别任务提交失败请选择暂不处理继续采集重新提交任务去任务记录查看! placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions1"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="queryParams.ywType==='option4'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions2"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="queryParams.ywType==='option6'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions3"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="queryParams.ywType==='option5'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions4"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="queryParams.ywType==='option8'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions5"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="queryParams.ywType==='option7'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions6"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div> </div>
<div slot="footer" class="dialog-footer"> <div style="text-align: center">
<el-button type="primary" plain @click="onZbqljxcj"></el-button> <el-button type="primary" @click="sbTypeSubmit"></el-button>
<el-button type="primary" plain @click="qxtjTask"></el-button>
<el-button type="primary" plain @click="goTask"></el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -211,10 +282,41 @@ export default {
dicts: ['recognize', 'yw_type', 'error_correct', 'total_task', 'tatal_task_pic'], dicts: ['recognize', 'yw_type', 'error_correct', 'total_task', 'tatal_task_pic'],
data() { data() {
return { return {
tsVisible: false,
taskId: null,
// //
loading: true, loading: true,
//
dAType: {
//
open: false,
sbType: null,
//
sbTypeOptions1: [
{ label:'常住人口登记表1', value:'option1' },
{ label:'常住人口登记表2', value:'option3' },
{ label:'常住人口登记表3', value:'option9' },
{ label:'常住卡', value:'option2' },
],
//
sbTypeOptions2: [
{ label:'出生医学证明', value:'option4' }
],
//
sbTypeOptions3: [
{ label:'一胎证明', value:'option6' }
],
//
sbTypeOptions4: [
{ label:'迁移证', value:'option5' }
],
//
sbTypeOptions5: [
{ label:'准迁证', value:'option8' }
],
//
sbTypeOptions6: [
{ label:'转非农业人口批复存根', value:'option7' }
]
},
// //
ids: [], ids: [],
// //
@ -238,7 +340,7 @@ export default {
wlsjPath: null, wlsjPath: null,
muId: null, muId: null,
muPath: null, muPath: null,
recognize: null, recognize: '0',
errorCorrect: null, errorCorrect: null,
createTime: null createTime: null
}, },
@ -269,9 +371,15 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
if(this.queryParams.ywType!==ywType){ if(this.queryParams.ywType!==ywType){
this.queryParams.ywType=ywType; this.queryParams.ywType=ywType;
this.queryParams.recognize='0'
this.handleQuery() this.handleQuery()
} }
}, },
handleClick(recognize){
this.resetForm("queryForm");
this.queryParams.recognize = recognize.name;
this.handleQuery()
},
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
@ -300,6 +408,22 @@ export default {
}).catch(() => {}); }).catch(() => {});
}, },
// //
cjsbrw(){
this.dAType.sbType = null;
this.dAType.open = true;
},
//
sbTypeSubmit(){
if(this.dAType.sbType){
this.dAType.open = false;
this.OCRRecognition()
}else {
this.$alert(`请先选择识别类型!`, `提示`, {
type: 'warning'
});
}
},
//
async OCRRecognition(){ async OCRRecognition(){
let tatal_task_pic = this.dict.type.tatal_task_pic; let tatal_task_pic = this.dict.type.tatal_task_pic;
@ -311,7 +435,10 @@ export default {
singeOrDouble = 1 singeOrDouble = 1
} }
this.selectionList.forEach(item => { this.selectionList.forEach(item => {
item.singeOrDouble = singeOrDouble item.singeOrDouble = singeOrDouble;
if(this.dAType.sbType){
item['sbType'] = this.dAType.sbType;
}
arr.push(item); arr.push(item);
}) })
@ -354,27 +481,8 @@ export default {
this.getList(); this.getList();
}).catch((err)=>{ }).catch((err)=>{
loading.close(); loading.close();
this.taskId = err.taskId;
this.tsVisible = true;
}); });
}, },
//
onZbqljxcj(){
this.selectionList = [];
this.tsVisible = false;
},
//
qxtjTask(){
reRecongnize({taskId: this.taskId}).then(response => {
this.selectionList = [];
this.tsVisible = false;
this.$modal.msgSuccess(response.msg);
})
},
//
goTask(){
this.$router.push("/task");
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('dangan/pictureRecard/export', { this.download('dangan/pictureRecard/export', {
@ -396,7 +504,7 @@ export default {
display: flex; display: flex;
} }
.c-tabs__item { .z_c-tabs__item {
cursor: pointer; cursor: pointer;
text-align: right; text-align: right;
padding: 0 10px; padding: 0 10px;
@ -410,7 +518,7 @@ export default {
margin-right: 20px; margin-right: 20px;
} }
.c-tabs__item.is-active { .z_c-tabs__item.is-active {
color: #1890ff; color: #1890ff;
border-right: 5px solid #1890ff; border-right: 5px solid #1890ff;
} }

@ -63,13 +63,13 @@
v-if="scope.row.status==='0'|| scope.row.status==='3'|| scope.row.status==='4'" v-if="scope.row.status==='0'|| scope.row.status==='3'|| scope.row.status==='4'"
size="mini" size="mini"
type="text" type="text"
@click="onReRecongnize(scope.row)" @click="cjsbrw(scope.row)"
>重新提交任务</el-button> >重新提交任务</el-button>
<el-button <el-button
v-if="scope.row.status==='2'&& (scope.row.failNum>0 || scope.row.failNum===null) " v-if="scope.row.status==='2'&& (scope.row.failNum>0 || scope.row.failNum===null) "
size="mini" size="mini"
type="text" type="text"
@click="onReRecongnize(scope.row)" @click="cjsbrw(scope.row)"
>重新识别失败图片</el-button> >重新识别失败图片</el-button>
<el-button <el-button
v-if="scope.row.status==='2' || (scope.row.status==='-1'&& (scope.row.failNum!==null)) || scope.row.status==='4'" v-if="scope.row.status==='2' || (scope.row.status==='-1'&& (scope.row.failNum!==null)) || scope.row.status==='4'"
@ -134,7 +134,6 @@
</el-dialog> </el-dialog>
<!-- 查看相关图片 --> <!-- 查看相关图片 -->
<el-dialog :title="xgtp.title" :visible.sync="xgtp.open" width="800px" append-to-body top="6vh"> <el-dialog :title="xgtp.title" :visible.sync="xgtp.open" width="800px" append-to-body top="6vh">
<div> <div>
@ -160,6 +159,100 @@
</el-dialog> </el-dialog>
<!--更换识别类型-->
<el-dialog title="识别类型确认" :visible.sync="dAType.open" width="500px" append-to-body>
<div style="padding: 0 40px 40px;">
<el-select v-if="dAType.selRow && (dAType.selRow.ywType==='option1'||dAType.selRow.ywType==='option3'||dAType.selRow.ywType==='option9'||dAType.selRow.ywType==='option2')"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions1"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dAType.selRow && dAType.selRow.ywType==='option4'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions2"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dAType.selRow && dAType.selRow.ywType==='option6'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions3"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dAType.selRow && dAType.selRow.ywType==='option5'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions4"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dAType.selRow && dAType.selRow.ywType==='option8'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions5"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-select v-if="dAType.selRow && dAType.selRow.ywType==='option7'"
v-model="dAType.sbType"
placeholder="请选择识别类型"
clearable
style="width:100%"
>
<el-option
v-for="item in dAType.sbTypeOptions6"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div style="text-align: center">
<el-button type="primary" @click="sbTypeSubmit"></el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -173,6 +266,40 @@
dicts: ['task_status', 'yw_type', 'total_task'], dicts: ['task_status', 'yw_type', 'total_task'],
data() { data() {
return { return {
//
dAType: {
//
open: false,
sbType: null,
//
sbTypeOptions1: [
{ label:'常住人口登记表1', value:'option1' },
{ label:'常住人口登记表2', value:'option3' },
{ label:'常住人口登记表3', value:'option9' },
{ label:'常住卡', value:'option2' },
],
//
sbTypeOptions2: [
{ label:'出生医学证明', value:'option4' }
],
//
sbTypeOptions3: [
{ label:'一胎证明', value:'option6' }
],
//
sbTypeOptions4: [
{ label:'迁移证', value:'option5' }
],
//
sbTypeOptions5: [
{ label:'准迁证', value:'option8' }
],
//
sbTypeOptions6: [
{ label:'转非农业人口批复存根', value:'option7' }
],
selRow: null
},
// //
loading: true, loading: true,
// //
@ -284,7 +411,30 @@
this.open = true; this.open = true;
this.title = "任务详情"; this.title = "任务详情";
}, },
async onReRecongnize(row){ //
cjsbrw(row){
this.dAType.selRow = row;
if(row.failNum===row.num){
this.dAType.sbType = null;
this.dAType.open = true;
}else {
this.onReRecongnize()
}
},
//
sbTypeSubmit(){
if(this.dAType.sbType){
this.dAType.open = false;
this.onReRecongnize()
}else {
this.$alert(`请先选择识别类型!`, `提示`, {
type: 'warning'
});
}
},
async onReRecongnize(){
let total_task = this.dict.type.total_task; let total_task = this.dict.type.total_task;
let total1 = await listTask({status: '-1'}).then(response => { let total1 = await listTask({status: '-1'}).then(response => {
return response.total; return response.total;
@ -303,7 +453,8 @@
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
reRecongnize({taskId: row.id}).then(response => {
reRecongnize({taskId: this.dAType.selRow.id, sbType: this.dAType.sbType?this.dAType.sbType:this.dAType.selRow.ywType}).then(response => {
loading.close(); loading.close();
this.$modal.msgSuccess(response.msg); this.$modal.msgSuccess(response.msg);
this.getList() this.getList()

Loading…
Cancel
Save