|
|
|
@ -154,7 +154,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Task",
|
|
|
|
name: "Task",
|
|
|
|
dicts: ['task_status', 'yw_type'],
|
|
|
|
dicts: ['task_status', 'yw_type', 'total_task'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
@ -268,8 +268,27 @@
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "任务详情";
|
|
|
|
this.title = "任务详情";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReRecongnize(row){
|
|
|
|
async onReRecongnize(row){
|
|
|
|
|
|
|
|
let total_task = this.dict.type.total_task;
|
|
|
|
|
|
|
|
let total1 = await listTask({status: '1'}).then(response => {
|
|
|
|
|
|
|
|
return response.total;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(total1 > total_task[0].value || total1 == total_task[0].value){
|
|
|
|
|
|
|
|
this.$alert(`同时接收任务最大数【${total_task[0].value}】,请稍后再试!`, `提示`, {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const loading = this.$loading({
|
|
|
|
|
|
|
|
lock: true,
|
|
|
|
|
|
|
|
text: 'Loading',
|
|
|
|
|
|
|
|
spinner: 'el-icon-loading',
|
|
|
|
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
|
|
|
|
});
|
|
|
|
reRecongnize({taskId: row.id}).then(response => {
|
|
|
|
reRecongnize({taskId: row.id}).then(response => {
|
|
|
|
|
|
|
|
loading.close();
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|