131 lines
6.2 KiB
HTML
131 lines
6.2 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; }
|
|
.sidebar {
|
|
width: 220px;
|
|
background: #fff;
|
|
border-right: 1px solid #e6e6e6;
|
|
padding: 12px 0;
|
|
}
|
|
.sidebar-title { padding: 0 20px 12px; color: #909399; font-size: 13px; }
|
|
.menu-item { padding: 12px 20px; cursor: pointer; color: #303133; }
|
|
.menu-item:hover { background: #ecf5ff; color: #409EFF; }
|
|
.menu-item.active { background: #409EFF; color: #fff; }
|
|
.content { flex: 1; padding: 20px; overflow-y: auto; background: #f0f2f5; }
|
|
.card {
|
|
background: #fff;
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
|
|
padding: 24px;
|
|
}
|
|
.page-header { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
|
|
.page-title { font-size: 18px; font-weight: 500; color: #303133; }
|
|
.form-section { margin-top: 8px; }
|
|
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
|
|
.form-item { flex: 1; }
|
|
.form-label { display: block; margin-bottom: 8px; color: #606266; font-size: 14px; }
|
|
.form-input { width: 100%; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px; }
|
|
.form-input:disabled { background: #f5f7fa; }
|
|
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
|
|
.btn { padding: 8px 20px; border: none; border-radius: 4px; cursor: pointer; }
|
|
.btn-primary { background: #409EFF; color: #fff; }
|
|
.btn-default { background: #fff; color: #303133; border: 1px solid #dcdfe6; }
|
|
</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="sidebar-title">个人中心</div>
|
|
<div class="menu-item" onclick="window.location.href='profile.html'">我的资料</div>
|
|
<div class="menu-item active">编辑资料</div>
|
|
<div class="menu-item" onclick="window.location.href='change-password.html'">修改密码</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="card">
|
|
<div class="page-header">
|
|
<div class="page-title">个人信息编辑</div>
|
|
</div>
|
|
<form id="profileForm">
|
|
<div class="form-section">
|
|
<div class="form-row">
|
|
<div class="form-item">
|
|
<label class="form-label">用户名</label>
|
|
<input type="text" class="form-input" value="zhangsan" disabled>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">姓名</label>
|
|
<input type="text" class="form-input" value="张三" id="realName">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-item">
|
|
<label class="form-label">部门</label>
|
|
<input type="text" class="form-input" value="经营管理部" disabled>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">职位</label>
|
|
<input type="text" class="form-input" value="部门负责人" disabled>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-item">
|
|
<label class="form-label">手机号</label>
|
|
<input type="tel" class="form-input" value="13800138000" id="phone">
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">邮箱</label>
|
|
<input type="email" class="form-input" value="zhangsan@example.com" id="email">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="button" class="btn btn-default" onclick="window.location.href='profile.html'">取消</button>
|
|
<button type="submit" class="btn btn-primary">保存</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="common.js"></script>
|
|
<script>
|
|
document.getElementById('profileForm').addEventListener('submit', function(e) {
|
|
e.preventDefault();
|
|
CommonUtils.confirm('确认保存个人信息?', () => {
|
|
CommonUtils.showMessage('保存成功!');
|
|
setTimeout(() => window.location.href = 'profile.html', 1000);
|
|
});
|
|
});
|
|
</script>
|
|
<script src="unified-layout.js"></script>
|
|
<script>
|
|
initUnifiedLayout('home');
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|