diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index a4a8b7c4..025f77fa 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -444,8 +444,13 @@ export default { obj.path = item.path; files.push(obj); }) - this.paramsJsonFileurl = files; - this.params_json.fileurl = JSON.stringify(files); + if(that.fileurl.length>0){ + this.paramsJsonFileurl = files.concat(that.fileurl); + }else{ + this.paramsJsonFileurl = files; + } + + this.params_json.fileurl = JSON.stringify(this.paramsJsonFileurl); }, //合并新增的图片Ids imagesDel(index){ @@ -482,9 +487,7 @@ export default { } if(data.process_name=='排一次棒'){ that.params_json=that.form.params_json; - console.log('that.params_json',that.params_json); let fileurl = JSON.parse(that.params_json.fileurl); - console.log('fileurl',fileurl); fileurl.forEach((item)=>{ item.url = item.path; that.fileurl.push(item);