quanyawei
2024-11-15 a19b20afeacf84c1c743c76b5018bcfbddac2270
src/components/Form/HourPicker1.vue
@@ -10,7 +10,7 @@
    type="datetimerange"
    range-separator="至"
    start-placeholder="开始日期"
    value-format="yyyy-MM-dd HH"
    value-format="yyyy-MM-dd HH:mm:ss"
    end-placeholder="结束日期"
    :picker-options="pickerOptions"
  >
@@ -39,7 +39,8 @@
          // 最大时间  最小时间
          this.timeOne = minDate.getTime() // 当选一个日期时 就是最小日期
          // // 如何你选择了两个日期了,就把那个变量置空
          if (maxDate) this.timeOne = ''
           if (maxDate) this.timeOne = ''
        },
        disabledDate: time => {
          if (this.timeOne) {