|
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.examType" |
|
|
|
|
v-model="searchForm.carTypeId" |
|
|
|
|
placeholder="选择考试类型" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
@ -74,7 +74,7 @@ |
|
|
|
|
<el-table-column label="姓名" prop="userName" /> |
|
|
|
|
<el-table-column label="手机号码" prop="phone" width="120" /> |
|
|
|
|
<el-table-column label="身份证号" prop="idcard" min-width="120" /> |
|
|
|
|
<el-table-column label="考试类型" prop="examType" min-width="120" /> |
|
|
|
|
<el-table-column label="考试类型" prop="carTypeName" min-width="120" /> |
|
|
|
|
<el-table-column label="考试科目" prop="subject" min-width="120" /> |
|
|
|
|
<el-table-column label="考试得分" prop="score" min-width="120" /> |
|
|
|
|
<el-table-column label="交卷时间" prop="createTime" min-width="120" /> |
|
|
|
@ -92,6 +92,7 @@ |
|
|
|
|
<script setup name="ExamRecord"> |
|
|
|
|
import { removeNullField } from '@/utils' |
|
|
|
|
import * as ExamRecordApi from '@/api/customer/examRecord.js' |
|
|
|
|
import download from '@/utils/download' |
|
|
|
|
|
|
|
|
|
import { getCustomerExamCarType } from '@/api/customer/customer.js' |
|
|
|
|
|
|
|
|
@ -102,7 +103,7 @@ const carTypeOptions = ref([]) |
|
|
|
|
|
|
|
|
|
const searchForm = ref({ |
|
|
|
|
userName: undefined, |
|
|
|
|
examType: 1011, |
|
|
|
|
carTypeId: 1011, |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 20 |
|
|
|
|
}) |
|
|
|
@ -153,11 +154,13 @@ function handleExport() { |
|
|
|
|
params.endTime = undefined |
|
|
|
|
} |
|
|
|
|
ExamRecordApi.exportRecord(params).then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
message.success('导出成功') |
|
|
|
|
} else { |
|
|
|
|
message.error(res.msg) |
|
|
|
|
} |
|
|
|
|
download.excel(res, '考试成绩.xls') |
|
|
|
|
|
|
|
|
|
// if (res.code === 200) { |
|
|
|
|
// message.success('导出成功') |
|
|
|
|
// } else { |
|
|
|
|
// message.error(res.msg) |
|
|
|
|
// } |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|