Browse Source

提交一下

1
mo 4 years ago
parent
commit
3caa4a4882
1 changed files with 11 additions and 5 deletions
  1. 11 5
      src/views/teamBuild/components/teamBaseInfo.vue

+ 11 - 5
src/views/teamBuild/components/teamBaseInfo.vue

@@ -406,7 +406,7 @@ export default {
         paymentValidEndDate: null, // 缴费有效期结束
         ownershipType: "OWN", // 合作机构类型
         repairUserId: null, // 维修技师
-        transactionTeacherId:null, // 衔接老师
+        transactionTeacherId: null, // 衔接老师
       },
       baseInfo: {},
       money: 580,
@@ -517,6 +517,7 @@ export default {
       if (this.teamid) {
         let loadash = this.$helpers.lodash;
         let sotrage = JSON.parse(localStorage.getItem(`${this.teamid}base`));
+        console.log(sotrage,this.topFrom)
         if (!loadash.isEqual(this.topFrom, sotrage) && sotrage) {
           // 提示保存
           return await this.$confirm("已修改当前页面数据是否保存", "提示", {
@@ -735,13 +736,16 @@ export default {
       // 清除教学点
       this.topFrom.teacher = "";
       if (val) {
+        console.log(this.cooperationList);
         this.cooperationList.forEach((item) => {
           if (item.id == val) {
-            this.topFrom.teacher = item.educationUserId;
+            console.log(item);
+            this.$set(this.topFrom, "teacher", item.educationUserId);
+            // this.topFrom.teacher = item.educationUserId;
           }
         });
       }
-      console.log(val);
+      console.log("chioseSchool", this.topFrom.teacher);
     },
     async gotoNext(str) {
       let tempStatus;
@@ -812,6 +816,7 @@ export default {
               courseViewType: this.topFrom.courseViewType,
               teamTeacherId: this.topFrom.boss,
               // educationalTeacherId: this.topFrom.teacher,
+              // chioseSchool
               enrollClasses: this.topFrom.startClass.join(","),
               name: this.topFrom.name,
               paymentPattern: this.topFrom.paymentPattern,
@@ -832,7 +837,7 @@ export default {
               ownershipType: this.topFrom.ownershipType,
               repairUserId: this.topFrom.repairUserId || null,
               feeType: this.topFrom.feeType,
-              transactionTeacherId:this.topFrom.transactionTeacherId
+              transactionTeacherId: this.topFrom.transactionTeacherId,
             };
             // obj.musicGroupPaymentEntities = [];
             // createTeam
@@ -1184,7 +1189,8 @@ export default {
         : null;
       this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
       this.applyExpireDate = res.data.musicGroup.applyExpireDate;
-      this.topFrom.transactionTeacherId = res.data.musicGroup.transactionTeacherId
+      this.topFrom.transactionTeacherId =
+        res.data.musicGroup.transactionTeacherId||'';
       localStorage.setItem(`${this.teamid}base`, JSON.stringify(this.topFrom));
     },
     changeType(val) {