浏览代码

未开始的课不能调到已结束

1
mo 4 年之前
父节点
当前提交
53f9c33616

+ 66 - 17
src/views/studentManager/index.vue

@@ -5,32 +5,81 @@
     </h2>
     <div class="m-core">
       <!-- navMenu -->
-      <tab-router v-model.trim="activeIndex" type="card" @tab-click="handleClick">
-        <el-tab-pane label="基本信息" lazy v-if="permissionList.studentInfo" name="1">
+      <tab-router
+        v-model.trim="activeIndex"
+        type="card"
+        @tab-click="handleClick"
+      >
+        <el-tab-pane
+          label="基本信息"
+          lazy
+          v-if="permissionList.studentInfo"
+          name="1"
+        >
           <studentInfo v-if="activeIndex == 1" />
         </el-tab-pane>
-        <el-tab-pane label="乐团&课程" lazy v-if="permissionList.teamAndcourse" name="2">
+        <el-tab-pane
+          label="乐团&课程"
+          lazy
+          v-if="permissionList.teamAndcourse"
+          name="2"
+        >
           <teamAndcourse v-if="activeIndex == 2" />
         </el-tab-pane>
-        <el-tab-pane label="VIP课" lazy v-if="permissionList.studentVip" name="3">
+        <el-tab-pane
+          label="VIP课"
+          lazy
+          v-if="permissionList.studentVip"
+          name="3"
+        >
           <studentVip v-if="activeIndex == 3" />
         </el-tab-pane>
-        <el-tab-pane label="对外课" lazy v-if="permissionList.studentOutList" name="4">
+        <el-tab-pane
+          label="对外课"
+          lazy
+          v-if="permissionList.studentOutList"
+          name="4"
+        >
           <studentOutList v-if="activeIndex == 4" />
         </el-tab-pane>
-        <el-tab-pane label="网管课" lazy v-if="permissionList.studentNetwork" name="9">
+        <el-tab-pane
+          label="网管课"
+          lazy
+          v-if="permissionList.studentNetwork"
+          name="9"
+        >
           <studentNetwork v-if="activeIndex == 9" />
         </el-tab-pane>
-        <el-tab-pane label="课表详情" lazy v-if="permissionList.studentRecord" name="5">
+        <el-tab-pane
+          label="课表详情"
+          lazy
+          v-if="permissionList.studentRecord"
+          name="5"
+        >
           <studentRecord v-if="activeIndex == 5" />
         </el-tab-pane>
-        <el-tab-pane label="扣费记录" lazy v-if="permissionList.studentPayList" name="6">
+        <el-tab-pane
+          label="扣费记录"
+          lazy
+          v-if="permissionList.studentPayList"
+          name="6"
+        >
           <studentPayList v-if="activeIndex == 6" />
         </el-tab-pane>
-        <el-tab-pane label="学员订单" lazy v-if="permissionList.studentOrder" name="7">
+        <el-tab-pane
+          label="学员订单"
+          lazy
+          v-if="permissionList.studentOrder"
+          name="7"
+        >
           <studentOrder v-if="activeIndex == 7" />
         </el-tab-pane>
-        <el-tab-pane label="学员提现" lazy v-if="permissionList.studentCashout" name="8">
+        <el-tab-pane
+          label="学员提现"
+          lazy
+          v-if="permissionList.studentCashout"
+          name="8"
+        >
           <studentCashout v-if="activeIndex == 8" />
         </el-tab-pane>
       </tab-router>
@@ -58,7 +107,7 @@ export default {
     studentOrder,
     studentCashout,
     studentOutList,
-    studentNetwork
+    studentNetwork,
   },
   name: "studentDetail",
   data() {
@@ -74,9 +123,9 @@ export default {
         studentOrder: permission("/studentDetail/studentOrder"),
         studentCashout: permission("/studentDetail/studentCashout"),
         studentOutList: permission("/studentDetail/studentOutList"), //
-        studentNetwork: permission("/studentDetail/studentNetwork")
+        studentNetwork: permission("/studentDetail/studentNetwork"),
       },
-      studentName: ""
+      studentName: "",
     };
   },
   mounted() {
@@ -99,16 +148,16 @@ export default {
   },
   methods: {
     onCancel() {
-       this.$store.dispatch('delVisitedViews', this.$route) 
+      this.$store.dispatch("delVisitedViews", this.$route);
       this.$router.push({
-        path: "/business/studentList"
+        path: "/business/studentList",
       });
     },
     handleClick(val) {
       this.activeIndex = val.name;
       // this.acitveStatus[val.name - 1] = true
-    }
-  }
+    },
+  },
 };
 </script>
 <style lang="scss">

+ 11 - 3
src/views/teamDetail/componentCourse/resetClass.vue

@@ -35,9 +35,7 @@
         <el-date-picker
           v-model.trim="maskForm.date"
           type="date"
-          :picker-options="{
-            firstDayOfWeek: 1,
-          }"
+           :picker-options="bigin"
           value-format="yyyy-MM-dd"
           placeholder="选择日期"
         ></el-date-picker>
@@ -158,6 +156,7 @@ export default {
       typeTimeList: [],
       courseTimeList: {},
       organId: "",
+        bigin: this.beginDate(),
     };
   },
   async mounted() {
@@ -307,6 +306,15 @@ export default {
         }
       });
     },
+      beginDate () {
+      return {
+        firstDayOfWeek: 1,
+        disabledDate (time) {
+            return time.getTime() <= Date.now()
+            //开始时间不选时,结束时间最大值小于等于当天
+          }
+      }
+    },
   },
 
   watch: {

+ 1 - 1
src/views/teamDetail/teamCourseList.vue

@@ -567,7 +567,7 @@
         <!-- infoMsg -->
       </el-tabs>
     </el-dialog>
-    <el-dialog :visible.sync="show" width="400px">
+    <el-dialog :visible.sync="show" width="400px" title="课程调整">
       <resetClass
         :show="show"
         v-if="show"