Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 b4c52548
authored
Oct 25, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
879bc53e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
src/utils/mapService.js
src/utils/mapService.js
View file @
b4c5254
...
@@ -502,19 +502,23 @@ MapService.prototype = {
...
@@ -502,19 +502,23 @@ MapService.prototype = {
// 跳转到电子围栏页面 无线设备不能跳转电子围栏 isSource:1有线,其他无线
// 跳转到电子围栏页面 无线设备不能跳转电子围栏 isSource:1有线,其他无线
let
fenceBtn
=
infoDiv
.
querySelector
(
'[data-fence]'
);
let
fenceBtn
=
infoDiv
.
querySelector
(
'[data-fence]'
);
// 判断是否分配了电子围栏按钮权限
// 判断是否分配了电子围栏按钮权限
let
fencePermission
=
vue
.
prototype
.
$parentCommon
.
isPermission
(
'ADD_WIRELESS_DEVICE_FENCE'
);
//
let fencePermission = vue.prototype.$parentCommon.isPermission('ADD_WIRELESS_DEVICE_FENCE');
//console.log(vue.$parentCommon.hasPermission);
//console.log(vue.$parentCommon.hasPermission);
//console.log(fencePermission);
if
(
fenceBtn
)
{
if
(
fenceBtn
)
{
if
(
!
fencePermission
)
{
// 判断是否分配了电子围栏按钮权限
fenceBtn
.
classList
.
add
(
'fence_btn_grey'
);
vue
.
prototype
.
$parentCommon
.
isPermission
(
'ADD_WIRELESS_DEVICE_FENCE'
).
then
(
fencePermission
=>
{
}
if
(
!
fencePermission
)
{
// v1.25.0版本需求,无线设备和有线设备都支持围栏
fenceBtn
.
classList
.
add
(
'fence_btn_grey'
);
queryCode
=
`sn=
${
info
.
sn
}
&name=
${
encodeURI
(
info
.
name
)}
&standno=
${
info
.
standNo
}
&source=
${
info
.
isSource
}
`
;
fenceBtn
.
onclick
=
function
()
{
if
(
fencePermission
)
{
mapService
.
openPage
(
`#/monitor/fence?
${
queryCode
}
`
)
}
}
}
// v1.25.0版本需求,无线设备和有线设备都支持围栏
queryCode
=
`sn=
${
info
.
sn
}
&name=
${
encodeURI
(
info
.
name
)}
&standno=
${
info
.
standNo
}
&source=
${
info
.
isSource
}
`
;
fenceBtn
.
onclick
=
function
()
{
if
(
fencePermission
)
{
mapService
.
openPage
(
`#/monitor/fence?
${
queryCode
}
`
)
}
}
})
}
}
...
...
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