BUG 28409
This commit is contained in:
@@ -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}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user