Compare commits
No commits in common. "6e98206c1ede1a045b08e2846bea642d2282e749" and "468a226b27cb05618c53c088da6324d0b26b8602" have entirely different histories.
6e98206c1e
...
468a226b27
|
@ -15,7 +15,7 @@ VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJps/EXxxSpEM1Ix4R
|
||||||
# 高德
|
# 高德
|
||||||
VITE_APP_GAODE_KEY=ca549d915cb38803582ca7e85c5f972c
|
VITE_APP_GAODE_KEY=ca549d915cb38803582ca7e85c5f972c
|
||||||
VITE_APP_GAODE_VERSION=2.0
|
VITE_APP_GAODE_VERSION=2.0
|
||||||
VITE_APP_SECURITY_JS_CODE=f464462874676b3f1469780a62e5b921
|
VITE_APP_SECURITY_JS_CODE=432125a0f8d8cad2dac38b77d6f6728f
|
||||||
|
|
||||||
# VITE_APP_GAODE_KEY=f379a3f860a68d7438526275d6a94b05
|
# VITE_APP_GAODE_KEY=f379a3f860a68d7438526275d6a94b05
|
||||||
# VITE_APP_GAODE_VERSION=2.0
|
# VITE_APP_GAODE_VERSION=2.0
|
||||||
|
|
|
@ -24,7 +24,7 @@ const saveOrUpdateEnterprisesUnit = (params: _FormType, callback: Function) => {
|
||||||
const _mapRef = ref<ComponentExposed<typeof MapContainer>>(null)
|
const _mapRef = ref<ComponentExposed<typeof MapContainer>>(null)
|
||||||
const _formParams = ref<_FormType>({ ...params })
|
const _formParams = ref<_FormType>({ ...params })
|
||||||
|
|
||||||
let city = '全国'
|
let city = ''
|
||||||
const initMarker = (map: AMap.Map) => {
|
const initMarker = (map: AMap.Map) => {
|
||||||
//添加maker点 设置point
|
//添加maker点 设置point
|
||||||
const maker = new AMap.Marker({
|
const maker = new AMap.Marker({
|
||||||
|
@ -62,13 +62,11 @@ const saveOrUpdateEnterprisesUnit = (params: _FormType, callback: Function) => {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const auto = new AMap.AutoComplete({
|
const auto = new AMap.AutoComplete({
|
||||||
city: city,
|
city: city,
|
||||||
// input: 'tipinput',
|
input: 'tipinput',
|
||||||
citylimit: true,
|
citylimit: true,
|
||||||
})
|
})
|
||||||
auto.search(val, (status, result) => {
|
auto.search(val, (status, result) => {
|
||||||
console.log('🚀 ~ auto.search ~ status, result:', status, result)
|
|
||||||
if (status === 'complete') {
|
if (status === 'complete') {
|
||||||
// 生成组件需要数据
|
|
||||||
autoAddress.value = result.tips?.map((e) => {
|
autoAddress.value = result.tips?.map((e) => {
|
||||||
return {
|
return {
|
||||||
value: e.name,
|
value: e.name,
|
||||||
|
|
Loading…
Reference in New Issue