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

新增教师调整

parent 03cf0e81
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.BaseHoursEnabled" <q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.BaseHoursEnabled"
ref="BaseHoursEnabled" :options="BaseHoursList" label="是否启用基础课时" :dense="false" class="col-6 q-pb-lg" ref="BaseHoursEnabled" :options="BaseHoursList" label="是否启用基础课时" :dense="false" class="col-6 q-pb-lg"
emit-value map-options /> emit-value map-options />
<q-input v-if='objOption.BaseHoursEnabled==1' filled v-model="objOption.EnableTime" mask="####-##" <q-input v-if='objOption.BaseHoursEnabled==1' filled v-model="objOption.EnableTime" mask="####-##"
label="启用时间" ref="EnableTime" :rules="[val => !!val || '请选择启用时间']"> label="启用时间" ref="EnableTime" :rules="[val => !!val || '请选择启用时间']">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
BaseStuNum: 0, //带班基础人数 BaseStuNum: 0, //带班基础人数
BaseHourFee: 0, //基础课时费 BaseHourFee: 0, //基础课时费
Specialty: "", //老师擅长 Specialty: "", //老师擅长
BaseHoursEnabled: 1, //是否启用基础课时 1是 BaseHoursEnabled: 0, //是否启用基础课时 1是
EnableTime: '', //启用时间 (存到月) EnableTime: '', //启用时间 (存到月)
}, },
BaseHoursList: [{ BaseHoursList: [{
...@@ -352,7 +352,7 @@ ...@@ -352,7 +352,7 @@
} }
}, },
saveTeacher() { saveTeacher() {
this.saveLoading = true;
if (this.chooseSpecialty && this.chooseSpecialty.length > 0) { if (this.chooseSpecialty && this.chooseSpecialty.length > 0) {
this.objOption.Specialty = this.chooseSpecialty.toString(); this.objOption.Specialty = this.chooseSpecialty.toString();
} else { } else {
...@@ -375,7 +375,10 @@ ...@@ -375,7 +375,10 @@
// } // }
if (this.objOption.BaseHoursEnabled == 1 && this.objOption.EnableTime == '') { if (this.objOption.BaseHoursEnabled == 1 && this.objOption.EnableTime == '') {
err_msg = "请选择日期" err_msg = "请选择日期"
this.$refs.EnableTime.validate()
return
} }
this.saveLoading = true;
if (err_msg == "") { if (err_msg == "") {
this.objOption.TeachTag = JSON.stringify(this.tags) this.objOption.TeachTag = JSON.stringify(this.tags)
saveTeacher(this.objOption).then(res => { 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