179 lines
7.7 KiB
HTML
179 lines
7.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">
|
||
<!-- 统一布局样式 -->
|
||
<link rel="stylesheet" href="unified-layout.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;
|
||
overflow: hidden;
|
||
}
|
||
.layout-container {
|
||
height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
background: #409EFF; }
|
||
.main-container {
|
||
flex: 1;
|
||
display: flex;
|
||
overflow: hidden;
|
||
}
|
||
.app-main {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
background: #f0f2f5;
|
||
}
|
||
.sidebar {
|
||
width: 210px;
|
||
background: #fff;
|
||
border-right: 1px solid #e6e6e6;
|
||
overflow-y: auto;
|
||
}
|
||
.el-menu {
|
||
border-right: none;
|
||
}
|
||
.menu-item { padding: 12px 24px; cursor: pointer; }
|
||
.menu-item.active {
|
||
background: #409EFF;
|
||
color: #fff;
|
||
}
|
||
.content {
|
||
flex: 1;
|
||
padding: 20px;
|
||
overflow-y: auto;
|
||
background: #fff;
|
||
margin: 10px;
|
||
border-radius: 4px;
|
||
}
|
||
.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }
|
||
.page-title { font-size: 20px; font-weight: 500; }
|
||
.role-card { background: white; border-radius: 4px; padding: 24px; margin-bottom: 16px; border: 1px solid #f0f0f0; }
|
||
.role-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
|
||
.role-name { font-size: 18px; font-weight: 500; }
|
||
.permission-list { display: flex; flex-wrap: wrap; gap: 16px; }
|
||
.permission-item { display: flex; align-items: center; gap: 8px; }
|
||
.permission-item input { width: 18px; height: 18px; }
|
||
.permission-item label { font-size: 14px; cursor: pointer; }
|
||
.btn { padding: 6px 16px; border: none; border-radius: 4px; cursor: pointer; }
|
||
.btn-primary { background: #409EFF; color: white; }
|
||
.btn-default { background: white; color: #333; border: 1px solid #d9d9d9; }
|
||
</style>
|
||
<!-- Vue.js -->
|
||
<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
|
||
<!-- Element UI JS -->
|
||
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
||
</head>
|
||
<body>
|
||
<div id="app">
|
||
|
||
<div class="layout-container">
|
||
<div class="main-container">
|
||
<div class="sidebar">
|
||
<div class="menu-item" onclick="window.location.href='settings-org.html'">组织架构</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-user.html'">账号管理</div>
|
||
<div class="menu-item active">权限配置</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-workflow.html'">流程配置</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-notice.html'">系统公告</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-dict.html'">字典管理</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-param.html'">参数配置</div>
|
||
<div class="menu-item" onclick="window.location.href='settings-log.html'">操作日志</div>
|
||
</div>
|
||
<div class="content">
|
||
<div class="page-header">
|
||
<div class="page-title">权限配置</div>
|
||
<button class="btn btn-primary" onclick="savePermissions()">保存</button>
|
||
</div>
|
||
<div class="role-card">
|
||
<div class="role-header">
|
||
<div class="role-name">部门负责人</div>
|
||
</div>
|
||
<div class="permission-list">
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm1" checked>
|
||
<label for="perm1">商机管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm2" checked>
|
||
<label for="perm2">过程管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm3" checked>
|
||
<label for="perm3">财务管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm4" checked>
|
||
<label for="perm4">报表管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm5" checked>
|
||
<label for="perm5">系统设置</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="role-card">
|
||
<div class="role-header">
|
||
<div class="role-name">员工</div>
|
||
</div>
|
||
<div class="permission-list">
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm6" checked>
|
||
<label for="perm6">成果管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm7" checked>
|
||
<label for="perm7">项目查询</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm8">
|
||
<label for="perm8">财务管理</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="role-card">
|
||
<div class="role-header">
|
||
<div class="role-name">财务</div>
|
||
</div>
|
||
<div class="permission-list">
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm9" checked>
|
||
<label for="perm9">财务管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm10" checked>
|
||
<label for="perm10">报表管理</label>
|
||
</div>
|
||
<div class="permission-item">
|
||
<input type="checkbox" id="perm11">
|
||
<label for="perm11">商机管理</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script src="common.js"></script>
|
||
<script>
|
||
function savePermissions() {
|
||
CommonUtils.confirm('确认保存权限配置?', () => {
|
||
CommonUtils.showMessage('权限配置已保存');
|
||
});
|
||
}
|
||
</script>
|
||
<script src="unified-layout.js"></script>
|
||
<script>
|
||
initUnifiedLayout('settings');
|
||
</script>
|
||
</div>
|
||
</body>
|
||
</html>
|
||
|