|
@ -1,11 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="warning_list"> |
|
|
<div class="warning_list"> |
|
|
<el-tabs v-model="activeTab" @tab-click="onChangeTab"> |
|
|
<el-tabs v-model="activeTab" @tab-click="onChangeTab"> |
|
|
<el-tab-pane label="预警事件" name="four" v-hasPermi="['home:notice:event']" /> |
|
|
<el-tab-pane label="预警事件" name="four" v-if="checkPermi(['home:notice:event'])" /> |
|
|
<el-tab-pane label="感知事件" name="first" v-hasPermi="['home:notice:warningEvent']"/> |
|
|
<el-tab-pane label="感知事件" name="first" v-if="checkPermi(['home:notice:warningEvent'])" /> |
|
|
<el-tab-pane label="待确认事件" name="second" v-hasPermi="['home:notice:warningEvent']" /> |
|
|
<el-tab-pane label="待确认事件" name="second" v-if="checkPermi(['home:notice:warningEvent'])" /> |
|
|
<el-tab-pane label="处置中事件" name="third" v-hasPermi="['home:notice:disposeEvent']" /> |
|
|
<el-tab-pane label="处置中事件" name="third" v-if="checkPermi(['home:notice:disposeEvent'])" /> |
|
|
<el-tab-pane label="设备异常" name="fifth" v-hasPermi="['home:notice:deviceOffline']" /> |
|
|
<el-tab-pane label="设备异常" name="fifth" v-if="checkPermi(['home:notice:deviceOffline'])" /> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
<div> |
|
|
<div> |
|
|
<Table :data="tableData" :show-header="false" @cell-click="onCellClick" height="400px"> |
|
|
<Table :data="tableData" :show-header="false" @cell-click="onCellClick" height="400px"> |
|
@ -108,6 +108,9 @@ export default { |
|
|
this.$root.$off('refresh-event', this.getMainData); |
|
|
this.$root.$off('refresh-event', this.getMainData); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
checkPermi(permissions) { |
|
|
|
|
|
return checkPermi(permissions); |
|
|
|
|
|
}, |
|
|
onChangeTab(tab, event) { |
|
|
onChangeTab(tab, event) { |
|
|
this.getMainData(); |
|
|
this.getMainData(); |
|
|
}, |
|
|
}, |
|
|