|  | @@ -13,32 +13,32 @@
 | 
	
		
			
				|  |  |            <el-table-column label="默认课酬-主教">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-show="scope.row.courseScheduleType != 'HIGH'" v-model="scope.row.mainTeacher30MinSalary" placeholder="请输入课酬">
 | 
	
		
			
				|  |  | -                <template slot="append" v-if="scope.row.courseScheduleType == 'HIGH'">每45分钟</template>
 | 
	
		
			
				|  |  | -                <template slot="append" v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">每40分钟</template>
 | 
	
		
			
				|  |  | -                <template slot="append" v-else>每30分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-else>元/30分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="默认课酬-助教">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-show="scope.row.courseScheduleType != 'HIGH'" v-model="scope.row.assistantTeacher30MinSalary" placeholder="请输入课酬">
 | 
	
		
			
				|  |  | -                <template slot="append" v-if="scope.row.courseScheduleType == 'HIGH'">每45分钟</template>
 | 
	
		
			
				|  |  | -                <template slot="append" v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">每40分钟</template>
 | 
	
		
			
				|  |  | -                <template slot="append" v-else>每30分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append" v-else>元/30分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="3.0课酬-主教">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-show="scope.row.courseScheduleType != 'CLASSROOM'" v-model="scope.row.mainTeacher90MinSalary" placeholder="请输入课酬">
 | 
	
		
			
				|  |  | -                <template slot="append">每{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append">元/{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="3.0课酬-助教">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-show="scope.row.courseScheduleType != 'CLASSROOM'" v-model="scope.row.assistantTeacher90MinSalary" placeholder="请输入课酬">
 | 
	
		
			
				|  |  | -                <template slot="append">每{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append">元/{{ (scope.row.courseScheduleType == 'HIGH' || scope.row.courseScheduleType == 'CLASSROOM') ? 45 : 90 }}分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
	
		
			
				|  | @@ -51,14 +51,14 @@
 | 
	
		
			
				|  |  |            <el-table-column label="线上课">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-model="scope.row.onlineClassesSalary" placeholder="请输入内容">
 | 
	
		
			
				|  |  | -                <template slot="append">每30分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append">元/30分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="线下课">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-model="scope.row.offlineClassesSalary" placeholder="请输入内容">
 | 
	
		
			
				|  |  | -                <template slot="append">每30分钟</template>
 | 
	
		
			
				|  |  | +                <template slot="append">元/30分钟</template>
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
	
		
			
				|  | @@ -86,49 +86,49 @@ export default {
 | 
	
		
			
				|  |  |          courseScheduleType: "CLASSROOM",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        }, {
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "SINGLE",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId,
 | 
	
		
			
				|  |  | +        userId: this.teacherId,
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "MIX",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "COMPREHENSIVE",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "TRAINING_SINGLE",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "TRAINING_MIX",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          assistantTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  |          courseScheduleType: "HIGH",
 | 
	
		
			
				|  |  |          mainTeacher30MinSalary: 0,
 | 
	
		
			
				|  |  |          mainTeacher90MinSalary: 0,
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.teacherId
 | 
	
		
			
				|  |  |        }],
 | 
	
		
			
				|  |  |        vipTable: [],
 | 
	
		
			
				|  |  |        musicGroupTable: [],
 | 
	
	
		
			
				|  | @@ -137,7 +137,6 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  | -    console.log(this.teacherId)
 | 
	
		
			
				|  |  |      this.__init()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
	
		
			
				|  | @@ -256,24 +255,29 @@ export default {
 | 
	
		
			
				|  |  |            checkStatus = false
 | 
	
		
			
				|  |  |          } 
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | +      this.vipTable.forEach(item => {
 | 
	
		
			
				|  |  | +          if(item.offlineClassesSalary < 0 && item.onlineClassesSalary < 0) {
 | 
	
		
			
				|  |  | +            this.$message('输入课酬不能为负数')
 | 
	
		
			
				|  |  | +            checkStatus = false
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |        // 判断输入的值是否正确
 | 
	
		
			
				|  |  |        if(!checkStatus) return false
 | 
	
		
			
				|  |  |        teacherSalaryBatchUpset(teamTable).then(res => {
 | 
	
		
			
				|  |  |          if(res.code == 200) {
 | 
	
		
			
				|  |  | -          this.vipTable.forEach(item => {
 | 
	
		
			
				|  |  | -            if(item.offlineClassesSalary < 0 && item.onlineClassesSalary < 0) {
 | 
	
		
			
				|  |  | -              this.$message('输入课酬不能为负数')
 | 
	
		
			
				|  |  | -              checkStatus = false
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  |            // 判断输入的值是否正确
 | 
	
		
			
				|  |  | -          if(!checkStatus) return false
 | 
	
		
			
				|  |  | +          // if(!checkStatus) return false
 | 
	
		
			
				|  |  |            vipGroupSalarySet(this.vipTable).then(res => {
 | 
	
		
			
				|  |  |              if(res.code == 200) {
 | 
	
		
			
				|  |  |                this.$message({
 | 
	
		
			
				|  |  |                  message: '保存成功',
 | 
	
		
			
				|  |  |                  type: 'success'
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              if(this.$route.query.type == 'create') {
 | 
	
		
			
				|  |  | +                this.$router.push('/business/teacherList')
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 |