Browse Source

10/16 14:24

11
mo 4 years ago
parent
commit
696904a37e

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-76bdcaee.270a2f90.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.285394df.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3979d6d1.57c9836d.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-76bdcaee.bc1a1ee0.js


+ 8 - 5
src/views/teamBuild/components/teamBaseInfo.vue

@@ -112,6 +112,7 @@
                       :rules="[{ required: true, message: '请输入报名截止时间' }]">
           <el-date-picker v-model.trim="topFrom.time"
                           :disabled="basdisabled"
+                          @change="changeApplyTime"
                           type="date"
                           value-format="yyyy-MM-dd"
                           :picker-options="{
@@ -153,13 +154,11 @@
                       :rules="[
             { required: !isNotEditing(), message: '请选择缴费有效期开始' },
           ]">
-          <el-date-picker :disabled="isNotEditing() || basdisabled"
+          <el-date-picker :disabled="isNotEditing() || basdisabled || !topFrom.time"
                           v-model="topFrom.paymentValidStartDate"
                           @change="changePaymentValidStartDate"
                           placeholder="开始日期"
-                          :picker-options="{
-              firstDayOfWeek: 1,
-            }">
+                          :picker-options="beginDate(topFrom.time)">
           </el-date-picker>
         </el-form-item>
         <el-form-item label="缴费有效期结束"
@@ -171,7 +170,7 @@
             },
           ]">
           <el-date-picker :disabled="
-              isNotEditing() || topFrom.paymentPattern === 2 || basdisabled
+              isNotEditing() || topFrom.paymentPattern === 2 || basdisabled || !topFrom.paymentValidStartDate
             "
                           v-model="topFrom.paymentValidEndDate"
                           :picker-options="beginDate(topFrom.paymentValidStartDate)"
@@ -1231,6 +1230,10 @@ export default {
         }
       });
     },
+    changeApplyTime (val) {
+      this.topFrom.paymentValidStartDate = ''
+      this.topFrom.paymentValidEndDate = ''
+    }
   },
   computed: {
     startClassString () {

Some files were not shown because too many files changed in this diff