Commit 2f6d1b86 authored by 王's avatar

添加期数时观摩老师下面增加一个 是否将带班老师加入观摩班(is_add_teacher_to_class) 默认否

parent 0a9571f0
...@@ -65,6 +65,13 @@ ...@@ -65,6 +65,13 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="将带班老师加入观摩班" v-if = "!form.id" label-width="200">
<el-switch
v-model="form.is_add_teacher_to_class"
active-color="#13ce66"
inactive-color="#eee">
</el-switch>
</el-form-item>
<el-form-item label="不上课日期"> <el-form-item label="不上课日期">
<el-select v-model="form.rest_week_day" multiple placeholder="请选择"> <el-select v-model="form.rest_week_day" multiple placeholder="请选择">
<el-option <el-option
...@@ -96,7 +103,9 @@ ...@@ -96,7 +103,9 @@
data(){ data(){
return{ return{
loading: false, loading: false,
form: {}, form: {
is_add_teacher_to_class: false
},
show: false, show: false,
viewTeacher: '', viewTeacher: '',
pickerOptions1: { pickerOptions1: {
...@@ -203,6 +212,7 @@ ...@@ -203,6 +212,7 @@
start_at: this.form.start_at, start_at: this.form.start_at,
rest_week_day: this.form.rest_week_day ? this.form.rest_week_day.join(',') : '' rest_week_day: this.form.rest_week_day ? this.form.rest_week_day.join(',') : ''
} }
json.is_add_teacher_to_class = this.form.is_add_teacher_to_class ? 1 : 0;
if (this.form.id) { if (this.form.id) {
getEditPeriodsApi(this.form.id,json).then(res=>{ getEditPeriodsApi(this.form.id,json).then(res=>{
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment