From 4ae10eaf3d7be607891ba053be561d60f6f4fec1 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 30 五月 2025 15:33:01 +0800
Subject: [PATCH] 设备看板设备检索展示label由设备编号调整为设备编号+设备安装位置

---
 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