Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
cdb32c7d
Commit
cdb32c7d
authored
Feb 24, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加经纬度
parent
5adbfc5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
WebSiteArea.vue
src/components/WebSet/WebSiteArea.vue
+18
-0
No files found.
src/components/WebSet/WebSiteArea.vue
View file @
cdb32c7d
...
...
@@ -151,6 +151,12 @@
</el-tag>
<i
v-if=
"showAddArea"
class=
"el-icon-circle-plus addIcon"
style=
"margin-left: 10px"
@
click=
"clickArea(0, 1)"
></i>
</el-form-item>
<el-form-item
label=
"坐标"
prop=
"LngLat"
>
<el-input
v-model=
"addMsg.LngLat"
/>
<div>
请点击拾取坐标在新页面打开坐标拾取页面,将拾取的坐标复制到文本框内
</div>
<!-- <iframe width="400" height="400" src="https://api.map.baidu.com/lbsapi/getpoint/"></iframe> -->
<el-button
type=
"primary"
@
click=
"openBaiduMap"
>
拾取坐标
</el-button>
</el-form-item>
<el-form-item
label=
"介绍"
prop=
"Introduction"
>
<el-input
type=
"textarea"
:rows=
"2"
v-model=
"addMsg.Introduction"
/>
</el-form-item>
...
...
@@ -229,6 +235,7 @@ import uploadImg from '../../pubComponents/uploadImg'
Level
:
[
{
required
:
true
,
message
:
'请选择层级'
,
trigger
:
'change'
}
],
LngLat
:
[{
required
:
true
,
message
:
'请输入坐标'
,
trigger
:
'blur'
}],
Introduction
:
[{
required
:
true
,
message
:
'请输入介绍'
,
trigger
:
'blur'
}],
TimeZones
:
[
{
required
:
true
,
message
:
'请输入时区'
,
trigger
:
'blur'
},
...
...
@@ -282,6 +289,9 @@ import uploadImg from '../../pubComponents/uploadImg'
this
.
financeinfo_post_GetList
()
},
methods
:
{
openBaiduMap
()
{
window
.
open
(
'https://api.map.baidu.com/lbsapi/getpoint/'
)
},
showImage
(
src
)
{
this
.
$set
(
this
.
images
,
0
,
src
);
setTimeout
(()
=>
{
...
...
@@ -340,6 +350,7 @@ import uploadImg from '../../pubComponents/uploadImg'
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
this
.
dataList
.
LngLat
=
res
.
data
.
data
.
pageData
.
Lng
?
`
${
res
.
data
.
data
.
pageData
.
Lng
}
,
${
res
.
data
.
data
.
pageData
.
Lat
}
`
:
''
}
else
{
this
.
loading
=
false
;
}
...
...
@@ -439,9 +450,16 @@ import uploadImg from '../../pubComponents/uploadImg'
this
.
$message
.
error
(
'请完善最佳旅行时间!'
);
return
}
let
lngLat
=
this
.
addMsg
.
LngLat
.
split
(
','
)
if
(
!
lngLat
[
0
]
||
!
lngLat
[
1
])
{
this
.
$message
.
error
(
'坐标不对,请重新输入'
);
return
}
this
.
addMsg
.
ImageList
=
imageList
let
params
=
{...
this
.
addMsg
}
params
.
IsHot
=
params
.
IsHot
?
1
:
2
params
.
Lng
=
lngLat
[
0
]
params
.
Lat
=
lngLat
[
1
]
this
.
apipost
(
"ws_post_SetArea"
,
params
,
res
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment