|
@@ -19,20 +19,20 @@
|
|
|
<!-- </el-tooltip>-->
|
|
|
|
|
|
<!-- 消息中心 -->
|
|
|
- <span v-show="alarmIconShow">
|
|
|
- <span v-if="isMessage" key="1">
|
|
|
- <el-tooltip content="告警消息" placement="bottom">
|
|
|
- <a href='javascript:;' @click="showAlarm">
|
|
|
- <svg-icon icon-class="notice" class="right-menu-item1 hover-effect1"/>
|
|
|
- </a>
|
|
|
- </el-tooltip>
|
|
|
- </span>
|
|
|
- <span v-else key="2">
|
|
|
- <el-tooltip content="告警消息" placement="bottom">
|
|
|
- <svg-icon icon-class="notice_none" class="right-menu-item1 hover-effect1"/>
|
|
|
- </el-tooltip>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
+<!-- <span v-show="alarmIconShow">-->
|
|
|
+<!-- <span v-if="isMessage" key="1">-->
|
|
|
+<!-- <el-tooltip content="告警消息" placement="bottom">-->
|
|
|
+<!-- <a href='javascript:;' @click="showAlarm">-->
|
|
|
+<!-- <svg-icon icon-class="notice" class="right-menu-item1 hover-effect1"/>-->
|
|
|
+<!-- </a>-->
|
|
|
+<!-- </el-tooltip>-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- <span v-else key="2">-->
|
|
|
+<!-- <el-tooltip content="告警消息" placement="bottom">-->
|
|
|
+<!-- <svg-icon icon-class="notice_none" class="right-menu-item1 hover-effect1"/>-->
|
|
|
+<!-- </el-tooltip>-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- </span>-->
|
|
|
|
|
|
|
|
|
<el-tooltip content="全屏" placement="bottom">
|
|
@@ -238,42 +238,42 @@ export default {
|
|
|
this.$message.error('检测密码规则出错' + error)
|
|
|
})
|
|
|
|
|
|
- let sysTime
|
|
|
- let lk
|
|
|
- await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
|
- sysTime = res.data.sysTime
|
|
|
- lk = res.data.lk
|
|
|
- }).catch((error) => {
|
|
|
- })
|
|
|
- // 获取角色是否系统管理员
|
|
|
- const searchParams = {
|
|
|
- userId: user.id,
|
|
|
- sysTime: sysTime,
|
|
|
- lk: lk
|
|
|
- }
|
|
|
- await this.$axios.get('/sysUserController/getUserRole', {params: searchParams}).then((res) => {
|
|
|
- let userRole = res.data
|
|
|
- if (userRole.roleId == 1) {
|
|
|
- // this.getAlarmData()
|
|
|
- // 系统管理员角色显示告警图标
|
|
|
- this.alarmIconShow = true
|
|
|
- // this.getAlarmData()
|
|
|
-
|
|
|
- // 取消定时刷新告警,无法实现用户非活动状态超时登出
|
|
|
- // // 增加定时每分钟获取告警消息
|
|
|
- // this.interval = setInterval(() => {
|
|
|
- // if (!this.open){
|
|
|
- // // 窗口关闭可以调用自动查询
|
|
|
- // this.getAlarmData()
|
|
|
- // }
|
|
|
- // }, 60000000)
|
|
|
- } else {
|
|
|
- this.alarmIconShow = false
|
|
|
- }
|
|
|
-
|
|
|
- }).catch((error) => {
|
|
|
- // this.$message.error(error)
|
|
|
- })
|
|
|
+ // let sysTime
|
|
|
+ // let lk
|
|
|
+ // await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
|
+ // sysTime = res.data.sysTime
|
|
|
+ // lk = res.data.lk
|
|
|
+ // }).catch((error) => {
|
|
|
+ // })
|
|
|
+ // // 获取角色是否系统管理员
|
|
|
+ // const searchParams = {
|
|
|
+ // userId: user.id,
|
|
|
+ // sysTime: sysTime,
|
|
|
+ // lk: lk
|
|
|
+ // }
|
|
|
+ // await this.$axios.get('/sysUserController/getUserRole', {params: searchParams}).then((res) => {
|
|
|
+ // let userRole = res.data
|
|
|
+ // if (userRole.roleId == 1) {
|
|
|
+ // // this.getAlarmData()
|
|
|
+ // // 系统管理员角色显示告警图标
|
|
|
+ // this.alarmIconShow = true
|
|
|
+ // // this.getAlarmData()
|
|
|
+ //
|
|
|
+ // // 取消定时刷新告警,无法实现用户非活动状态超时登出
|
|
|
+ // // // 增加定时每分钟获取告警消息
|
|
|
+ // // this.interval = setInterval(() => {
|
|
|
+ // // if (!this.open){
|
|
|
+ // // // 窗口关闭可以调用自动查询
|
|
|
+ // // this.getAlarmData()
|
|
|
+ // // }
|
|
|
+ // // }, 60000000)
|
|
|
+ // } else {
|
|
|
+ // this.alarmIconShow = false
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // }).catch((error) => {
|
|
|
+ // // this.$message.error(error)
|
|
|
+ // })
|
|
|
},
|
|
|
/**
|
|
|
* 删除提交
|