Commit b4c52548 by 前端

修复bug

1 parent 879bc53e
...@@ -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}`)
}
}
})
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!