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