From 9283c0c28306dc0caa7b644b12985c5713eb8555 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 22 Apr 2022 16:14:29 +0800 Subject: [PATCH] 29259 --- packages/IntelligentSecurity/components/AiSlwVideo.vue | 6 ++++++ packages/IntelligentSecurity/components/Synergy.vue | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packages/IntelligentSecurity/components/AiSlwVideo.vue b/packages/IntelligentSecurity/components/AiSlwVideo.vue index 8fbe49c7..429e7512 100644 --- a/packages/IntelligentSecurity/components/AiSlwVideo.vue +++ b/packages/IntelligentSecurity/components/AiSlwVideo.vue @@ -74,6 +74,7 @@ value-format="yyyy-MM-dd" v-model="form.date" type="date" + :picker-options="pickerOptions" placeholder="选择日期"> @@ -96,6 +97,11 @@ data () { return { + pickerOptions: { + disabledDate(time) { + return time.getTime() > Date.now(); + } + }, currIndex: 0, isShowDate: false, isShowPlayBtn: false, diff --git a/packages/IntelligentSecurity/components/Synergy.vue b/packages/IntelligentSecurity/components/Synergy.vue index be6353b9..0c894722 100644 --- a/packages/IntelligentSecurity/components/Synergy.vue +++ b/packages/IntelligentSecurity/components/Synergy.vue @@ -75,6 +75,7 @@ value-format="yyyy-MM-dd" v-model="form.date" type="date" + :picker-options="pickerOptions" placeholder="选择日期"> @@ -107,6 +108,11 @@ form: { date: '' }, + pickerOptions: { + disabledDate(time) { + return time.getTime() > Date.now(); + } + }, times: [], isShowTimeline: true, checkList: [],