|
|
@@ -89,7 +89,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="识别异常">
|
|
|
<el-select v-model="queryMarkStatus" size="mini" clearable>
|
|
|
- <el-option label="考号识别异常" :value="0"></el-option>
|
|
|
+ <el-option v-for="item in $const.recErrorList" :label="item.label" :value="item.value"></el-option>
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
@@ -103,7 +104,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-tabs v-model="activeName" @tab-click="handleTabClick">
|
|
|
<el-tab-pane :label="'正常('+recSucTotal+')'" name="1"></el-tab-pane>
|
|
|
- <el-tab-pane :label="'异常('+recErrTotal+')'" name="0"></el-tab-pane>
|
|
|
+ <el-tab-pane :label="'异常('+recErrTotal+')'" name="100"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -121,9 +122,9 @@
|
|
|
<span v-if="scope.row.mark_status==1" style="color:#85ce61;">已上传</span>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column align="center" prop="mark_status" label="识别状态">
|
|
|
+ <el-table-column align="center" prop="mark_status_name" label="识别状态">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.mark_status==0" style="color:#f78989;">异常</span>
|
|
|
+ <span v-if="scope.row.mark_status<=0" style="color:#f78989;">{{scope.row.mark_status_name}}</span>
|
|
|
<span v-if="scope.row.mark_status==1" style="color:#85ce61;">正常</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -346,6 +347,16 @@
|
|
|
}
|
|
|
this.$api.getMarkTaskStudents(this.recParams).then(res=>{
|
|
|
this.studentsList = res.data.data.list;
|
|
|
+ this.studentsList.forEach(item=>{
|
|
|
+ let mark_status = item.mark_status;
|
|
|
+ if(mark_status!=1){
|
|
|
+ item.mark_status_name = this.$const.recErrorList.filter((ritem)=>{
|
|
|
+ return ritem.value == mark_status;
|
|
|
+ })[0].label
|
|
|
+ }else{
|
|
|
+ item.mark_status_name = "正常"
|
|
|
+ }
|
|
|
+ })
|
|
|
this.recTotal = res.data.data.total;
|
|
|
this.recSucTotal = res.data.data.suc_total;
|
|
|
this.recErrTotal = res.data.data.err_total;
|
|
|
@@ -355,6 +366,16 @@
|
|
|
this.timer = setInterval(function(){
|
|
|
that.$api.getMarkTaskStudents(that.recParams).then(res=>{
|
|
|
that.studentsList = res.data.data.list;
|
|
|
+ that.studentsList.forEach(item=>{
|
|
|
+ let mark_status = item.mark_status;
|
|
|
+ if(mark_status!=1){
|
|
|
+ item.mark_status_name = that.$const.recErrorList.filter((ritem)=>{
|
|
|
+ return ritem.value == mark_status;
|
|
|
+ })[0].label
|
|
|
+ }else{
|
|
|
+ item.mark_status_name = "正常"
|
|
|
+ }
|
|
|
+ })
|
|
|
that.recTotal = res.data.data.total;
|
|
|
that.recSucTotal = res.data.data.suc_total;
|
|
|
that.recErrTotal = res.data.data.err_total;
|