feat: 在线考试详情页调整2
This commit is contained in:
parent
37f9c9fa3f
commit
f550b1391d
|
@ -154,8 +154,24 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-form-item label="所用试卷" prop="paper" required>
|
<el-form-item label="所用试卷" prop="paper" required v-if="examDialog">
|
||||||
<el-select
|
<xtSelect
|
||||||
|
v-model="examForm.paper"
|
||||||
|
v-model:label="examForm.paper_name"
|
||||||
|
:apiObj = "apiPaper"
|
||||||
|
style="width: 100%;"
|
||||||
|
>
|
||||||
|
<el-table-column label="名称" prop="name"></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="限时(分钟)"
|
||||||
|
prop="limit"
|
||||||
|
></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="满分"
|
||||||
|
prop="total_score"
|
||||||
|
></el-table-column>
|
||||||
|
</xtSelect>
|
||||||
|
<!-- <el-select
|
||||||
v-model="examForm.paper"
|
v-model="examForm.paper"
|
||||||
filterable
|
filterable
|
||||||
reserve-keyword
|
reserve-keyword
|
||||||
|
@ -167,7 +183,7 @@
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
|
@ -184,7 +200,6 @@
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="examSaving"
|
|
||||||
@click="examSubmit()"
|
@click="examSubmit()"
|
||||||
>保 存</el-button
|
>保 存</el-button
|
||||||
>
|
>
|
||||||
|
@ -205,6 +220,7 @@ export default {
|
||||||
paperOptions:[],
|
paperOptions:[],
|
||||||
examDialog: false,
|
examDialog: false,
|
||||||
apiObj: this.$API.edu.exam.list,
|
apiObj: this.$API.edu.exam.list,
|
||||||
|
apiPaper: this.$API.edu.paper.list,
|
||||||
query: {
|
query: {
|
||||||
search: "",
|
search: "",
|
||||||
},
|
},
|
||||||
|
@ -214,16 +230,8 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getPaperOptions();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPaperOptions() {
|
|
||||||
this.$API.edu.paper.list.req({
|
|
||||||
page: 0
|
|
||||||
}).then(res => {
|
|
||||||
this.paperOptions = res;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.$refs.table.queryData(this.query);
|
this.$refs.table.queryData(this.query);
|
||||||
},
|
},
|
||||||
|
|
|
@ -22,11 +22,12 @@
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:params="params"
|
:params="params"
|
||||||
:query="query"
|
:query="query"
|
||||||
|
hidePagination
|
||||||
>
|
>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
label="考试名称"
|
label="考试名称"
|
||||||
prop="exam_name"
|
prop="exam_name"
|
||||||
></el-table-column>
|
></el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="用户"
|
label="用户"
|
||||||
prop="create_by_name"
|
prop="create_by_name"
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="答题时间"
|
label="答题时间"
|
||||||
prop="start_time"
|
prop="start_time"
|
||||||
|
width="160"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="是否通过"
|
label="是否通过"
|
||||||
|
|
Loading…
Reference in New Issue