From 50cf3ee55aff2a99eb34fbfc2e2248c5ea625395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 4 Nov 2022 14:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/station/index.vue | 88 ++++++------------------------ 1 file changed, 16 insertions(+), 72 deletions(-) diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 4aac9ab..5902024 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -211,15 +211,12 @@ -   { - this.resid = response.data.nurseStationList.id; - this.form = response.data.nurseStationList; - if ( - !this.form.nurseStationType || - this.form.nurseStationType == null || - this.form.nurseStationType.length == 0 - ) { - } else { - this.nurseStationType2 = this.form.nurseStationType.split(","); - this.form.nurseStationType = this.nurseStationType2; - } - // this.form.nurseStationLabelList = []; - this.title = "修改护理站信息"; - getSubordinateRegions(response.data.sysAreaVOList.streetCode).then( - (res) => { - if (res.data) { - this.value = String(res.data.provinceCode); - this.value1 = res.data.cityName; - this.value2 = res.data.regionName; - this.value3 = res.data.streetName; - console.log(typeof this.value); - } - } - ); - }) - .then(() => { - this.looknurseStationLabel = []; - getLabelList(this.resid).then((res) => { - this.looknurseStationLabel = res; - if (this.looknurseStationLabel.length == 0) { - var obj = { - labelDescription: "", - sort: "", - ids: 1, - }; - this.looknurseStationLabel.push(obj); - } else if (this.looknurseStationLabel == []) { - var obj = { - labelDescription: "", - sort: "", - ids: 1, - }; - this.looknurseStationLabel.push(obj); - } else if (this.looknurseStationLabel == null) { - var obj = { - labelDescription: "", - sort: "", - ids: 1, - }; - this.looknurseStationLabel.push(obj); - } - // console.log(this.form); - // console.log(this.form.nurseStationLabelList); - // this.form.nurseStationLabelList = obj; - - // res.rows.forEach((e) => { - // this.form.nurseStationLabelList.push(e); - // }); - }); - this.open = true; - this.loading = false; - console.log(this.form); - }); + getStation(id).then((response) => { + console.log(response); + this.form = response.data; + this.looknurseStationLabel = response.data.nurseStationLabel; + this.nurseStationType2 = this.form.nurseStationType.split(","); + console.log(this.list); + + this.open = true; + this.loading = false; + console.log(this.form); + }); }, /** 提交按钮 */ submitForm() {