Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
youjj
cloud-platform-ui
Commits
5e2a800b
Commit
5e2a800b
authored
Aug 16, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地经纬度必填
parent
4e66ddf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
campsiteModal.vue
src/views/campsiteManage/modal/campsiteModal.vue
+13
-16
No files found.
src/views/campsiteManage/modal/campsiteModal.vue
View file @
5e2a800b
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
</el-form-item>
</el-form-item>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"经度"
>
<el-form-item
label=
"经度"
prop=
"latitude"
>
<el-input
:value=
"form.latitude"
readonly
></el-input>
<el-input
:value=
"form.latitude"
readonly
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"纬度"
>
<el-form-item
label=
"纬度"
prop=
"longitude"
>
<el-input
:value=
"form.longitude"
readonly
></el-input>
<el-input
:value=
"form.longitude"
readonly
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -52,10 +52,9 @@
...
@@ -52,10 +52,9 @@
</bm-marker>
</bm-marker>
</baidu-map>
</baidu-map>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item
>
<!--:center="center"-->
<!--:center="center"-->
<baidu-map
<baidu-map
:zoom=
"zoom"
:zoom=
"zoom"
:dragging=
"true"
:dragging=
"true"
:scroll-wheel-zoom=
"true"
:scroll-wheel-zoom=
"true"
...
@@ -86,7 +85,7 @@
...
@@ -86,7 +85,7 @@
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
script
src=
"http://api.map.baidu.com/api?v=2.0&ak=iSEprDCqtYn5aC06Y3cDyGCEOP1hydwR"
></
script
>
<
script
>
<
script
>
import
BaiduMap
from
'vue-baidu-map'
;
import
BaiduMap
from
'vue-baidu-map'
;
import
{
import
{
...
@@ -104,12 +103,10 @@
...
@@ -104,12 +103,10 @@
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElInput
from
"../../../../node_modules/element-ui/packages/input/src/input.vue"
;
import
ElInput
from
"../../../../node_modules/element-ui/packages/input/src/input.vue"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElFormItem
from
"../../../../node_modules/element-ui/packages/form/src/form-item.vue"
;
export
default
{
export
default
{
props
:
[
"obj"
],
props
:
[
"obj"
],
name
:
'destinationDialog'
,
name
:
'destinationDialog'
,
components
:
{
components
:
{
ElFormItem
,
ElCol
,
ElCol
,
ElInput
,
ElInput
,
ElRow
ElRow
...
@@ -183,16 +180,12 @@
...
@@ -183,16 +180,12 @@
}
}
],
],
longitude
:{
longitude
:{
type
:
'string'
,
required
:
true
,
required
:
true
,
message
:
'请输入经纬度'
,
message
:
'请拾取经纬度'
trigger
:
'blur'
},
},
latitude
:{
latitude
:{
type
:
'string'
,
required
:
true
,
required
:
true
,
message
:
'请输入经纬度'
,
message
:
'请拾取经纬度'
trigger
:
'blur'
},
},
addrProvince
:{
addrProvince
:{
required
:
true
,
required
:
true
,
...
@@ -264,7 +257,7 @@
...
@@ -264,7 +257,7 @@
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
form
.
method
=
'delete'
;
this
.
form
.
method
=
'delete'
;
this
.
$emit
(
this
.
form
.
eventName
,
this
.
form
);
this
.
$emit
(
this
.
form
.
eventName
,
this
.
form
);
})
})
},
},
querySearch
(
queryString
,
cb
)
{
querySearch
(
queryString
,
cb
)
{
let
selectArry
=
[];
let
selectArry
=
[];
...
@@ -331,8 +324,12 @@
...
@@ -331,8 +324,12 @@
/**
/**
* 加载地图
* 加载地图
* */
* */
handler
({
map
}){
handler
({
BMap
,
map
})
{
console
.
log
(
BMap
,
map
)
this
.
postionMap
=
{
//地图坐标
lng
:
120.211486
,
lat
:
30.256576
};
},
},
//点击获取到当前经纬度
//点击获取到当前经纬度
getClickInfo
(
e
)
{
getClickInfo
(
e
)
{
...
...
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