From d6b15093e5909708ebf1cc81b4ededa15c9a06f9 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 22 May 2025 10:59:59 +0800 Subject: [PATCH] fix:coding#832 --- src/views/wpm_bx/mlog_form.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 1ab2f379..71761c37 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -199,6 +199,7 @@ const defaultForm = { route: "", equipment: "", handle_user: null, + handle_user_name: "", work_start_time: "", work_end_time:null, note:'', @@ -379,7 +380,13 @@ export default { }, //显示 open(mode = "add",type) { + let that = this; this.mode = mode; + if(mode == "add"){ + let userInfo = that.$TOOL.data.get("USER_INFO"); + this.form.handle_user = userInfo.id; + this.form.handle_user_name = userInfo.name; + } this.visible = true; if(type!==''&&type!==undefined&&type!==null){ this.mlogtype = type;