|
@@ -408,6 +408,7 @@ export default {
|
|
|
offlinePrice: '',
|
|
|
allPrice: ''
|
|
|
},
|
|
|
+ computationalBtn: false,
|
|
|
subjectList: [], // 科目列表
|
|
|
teacherList: [], // 老师列表
|
|
|
courseTypeList: [], // 课程类型集合
|
|
@@ -570,6 +571,8 @@ export default {
|
|
|
},
|
|
|
// 选择活动方案
|
|
|
chioseActive (val) {
|
|
|
+ this.rightForm.offlineCourse = '';
|
|
|
+ this.rightForm.onlineCourse = '';
|
|
|
this.lookList = []
|
|
|
this.timeTable = []
|
|
|
this.attribute1 = '';
|
|
@@ -886,6 +889,7 @@ export default {
|
|
|
},
|
|
|
// 计算课酬
|
|
|
computational () {
|
|
|
+ this.computationalBtn = true;
|
|
|
let userId = this.leftForm.teacher || null;
|
|
|
let giveTeachMode = this.centerForm.radio || null;
|
|
|
let vipGroupCategoryId = this.leftForm.courseType || null;
|
|
@@ -923,6 +927,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submitInfo () {
|
|
|
+ if (!this.computationalBtn) {
|
|
|
+ this.$message.error('请点击计算按钮计算课酬')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 判断线上课课酬和线下课课酬
|
|
|
let online = parseInt(this.centerForm.onlineCourseNum);
|
|
|
let offline = parseInt(this.centerForm.offlineCourseNum);
|
|
|
|
|
@@ -1068,7 +1077,14 @@ export default {
|
|
|
|
|
|
//subjectIdList
|
|
|
}
|
|
|
- },
|
|
|
+ }, watch: {
|
|
|
+ rightForm: {
|
|
|
+ handler (newName, oldName) {
|
|
|
+ this.computationalBtn = false
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|