消防资源统计功能模块-地图更改

pull/6/head
liujun 2024-01-17 14:43:04 +08:00
parent 10dfc04e47
commit 639864bba9
1 changed files with 15 additions and 4 deletions

View File

@ -162,7 +162,7 @@
>
<div v-if="bottomOptionsIndex !== ''" class="item">
<template v-for="(item1,index1) in item.list">
<template v-if="containAuthorizationShow(item1)">
<template v-if="containAuthorizationShow(item1,item)">
<template v-if="eliminateAuthorizationShow(item1)">
<div
:key="index1"
@ -2557,10 +2557,21 @@ export default {
this.bottomOptionsIndex = ''
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
if (containAuthorization.length === 0) return true
if (containAuthorization.includes(CORP_INFO_ID)) {
if (e.containAuthorization.length === 0) return true
if (e.containAuthorization.includes(CORP_INFO_ID)) {
return true
} else {
return false