From d686d54eb8881afa78e573bf97152f07441b541e Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 12 Jan 2026 11:07:23 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=A6=85=E9=81=93280=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=B8=AD=E4=BF=9D=E5=AD=98=E5=B7=A5=E8=89=BA=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form.vue | 44 +++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 45a69502..9a2680d6 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -48,6 +48,7 @@ clearable filterable style="width: 100%" + @change="routeChange" > - + + + + + - 保存 + 保存 取消 @@ -260,6 +257,7 @@ export default { edit: "编辑日志", show: "查看日志", }, + imageUrl:'', test_file:'', fileList:[], //表单数据 @@ -387,6 +385,18 @@ export default { that.routeOptions = res; }); }, + routeChange(){ + let that = this; + if(that.route_code=='paiyicibang'){ + that.$API.mtm.route.item.req(that.form.route).then((res) => { + let json = res.params_json; + if(json.fileurl){ + let fileurl = JSON.parse(json.fileurl); + that.imageUrl = fileurl[0].path; + } + }) + } + }, //显示 open(mode = "add",type) { let that = this; @@ -424,6 +434,9 @@ export default { }); },500) } + if(that.route_code=='paiyicibang'&&data.oinfo_json.imageUrl){ + this.imageUrl = data.oinfo_json.imageUrl; + } } this.getRoute(data.id); }, @@ -450,6 +463,9 @@ export default { that.testitems.forEach((item) => { oinfo_json[item.id] = item.value; }) + if(that.mgroupName=='排一次棒'&&that.imageUrl!==''){ + oinfo_json.imageUrl = that.imageUrl; + } that.form.oinfo_json = oinfo_json; if (that.mode === "add") { that.$API.wpm.mlog.init.req(that.form).then((res) => {