// 县
addressCounty (id, index) {
let cityData = {
hospitalId: 2,
pdCode: 'PD0000000446',
parentDatavalueId: id
}
this.$store.dispatch('curHDDictQueryBasicDataValue', cityData).then(res => {
if (res.status !== 200 || res.data.code !== 200) {
util.showMsg(this, res.data);
} else {
this.addressData[index].children.map((val, i) => {
if (val.value == id) {
val.children = res.data.data.list
val.children.map((value, index) => {
value.label = value.dataValueRemark
value.value = value.datavalueId
value.children = []
})
}
})
}
}).catch(err => {
util.showMsg(this, err);
});
},