Browse Source

权限验证

gis版本更新
develop
lau572 5 days ago
parent
commit
08bd7b61cf
  1. 2
      ruoyi-ui/package.json
  2. 13
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue

2
ruoyi-ui/package.json

@ -64,7 +64,7 @@
"fuse.js": "6.4.3", "fuse.js": "6.4.3",
"gis-map-admin": "^0.9.2", "gis-map-admin": "^0.9.2",
"gis-map-tunnel": "^0.1.3", "gis-map-tunnel": "^0.1.3",
"gis-map-universal": "^0.6.2", "gis-map-universal": "^0.7.1",
"highlight.js": "9.18.5", "highlight.js": "9.18.5",
"html-docx-js": "^0.3.1", "html-docx-js": "^0.3.1",
"imports-loader": "^0.8.0", "imports-loader": "^0.8.0",

13
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue

@ -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();
}, },

Loading…
Cancel
Save