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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 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
:
''
...
@@ -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
,
params
=
{
id
:
queryData
.
id
,
id
:
queryData
.
id
,
parkingAddressLng
:
lng
,
parkingAddressLng
:
lng
,
parkingAddressLat
:
lat
,
parkingAddressLat
:
lat
,
merchantId
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
)
{
...
@@ -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