Browse Source

提交测试

1
mo 4 years ago
parent
commit
7b35a4d2c4

+ 7 - 20
src/views/accompanyManager/accompanys.vue

@@ -295,11 +295,6 @@
             v-model.trim="maskForm.date"
             type="date"
             :picker-options="courseOption"
-            @change="
-              () => {
-                maskForm.startTime = '';
-              }
-            "
             value-format="yyyy-MM-dd"
             placeholder="选择日期"
           ></el-date-picker>
@@ -312,11 +307,6 @@
             type="date"
             value-format="yyyy-MM-dd"
             :picker-options="bigin"
-            @change="
-              () => {
-                maskForm.startTime = '';
-              }
-            "
             placeholder="选择日期"
           ></el-date-picker>
         </el-form-item>
@@ -334,7 +324,7 @@
             format="HH:mm"
             value-format="HH:mm"
             :picker-options="{
-              selectableRange: `${nowTime} - 23:30:00`,
+              selectableRange: `04:00:00 - 23:30:00`,
             }"
           ></el-time-picker>
         </el-form-item>
@@ -1023,6 +1013,12 @@ export default {
     },
     submitResetClass() {
       //   endClassTimeStr: this.maskForm.endTime,
+      let maskForm = this.maskForm;
+      let diff = dayjs(maskForm.date+' '+maskForm.startTime).diff(new Date,'second')
+      if(diff<=0){
+        this.$message.error("课程开始时间必须大于当前时间");
+        return
+      }
       this.$refs.maskForm.validate((valid) => {
         if (valid) {
           let obj = {
@@ -1355,15 +1351,6 @@ export default {
     },
   },
   computed: {
-    nowTime() {
-      // console.log(that.maskForm.date)
-      let str = "04:30:00";
-      if (that.maskForm.date == dayjs(new Date()).format("YYYY-MM-DD")) {
-        str = dayjs(new Date()).format("HH:mm:ss");
-      }
-
-      return str;
-    },
   },
 };
 </script>

+ 6 - 4
src/views/teacherManager/teacherOperation/components/salarySet.vue

@@ -15,7 +15,7 @@
                         v-model.trim="scope.row.mainTeacher30MinSalary"
                         placeholder="请输入课酬">
                 <template slot="append"
-                          v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
+                          v-if="scope.row.courseScheduleType == 'HIGH'">元/</template>
                 <template slot="append"
                           v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
                 <template slot="append"
@@ -30,7 +30,7 @@
                         v-model.trim="scope.row.assistantTeacher30MinSalary"
                         placeholder="请输入课酬">
                 <template slot="append"
-                          v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
+                          v-if="scope.row.courseScheduleType == 'HIGH'">元/</template>
                 <template slot="append"
                           v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
                 <template slot="append"
@@ -46,7 +46,7 @@
                         v-model.trim="scope.row.mainTeacher90MinSalary"
                         placeholder="请输入课酬">
                 <template slot="append"
-                          v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
+                          v-if="scope.row.courseScheduleType == 'HIGH'">元/</template>
                 <template slot="append"
                           v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
                 <template slot="append"
@@ -63,7 +63,7 @@
                         v-model.trim="scope.row.assistantTeacher90MinSalary"
                         placeholder="请输入课酬">
                 <template slot="append"
-                          v-if="scope.row.courseScheduleType == 'HIGH'">元/45分钟</template>
+                          v-if="scope.row.courseScheduleType == 'HIGH'">元/</template>
                 <template slot="append"
                           v-else-if="scope.row.courseScheduleType == 'CLASSROOM'">元/40分钟</template>
                 <template slot="append"
@@ -638,7 +638,9 @@ export default {
   }
 }
 /deep/.el-input-group__append {
+  min-width: 103px;
   background-color: #f5f7fa;
+  text-align: center;
   color: #909399;
   vertical-align: middle;
   display: table-cell;

+ 8 - 15
src/views/teamDetail/componentCourse/resetClass.vue

@@ -50,9 +50,6 @@
           v-model.trim="maskForm.date"
           type="date"
           :picker-options="bigin"
-          @change="()=>{
-            maskForm.startTime = ''
-          }"
           value-format="yyyy-MM-dd"
           placeholder="选择日期"
         ></el-date-picker>
@@ -79,7 +76,7 @@
           format="HH:mm"
           value-format="HH:mm"
           :picker-options="{
-            selectableRange: `${nowTime} - 23:30:00`,
+            selectableRange: `04:30:00 - 23:30:00`,
           }"
         ></el-time-picker>
       </el-form-item>
@@ -200,6 +197,13 @@ export default {
         this.$message.error("请填写开始时间或结束时间");
         return;
       }
+      let diff = dayjs(maskForm.date+' '+maskForm.startTime).diff(new Date,'second')
+      if(diff<=0){
+        this.$message.error("课程开始时间必须大于当前时间");
+        return
+      }
+
+
       this.$confirm("是否确定?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -362,17 +366,6 @@ export default {
       });
     },
   },
-  computed: {
-    nowTime() {
-      // console.log(that.maskForm.date)
-      let str = "04:30:00";
-      if (that.maskForm.date == dayjs(new Date()).format("YYYY-MM-DD")) {
-        str = dayjs(new Date()).format("HH:mm:ss");
-      }
-
-      return str;
-    },
-  },
 };
 </script>
 <style lang="scss" scoped>

+ 7 - 4
src/views/teamDetail/components/courseList.vue

@@ -213,7 +213,6 @@
           <el-date-picker v-model.trim="maskForm.date"
                           type="date"
                           :picker-options="beginDate()"
-                          @change="changeDate"
                           value-format="yyyy-MM-dd"
                           placeholder="选择日期"></el-date-picker>
         </el-form-item>
@@ -702,7 +701,13 @@ export default {
         .catch(() => {});
     },
     submitResetClass() {
+
       let maskForm = this.maskForm;
+       let diff = dayjs(maskForm.date+' '+maskForm.startTime).diff(new Date,'second')
+      if(diff<=0){
+        this.$message.error("课程开始时间必须大于当前时间");
+        return
+      }
       if (!maskForm.startTime || !maskForm.endTime) {
         this.$message.error("请填写开始时间或结束时间");
         return;
@@ -886,9 +891,7 @@ export default {
         },
       };
     },
-    changeDate(){
-      this.maskForm.startTime = ''
-    }
+
   },
   filters: {
     studentCallName: (value) => {

+ 3 - 3
src/views/vipClass/vipList.vue

@@ -5,14 +5,14 @@
       VIP/乐理课列表
     </h2>
     <div class="newBand" v-permission="'/buildVip'" @click="gotoBuildVip">
-      新建VIP/乐理课
+      新建
     </div>
     <div
       class="newBand"
       v-permission="'export/vipGroupList'"
       @click="onVIPCourseExport"
     >
-      导出VIP/乐理课
+      导出
     </div>
     <div
       class="newBand"
@@ -20,7 +20,7 @@
       @click="onStudentExport"
       style="max-width: inherit"
     >
-      VIP/乐理课课程续费提醒导出
+      课程续费提醒导出
     </div>
     <div class="m-core">
       <!-- 搜索类型 -->