From d0b7dd55fcdd214d86ea79f21f4d8258bc687e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Tue, 10 Jan 2023 10:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/station/stationjs.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/system/station/stationjs.js b/src/views/system/station/stationjs.js index 54279fd..9567591 100644 --- a/src/views/system/station/stationjs.js +++ b/src/views/system/station/stationjs.js @@ -162,7 +162,7 @@ export default { methods: { imgs(item) { this.imgsurl.pictureUrlList.push(item); - }, + }, imgUrl(imgUrl) { this.form.stationPictureUrl = imgUrl; }, @@ -254,10 +254,13 @@ export default { } if (this.imgsurl.pictureUrlList.length > 0) { updatePicture(this.imgsurl).then((res) => {}); - } - this.imgsurl={pictureUrlList:[]}; + } + this.imgsurl = { pictureUrlList: [] }; this.open = false; this.reset(); + this.arealist = [] + this.citylist = [] + this.streetlist = [] }, // 表单重置 reset() { @@ -373,7 +376,7 @@ export default { if (this.imgtwo != this.form.stationPictureUrl) { obj.pictureUrlList.push(this.imgtwo); } - this.imgsurl={pictureUrlList:[]}; + this.imgsurl = { pictureUrlList: [] }; if (obj.pictureUrlList.length > 0) { updatePicture(obj).then((res) => {}); } @@ -458,4 +461,4 @@ export default { this.upload.isUploading = true; }, }, -}; +}; \ No newline at end of file