Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-charge
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 85368aab
authored
Mar 04, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
3258adf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
src/views/Radar/index.vue
src/views/parkingPlace/sign.vue
src/views/Radar/index.vue
View file @
85368aa
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
<div
slot=
"bindingStatus"
slot-scope=
"scope"
>
<div
slot=
"bindingStatus"
slot-scope=
"scope"
>
<span
class=
"status-class"
:style=
"
{ 'background-color': bindingStatusEnum[scope.scope.bindingStatus] }">
</span>
<span
class=
"status-class"
:style=
"
{ 'background-color': bindingStatusEnum[scope.scope.bindingStatus] }">
</span>
<span>
{{
bindingStatusList
[
scope
.
scope
.
bindingStatus
]
}}
</span>
<span>
{{
scope
.
scope
.
bindingStatusStr
}}
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
...
@@ -206,7 +206,6 @@ export default {
...
@@ -206,7 +206,6 @@ export default {
]
]
},
},
deviceStatusEnum
:
[
'#999999'
,
'#2CCA74'
,
'#EB4E4E'
],
deviceStatusEnum
:
[
'#999999'
,
'#2CCA74'
,
'#EB4E4E'
],
bindingStatusList
:[
'未绑定'
,
'已绑定'
],
bindingStatusEnum
:
[
'#999999'
,
'#2CCA74'
]
bindingStatusEnum
:
[
'#999999'
,
'#2CCA74'
]
}
}
},
},
...
...
src/views/parkingPlace/sign.vue
View file @
85368aa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-option
v-for=
"item in adrList"
:key=
"item.id"
:label=
"item.address"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in adrList"
:key=
"item.id"
:label=
"item.address"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<div
class=
"icon-card"
>
<div
class=
"icon-card"
>
<div
:class=
"['icon-item',
ctr.checked?'active':
'']"
v-for=
"(ctr, index) in controlList"
@
click=
"controlHandle(index, ctr.icon)"
:key=
"index"
>
<div
:class=
"['icon-item',
ctr.checked ? 'active' :
'']"
v-for=
"(ctr, index) in controlList"
@
click=
"controlHandle(index, ctr.icon)"
:key=
"index"
>
<img
class=
"control-icon"
:src=
"require(`@/assets/$
{ctr.icon}.png`)" />
<img
class=
"control-icon"
:src=
"require(`@/assets/$
{ctr.icon}.png`)" />
{{
ctr
.
name
}}
{{
ctr
.
name
}}
</div>
</div>
...
@@ -34,27 +34,27 @@ export default {
...
@@ -34,27 +34,27 @@ export default {
{
{
icon
:
'moon'
,
icon
:
'moon'
,
name
:
'卫星'
,
name
:
'卫星'
,
checked
:
false
checked
:
false
},
},
{
{
icon
:
'ranging'
,
icon
:
'ranging'
,
name
:
'测距'
,
name
:
'测距'
,
checked
:
false
checked
:
false
},
},
{
{
icon
:
'location'
,
icon
:
'location'
,
name
:
'定位'
,
name
:
'定位'
,
checked
:
false
checked
:
false
},
},
{
{
icon
:
'magnify'
,
icon
:
'magnify'
,
name
:
'放大'
,
name
:
'放大'
,
checked
:
false
checked
:
false
},
},
{
{
icon
:
'reduce'
,
icon
:
'reduce'
,
name
:
'缩小'
,
name
:
'缩小'
,
checked
:
false
checked
:
false
}
}
],
],
activeIndex
:
''
activeIndex
:
''
...
@@ -145,13 +145,13 @@ export default {
...
@@ -145,13 +145,13 @@ export default {
style
:
{
width
:
'48px'
,
height
:
'48px'
}
style
:
{
width
:
'48px'
,
height
:
'48px'
}
})
})
marker
.
setMap
(
map
)
marker
.
setMap
(
map
)
this
.
initMarket
(
marker
,
delFlag
)
this
.
initMarket
(
marker
,
delFlag
)
}
}
}
}
})
})
},
},
//是否有删除功能 1=》可以
//是否有删除功能 1=》可以
initMarket
(
marker
,
delFlag
)
{
initMarket
(
marker
,
delFlag
)
{
let
{
map
,
AMap
}
=
this
,
let
{
map
,
AMap
}
=
this
,
that
=
this
,
that
=
this
,
...
@@ -212,13 +212,13 @@ export default {
...
@@ -212,13 +212,13 @@ export default {
},
},
// isOpen:1=>打开,2=>关闭,manipulator:操作物
// isOpen:1=>打开,2=>关闭,manipulator:操作物
getContextMenu
(
manipulator
,
isOpen
)
{
getContextMenu
(
manipulator
,
isOpen
)
{
let
that
=
this
let
that
=
this
,
isOpen
=
isOpen
||
!
this
.
queryData
.
parkingAddressFlag
isOk
=
isOpen
?
(
isOpen
==
1
?
true
:
false
)
:
!
this
.
queryData
.
parkingAddressFlag
this
.
initContent
()
this
.
initContent
()
//地图绑定鼠标右击事件——弹出右键菜单
//地图绑定鼠标右击事件——弹出右键菜单
manipulator
.
on
(
'rightclick'
,
function
(
e
)
{
manipulator
.
on
(
'rightclick'
,
function
(
e
)
{
contextMenu
.
close
()
contextMenu
.
close
()
if
(
isO
pen
==
1
||
isOpen
)
{
if
(
isO
k
)
{
contextMenu
.
open
(
that
.
map
,
e
.
lnglat
)
contextMenu
.
open
(
that
.
map
,
e
.
lnglat
)
}
}
...
@@ -303,14 +303,15 @@ export default {
...
@@ -303,14 +303,15 @@ export default {
merchantId
,
merchantId
,
contextMenuPositon
:
{
lng
,
lat
}
contextMenuPositon
:
{
lng
,
lat
}
}
=
this
,
}
=
this
,
marker
,
params
=
{
marker
,
id
:
queryData
.
id
,
params
=
{
parkingAddressLng
:
lng
,
id
:
queryData
.
id
,
parkingAddressLat
:
lat
,
parkingAddressLng
:
lng
,
merchantId
parkingAddressLat
:
lat
,
}
merchantId
}
this
.
$apis
.
parkingSpace
.
addFlagparkingSpace
(
params
).
then
(
res
=>
{
this
.
$apis
.
parkingSpace
.
addFlagparkingSpace
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
marker
=
new
AMap
.
Marker
({
marker
=
new
AMap
.
Marker
({
icon
:
require
(
'@/assets/select.png'
),
icon
:
require
(
'@/assets/select.png'
),
position
:
[
lng
,
lat
],
position
:
[
lng
,
lat
],
...
@@ -325,10 +326,10 @@ export default {
...
@@ -325,10 +326,10 @@ export default {
this
.
initMarket
(
marker
,
1
)
this
.
initMarket
(
marker
,
1
)
infoWindow
.
close
()
infoWindow
.
close
()
this
.
$message
.
success
(
'车位标记成功'
)
this
.
$message
.
success
(
'车位标记成功'
)
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
message
)
this
.
$message
.
error
(
res
.
message
)
}
}
this
.
getContextMenu
(
this
.
map
,
2
)
this
.
getContextMenu
(
map
,
2
)
})
})
},
},
cancel
(
infoWindow
)
{
cancel
(
infoWindow
)
{
...
@@ -359,7 +360,7 @@ export default {
...
@@ -359,7 +360,7 @@ export default {
_this
.
placeSearch
.
search
(
query
,
function
(
status
,
result
)
{
_this
.
placeSearch
.
search
(
query
,
function
(
status
,
result
)
{
if
(
status
===
'complete'
&&
result
.
poiList
.
pois
.
length
)
{
if
(
status
===
'complete'
&&
result
.
poiList
.
pois
.
length
)
{
_this
.
adrList
=
result
.
poiList
.
pois
_this
.
adrList
=
result
.
poiList
.
pois
// console.log(_this.adrList)
// console.log(_this.adrList)
}
}
})
})
},
},
...
@@ -409,7 +410,7 @@ export default {
...
@@ -409,7 +410,7 @@ export default {
controlHandle
(
index
,
event
)
{
controlHandle
(
index
,
event
)
{
this
[
event
+
'Handle'
](
index
)
this
[
event
+
'Handle'
](
index
)
this
.
activeIndex
=
index
this
.
activeIndex
=
index
// this.controlList[index].checked=! this.controlList[index].checked
// this.controlList[index].checked=! this.controlList[index].checked
},
},
//卫星
//卫星
moonHandle
(
index
)
{
moonHandle
(
index
)
{
...
@@ -508,7 +509,7 @@ export default {
...
@@ -508,7 +509,7 @@ export default {
padding
:
0
10px
;
padding
:
0
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
cursor
:
pointer
;
cursor
:
pointer
;
.icon-item
{
.icon-item
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
...
@@ -529,8 +530,8 @@ export default {
...
@@ -529,8 +530,8 @@ export default {
margin
:
0
6px
0
10px
;
margin
:
0
6px
0
10px
;
}
}
}
}
.active
{
.active
{
color
:
#5f5efb
;
color
:
#5f5efb
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment