|  | @@ -195,6 +195,17 @@
 | 
	
		
			
				|  |  |                         :value="item.id"></el-option>
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费类型"
 | 
	
		
			
				|  |  | +                      :rules="[{ required: true, message: '请选择缴费类型'}]"
 | 
	
		
			
				|  |  | +                      prop="feeType">
 | 
	
		
			
				|  |  | +          <el-select v-model="topFrom.feeType"
 | 
	
		
			
				|  |  | +                     @change="changeFeeType">
 | 
	
		
			
				|  |  | +            <el-option label="线上"
 | 
	
		
			
				|  |  | +                       value="ONLINE"></el-option>
 | 
	
		
			
				|  |  | +            <el-option label="线下"
 | 
	
		
			
				|  |  | +                       value="OFFLINE"></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  |          <el-form-item label
 | 
	
		
			
				|  |  |                        prop="isClass">
 | 
	
		
			
				|  |  |            <el-checkbox v-model.trim="topFrom.isClass">课堂课乐团</el-checkbox>
 | 
	
	
		
			
				|  | @@ -430,8 +441,10 @@ export default {
 | 
	
		
			
				|  |  |          head: "",
 | 
	
		
			
				|  |  |          isClass: false, //是否为课堂课
 | 
	
		
			
				|  |  |          startTime: "",
 | 
	
		
			
				|  |  | +        feeType: "ONLINE",
 | 
	
		
			
				|  |  |          ownershipType: "OWN", // 合作机构类型
 | 
	
		
			
				|  |  |          repairUserId: null, // 维修技师
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        checkList: {
 | 
	
		
			
				|  |  |          soundInfo: {
 | 
	
	
		
			
				|  | @@ -532,13 +545,16 @@ export default {
 | 
	
		
			
				|  |  |    mounted () {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      this.init();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    // this.$forceUpdate()
 | 
	
		
			
				|  |  |      // 获取分部下的员工
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    beforeDestroy () {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    changeFeeType (val) {
 | 
	
		
			
				|  |  | +      console.log(val == "ONLINE")
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      init () {
 | 
	
		
			
				|  |  |        this.isInit = true;
 | 
	
		
			
				|  |  |        // 分为3种  this.teamStatus
 | 
	
	
		
			
				|  | @@ -578,6 +594,7 @@ export default {
 | 
	
		
			
				|  |  |              this.topFrom.startTime = res.data.musicGroup.expectStartGroupDate;
 | 
	
		
			
				|  |  |              this.topFrom.ownershipType = res.data.musicGroup.ownershipType;
 | 
	
		
			
				|  |  |              this.topFrom.repairUserId = res.data.musicGroup.repairUserId ? res.data.musicGroup.repairUserId : null;
 | 
	
		
			
				|  |  | +            this.topFrom.feeType = res.data.musicGroup.feeType ? res.data.musicGroup.feeType : null;
 | 
	
		
			
				|  |  |              // 课程组成形式
 | 
	
		
			
				|  |  |              this.checkList = JSON.parse(res.data.musicGroup.courseForm);
 | 
	
		
			
				|  |  |              if (this.checkList.networkInfo) {
 | 
	
	
		
			
				|  | @@ -671,7 +688,8 @@ export default {
 | 
	
		
			
				|  |  |            head: "",
 | 
	
		
			
				|  |  |            isClass: false, //是否为课堂课
 | 
	
		
			
				|  |  |            startTime: "",
 | 
	
		
			
				|  |  | -          ownershipType: "OWN" // 合作机构类型
 | 
	
		
			
				|  |  | +          ownershipType: "OWN", // 合作机构类型
 | 
	
		
			
				|  |  | +          feeType: 'ONLINE'
 | 
	
		
			
				|  |  |          }),
 | 
	
		
			
				|  |  |            this.$refs["topinfo"].resetFields();
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -763,6 +781,22 @@ export default {
 | 
	
		
			
				|  |  |          if (!valid) {
 | 
	
		
			
				|  |  |            this.$message.error("请填写建团必要参数");
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | +          // 判断一下是否勾选了课程类型而没有输入金额
 | 
	
		
			
				|  |  | +          let flagList = []
 | 
	
		
			
				|  |  | +          for (let i in this.checkList) {
 | 
	
		
			
				|  |  | +            if (this.checkList[i].ischeck && !this.checkList[i].value) {
 | 
	
		
			
				|  |  | +              flagList.push(false)
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +              flagList.push(true)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          let flag = flagList.every(item => {
 | 
	
		
			
				|  |  | +            return item == true
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          if (!flag) {
 | 
	
		
			
				|  |  | +            this.$message.error('课程价格不能为空')
 | 
	
		
			
				|  |  | +            return
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            // 验证通过
 | 
	
		
			
				|  |  |            this.$store.dispatch("topinfo", this.topFrom);
 | 
	
		
			
				|  |  |            this.$store.dispatch("checkinfo", this.checkList);
 | 
	
	
		
			
				|  | @@ -783,6 +817,21 @@ export default {
 | 
	
		
			
				|  |  |          if (!valid) {
 | 
	
		
			
				|  |  |            this.$message.error("请填写必要参数");
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | +          let flagList = []
 | 
	
		
			
				|  |  | +          for (let i in this.checkList) {
 | 
	
		
			
				|  |  | +            if (this.checkList[i].ischeck && !this.checkList[i].value) {
 | 
	
		
			
				|  |  | +              flagList.push(false)
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +              flagList.push(true)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          let flag = flagList.every(item => {
 | 
	
		
			
				|  |  | +            return item == true
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          if (!flag) {
 | 
	
		
			
				|  |  | +            this.$message.error('课程价格不能为空')
 | 
	
		
			
				|  |  | +            return
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            let status = null;
 | 
	
		
			
				|  |  |            // 1.resetTeam 乐团修改
 | 
	
		
			
				|  |  |            // 2.newTeam 新建乐团
 |