Commit 352a6095 authored by 罗超's avatar 罗超

新增教师调整

parent 03cf0e81
......@@ -160,7 +160,7 @@
BaseStuNum: 0, //带班基础人数
BaseHourFee: 0, //基础课时费
Specialty: "", //老师擅长
BaseHoursEnabled: 1, //是否启用基础课时 1是
BaseHoursEnabled: 0, //是否启用基础课时 1是
EnableTime: '', //启用时间 (存到月)
},
BaseHoursList: [{
......@@ -352,7 +352,7 @@
}
},
saveTeacher() {
this.saveLoading = true;
if (this.chooseSpecialty && this.chooseSpecialty.length > 0) {
this.objOption.Specialty = this.chooseSpecialty.toString();
} else {
......@@ -375,7 +375,10 @@
// }
if (this.objOption.BaseHoursEnabled == 1 && this.objOption.EnableTime == '') {
err_msg = "请选择日期"
this.$refs.EnableTime.validate()
return
}
this.saveLoading = true;
if (err_msg == "") {
this.objOption.TeachTag = JSON.stringify(this.tags)
saveTeacher(this.objOption).then(res => {
......
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