From 74c898568c545ae9a73e33865076c9e26d07845f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 16 Nov 2022 10:25:34 +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/index.vue | 60 +++++++++--------------------- 1 file changed, 17 insertions(+), 43 deletions(-) diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 609cf8f..554b991 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -8,7 +8,6 @@ v-show="showSearch" label-width="100px" > - - + - - + - - 取 消 - { - console.log(res); this.streetlist = res.data; }); }, @@ -768,9 +756,8 @@ export default { clickcity(item) { this.form.regionName = ""; this.form.areaCode = ""; - console.log(item); + this.form.streetName = ""; getSecondaryLevelInfo(item.id).then((res) => { - console.log(res); this.arealist = res.data; }); }, @@ -779,6 +766,7 @@ export default { this.form.cityName = ""; this.form.regionName = ""; this.form.areaCode = ""; + this.form.streetName = ""; getSecondaryLevelInfo(item.id).then((res) => { this.citylist = res.data; }); @@ -796,25 +784,18 @@ export default { }, // 取消按钮 cancel() { - console.log(this.form); var obj = { pictureUrlList: [] }; - if(this.imgone!=this.form.stationIntroducePcitureUrl ){ + if (this.imgone != this.form.stationIntroducePcitureUrl) { obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl); } - if(this.imgtwo!=this.form.stationPictureUrl ){ + if (this.imgtwo != this.form.stationPictureUrl) { obj.pictureUrlList.push(this.form.stationPictureUrl); } if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => { - console.log(res); - }); + updatePicture(obj).then((res) => {}); } this.open = false; this.reset(); - this.value3 = ""; - this.value2 = ""; - this.value1 = ""; - this.value = ""; }, // 表单重置 reset() { @@ -879,8 +860,7 @@ export default { this.resetForm("queryForm"); this.handleQuery(); } else { - console.log(1); - // this.queryParams.nurseStationCode = null; + // console.log(1); this.queryParams.pageSize = 10; this.queryParams.pageNum = 1; this.queryParams.nurseStationCode = null; @@ -896,10 +876,6 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); - this.value3 = ""; - this.value2 = ""; - this.value1 = ""; - this.value = ""; this.open = true; this.looknurseStationLabel = [ { @@ -912,20 +888,18 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - console.log(row, "看一当前行数据"); this.reset(); this.loading = true; const id = row.id || this.ids; getStation(id).then((response) => { - console.log(response); this.form = response.data; + this.form.streetCode = this.form.streetName; this.imgone = this.form.stationIntroducePcitureUrl; this.imgtwo = this.form.stationPictureUrl; this.looknurseStationLabel = response.data.nurseStationLabel; - console.log(this.list); this.open = true; this.loading = false; - console.log(this.form); + console.log(this.form) }); }, /** 提交按钮 */