Browse Source

更新供应商审核页面:统一顶部样式并设置为主页面

Boss3
Default User 1 month ago
parent
commit
2266f1a00e
  1. 20
      SupplierReview.html
  2. 12
      index.html

20
SupplierReview.html

@ -925,7 +925,7 @@
<button id="logoutBtn" style="margin-left: 15px; padding: 5px 12px; background-color: #f5222d; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 12px;">退出登录</button>
</div>
<h1>供应商审核系统</h1>
<h1>审核系统</h1>
<!-- 审核类型切换器 -->
<div class="type-nav" style="
@ -936,8 +936,10 @@
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
">
<button class="type-btn active" data-type="supplier">供应商审核</button>
<button class="type-btn" onclick="window.history.back()" style="margin-left: auto; background-color: #f5f5f5; color: #666; border-left: 1px solid rgba(0, 0, 0, 0.1);">返回</button>
<button class="type-btn" id="managementBtn" style="border-right: 1px solid rgba(0, 0, 0, 0.1);" onclick="window.location.href='Reject.html'">货源管理</button>
<button class="type-btn" data-type="supply" onclick="window.location.href='Reject.html'">货源审核</button>
<button class="type-btn active" style="border-left: 1px solid rgba(0, 0, 0, 0.1);">供应商审核</button>
<button class="type-btn" id="createSupplyBtn" style="background-color: #52c41a; color: white; border-left: 1px solid rgba(0, 0, 0, 0.1);" onclick="window.location.href='Reject.html'">创建货源</button>
</div>
<div class="search-bar">
@ -1067,6 +1069,18 @@
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;
}

12
index.html

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>审核系统</title>
<meta http-equiv="refresh" content="0;url=SupplierReview.html">
</head>
<body>
<p>正在跳转到审核系统...</p>
</body>
</html>
Loading…
Cancel
Save