From 2d93721c3758621a6b9a7eff038a8d6eac4fda24 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 26 六月 2025 15:30:26 +0800
Subject: [PATCH] 1、调整设备打卡率页面查询区域样式 2、对比分析页面新增图表数据加载提示以及优化整体页面图表展示及代码 3、调整班次班制管理页面左侧新增班制后刷新列表逻辑以及右侧配置按钮展示条件

---
 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..447965f 100644
--- a/src/utils/authFilter.js
+++ b/src/utils/authFilter.js
@@ -274,4 +274,29 @@
 
 function substrPre(str,pre) {
   return str.substr(pre.length);
+}
+/**
+ * 鏄剧ず鏉冮檺
+ * @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;
 }
\ No newline at end of file

--
Gitblit v1.9.3