diff --git a/src/api/baseurl.js b/src/api/baseurl.js index 1d13b8d..4533f4b 100644 --- a/src/api/baseurl.js +++ b/src/api/baseurl.js @@ -1,3 +1,3 @@ -var baseurl = "http://192.168.16.81:8082"; +var baseurl = "http://192.168.16.81:8080"; export default baseurl diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 597471c..74d353b 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -208,11 +208,11 @@ > - + + + - { - console.log(res); this.citylist = res.data; }); }, /** 查询护理站信息列表 */ getList() { - this.loading = true; this.liststationinfo(); - getFirstLevelInfo().then((res) => { this.provincelist = res.data; }); getInfoList().then((res) => { this.nurseStationTypelist = res.data; }); + this.loading = true; }, // 取消按钮 cancel() { @@ -1092,8 +949,23 @@ export default { /** 搜索按钮操作 */ liststationinfo() { listStation(this.queryParams).then((response) => { + response.rows.forEach((e) => { + if (e.sysAreaVOList == []) { + } else if (e.sysAreaVOList == null) { + } else if (!e.sysAreaVOList) { + } else if (e.sysAreaVOList.length == 0) { + } else if (e.sysAreaVOList.length > 0) { + e.area = + e.sysAreaVOList[0].provinceName + + "-" + + e.sysAreaVOList[0].cityName + + "-" + + e.sysAreaVOList[0].regionName + + "-" + + e.sysAreaVOList[0].streetName; + } + }); this.stationList = response.rows; - console.log("this.stationList :>> ", this.stationList); this.total = response.total; this.loading = false; }); @@ -1178,16 +1050,17 @@ export default { // this.form.nurseStationLabelList = []; this.title = "修改护理站信息"; getSubordinateRegions(response.data.areaCode).then((res) => { - this.value = res.data.provinceCode; + 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: "", @@ -1210,8 +1083,6 @@ export default { }; this.looknurseStationLabel.push(obj); } - console.log(this.looknurseStationLabel); - // console.log(this.form); // console.log(this.form.nurseStationLabelList); // this.form.nurseStationLabelList = obj; @@ -1220,7 +1091,6 @@ export default { // this.form.nurseStationLabelList.push(e); // }); }); - console.log(this.form); this.open = true; }); }, @@ -1315,9 +1185,7 @@ export default { //权限列表 info() { getListByUser(this.getListByUserquery).then((res) => { - console.log(res); if (res.rows[0].isAdmin == "1") { - console.log(true); this.nurseStationlist = res.rows; this.total2 = res.total; } else { diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 62f6297..957145c 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -287,7 +287,10 @@ > - + - + - +