Commit b4c52548 by 前端

修复bug

1 parent 879bc53e
...@@ -502,9 +502,12 @@ MapService.prototype = { ...@@ -502,9 +502,12 @@ 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) {
// 判断是否分配了电子围栏按钮权限
vue.prototype.$parentCommon.isPermission('ADD_WIRELESS_DEVICE_FENCE').then(fencePermission => {
if (!fencePermission) { if (!fencePermission) {
fenceBtn.classList.add('fence_btn_grey'); fenceBtn.classList.add('fence_btn_grey');
} }
...@@ -515,6 +518,7 @@ MapService.prototype = { ...@@ -515,6 +518,7 @@ MapService.prototype = {
mapService.openPage(`#/monitor/fence?${queryCode}`) mapService.openPage(`#/monitor/fence?${queryCode}`)
} }
} }
})
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!