From 3e7d1c54e2d157c92d270facde45741ba507fd74 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 12 五月 2025 16:29:45 +0800 Subject: [PATCH] 1、全局删除设备类型以及设备级别展示字段 2、设备详情弹窗删除有效轴数和最大轴数展示字段 3、限制设备日志工作曲线弹窗采集周期最小值为100 --- src/utils/authFilter.js | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/utils/authFilter.js b/src/utils/authFilter.js index ed910bb..dce5894 100644 --- a/src/utils/authFilter.js +++ b/src/utils/authFilter.js @@ -238,6 +238,32 @@ } +/** + * 鏄剧ず鏉冮檺 + * @param {*} code + * @returns + */ +export function buttonShowAuthFilter(code) { + if(code){ + if(nodeShowAuth(code)){ + return true; + }else{ + return false; + } + }else{ + return false; + } +} + +function nodeShowAuth(code){ + let authList = JSON.parse(sessionStorage.getItem(USER_AUTH) || "[]"); + for (let auth of authList) { + if(auth.action == code) { + return true; + } + } + return false; +} /** * 棰濆澧炲姞鏂规硶銆愮敤浜庤缂栬緫缁勪欢銆� -- Gitblit v1.9.3