From 01c6094a8ed357ebb8a147c6af798e43fbac93ea Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 14 五月 2025 11:04:16 +0800 Subject: [PATCH] art: 设备管理-周保-增加终验收抽检标记字段 --- 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