地区组件修复

This commit is contained in:
aixianling
2022-03-21 18:04:22 +08:00
parent e866b41f42
commit 60cf307fd2

View File

@@ -53,17 +53,16 @@ export default {
},
hasLastLevelValue() {
return this.fullArea.some(e => e.type >= this.valueLevel)
}
},
},
data() {
Object.keys(this.$route.query).map(k => this.$route.query[k] = this.$route.query[k] == "false" ? false : this.$route.query[k])
return {
...this.$route.query,
fullArea: [],
index: '',
list: [],
levelLabels: ["省", "市", "县/区", "镇/街道", "村/社区"],
selected: {},
urlParams: {}
}
},
watch: {
@@ -195,6 +194,11 @@ export default {
return level
}
},
onLoad(params) {
Object.keys(params).map(k => {
this[k] = params[k] == "false" ? false : params[k]
})
},
created() {
this.handleInit()
}