From adbd936382ab694fdc2fd61786d86691ab792e9b Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 20 Jan 2026 11:20:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=E6=8E=92=E4=B8=80=E6=AC=A1=E6=A3=92=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=97=AE=E9=A2=98?= 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, 11 insertions(+), 3 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 7d9413e6..d21437d8 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -457,9 +457,14 @@ export default { }, //合并新增的图片Ids imagesDel(index){ - this.fileIds.splice(index,1); - this.paramsJsonFileurl.splice(index,1); - this.params_json.fileurl = JSON.stringify(this.paramsJsonFileurl); + let that = this; + that.fileIds.splice(index,1); + let id = that.paramsJsonFileurl[index].id; + let list = that.fileurl_form.filter(item => item.id != id); + that.fileurl_form = list; + let list1 = that.paramsJsonFileurl.filter(item1 => item1.id != id); + that.paramsJsonFileurl = list1; + that.params_json.fileurl = JSON.stringify(that.paramsJsonFileurl); }, //显示 open(mode = "add") { @@ -487,14 +492,17 @@ export default { that.params_json2=that.form.params_json; } if(data.process_name=='排一次棒'){ + that.fileIds= []; that.params_json=that.form.params_json; 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.fileIds.push(item.id); that.fileurl.push(item); that.fileurl_form.push(item); }) + that.paramsJsonFileurl = that.fileurl_form; } } setTimeout(() => {