diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue
index f705d8c..8bdd9d5 100644
--- a/src/views/system/station/index.vue
+++ b/src/views/system/station/index.vue
@@ -211,15 +211,12 @@
-
-
{{
scope.row.areaName !== "null-null-null-null"
? scope.row.areaName
: ""
}}
-
{
- 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;
this.total = response.total;
this.loading = false;
@@ -1093,74 +1074,21 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ console.log(row, "看一当前行数据");
this.reset();
this.loading = true;
const id = row.id || this.ids;
- getStation(id)
- .then((response) => {
- 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;
+ 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);
- // res.rows.forEach((e) => {
- // this.form.nurseStationLabelList.push(e);
- // });
- });
- this.open = true;
- this.loading = false;
- console.log(this.form);
- });
+ this.open = true;
+ this.loading = false;
+ console.log(this.form);
+ });
},
/** 提交按钮 */
submitForm() {