BUG 28409

This commit is contained in:
aixianling
2022-03-21 22:45:47 +08:00
parent a9e84c9cf6
commit a93b30a565
2 changed files with 6 additions and 7 deletions

View File

@@ -23,12 +23,12 @@ export default {
components: {AiMore},
model: {
prop: "value",
event: "select"
event: "input"
},
props: {
areaId: {default: ''},
name: {default: ''},
value: String,
value: {default: ''},
all: Boolean,
icon: {default: "location.svg"},
isForm: Boolean,
@@ -52,7 +52,7 @@ export default {
return level
},
root() {
return this.areaId || this.user.areaId || this.$areaId
return this.areaId || this.$areaId
},
locationIcon() {
return this.$cdn + this.icon
@@ -106,13 +106,13 @@ export default {
if (!this.disabled) {
uni.$once('selectArea', data => {
if (data?.id) {
this.$emit("select", data.id)
this.$emit("input", data.id)
this.areaName = data.name
this.fullArea = data.fullArea
this.$forceUpdate()
}
})
let {value, all, valueLevel, selectRoot, areaId} = this.$props
let {value, all, valueLevel, selectRoot, areaId} = this
let url = qs.stringifyUrl({
url: "/components/pages/selectArea", query: {...this.$attrs, value, all, valueLevel, selectRoot, areaId}
})