新建试卷去掉组别
This commit is contained in:
parent
126507f87f
commit
c2885cb0cc
@ -7,16 +7,6 @@
|
||||
<el-form-item label="试卷描述:" prop="desc">
|
||||
<el-input v-model="formModel.desc" type="textarea" style="width:350px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="组别:" prop="group">
|
||||
<el-select v-model="formModel.group" placeholder="请选择" style="width:350px;">
|
||||
<el-option
|
||||
v-for="item in groupOption"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属赛季:" prop="seasonId">
|
||||
<el-select v-model="formModel.seasonId" placeholder="请选择" style="width:350px;">
|
||||
<el-option
|
||||
@ -45,8 +35,7 @@ export default {
|
||||
id: '',
|
||||
name: '', // 试卷名称
|
||||
desc: '', // 任务描述
|
||||
seasonId: '', // 所属赛季id
|
||||
group:'' // 高职和中职
|
||||
seasonId: '' // 所属赛季id
|
||||
},
|
||||
seasonOptions:[],
|
||||
groupOption:[{
|
||||
@ -68,9 +57,6 @@ export default {
|
||||
desc: [
|
||||
{ required: true, message: '请输入试卷描述', trigger: 'blur' }
|
||||
],
|
||||
group: [
|
||||
{ required: true, message: '请选择试卷所属赛季', trigger: 'blur' }
|
||||
],
|
||||
seasonId: [
|
||||
{ required: true, message: '请选择试卷所属赛季', trigger: 'blur' }
|
||||
]
|
||||
@ -92,13 +78,11 @@ export default {
|
||||
this.formModel.name = row.name;
|
||||
this.formModel.desc = row.desc;
|
||||
this.formModel.seasonId = row.seasonId;
|
||||
this.formModel.group = row.group;
|
||||
} else {
|
||||
this.formModel = {
|
||||
id: '',
|
||||
name: '',
|
||||
desc: '',
|
||||
group:'',
|
||||
seasonId: ''
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user