地区组件修复
This commit is contained in:
@@ -53,17 +53,16 @@ export default {
|
|||||||
},
|
},
|
||||||
hasLastLevelValue() {
|
hasLastLevelValue() {
|
||||||
return this.fullArea.some(e => e.type >= this.valueLevel)
|
return this.fullArea.some(e => e.type >= this.valueLevel)
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
Object.keys(this.$route.query).map(k => this.$route.query[k] = this.$route.query[k] == "false" ? false : this.$route.query[k])
|
|
||||||
return {
|
return {
|
||||||
...this.$route.query,
|
|
||||||
fullArea: [],
|
fullArea: [],
|
||||||
index: '',
|
index: '',
|
||||||
list: [],
|
list: [],
|
||||||
levelLabels: ["省", "市", "县/区", "镇/街道", "村/社区"],
|
levelLabels: ["省", "市", "县/区", "镇/街道", "村/社区"],
|
||||||
selected: {},
|
selected: {},
|
||||||
|
urlParams: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -195,6 +194,11 @@ export default {
|
|||||||
return level
|
return level
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(params) {
|
||||||
|
Object.keys(params).map(k => {
|
||||||
|
this[k] = params[k] == "false" ? false : params[k]
|
||||||
|
})
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.handleInit()
|
this.handleInit()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user