项目详情调整,组卷策略调整

This commit is contained in:
Yjhon 2022-02-23 11:52:55 +08:00
parent 5af612e6c0
commit 0d1ab8fb87
2 changed files with 8 additions and 7 deletions

View File

@ -9,9 +9,9 @@
<a-descriptions-item label="培训类型">{{projectBasicInfo.trainType == 1 ? '必修课':'选修课'}}</a-descriptions-item>
<a-descriptions-item label="培训种类">{{projectBasicInfo.trainClassName}}</a-descriptions-item>
<a-descriptions-item label="培训方式">{{projectBasicInfo.trainWayName}}</a-descriptions-item>
<a-descriptions-item label="培训时间">{{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}}</a-descriptions-item>
<a-descriptions-item label="练习时间">{{projectBasicInfo.practiceSdate + ' - ' + projectBasicInfo.practiceEdate}}</a-descriptions-item>
<a-descriptions-item label="考试时间">{{projectBasicInfo.examSdate + ' - ' + projectBasicInfo.examEdate}}</a-descriptions-item>
<a-descriptions-item v-if="projectBasicInfo.trainSdate != null" label="培训时间">{{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}}</a-descriptions-item>
<a-descriptions-item v-if="projectBasicInfo.practiceSdate != null" label="练习时间">{{projectBasicInfo.practiceSdate + ' - ' + projectBasicInfo.practiceEdate}}</a-descriptions-item>
<a-descriptions-item v-if="projectBasicInfo.examSdate != null" label="考试时间">{{projectBasicInfo.examSdate + ' - ' + projectBasicInfo.examEdate}}</a-descriptions-item>
<a-descriptions-item label="考试次数">{{projectBasicInfo.examNumber + '次'}}</a-descriptions-item>
<a-descriptions-item label="模拟考试">{{projectBasicInfo.mockExam == 1 ? '允许':'不允许'}}</a-descriptions-item>
<a-descriptions-item label="备注">{{projectBasicInfo.remark}}</a-descriptions-item>
@ -63,7 +63,7 @@ export default {
personColumns: [ //
{ title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } },
{ title: '姓名', dataIndex: 'name', key: 'name' },
{ title: '受训角色', dataIndex: 'role', key: 'role', },
// { title: '', dataIndex: 'role', key: 'role', },
{ title: '单位信息', key: 'company', dataIndex: 'company', },
{ title: '部门信息', dataIndex: 'department', key: 'department', },
],

View File

@ -25,7 +25,7 @@
</a-form-model-item>
</a-col>
</a-row>
<a-row :gutter="24">
<a-row v-if="!['2'].includes(form.trainWay)" :gutter="24">
<h4>考试开启条件</h4>
<a-col :md="10" :sm="12">
<a-form-model-item label="学时时长" prop="examOpenCondition">
@ -69,6 +69,7 @@
// jsjsjson
// import from ''
import { getQuestionNumByCourseIds } from '@/api/course/question/question'
import Item from '@/components/AvatarList/Item'
export default {
// import使
@ -158,13 +159,13 @@ export default {
methods: {
//
toSave() {
this.form.testPaperTactics = this.tableData;
this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore});
this.form.projectStatus = 1
this.$emit('executeSave', this.form)
},
//
toIssue() {
this.form.testPaperTactics = this.tableData
this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore});
this.form.projectStatus = 2
this.$emit('executeIssue', this.form)
},