|
@@ -3,6 +3,7 @@
|
|
|
<div class="pt20 pb20 pl20">
|
|
|
<el-form ref="table" inline :model="searchForm">
|
|
|
<el-form-item
|
|
|
+ v-hasPermi="['mocktestscore:index:search']"
|
|
|
prop="cityName"
|
|
|
:rules="[{ required: true, message: '请选择城市', trigger: 'blur' }]"
|
|
|
label=""
|
|
@@ -19,6 +20,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
+ v-hasPermi="['mocktestscore:index:search']"
|
|
|
prop="areaName"
|
|
|
:rules="[{ required: true, message: '请选择区域', trigger: 'blur' }]"
|
|
|
label=""
|
|
@@ -35,6 +37,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
+ v-hasPermi="['mocktestscore:index:search']"
|
|
|
prop="schoolName"
|
|
|
:rules="[{ required: true, message: '请选择驾校', trigger: 'blur' }]"
|
|
|
label=""
|
|
@@ -91,28 +94,32 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
- label="高分"
|
|
|
+ label="最高分"
|
|
|
prop="highScore"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
- label="低分"
|
|
|
+ label="最低分"
|
|
|
prop="lowScore"
|
|
|
></el-table-column>
|
|
|
+ <el-table-column sortable label="平均分数" prop="averageScore">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ tofix(scope.row.averageScore, 1) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
- label="平均分数"
|
|
|
- prop="averageScore"
|
|
|
+ label="模拟次数"
|
|
|
+ prop="times"
|
|
|
></el-table-column>
|
|
|
|
|
|
- <el-table-column sortable label="次数" prop="times"></el-table-column>
|
|
|
-
|
|
|
<el-table-column sortable label="详情" prop="costCount">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link
|
|
|
@click="
|
|
|
() => {
|
|
|
- rowInfoName = scope.row.nickName
|
|
|
+ rowInfoName = scope.row.nickName;
|
|
|
rowInfoVisible = true;
|
|
|
getRowListInfo(scope.row.userId);
|
|
|
}
|
|
@@ -141,7 +148,7 @@
|
|
|
|
|
|
<el-drawer
|
|
|
size="60%"
|
|
|
- :title="rowInfoName+'(历次考试记录)'"
|
|
|
+ :title="rowInfoName + '(历次考试记录)'"
|
|
|
:visible.sync="rowInfoVisible"
|
|
|
direction="rtl"
|
|
|
>
|
|
@@ -180,8 +187,8 @@ export default {
|
|
|
tableTotal: 0,
|
|
|
tableLoad: false,
|
|
|
rowInfoTable: [],
|
|
|
- rowInfoName:"",
|
|
|
- rowInfoColumn:{},
|
|
|
+ rowInfoName: "",
|
|
|
+ rowInfoColumn: {},
|
|
|
rowInfoVisible: false,
|
|
|
carTypeList: ["小车", "客车", "货车", "摩托车"],
|
|
|
schoolInfoList: [],
|
|
@@ -210,6 +217,9 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ tofix(num, index) {
|
|
|
+ return num.toFixed(index);
|
|
|
+ },
|
|
|
getRowListInfo(id) {
|
|
|
scoreInfoStudentscore(id).then((res) => {
|
|
|
this.rowInfoTable = res.rows;
|