148 lines
4.7 KiB
HTML
148 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>无权限访问 - OA系统</title>
|
|
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
|
|
background: #f0f2f5;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
.error-container {
|
|
text-align: center;
|
|
padding: 40px;
|
|
max-width: 600px;
|
|
}
|
|
.error-icon {
|
|
font-size: 80px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.error-code {
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
color: #ff4d4f;
|
|
margin-bottom: 16px;
|
|
}
|
|
.error-title {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
color: #303133;
|
|
margin-bottom: 12px;
|
|
}
|
|
.error-desc {
|
|
font-size: 14px;
|
|
color: #909399;
|
|
line-height: 1.8;
|
|
margin-bottom: 32px;
|
|
}
|
|
.permission-info {
|
|
background: #fff7e6;
|
|
border: 1px solid #ffe58f;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 32px;
|
|
text-align: left;
|
|
}
|
|
.permission-title {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #d46b08;
|
|
margin-bottom: 12px;
|
|
}
|
|
.permission-item {
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-bottom: 8px;
|
|
padding-left: 20px;
|
|
position: relative;
|
|
}
|
|
.permission-item::before {
|
|
content: '•';
|
|
position: absolute;
|
|
left: 0;
|
|
color: #d46b08;
|
|
}
|
|
.error-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
}
|
|
.btn {
|
|
padding: 10px 24px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
.btn-primary {
|
|
background: #409EFF;
|
|
color: white;
|
|
}
|
|
.btn-primary:hover {
|
|
background: #66b1ff;
|
|
}
|
|
.btn-default {
|
|
background: white;
|
|
color: #333;
|
|
border: 1px solid #dcdfe6;
|
|
}
|
|
.btn-default:hover {
|
|
border-color: #409EFF;
|
|
color: #409EFF;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="error-container">
|
|
<div class="error-icon">🚫</div>
|
|
<div class="error-code">403</div>
|
|
<div class="error-title">无权限访问</div>
|
|
<div class="error-desc">
|
|
抱歉,您没有权限访问此页面或执行此操作
|
|
</div>
|
|
|
|
<div class="permission-info">
|
|
<div class="permission-title">权限说明:</div>
|
|
<div class="permission-item">当前账号角色:员工</div>
|
|
<div class="permission-item">所需权限:系统管理员</div>
|
|
<div class="permission-item">缺少权限:系统设置管理权限</div>
|
|
</div>
|
|
|
|
<div class="error-actions">
|
|
<button class="btn btn-primary" onclick="window.location.href='dashboard.html'">返回首页</button>
|
|
<button class="btn btn-default" onclick="requestPermission()">申请权限</button>
|
|
<button class="btn btn-default" onclick="history.back()">返回上一页</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="common.js"></script>
|
|
<script>
|
|
function requestPermission() {
|
|
CommonUtils.createModal('申请权限', `
|
|
<div style="margin-bottom: 16px;">
|
|
<label style="display: block; margin-bottom: 8px; color: #606266;">申请原因</label>
|
|
<textarea id="permission-reason" style="width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px; min-height: 100px;" placeholder="请说明申请权限的原因"></textarea>
|
|
</div>
|
|
`, () => {
|
|
const reason = document.getElementById('permission-reason').value.trim();
|
|
if (!reason) {
|
|
CommonUtils.showMessage('请填写申请原因', 'error');
|
|
return false;
|
|
}
|
|
CommonUtils.showMessage('权限申请已提交,请等待管理员审核', 'success');
|
|
return true;
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|