From e74242e9f270404ac3717aeee59e1ab17815eb50 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期三, 27 八月 2025 12:06:25 +0800
Subject: [PATCH] 安灯工单:产线多选修改为单选/设备管理模块迁移: 设备台账/设备履历/故障报修/维修工单/保养标准/点检工单/精度参数维护/工艺参数维护/设备附件管理/故障原因维护  (二维码库添加) 设备台账:设备编码重复校验 、自定义控件引用、权限控制

---
 src/utils/authFilter.js |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/utils/authFilter.js b/src/utils/authFilter.js
index ed910bb..9cf27aa 100644
--- a/src/utils/authFilter.js
+++ b/src/utils/authFilter.js
@@ -7,7 +7,32 @@
     return globalDisabledAuth(code);
   }
 }
+/**
+ * 鏄剧ず鏉冮檺
+ * @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;
+}
 function nodeDisabledAuth(code,formData){
   //console.log("椤甸潰鏉冮檺绂佺敤--NODE--寮�濮�");
   let permissionList = [];

--
Gitblit v1.9.3