更新
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<PageTitle :malginLeft="10" :height="35" backgroundColor="#ffff" :marginBottom="5" :marginTop="5">
|
||||
<template #left>
|
||||
<el-button v-for="(item,index) in butList" :key="index" :type="qh == item ? 'primary' : 'default'" @click="add(item)" size="small">{{item}}</el-button>
|
||||
<el-button v-for="(item,index) in butList" :key="index" :type="qh == item ? 'primary' : 'default'" @click="qh = item" size="small">{{item}}</el-button>
|
||||
</template>
|
||||
</PageTitle>
|
||||
<FouColorWarning v-if="qh=='预警整合'" />
|
||||
@ -18,6 +18,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { getItem } from '@//utils/storage.js'
|
||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
import FouColorWarning from "@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index.vue"
|
||||
import SevenWarning from "@/views/backOfficeSystem/fourColorManage/warningControl/sevenWarning/index.vue"
|
||||
@ -29,10 +30,23 @@ import VehicleWarning from "@/views/backOfficeSystem/fourColorManage/warningList
|
||||
import ControlWarning from "@/views/backOfficeSystem/fourColorManage/warningControl/controlWarning/index.vue"
|
||||
import RegionalControl from "@/views/backOfficeSystem/fourColorManage/warningControl/regionalControl/index.vue"
|
||||
import WrjWarning from "@/views/backOfficeSystem/fourColorManage/warningControl/wrjWarning/index.vue"
|
||||
import { ref } from "vue";
|
||||
const butList=ref(["预警整合","七类重点","人像预警","车辆预警","布控预警","区域预警","无人机预警","身份预警","行为预警","组合预警",])
|
||||
import { onMounted, ref } from "vue";
|
||||
const butList=ref(["预警整合","七类重点","人像预警","车辆预警","布控预警","区域预警","无人机预警",])
|
||||
const qh = ref('预警整合')
|
||||
const add = (flag) => {
|
||||
qh.value = flag
|
||||
}
|
||||
const hasPermissin = ref(false)
|
||||
onMounted(() => {
|
||||
// rolCode : 市情指领导(JS_666666)、市情指权限(JS_777777)、县情指权限(JS_888888)、县情指领导权限(JS_999999);
|
||||
// depCode : 市情指领导(513030199509084123 )、市情指(340827200404141028)、县情指领导(540421196805217650)、朗县公安局指挥中心(县情指)(540422200010197030)、朗县公安局县城派出所(部门)(513425199305205211)
|
||||
let rolCode = ['JS_666666','JS_777777','JS_888888','JS_999999']
|
||||
let depCode = ['513030199509084123','340827200404141028','540421196805217650','540422200010197030','513425199305205211']
|
||||
let roleData = getItem('roleList');
|
||||
let deptData = getItem('deptId');
|
||||
roleData.forEach(item => {
|
||||
if(rolCode.includes(item.roleCode)) hasPermissin.value = true
|
||||
})
|
||||
deptData.forEach(item => {
|
||||
if(depCode.includes(item.deptCode)) hasPermissin.value = true
|
||||
})
|
||||
if(hasPermissin.value) butList.value = [...butList.value,...["身份预警","行为预警","组合预警"]]
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user