|  | @@ -317,7 +317,6 @@
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  |    getSection,
 | 
	
		
			
				|  |  |    getType,
 | 
	
	
		
			
				|  | @@ -397,24 +396,23 @@ export default {
 | 
	
		
			
				|  |  |      if (this.$route.query.id) {
 | 
	
		
			
				|  |  |        this.teamid = this.$route.query.id;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    this.teamStatus =this.$route.query.type
 | 
	
		
			
				|  |  | +    this.teamStatus = this.$route.query.type;
 | 
	
		
			
				|  |  |      if (this.$route.query.type == "newTeam") {
 | 
	
		
			
				|  |  |        this.onReset();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | - console.log(this.$route.query)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      this.init();
 | 
	
		
			
				|  |  | -    // this.$forceUpdate();
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    activated() {
 | 
	
		
			
				|  |  | -    // console.log('直接进编辑')
 | 
	
		
			
				|  |  | -    if (this.teamid && this.teamid != this.$route.query.id || this.teamStatus !=this.$route.query.type) {
 | 
	
		
			
				|  |  | -          this.init();
 | 
	
		
			
				|  |  | +    if (
 | 
	
		
			
				|  |  | +      (this.teamid && this.teamid != this.$route.query.id) ||
 | 
	
		
			
				|  |  | +      this.teamStatus != this.$route.query.type
 | 
	
		
			
				|  |  | +    ) {
 | 
	
		
			
				|  |  | +      this.init();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    if (this.$route.query.clear == 'true') {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    if (this.$route.query.clear == "true") {
 | 
	
		
			
				|  |  |        this.onReset();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      if (this.teamStatus == "newTeam") {
 | 
	
		
			
				|  |  |        this.$store.dispatch("buildIndex", 0);
 | 
	
	
		
			
				|  | @@ -423,22 +421,26 @@ export default {
 | 
	
		
			
				|  |  |      if (this.teamStatus != "newTeam") {
 | 
	
		
			
				|  |  |        this.$store.dispatch("draftIndex", 0);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -      this.teamStatus = this.$route.query.type;
 | 
	
		
			
				|  |  | +    this.teamStatus = this.$route.query.type;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      if (
 | 
	
		
			
				|  |  | -        this.teamStatus == "look" ||
 | 
	
		
			
				|  |  | -        this.teamStatus == "teamAudit" ||
 | 
	
		
			
				|  |  | -        this.teamStatus == "feeAudit"
 | 
	
		
			
				|  |  | -      ) {
 | 
	
		
			
				|  |  | -        this.basdisabled = true;
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        this.basdisabled = false;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +    if (
 | 
	
		
			
				|  |  | +      this.teamStatus == "look" ||
 | 
	
		
			
				|  |  | +      this.teamStatus == "teamAudit" ||
 | 
	
		
			
				|  |  | +      this.teamStatus == "feeAudit"
 | 
	
		
			
				|  |  | +    ) {
 | 
	
		
			
				|  |  | +      this.basdisabled = true;
 | 
	
		
			
				|  |  | +    } else {
 | 
	
		
			
				|  |  | +      this.basdisabled = false;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    deactivated() {
 | 
	
		
			
				|  |  | -    this.teamStatus = 'dis'
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  beforeDestroy(){
 | 
	
		
			
				|  |  | +    sessionStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      //|| this.teamStatus === 'teamAudit'
 | 
	
		
			
				|  |  |      isNotEditing: function () {
 | 
	
	
		
			
				|  | @@ -475,12 +477,6 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      init() {
 | 
	
		
			
				|  |  |        this.isInit = true;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      // 分为3种  this.teamStatus
 | 
	
		
			
				|  |  | -      //          1.resetTeam 乐团修改
 | 
	
		
			
				|  |  | -      //          2. newTeam  新建乐团
 | 
	
		
			
				|  |  | -      //          3.teamList  跨团修改
 | 
	
		
			
				|  |  | -      //          4.teamDraft 乐团草稿
 | 
	
		
			
				|  |  |        this.teamStatus = this.$route.query.type;
 | 
	
		
			
				|  |  |        if (this.teamStatus == "newTeam") {
 | 
	
		
			
				|  |  |          this.$store.dispatch("buildIndex", 0);
 | 
	
	
		
			
				|  | @@ -492,12 +488,10 @@ export default {
 | 
	
		
			
				|  |  |        // 传过来的乐团信息
 | 
	
		
			
				|  |  |        this.activeTeam = this.getTeamList;
 | 
	
		
			
				|  |  |        if (
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          this.teamStatus == "look" ||
 | 
	
		
			
				|  |  |          this.teamStatus == "teamAudit" ||
 | 
	
		
			
				|  |  |          this.teamStatus == "feeAudit"
 | 
	
		
			
				|  |  |        ) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          this.basdisabled = true;
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          this.basdisabled = false;
 | 
	
	
		
			
				|  | @@ -505,86 +499,128 @@ export default {
 | 
	
		
			
				|  |  |        if (this.$route.query.id) {
 | 
	
		
			
				|  |  |          // 单团修改
 | 
	
		
			
				|  |  |          this.teamid = this.$route.query.id;
 | 
	
		
			
				|  |  | -        getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
 | 
	
		
			
				|  |  | -          if (res.code == 200) {
 | 
	
		
			
				|  |  | -            // if (this.$listeners.getBaseInfo) {
 | 
	
		
			
				|  |  | -            //   this.$listeners.getBaseInfo(res.data);
 | 
	
		
			
				|  |  | -            // }
 | 
	
		
			
				|  |  | +        let sotrage = JSON.parse(sessionStorage.getItem(`${this.$route.query.id}base`)) ;
 | 
	
		
			
				|  |  | +        if (!sotrage?.section) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            // 头部
 | 
	
		
			
				|  |  | -            this.topFrom.name = res.data.musicGroup.name;
 | 
	
		
			
				|  |  | -            this.$emit("getName", this.topFrom.name);
 | 
	
		
			
				|  |  | -            this.topFrom.time = res.data.musicGroup.applyExpireDate;
 | 
	
		
			
				|  |  | -            this.topFrom.type = res.data.musicGroup.chargeTypeId;
 | 
	
		
			
				|  |  | -            this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(
 | 
	
		
			
				|  |  | -              ","
 | 
	
		
			
				|  |  | -            );
 | 
	
		
			
				|  |  | -            this.topFrom.paymentPattern = res.data.musicGroup.paymentPattern;
 | 
	
		
			
				|  |  | -            this.topFrom.paymentValidStartDate =
 | 
	
		
			
				|  |  | -              res.data.musicGroup.paymentValidStartDate;
 | 
	
		
			
				|  |  | -            this.topFrom.paymentValidEndDate =
 | 
	
		
			
				|  |  | -              res.data.musicGroup.paymentValidEndDate;
 | 
	
		
			
				|  |  | -            this.topFrom.section = res.data.musicGroup.organId;
 | 
	
		
			
				|  |  | -            this.topFrom.school = res.data.musicGroup.cooperationOrganId;
 | 
	
		
			
				|  |  | -            this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
 | 
	
		
			
				|  |  | -            this.topFrom.boss = res.data.musicGroup.teamTeacherId;
 | 
	
		
			
				|  |  | -            this.topFrom.address = res.data.musicGroup.schoolId;
 | 
	
		
			
				|  |  | -            this.topFrom.salary = res.data.musicGroup.settlementType;
 | 
	
		
			
				|  |  | -            this.topFrom.head = res.data.musicGroup.directorUserId
 | 
	
		
			
				|  |  | -              ? res.data.musicGroup.directorUserId
 | 
	
		
			
				|  |  | -              : null;
 | 
	
		
			
				|  |  | -            this.topFrom.isClass = res.data.musicGroup.isClassroomLessons;
 | 
	
		
			
				|  |  | -            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.payList.chioseMonth = res.data.months;
 | 
	
		
			
				|  |  | -            if (res.data.musicGroup.organId) {
 | 
	
		
			
				|  |  | -              // 获取员工
 | 
	
		
			
				|  |  | -              queryEmployByOrganId({
 | 
	
		
			
				|  |  | -                organId: res.data.musicGroup.organId,
 | 
	
		
			
				|  |  | -                rows: 1000,
 | 
	
		
			
				|  |  | -              }).then((res) => {
 | 
	
		
			
				|  |  | -                if (res.code == 200) {
 | 
	
		
			
				|  |  | -                  this.orgianList = res.data.rows;
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              });
 | 
	
		
			
				|  |  | -              // 获取合作单位
 | 
	
		
			
				|  |  | -              queryByOrganId({ organId: res.data.musicGroup.organId }).then(
 | 
	
		
			
				|  |  | -                (res) => {
 | 
	
		
			
				|  |  | +          getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
 | 
	
		
			
				|  |  | +            if (res.code == 200) {
 | 
	
		
			
				|  |  | +              // if (this.$listeners.getBaseInfo) {
 | 
	
		
			
				|  |  | +              //   this.$listeners.getBaseInfo(res.data);
 | 
	
		
			
				|  |  | +              // }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              // 头部
 | 
	
		
			
				|  |  | +              this.topFrom.name = res.data.musicGroup.name;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              this.topFrom.time = res.data.musicGroup.applyExpireDate;
 | 
	
		
			
				|  |  | +              this.topFrom.type = res.data.musicGroup.chargeTypeId;
 | 
	
		
			
				|  |  | +              this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(
 | 
	
		
			
				|  |  | +                ","
 | 
	
		
			
				|  |  | +              );
 | 
	
		
			
				|  |  | +              this.topFrom.paymentPattern = res.data.musicGroup.paymentPattern;
 | 
	
		
			
				|  |  | +              this.topFrom.paymentValidStartDate =
 | 
	
		
			
				|  |  | +                res.data.musicGroup.paymentValidStartDate;
 | 
	
		
			
				|  |  | +              this.topFrom.paymentValidEndDate =
 | 
	
		
			
				|  |  | +                res.data.musicGroup.paymentValidEndDate;
 | 
	
		
			
				|  |  | +              this.topFrom.section = res.data.musicGroup.organId;
 | 
	
		
			
				|  |  | +              this.topFrom.school = res.data.musicGroup.cooperationOrganId;
 | 
	
		
			
				|  |  | +              this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
 | 
	
		
			
				|  |  | +              this.topFrom.boss = res.data.musicGroup.teamTeacherId;
 | 
	
		
			
				|  |  | +              this.topFrom.address = res.data.musicGroup.schoolId;
 | 
	
		
			
				|  |  | +              this.topFrom.salary = res.data.musicGroup.settlementType;
 | 
	
		
			
				|  |  | +              this.topFrom.head = res.data.musicGroup.directorUserId
 | 
	
		
			
				|  |  | +                ? res.data.musicGroup.directorUserId
 | 
	
		
			
				|  |  | +                : null;
 | 
	
		
			
				|  |  | +              this.topFrom.isClass = res.data.musicGroup.isClassroomLessons;
 | 
	
		
			
				|  |  | +              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.payList.chioseMonth = res.data.months;
 | 
	
		
			
				|  |  | +              if (res.data.musicGroup.organId) {
 | 
	
		
			
				|  |  | +                // 获取员工
 | 
	
		
			
				|  |  | +                queryEmployByOrganId({
 | 
	
		
			
				|  |  | +                  organId: res.data.musicGroup.organId,
 | 
	
		
			
				|  |  | +                  rows: 1000,
 | 
	
		
			
				|  |  | +                }).then((res) => {
 | 
	
		
			
				|  |  |                    if (res.code == 200) {
 | 
	
		
			
				|  |  | -                    this.cooperationList = res.data;
 | 
	
		
			
				|  |  | +                    this.orgianList = res.data.rows;
 | 
	
		
			
				|  |  |                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              );
 | 
	
		
			
				|  |  | -              // 获取教学点
 | 
	
		
			
				|  |  | -              getSchool({ organId: res.data.musicGroup.organId }).then(
 | 
	
		
			
				|  |  | -                (res) => {
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +                // 获取合作单位
 | 
	
		
			
				|  |  | +                queryByOrganId({ organId: res.data.musicGroup.organId }).then(
 | 
	
		
			
				|  |  | +                  (res) => {
 | 
	
		
			
				|  |  | +                    if (res.code == 200) {
 | 
	
		
			
				|  |  | +                      this.cooperationList = res.data;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                );
 | 
	
		
			
				|  |  | +                // 获取教学点
 | 
	
		
			
				|  |  | +                getSchool({ organId: res.data.musicGroup.organId }).then(
 | 
	
		
			
				|  |  | +                  (res) => {
 | 
	
		
			
				|  |  | +                    if (res.code == 200) {
 | 
	
		
			
				|  |  | +                      this.addList = res.data;
 | 
	
		
			
				|  |  | +                      this.isInit = false;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                );
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                // 获取维修技师
 | 
	
		
			
				|  |  | +                findTechnician().then((res) => {
 | 
	
		
			
				|  |  |                    if (res.code == 200) {
 | 
	
		
			
				|  |  | -                    this.addList = res.data;
 | 
	
		
			
				|  |  | -                    this.isInit = false;
 | 
	
		
			
				|  |  | +                    this.technician = res.data;
 | 
	
		
			
				|  |  |                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              );
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              this.$emit("getBaseInfo", res.data);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -              // 获取维修技师
 | 
	
		
			
				|  |  | -              findTechnician().then((res) => {
 | 
	
		
			
				|  |  | -                if (res.code == 200) {
 | 
	
		
			
				|  |  | -                  this.technician = res.data;
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              });
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            this.$emit("getBaseInfo", res.data);
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.topFrom = sotrage
 | 
	
		
			
				|  |  | +             if ( this.topFrom.section) {
 | 
	
		
			
				|  |  | +                // 获取员工
 | 
	
		
			
				|  |  | +                queryEmployByOrganId({
 | 
	
		
			
				|  |  | +                  organId: this.topFrom.section,
 | 
	
		
			
				|  |  | +                  rows: 1000,
 | 
	
		
			
				|  |  | +                }).then((res) => {
 | 
	
		
			
				|  |  | +                  if (res.code == 200) {
 | 
	
		
			
				|  |  | +                    this.orgianList = res.data.rows;
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +                // 获取合作单位
 | 
	
		
			
				|  |  | +                queryByOrganId({ organId: this.topFrom.section }).then(
 | 
	
		
			
				|  |  | +                  (res) => {
 | 
	
		
			
				|  |  | +                    if (res.code == 200) {
 | 
	
		
			
				|  |  | +                      this.cooperationList = res.data;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                );
 | 
	
		
			
				|  |  | +                // 获取教学点
 | 
	
		
			
				|  |  | +                getSchool({ organId: this.topFrom.section }).then(
 | 
	
		
			
				|  |  | +                  (res) => {
 | 
	
		
			
				|  |  | +                    if (res.code == 200) {
 | 
	
		
			
				|  |  | +                      this.addList = res.data;
 | 
	
		
			
				|  |  | +                      this.isInit = false;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                );
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                // 获取维修技师
 | 
	
		
			
				|  |  | +                findTechnician().then((res) => {
 | 
	
		
			
				|  |  | +                  if (res.code == 200) {
 | 
	
		
			
				|  |  | +                    this.technician = res.data;
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +             }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +             }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.$emit("getName", this.topFrom.name);
 | 
	
		
			
				|  |  |        getEmployeeOrgan().then((res) => {
 | 
	
		
			
				|  |  |          if (res.code == 200) {
 | 
	
		
			
				|  |  |            this.sectionList = res.data;
 |