From 9219b0c4d7aecd6347a120ae0923ee5a6a25da05 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 23 四月 2025 10:34:18 +0800 Subject: [PATCH] 1、我的待办页面 设备维修 分类审批弹窗功能逻辑开发并复用至我的已办和维修工单页面 2、根据会议内容调整系统功能 3、调整设备铭牌打印高度 --- 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