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: [],