地区组件修复
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user