Browse Source

移除跳转到Reject.html的按钮和链接,修改所有页面返回链接为SupplierReview.html

Boss3
Default User 1 month ago
parent
commit
a43bd0e54e
  1. 4
      Management.html
  2. 17
      SupplierReview.html
  3. 4
      login.html
  4. 2
      supply.html

4
Management.html

@ -980,7 +980,7 @@
if (userInfo.projectName === '采购员') {
window.location.href = 'supply.html';
} else {
window.location.href = 'Reject.html';
window.location.href = 'SupplierReview.html';
}
return;
}
@ -1180,7 +1180,7 @@
function initEventListeners() {
// 返回按钮点击事件
backBtn.addEventListener('click', () => {
window.location.href = 'Reject.html';
window.location.href = 'SupplierReview.html';
});
// 时间筛选按钮

17
SupplierReview.html

@ -936,10 +936,7 @@
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
">
<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>
<button class="type-btn active">供应商审核</button>
</div>
<div class="search-bar">
@ -1069,17 +1066,7 @@
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;
}

4
login.html

@ -237,7 +237,7 @@
window.location.href = 'supply.html';
} else {
// 其他角色默认跳转到审核页面
window.location.href = 'Reject.html';
window.location.href = 'SupplierReview.html';
}
} else {
// 登录失败
@ -258,7 +258,7 @@
// 检查是否已登录
if (localStorage.getItem('userInfo') && localStorage.getItem('token')) {
// 如果已经登录,直接跳转到审核页面
window.location.href = 'Reject.html';
window.location.href = 'SupplierReview.html';
}
</script>
</body>

2
supply.html

@ -1173,7 +1173,7 @@
<!-- 标题栏 -->
<div class="title-bar">
<div style="display: flex; align-items: center; gap: 15px;">
<button onclick="window.location.href='Reject.html'" style="background-color: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
<button onclick="window.location.href='SupplierReview.html'" style="background-color: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
返回
</button>
<h1 style="margin: 0;">我的货源</h1>

Loading…
Cancel
Save