护理站的修改
This commit is contained in:
parent
a2c8b037a2
commit
50cf3ee55a
@ -211,15 +211,12 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="所属区域" align="center" prop="area">
|
||||
|
||||
<template slot-scope="scope">
|
||||
|
||||
<span>{{
|
||||
scope.row.areaName !== "null-null-null-null"
|
||||
? scope.row.areaName
|
||||
: ""
|
||||
}}</span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -356,7 +353,7 @@
|
||||
>
|
||||
<el-form-item label="所属区域" prop="areaCode">
|
||||
<el-select
|
||||
v-model="value"
|
||||
v-model="form.provinceName"
|
||||
clearable
|
||||
placeholder="请选择省"
|
||||
style="width: 129px"
|
||||
@ -371,7 +368,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="value1"
|
||||
v-model="form.cityName"
|
||||
clearable
|
||||
placeholder="请选择市"
|
||||
style="width: 129px; margin-left: 10px"
|
||||
@ -386,7 +383,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="value2"
|
||||
v-model="form.regionName"
|
||||
clearable
|
||||
placeholder="请选择区"
|
||||
style="width: 129px; margin-left: 10px"
|
||||
@ -401,7 +398,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="value3"
|
||||
v-model="form.streetName"
|
||||
clearable
|
||||
placeholder="请选择街道"
|
||||
style="width: 129px; margin-left: 10px"
|
||||
@ -1035,74 +1032,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;
|
||||
|
||||
// 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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user