فهرست منبع

vip乐理课修改

1
mo 4 سال پیش
والد
کامیت
1e58fb3fbf
2فایلهای تغییر یافته به همراه26 افزوده شده و 12 حذف شده
  1. 22 8
      src/views/buildVip/index.vue
  2. 4 4
      src/views/vipClass/vipDetail/components/vipStudentList.vue

+ 22 - 8
src/views/buildVip/index.vue

@@ -242,17 +242,21 @@
               v-model.trim="centerForm.onlineCourseNum"
               @mousewheel.native.prevent
               type="number"
-            />
+            >
+              <template slot="append">节</template>
+            </el-input>
           </el-form-item>
           <el-form-item v-if="hasOffline" label="线下课数">
             <el-input
               v-model.trim="centerForm.offlineCourseNum"
               @mousewheel.native.prevent
               type="number"
-            />
+            >     <template slot="append">节</template>
+            </el-input>
           </el-form-item>
           <el-form-item label="待排课数">
-            <el-input v-model.trim="allCourseCount" disabled />
+            <el-input v-model.trim="allCourseCount" disabled >     <template slot="append">节</template>
+            </el-input>
           </el-form-item>
           <el-form-item
             v-if="hotType == 'GIVE_CLASS' && isGiveClass"
@@ -345,11 +349,13 @@
           :inline="true"
         >
           <el-form-item v-if="hasOnline" label="线上课课酬">
-            <el-input v-model.trim="rightForm.onlineCourse" :disabled="true" />
+            <el-input v-model.trim="rightForm.onlineCourse" :disabled="true" >     <template slot="append">元/节</template>
+            </el-input>
             <!--  || onlineSalary!='TEACHER_DEFAULT' salaryReadonlyFlag==0 -->
           </el-form-item>
           <el-form-item v-if="hasOffline" label="线下课课酬">
-            <el-input v-model.trim="rightForm.offlineCourse" :disabled="true" />
+            <el-input v-model.trim="rightForm.offlineCourse" :disabled="true" >     <template slot="append">元/节</template>
+            </el-input>
             <!--  || offlineSalary!='TEACHER_DEFAULT' salaryReadonlyFlag==0 -->
           </el-form-item>
           <!-- <el-form-item v-if="hasOnline" label="线上课单价">
@@ -1444,7 +1450,7 @@ export default {
       this.leftForm.section = "";
       this.rightForm.offlineCourse = "";
       this.rightForm.onlineCourse = "";
-      this.leftForm.courseType = "";
+      // this.leftForm.courseType = "";
       if (val) {
         getTeachSchool({
           userId: val,
@@ -1499,9 +1505,17 @@ export default {
       // 老师 乐团主管 都要重置
       this.studentList = [];
       this.$set(this.leftForm, "students", []);
+      this.$set(this.leftForm, "teacher", '');
+       this.$set(this.leftForm, "educationalTeacherId", '');
+       this.$set(this.leftForm, "section", '');
+       this.$set(this.leftForm, "activeType", '');
+       this.$set(this.leftForm, "classTime", '');
+       this.$set(this.leftForm, "subject", '');
+
+
       // this.leftForm.students = [];
-      this.leftForm.teacherId = "";
-      this.leftForm.educationalTeacherId = "";
+      // this.leftForm.teacherId = "";
+      // this.leftForm.educationalTeacherId = "";
       this.courseTypeList = [];
       if (this.leftForm.courseType) {
         this.$set(this.leftForm, "courseType", null);

+ 4 - 4
src/views/vipClass/vipDetail/components/vipStudentList.vue

@@ -587,10 +587,10 @@ export default {
           onlineClassesUnitPrice = stu.onlineClassesUnitPrice
         }
       })
-      if(!offlineClassesUnitPrice || !onlineClassesUnitPrice){
-          this.$message.error("请填写线上课单价或线下课单价");
-        return
-      }
+      // if(!offlineClassesUnitPrice || !onlineClassesUnitPrice){
+      //     this.$message.error("请填写线上课单价或线下课单价");
+      //   return
+      // }
       addVipGroupStudents([{
         vipGroupId: this.id,
         studentId: this.activeStudent,