护理站人员 居住信息 修改

This commit is contained in:
shidongli 2022-09-21 18:02:50 +08:00
parent 8200ea0150
commit 50cb00532d
2 changed files with 71 additions and 27 deletions

View File

@ -250,7 +250,7 @@
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item.areaCode" :value="item.areaCode"
@click.native="province(item)" @click.native="province2(item, index)"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -266,7 +266,7 @@
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item.areaCode" :value="item.areaCode"
@click.native="clickcity(item)" @click.native="clickcity2(item, index)"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -281,7 +281,7 @@
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item.areaCode" :value="item.areaCode"
@click.native="clickarea(item)" @click.native="clickarea2(item, index)"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -296,7 +296,6 @@
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item.areaCode" :value="item.areaCode"
@click.native="clickstreet(item)"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -443,10 +442,10 @@ export default {
city: "", city: "",
area: "", area: "",
areaCode: "", areaCode: "",
value: "", // value: "",
value3: "", // value3: "",
value2: "", // value2: "",
value1: "", // value1: "",
// //
title: "", title: "",
// //
@ -456,6 +455,10 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
city: "",
area: "",
areaCode: "",
province: "",
// areaCode: null, // areaCode: null,
// communityCode: null, // communityCode: null,
// communityName: null, // communityName: null,
@ -550,13 +553,33 @@ export default {
methods: { methods: {
// //
province(item) { province(item) {
// this.form.xxx[index].code=''
console.log(item); console.log(item);
this.queryParams.city = ""; this.queryParams.city = "";
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
// this.value1 = ""; // this.item.city = "";
// this.value2 = ""; // this.item.area = "";
// this.value3 = ""; // this.item.areaCode = "";
SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.SecondaryLevelInfolist = res.data;
// console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
province2(item, index) {
this.form.communityInfoList[index].city = "";
this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = "";
console.log(item);
// this.queryParams.city = "";
// this.queryParams.area = "";
// this.queryParams.areaCode = "";
// this.item.city = "";
// this.item.area = "";
// this.item.areaCode = "";
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);
this.SecondaryLevelInfolist = res.data; this.SecondaryLevelInfolist = res.data;
@ -566,10 +589,22 @@ export default {
}, },
// //
clickcity(item) { clickcity(item) {
this.queryParams.area = ""; // this.queryParams.area = "";
this.queryParams.areaCode = ""; // this.queryParams.areaCode = "";
this.value2 = ""; // this.value2 = "";
this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.arealists = res.data;
});
},
clickcity2(item, index) {
// this.queryParams.area = "";
// this.queryParams.areaCode = "";
// this.value2 = "";
// this.value3 = "";
console.log(item); console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);
@ -578,8 +613,18 @@ export default {
}, },
// //
clickarea(item) { clickarea(item) {
// this.queryParams.areaCode = ""; // this.queryParams.areaCode = "";
this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data;
});
},
clickarea2(item, index) {
// this.queryParams.areaCode = "";
// this.value3 = "";
console.log(item); console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);
@ -588,8 +633,8 @@ export default {
}, },
// //
clickstreet(item) { clickstreet(item) {
this.form.areaCode = item.areaCode; this.queryParams.areaCode = item.areaCode;
console.log(this.form); console.log(this.queryParams);
}, },
// //
loadMore() { loadMore() {
@ -660,13 +705,12 @@ export default {
// //
reset() { reset() {
this.form = { this.form = {
communityInfoList: [ communityInfoList: [
{ {
province: "", province: "",
city: "", city: "",
area: "", area: "",
areaCodes: "", // areaCodes: "",
areaCode: "", areaCode: "",
communityCode: "", communityCode: "",
communityName: "", communityName: "",

View File

@ -393,9 +393,9 @@ export default {
this.queryParams.city = ""; this.queryParams.city = "";
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
this.value1 = ""; // this.value1 = "";
this.value2 = ""; // this.value2 = "";
this.value3 = ""; // this.value3 = "";
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);
this.SecondaryLevelInfolist = res.data; this.SecondaryLevelInfolist = res.data;
@ -407,8 +407,8 @@ export default {
clickcity(item) { clickcity(item) {
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
this.value2 = ""; // this.value2 = "";
this.value3 = ""; // this.value3 = "";
console.log(item); console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);
@ -417,7 +417,7 @@ export default {
}, },
// //
clickarea(item) { clickarea(item) {
this.value3 = ""; // this.value3 = "";
console.log(item); console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res); console.log(res);