地图代码合并

2024年1月24日测试
liujun 2024-01-30 10:08:31 +08:00
parent 70cae2001b
commit 07de513dc5
2 changed files with 30 additions and 21 deletions

View File

@ -82,7 +82,6 @@ import blindboardOrder from './blindboardOrder.vue'
import breakgroundOrder from './breakgroundOrder.vue' import breakgroundOrder from './breakgroundOrder.vue'
import hoistingOrder from './hoistingOrder.vue' import hoistingOrder from './hoistingOrder.vue'
import videoPlay from './video_play.vue' import videoPlay from './video_play.vue'
import videoPlayCmt from './video_play_cmt.vue'
import videoPlayCfd from './video_play_cfd.vue' import videoPlayCfd from './video_play_cfd.vue'
import videoPlayCmt from './video_play_cmt.vue' import videoPlayCmt from './video_play_cmt.vue'
import videoPlayPlat from './video_play_plat.vue' import videoPlayPlat from './video_play_plat.vue'
@ -99,7 +98,7 @@ import peoplePositionCfdD from './peoplePositionCfdD.vue'
import peoplePositionCmt from './peoplePositionCmt.vue' import peoplePositionCmt from './peoplePositionCmt.vue'
import carPositionCfdD from './carPositionCfdD.vue' import carPositionCfdD from './carPositionCfdD.vue'
import peoplePositionOne from './peoplePositionOne.vue' import peoplePositionOne from './peoplePositionOne.vue'
import hotworkFirst from "./hotworkFirst"; import hotworkFirst from './hotworkFirst'
import peoplePositionYGS from './peoplePositionYGS.vue' import peoplePositionYGS from './peoplePositionYGS.vue'
import outSourceInfo from './outSourceInfo.vue' import outSourceInfo from './outSourceInfo.vue'
import outSourceVideoInfo from './outSourceVideoInfo.vue' import outSourceVideoInfo from './outSourceVideoInfo.vue'
@ -124,7 +123,6 @@ export default {
breakgroundOrder, breakgroundOrder,
hoistingOrder, hoistingOrder,
videoPlay, videoPlay,
videoPlayCmt,
videoPlayCfd, videoPlayCfd,
videoPlayCmt, videoPlayCmt,
videoPlayPlat, videoPlayPlat,
@ -184,7 +182,7 @@ export default {
name: { name: {
type: String, type: String,
default: '' default: ''
}, }
}, },
methods: { methods: {
closeDialog() { closeDialog() {

View File

@ -191,7 +191,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"
@ -513,16 +513,16 @@ export default {
containAuthorization: [], containAuthorization: [],
eliminateAuthorization: [] eliminateAuthorization: []
}, },
// { {
// label: '', label: '消防水源',
// dialog_width: '600px', dialog_width: '600px',
// check: false, check: false,
// type: 'xfsy01', type: 'xfsy01',
// img: require('../../assets/map/gangkou_index/buttom/ico7.png'), img: require('../../assets/map/gangkou_index/buttom/ico7.png'),
// checkImg: require('../../assets/map/gangkou_index/buttom/ico7_on.png'), checkImg: require('../../assets/map/gangkou_index/buttom/ico7_on.png'),
// containAuthorization: [], containAuthorization: [],
// eliminateAuthorization: [] eliminateAuthorization: []
// }, },
{ {
label: '消防点位', label: '消防点位',
dialog_width: '600px', dialog_width: '600px',
@ -2865,10 +2865,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