Administrator vor 5 Monaten
Ursprung
Commit
180f9d054f
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/views/activity/rule/index.vue

+ 2 - 2
src/views/activity/rule/index.vue

@@ -96,7 +96,7 @@
           <el-col :span="11">
             <el-form-item prop="startTime">
               <el-date-picker v-model="ruleForm.startTime" type="datetime" value-format="YYYY-MM-DD HH:mm:ss"
-                placeholder="选择开启时间" style="width: 100%" :change="onStartTimeChange(ruleForm.startTime)"/>
+                placeholder="选择开启时间" style="width: 100%" @change="onStartTimeChange(ruleForm.startTime)"/>
             </el-form-item>
           </el-col>
           <el-col class="text-center" :span="2" style="text-align: center">
@@ -354,7 +354,7 @@ const onTypeChange = (val) => {
 const onStartTimeChange = (val) => {
   if (val != null && val != "") {
     let startDate = new Date(val)
-    for (var i=0; i < templateData.value.length; i++) {
+    for (var i = 0; i < templateData.value.length; i++) {
       if (templateData.value[i].id == ruleForm.actTemId) {
         const dayOfMs = 24 * 60 * 60 * 1000;
         let endTimeMs = startDate.getTime() + templateData.value[i].keepDay * dayOfMs