Browse Source

08/26 14:54

11
mo 4 years ago
parent
commit
3e0a371d68

+ 6 - 3
src/views/buildVip/index.vue

@@ -277,6 +277,7 @@
     <el-dialog title="VIP排课"
                ref="maskForm"
                width="500px"
+               destroy-on-close
                :visible.sync="dialogFormVisible">
       <el-form :model="maskForm"
                label-position="right"
@@ -326,12 +327,14 @@
         </el-form-item>
         <el-form-item label="上课时间"
                       prop="startTime">
-          <el-time-picker v-model.trim="maskForm.startTime"
+          <el-time-select v-model.trim="maskForm.startTime"
                           format="HH:mm"
                           value-format="HH:mm"
                           :picker-options="{
-                            selectableRange: '04:00:00 - 23:59:00'
-                          }"
+                            start: '04:30',
+                            step: '00:05',
+                            end: '23:30'
+                            }"
                           placeholder="选择时间" />
         </el-form-item>
       </el-form>

+ 4 - 13
src/views/teacherManager/teacherDetail/components/calendarList.vue

@@ -33,7 +33,7 @@
 
       </template>
     </el-calendar>
-    <resetList :startTimes="fomatValue"
+    <resetList :startTimes="startTime"
                @getCalendatList='getCalendatList' />
   </div>
 </template>
@@ -52,7 +52,8 @@ export default {
       teacherIdList: '',
       vipList: [],
       teamList: [],
-      newList: []
+      newList: [],
+      startTime: ''
     }
   },
   mounted () {
@@ -117,6 +118,7 @@ export default {
       })
     },
     showDate (scope) {
+
       this.startTime = scope.data.day
       this.endTime = scope.data.day
       this.value = scope.date
@@ -140,17 +142,6 @@ export default {
     permission (str, parent) {
       return permission(str, parent);
     },
-  },
-  computed: {
-    fomatValue () {
-
-      return setDate(this.value)
-    }
-  },
-  watch: {
-    value (val) {
-      console.log(setDate(val))
-    }
   }
 }
 </script>

+ 2 - 3
src/views/vipClass/vipDetail/components/teacherRecord.vue

@@ -183,7 +183,7 @@
                    @click="studentVisible = false">确 定</el-button>
       </span>
     </el-dialog>
-    <el-dialog title="课程调整"
+    <!-- <el-dialog title="课程调整"
                :visible.sync="courseVisible"
                width="420px">
       <el-form :model="maskForm"
@@ -223,7 +223,6 @@
                           placeholder="选择时间">
           </el-time-picker>
         </el-form-item>
-        <!-- 新增教学点 -->
         <el-form-item label="教学点"
                       prop="cooperation"
                       v-if='activeRow&&activeRow.teachMode == "OFFLINE"'>
@@ -242,7 +241,7 @@
         <el-button type="primary"
                    @click="resetCourse">确 定</el-button>
       </span>
-    </el-dialog>
+    </el-dialog> -->
 
     <el-dialog title='补考勤'
                width="400px"