护理站人员 居住信息 修改

This commit is contained in:
shidongli 2022-09-21 18:02:50 +08:00 committed by 闫晓茹
parent 9e450ba688
commit 370710223f
2 changed files with 71 additions and 27 deletions

View File

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

View File

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