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; }); },