From cc0c0bc6d47684d8d14bd5b440b2cf652c87bccd Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 1 Aug 2024 11:04:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E5=BC=80=E5=A7=8B/?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=B6=85=E8=BF=87=E5=BD=93=E5=89=8D=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlog_form.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index e0a771f0..625d2591 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -112,6 +112,7 @@ type="datetime" value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" + :disabledDate="disabledDateFn" /> @@ -123,6 +124,7 @@ type="datetime" value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" + :disabledDate="disabledDateFn" /> @@ -225,9 +227,10 @@ export default { computed: { title() { return this.titleMap[this.mode]; - } + }, }, emits: ["success", "closed"], + data() { return { loading: false, @@ -290,9 +293,12 @@ export default { this.getEquipment(); }, methods: { + disabledDateFn(time) { + return time.getTime() > new Date().getTime(); + }, //获取 getUser() { - this.$API.system.user.list.req({depts: this.dept}).then((res) => { + this.$API.system.user.list.req({ depts: this.dept }).then((res) => { this.userOptions = res.results; }); },