This commit is contained in:
yanran200730
2022-01-18 17:56:53 +08:00
parent 9602ad6d24
commit 4302e51896

View File

@@ -18,7 +18,7 @@
</div>
<div/>
<span v-if="all" v-text="`省`" @click="selectNode({}, -1)"/>
<span v-for="(area,i) in fullArea" :key="area.id" v-text="area.levelLabel"
<span v-for="(area,i) in fullArea" :key="area.id" v-text="area.levelLabel || '村/社区'"
@click="selectNode(area, i)"/>
</div>
<!--用来作为占位的-->
@@ -169,6 +169,14 @@ export default {
this.list.unshift(self)
}
this.scrollHeight()
} else {
if (this.areaId.substr(this.areaId.length - 3, 3) !== '000') {
this.list = [{
id: this.areaId,
name: this.fullArea[0].name
}]
this.areaName = this.fullArea[0].name
}
}
})
},