diff --git a/src/pages/event-tracing/components/videoReservationDialog.vue b/src/pages/event-tracing/components/videoReservationDialog.vue index 9c30fa5..834c0db 100644 --- a/src/pages/event-tracing/components/videoReservationDialog.vue +++ b/src/pages/event-tracing/components/videoReservationDialog.vue @@ -15,6 +15,7 @@ type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择" + :picker-options="pickerOptions" class="width100"> @@ -46,6 +47,13 @@ export default { }, data() { return{ + pickerOptions: { + disabledDate(time) { + const today = new Date(); + const start = new Date(today.getFullYear(), today.getMonth(), today.getDate()); + return time.getTime() < start.getTime(); + } + }, videoReservationObj: { bookingTime: '', id: '', // 案件ID diff --git a/src/pages/event-tracing/components/voideDialog.vue b/src/pages/event-tracing/components/voideDialog.vue index f8a2b66..38a2814 100644 --- a/src/pages/event-tracing/components/voideDialog.vue +++ b/src/pages/event-tracing/components/voideDialog.vue @@ -106,7 +106,7 @@ diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 2f9d0f9..e698f54 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -94,8 +94,8 @@ export default { codeBtnDisabled: false, ruleForm: { telephone: '', - account: '', - password: '', + account: '18381082759', + password: 'trydo@123456', smsCode: '', }, rules: { diff --git a/src/pages/mediation-page/components/VideoReservationDialog.vue b/src/pages/mediation-page/components/VideoReservationDialog.vue index 9f0ff01..dbe8c3e 100644 --- a/src/pages/mediation-page/components/VideoReservationDialog.vue +++ b/src/pages/mediation-page/components/VideoReservationDialog.vue @@ -17,6 +17,7 @@ value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="请选择" + :picker-options="pickerOptions" class="width100"> @@ -147,6 +148,13 @@ export default { }, data() { return { + pickerOptions: { + disabledDate(time) { + const today = new Date(); + const start = new Date(today.getFullYear(), today.getMonth(), today.getDate()); + return time.getTime() < start.getTime(); + } + }, bookingDurationOptions: [ { label: '10分钟', value: 10 }, { label: '20分钟', value: 20 },