From 3629dde86000f6412b35aea04399983921df7099 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 15 五月 2025 17:50:08 +0800
Subject: [PATCH] 1、OEE报表计算功能 选择时间添加限制,禁止选择选今天及未来日期 2、解决车间布局图点击设备详细弹窗展示异常问题(删除车间看板页面独立的详情弹窗组件,沿用设备监控页面详情弹窗组件)

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