diff --git a/SupplierReview.html b/SupplierReview.html
index 84d444e..76eb723 100644
--- a/SupplierReview.html
+++ b/SupplierReview.html
@@ -936,7 +936,10 @@
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
">
-
+
+
+
+
@@ -1066,7 +1069,17 @@
window.location.href = 'login.html';
});
-
+ // 根据角色控制货源管理按钮的显示
+ const managementBtnEl = document.getElementById('managementBtn');
+ if (managementBtnEl) {
+ if (parsedUserInfo.projectName === '管理员') {
+ // 管理员显示按钮
+ managementBtnEl.style.display = 'block';
+ } else {
+ // 非管理员隐藏按钮
+ managementBtnEl.style.display = 'none';
+ }
+ }
return true;
}