项目详情调整,组卷策略调整
This commit is contained in:
parent
5af612e6c0
commit
0d1ab8fb87
|
@ -9,9 +9,9 @@
|
||||||
<a-descriptions-item label="培训类型">{{projectBasicInfo.trainType == 1 ? '必修课':'选修课'}}</a-descriptions-item>
|
<a-descriptions-item label="培训类型">{{projectBasicInfo.trainType == 1 ? '必修课':'选修课'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="培训种类">{{projectBasicInfo.trainClassName}}</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.trainWayName}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="培训时间">{{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}}</a-descriptions-item>
|
<a-descriptions-item v-if="projectBasicInfo.trainSdate != null" label="培训时间">{{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="练习时间">{{projectBasicInfo.practiceSdate + ' - ' + projectBasicInfo.practiceEdate}}</a-descriptions-item>
|
<a-descriptions-item v-if="projectBasicInfo.practiceSdate != null" 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.examSdate != null" label="考试时间">{{projectBasicInfo.examSdate + ' - ' + projectBasicInfo.examEdate}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="考试次数">{{projectBasicInfo.examNumber + '次'}}</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.mockExam == 1 ? '允许':'不允许'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="备注">{{projectBasicInfo.remark}}</a-descriptions-item>
|
<a-descriptions-item label="备注">{{projectBasicInfo.remark}}</a-descriptions-item>
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
personColumns: [ //人员列
|
personColumns: [ //人员列
|
||||||
{ title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } },
|
{ title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } },
|
||||||
{ title: '姓名', dataIndex: 'name', key: 'name' },
|
{ title: '姓名', dataIndex: 'name', key: 'name' },
|
||||||
{ title: '受训角色', dataIndex: 'role', key: 'role', },
|
// { title: '受训角色', dataIndex: 'role', key: 'role', },
|
||||||
{ title: '单位信息', key: 'company', dataIndex: 'company', },
|
{ title: '单位信息', key: 'company', dataIndex: 'company', },
|
||||||
{ title: '部门信息', dataIndex: 'department', key: 'department', },
|
{ title: '部门信息', dataIndex: 'department', key: 'department', },
|
||||||
],
|
],
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24">
|
<a-row v-if="!['2'].includes(form.trainWay)" :gutter="24">
|
||||||
<h4>考试开启条件:</h4>
|
<h4>考试开启条件:</h4>
|
||||||
<a-col :md="10" :sm="12">
|
<a-col :md="10" :sm="12">
|
||||||
<a-form-model-item label="学时时长" prop="examOpenCondition">
|
<a-form-model-item label="学时时长" prop="examOpenCondition">
|
||||||
|
@ -69,6 +69,7 @@
|
||||||
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
||||||
// 例如:import 《组件名称》 from '《组件路径》'
|
// 例如:import 《组件名称》 from '《组件路径》'
|
||||||
import { getQuestionNumByCourseIds } from '@/api/course/question/question'
|
import { getQuestionNumByCourseIds } from '@/api/course/question/question'
|
||||||
|
import Item from '@/components/AvatarList/Item'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// import引入的组件需要注入到对象中才能使用
|
// import引入的组件需要注入到对象中才能使用
|
||||||
|
@ -158,13 +159,13 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
//保存
|
//保存
|
||||||
toSave() {
|
toSave() {
|
||||||
this.form.testPaperTactics = this.tableData;
|
this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore});
|
||||||
this.form.projectStatus = 1
|
this.form.projectStatus = 1
|
||||||
this.$emit('executeSave', this.form)
|
this.$emit('executeSave', this.form)
|
||||||
},
|
},
|
||||||
//发布
|
//发布
|
||||||
toIssue() {
|
toIssue() {
|
||||||
this.form.testPaperTactics = this.tableData
|
this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore});
|
||||||
this.form.projectStatus = 2
|
this.form.projectStatus = 2
|
||||||
this.$emit('executeIssue', this.form)
|
this.$emit('executeIssue', this.form)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue