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
0fefd939
Commit
0fefd939
authored
Mar 30, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化包车地图
parent
c62338a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
CharteringInfoManage.vue
...sManagement/CharteringManagement/CharteringInfoManage.vue
+7
-7
Map.vue
src/components/public/Map.vue
+9
-3
No files found.
src/components/busManagement/CharteringManagement/CharteringInfoManage.vue
View file @
0fefd939
...
...
@@ -836,30 +836,30 @@
<
template
v-if=
"addMsg.CarType == 2"
>
送机
</
template
>
<
template
v-if=
"addMsg.CarType == 3"
>
包车
</
template
>
<
template
v-if=
"!addMsg.CarType"
>
-
</
template
>
(
上车
信息)
(
{{addMsg.CarType == 1?'下车':addMsg.CarType == 2?'上车':'上下车'}}
信息)
<span
style=
"float: right;margin-right: 206px;color: #6e6e6e;cursor: pointer;"
@
click=
"clickShow(2)"
>
{{ PlaceShow?'收起': '展开' }}
</span>
</span>
<
template
v-for=
"(item, index) in addMsg.PlaceList"
>
<div
v-show=
"PlaceShow"
>
<el-form-item
:label=
"`
上车
地址$
{index + 1}`" :prop="`PlaceList.${index}.Name`" :rules="rules.Name3">
<el-form-item
:label=
"`地址$
{index + 1}`" :prop="`PlaceList.${index}.Name`" :rules="rules.Name3">
<div
style=
"position: relative;"
>
<el-input
maxlength=
"100"
placeholder=
"请输入
上车
地址"
class=
"w300 addAddress"
<el-input
maxlength=
"100"
placeholder=
"请输入地址"
class=
"w300 addAddress"
v-model=
"item.Name"
></el-input>
<i
v-if=
"index == 0"
class=
"el-icon-circle-plus addlist"
@
click=
"clickPlace(index, 1)"
></i>
<i
v-else
class=
"el-icon-delete addlist"
@
click=
"clickPlace(index)"
></i>
</div>
</el-form-item>
<el-form-item
:label=
"`
上车
详细地址$
{index + 1}`" :prop="`PlaceList.${index}.Address`" :rules="rules.Address">
<el-input
maxlength=
"300"
placeholder=
"请输入
上车
详细地址"
class=
"w300 addAddress"
v-model=
"item.Address"
>
<el-form-item
:label=
"`详细地址$
{index + 1}`" :prop="`PlaceList.${index}.Address`" :rules="rules.Address">
<el-input
maxlength=
"300"
placeholder=
"请输入详细地址"
class=
"w300 addAddress"
v-model=
"item.Address"
>
<el-button
slot=
"append"
@
click=
"clickMapAddress(2, index, item.Address)"
icon=
"iconfont icon-img_dw"
></el-button>
</el-input>
</el-form-item>
<div
class=
"toolOne"
style=
"margin: 0 0 28px 13px;"
>
<span
class=
"fanbili"
>
上车
地理位置
{{
index
+
1
}}
</span>
<span
class=
"fanbili"
style=
"width: 80px;text-align: right;"
>
地理位置
{{
index
+
1
}}
</span>
<div
class=
"RabateDiv clearfix"
>
<div
class=
"RebateCount reOne"
>
<div
class=
"leftPnum"
>
经度
</div>
...
...
@@ -872,7 +872,7 @@
</div>
</div>
<el-form-item
:label=
"`距离中心范围$
{index + 1}`" :prop="`PlaceList.${index}.Range`" :rules="rules.Range">
<el-input
type=
"Number"
placeholder=
"
上车
距离中心范围"
class=
"w300 addAddress"
v-model=
"item.Range"
>
<el-input
type=
"Number"
placeholder=
"距离中心范围"
class=
"w300 addAddress"
v-model=
"item.Range"
>
<i
slot=
"suffix"
>
m
</i>
</el-input>
</el-form-item>
...
...
src/components/public/Map.vue
View file @
0fefd939
...
...
@@ -55,6 +55,7 @@
height
:
'100%'
},
center
:
{
lng
:
116.404
,
lat
:
39.915
},
newCenter
:
{
lng
:
''
,
lat
:
''
},
zoom
:
20
,
nearby
:
{
center
:
{
...
...
@@ -124,21 +125,26 @@
})
this
.
center
.
lng
=
e
.
point
.
lng
this
.
center
.
lat
=
e
.
point
.
lat
this
.
newCenter
.
lng
=
e
.
point
.
lng
this
.
newCenter
.
lat
=
e
.
point
.
lat
},
syncCenterAndZoom
(
e
)
{
if
(
this
.
GetOff
)
return
const
{
lng
,
lat
}
=
e
.
target
.
getCenter
()
this
.
center
.
lng
=
lng
this
.
center
.
lat
=
lat
this
.
newCenter
.
lng
=
lng
this
.
newCenter
.
lat
=
lat
this
.
zoom
=
e
.
target
.
getZoom
()
},
// 经纬度
determineLngLat
(){
if
(
this
.
c
enter
.
lng
){
this
.
$emit
(
"headCallBack"
,
this
.
c
enter
,
this
.
type
,
this
.
index
,
this
.
keyword
);
if
(
this
.
newC
enter
.
lng
){
this
.
$emit
(
"headCallBack"
,
this
.
newC
enter
,
this
.
type
,
this
.
index
,
this
.
keyword
);
this
.
$emit
(
"refList"
);
this
.
newCenter
=
{
lng
:
''
,
lat
:
''
}
}
else
{
this
.
Error
(
"请搜索
您需要选择
的地址"
);
this
.
Error
(
"请搜索
并选择您需要
的地址"
);
}
},
}
...
...
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