|
@@ -128,7 +128,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-
|
|
|
+/* eslint-disable */
|
|
|
import MHeader from '@/components/MHeader'
|
|
|
import { browser } from '@/common/common'
|
|
|
import { findSubSubjects,
|
|
@@ -843,9 +843,12 @@ export default {
|
|
|
this.$toast('请选择活动方案')
|
|
|
return false
|
|
|
}
|
|
|
- if(!form.teacherSchoolId) {
|
|
|
- this.$toast('请选择线下课地址')
|
|
|
- return false
|
|
|
+ // 如果只有线上课,则可以不需要地址
|
|
|
+ if(this.statusList.hasOffline) {
|
|
|
+ if(!form.teacherSchoolId) {
|
|
|
+ this.$toast('请选择线下课地址')
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
if(!form.singleClassMinutes) {
|
|
|
this.$toast('请选择每课时长')
|