From f7fc18463063d73c4e3989fd43c9fcfb84fd94dd Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 12 Jan 2026 10:56:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8E=92=E4=B8=80=E6=AC=A1=E6=A3=92?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=B6=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=9C=89=E5=B7=A5=E8=89=BA=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 025f77fa..368556a8 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -474,8 +474,6 @@ export default { setData(data) { let that = this; Object.assign(that.form, data); - console.log('that.form',that.form); - console.log('that.form.material_in_name',that.form.material_in_name); that.routeId = data.id; that.addTemplate.route = data.id; that.params_json=that.form.params_json; @@ -487,11 +485,13 @@ export default { } if(data.process_name=='排一次棒'){ that.params_json=that.form.params_json; - let fileurl = JSON.parse(that.params_json.fileurl); - fileurl.forEach((item)=>{ - item.url = item.path; - that.fileurl.push(item); - }) + if(that.params_json.fileurl){ + let fileurl = JSON.parse(that.params_json.fileurl); + fileurl.forEach((item)=>{ + item.url = item.path; + that.fileurl.push(item); + }) + } } setTimeout(() => { that.options.forEach((item) => {