Ver código fonte

修改时禁用开营日期

caoliqin 1 mês atrás
pai
commit
48a23700e4
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/views/course/userCoursePeriod/index.vue

+ 4 - 0
src/views/course/userCoursePeriod/index.vue

@@ -259,6 +259,7 @@
         </el-form-item>
         <el-form-item label="开营日期" prop="periodStartingTime">
           <el-date-picker
+            :disabled = "isDisabledDateRange"
             :style="{display: form.periodType == 1 ? '' : 'none !important'}"
             v-model="form.dateRange"
             @change="timeChange(1)"
@@ -511,6 +512,7 @@ export default {
       videoList: [],
       // 弹出层标题
       title: "",
+      isDisabledDateRange: false, //是否禁用开营日期
       // 是否显示弹出层
       open: false,
       // 查询参数
@@ -684,6 +686,7 @@ export default {
       this.reset();
       this.open = true;
       this.title = "添加会员营期";
+      this.isDisabledDateRange = false;
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
@@ -706,6 +709,7 @@ export default {
         }
         this.open = true;
         this.title = "修改会员营期";
+        this.isDisabledDateRange = true;
       });
     },
     /** 提交按钮 */