上传
This commit is contained in:
@@ -232,6 +232,7 @@ const open = async (type, id) => {
|
||||
try {
|
||||
const data = await ClueApi.getClue(id)
|
||||
info.value = { ...data, ...data.diyParams }
|
||||
info.value.remark = info.value.remark || ''
|
||||
defaultLatLng.value = {
|
||||
lat: data.lat,
|
||||
lng: data.lng
|
||||
@@ -239,7 +240,7 @@ const open = async (type, id) => {
|
||||
nextTick(() => {
|
||||
followList.value = data.followUser
|
||||
address.value = data.address || ''
|
||||
formRef.value.setValues(info.value)
|
||||
formRef.value.setValues(info.value, false)
|
||||
})
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
@@ -259,7 +260,7 @@ const open = async (type, id) => {
|
||||
lng: 117.283042
|
||||
}
|
||||
nextTick(() => {
|
||||
formRef.value.setValues(info.value)
|
||||
formRef.value.setValues(info.value, true)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -281,12 +282,14 @@ function changeTab() {
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
function resetForm() {
|
||||
info.value.address = undefined
|
||||
info.value.lat = undefined
|
||||
info.value.lng = undefined
|
||||
info.value.consultTime = formatDate(new Date())
|
||||
info.value.followUsers = []
|
||||
info.value.diyParams = {}
|
||||
info.value = {
|
||||
address: undefined,
|
||||
lat: undefined,
|
||||
lng: undefined,
|
||||
consultTime: formatDate(new Date()),
|
||||
followUsers: [],
|
||||
diyParams: {}
|
||||
}
|
||||
}
|
||||
|
||||
const placeList = ref([])
|
||||
|
||||
Reference in New Issue
Block a user