Parcourir la source

05/27 18:16

缴费时间限制
mo il y a 5 ans
Parent
commit
93a291c34a

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/css/chunk-e5936f78.771df879.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.48f0edd9.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/chunk-739aa186.96b79ed8.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/chunk-af531f28.f5d8a7f5.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/chunk-e5936f78.b4f70f58.js


+ 15 - 1
src/views/resetTeaming/components/resetPayList.vue

@@ -110,7 +110,7 @@
                       prop="deadlinePaymentDate">
           <el-date-picker v-model.trim="payForm.deadlinePaymentDate"
                           type="date"
-                          :picker-options="pickerOptions"
+                          :picker-options="bigin"
                           value-format="yyyy-MM-dd"
                           placeholder="开始日期"></el-date-picker>
         </el-form-item>
@@ -207,6 +207,7 @@ export default {
       qrcodes: true,
       qrcode: null,
       codeUrl: null,
+      bigin: this.beginDate(),
     };
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -320,6 +321,19 @@ export default {
       isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000);  //日期加1天
       let pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1) + "-" + (isdate.getDate());   //把日期格式转换成字符串
       return pdate;
+    },
+    beginDate () {
+      let self = this
+      return {
+        disabledDate (time) {
+          if (self.payForm.startPaymentDate) {
+            return new Date(self.payForm.startPaymentDate).getTime() > time.getTime()
+          } else {
+            return time.getTime() >= Date.now()
+            //开始时间不选时,结束时间最大值小于等于当天
+          }
+        }
+      }
     }
   },
   watch: {

+ 8 - 6
src/views/resetTeaming/components/studentPayBase.vue

@@ -148,6 +148,7 @@ export default {
           return time.getTime() + 86400000 <= new Date().getTime();
         }
       },
+
       payForm: {
         startDate: null
       },
@@ -164,12 +165,7 @@ export default {
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted () {
     // 获取声部
-    this.teamid = this.$route.query.id;
-    findSound({ musicGroupId: this.teamid }).then(res => {
-      if (res.code == 200) {
-        this.soundList = res.data;
-      }
-    });
+
     // 获取分部
 
     this.init();
@@ -181,6 +177,12 @@ export default {
   },
   methods: {
     init () {
+      this.teamid = this.$route.query.id;
+      findSound({ musicGroupId: this.teamid }).then(res => {
+        if (res.code == 200) {
+          this.soundList = res.data;
+        }
+      });
       this.getList()
     },
     getList () {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff