From 09a9e85bb3fa50493319eb0a6c9b7bbdbe46646a Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 13 Jan 2026 09:02:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E8=89=BA=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 8eb075b6..7d9413e6 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -341,6 +341,7 @@ export default { mgroups: [], options: [], routemats:[], + fileurl_form:[], paramsJsonFileurl:[], materialOptions:[], titleMap: { add: "新增", edit: "编辑" }, @@ -444,10 +445,11 @@ export default { obj.file = item.file; obj.name = item.name; obj.path = item.path; + obj.url = item.path; files.push(obj); }) - if(that.fileurl.length>0){ - that.paramsJsonFileurl = files.concat(that.fileurl); + if(that.fileurl_form.length>0){ + that.paramsJsonFileurl = that.fileurl_form.concat(files); }else{ that.paramsJsonFileurl = files; } @@ -486,11 +488,12 @@ export default { } if(data.process_name=='排一次棒'){ that.params_json=that.form.params_json; - if(that.params_json.fileurl){ + if(that.params_json.fileurl&&that.params_json.fileurl!=="[]"){ let fileurl = JSON.parse(that.params_json.fileurl); fileurl.forEach((item)=>{ item.url = item.path; that.fileurl.push(item); + that.fileurl_form.push(item); }) } }