组卷策略必填调整,人员选择调整,结果显示也调整
This commit is contained in:
parent
bca3a82c78
commit
cd4d5eb9a6
|
@ -5,7 +5,7 @@
|
||||||
<a-step title="基本信息" />
|
<a-step title="基本信息" />
|
||||||
<!-- <a-step title="选择单位" /> -->
|
<!-- <a-step title="选择单位" /> -->
|
||||||
<a-step title="选择课程" />
|
<a-step title="选择课程" />
|
||||||
<a-step title="选择人员" />
|
<a-step v-if="this.form.projectType != 0" title="选择人员" />
|
||||||
<a-step v-if="['2', '4'].includes(form.trainWay)" title="组卷策略" />
|
<a-step v-if="['2', '4'].includes(form.trainWay)" title="组卷策略" />
|
||||||
<a-step :title="this.result ? '完成' : '失败'" />
|
<a-step :title="this.result ? '完成' : '失败'" />
|
||||||
</a-steps>
|
</a-steps>
|
||||||
|
@ -99,12 +99,14 @@ export default {
|
||||||
saveData() {
|
saveData() {
|
||||||
projectAdd(Object.assign({}, this.form)).then(res => {
|
projectAdd(Object.assign({}, this.form)).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
console.log('success');
|
||||||
this.status = 'success'
|
this.status = 'success'
|
||||||
this.currentTab = 5
|
this.currentTab = 4
|
||||||
} else {
|
} else {
|
||||||
|
console.log('error');
|
||||||
this.status = 'error'
|
this.status = 'error'
|
||||||
this.result = false
|
this.result = false
|
||||||
this.currentTab = 5
|
this.currentTab = 4
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -119,12 +121,8 @@ export default {
|
||||||
if (childValue) {
|
if (childValue) {
|
||||||
this.form = childValue
|
this.form = childValue
|
||||||
}
|
}
|
||||||
if(['1','3'].includes(childValue.trainWay) && this.currentTab == 2){
|
|
||||||
this.currentTab += 2
|
|
||||||
} else {
|
|
||||||
this.currentTab += 1
|
this.currentTab += 1
|
||||||
}
|
}
|
||||||
}
|
|
||||||
console.log('ProjectStepForm表单数据', this.form)
|
console.log('ProjectStepForm表单数据', this.form)
|
||||||
},
|
},
|
||||||
//上一步
|
//上一步
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<div v-if="this.orgTree != ''">
|
<div v-if="this.orgTree != ''">
|
||||||
<a-tree :treeData="orgTree" v-if="orgTree.length" @select="onSelect" :defaultExpandAll="false"
|
<a-tree :treeData="orgTree" v-if="orgTree.length" @select="onSelect" :defaultExpandAll="false"
|
||||||
:defaultExpandedKeys="expandedKeys" :replaceFields="replaceFields" :defaultSelectedKeys="defaultSelectedKeys" showLine="true">
|
:defaultExpandedKeys="expandedKeys" :replaceFields="replaceFields" :defaultSelectedKeys="defaultSelectedKeys" :showLine="true">
|
||||||
<a-icon slot="switcherIcon" type="down" />
|
<a-icon slot="switcherIcon" type="down" />
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,32 +4,32 @@
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="10" :sm="12">
|
<a-col :md="10" :sm="12">
|
||||||
<a-form-model-item label="总分" prop="totalScore">
|
<a-form-model-item label="总分" prop="totalScore">
|
||||||
<a-input-number v-model="form.totalScore" :disabled="true" />
|
<a-input-number v-model="form.totalScore" :disabled="true" /> 分
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="14" :sm="12">
|
<a-col :md="14" :sm="12">
|
||||||
<a-form-model-item label="及格分数" prop="passScore">
|
<a-form-model-item label="及格分数" prop="passScore">
|
||||||
<a-input-number v-model="form.passScore" :min="1" :max="100" />
|
<a-input-number v-model="form.passScore" :min="1" :max="100" /> 分
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="10" :sm="12">
|
<a-col :md="10" :sm="12">
|
||||||
<a-form-model-item label="考试时长" prop="examTime">
|
<a-form-model-item label="考试时长" prop="examTime">
|
||||||
<a-input-number :min="0" v-model="form.examTime" />
|
<a-input-number :min="0" v-model="form.examTime" /> 分钟
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="14" :sm="12">
|
<a-col :md="14" :sm="12">
|
||||||
<a-form-model-item label="默认组卷题量" prop="topicNumber">
|
<a-form-model-item label="默认组卷题量" prop="topicNumber">
|
||||||
<a-input-number :min="0" v-model="form.topicNumber" />
|
<a-input-number :min="0" v-model="form.topicNumber" /> 题
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row v-if="!['2'].includes(form.trainWay)" :gutter="24">
|
<a-row v-if="form.trainWay == 4" :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">
|
||||||
<a-input-number :min="0" v-model="form.examOpenCondition" />
|
<a-input-number :min="0" v-model="form.examOpenCondition" /> 学时
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -86,13 +86,10 @@ export default {
|
||||||
formItemLayout: { labelCol: { span: 4 }, wrapperCol: { span: 14 } },
|
formItemLayout: { labelCol: { span: 4 }, wrapperCol: { span: 14 } },
|
||||||
rules: {
|
rules: {
|
||||||
totalScore: [{ required: true, message: '请输入组卷总分', trigger: 'blur' }],
|
totalScore: [{ required: true, message: '请输入组卷总分', trigger: 'blur' }],
|
||||||
trainClass: [{ required: true, message: '请选择培训分类', trigger: 'blur' }],
|
passScore: [{ required: true, message: '请输入及格分数', trigger: 'blur' }],
|
||||||
projectName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
|
examTime: [{ required: true, message: '请输入考试时长', trigger: 'blur' }],
|
||||||
trainClass: [{ required: true, message: '请选择培训分类', trigger: 'blur' }],
|
topicNumber: [{ required: true, message: '请输入默认组卷题量', trigger: 'blur' }],
|
||||||
projectName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
|
examOpenCondition: [{ required: true, message: '请输入学时时长', trigger: 'blur' }]
|
||||||
trainClass: [{ required: true, message: '请选择培训分类', trigger: 'blur' }],
|
|
||||||
projectName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
|
|
||||||
trainClass: [{ required: true, message: '请选择培训分类', trigger: 'blur' }]
|
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ title: '序号', key: 'i', dataIndex: 'i', width: 70, scopedSlots: { customRender: 'serial' } },
|
{ title: '序号', key: 'i', dataIndex: 'i', width: 70, scopedSlots: { customRender: 'serial' } },
|
||||||
|
|
|
@ -53,7 +53,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 生命周期 - 创建完成(可以访问当前this实例)
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
||||||
created() {},
|
created() {
|
||||||
|
console.log('result page init ok!')
|
||||||
|
},
|
||||||
// 生命周期 - 挂载完成(可以访问DOM元素)
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|
||||||
mounted() {},
|
mounted() {},
|
||||||
// 生命周期 - 创建之前
|
// 生命周期 - 创建之前
|
||||||
|
|
Loading…
Reference in New Issue