|
@@ -1,11 +1,191 @@
|
|
|
<template>
|
|
|
+ <div class="securityAlarmInfo">
|
|
|
+ <a-row style="height: 100%">
|
|
|
+ <a-col :span="6" style="height: 100%">
|
|
|
+ <security-device-select/>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="18" style="height: 100%;padding: 15px">
|
|
|
+ <div class="securityAlarmInfo-query">
|
|
|
+ <a-form-model layout="inline" :model="formData">
|
|
|
+ <a-form-model-item label="告警类型">
|
|
|
+ <a-select defaultValue="all" style="width: 150px">
|
|
|
+ <a-select-option value="all">全部</a-select-option>
|
|
|
+ <a-select-option value="fumes">烟雾告警</a-select-option>
|
|
|
+ <a-select-option value="fire">火焰告警</a-select-option>
|
|
|
+ <a-select-option value="trespass">非法闯入</a-select-option>
|
|
|
+ <a-select-option value="violation">违规行为</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ <a-form-model-item label="时间范围">
|
|
|
+ <TimeRange></TimeRange>
|
|
|
+ </a-form-model-item>
|
|
|
+ <a-form-model-item label="处理情况">
|
|
|
+ <a-select defaultValue="all" style="width: 120px">
|
|
|
+ <a-select-option value="all">全部</a-select-option>
|
|
|
+ <a-select-option value="finish">已处理</a-select-option>
|
|
|
+ <a-select-option value="todo">待处理</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-form-model>
|
|
|
+ </div>
|
|
|
+ <div class="securityAlarmInfo-list">
|
|
|
+ <a-table :rowKey="(record, index) => index"
|
|
|
+ :columns="columns"
|
|
|
+ :data-source="tableData"
|
|
|
+ >
|
|
|
|
|
|
+ <template #level="text">
|
|
|
+ <span v-if="text==0" style="color: #ffbf6b">一般告警</span>
|
|
|
+ <span v-if="text==1" style="color: #d26e64">重要告警</span>
|
|
|
+ <span v-if="text==2" style="color: #b83023">紧急告警</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #type="text">
|
|
|
+ <span v-if="text==0" style="color: #ffbf6b">火焰告警</span>
|
|
|
+ <span v-if="text==1" style="color: #d26e64">水浸告警</span>
|
|
|
+ <span v-if="text==2" style="color: #b83023">摄像头告警</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #operation="text">
|
|
|
+ <a-button type="link">确认处理</a-button>
|
|
|
+ <a-button type="link" @click="viewDetail">查看详情</a-button>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+
|
|
|
+ <!--告警详情-->
|
|
|
+ <a-modal class="securityPersonMoreDetail" v-if="showDetail"
|
|
|
+ :visible="true"
|
|
|
+ :width="800"
|
|
|
+ :footer="null"
|
|
|
+ @cancel="handleCancel"
|
|
|
+ >
|
|
|
+ <div>告警详情</div>
|
|
|
+ <a-divider />
|
|
|
+
|
|
|
+ <div style="width: 100%;height: 100%">
|
|
|
+ <div style="height: 250px;width: 100%">
|
|
|
+ <img width="100%" height="100%" src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <a-descriptions :column="3" size="small">
|
|
|
+ <a-descriptions-item label="监控点">
|
|
|
+ 一层大厅西南角1号球机
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="告警区域">
|
|
|
+ 一层大厅西南角
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="告警类型">
|
|
|
+ 烟雾告警
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="告警时间">
|
|
|
+ 2022-08-01 12:00:00
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="告警级别">
|
|
|
+ 紧急告警
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="准确率">
|
|
|
+ 98%
|
|
|
+ </a-descriptions-item>
|
|
|
+ </a-descriptions>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a-modal>
|
|
|
+
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-export default {}
|
|
|
+import SecurityDeviceSelect from "@/components/security/common/securityDeviceSelect.vue";
|
|
|
+import TimeRange from "@/components/common/timeRange.vue";
|
|
|
+
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ showDetail: false,
|
|
|
+ formData: {},
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ time: '2022-08-01 12:00:00',
|
|
|
+ area: '一层大厅',
|
|
|
+ level: 0,
|
|
|
+ source: '一层大厅东南角1号球机',
|
|
|
+ type: 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: '2022-08-01 12:00:00',
|
|
|
+ area: '一层大厅',
|
|
|
+ level: 1,
|
|
|
+ source: '一层大厅东南角1号球机',
|
|
|
+ type: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: '2022-08-01 12:00:00',
|
|
|
+ area: '一层大厅',
|
|
|
+ level: 2,
|
|
|
+ source: '一层大厅东南角1号球机',
|
|
|
+ type: 2,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ title: '告警时间',
|
|
|
+ dataIndex: 'time',
|
|
|
+ key: 'time'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '告警区域',
|
|
|
+ dataIndex: 'area',
|
|
|
+ key: 'area'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '告警级别',
|
|
|
+ dataIndex: 'level',
|
|
|
+ key: 'level',
|
|
|
+ scopedSlots: { customRender: 'level' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '告警来源',
|
|
|
+ dataIndex: 'source',
|
|
|
+ key: 'source'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '告警类型',
|
|
|
+ dataIndex: 'type',
|
|
|
+ key: 'type',
|
|
|
+ scopedSlots: { customRender: 'type' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'operation',
|
|
|
+ key: 'operation',
|
|
|
+ minWidth: 220,
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'operation' },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ SecurityDeviceSelect,
|
|
|
+ TimeRange,
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ viewDetail() {
|
|
|
+ this.showDetail = true;
|
|
|
+ },
|
|
|
+ handleCancel() {
|
|
|
+ this.showDetail = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-
|
|
|
+.securityAlarmInfo {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
</style>
|