消防资源统计功能模块-地图更改
parent
10dfc04e47
commit
639864bba9
|
@ -162,7 +162,7 @@
|
||||||
>
|
>
|
||||||
<div v-if="bottomOptionsIndex !== ''" class="item">
|
<div v-if="bottomOptionsIndex !== ''" class="item">
|
||||||
<template v-for="(item1,index1) in item.list">
|
<template v-for="(item1,index1) in item.list">
|
||||||
<template v-if="containAuthorizationShow(item1)">
|
<template v-if="containAuthorizationShow(item1,item)">
|
||||||
<template v-if="eliminateAuthorizationShow(item1)">
|
<template v-if="eliminateAuthorizationShow(item1)">
|
||||||
<div
|
<div
|
||||||
:key="index1"
|
:key="index1"
|
||||||
|
@ -2557,10 +2557,21 @@ export default {
|
||||||
this.bottomOptionsIndex = ''
|
this.bottomOptionsIndex = ''
|
||||||
this.collapse = false
|
this.collapse = false
|
||||||
},
|
},
|
||||||
containAuthorizationShow({ containAuthorization }) {
|
containAuthorizationShow(e, item) {
|
||||||
|
// create by liu jun (PS:此处根据[下面这个if]孙海官的需求,对消防管控的权限进行了特殊处理,未进入具体企业时,显示消防救援队,进入具体企业后,显示消防管控其他按钮)
|
||||||
|
if (item && item.list && item.list.length > 0) {
|
||||||
|
if (item.label === '消防管控') {
|
||||||
|
if (e.label === '消防救援队') {
|
||||||
|
return !(this.CORP_INFO_ID && this.CORP_INFO_ID !== '')
|
||||||
|
}
|
||||||
|
if (e.label !== '消防救援队') {
|
||||||
|
return (this.CORP_INFO_ID && this.CORP_INFO_ID !== '')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
const CORP_INFO_ID = this.CORP_INFO_ID
|
const CORP_INFO_ID = this.CORP_INFO_ID
|
||||||
if (containAuthorization.length === 0) return true
|
if (e.containAuthorization.length === 0) return true
|
||||||
if (containAuthorization.includes(CORP_INFO_ID)) {
|
if (e.containAuthorization.includes(CORP_INFO_ID)) {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue