考试管理
This commit is contained in:
@@ -33,6 +33,14 @@
|
|||||||
<el-radio :label="item.dictValue" :key="item.dictValue" v-for="item in dict.getDict('qjEIChooseType')">{{ item.dictName }}</el-radio>
|
<el-radio :label="item.dictValue" :key="item.dictValue" v-for="item in dict.getDict('qjEIChooseType')">{{ item.dictName }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item prop="examinationType" label="考试类型" :rules="[{required: true, message: '请选择选题方式', trigger: 'change'}]">
|
||||||
|
<ai-select
|
||||||
|
v-model="form.examinationType"
|
||||||
|
clearable
|
||||||
|
placeholder="请选择"
|
||||||
|
:selectList="dict.getDict('qjExaminationType')">
|
||||||
|
</ai-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item prop="subjectConfigs" style="width: 100%;" label="题目设置" :rules="[{required: true, message: '请选择题目设置', trigger: 'change'}]">
|
<el-form-item prop="subjectConfigs" style="width: 100%;" label="题目设置" :rules="[{required: true, message: '请选择题目设置', trigger: 'change'}]">
|
||||||
<div class="type-list">
|
<div class="type-list">
|
||||||
<div class="choose-item" v-for="(item, index) in form.subjectConfigs" :key="index">
|
<div class="choose-item" v-for="(item, index) in form.subjectConfigs" :key="index">
|
||||||
@@ -152,6 +160,7 @@
|
|||||||
form: {
|
form: {
|
||||||
examinationName: '',
|
examinationName: '',
|
||||||
title: '',
|
title: '',
|
||||||
|
examinationType: '',
|
||||||
showIndex: '',
|
showIndex: '',
|
||||||
chooseType: '0',
|
chooseType: '0',
|
||||||
questions: [],
|
questions: [],
|
||||||
@@ -222,7 +231,7 @@
|
|||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.dict.load(['qjQBType', 'qjEIChooseType', 'qjEACondition', 'qjEAType']).then(() => {
|
this.dict.load(['qjQBType', 'qjEIChooseType', 'qjEACondition', 'qjEAType', 'qjExaminationType']).then(() => {
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
this.getInfo(this.params.id)
|
this.getInfo(this.params.id)
|
||||||
@@ -522,7 +531,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.type-name {
|
.type-name {
|
||||||
width: 50px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<ai-info-item label="成绩评核" isLine :value="assessmentsName"></ai-info-item>
|
<ai-info-item label="成绩评核" isLine :value="assessmentsName"></ai-info-item>
|
||||||
<ai-info-item label="选题方式" isLine :value="dict.getLabel('qjEIChooseType', info.chooseType)">
|
<ai-info-item label="选题方式" isLine :value="dict.getLabel('qjEIChooseType', info.chooseType)">
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
|
<ai-info-item label="考试类型" isLine :value="dict.getLabel('qjExaminationType', info.examinationType)"></ai-info-item>
|
||||||
<ai-info-item label="试题总数" :value="info.questions && info.questions.length"></ai-info-item>
|
<ai-info-item label="试题总数" :value="info.questions && info.questions.length"></ai-info-item>
|
||||||
<ai-info-item label="总分数" :value="info.subjectScore"></ai-info-item>
|
<ai-info-item label="总分数" :value="info.subjectScore"></ai-info-item>
|
||||||
<ai-info-item label="考试人数" :value="info.examinationNumber"></ai-info-item>
|
<ai-info-item label="考试人数" :value="info.examinationNumber"></ai-info-item>
|
||||||
|
|||||||
@@ -93,6 +93,7 @@
|
|||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ prop: 'examinationName', label: '考试名称', align: 'left', width: 400 },
|
{ prop: 'examinationName', label: '考试名称', align: 'left', width: 400 },
|
||||||
|
{ prop: 'examinationType', label: '考试类型', align: 'center', format: v => this.dict.getLabel('qjExaminationType', v) },
|
||||||
{ prop: 'allSubjectNumber', label: '试题总数', align: 'center' },
|
{ prop: 'allSubjectNumber', label: '试题总数', align: 'center' },
|
||||||
{ prop: 'passScore', label: '通过分数', align: 'center' },
|
{ prop: 'passScore', label: '通过分数', align: 'center' },
|
||||||
{ prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('qjEIStatus', v) },
|
{ prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('qjEIStatus', v) },
|
||||||
@@ -124,7 +125,7 @@
|
|||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.search.areaId = this.$store.state.user.info.areaId
|
this.search.areaId = this.$store.state.user.info.areaId
|
||||||
this.dict.load('qjEIStatus').then(() => {
|
this.dict.load(['qjEIStatus', 'qjExaminationType']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user