Files
guoju0808/proto/html/components/account-info.html
T
郭庆泰 cf5790229a refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK
主要改动:
- SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org
- SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type
- SQL: biz_meeting.support_unit_name → org_name
- SQL: biz_person.work_unit → org_id (FK)
- 后端: 新 BizOrg entity/mapper/service/controller
- 后端: BizProject/BizMeeting 字段重命名
- 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件
- 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id)
- 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub)
- 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits)
- 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步)
- 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名
- 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商)
- 前端: 全工程 execution → executor (company type / role / person unit_type)
2026-08-15 12:41:10 +08:00

247 lines
8.3 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>账号信息 - 项目管理系统</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
color: #333;
background: #fafafa;
min-height: 100vh;
}
.content { padding: 24px 32px; }
.breadcrumb {
font-size: 13px;
color: #8c8c8c;
margin-bottom: 12px;
}
.breadcrumb a { color: #1890ff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title {
font-size: 22px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 16px;
}
.card {
background: #fff;
border-radius: 8px;
padding: 32px 40px;
border: 1px solid #f0f0f0;
}
.form {
max-width: 420px;
}
.form-row {
display: flex;
align-items: center;
margin-bottom: 18px;
}
.form-row:last-of-type { margin-bottom: 0; }
.form-label {
flex: 0 0 90px;
font-size: 14px;
color: #595959;
text-align: right;
padding-right: 16px;
white-space: nowrap;
}
.form-label .required {
color: #ff4d4f;
margin-right: 2px;
}
.form-input {
flex: 1;
height: 36px;
padding: 0 12px;
border: 1px solid #d9d9d9;
border-radius: 4px;
font-size: 14px;
color: #333;
background: #fff;
outline: none;
transition: all 0.2s;
}
.form-input:focus {
border-color: #1890ff;
box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}
.form-input[readonly] {
background: #fafafa;
color: #595959;
cursor: not-allowed;
}
.form-error {
font-size: 12px;
color: #ff4d4f;
margin-top: 4px;
min-height: 16px;
padding-left: 106px;
}
.form-actions {
display: flex;
gap: 12px;
justify-content: flex-start;
margin-top: 28px;
padding-top: 20px;
}
.btn {
height: 40px;
padding: 0 24px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
min-width: 140px;
transition: all 0.2s;
}
.btn-primary {
background: #169bd5;
color: #fff;
border: 1px solid #169bd5;
}
.btn-primary:hover { background: #0f8db8; border-color: #0f8db8; }
.btn-default {
background: #fff;
color: #333;
border: 1px solid #797979;
}
.btn-default:hover { border-color: #1890ff; color: #1890ff; }
@media (max-width: 768px) {
.content { padding: 16px; }
.card { padding: 16px; }
.form { max-width: 100%; }
.form-row { flex-direction: column; align-items: stretch; }
.form-label { text-align: left; padding-right: 0; margin-bottom: 6px; }
.form-input { width: 100%; }
.form-error { padding-left: 0; }
.form-actions { flex-direction: column; }
.btn { width: 100%; }
}
</style>
</head>
<body>
<!--
============================================================
来源: /原型/账号信息.html(执行方菜单版本)
说明: 此原型 files/账号信息/styles.css 目录缺失,
字段布局与 /原型/files/账号信息_2/styles.css (u12427) 完全一致,
字段: 姓名 / 手机号 / 原密码 / 新密码 / 确认密码 + 保存/取消
============================================================
内容区模块(按原型 u90xx 映射):
#1 姓名 (u9090 label, u9106 input)
#2 手机号 (u9094 label, u9107 input)
#3 原密码 (u9096 label, u9108 input)
#4 新密码 (u9098 label, u9109 input)
#5 确认密码 (u9100 label, u9110 input)
#6 保存 (u9102 primary_button)
#7 取消 (u9104 button)
============================================================
框架元素(由父级 executor.html 渲染):
- u9068 ~ u9088 侧边栏+顶栏
============================================================
新增项(非原型):
- 表单校验 + 错误提示
- 响应式 768px
============================================================
-->
<main class="content">
<h1 class="page-title">账号信息</h1>
<div class="card">
<form id="changePwdForm" class="form" onsubmit="return false;">
<div class="form-row">
<label class="form-label" for="name">姓名</label>
<input type="text" id="name" class="form-input" value="张三" readonly>
</div>
<div class="form-row">
<label class="form-label" for="phone">手机号</label>
<input type="text" id="phone" class="form-input" value="13534621147" readonly>
</div>
<div class="form-row">
<label class="form-label" for="oldPwd">
<span class="required">*</span>原密码
</label>
<input type="password" id="oldPwd" class="form-input" placeholder="请输入原密码">
</div>
<div class="form-row">
<label class="form-label" for="newPwd">
<span class="required">*</span>新密码
</label>
<input type="password" id="newPwd" class="form-input" placeholder="请输入新密码">
</div>
<div class="form-row">
<label class="form-label" for="confirmPwd">
<span class="required">*</span>确认密码
</label>
<input type="password" id="confirmPwd" class="form-input" placeholder="请再次输入新密码">
</div>
<div id="errMsg" class="form-error"></div>
<div class="form-actions">
<button type="button" class="btn btn-primary" onclick="save()">保存</button>
<button type="button" class="btn btn-default" onclick="cancel()">取消</button>
</div>
</form>
</div>
</main>
<script>
// 表单校验
function validatePassword() {
const oldPwd = document.getElementById('oldPwd').value;
const newPwd = document.getElementById('newPwd').value;
const confirmPwd = document.getElementById('confirmPwd').value;
if (newPwd || confirmPwd) {
if (!oldPwd) return '请先填写原密码';
if (newPwd.length < 6) return '新密码长度不能少于 6 位';
if (newPwd !== confirmPwd) return '两次输入的新密码不一致';
}
return '';
}
['oldPwd', 'newPwd', 'confirmPwd'].forEach(id => {
document.getElementById(id).addEventListener('input', () => {
document.getElementById('errMsg').textContent = '';
});
});
function save() {
const err = validatePassword();
const errEl = document.getElementById('errMsg');
if (err) {
errEl.textContent = err;
return;
}
errEl.textContent = '';
alert('保存成功');
}
function cancel() {
document.getElementById('oldPwd').value = '';
document.getElementById('newPwd').value = '';
document.getElementById('confirmPwd').value = '';
document.getElementById('errMsg').textContent = '';
}
</script>
</body>
</html>