|
|
@@ -136,13 +136,13 @@ const inputInfo = reactive({
|
|
|
})
|
|
|
const showInputDialog = ref(false)
|
|
|
const showArea = ref(false)
|
|
|
-const onConfirmArea = (values) => {
|
|
|
- inputInfo.province = values[0].code
|
|
|
- inputInfo.city = values[1].code
|
|
|
- inputInfo.district = values[2].code
|
|
|
- inputInfo.address = values
|
|
|
+const onConfirmArea = ({selectedOptions}) => {
|
|
|
+ inputInfo.province = selectedOptions[0].value
|
|
|
+ inputInfo.city = selectedOptions[1].value
|
|
|
+ inputInfo.district = selectedOptions[2].value
|
|
|
+ inputInfo.address = selectedOptions
|
|
|
.filter((item) => !!item)
|
|
|
- .map((item) => item.name)
|
|
|
+ .map((item) => item.text)
|
|
|
.join('/')
|
|
|
showArea.value = false
|
|
|
}
|