|
@@ -4,8 +4,8 @@
|
|
|
<u-form-item label="班级种类" prop="className" required>
|
|
|
<u-input v-model="form.className" placeholder="请选择班级种类" :select-open="classShow" type="select" @click="classShow = true" />
|
|
|
</u-form-item>
|
|
|
- <u-form-item label="体验班" prop="useLessonsName" v-if="false">
|
|
|
- <u-input v-model="form.useLessonsName" placeholder="是否为体验班" :select-open="lessonsShow" type="select" @click="lessonsShow = true" />
|
|
|
+ <u-form-item label="是否用券" prop="useLessonsName" required>
|
|
|
+ <u-input v-model="form.useLessonsName" placeholder="是否用券" :select-open="lessonsShow" type="select" @click="lessonsShow = true" />
|
|
|
</u-form-item>
|
|
|
<u-form-item label="班级名称" prop="name" required>
|
|
|
<u-input v-model="form.name" placeholder="请输入班级名称" />
|
|
@@ -127,7 +127,7 @@
|
|
|
useLessonsName: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请选择是否为体验班',
|
|
|
+ message: '请选择是否用券',
|
|
|
trigger: 'change'
|
|
|
}],
|
|
|
name: [
|
|
@@ -299,7 +299,7 @@
|
|
|
setTrain(index) {
|
|
|
this.form.classTypeDesc = this.trainList[index].id
|
|
|
this.form.classTypeInfo = this.trainList[index].text
|
|
|
- if(this.trainList[index].id = 5) {
|
|
|
+ if(this.trainList[index].id == 5) {
|
|
|
this.form.otherType = ''
|
|
|
}
|
|
|
},
|